@blockend/widget 1.0.60 → 1.0.61-beta.2
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-DMVTMB1Z.js +60 -0
- package/dist/{AllRoutes-Bi2Qb6vT.js → AllRoutes-DIWsY_7s.js} +201 -198
- package/dist/{Box-DofFTOO9.js → Box-CSkOh5pT.js} +1 -1
- package/dist/EstGas-D0lMj040.js +1695 -0
- package/dist/{Grow-C7qv-xx7.js → Grow-DArf5BOf.js} +196 -192
- package/dist/{InputComp-B7JBOOCL.js → InputComp-BpwhlO5B.js} +3 -3
- package/dist/{LoadRoute-KBCAhdb3.js → LoadRoute-Dqk83p2o.js} +4 -4
- package/dist/{QuotesProgress-DaVjqEE8.js → QuotesProgress-D-bhAdY6.js} +1 -1
- package/dist/{SwapAsset-ClNXL1XN.js → SwapAsset-CeJghqM4.js} +1 -1
- package/dist/{Tooltip-BfAqBg9y.js → Tooltip-Bo6E3Ppn.js} +9 -6
- package/dist/{TxnButton-41zPru_N.js → TxnButton-06UcI8vZ.js} +75 -72
- package/dist/{add-Dtd6YmCJ.js → add-CnnoTaOE.js} +1 -1
- package/dist/{all-wallets-fWl6fl6Y.js → all-wallets-77I8A1dR.js} +1 -1
- package/dist/{app-store-DSLOwXZY.js → app-store-BHbNWU5O.js} +1 -1
- package/dist/{apple-BMDEkk8X.js → apple-BUqoJ3h4.js} +1 -1
- package/dist/{arrow-bottom-BWURPGva.js → arrow-bottom-BKIkvLUW.js} +1 -1
- package/dist/{arrow-bottom-circle-BR18TdWN.js → arrow-bottom-circle-CmtY1Go0.js} +1 -1
- package/dist/{arrow-left-DSHPaT9f.js → arrow-left-B1RmdyFf.js} +1 -1
- package/dist/{arrow-right-BQyfcxHk.js → arrow-right-DAGdMwrS.js} +1 -1
- package/dist/{arrow-top-RP3srPoV.js → arrow-top-DL8aloED.js} +1 -1
- package/dist/{bank-C9VWqird.js → bank-Cho2fj04.js} +1 -1
- package/dist/{basic-ChmJK0Xt.js → basic-Hq9EE7JN.js} +4 -4
- package/dist/{browser-CSkm7gnt.js → browser-B1tFXGo3.js} +1 -1
- package/dist/{card-qLWgu9c8.js → card-CAIekfsW.js} +1 -1
- package/dist/{ccip-QF_uXtAt.js → ccip-CQW-OT50.js} +1 -1
- package/dist/{checkmark-BmzqmMw0.js → checkmark-CMNFl8gr.js} +1 -1
- package/dist/{checkmark-bold-B6aImdAf.js → checkmark-bold-jZ_-Wln9.js} +1 -1
- package/dist/{chevron-bottom-t4h4eaxS.js → chevron-bottom-BXlfv0v_.js} +1 -1
- package/dist/{chevron-left-D3susSgC.js → chevron-left-CR6Vk7-R.js} +1 -1
- package/dist/{chevron-right-W13sAkua.js → chevron-right-CK7kmFE0.js} +1 -1
- package/dist/{chevron-top-Bx-QdB_J.js → chevron-top-5bB353uT.js} +1 -1
- package/dist/{chrome-store-CGxM7IYK.js → chrome-store-3zRMRPZ3.js} +1 -1
- package/dist/{clock-DLxk1mp4.js → clock-C9VfcQU_.js} +1 -1
- package/dist/{close-XyT_Ei7X.js → close-Dp60_0UW.js} +1 -1
- package/dist/{coinPlaceholder-COnVP39c.js → coinPlaceholder-B9q-Q9nc.js} +1 -1
- package/dist/{compass-B7Ua__ME.js → compass-D1YdDLDZ.js} +1 -1
- package/dist/{copy-CwqmRN0X.js → copy-wpPbMuG7.js} +1 -1
- package/dist/{core-HN_b3jpG.js → core-f2H2Z9Sf.js} +6190 -4570
- package/dist/{cursor-CZUzCZDa.js → cursor-BGD-Vp6U.js} +1 -1
- package/dist/{cursor-transparent-C-iNJp5e.js → cursor-transparent-Df_S-DGP.js} +1 -1
- package/dist/{desktop-CKvUvwiO.js → desktop-xGzb89jl.js} +1 -1
- package/dist/{disconnect-Baq1ttCe.js → disconnect-C-l5x3f5.js} +1 -1
- package/dist/{discord-D8jJPT-u.js → discord-BMihtS7L.js} +1 -1
- package/dist/{down-CbXkinMO.js → down-IP3JFhRv.js} +4 -3
- package/dist/{etherscan-DmvsfmlR.js → etherscan-BIDZ39Go.js} +1 -1
- package/dist/{exclamation-triangle-B5sVL0Op.js → exclamation-triangle-DtY9538O.js} +1 -1
- package/dist/{extension-DTURW9PD.js → extension-nyPuSGEb.js} +1 -1
- package/dist/{external-link-BhiyYwAM.js → external-link-CWQ6mRkJ.js} +1 -1
- package/dist/{facebook-BKU8pCSU.js → facebook-C9YV_9Ud.js} +1 -1
- package/dist/{farcaster-aPuBoT-f.js → farcaster-Bk5tC5cR.js} +1 -1
- package/dist/{filters-Dhcy_bWD.js → filters-Boj-Safw.js} +1 -1
- package/dist/{getChainIds-hFBaLC3P.js → getChainIds-DVwNZAc5.js} +6 -4
- package/dist/{getCosmosAddress-wW2QvGf4.js → getCosmosAddress-DGjk1iF-.js} +2653 -2587
- package/dist/{github-DpOcHBpK.js → github-CqlLNrtO.js} +1 -1
- package/dist/{google-Dlr5X4XZ.js → google-DWRbHt_B.js} +1 -1
- package/dist/{hamburger-CbTP1z8e.js → hamburger-CCqMn9nd.js} +436 -427
- package/dist/{help-circle-DfsreI1-.js → help-circle-Cv5722_F.js} +1 -1
- package/dist/{id-CgVrDv4g.js → id-BpuE8i1h.js} +1 -1
- package/dist/{image-BgZMfISb.js → image-BLabe1u_.js} +1 -1
- package/dist/{index-Doq8prid.js → index-3TDndzHy.js} +1 -1
- package/dist/{index-cmkdh21h.js → index-B7xlfFYR.js} +4 -4
- package/dist/{index-D-h2D2T4.js → index-BMaOhhWB.js} +2 -2
- package/dist/{index-ij8WLtCK.js → index-Bf3Fkna6.js} +32 -18
- package/dist/{index-DTish3yr.js → index-Bl2UpALc.js} +3 -1
- package/dist/{index-BzlNNUJC.js → index-BmPN76Lg.js} +5110 -5034
- package/dist/{index-CzIE4OVR.js → index-C0l8Ijyj.js} +1 -1
- package/dist/{index-W17Yun1B.js → index-DIsRIvWS.js} +78 -78
- package/dist/{index-DEzMTwnP.js → index-DtPZUylH.js} +32 -21
- package/dist/{index-CQef3aFT.js → index-X1wa5bpP.js} +19 -14
- package/dist/{index-Dfnahm9u.js → index-a8BP6V0o.js} +1151 -1134
- package/dist/{index-BNAc3BNQ.js → index-lJKy2Bhi.js} +345 -343
- package/dist/index.es-BvE3zZVY.js +14924 -0
- package/dist/{index.es-DznYPOeF.js → index.es-DLS0SSoV.js} +1 -1
- package/dist/index.es.js +1 -1
- package/dist/{info-CZQMmcBD.js → info-BROBzEn3.js} +1 -1
- package/dist/{info-circle-CA3WSSRD.js → info-circle-BhnTaYwQ.js} +1 -1
- package/dist/{lightbulb-8ISYXfUt.js → lightbulb-BMm8pAvQ.js} +1 -1
- package/dist/{mail-CHIth09p.js → mail-BBH0_xPX.js} +1 -1
- package/dist/{mobile-CrFtClXb.js → mobile-BKmYB0js.js} +1 -1
- package/dist/{more-mHern-4V.js → more-BgKFZ5_N.js} +1 -1
- package/dist/{network-placeholder-CoODkTLk.js → network-placeholder-Bx4Pd_VA.js} +1 -1
- package/dist/{nftPlaceholder-CG7DC4DT.js → nftPlaceholder-CjhjYlRs.js} +1 -1
- package/dist/{off-CrgcN-zp.js → off-CNWZ7rAK.js} +1 -1
- package/dist/{play-store-CQP9kqkp.js → play-store-CLp2fzCO.js} +1 -1
- package/dist/{plus-DHA7xDuc.js → plus-BUG6XdxV.js} +1 -1
- package/dist/{qr-code-zibhnzKq.js → qr-code-C-JVP33d.js} +1 -1
- package/dist/{recycle-horizontal-DywyCULr.js → recycle-horizontal-C0QxOqzM.js} +1 -1
- package/dist/{refresh-e2GocWQK.js → refresh-CyabrC0p.js} +1 -1
- package/dist/{reown-logo-BU64qOXz.js → reown-logo-ULFpSpZD.js} +1 -1
- package/dist/{search-DzxpvkH-.js → search-CzhkDgzL.js} +1 -1
- package/dist/{send-r9Pjl4vo.js → send-3zcoBLqV.js} +1 -1
- package/dist/{swapHorizontal-BTrXWq48.js → swapHorizontal-DkBtpUHQ.js} +1 -1
- package/dist/{swapHorizontalBold-CJqWkgp6.js → swapHorizontalBold-CwigaZ5c.js} +1 -1
- package/dist/{swapHorizontalMedium-DX7hDgRK.js → swapHorizontalMedium-CzzR3-0y.js} +1 -1
- package/dist/{swapHorizontalRoundedBold-C51tXWKa.js → swapHorizontalRoundedBold-C055Y8zs.js} +1 -1
- package/dist/{swapVertical-Crddwuzr.js → swapVertical-d-A3bfm6.js} +1 -1
- package/dist/{telegram-BC6rpZd8.js → telegram--pfczlkG.js} +1 -1
- package/dist/{three-dots-DC9iZV71.js → three-dots-CIEdgWJT.js} +1 -1
- package/dist/{twitch-Dqthmddu.js → twitch-CbcHu1ns.js} +1 -1
- package/dist/{twitterIcon-DIWxOs67.js → twitterIcon-DB90mhmN.js} +1 -1
- package/dist/{unsupportedProp-BW6bMgdV.js → unsupportedProp-BQSrS0LI.js} +1 -1
- package/dist/useRegisterError-NuUdpWyD.js +8923 -0
- package/dist/{verify-GrViE51Y.js → verify-C8Ud6dXo.js} +1 -1
- package/dist/{verify-filled-Cws_QO3X.js → verify-filled-CAbxeIrk.js} +1 -1
- package/dist/{w3m-modal-n7hzVP_I.js → w3m-modal-7qD9ca_a.js} +2 -2
- package/dist/{wallet-Cd1ruTUh.js → wallet-CALjCWYW.js} +1 -1
- package/dist/{wallet-placeholder-Ce4gGswZ.js → wallet-placeholder-2GP-1vJb.js} +1 -1
- package/dist/{walletconnect-CqpJhu9-.js → walletconnect-BuMmu4SH.js} +1 -1
- package/dist/{warning-circle-DQ6ZS1NO.js → warning-circle-CNQ1oGvz.js} +1 -1
- package/dist/widget.css +1 -1
- package/dist/{x-CR749er2.js → x-Bg_5LCup.js} +1 -1
- package/package.json +1 -1
- package/dist/EstGas-w0MeYkJr.js +0 -1574
- package/dist/index.es-C8qSCFHh.js +0 -13234
- package/dist/useRegisterError-D0oAcJrb.js +0 -8918
@@ -1,18 +1,18 @@
|
|
1
1
|
import { jsxs as l, jsx as e, Fragment as ne } from "react/jsx-runtime";
|
2
2
|
import * as v from "react";
|
3
|
-
import
|
4
|
-
import { S as
|
3
|
+
import Fe, { useState as J, useEffect as Pe } from "react";
|
4
|
+
import { S as _e, a as Ae } from "./sortDown-CjBaDQTU.js";
|
5
5
|
import { t as B } from "./truncate-D9t92mVX.js";
|
6
|
-
import { a as kt, m as
|
7
|
-
import { b as
|
8
|
-
import { S as
|
9
|
-
import { T as Pt } from "./Tooltip-
|
10
|
-
import { O as we } from "./index-
|
11
|
-
import { B as _t } from "./Box-
|
12
|
-
import { c as ct, d as it, r as At } from "./index-
|
13
|
-
import { b as dt } from "./Grow-
|
14
|
-
import { B as bt, o as ut } from "./getChainIds-
|
15
|
-
import { u as Wt } from "./unsupportedProp-
|
6
|
+
import { a as kt, m as Ce, j as Ut, l as Re, o as Rt, r as Dt, i as Te, c as ue, f as ye } from "./useRegisterError-NuUdpWyD.js";
|
7
|
+
import { b as Ie, g as Ee, i as We, _ as pe, d as k, e as oe, s as ce, f as at, h as Oe, p as Z, P as r, w as Ft, u as se } from "./index-BmPN76Lg.js";
|
8
|
+
import { S as je, C as Ve, G as ze } from "./clockIcon-C2W5xvyt.js";
|
9
|
+
import { T as Pt } from "./Tooltip-Bo6E3Ppn.js";
|
10
|
+
import { O as we } from "./index-C0l8Ijyj.js";
|
11
|
+
import { B as _t } from "./Box-CSkOh5pT.js";
|
12
|
+
import { c as ct, d as it, r as At } from "./index-3TDndzHy.js";
|
13
|
+
import { b as dt } from "./Grow-DArf5BOf.js";
|
14
|
+
import { B as bt, o as ut } from "./getChainIds-DVwNZAc5.js";
|
15
|
+
import { u as Wt } from "./unsupportedProp-BQSrS0LI.js";
|
16
16
|
let be;
|
17
17
|
function wt() {
|
18
18
|
if (be)
|
@@ -34,9 +34,9 @@ function jt(o, n) {
|
|
34
34
|
}
|
35
35
|
}
|
36
36
|
function Vt(o) {
|
37
|
-
return
|
37
|
+
return Ee("MuiTab", o);
|
38
38
|
}
|
39
|
-
const le =
|
39
|
+
const le = Ie("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrimary", "textColorSecondary", "selected", "disabled", "fullWidth", "wrapped", "iconWrapper"]), zt = ["className", "disabled", "disableFocusRipple", "fullWidth", "icon", "iconPosition", "indicator", "label", "onChange", "onClick", "onFocus", "selected", "selectionFollowsFocus", "textColor", "value", "wrapped"], Ht = (o) => {
|
40
40
|
const {
|
41
41
|
classes: n,
|
42
42
|
textColor: s,
|
@@ -50,7 +50,7 @@ const le = Te("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrim
|
|
50
50
|
root: ["root", a && c && "labelIcon", `textColor${at(s)}`, i && "fullWidth", b && "wrapped", w && "selected", h && "disabled"],
|
51
51
|
iconWrapper: ["iconWrapper"]
|
52
52
|
};
|
53
|
-
return
|
53
|
+
return Oe(O, Vt, n);
|
54
54
|
}, Gt = ce(bt, {
|
55
55
|
name: "MuiTab",
|
56
56
|
slot: "Root",
|
@@ -125,8 +125,8 @@ const le = Te("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrim
|
|
125
125
|
maxWidth: "none"
|
126
126
|
}, n.wrapped && {
|
127
127
|
fontSize: o.typography.pxToRem(12)
|
128
|
-
})),
|
129
|
-
const i =
|
128
|
+
})), Se = /* @__PURE__ */ v.forwardRef(function(n, s) {
|
129
|
+
const i = We({
|
130
130
|
props: n,
|
131
131
|
name: "MuiTab"
|
132
132
|
}), {
|
@@ -146,7 +146,7 @@ const le = Te("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrim
|
|
146
146
|
// eslint-disable-next-line react/prop-types
|
147
147
|
selected: _,
|
148
148
|
// eslint-disable-next-line react/prop-types
|
149
|
-
selectionFollowsFocus:
|
149
|
+
selectionFollowsFocus: f,
|
150
150
|
// eslint-disable-next-line react/prop-types
|
151
151
|
textColor: L = "inherit",
|
152
152
|
value: t,
|
@@ -165,8 +165,8 @@ const le = Te("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrim
|
|
165
165
|
className: oe(S.iconWrapper, h.props.className)
|
166
166
|
}) : h, R = (m) => {
|
167
167
|
!_ && I && I(m, t), P && P(m);
|
168
|
-
},
|
169
|
-
|
168
|
+
}, p = (m) => {
|
169
|
+
f && !_ && I && I(m, t), U && U(m);
|
170
170
|
};
|
171
171
|
return /* @__PURE__ */ l(Gt, k({
|
172
172
|
focusRipple: !c,
|
@@ -176,7 +176,7 @@ const le = Te("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrim
|
|
176
176
|
"aria-selected": _,
|
177
177
|
disabled: a,
|
178
178
|
onClick: R,
|
179
|
-
onFocus:
|
179
|
+
onFocus: p,
|
180
180
|
ownerState: g,
|
181
181
|
tabIndex: _ ? 0 : -1
|
182
182
|
}, y, {
|
@@ -187,7 +187,7 @@ const le = Te("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrim
|
|
187
187
|
}), $]
|
188
188
|
}));
|
189
189
|
});
|
190
|
-
Z.env.NODE_ENV !== "production" && (
|
190
|
+
Z.env.NODE_ENV !== "production" && (Se.propTypes = {
|
191
191
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
192
192
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
193
193
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
@@ -333,15 +333,15 @@ Z.env.NODE_ENV !== "production" && (pt.propTypes = {
|
|
333
333
|
onChange: r.func.isRequired
|
334
334
|
});
|
335
335
|
function Qt(o) {
|
336
|
-
return
|
336
|
+
return Ee("MuiTabScrollButton", o);
|
337
337
|
}
|
338
|
-
const eo =
|
338
|
+
const eo = Ie("MuiTabScrollButton", ["root", "vertical", "horizontal", "disabled"]), to = ["className", "slots", "slotProps", "direction", "orientation", "disabled"], oo = (o) => {
|
339
339
|
const {
|
340
340
|
classes: n,
|
341
341
|
orientation: s,
|
342
342
|
disabled: i
|
343
343
|
} = o;
|
344
|
-
return
|
344
|
+
return Oe({
|
345
345
|
root: ["root", s, i && "disabled"]
|
346
346
|
}, Qt, n);
|
347
347
|
}, no = ce(bt, {
|
@@ -370,7 +370,7 @@ const eo = Te("MuiTabScrollButton", ["root", "vertical", "horizontal", "disabled
|
|
370
370
|
}
|
371
371
|
})), ft = /* @__PURE__ */ v.forwardRef(function(n, s) {
|
372
372
|
var i, b;
|
373
|
-
const a =
|
373
|
+
const a = We({
|
374
374
|
props: n,
|
375
375
|
name: "MuiTabScrollButton"
|
376
376
|
}), {
|
@@ -380,14 +380,14 @@ const eo = Te("MuiTabScrollButton", ["root", "vertical", "horizontal", "disabled
|
|
380
380
|
direction: O
|
381
381
|
} = a, $ = pe(a, to), F = dt(), I = k({
|
382
382
|
isRtl: F
|
383
|
-
}, a), P = oo(I), U = (i = w.StartScrollButtonIcon) != null ? i : Xt, _ = (b = w.EndScrollButtonIcon) != null ? b : qt,
|
383
|
+
}, a), P = oo(I), U = (i = w.StartScrollButtonIcon) != null ? i : Xt, _ = (b = w.EndScrollButtonIcon) != null ? b : qt, f = Ce({
|
384
384
|
elementType: U,
|
385
385
|
externalSlotProps: h.startScrollButtonIcon,
|
386
386
|
additionalProps: {
|
387
387
|
fontSize: "small"
|
388
388
|
},
|
389
389
|
ownerState: I
|
390
|
-
}), L =
|
390
|
+
}), L = Ce({
|
391
391
|
elementType: _,
|
392
392
|
externalSlotProps: h.endScrollButtonIcon,
|
393
393
|
additionalProps: {
|
@@ -403,7 +403,7 @@ const eo = Te("MuiTabScrollButton", ["root", "vertical", "horizontal", "disabled
|
|
403
403
|
ownerState: I,
|
404
404
|
tabIndex: null
|
405
405
|
}, $, {
|
406
|
-
children: O === "left" ? /* @__PURE__ */ e(U, k({},
|
406
|
+
children: O === "left" ? /* @__PURE__ */ e(U, k({}, f)) : /* @__PURE__ */ e(_, k({}, L))
|
407
407
|
}));
|
408
408
|
});
|
409
409
|
Z.env.NODE_ENV !== "production" && (ft.propTypes = {
|
@@ -459,9 +459,9 @@ Z.env.NODE_ENV !== "production" && (ft.propTypes = {
|
|
459
459
|
sx: r.oneOfType([r.arrayOf(r.oneOfType([r.func, r.object, r.bool])), r.func, r.object])
|
460
460
|
});
|
461
461
|
function ro(o) {
|
462
|
-
return
|
462
|
+
return Ee("MuiTabs", o);
|
463
463
|
}
|
464
|
-
const
|
464
|
+
const De = Ie("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVertical", "centered", "scroller", "fixed", "scrollableX", "scrollableY", "hideScrollbar", "scrollButtons", "scrollButtonsHideMobile", "indicator"]), lo = ["aria-label", "aria-labelledby", "action", "centered", "children", "className", "component", "allowScrollButtonsMobile", "indicatorColor", "onChange", "orientation", "ScrollButtonComponent", "scrollButtons", "selectionFollowsFocus", "slots", "slotProps", "TabIndicatorProps", "TabScrollButtonProps", "textColor", "value", "variant", "visibleScrollbar"], nt = (o, n) => o === n ? o.firstChild : n && n.nextElementSibling ? n.nextElementSibling : o.firstChild, rt = (o, n) => o === n ? o.lastChild : n && n.previousElementSibling ? n.previousElementSibling : o.lastChild, ve = (o, n, s) => {
|
465
465
|
let i = !1, b = s(o, n);
|
466
466
|
for (; b; ) {
|
467
467
|
if (b === o.firstChild) {
|
@@ -488,7 +488,7 @@ const Re = Te("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVer
|
|
488
488
|
scrollButtonsHideMobile: w,
|
489
489
|
classes: h
|
490
490
|
} = o;
|
491
|
-
return
|
491
|
+
return Oe({
|
492
492
|
root: ["root", n && "vertical"],
|
493
493
|
scroller: ["scroller", s && "fixed", i && "hideScrollbar", b && "scrollableX", a && "scrollableY"],
|
494
494
|
flexContainer: ["flexContainer", n && "flexContainerVertical", c && "centered"],
|
@@ -505,9 +505,9 @@ const Re = Te("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVer
|
|
505
505
|
ownerState: s
|
506
506
|
} = o;
|
507
507
|
return [{
|
508
|
-
[`& .${
|
508
|
+
[`& .${De.scrollButtons}`]: n.scrollButtons
|
509
509
|
}, {
|
510
|
-
[`& .${
|
510
|
+
[`& .${De.scrollButtons}`]: s.scrollButtonsHideMobile && n.scrollButtonsHideMobile
|
511
511
|
}, n.root, s.vertical && n.vertical];
|
512
512
|
}
|
513
513
|
})(({
|
@@ -522,7 +522,7 @@ const Re = Te("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVer
|
|
522
522
|
}, o.vertical && {
|
523
523
|
flexDirection: "column"
|
524
524
|
}, o.scrollButtonsHideMobile && {
|
525
|
-
[`& .${
|
525
|
+
[`& .${De.scrollButtons}`]: {
|
526
526
|
[n.breakpoints.down("sm")]: {
|
527
527
|
display: "none"
|
528
528
|
}
|
@@ -611,7 +611,7 @@ const Re = Te("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVer
|
|
611
611
|
}), lt = {};
|
612
612
|
let st = !1;
|
613
613
|
const xt = /* @__PURE__ */ v.forwardRef(function(n, s) {
|
614
|
-
const i =
|
614
|
+
const i = We({
|
615
615
|
props: n,
|
616
616
|
name: "MuiTabs"
|
617
617
|
}), b = Ut(), a = dt(), {
|
@@ -625,7 +625,7 @@ const xt = /* @__PURE__ */ v.forwardRef(function(n, s) {
|
|
625
625
|
allowScrollButtonsMobile: P = !1,
|
626
626
|
indicatorColor: U = "primary",
|
627
627
|
onChange: _,
|
628
|
-
orientation:
|
628
|
+
orientation: f = "horizontal",
|
629
629
|
ScrollButtonComponent: L = ft,
|
630
630
|
scrollButtons: t = "auto",
|
631
631
|
selectionFollowsFocus: x,
|
@@ -634,14 +634,14 @@ const xt = /* @__PURE__ */ v.forwardRef(function(n, s) {
|
|
634
634
|
TabIndicatorProps: S = {},
|
635
635
|
TabScrollButtonProps: T = {},
|
636
636
|
textColor: R = "primary",
|
637
|
-
value:
|
637
|
+
value: p,
|
638
638
|
variant: m = "standard",
|
639
639
|
visibleScrollbar: W = !1
|
640
|
-
} = i, G = pe(i, lo), D = m === "scrollable", E =
|
640
|
+
} = i, G = pe(i, lo), D = m === "scrollable", E = f === "vertical", z = E ? "scrollTop" : "scrollLeft", X = E ? "top" : "left", q = E ? "bottom" : "right", Q = E ? "clientHeight" : "clientWidth", H = E ? "height" : "width", j = k({}, i, {
|
641
641
|
component: I,
|
642
642
|
allowScrollButtonsMobile: P,
|
643
643
|
indicatorColor: U,
|
644
|
-
orientation:
|
644
|
+
orientation: f,
|
645
645
|
vertical: E,
|
646
646
|
scrollButtons: t,
|
647
647
|
textColor: R,
|
@@ -653,20 +653,20 @@ const xt = /* @__PURE__ */ v.forwardRef(function(n, s) {
|
|
653
653
|
scrollableY: D && E,
|
654
654
|
centered: O && !D,
|
655
655
|
scrollButtonsHideMobile: !P
|
656
|
-
}), M = so(j), Y =
|
656
|
+
}), M = so(j), Y = Ce({
|
657
657
|
elementType: y.StartScrollButtonIcon,
|
658
658
|
externalSlotProps: g.startScrollButtonIcon,
|
659
659
|
ownerState: j
|
660
|
-
}), K =
|
660
|
+
}), K = Ce({
|
661
661
|
elementType: y.EndScrollButtonIcon,
|
662
662
|
externalSlotProps: g.endScrollButtonIcon,
|
663
663
|
ownerState: j
|
664
664
|
});
|
665
|
-
Z.env.NODE_ENV;
|
666
|
-
const [
|
665
|
+
Z.env.NODE_ENV !== "production" && O && D && console.error('MUI: You can not use the `centered={true}` and `variant="scrollable"` properties at the same time on a `Tabs` component.');
|
666
|
+
const [Ge, St] = v.useState(!1), [ie, Xe] = v.useState(lt), [qe, Nt] = v.useState(!1), [Ye, Ct] = v.useState(!1), [Ke, Tt] = v.useState(!1), [Ze, It] = v.useState({
|
667
667
|
overflow: "hidden",
|
668
668
|
scrollbarWidth: 0
|
669
|
-
}),
|
669
|
+
}), he = /* @__PURE__ */ new Map(), te = v.useRef(null), de = v.useRef(null), Je = () => {
|
670
670
|
const d = te.current;
|
671
671
|
let u;
|
672
672
|
if (d) {
|
@@ -684,19 +684,21 @@ const xt = /* @__PURE__ */ v.forwardRef(function(n, s) {
|
|
684
684
|
};
|
685
685
|
}
|
686
686
|
let N;
|
687
|
-
if (d &&
|
687
|
+
if (d && p !== !1) {
|
688
688
|
const C = de.current.children;
|
689
689
|
if (C.length > 0) {
|
690
|
-
const A = C[
|
691
|
-
Z.env.NODE_ENV
|
692
|
-
|
690
|
+
const A = C[he.get(p)];
|
691
|
+
Z.env.NODE_ENV !== "production" && (A || console.error(["MUI: The `value` provided to the Tabs component is invalid.", `None of the Tabs' children match with "${p}".`, he.keys ? `You can provide one of the following values: ${Array.from(he.keys()).join(", ")}.` : null].join(`
|
692
|
+
`))), N = A ? A.getBoundingClientRect() : null, Z.env.NODE_ENV !== "production" && Z.env.NODE_ENV !== "test" && !st && N && N.width === 0 && N.height === 0 && // if the whole Tabs component is hidden, don't warn
|
693
|
+
u.clientWidth !== 0 && (u = null, console.error(["MUI: The `value` provided to the Tabs component is invalid.", `The Tab with this \`value\` ("${p}") is not part of the document layout.`, "Make sure the tab item is present in the document or that it's not `display: none`."].join(`
|
694
|
+
`)), st = !0);
|
693
695
|
}
|
694
696
|
}
|
695
697
|
return {
|
696
698
|
tabsMeta: u,
|
697
699
|
tabMeta: N
|
698
700
|
};
|
699
|
-
}, fe =
|
701
|
+
}, fe = Re(() => {
|
700
702
|
const {
|
701
703
|
tabsMeta: d,
|
702
704
|
tabMeta: u
|
@@ -714,12 +716,12 @@ const xt = /* @__PURE__ */ v.forwardRef(function(n, s) {
|
|
714
716
|
[H]: u ? u[H] : 0
|
715
717
|
};
|
716
718
|
if (isNaN(ie[C]) || isNaN(ie[H]))
|
717
|
-
|
719
|
+
Xe(A);
|
718
720
|
else {
|
719
721
|
const V = Math.abs(ie[C] - A[C]), ee = Math.abs(ie[H] - A[H]);
|
720
|
-
(V >= 1 || ee >= 1) &&
|
722
|
+
(V >= 1 || ee >= 1) && Xe(A);
|
721
723
|
}
|
722
|
-
}),
|
724
|
+
}), $e = (d, {
|
723
725
|
animation: u = !0
|
724
726
|
} = {}) => {
|
725
727
|
u ? Kt(z, te.current, d, {
|
@@ -727,7 +729,7 @@ const xt = /* @__PURE__ */ v.forwardRef(function(n, s) {
|
|
727
729
|
}) : te.current[z] = d;
|
728
730
|
}, Qe = (d) => {
|
729
731
|
let u = te.current[z];
|
730
|
-
E ? u += d : (u += d * (a ? -1 : 1), u *= a && wt() === "reverse" ? -1 : 1),
|
732
|
+
E ? u += d : (u += d * (a ? -1 : 1), u *= a && wt() === "reverse" ? -1 : 1), $e(u);
|
731
733
|
}, et = () => {
|
732
734
|
const d = te.current[Q];
|
733
735
|
let u = 0;
|
@@ -756,7 +758,7 @@ const xt = /* @__PURE__ */ v.forwardRef(function(n, s) {
|
|
756
758
|
onChange: Bt,
|
757
759
|
className: oe(M.scrollableX, M.hideScrollbar)
|
758
760
|
}) : null;
|
759
|
-
const N = D && (t === "auto" && (
|
761
|
+
const N = D && (t === "auto" && (qe || Ye) || t === !0);
|
760
762
|
return d.scrollButtonStart = N ? /* @__PURE__ */ e(L, k({
|
761
763
|
slots: {
|
762
764
|
StartScrollButtonIcon: y.StartScrollButtonIcon
|
@@ -764,10 +766,10 @@ const xt = /* @__PURE__ */ v.forwardRef(function(n, s) {
|
|
764
766
|
slotProps: {
|
765
767
|
startScrollButtonIcon: Y
|
766
768
|
},
|
767
|
-
orientation:
|
769
|
+
orientation: f,
|
768
770
|
direction: a ? "right" : "left",
|
769
771
|
onClick: Et,
|
770
|
-
disabled: !
|
772
|
+
disabled: !qe
|
771
773
|
}, T, {
|
772
774
|
className: oe(M.scrollButtons, T.className)
|
773
775
|
})) : null, d.scrollButtonEnd = N ? /* @__PURE__ */ e(L, k({
|
@@ -777,14 +779,14 @@ const xt = /* @__PURE__ */ v.forwardRef(function(n, s) {
|
|
777
779
|
slotProps: {
|
778
780
|
endScrollButtonIcon: K
|
779
781
|
},
|
780
|
-
orientation:
|
782
|
+
orientation: f,
|
781
783
|
direction: a ? "left" : "right",
|
782
784
|
onClick: Ot,
|
783
|
-
disabled: !
|
785
|
+
disabled: !Ye
|
784
786
|
}, T, {
|
785
787
|
className: oe(M.scrollButtons, T.className)
|
786
788
|
})) : null, d;
|
787
|
-
}, tt =
|
789
|
+
}, tt = Re((d) => {
|
788
790
|
const {
|
789
791
|
tabsMeta: u,
|
790
792
|
tabMeta: N
|
@@ -792,18 +794,18 @@ const xt = /* @__PURE__ */ v.forwardRef(function(n, s) {
|
|
792
794
|
if (!(!N || !u)) {
|
793
795
|
if (N[X] < u[X]) {
|
794
796
|
const C = u[z] + (N[X] - u[X]);
|
795
|
-
|
797
|
+
$e(C, {
|
796
798
|
animation: d
|
797
799
|
});
|
798
800
|
} else if (N[q] > u[q]) {
|
799
801
|
const C = u[z] + (N[q] - u[q]);
|
800
|
-
|
802
|
+
$e(C, {
|
801
803
|
animation: d
|
802
804
|
});
|
803
805
|
}
|
804
806
|
}
|
805
|
-
}),
|
806
|
-
D && t !== !1 && Tt(!
|
807
|
+
}), me = Re(() => {
|
808
|
+
D && t !== !1 && Tt(!Ke);
|
807
809
|
});
|
808
810
|
v.useEffect(() => {
|
809
811
|
const d = it(() => {
|
@@ -819,7 +821,7 @@ const xt = /* @__PURE__ */ v.forwardRef(function(n, s) {
|
|
819
821
|
var re;
|
820
822
|
(re = u) == null || re.observe(xe);
|
821
823
|
});
|
822
|
-
}), d(),
|
824
|
+
}), d(), me();
|
823
825
|
}, C = ut(te.current);
|
824
826
|
C.addEventListener("resize", d);
|
825
827
|
let A;
|
@@ -831,24 +833,24 @@ const xt = /* @__PURE__ */ v.forwardRef(function(n, s) {
|
|
831
833
|
var V, ee;
|
832
834
|
d.clear(), C.removeEventListener("resize", d), (V = A) == null || V.disconnect(), (ee = u) == null || ee.disconnect();
|
833
835
|
};
|
834
|
-
}, [fe,
|
836
|
+
}, [fe, me]), v.useEffect(() => {
|
835
837
|
const d = Array.from(de.current.children), u = d.length;
|
836
838
|
if (typeof IntersectionObserver < "u" && u > 0 && D && t !== !1) {
|
837
839
|
const N = d[0], C = d[u - 1], A = {
|
838
840
|
root: te.current,
|
839
841
|
threshold: 0.99
|
840
|
-
}, V = (
|
841
|
-
Nt(!
|
842
|
+
}, V = (Ue) => {
|
843
|
+
Nt(!Ue[0].isIntersecting);
|
842
844
|
}, ee = new IntersectionObserver(V, A);
|
843
845
|
ee.observe(N);
|
844
|
-
const xe = (
|
845
|
-
Ct(!
|
846
|
+
const xe = (Ue) => {
|
847
|
+
Ct(!Ue[0].isIntersecting);
|
846
848
|
}, re = new IntersectionObserver(xe, A);
|
847
849
|
return re.observe(C), () => {
|
848
850
|
ee.disconnect(), re.disconnect();
|
849
851
|
};
|
850
852
|
}
|
851
|
-
}, [D, t,
|
853
|
+
}, [D, t, Ke, $ == null ? void 0 : $.length]), v.useEffect(() => {
|
852
854
|
St(!0);
|
853
855
|
}, []), v.useEffect(() => {
|
854
856
|
fe();
|
@@ -856,78 +858,79 @@ const xt = /* @__PURE__ */ v.forwardRef(function(n, s) {
|
|
856
858
|
tt(lt !== ie);
|
857
859
|
}, [tt, ie]), v.useImperativeHandle(h, () => ({
|
858
860
|
updateIndicator: fe,
|
859
|
-
updateScrollButtons:
|
860
|
-
}), [fe,
|
861
|
+
updateScrollButtons: me
|
862
|
+
}), [fe, me]);
|
861
863
|
const ot = /* @__PURE__ */ e(bo, k({}, S, {
|
862
864
|
className: oe(M.indicator, S.className),
|
863
865
|
ownerState: j,
|
864
866
|
style: k({}, ie, S.style)
|
865
867
|
}));
|
866
|
-
let
|
868
|
+
let ge = 0;
|
867
869
|
const Mt = v.Children.map($, (d) => {
|
868
870
|
if (!/* @__PURE__ */ v.isValidElement(d))
|
869
871
|
return null;
|
870
|
-
Z.env.NODE_ENV !== "production" && At.isFragment(d)
|
871
|
-
|
872
|
-
|
873
|
-
|
874
|
-
|
872
|
+
Z.env.NODE_ENV !== "production" && At.isFragment(d) && console.error(["MUI: The Tabs component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
|
873
|
+
`));
|
874
|
+
const u = d.props.value === void 0 ? ge : d.props.value;
|
875
|
+
he.set(u, ge);
|
876
|
+
const N = u === p;
|
877
|
+
return ge += 1, /* @__PURE__ */ v.cloneElement(d, k({
|
875
878
|
fullWidth: m === "fullWidth",
|
876
|
-
indicator: N && !
|
879
|
+
indicator: N && !Ge && ot,
|
877
880
|
selected: N,
|
878
881
|
selectionFollowsFocus: x,
|
879
882
|
onChange: _,
|
880
883
|
textColor: R,
|
881
884
|
value: u
|
882
|
-
},
|
885
|
+
}, ge === 1 && p === !1 && !d.props.tabIndex ? {
|
883
886
|
tabIndex: 0
|
884
887
|
} : {}));
|
885
888
|
}), $t = (d) => {
|
886
889
|
const u = de.current, N = Rt(u).activeElement;
|
887
890
|
if (N.getAttribute("role") !== "tab")
|
888
891
|
return;
|
889
|
-
let A =
|
890
|
-
switch (
|
892
|
+
let A = f === "horizontal" ? "ArrowLeft" : "ArrowUp", V = f === "horizontal" ? "ArrowRight" : "ArrowDown";
|
893
|
+
switch (f === "horizontal" && a && (A = "ArrowRight", V = "ArrowLeft"), d.key) {
|
891
894
|
case A:
|
892
|
-
d.preventDefault(),
|
895
|
+
d.preventDefault(), ve(u, N, rt);
|
893
896
|
break;
|
894
897
|
case V:
|
895
|
-
d.preventDefault(),
|
898
|
+
d.preventDefault(), ve(u, N, nt);
|
896
899
|
break;
|
897
900
|
case "Home":
|
898
|
-
d.preventDefault(),
|
901
|
+
d.preventDefault(), ve(u, null, nt);
|
899
902
|
break;
|
900
903
|
case "End":
|
901
|
-
d.preventDefault(),
|
904
|
+
d.preventDefault(), ve(u, null, rt);
|
902
905
|
break;
|
903
906
|
}
|
904
|
-
},
|
907
|
+
}, ke = Lt();
|
905
908
|
return /* @__PURE__ */ l(ao, k({
|
906
909
|
className: oe(M.root, F),
|
907
910
|
ownerState: j,
|
908
911
|
ref: s,
|
909
912
|
as: I
|
910
913
|
}, G, {
|
911
|
-
children: [
|
914
|
+
children: [ke.scrollButtonStart, ke.scrollbarSizeListener, /* @__PURE__ */ l(co, {
|
912
915
|
className: M.scroller,
|
913
916
|
ownerState: j,
|
914
917
|
style: {
|
915
|
-
overflow:
|
916
|
-
[E ? `margin${a ? "Left" : "Right"}` : "marginBottom"]: W ? void 0 : -
|
918
|
+
overflow: Ze.overflow,
|
919
|
+
[E ? `margin${a ? "Left" : "Right"}` : "marginBottom"]: W ? void 0 : -Ze.scrollbarWidth
|
917
920
|
},
|
918
921
|
ref: te,
|
919
922
|
children: [/* @__PURE__ */ e(io, {
|
920
923
|
"aria-label": c,
|
921
924
|
"aria-labelledby": w,
|
922
|
-
"aria-orientation":
|
925
|
+
"aria-orientation": f === "vertical" ? "vertical" : null,
|
923
926
|
className: M.flexContainer,
|
924
927
|
ownerState: j,
|
925
928
|
onKeyDown: $t,
|
926
929
|
ref: de,
|
927
930
|
role: "tablist",
|
928
931
|
children: Mt
|
929
|
-
}),
|
930
|
-
}),
|
932
|
+
}), Ge && ot]
|
933
|
+
}), ke.scrollButtonEnd]
|
931
934
|
}));
|
932
935
|
});
|
933
936
|
Z.env.NODE_ENV !== "production" && (xt.propTypes = {
|
@@ -1079,8 +1082,8 @@ Z.env.NODE_ENV !== "production" && (xt.propTypes = {
|
|
1079
1082
|
*/
|
1080
1083
|
visibleScrollbar: r.bool
|
1081
1084
|
});
|
1082
|
-
const
|
1083
|
-
Z.env.NODE_ENV !== "production" && (
|
1085
|
+
const He = /* @__PURE__ */ v.createContext(null);
|
1086
|
+
Z.env.NODE_ENV !== "production" && (He.displayName = "TabContext");
|
1084
1087
|
function wo() {
|
1085
1088
|
const [o, n] = v.useState(null);
|
1086
1089
|
return v.useEffect(() => {
|
@@ -1095,7 +1098,7 @@ function ht(o) {
|
|
1095
1098
|
idPrefix: i,
|
1096
1099
|
value: s
|
1097
1100
|
}), [i, s]);
|
1098
|
-
return /* @__PURE__ */ e(
|
1101
|
+
return /* @__PURE__ */ e(He.Provider, {
|
1099
1102
|
value: b,
|
1100
1103
|
children: n
|
1101
1104
|
});
|
@@ -1115,7 +1118,7 @@ Z.env.NODE_ENV !== "production" && (ht.propTypes = {
|
|
1115
1118
|
value: r.oneOfType([r.number, r.string]).isRequired
|
1116
1119
|
});
|
1117
1120
|
function mt() {
|
1118
|
-
return v.useContext(
|
1121
|
+
return v.useContext(He);
|
1119
1122
|
}
|
1120
1123
|
function gt(o, n) {
|
1121
1124
|
const {
|
@@ -1157,14 +1160,14 @@ Z.env.NODE_ENV !== "production" && (yt.propTypes = {
|
|
1157
1160
|
children: r.node
|
1158
1161
|
});
|
1159
1162
|
function fo(o) {
|
1160
|
-
return
|
1163
|
+
return Ee("MuiTabPanel", o);
|
1161
1164
|
}
|
1162
|
-
|
1165
|
+
Ie("MuiTabPanel", ["root"]);
|
1163
1166
|
const xo = ["children", "className", "value"], ho = (o) => {
|
1164
1167
|
const {
|
1165
1168
|
classes: n
|
1166
1169
|
} = o;
|
1167
|
-
return
|
1170
|
+
return Oe({
|
1168
1171
|
root: ["root"]
|
1169
1172
|
}, fo, n);
|
1170
1173
|
}, mo = ce("div", {
|
@@ -1175,7 +1178,7 @@ const xo = ["children", "className", "value"], ho = (o) => {
|
|
1175
1178
|
theme: o
|
1176
1179
|
}) => ({
|
1177
1180
|
padding: o.spacing(3)
|
1178
|
-
})),
|
1181
|
+
})), Ne = /* @__PURE__ */ v.forwardRef(function(n, s) {
|
1179
1182
|
const i = Ft({
|
1180
1183
|
props: n,
|
1181
1184
|
name: "MuiTabPanel"
|
@@ -1199,7 +1202,7 @@ const xo = ["children", "className", "value"], ho = (o) => {
|
|
1199
1202
|
children: c === $.value && b
|
1200
1203
|
}));
|
1201
1204
|
});
|
1202
|
-
Z.env.NODE_ENV !== "production" && (
|
1205
|
+
Z.env.NODE_ENV !== "production" && (Ne.propTypes = {
|
1203
1206
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
1204
1207
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
1205
1208
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
@@ -1262,7 +1265,7 @@ function ae({ name: o, children: n }) {
|
|
1262
1265
|
}
|
1263
1266
|
);
|
1264
1267
|
}
|
1265
|
-
function
|
1268
|
+
function Be({ fill: o, spinnerColor: n, stopColor: s }) {
|
1266
1269
|
return /* @__PURE__ */ l(
|
1267
1270
|
"svg",
|
1268
1271
|
{
|
@@ -1342,7 +1345,7 @@ function Oe({ fill: o, spinnerColor: n, stopColor: s }) {
|
|
1342
1345
|
}
|
1343
1346
|
);
|
1344
1347
|
}
|
1345
|
-
function
|
1348
|
+
function Le({ fill: o }) {
|
1346
1349
|
return /* @__PURE__ */ l(
|
1347
1350
|
"svg",
|
1348
1351
|
{
|
@@ -1398,7 +1401,7 @@ function Be({ fill: o }) {
|
|
1398
1401
|
}
|
1399
1402
|
);
|
1400
1403
|
}
|
1401
|
-
function
|
1404
|
+
function Me({ fill: o }) {
|
1402
1405
|
return /* @__PURE__ */ l(
|
1403
1406
|
"svg",
|
1404
1407
|
{
|
@@ -1454,14 +1457,14 @@ function Le({ fill: o }) {
|
|
1454
1457
|
}
|
1455
1458
|
function go({ gasImg: o, item: n, fromChain: s }) {
|
1456
1459
|
const [i, b] = J({});
|
1457
|
-
return
|
1460
|
+
return Pe(() => {
|
1458
1461
|
var c;
|
1459
1462
|
let a = { amountInUSD: 0 };
|
1460
1463
|
(c = n == null ? void 0 : n.fee) == null || c.forEach((w) => {
|
1461
1464
|
w.source == "FROM_SOURCE_WALLET" && (a.amountInUSD += Number(w.amountInUSD));
|
1462
1465
|
}), b(a);
|
1463
1466
|
}, [n]), /* @__PURE__ */ l("div", { className: "bw-flex bw-text-sm bw-items-center bw-gap-x-1", children: [
|
1464
|
-
/* @__PURE__ */ e(
|
1467
|
+
/* @__PURE__ */ e(ze, { fill: "var(--tw-text-secondary)" }),
|
1465
1468
|
/* @__PURE__ */ l("p", { children: [
|
1466
1469
|
"$",
|
1467
1470
|
ue((i == null ? void 0 : i.amountInUSD) || 0, 6) || 0
|
@@ -1469,41 +1472,41 @@ function go({ gasImg: o, item: n, fromChain: s }) {
|
|
1469
1472
|
] });
|
1470
1473
|
}
|
1471
1474
|
function vo({ routes: o, handleShowAllRoutes: n, handleRoutesData: s, convertVal: i, fromChain: b, toChain: a, sort: c }) {
|
1472
|
-
var _,
|
1473
|
-
const w = se((t) => t.configuration), { gasnew: h, defaultCoin: O } =
|
1475
|
+
var _, f, L;
|
1476
|
+
const w = se((t) => t.configuration), { gasnew: h, defaultCoin: O } = Te, [$, F] = J({}), [I, P] = J({});
|
1474
1477
|
function U(t, x, y) {
|
1475
1478
|
var W;
|
1476
1479
|
B((t == null ? void 0 : t.minOutputAmountDisplay) * ((W = t == null ? void 0 : t.to) == null ? void 0 : W.lastPrice) || 0, 4);
|
1477
|
-
let S = t.outputAmountDisplay * (i || 0) || 0, T = (x[x.length - 1].outputAmountDisplay || "") * i, R = (x[0].outputAmountDisplay || "") * i,
|
1480
|
+
let S = t.outputAmountDisplay * (i || 0) || 0, T = (x[x.length - 1].outputAmountDisplay || "") * i, R = (x[0].outputAmountDisplay || "") * i, p = c == "asc" ? T : R, m = c == "asc" ? R : T;
|
1478
1481
|
return y == 0 && c !== "asc" || y == x.length - 1 && c == "asc" ? {
|
1479
1482
|
val: /* @__PURE__ */ l("p", { className: "bw-text-[10px] bw-text-text-secondary bw-font-normal", children: [
|
1480
|
-
/* @__PURE__ */ e("span", { className: "bw-text-text-greentext", children: `+$${ue(
|
1483
|
+
/* @__PURE__ */ e("span", { className: "bw-text-text-greentext", children: `+$${ue(ye(p - m), 12)}` }),
|
1481
1484
|
" Higher Output"
|
1482
1485
|
] }),
|
1483
1486
|
isMax: !0
|
1484
1487
|
} : y == x.length - 1 && c !== "asc" || y === 0 && c == "asc" ? {
|
1485
1488
|
val: /* @__PURE__ */ l("p", { className: "bw-text-[10px] bw-text-text-secondary bw-font-normal", children: [
|
1486
|
-
/* @__PURE__ */ e("span", { className: `${
|
1489
|
+
/* @__PURE__ */ e("span", { className: `${p - m === 0 ? "bw-text-text-greentext" : "bw-bg-background-container"}`, children: `-$${ue(ye(p - m), 12)}` }),
|
1487
1490
|
" ",
|
1488
|
-
|
1491
|
+
p - m === 0 ? "Higher Output" : "Less Output"
|
1489
1492
|
] }),
|
1490
|
-
isMax:
|
1493
|
+
isMax: p - m === 0
|
1491
1494
|
} : {
|
1492
1495
|
val: /* @__PURE__ */ l("p", { className: "bw-text-[10px] bw-text-text-secondary bw-font-normal", children: [
|
1493
|
-
/* @__PURE__ */ e("span", { className: `${
|
1496
|
+
/* @__PURE__ */ e("span", { className: `${p - S === 0 ? "bw-text-text-greentext" : "bw-bg-background-container"}`, children: `-$${ue(ye(p - S), 12)}` }),
|
1494
1497
|
" ",
|
1495
|
-
|
1498
|
+
p - S === 0 ? "Higher Output" : "Less Output"
|
1496
1499
|
] }),
|
1497
|
-
isMax:
|
1500
|
+
isMax: p - S === 0
|
1498
1501
|
};
|
1499
1502
|
}
|
1500
|
-
return /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e("div", { className: "bw-h-[410px] bw-pt-2 bw-overflow-y-auto", children: (L = (
|
1503
|
+
return /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e("div", { className: "bw-h-[410px] bw-pt-2 bw-overflow-y-auto", children: (L = (f = (_ = o.data) == null ? void 0 : _.data) == null ? void 0 : f.quotes) == null ? void 0 : L.sort((t, x) => {
|
1501
1504
|
let y = Number(t.outputAmountDisplay || 0), g = Number(x.outputAmountDisplay || 0);
|
1502
1505
|
return c === "asc" ? y - g : g - y;
|
1503
1506
|
}).map((t, x, y) => {
|
1504
|
-
var R,
|
1507
|
+
var R, p, m, W, G, D, E, z, X, q, Q, H, j;
|
1505
1508
|
const g = U(t, y, x);
|
1506
|
-
let S = (t == null ? void 0 : t.outputAmountDisplay) || "", T = (
|
1509
|
+
let S = (t == null ? void 0 : t.outputAmountDisplay) || "", T = (p = (R = t == null ? void 0 : t.providerDetails) == null ? void 0 : R.logoUrl) != null && p.length ? (m = t == null ? void 0 : t.providerDetails) == null ? void 0 : m.logoUrl : O;
|
1507
1510
|
return /* @__PURE__ */ e(
|
1508
1511
|
"div",
|
1509
1512
|
{
|
@@ -1520,9 +1523,9 @@ function vo({ routes: o, handleShowAllRoutes: n, handleRoutesData: s, convertVal
|
|
1520
1523
|
className: " bw-w-[93%] bw-mt-3 bw-cursor-pointer bw-ml-auto bw-mr-2 bw-flex bw-mb-8 bw-items-center bw-px-2 bw-relative bw-rounded-lg bw-pt-3 bw-pb-3 bw-border bw-border-border-primary",
|
1521
1524
|
children: [
|
1522
1525
|
/* @__PURE__ */ l("div", { className: "bw-absolute bw-flex bw-items-center bw-gap-x-1 bw-bottom-[-10%] bw-self-center bw-right-[47%]", children: [
|
1523
|
-
(D = t.tags) != null && D.includes("BEST_OUTPUT") ? /* @__PURE__ */ e(ae, { name: "Max Output", children: /* @__PURE__ */ e("div", { className: "bw-w-[20px] bw-h-[20px]", children: /* @__PURE__ */ e(
|
1524
|
-
(E = t.tags) != null && E.includes("CHEAP") ? /* @__PURE__ */ e(ae, { name: "Lowest Gas", children: /* @__PURE__ */ e("div", { className: "bw-w-[20px] bw-h-[20px]", children: /* @__PURE__ */ e(
|
1525
|
-
(z = t.tags) != null && z.includes("FAST") ? /* @__PURE__ */ e("div", { className: "bw-w-[20px] bw-h-[20px]", children: /* @__PURE__ */ e(
|
1526
|
+
(D = t.tags) != null && D.includes("BEST_OUTPUT") ? /* @__PURE__ */ e(ae, { name: "Max Output", children: /* @__PURE__ */ e("div", { className: "bw-w-[20px] bw-h-[20px]", children: /* @__PURE__ */ e(Be, { fill: "var(--tw-background-container)" }) }) }) : /* @__PURE__ */ e(ne, {}),
|
1527
|
+
(E = t.tags) != null && E.includes("CHEAP") ? /* @__PURE__ */ e(ae, { name: "Lowest Gas", children: /* @__PURE__ */ e("div", { className: "bw-w-[20px] bw-h-[20px]", children: /* @__PURE__ */ e(Le, { fill: "var(--tw-background-container)" }) }) }) : /* @__PURE__ */ e(ne, {}),
|
1528
|
+
(z = t.tags) != null && z.includes("FAST") ? /* @__PURE__ */ e("div", { className: "bw-w-[20px] bw-h-[20px]", children: /* @__PURE__ */ e(Me, { fill: "var(--tw-background-container)" }) }) : /* @__PURE__ */ e(ne, {})
|
1526
1529
|
] }),
|
1527
1530
|
/* @__PURE__ */ e("div", { className: "bw-w-[35px] bw-h-[35px] bw-absolute bw-z-50 bw-left-[-5%] bw-top-[-16%]", children: /* @__PURE__ */ e("img", { src: T, className: "bw-rounded-lg ", width: 35, height: 35 }) }),
|
1528
1531
|
/* @__PURE__ */ l("div", { className: "bw-absolute bw-text-[10px] bw-text-text-primary bw-font-normal bw-left-5 bw-top-1", children: [
|
@@ -1539,7 +1542,7 @@ function vo({ routes: o, handleShowAllRoutes: n, handleRoutesData: s, convertVal
|
|
1539
1542
|
] }),
|
1540
1543
|
/* @__PURE__ */ l("div", { className: "bw-flex bw-items-center bw-gap-x-1", children: [
|
1541
1544
|
/* @__PURE__ */ l("div", { className: "bw-flex bw-items-center bw-gap-x-1", children: [
|
1542
|
-
/* @__PURE__ */ e(
|
1545
|
+
/* @__PURE__ */ e(je, { fill: "var(--tw-text-secondary)" }),
|
1543
1546
|
/* @__PURE__ */ l("p", { className: "bw-text-xs bw-font-normal bw-text-text-secondary", children: [
|
1544
1547
|
t.steps.length,
|
1545
1548
|
" Step"
|
@@ -1569,7 +1572,7 @@ function vo({ routes: o, handleShowAllRoutes: n, handleRoutesData: s, convertVal
|
|
1569
1572
|
] }) }),
|
1570
1573
|
/* @__PURE__ */ l("div", { className: "bw-text-sm bw-flex bw-items-center bw-gap-x-2 bw-font-medium bw-text-text-secondary", children: [
|
1571
1574
|
/* @__PURE__ */ l("div", { className: "bw-flex bw-text-sm bw-items-center bw-gap-x-1", children: [
|
1572
|
-
/* @__PURE__ */ e(
|
1575
|
+
/* @__PURE__ */ e(Ve, { fill: "var(--tw-text-secondary)" }),
|
1573
1576
|
/* @__PURE__ */ l("p", { children: [
|
1574
1577
|
" ",
|
1575
1578
|
t.estimatedTimeInSeconds >= 90 ? `${Math.round(B((t.estimatedTimeInSeconds || 60) / 60, 2) || 0)}min` : `${(t == null ? void 0 : t.estimatedTimeInSeconds) || 60} secs`
|
@@ -1588,14 +1591,14 @@ function vo({ routes: o, handleShowAllRoutes: n, handleRoutesData: s, convertVal
|
|
1588
1591
|
}
|
1589
1592
|
function yo({ gasImg: o, item: n, fromChain: s }) {
|
1590
1593
|
const [i, b] = J({});
|
1591
|
-
return
|
1594
|
+
return Pe(() => {
|
1592
1595
|
var c;
|
1593
1596
|
let a = { amountInUSD: 0 };
|
1594
1597
|
(c = n == null ? void 0 : n.fee) == null || c.forEach((w) => {
|
1595
1598
|
w.source == "FROM_SOURCE_WALLET" && (a.amountInUSD += Number(w.amountInUSD));
|
1596
1599
|
}), b(a);
|
1597
1600
|
}, [n]), /* @__PURE__ */ l("div", { className: "bw-flex bw-text-sm bw-items-center bw-gap-x-1", children: [
|
1598
|
-
/* @__PURE__ */ e(
|
1601
|
+
/* @__PURE__ */ e(ze, { fill: "var(--tw-text-secondary)" }),
|
1599
1602
|
/* @__PURE__ */ l("p", { children: [
|
1600
1603
|
"$",
|
1601
1604
|
ue((i == null ? void 0 : i.amountInUSD) || 0, 6) || 0
|
@@ -1603,8 +1606,8 @@ function yo({ gasImg: o, item: n, fromChain: s }) {
|
|
1603
1606
|
] });
|
1604
1607
|
}
|
1605
1608
|
function So({ routes: o, handleShowAllRoutes: n, handleRoutesData: s, convertVal: i, fromChain: b, sort: a, toChain: c }) {
|
1606
|
-
var _,
|
1607
|
-
const { gasnew: w, defaultCoin: h } =
|
1609
|
+
var _, f, L;
|
1610
|
+
const { gasnew: w, defaultCoin: h } = Te, [O, $] = J({}), [F, I] = J({}), P = se((t) => t.configuration);
|
1608
1611
|
function U(t, x, y) {
|
1609
1612
|
var W, G, D;
|
1610
1613
|
let g = { amountInUSD: 0 };
|
@@ -1619,52 +1622,52 @@ function So({ routes: o, handleShowAllRoutes: n, handleRoutesData: s, convertVal
|
|
1619
1622
|
(D = x[x.length - 1].fee) == null || D.forEach((E) => {
|
1620
1623
|
E.source == "FROM_SOURCE_WALLET" && (R.amountInUSD += Number(E.amountInUSD));
|
1621
1624
|
});
|
1622
|
-
let
|
1625
|
+
let p = a === "desc" ? R.amountInUSD : T.amountInUSD, m = a === "desc" ? T.amountInUSD : R.amountInUSD;
|
1623
1626
|
return y == 0 && a !== "desc" || y == x.length - 1 && a == "desc" ? {
|
1624
1627
|
val: /* @__PURE__ */ l("p", { className: "bw-text-[10px] bw-text-text-secondary bw-font-normal", children: [
|
1625
|
-
/* @__PURE__ */ e("span", { className: "bw-text-text-greentext", children: `$${B(m -
|
1628
|
+
/* @__PURE__ */ e("span", { className: "bw-text-text-greentext", children: `$${B(m - p, 4)}` }),
|
1626
1629
|
" Cheaper"
|
1627
1630
|
] }),
|
1628
1631
|
isMax: !0
|
1629
1632
|
} : y === 0 && a !== "desc" ? {
|
1630
1633
|
val: /* @__PURE__ */ l("p", { className: "bw-text-[10px] bw-text-text-secondary bw-font-normal", children: [
|
1631
|
-
/* @__PURE__ */ e("span", { className: `${B(
|
1634
|
+
/* @__PURE__ */ e("span", { className: `${B(p - m, 4) === 0 ? "bw-text-text-greentext" : "bw-bg-background-container"}`, children: `$${B(p - m, 4)}` }),
|
1632
1635
|
" ",
|
1633
|
-
B(
|
1636
|
+
B(p - m, 4) === 0 ? "Cheaper" : "Higher"
|
1634
1637
|
] }),
|
1635
|
-
isMax: B(
|
1638
|
+
isMax: B(p - m, 4) === 0
|
1636
1639
|
} : y == x.length - 1 && a == "desc" ? {
|
1637
1640
|
val: /* @__PURE__ */ l("p", { className: "bw-text-[10px] bw-text-text-secondary bw-font-normal", children: [
|
1638
|
-
/* @__PURE__ */ e("span", { className: `${B(m -
|
1641
|
+
/* @__PURE__ */ e("span", { className: `${B(m - p, 4) === 0 ? "bw-text-text-greentext" : "bw-bg-background-container"}`, children: `$${B(m - p, 4)}` }),
|
1639
1642
|
" ",
|
1640
|
-
B(m -
|
1643
|
+
B(m - p, 4) ? "Cheaper" : "Higher"
|
1641
1644
|
] }),
|
1642
|
-
isMax: B(m -
|
1645
|
+
isMax: B(m - p, 4) === 0
|
1643
1646
|
} : {
|
1644
1647
|
val: /* @__PURE__ */ l("p", { className: "bw-text-[10px] bw-text-text-secondary bw-font-normal", children: [
|
1645
|
-
/* @__PURE__ */ e("span", { className: `${B(S -
|
1648
|
+
/* @__PURE__ */ e("span", { className: `${B(S - p, 4) === 0 ? "bw-text-text-greentext" : "bw-bg-background-container"}`, children: `$${B(S - p, 4)}` }),
|
1646
1649
|
" ",
|
1647
|
-
B(S -
|
1650
|
+
B(S - p, 4) ? "Cheaper" : "Higher"
|
1648
1651
|
] }),
|
1649
|
-
isMax: B(S -
|
1652
|
+
isMax: B(S - p, 4) === 0
|
1650
1653
|
};
|
1651
1654
|
}
|
1652
|
-
return /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e("div", { className: "bw-h-[410px] bw-pt-2 bw-overflow-y-auto", children: (L = (
|
1653
|
-
var R,
|
1655
|
+
return /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e("div", { className: "bw-h-[410px] bw-pt-2 bw-overflow-y-auto", children: (L = (f = (_ = o == null ? void 0 : o.data) == null ? void 0 : _.data) == null ? void 0 : f.quotes) == null ? void 0 : L.sort((t, x) => {
|
1656
|
+
var R, p;
|
1654
1657
|
let y = { amountInUSD: 0 };
|
1655
1658
|
(R = t == null ? void 0 : t.fee) == null || R.forEach((m) => {
|
1656
1659
|
m.source == "FROM_SOURCE_WALLET" && (y.amountInUSD += Number(m.amountInUSD));
|
1657
1660
|
});
|
1658
1661
|
let g = { amountInUSD: 0 };
|
1659
|
-
(
|
1662
|
+
(p = x == null ? void 0 : x.fee) == null || p.forEach((m) => {
|
1660
1663
|
m.source == "FROM_SOURCE_WALLET" && (g.amountInUSD += Number(m.amountInUSD));
|
1661
1664
|
});
|
1662
1665
|
let S = y.amountInUSD, T = g.amountInUSD;
|
1663
1666
|
return a === "asc" || a === "none" ? S - T : T - S;
|
1664
1667
|
}).map((t, x, y) => {
|
1665
|
-
var R,
|
1668
|
+
var R, p, m, W, G, D, E, z, X, q, Q, H, j;
|
1666
1669
|
const g = U(t, y, x);
|
1667
|
-
let S = (t == null ? void 0 : t.outputAmountDisplay) || "", T = (
|
1670
|
+
let S = (t == null ? void 0 : t.outputAmountDisplay) || "", T = (p = (R = t == null ? void 0 : t.providerDetails) == null ? void 0 : R.logoUrl) != null && p.length ? (m = t == null ? void 0 : t.providerDetails) == null ? void 0 : m.logoUrl : h;
|
1668
1671
|
return /* @__PURE__ */ e(
|
1669
1672
|
"div",
|
1670
1673
|
{
|
@@ -1681,9 +1684,9 @@ function So({ routes: o, handleShowAllRoutes: n, handleRoutesData: s, convertVal
|
|
1681
1684
|
className: " bw-w-[93%] bw-mt-3 bw-cursor-pointer bw-ml-auto bw-mr-2 bw-flex bw-mb-8 bw-items-center bw-px-2 bw-relative bw-rounded-lg bw-pt-3 bw-pb-3 bw-border bw-border-border-primary",
|
1682
1685
|
children: [
|
1683
1686
|
/* @__PURE__ */ l("div", { className: "bw-absolute bw-flex bw-items-center bw-gap-x-1 bw-bottom-[-10%] bw-self-center bw-right-[47%]", children: [
|
1684
|
-
(D = t.tags) != null && D.includes("CHEAP") ? /* @__PURE__ */ e(ae, { name: "Lowest Gas", children: /* @__PURE__ */ e("div", { className: "bw-w-[20px] bw-h-[20px]", children: /* @__PURE__ */ e(
|
1685
|
-
(E = t.tags) != null && E.includes("BEST_OUTPUT") ? /* @__PURE__ */ e(ae, { name: "Max Output", children: /* @__PURE__ */ e("div", { className: "bw-w-[20px] bw-h-[20px]", children: /* @__PURE__ */ e(
|
1686
|
-
(z = t.tags) != null && z.includes("FAST") ? /* @__PURE__ */ e(ae, { name: "Fastest", children: /* @__PURE__ */ e("div", { className: "bw-w-[20px] bw-h-[20px]", children: /* @__PURE__ */ e(
|
1687
|
+
(D = t.tags) != null && D.includes("CHEAP") ? /* @__PURE__ */ e(ae, { name: "Lowest Gas", children: /* @__PURE__ */ e("div", { className: "bw-w-[20px] bw-h-[20px]", children: /* @__PURE__ */ e(Le, { fill: "var(--tw-background-container)" }) }) }) : /* @__PURE__ */ e(ne, {}),
|
1688
|
+
(E = t.tags) != null && E.includes("BEST_OUTPUT") ? /* @__PURE__ */ e(ae, { name: "Max Output", children: /* @__PURE__ */ e("div", { className: "bw-w-[20px] bw-h-[20px]", children: /* @__PURE__ */ e(Be, { fill: "var(--tw-background-container)" }) }) }) : /* @__PURE__ */ e(ne, {}),
|
1689
|
+
(z = t.tags) != null && z.includes("FAST") ? /* @__PURE__ */ e(ae, { name: "Fastest", children: /* @__PURE__ */ e("div", { className: "bw-w-[20px] bw-h-[20px]", children: /* @__PURE__ */ e(Me, { fill: "var(--tw-background-container)" }) }) }) : /* @__PURE__ */ e(ne, {})
|
1687
1690
|
] }),
|
1688
1691
|
/* @__PURE__ */ e("div", { className: "bw-w-[35px] bw-h-[35px] bw-absolute bw-z-50 bw-left-[-5%] bw-top-[-16%]", children: /* @__PURE__ */ e("img", { src: T, className: "bw-rounded-lg ", width: 35, height: 35 }) }),
|
1689
1692
|
/* @__PURE__ */ l("div", { className: "bw-absolute bw-text-[10px] bw-text-text-primary bw-font-normal bw-left-5 bw-top-1", children: [
|
@@ -1700,7 +1703,7 @@ function So({ routes: o, handleShowAllRoutes: n, handleRoutesData: s, convertVal
|
|
1700
1703
|
] }),
|
1701
1704
|
/* @__PURE__ */ l("div", { className: "bw-flex bw-items-center bw-gap-x-1", children: [
|
1702
1705
|
/* @__PURE__ */ l("div", { className: "bw-flex bw-items-center bw-gap-x-1", children: [
|
1703
|
-
/* @__PURE__ */ e(
|
1706
|
+
/* @__PURE__ */ e(je, { fill: "var(--tw-text-secondary)" }),
|
1704
1707
|
/* @__PURE__ */ l("p", { className: "bw-text-xs bw-font-normal bw-text-text-secondary", children: [
|
1705
1708
|
t.steps.length,
|
1706
1709
|
" Step"
|
@@ -1730,7 +1733,7 @@ function So({ routes: o, handleShowAllRoutes: n, handleRoutesData: s, convertVal
|
|
1730
1733
|
] }) }),
|
1731
1734
|
/* @__PURE__ */ l("div", { className: "bw-text-sm bw-flex bw-items-center bw-gap-x-2 bw-font-medium bw-text-text-secondary", children: [
|
1732
1735
|
/* @__PURE__ */ l("div", { className: "bw-flex bw-text-sm bw-items-center bw-gap-x-1", children: [
|
1733
|
-
/* @__PURE__ */ e(
|
1736
|
+
/* @__PURE__ */ e(Ve, { fill: "var(--tw-text-secondary)" }),
|
1734
1737
|
/* @__PURE__ */ l("p", { children: [
|
1735
1738
|
" ",
|
1736
1739
|
t.estimatedTimeInSeconds >= 90 ? `${Math.round(B((t.estimatedTimeInSeconds || 60) / 60, 2) || 0)}min` : `${(t == null ? void 0 : t.estimatedTimeInSeconds) || 60} secs`
|
@@ -1749,14 +1752,14 @@ function So({ routes: o, handleShowAllRoutes: n, handleRoutesData: s, convertVal
|
|
1749
1752
|
}
|
1750
1753
|
function No({ gasImg: o, item: n, fromChain: s }) {
|
1751
1754
|
const [i, b] = J({});
|
1752
|
-
return
|
1755
|
+
return Pe(() => {
|
1753
1756
|
var c;
|
1754
1757
|
let a = { amountInUSD: 0 };
|
1755
1758
|
(c = n == null ? void 0 : n.fee) == null || c.forEach((w) => {
|
1756
1759
|
w.source == "FROM_SOURCE_WALLET" && (a.amountInUSD += Number(w.amountInUSD));
|
1757
1760
|
}), b(a);
|
1758
1761
|
}, [n]), /* @__PURE__ */ l("div", { className: "bw-flex bw-text-sm bw-items-center bw-gap-x-1", children: [
|
1759
|
-
/* @__PURE__ */ e(
|
1762
|
+
/* @__PURE__ */ e(ze, { fill: "var(--tw-text-secondary)" }),
|
1760
1763
|
/* @__PURE__ */ l("p", { children: [
|
1761
1764
|
"$",
|
1762
1765
|
ue((i == null ? void 0 : i.amountInUSD) || 0, 6) || 0
|
@@ -1764,8 +1767,8 @@ function No({ gasImg: o, item: n, fromChain: s }) {
|
|
1764
1767
|
] });
|
1765
1768
|
}
|
1766
1769
|
function Co({ routes: o, handleShowAllRoutes: n, handleRoutesData: s, convertVal: i, fromChain: b, sort: a, toChain: c }) {
|
1767
|
-
var _,
|
1768
|
-
const { gasnew: w, defaultCoin: h } =
|
1770
|
+
var _, f, L;
|
1771
|
+
const { gasnew: w, defaultCoin: h } = Te, [O, $] = J({}), [F, I] = J({}), P = se((t) => t.configuration);
|
1769
1772
|
function U(t, x, y) {
|
1770
1773
|
let g = B((t.estimatedTimeInSeconds || 60) / 60, 2) || 0, S = a == "asc" ? B((x[x.length - 1].estimatedTimeInSeconds || 60) / 60, 2) || 0 : B((x[0].estimatedTimeInSeconds || 60) / 60, 2) || 0, T = a == "asc" ? B((x[0].estimatedTimeInSeconds || 60) / 60, 2) || 0 : B((x[x.length - 1].estimatedTimeInSeconds || 60) / 60, 2) || 0;
|
1771
1774
|
return y == 0 && a !== "asc" || y == x.length - 1 && a == "asc" ? {
|
@@ -1790,13 +1793,13 @@ function Co({ routes: o, handleShowAllRoutes: n, handleRoutesData: s, convertVal
|
|
1790
1793
|
isMax: S - g === 0
|
1791
1794
|
};
|
1792
1795
|
}
|
1793
|
-
return /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e("div", { className: "bw-h-[410px] bw-pt-2 bw-overflow-y-auto", children: (L = (
|
1796
|
+
return /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e("div", { className: "bw-h-[410px] bw-pt-2 bw-overflow-y-auto", children: (L = (f = (_ = o.data) == null ? void 0 : _.data) == null ? void 0 : f.quotes) == null ? void 0 : L.sort((t, x) => {
|
1794
1797
|
let y = B((t.estimatedTimeInSeconds || 60) / 60, 2) || 0, g = B((x.estimatedTimeInSeconds || 60) / 60, 2) || 0;
|
1795
1798
|
return a === "asc" ? g - y : y - g;
|
1796
1799
|
}).map((t, x, y) => {
|
1797
|
-
var R,
|
1800
|
+
var R, p, m, W, G, D, E, z, X, q, Q, H, j;
|
1798
1801
|
const g = U(t, y, x);
|
1799
|
-
let S = (t == null ? void 0 : t.outputAmountDisplay) || "", T = (
|
1802
|
+
let S = (t == null ? void 0 : t.outputAmountDisplay) || "", T = (p = (R = t == null ? void 0 : t.providerDetails) == null ? void 0 : R.logoUrl) != null && p.length ? (m = t == null ? void 0 : t.providerDetails) == null ? void 0 : m.logoUrl : h;
|
1800
1803
|
return /* @__PURE__ */ e(
|
1801
1804
|
"div",
|
1802
1805
|
{
|
@@ -1813,9 +1816,9 @@ function Co({ routes: o, handleShowAllRoutes: n, handleRoutesData: s, convertVal
|
|
1813
1816
|
className: " bw-w-[93%] bw-mt-3 bw-cursor-pointer bw-ml-auto bw-mr-2 bw-flex bw-mb-8 bw-items-center bw-px-2 bw-relative bw-rounded-lg bw-pt-3 bw-pb-3 bw-border bw-border-border-primary",
|
1814
1817
|
children: [
|
1815
1818
|
/* @__PURE__ */ l("div", { className: "bw-absolute bw-flex bw-items-center bw-gap-x-1 bw-bottom-[-10%] bw-self-center bw-right-[47%]", children: [
|
1816
|
-
(D = t.tags) != null && D.includes("FAST") ? /* @__PURE__ */ e(ae, { name: "Fastest", children: /* @__PURE__ */ e("div", { className: "bw-w-[20px] bw-h-[20px]", children: /* @__PURE__ */ e(
|
1817
|
-
(E = t.tags) != null && E.includes("CHEAP") ? /* @__PURE__ */ e(ae, { name: "Lowest Gas", children: /* @__PURE__ */ e("div", { className: "bw-w-[20px] bw-h-[20px]", children: /* @__PURE__ */ e(
|
1818
|
-
(z = t.tags) != null && z.includes("BEST_OUTPUT") ? /* @__PURE__ */ e(ae, { name: "Max Output", children: /* @__PURE__ */ e("div", { className: "bw-w-[20px] bw-h-[20px]", children: /* @__PURE__ */ e(
|
1819
|
+
(D = t.tags) != null && D.includes("FAST") ? /* @__PURE__ */ e(ae, { name: "Fastest", children: /* @__PURE__ */ e("div", { className: "bw-w-[20px] bw-h-[20px]", children: /* @__PURE__ */ e(Me, { fill: "var(--tw-background-container)" }) }) }) : /* @__PURE__ */ e(ne, {}),
|
1820
|
+
(E = t.tags) != null && E.includes("CHEAP") ? /* @__PURE__ */ e(ae, { name: "Lowest Gas", children: /* @__PURE__ */ e("div", { className: "bw-w-[20px] bw-h-[20px]", children: /* @__PURE__ */ e(Le, { fill: "var(--tw-background-container)" }) }) }) : /* @__PURE__ */ e(ne, {}),
|
1821
|
+
(z = t.tags) != null && z.includes("BEST_OUTPUT") ? /* @__PURE__ */ e(ae, { name: "Max Output", children: /* @__PURE__ */ e("div", { className: "bw-w-[20px] bw-h-[20px]", children: /* @__PURE__ */ e(Be, { fill: "var(--tw-background-container)" }) }) }) : /* @__PURE__ */ e(ne, {})
|
1819
1822
|
] }),
|
1820
1823
|
/* @__PURE__ */ e("div", { className: "bw-w-[35px] bw-h-[35px] bw-absolute bw-z-50 bw-left-[-5%] bw-top-[-16%]", children: /* @__PURE__ */ e("img", { src: T, className: "bw-rounded-lg ", width: 35, height: 35 }) }),
|
1821
1824
|
/* @__PURE__ */ l("div", { className: "bw-absolute bw-text-[10px] bw-text-text-primary bw-font-normal bw-left-5 bw-top-1", children: [
|
@@ -1832,7 +1835,7 @@ function Co({ routes: o, handleShowAllRoutes: n, handleRoutesData: s, convertVal
|
|
1832
1835
|
] }),
|
1833
1836
|
/* @__PURE__ */ l("div", { className: "bw-flex bw-items-center bw-gap-x-1", children: [
|
1834
1837
|
/* @__PURE__ */ l("div", { className: "bw-flex bw-items-center bw-gap-x-1", children: [
|
1835
|
-
/* @__PURE__ */ e(
|
1838
|
+
/* @__PURE__ */ e(je, { fill: "var(--tw-text-secondary)" }),
|
1836
1839
|
/* @__PURE__ */ l("p", { className: "bw-text-xs bw-font-normal bw-text-text-secondary", children: [
|
1837
1840
|
t.steps.length,
|
1838
1841
|
" Step"
|
@@ -1862,7 +1865,7 @@ function Co({ routes: o, handleShowAllRoutes: n, handleRoutesData: s, convertVal
|
|
1862
1865
|
] }) }),
|
1863
1866
|
/* @__PURE__ */ l("div", { className: "bw-text-sm bw-flex bw-items-center bw-gap-x-2 bw-font-medium bw-text-text-secondary", children: [
|
1864
1867
|
/* @__PURE__ */ l("div", { className: "bw-flex bw-text-sm bw-items-center bw-gap-x-1", children: [
|
1865
|
-
/* @__PURE__ */ e(
|
1868
|
+
/* @__PURE__ */ e(Ve, { fill: "var(--tw-text-secondary)" }),
|
1866
1869
|
/* @__PURE__ */ e("p", { children: t.estimatedTimeInSeconds >= 90 ? `${Math.round(B((t.estimatedTimeInSeconds || 60) / 60, 2)) || 0}min` : `${(t == null ? void 0 : t.estimatedTimeInSeconds) || 60} secs` })
|
1867
1870
|
] }),
|
1868
1871
|
/* @__PURE__ */ e(No, { item: t, gasImg: w, fromChain: b })
|
@@ -1876,12 +1879,12 @@ function Co({ routes: o, handleShowAllRoutes: n, handleRoutesData: s, convertVal
|
|
1876
1879
|
);
|
1877
1880
|
}) }) });
|
1878
1881
|
}
|
1879
|
-
const To =
|
1882
|
+
const To = Fe.memo(function({ maxOpSort: o, value: n }) {
|
1880
1883
|
var i, b;
|
1881
1884
|
const s = se((a) => a.configuration);
|
1882
1885
|
return /* @__PURE__ */ l("div", { className: "bw-flex bw-items-center bw-gap-x-2", children: [
|
1883
1886
|
/* @__PURE__ */ e("div", { className: "bw-w-[16px] bw-h-[16px]", children: /* @__PURE__ */ e(
|
1884
|
-
|
1887
|
+
Be,
|
1885
1888
|
{
|
1886
1889
|
fill: "var(--tw-background-container)",
|
1887
1890
|
spinnerColor: (i = s == null ? void 0 : s.gradientStyle) == null ? void 0 : i.spinnerColor,
|
@@ -1897,14 +1900,14 @@ const To = De.memo(function({ maxOpSort: o, value: n }) {
|
|
1897
1900
|
),
|
1898
1901
|
/* @__PURE__ */ l("div", { className: "bw-flex bw-gap-y-[2px] bw-items-center bw-flex-col bw-justify-center", children: [
|
1899
1902
|
/* @__PURE__ */ e(
|
1900
|
-
|
1903
|
+
_e,
|
1901
1904
|
{
|
1902
1905
|
isSelected: o == "asc",
|
1903
1906
|
fill: "var(--tw-text-primary)"
|
1904
1907
|
}
|
1905
1908
|
),
|
1906
1909
|
/* @__PURE__ */ e(
|
1907
|
-
|
1910
|
+
Ae,
|
1908
1911
|
{
|
1909
1912
|
fill: "var(--tw-text-primary)",
|
1910
1913
|
isSelected: o == "desc"
|
@@ -1912,9 +1915,9 @@ const To = De.memo(function({ maxOpSort: o, value: n }) {
|
|
1912
1915
|
)
|
1913
1916
|
] })
|
1914
1917
|
] });
|
1915
|
-
}), Io =
|
1918
|
+
}), Io = Fe.memo(function({ lowestGasSort: o, value: n }) {
|
1916
1919
|
return /* @__PURE__ */ l("div", { className: "bw-flex bw-items-center bw-gap-x-2", children: [
|
1917
|
-
/* @__PURE__ */ e("div", { className: "bw-w-[16px] bw-h-[16px]", children: /* @__PURE__ */ e(
|
1920
|
+
/* @__PURE__ */ e("div", { className: "bw-w-[16px] bw-h-[16px]", children: /* @__PURE__ */ e(Le, { fill: "var(--tw-background-container)" }) }),
|
1918
1921
|
/* @__PURE__ */ e(
|
1919
1922
|
"span",
|
1920
1923
|
{
|
@@ -1924,14 +1927,14 @@ const To = De.memo(function({ maxOpSort: o, value: n }) {
|
|
1924
1927
|
),
|
1925
1928
|
/* @__PURE__ */ l("div", { className: "bw-flex bw-gap-y-[2px] bw-items-center bw-flex-col bw-justify-center", children: [
|
1926
1929
|
/* @__PURE__ */ e(
|
1927
|
-
|
1930
|
+
_e,
|
1928
1931
|
{
|
1929
1932
|
fill: "var(--tw-text-primary)",
|
1930
1933
|
isSelected: o === "asc"
|
1931
1934
|
}
|
1932
1935
|
),
|
1933
1936
|
/* @__PURE__ */ e(
|
1934
|
-
|
1937
|
+
Ae,
|
1935
1938
|
{
|
1936
1939
|
fill: "var(--tw-text-primary)",
|
1937
1940
|
isSelected: o === "desc"
|
@@ -1939,9 +1942,9 @@ const To = De.memo(function({ maxOpSort: o, value: n }) {
|
|
1939
1942
|
)
|
1940
1943
|
] })
|
1941
1944
|
] });
|
1942
|
-
}), Eo =
|
1945
|
+
}), Eo = Fe.memo(function({ fastestSort: o, value: n }) {
|
1943
1946
|
return /* @__PURE__ */ l("div", { className: "bw-flex bw-items-center bw-gap-x-2", children: [
|
1944
|
-
/* @__PURE__ */ e("div", { className: "bw-w-[16px] bw-h-[16px]", children: /* @__PURE__ */ e(
|
1947
|
+
/* @__PURE__ */ e("div", { className: "bw-w-[16px] bw-h-[16px]", children: /* @__PURE__ */ e(Me, { fill: "var(--tw-background-container)" }) }),
|
1945
1948
|
/* @__PURE__ */ e(
|
1946
1949
|
"span",
|
1947
1950
|
{
|
@@ -1951,14 +1954,14 @@ const To = De.memo(function({ maxOpSort: o, value: n }) {
|
|
1951
1954
|
),
|
1952
1955
|
/* @__PURE__ */ l("div", { className: "bw-flex bw-gap-y-[2px] bw-items-center bw-flex-col bw-justify-center", children: [
|
1953
1956
|
/* @__PURE__ */ e(
|
1954
|
-
|
1957
|
+
_e,
|
1955
1958
|
{
|
1956
1959
|
fill: "var(--tw-text-primary)",
|
1957
1960
|
isSelected: o === "asc"
|
1958
1961
|
}
|
1959
1962
|
),
|
1960
1963
|
/* @__PURE__ */ e(
|
1961
|
-
|
1964
|
+
Ae,
|
1962
1965
|
{
|
1963
1966
|
fill: "var(--tw-text-primary)",
|
1964
1967
|
isSelected: o === "desc"
|
@@ -1975,19 +1978,19 @@ function Oo({
|
|
1975
1978
|
fromChain: b,
|
1976
1979
|
toChain: a
|
1977
1980
|
}) {
|
1978
|
-
const [c, w] = J("1"), [h, O] = J("none"), [$, F] = J("none"), [I, P] = J("none"), U = se((
|
1979
|
-
function _(
|
1981
|
+
const [c, w] = J("1"), [h, O] = J("none"), [$, F] = J("none"), [I, P] = J("none"), U = se((f) => f.configuration);
|
1982
|
+
function _(f, L) {
|
1980
1983
|
w(L);
|
1981
1984
|
}
|
1982
1985
|
return /* @__PURE__ */ l(ht, { value: c, children: [
|
1983
1986
|
/* @__PURE__ */ e(
|
1984
1987
|
_t,
|
1985
1988
|
{
|
1986
|
-
sx: (
|
1989
|
+
sx: (f) => ({
|
1987
1990
|
borderBottom: 1,
|
1988
1991
|
borderColor: "var(--tw-border-primary)",
|
1989
1992
|
width: "max-content",
|
1990
|
-
[
|
1993
|
+
[f.breakpoints.down("sm")]: { width: "100%", overflowX: "auto" },
|
1991
1994
|
marginX: "auto"
|
1992
1995
|
}),
|
1993
1996
|
children: /* @__PURE__ */ l(
|
@@ -1996,9 +1999,9 @@ function Oo({
|
|
1996
1999
|
TabIndicatorProps: {
|
1997
2000
|
style: { background: "var(--tw-text-secondary)" }
|
1998
2001
|
},
|
1999
|
-
sx: (
|
2002
|
+
sx: (f) => ({
|
2000
2003
|
width: "max-content",
|
2001
|
-
[
|
2004
|
+
[f.breakpoints.down("sm")]: {
|
2002
2005
|
width: "100%",
|
2003
2006
|
overflowX: "auto"
|
2004
2007
|
}
|
@@ -2007,15 +2010,15 @@ function Oo({
|
|
2007
2010
|
"aria-label": "lab API tabs example",
|
2008
2011
|
children: [
|
2009
2012
|
/* @__PURE__ */ e(
|
2010
|
-
|
2013
|
+
Se,
|
2011
2014
|
{
|
2012
2015
|
onClick: () => {
|
2013
2016
|
if (c == "1")
|
2014
|
-
O((
|
2017
|
+
O((f) => f == "none" ? "asc" : f === "asc" ? "desc" : "none");
|
2015
2018
|
else return !0;
|
2016
2019
|
},
|
2017
2020
|
disableRipple: !0,
|
2018
|
-
sx: (
|
2021
|
+
sx: (f) => {
|
2019
2022
|
var L;
|
2020
2023
|
return {
|
2021
2024
|
textTransform: "none",
|
@@ -2023,7 +2026,7 @@ function Oo({
|
|
2023
2026
|
fontFamily: ((L = U == null ? void 0 : U.customTheme) == null ? void 0 : L.fontFamily) || "lato",
|
2024
2027
|
width: "120px",
|
2025
2028
|
paddingX: "5px",
|
2026
|
-
[
|
2029
|
+
[f.breakpoints.down("sm")]: {
|
2027
2030
|
minWidth: "33%",
|
2028
2031
|
paddingX: "auto"
|
2029
2032
|
}
|
@@ -2034,15 +2037,15 @@ function Oo({
|
|
2034
2037
|
}
|
2035
2038
|
),
|
2036
2039
|
/* @__PURE__ */ e(
|
2037
|
-
|
2040
|
+
Se,
|
2038
2041
|
{
|
2039
2042
|
onClick: () => {
|
2040
2043
|
if (c == "2")
|
2041
|
-
F((
|
2044
|
+
F((f) => f == "none" ? "asc" : f === "asc" ? "desc" : "none");
|
2042
2045
|
else return !0;
|
2043
2046
|
},
|
2044
2047
|
disableRipple: !0,
|
2045
|
-
sx: (
|
2048
|
+
sx: (f) => {
|
2046
2049
|
var L;
|
2047
2050
|
return {
|
2048
2051
|
textTransform: "none",
|
@@ -2051,7 +2054,7 @@ function Oo({
|
|
2051
2054
|
width: "120px",
|
2052
2055
|
paddingX: "5px",
|
2053
2056
|
paddingLeft: "10px",
|
2054
|
-
[
|
2057
|
+
[f.breakpoints.down("sm")]: {
|
2055
2058
|
minWidth: "33%",
|
2056
2059
|
paddingX: "auto",
|
2057
2060
|
paddingLeft: "auto"
|
@@ -2063,15 +2066,15 @@ function Oo({
|
|
2063
2066
|
}
|
2064
2067
|
),
|
2065
2068
|
/* @__PURE__ */ e(
|
2066
|
-
|
2069
|
+
Se,
|
2067
2070
|
{
|
2068
2071
|
onClick: () => {
|
2069
2072
|
if (c == "3")
|
2070
|
-
P((
|
2073
|
+
P((f) => f == "none" ? "asc" : f === "asc" ? "desc" : "none");
|
2071
2074
|
else return !0;
|
2072
2075
|
},
|
2073
2076
|
disableRipple: !0,
|
2074
|
-
sx: (
|
2077
|
+
sx: (f) => {
|
2075
2078
|
var L;
|
2076
2079
|
return {
|
2077
2080
|
textTransform: "none",
|
@@ -2079,7 +2082,7 @@ function Oo({
|
|
2079
2082
|
fontFamily: ((L = U == null ? void 0 : U.customTheme) == null ? void 0 : L.fontFamily) || "lato",
|
2080
2083
|
width: "110px",
|
2081
2084
|
paddingX: "5px",
|
2082
|
-
[
|
2085
|
+
[f.breakpoints.down("sm")]: {
|
2083
2086
|
minWidth: "33%",
|
2084
2087
|
paddingX: "auto"
|
2085
2088
|
}
|
@@ -2095,7 +2098,7 @@ function Oo({
|
|
2095
2098
|
}
|
2096
2099
|
),
|
2097
2100
|
/* @__PURE__ */ e(
|
2098
|
-
|
2101
|
+
Ne,
|
2099
2102
|
{
|
2100
2103
|
sx: { paddingLeft: "0px", paddingRight: "0px", paddingTop: "10px" },
|
2101
2104
|
value: "1",
|
@@ -2114,7 +2117,7 @@ function Oo({
|
|
2114
2117
|
}
|
2115
2118
|
),
|
2116
2119
|
/* @__PURE__ */ e(
|
2117
|
-
|
2120
|
+
Ne,
|
2118
2121
|
{
|
2119
2122
|
sx: { paddingLeft: "0px", paddingRight: "0px", paddingTop: "10px" },
|
2120
2123
|
value: "2",
|
@@ -2133,7 +2136,7 @@ function Oo({
|
|
2133
2136
|
}
|
2134
2137
|
),
|
2135
2138
|
/* @__PURE__ */ e(
|
2136
|
-
|
2139
|
+
Ne,
|
2137
2140
|
{
|
2138
2141
|
sx: { paddingLeft: "0px", paddingRight: "0px", paddingTop: "10px" },
|
2139
2142
|
value: "3",
|
@@ -2161,7 +2164,7 @@ function Bo({ fill1: o, fill2: n }) {
|
|
2161
2164
|
}
|
2162
2165
|
function zo({ routes: o, handleShowAllRoutes: n, handleRoutesData: s, convertVal: i, amount: b }) {
|
2163
2166
|
var O, $, F;
|
2164
|
-
const a = se((I) => I.fromChain), c = se((I) => I.fromCoin), w = se((I) => I.toChain), { defaultCoin: h } =
|
2167
|
+
const a = se((I) => I.fromChain), c = se((I) => I.fromCoin), w = se((I) => I.toChain), { defaultCoin: h } = Te;
|
2165
2168
|
return /* @__PURE__ */ l("div", { children: [
|
2166
2169
|
/* @__PURE__ */ l("div", { className: "bw-flex bw-w-full bw-relative bw-justify-between bw-mb-2", children: [
|
2167
2170
|
/* @__PURE__ */ l("div", { className: "bw-flex bw-items-start bw-gap-x-3", children: [
|
@@ -2189,7 +2192,7 @@ function zo({ routes: o, handleShowAllRoutes: n, handleRoutesData: s, convertVal
|
|
2189
2192
|
/* @__PURE__ */ e("p", { className: "bw-text-2xl bw-font-bold bw-mb-2 bw-leading-none bw-text-right bw-text-text-primary", children: b }),
|
2190
2193
|
/* @__PURE__ */ l("p", { className: "bw-text-sm bw-font-bold bw-text-right bw-text-text-secondary", children: [
|
2191
2194
|
"$",
|
2192
|
-
|
2195
|
+
ye(b * (c == null ? void 0 : c.lastPrice) || 0, 10)
|
2193
2196
|
] })
|
2194
2197
|
] }),
|
2195
2198
|
/* @__PURE__ */ l("div", { className: " bw-bg-background-secondary bw-flex bw-justify-center bw-items-center bw-mb-2 bw-relative bw-rounded-[50%] bw-w-[35px] bw-h-[35px] bw-border bw-border-border-primary", children: [
|