@blockend/widget 1.0.51 → 1.0.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AllRoutes-CV0ZvXKH.js → AllRoutes-kKOYSrNS.js} +9 -9
- package/dist/{Box-Cb39MKJA.js → Box-DD2rDHYN.js} +9 -9
- package/dist/EstGas-3YaFsaqq.js +20281 -0
- package/dist/{Grow-CyOgpnIU.js → Grow-B_GQW4_x.js} +2 -2
- package/dist/{InputComp-B5PYzgiO.js → InputComp-CORUBHuj.js} +3 -3
- package/dist/{LoadRoute-DVPHaKWi.js → LoadRoute-BPrygCCX.js} +4 -4
- package/dist/{QuotesProgress-ClcaHGJM.js → QuotesProgress-DRw4SQ0r.js} +1 -1
- package/dist/{SwapAsset-Blw4SFxU.js → SwapAsset-CkQizd1M.js} +1 -1
- package/dist/{Tooltip-C0P7i2vF.js → Tooltip-CrSPOtOO.js} +15 -15
- package/dist/{TxnButton-CHHh05qr.js → TxnButton-w_U38ob4.js} +16 -16
- package/dist/{add-B1LcVGSW.js → add-CD961dgq.js} +1 -1
- package/dist/{all-wallets-BeJrQ3-B.js → all-wallets-apJrqQx8.js} +1 -1
- package/dist/{app-store-CaDVWZZh.js → app-store-BwPPWbZ-.js} +1 -1
- package/dist/{apple-CkGFfDmj.js → apple-C5GBBzKu.js} +1 -1
- package/dist/{arrow-bottom-riUHz5wW.js → arrow-bottom-DJFMgU8u.js} +1 -1
- package/dist/{arrow-bottom-circle-KdHp0Ttj.js → arrow-bottom-circle-hjkHJiRS.js} +1 -1
- package/dist/{arrow-left-4uZ_FCKk.js → arrow-left-DbapUhyG.js} +1 -1
- package/dist/{arrow-right-CQx64HKf.js → arrow-right-DfwZPj3f.js} +1 -1
- package/dist/{arrow-top-DCNA0fLu.js → arrow-top-CsNBUZSP.js} +1 -1
- package/dist/{bank-BnOJ4hFp.js → bank-CCcBm5-d.js} +1 -1
- package/dist/{basic-BwxnVi-O.js → basic-BjFK2vXh.js} +3 -3
- package/dist/{browser-B5n8jjez.js → browser-CyDiApkv.js} +1 -1
- package/dist/{card-CyQg9FUR.js → card-C7cgC8He.js} +1 -1
- package/dist/{ccip-BJVsdO9f.js → ccip-CGp4v-Ik.js} +14 -14
- package/dist/{checkmark-TXxWxJ06.js → checkmark-CvC9xsHE.js} +1 -1
- package/dist/{checkmark-bold-D0241gVT.js → checkmark-bold-CV7kkVJ6.js} +1 -1
- package/dist/{chevron-bottom-BUgj0Jms.js → chevron-bottom-GP9ijdKd.js} +1 -1
- package/dist/{chevron-left-CMc-uR1E.js → chevron-left-BzU9rDXH.js} +1 -1
- package/dist/{chevron-right-DgxFd0Bj.js → chevron-right-C-O85byK.js} +1 -1
- package/dist/{chevron-top-DiIar6gP.js → chevron-top-CPbBRhHs.js} +1 -1
- package/dist/{chrome-store-B8MGsjNr.js → chrome-store-DLb3LMor.js} +1 -1
- package/dist/{clock-Cyg_My5N.js → clock-u8NvqjTh.js} +1 -1
- package/dist/{close-RY0sGjCf.js → close-DGnBB14u.js} +1 -1
- package/dist/{coinPlaceholder-DE_qwsbW.js → coinPlaceholder-B_vbKW0d.js} +1 -1
- package/dist/{compass-CEHhCP6E.js → compass-VjDuwtpH.js} +1 -1
- package/dist/{copy-FM62Yyrj.js → copy-CpwxxVFk.js} +1 -1
- package/dist/{core-BhR-bSA_.js → core-Hivezgcn.js} +17 -16
- package/dist/{cursor-DladmQh5.js → cursor-CKztTS80.js} +1 -1
- package/dist/{cursor-transparent-D0WNWO9Y.js → cursor-transparent-MbRcJDkf.js} +1 -1
- package/dist/{desktop-B6eJupyA.js → desktop-C0hQOtTz.js} +1 -1
- package/dist/{disconnect-VPpMScfC.js → disconnect-CbngTTe6.js} +1 -1
- package/dist/{discord-wBtYxM-t.js → discord-CeP387Uz.js} +1 -1
- package/dist/{down-Owe76_31.js → down-A88TfxuQ.js} +2 -2
- package/dist/{etherscan-9nLZ-l75.js → etherscan-DHgjcKzd.js} +1 -1
- package/dist/{exclamation-triangle-BWl_FP8O.js → exclamation-triangle-BKbjxRSf.js} +1 -1
- package/dist/{extension-BzBM3WFk.js → extension-DKdg1MMc.js} +1 -1
- package/dist/{external-link-Dyl12aJV.js → external-link-D_9l5Fag.js} +1 -1
- package/dist/{facebook-CBkAbn5g.js → facebook-2lC7Kpys.js} +1 -1
- package/dist/{farcaster-BRpuoVay.js → farcaster-DvDKv86N.js} +1 -1
- package/dist/{filters-B7NeWYDv.js → filters-7ekV1CBZ.js} +1 -1
- package/dist/{getChainIds-3ucdX-1p.js → getChainIds-ClTf-7B7.js} +2 -2
- package/dist/getCosmosAddress-CAHzTotY.js +9566 -0
- package/dist/{github-BkQ92Psg.js → github-C_2AeCoD.js} +1 -1
- package/dist/{google-D-_oWzT6.js → google-onzWiElr.js} +1 -1
- package/dist/{hamburger-BumvcHR4.js → hamburger-DG8CUWPY.js} +5 -5
- package/dist/{help-circle-YBo375ZL.js → help-circle-BsEBhuFe.js} +1 -1
- package/dist/{id-125Dr2Fp.js → id-C4NyttJs.js} +1 -1
- package/dist/{image-KqH_HXHv.js → image-DKwx-krp.js} +1 -1
- package/dist/{index-CEXnASRZ.js → index-16MzijM6.js} +7 -7
- package/dist/{index-DvuINyOl.js → index-BJRMxl7-.js} +11 -11
- package/dist/{index-O7aWWjZs.js → index-BYgXlFDF.js} +78 -78
- package/dist/{index-uIBPDdlb.js → index-BkdZ8Dv5.js} +10 -10
- package/dist/{index-Bpdql1-8.js → index-BpQ0XXSG.js} +1 -1
- package/dist/{index-CkwDOdMt.js → index-CFjOCNdT.js} +1 -1
- package/dist/{index-1-e5pJ-0.js → index-CVtXIHyR.js} +2 -2
- package/dist/{index-DJxdLFXV.js → index-CWUtWgcV.js} +4 -4
- package/dist/{index-Drhw6mFH.js → index-DB3YpCzK.js} +5 -5
- package/dist/index-DSmx3mnG.js +30694 -0
- package/dist/index-DTish3yr.js +1014 -0
- package/dist/{index-DRUdCBxf.js → index-l3lZQnPO.js} +96 -95
- package/dist/{index.es-Dg8PGfqY.js → index.es-BC-Prg32.js} +1 -1
- package/dist/{index.es-C5JaVECC.js → index.es-BDiTU_FA.js} +3244 -3032
- package/dist/index.es.js +1 -1
- package/dist/{info-D7JbYWOR.js → info-B8W2xzJC.js} +1 -1
- package/dist/{info-circle-wQJP08na.js → info-circle-xd4z9C36.js} +1 -1
- package/dist/{lightbulb-DvxJHkNC.js → lightbulb-D5I8lTbi.js} +1 -1
- package/dist/{mail-BdTr8Qhk.js → mail-F3uJmECQ.js} +1 -1
- package/dist/{mobile-BYMl9NU4.js → mobile-k7XFALbp.js} +1 -1
- package/dist/{more-_GkH6PVz.js → more-D-JzQpLw.js} +1 -1
- package/dist/{network-placeholder-RkFane_-.js → network-placeholder-BCZ9Tznt.js} +1 -1
- package/dist/{nftPlaceholder-brLois7k.js → nftPlaceholder-C3lY-4pO.js} +1 -1
- package/dist/{off-BvoRAKQk.js → off-oyzD1zym.js} +1 -1
- package/dist/{play-store-PAYBmMKL.js → play-store-DmzOyb5N.js} +1 -1
- package/dist/{plus-C7ndQrVG.js → plus-B3_zXKdB.js} +1 -1
- package/dist/{qr-code-BzVDMXG9.js → qr-code-CDCi7YJ2.js} +1 -1
- package/dist/{recycle-horizontal-CcSjuPBD.js → recycle-horizontal-gYQpyQu-.js} +1 -1
- package/dist/{refresh-EnEB4S0q.js → refresh-BxJP9XlY.js} +1 -1
- package/dist/{reown-logo-D-m3ZlCn.js → reown-logo-4_2efEyI.js} +1 -1
- package/dist/{search-rK2TO8oW.js → search-BgURoQ8D.js} +1 -1
- package/dist/{send-ewC_Dr5a.js → send-B04E7tqz.js} +1 -1
- package/dist/{swapHorizontal-D4_CLnQ1.js → swapHorizontal-Bn3fSbb_.js} +1 -1
- package/dist/{swapHorizontalBold-BxJSvW__.js → swapHorizontalBold-BrwcTxbN.js} +1 -1
- package/dist/{swapHorizontalMedium-BC6YI70K.js → swapHorizontalMedium-DmeGLuiC.js} +1 -1
- package/dist/{swapHorizontalRoundedBold-BvJ7MjAm.js → swapHorizontalRoundedBold-BS3lUe20.js} +1 -1
- package/dist/{swapVertical-uQyY1dbd.js → swapVertical-ChLqgWg7.js} +1 -1
- package/dist/{telegram-Dzfv7CZN.js → telegram-DnPhgih8.js} +1 -1
- package/dist/{three-dots-O3uLZLkz.js → three-dots-bNEejC0G.js} +1 -1
- package/dist/{twitch-CUtrbmL-.js → twitch-GAMBWGM1.js} +1 -1
- package/dist/{twitterIcon-DZMQ8Bmn.js → twitterIcon-BLC3bD_g.js} +1 -1
- package/dist/{unsupportedProp-Dh57ZITi.js → unsupportedProp-C6jj5a32.js} +1 -1
- package/dist/{useRegisterError-Bp8xpLyh.js → useRegisterError-Dtth7zv3.js} +5 -5
- package/dist/{verify-1kJPzvCP.js → verify-BExXvDwE.js} +1 -1
- package/dist/{verify-filled-D6xGY8A5.js → verify-filled-Bi2V73zt.js} +1 -1
- package/dist/{w3m-modal-slf0WTO2.js → w3m-modal-DqiyguGn.js} +2 -2
- package/dist/{wallet-CI9ZKXI5.js → wallet-CZWVV7qT.js} +1 -1
- package/dist/{wallet-placeholder-DHsdhsL5.js → wallet-placeholder-DWCfOWed.js} +1 -1
- package/dist/{walletconnect-YEeO3478.js → walletconnect-B30uBUwZ.js} +1 -1
- package/dist/{warning-circle-CnXCXT-G.js → warning-circle-BkKJHk9B.js} +1 -1
- package/dist/{x-ChzZn6EY.js → x-BGtdpZh4.js} +1 -1
- package/package.json +1 -1
- package/dist/EstGas-DScDuqvp.js +0 -14426
- package/dist/getCosmosAddress-COhqxzQU.js +0 -8398
- package/dist/index-aoGlnTj5.js +0 -70013
@@ -1,8 +1,8 @@
|
|
1
1
|
import * as D from "react";
|
2
2
|
import kt from "react";
|
3
|
-
import { p as J, P as i,
|
3
|
+
import { p as J, P as i, aE as St, n as Bt, g as Wt, b as Lt, _ as Te, d as z, h as Nt, i as Ht, s as Vt } from "./index-DSmx3mnG.js";
|
4
4
|
import { jsx as de } from "react/jsx-runtime";
|
5
|
-
import { o as et, P as It, b as Se, a as tt, m as Ut, r as mt, h as qt, H as Ee, T as Ft, q as _t, j as Xt, n as zt, t as rt, v as Yt, w as Gt } from "./useRegisterError-
|
5
|
+
import { o as et, P as It, b as Se, a as tt, m as Ut, r as mt, h as qt, H as Ee, T as Ft, q as _t, j as Xt, n as zt, t as rt, v as Yt, w as Gt } from "./useRegisterError-Dtth7zv3.js";
|
6
6
|
let nt = 0;
|
7
7
|
function Jt(e) {
|
8
8
|
const [t, r] = D.useState(e), n = e || t;
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import { jsxs as b, jsx as t, Fragment as k } from "react/jsx-runtime";
|
2
|
-
import { u as n, S as W } from "./index-
|
2
|
+
import { u as n, S as W } from "./index-DSmx3mnG.js";
|
3
3
|
import { useState as S, useRef as x } from "react";
|
4
|
-
import { u as j, i as I, W as D, F, f as p, c as u, z as R } from "./useRegisterError-
|
4
|
+
import { u as j, i as I, W as D, F, f as p, c as u, z as R } from "./useRegisterError-Dtth7zv3.js";
|
5
5
|
import { useAccount as T, useBalance as A } from "wagmi";
|
6
6
|
import "@dynamic-labs/sdk-react-core";
|
7
|
-
import { c as B, r as G } from "./index-
|
7
|
+
import { c as B, r as G } from "./index-16MzijM6.js";
|
8
8
|
function H({ amount: w, setAmount: l, fetchBalance: M, getCoinBalance: h, isBalanceLoading: f }) {
|
9
9
|
var d, o;
|
10
10
|
const s = n((a) => a.configuration), e = n((a) => a.fromCoin), r = n((a) => a.fromChain), { isAnyWalletConnected: g } = j({ chainData: r }), [$, z] = S(40), { address: N } = T(), v = x(), { defaultCoin: y } = I;
|
@@ -1,13 +1,13 @@
|
|
1
1
|
import { jsx as e, jsxs as t, Fragment as m } from "react/jsx-runtime";
|
2
2
|
import { t as te } from "./truncate-D9t92mVX.js";
|
3
|
-
import { u as r, S as o, l as we } from "./index-
|
3
|
+
import { u as r, S as o, l as we } from "./index-DSmx3mnG.js";
|
4
4
|
import { useState as ie, useEffect as le } from "react";
|
5
5
|
import { s as a } from "./WidgetForm.module-QHJ0-m5f.js";
|
6
6
|
import { G as ce, C as de, S as me } from "./clockIcon-C2W5xvyt.js";
|
7
|
-
import { S as re } from "./down-
|
7
|
+
import { S as re } from "./down-A88TfxuQ.js";
|
8
8
|
import { e as se } from "./ethertousd-CC_ezooz.js";
|
9
|
-
import { O as H } from "./index-
|
10
|
-
import { F as J, i as ae } from "./useRegisterError-
|
9
|
+
import { O as H } from "./index-CFjOCNdT.js";
|
10
|
+
import { F as J, i as ae } from "./useRegisterError-Dtth7zv3.js";
|
11
11
|
function oe({ fill: n }) {
|
12
12
|
return /* @__PURE__ */ e(
|
13
13
|
"svg",
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { jsxs as o, jsx as a, Fragment as m } from "react/jsx-runtime";
|
2
2
|
import { s as l } from "./WidgetForm.module-QHJ0-m5f.js";
|
3
|
-
import { u as g } from "./index-
|
3
|
+
import { u as g } from "./index-DSmx3mnG.js";
|
4
4
|
function y({ routesData: x, routes: e, quoteTimer: n, amount: c }) {
|
5
5
|
var s, b, d, w;
|
6
6
|
const r = g((i) => i.configuration), t = g((i) => i.gradient);
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import { b as go, g as To, i as yo, _ as vo, p as B, d as n, e as D, s as Q, f as Ve, h as Po, j as ze, P as e } from "./index-
|
1
|
+
import { b as go, g as To, i as yo, _ as vo, p as B, d as n, e as D, s as Q, f as Ve, h as Po, j as ze, P as e } from "./index-DSmx3mnG.js";
|
2
2
|
import * as p from "react";
|
3
|
-
import { G as Be, b as wo, u as Ro, a as Co, P as He } from "./Grow-
|
3
|
+
import { G as Be, b as wo, u as Ro, a as Co, P as He } from "./Grow-B_GQW4_x.js";
|
4
4
|
import { jsx as j, jsxs as Se } from "react/jsx-runtime";
|
5
|
-
import { j as xo, q as I, l as Ue, s as Oo, b as Eo, n as Mo,
|
5
|
+
import { j as xo, q as I, l as Ue, s as Oo, b as Eo, n as Mo, D as A, E as _o, w as No } from "./useRegisterError-Dtth7zv3.js";
|
6
6
|
function Lo(r) {
|
7
7
|
return To("MuiTooltip", r);
|
8
8
|
}
|
@@ -194,10 +194,10 @@ const ko = /* @__PURE__ */ p.forwardRef(function(t, s) {
|
|
194
194
|
children: U,
|
195
195
|
components: O = {},
|
196
196
|
componentsProps: h = {},
|
197
|
-
describeChild:
|
198
|
-
disableFocusListener:
|
197
|
+
describeChild: Ye = !1,
|
198
|
+
disableFocusListener: qe = !1,
|
199
199
|
disableHoverListener: he = !1,
|
200
|
-
disableInteractive:
|
200
|
+
disableInteractive: Ge = !1,
|
201
201
|
disableTouchListener: Ke = !1,
|
202
202
|
enterDelay: be = 100,
|
203
203
|
enterNextDelay: ge = 0,
|
@@ -219,7 +219,7 @@ const ko = /* @__PURE__ */ p.forwardRef(function(t, s) {
|
|
219
219
|
TransitionProps: eo
|
220
220
|
} = S, Re = vo(S, $o), c = /* @__PURE__ */ p.isValidElement(U) ? U : /* @__PURE__ */ j("span", {
|
221
221
|
children: U
|
222
|
-
}), Ce = xo(), oo = wo(), [l, xe] = p.useState(), [z, to] = p.useState(null), M = p.useRef(!1), H =
|
222
|
+
}), Ce = xo(), oo = wo(), [l, xe] = p.useState(), [z, to] = p.useState(null), M = p.useRef(!1), H = Ge || W, Oe = I(), Y = I(), _ = I(), Ee = I(), [ro, Me] = Ro({
|
223
223
|
controlled: Pe,
|
224
224
|
default: !1,
|
225
225
|
name: "Tooltip",
|
@@ -234,7 +234,7 @@ const ko = /* @__PURE__ */ p.forwardRef(function(t, s) {
|
|
234
234
|
l && l.disabled && !o && m !== "" && l.tagName.toLowerCase();
|
235
235
|
}, [m, l, o]);
|
236
236
|
}
|
237
|
-
const
|
237
|
+
const q = Co(Je), T = p.useRef(), N = Ue(() => {
|
238
238
|
T.current !== void 0 && (document.body.style.WebkitUserSelect = T.current, T.current = void 0), Ee.clear();
|
239
239
|
});
|
240
240
|
p.useEffect(() => N, [N]);
|
@@ -252,11 +252,11 @@ const ko = /* @__PURE__ */ p.forwardRef(function(t, s) {
|
|
252
252
|
});
|
253
253
|
}
|
254
254
|
), $ = (o) => {
|
255
|
-
M.current && o.type !== "touchstart" || (l && l.removeAttribute("title"),
|
255
|
+
M.current && o.type !== "touchstart" || (l && l.removeAttribute("title"), Y.clear(), _.clear(), be || F && ge ? Y.start(F ? ge : be, () => {
|
256
256
|
_e(o);
|
257
257
|
}) : _e(o));
|
258
|
-
},
|
259
|
-
|
258
|
+
}, G = (o) => {
|
259
|
+
Y.clear(), _.start(Te, () => {
|
260
260
|
L(o);
|
261
261
|
});
|
262
262
|
}, {
|
@@ -265,7 +265,7 @@ const ko = /* @__PURE__ */ p.forwardRef(function(t, s) {
|
|
265
265
|
onFocus: so,
|
266
266
|
ref: po
|
267
267
|
} = Oo(), [, Le] = p.useState(!1), $e = (o) => {
|
268
|
-
no(o), Ne.current === !1 && (Le(!1),
|
268
|
+
no(o), Ne.current === !1 && (Le(!1), G(o));
|
269
269
|
}, De = (o) => {
|
270
270
|
l || xe(o.currentTarget), so(o), Ne.current === !0 && (Le(!0), $(o));
|
271
271
|
}, je = (o) => {
|
@@ -300,7 +300,7 @@ const ko = /* @__PURE__ */ p.forwardRef(function(t, s) {
|
|
300
300
|
y: o.clientY
|
301
301
|
}, K.current && K.current.update();
|
302
302
|
}, y = {}, X = typeof m == "string";
|
303
|
-
|
303
|
+
Ye ? (y.title = !u && X && !he ? m : null, y["aria-describedby"] = u ? q : null) : (y["aria-label"] = X ? m : null, y["aria-labelledby"] = u && !X ? q : null);
|
304
304
|
const a = n({}, y, Re, c.props, {
|
305
305
|
className: D(Re.className, c.props.className),
|
306
306
|
onTouchStart: je,
|
@@ -312,7 +312,7 @@ const ko = /* @__PURE__ */ p.forwardRef(function(t, s) {
|
|
312
312
|
l && l.getAttribute("data-mui-internal-clone-element");
|
313
313
|
}, [l]));
|
314
314
|
const v = {};
|
315
|
-
Ke || (a.onTouchStart = io, a.onTouchEnd = lo), he || (a.onMouseOver = k($, a.onMouseOver), a.onMouseLeave = k(
|
315
|
+
Ke || (a.onTouchStart = io, a.onTouchEnd = lo), he || (a.onMouseOver = k($, a.onMouseOver), a.onMouseLeave = k(G, a.onMouseLeave), H || (v.onMouseOver = $, v.onMouseLeave = G)), qe || (a.onFocus = k(De, a.onFocus), a.onBlur = k($e, a.onBlur), H || (v.onFocus = De, v.onBlur = $e)), B.env.NODE_ENV !== "production" && c.props.title;
|
316
316
|
const uo = p.useMemo(() => {
|
317
317
|
var o;
|
318
318
|
let i = [{
|
@@ -356,7 +356,7 @@ const ko = /* @__PURE__ */ p.forwardRef(function(t, s) {
|
|
356
356
|
} : l,
|
357
357
|
popperRef: K,
|
358
358
|
open: l ? u : !1,
|
359
|
-
id:
|
359
|
+
id: q,
|
360
360
|
transition: !0
|
361
361
|
}, v, mo, {
|
362
362
|
popperOptions: uo,
|
@@ -1,13 +1,13 @@
|
|
1
1
|
import { jsx as G } from "react/jsx-runtime";
|
2
2
|
import { useState as v, useEffect as z } from "react";
|
3
3
|
import { useDynamicContext as xe, useSwitchNetwork as Me, useIsLoggedIn as Oe } from "@dynamic-labs/sdk-react-core";
|
4
|
-
import { a as _, u as h,
|
4
|
+
import { a as _, u as h, aA as Re, aB as pe } from "./index-DSmx3mnG.js";
|
5
5
|
import { s as S } from "./WidgetForm.module-QHJ0-m5f.js";
|
6
6
|
import { useAccount as Ve, useConfig as qe, useSwitchChain as Pe, useBalance as _e } from "wagmi";
|
7
|
-
import { u as ge, d as Qe, c as He, C as ye } from "./useRegisterError-
|
8
|
-
import "./getCosmosAddress-
|
7
|
+
import { u as ge, d as Qe, c as He, C as ye } from "./useRegisterError-Dtth7zv3.js";
|
8
|
+
import "./getCosmosAddress-CAHzTotY.js";
|
9
9
|
import { v as Je } from "./validError-CDlJpg_f.js";
|
10
|
-
import { u as Ke, g as Ue, p as Xe } from "./index-
|
10
|
+
import { u as Ke, g as Ue, p as Xe } from "./index-16MzijM6.js";
|
11
11
|
function Ye(n) {
|
12
12
|
const { wallet: u, address: l } = _(), [f, N] = v(0);
|
13
13
|
async function x() {
|
@@ -36,7 +36,7 @@ function ot({ routesData: n, routes: u, amount: l, isAmountTyped: f, handleShowW
|
|
36
36
|
var C, ee, te, se, re, ce, ne, ie, de, ae, le, oe, we;
|
37
37
|
const w = h((s) => s.gradient), m = h((s) => s.configuration), e = h((s) => s.fromChain), i = h((s) => s.fromCoin), r = h((s) => s.toChain), b = h((s) => s.toCoin), { isConnected: j, address: H, chain: I } = Ve(), { address: J, isConnected: We } = _(), me = qe(), Ie = Me(), { getBothWalletConnection: he, getConnectWallet: fe } = ge({
|
38
38
|
chainData: e
|
39
|
-
}), { connected: K, address: U, disconnect: De } = _(), M = h((s) => s.toDisconnect), d = h((s) => s.customWallet), { getWallet: Ne } = ge({ chainData: e }), Be = fe(e, r), [O, Ge] = v("101"), { tronBal: R } = Ye(e), { cosmosBalance: X } = Ke(), Y = Ze(), V = ((C = e.chain) == null ? void 0 : C.length) && ((ee = r.chain) == null ? void 0 : ee.length), q = ((te = i.address) == null ? void 0 : te.length) && ((se = b.address) == null ? void 0 : se.length), Se = Qe(), Z = Re(), { switchChain: ke, switchChainAsync:
|
39
|
+
}), { connected: K, address: U, disconnect: De } = _(), M = h((s) => s.toDisconnect), d = h((s) => s.customWallet), { getWallet: Ne } = ge({ chainData: e }), Be = fe(e, r), [O, Ge] = v("101"), { tronBal: R } = Ye(e), { cosmosBalance: X } = Ke(), Y = Ze(), V = ((C = e.chain) == null ? void 0 : C.length) && ((ee = r.chain) == null ? void 0 : ee.length), q = ((te = i.address) == null ? void 0 : te.length) && ((se = b.address) == null ? void 0 : se.length), Se = Qe(), Z = Re(), { switchChain: ke, switchChainAsync: $e, isPending: Ee } = Pe({
|
40
40
|
chainId: Number((e == null ? void 0 : e.chainId) || "0"),
|
41
41
|
config: me,
|
42
42
|
throwForSwitchChainNotSupported: !0,
|
@@ -56,7 +56,7 @@ function ot({ routesData: n, routes: u, amount: l, isAmountTyped: f, handleShowW
|
|
56
56
|
async function Fe() {
|
57
57
|
if ((e == null ? void 0 : e.networkType) === "evm" && Number((e == null ? void 0 : e.chainId) || "0") !== (I == null ? void 0 : I.id))
|
58
58
|
try {
|
59
|
-
await
|
59
|
+
await $e({ chainId: Number((e == null ? void 0 : e.chainId) || "0") });
|
60
60
|
} catch {
|
61
61
|
}
|
62
62
|
else if ((e == null ? void 0 : e.networkType) === "sol" && O !== ((e == null ? void 0 : e.chainId) == "eclipse-svm" ? "201" : "101"))
|
@@ -97,20 +97,20 @@ function ot({ routesData: n, routes: u, amount: l, isAmountTyped: f, handleShowW
|
|
97
97
|
return Number(((g = X[Xe(s.address)]) == null ? void 0 : g.amount) || 0) / Math.pow(10, s.decimals);
|
98
98
|
}
|
99
99
|
function Ae() {
|
100
|
-
var
|
100
|
+
var E;
|
101
101
|
let s = {};
|
102
102
|
async function g(t, c) {
|
103
|
-
let
|
103
|
+
let $ = Object.keys(s);
|
104
104
|
s[t == null ? void 0 : t.chainId] ? (s[t == null ? void 0 : t.chainId].amountInToken += c.amountInToken, s[t == null ? void 0 : t.chainId].gas += k(c.amountInToken, t == null ? void 0 : t.decimals)) : s[t == null ? void 0 : t.chainId] = {
|
105
105
|
amountInToken: c.amountInToken,
|
106
106
|
gas: k(c.amountInToken, t == null ? void 0 : t.decimals),
|
107
107
|
token: t,
|
108
108
|
nativeBal: (d == null ? void 0 : d.length) > 30 && !M && (t == null ? void 0 : t.chainId) == (r == null ? void 0 : r.chainId) && (r == null ? void 0 : r.chainId) !== (e == null ? void 0 : e.chainId) ? 0 : (t == null ? void 0 : t.networkType) == "sol" ? L : (t == null ? void 0 : t.networkType) == "tron" ? R : (t == null ? void 0 : t.networkType) == "btc" || (t == null ? void 0 : t.networkType) == "sui" ? Y : (t == null ? void 0 : t.networkType) == "cosmos" ? je(t) : (t == null ? void 0 : t.networkType) == "tron" ? Ue(J) : Le(),
|
109
109
|
isFromChain: (e == null ? void 0 : e.chainId) === (t == null ? void 0 : t.chainId.toString()),
|
110
|
-
order: (e == null ? void 0 : e.chainId) === (t == null ? void 0 : t.chainId) ? 1 : (r == null ? void 0 : r.chainId) === (t == null ? void 0 : t.chainId) ? 2 :
|
110
|
+
order: (e == null ? void 0 : e.chainId) === (t == null ? void 0 : t.chainId) ? 1 : (r == null ? void 0 : r.chainId) === (t == null ? void 0 : t.chainId) ? 2 : $.length > 2 ? 3 : 2
|
111
111
|
};
|
112
112
|
}
|
113
|
-
(
|
113
|
+
(E = n == null ? void 0 : n.fee) == null || E.forEach((t) => {
|
114
114
|
const { token: c } = t;
|
115
115
|
t.source.toLowerCase() == "from_source_wallet" && g(c, t);
|
116
116
|
});
|
@@ -128,11 +128,11 @@ function ot({ routesData: n, routes: u, amount: l, isAmountTyped: f, handleShowW
|
|
128
128
|
color: "bw-bg-border-primary"
|
129
129
|
});
|
130
130
|
else {
|
131
|
-
let t = Object.values(s).sort((c,
|
131
|
+
let t = Object.values(s).sort((c, $) => c.order - $.order);
|
132
132
|
t.some((c) => {
|
133
|
-
var
|
133
|
+
var $, be, ue;
|
134
134
|
return c != null && c.isFromChain && Number(l) <= Number(y) && Number(c.nativeBal) - Number(l) < c.gas && (i != null && i.isNative) || Number(l) <= Number(y) && Number(c.nativeBal) < c.gas && !(i != null && i.isNative) && (c != null && c.isFromChain) ? (a({
|
135
|
-
text: `Insufficient ${((
|
135
|
+
text: `Insufficient ${(($ = c == null ? void 0 : c.token) == null ? void 0 : $.symbol) || ""} for gas on ${c.token.blockchain}`,
|
136
136
|
isGradient: !1,
|
137
137
|
color: "bw-bg-border-primary"
|
138
138
|
}), !0) : c.nativeBal < c.gas && !((d == null ? void 0 : d.length) > 30 && ((be = c == null ? void 0 : c.token) == null ? void 0 : be.chainId) == (r == null ? void 0 : r.chainId)) ? (a({
|
@@ -197,8 +197,8 @@ function ot({ routesData: n, routes: u, amount: l, isAmountTyped: f, handleShowW
|
|
197
197
|
}, [O, p, i, b, l, e, r, (ne = T.data) == null ? void 0 : ne.formatted, n, T.isFetching, T.isLoading, j, W, B, u.isFetching, I == null ? void 0 : I.id, f, R, L, d, Y, X, J]);
|
198
198
|
let ve = [`switch chain to ${(ie = e.chain) == null ? void 0 : ie.toLowerCase()}`, `select ${(de = e.chain) == null ? void 0 : de.toLowerCase()} wallet`, "connect custom wallet", "enter recipient wallet address"];
|
199
199
|
function ze() {
|
200
|
-
var s, g, y,
|
201
|
-
return B ? u.isFetching ? !0 : o.text.length ? !ve.includes((s = o.text) == null ? void 0 : s.toLowerCase()) : !((
|
200
|
+
var s, g, y, E;
|
201
|
+
return B ? u.isFetching ? !0 : o.text.length ? !ve.includes((s = o.text) == null ? void 0 : s.toLowerCase()) : !((E = (y = (g = u.data) == null ? void 0 : g.data) == null ? void 0 : y.quotes) != null && E.length) : !1;
|
202
202
|
}
|
203
203
|
return /* @__PURE__ */ G(
|
204
204
|
"button",
|
@@ -214,7 +214,7 @@ function ot({ routesData: n, routes: u, amount: l, isAmountTyped: f, handleShowW
|
|
214
214
|
onClick: () => {
|
215
215
|
B || (N(!0), ((e == null ? void 0 : e.networkType) !== "evm" && j || (e == null ? void 0 : e.networkType) !== "sol" && P && p !== null || (e == null ? void 0 : e.networkType) !== "tron" && K && U) && !M ? x("from") : j && (r == null ? void 0 : r.networkType) !== "evm" || P && (r == null ? void 0 : r.networkType) !== "sol" || (r == null ? void 0 : r.networkType) !== "tron" && K && U || M ? x("to") : x("from")), e.chainId === "eclipse-svm" && !A(p) ? (N(!0), x("from")) : r.chainId === "eclipse-svm" && e.chainId !== "eclipse-svm" && !A(p) && d.length < 30 ? (N(!0), x("to")) : Fe();
|
216
216
|
},
|
217
|
-
children: /* @__PURE__ */ G("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__ */ G("p", { className: "bw-relative bw-z-20", children: V && q ?
|
217
|
+
children: /* @__PURE__ */ G("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__ */ G("p", { className: "bw-relative bw-z-20", children: V && q ? Ee ? /* @__PURE__ */ G("div", { className: "bw-w-[30px] bw-flex bw-text-text-secondary bw-justify-center bw-items-center bw-h-[30px]", children: /* @__PURE__ */ G(ye, { size: 22, thickness: 5, color: "inherit" }) }) : B ? o.text.length ? o.text : "Start Transaction" : `Connect ${Be} Wallet` : /* @__PURE__ */ G("div", { className: "bw-w-[30px] bw-flex bw-text-text-secondary bw-justify-center bw-items-center bw-h-[30px]", children: /* @__PURE__ */ G(ye, { size: 22, thickness: 5, color: "inherit" }) }) }) })
|
218
218
|
}
|
219
219
|
);
|
220
220
|
}
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { i as D, e as G, r as q, a as A, x as c, C as U, A as M, O as tt, b as z, E as et, R as O, c as Ut, d as K, f as N, S as pe, g as Cn, W as fe, h as Ze, j as vi, T as ti, k as Xt, M as on, l as rn, m as Dt, n as yi, o as $n } from "./core-
|
2
|
-
import { n as u, c as B, o as W, r as E, U as ht, e as Rn, f as En, a as In } from "./index-
|
3
|
-
import { n as Wn } from "./index-
|
1
|
+
import { i as D, e as G, r as q, a as A, x as c, C as U, A as M, O as tt, b as z, E as et, R as O, c as Ut, d as K, f as N, S as pe, g as Cn, W as fe, h as Ze, j as vi, T as ti, k as Xt, M as on, l as rn, m as Dt, n as yi, o as $n } from "./core-Hivezgcn.js";
|
2
|
+
import { n as u, c as B, o as W, r as E, U as ht, e as Rn, f as En, a as In } from "./index-BYgXlFDF.js";
|
3
|
+
import { n as Wn } from "./index-DSmx3mnG.js";
|
4
4
|
const Sn = D`
|
5
5
|
:host {
|
6
6
|
position: relative;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { ad as L, ae as b, af as F, ag as N, ah as P, ai as w, aj as S, ak as E, al as $, am as C, an as I, ao as m, ap as G, aq as R, ar as k, as as y, at as O, au as q, av as T, aw as v, ax as D, ay as A, az as H } from "./index-DSmx3mnG.js";
|
2
2
|
const h = "/docs/contract/encodeErrorResult";
|
3
3
|
function x(t) {
|
4
4
|
const { abi: s, errorName: a, args: r } = t;
|
@@ -45,8 +45,8 @@ function j(t) {
|
|
45
45
|
})();
|
46
46
|
return w(e.outputs, c);
|
47
47
|
}
|
48
|
-
const
|
49
|
-
async function
|
48
|
+
const U = "x-batch-gateway:true";
|
49
|
+
async function B(t) {
|
50
50
|
const { data: s, ccipRequest: a } = t, { args: [r] } = I({ abi: m, data: s }), e = [], c = [];
|
51
51
|
return await Promise.all(r.map(async (n, o) => {
|
52
52
|
try {
|
@@ -66,16 +66,16 @@ function _(t) {
|
|
66
66
|
errorName: "HttpError",
|
67
67
|
args: [t.status, t.shortMessage]
|
68
68
|
}) : x({
|
69
|
-
abi: [
|
69
|
+
abi: [G],
|
70
70
|
errorName: "Error",
|
71
71
|
args: ["shortMessage" in t ? t.shortMessage : t.message]
|
72
72
|
});
|
73
73
|
}
|
74
74
|
function z(t, s) {
|
75
|
-
if (!
|
76
|
-
throw new
|
77
|
-
if (!
|
78
|
-
throw new
|
75
|
+
if (!R(t, { strict: !1 }))
|
76
|
+
throw new k({ address: t });
|
77
|
+
if (!R(s, { strict: !1 }))
|
78
|
+
throw new k({ address: s });
|
79
79
|
return t.toLowerCase() === s.toLowerCase();
|
80
80
|
}
|
81
81
|
class J extends y {
|
@@ -149,20 +149,20 @@ const Y = "0x556f1830", Q = {
|
|
149
149
|
]
|
150
150
|
};
|
151
151
|
async function Z(t, { blockNumber: s, blockTag: a, data: r, to: e }) {
|
152
|
-
const { args: c } =
|
152
|
+
const { args: c } = T({
|
153
153
|
data: r,
|
154
154
|
abi: [Q]
|
155
155
|
}), [n, o, u, f, d] = c, { ccipRead: i } = t, g = i && typeof (i == null ? void 0 : i.request) == "function" ? i.request : V;
|
156
156
|
try {
|
157
157
|
if (!z(e, n))
|
158
158
|
throw new K({ sender: n, to: e });
|
159
|
-
const l = o.includes(
|
159
|
+
const l = o.includes(U) ? await B({
|
160
160
|
data: u,
|
161
161
|
ccipRequest: g
|
162
|
-
}) : await g({ data: u, sender: n, urls: o }), { data: M } = await
|
162
|
+
}) : await g({ data: u, sender: n, urls: o }), { data: M } = await v(t, {
|
163
163
|
blockNumber: s,
|
164
164
|
blockTag: a,
|
165
|
-
data:
|
165
|
+
data: D([
|
166
166
|
f,
|
167
167
|
w([{ type: "bytes" }, { type: "bytes" }], [l, d])
|
168
168
|
]),
|
@@ -193,7 +193,7 @@ async function V({ data: t, sender: s, urls: a }) {
|
|
193
193
|
});
|
194
194
|
let i;
|
195
195
|
if ((e = d.headers.get("Content-Type")) != null && e.startsWith("application/json") ? i = (await d.json()).data : i = await d.text(), !d.ok) {
|
196
|
-
r = new
|
196
|
+
r = new A({
|
197
197
|
body: u,
|
198
198
|
details: i != null && i.error ? q(i.error) : d.statusText,
|
199
199
|
headers: d.headers,
|
@@ -211,7 +211,7 @@ async function V({ data: t, sender: s, urls: a }) {
|
|
211
211
|
}
|
212
212
|
return i;
|
213
213
|
} catch (d) {
|
214
|
-
r = new
|
214
|
+
r = new A({
|
215
215
|
body: u,
|
216
216
|
details: d.message,
|
217
217
|
url: n
|