@blockend/widget 1.0.61-beta.6 → 1.0.62
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-Cxr3Nkrq.js → AllRoutes-pT_GYhLz.js} +198 -201
- package/dist/{Box-PCm99lPs.js → Box-CMXImt80.js} +1 -1
- package/dist/{EstGas-DAqnmtXg.js → EstGas-BEwQc47B.js} +802 -922
- package/dist/{Grow-PUq8zLdG.js → Grow-CYJk-72r.js} +192 -196
- package/dist/{InputComp-Cpbiu4nw.js → InputComp-B0QgFbsj.js} +3 -3
- package/dist/{LoadRoute-DMvruPxQ.js → LoadRoute-I--KmXYZ.js} +4 -4
- package/dist/{QuotesProgress-B8gCi4mg.js → QuotesProgress-Ct53CRUU.js} +1 -1
- package/dist/{SwapAsset-LXjTHOyg.js → SwapAsset-X7gAsFxL.js} +1 -1
- package/dist/{Tooltip-BBzQ_Niy.js → Tooltip-CsxhxDbM.js} +6 -9
- package/dist/{TxnButton-CzynEgC-.js → TxnButton-BZf2lfxu.js} +62 -65
- package/dist/{add-Dy5-Nff0.js → add-fqHpy_n_.js} +1 -1
- package/dist/{all-wallets-jwMVTU0s.js → all-wallets-BEiHad26.js} +1 -1
- package/dist/{app-store-DEcg75wd.js → app-store-BUrtll4M.js} +1 -1
- package/dist/{apple-C3gcxaZN.js → apple-DeP0r4ax.js} +1 -1
- package/dist/{arrow-bottom-Dz-dufK1.js → arrow-bottom-DOUsYrpS.js} +1 -1
- package/dist/{arrow-bottom-circle-CbmTfpof.js → arrow-bottom-circle-3zt0oM9l.js} +1 -1
- package/dist/{arrow-left-MSV3EbO3.js → arrow-left-CZi8gizN.js} +1 -1
- package/dist/{arrow-right-BIh4_fkF.js → arrow-right-Bp2k-sRU.js} +1 -1
- package/dist/{arrow-top-BKC3U-ao.js → arrow-top-Bdu-g3eb.js} +1 -1
- package/dist/{bank-DBtyASC7.js → bank-UM_6-xYg.js} +1 -1
- package/dist/{basic-BgV8RQ-A.js → basic-CfaJcj31.js} +4 -4
- package/dist/{browser-DC9IClot.js → browser-DE4dHUIn.js} +1 -1
- package/dist/{card-BT6koHhk.js → card-CpV_uFyN.js} +1 -1
- package/dist/{ccip-3LoUUUH-.js → ccip-CA2a9SDo.js} +1 -1
- package/dist/{checkmark-DSeqDz_Y.js → checkmark-CK8NZa3x.js} +1 -1
- package/dist/{checkmark-bold-BIkQqCzJ.js → checkmark-bold-DgI_WWpK.js} +1 -1
- package/dist/{chevron-bottom-CBXmsDV5.js → chevron-bottom-C_3_Lg-x.js} +1 -1
- package/dist/{chevron-left-DhVqX1hi.js → chevron-left-Dn-8RUKj.js} +1 -1
- package/dist/{chevron-right-B3rsG14_.js → chevron-right-BrzGCKbe.js} +1 -1
- package/dist/{chevron-top-BEjzOADe.js → chevron-top-DH4uxqMd.js} +1 -1
- package/dist/{chrome-store-DRLnmUBT.js → chrome-store-C6ftVKRM.js} +1 -1
- package/dist/{clock-eV75Aej3.js → clock-BMAqcMX9.js} +1 -1
- package/dist/{close-zdZMwNem.js → close-B99wQvJ_.js} +1 -1
- package/dist/{coinPlaceholder-CDI_BOjw.js → coinPlaceholder-DmuYNsmb.js} +1 -1
- package/dist/{compass-VmDWLUk0.js → compass-C4wdl146.js} +1 -1
- package/dist/{copy-BPf4wDQR.js → copy-DMJQyfJj.js} +1 -1
- package/dist/{core-FKJijvR4.js → core-v6ho39ji.js} +324 -390
- package/dist/{cursor-DyqcSARn.js → cursor-C-0knOkC.js} +1 -1
- package/dist/{cursor-transparent-BYUs3PjC.js → cursor-transparent-BLuqOo6k.js} +1 -1
- package/dist/{desktop-ajSWZf14.js → desktop-DpJrO84H.js} +1 -1
- package/dist/{disconnect-CesQDkW7.js → disconnect-k6w6zlk-.js} +1 -1
- package/dist/{discord-DRpBdD6a.js → discord-DLgkGibC.js} +1 -1
- package/dist/{down-BvpSLqv4.js → down-C4N-wh2D.js} +3 -4
- package/dist/{etherscan-T2x0uGqy.js → etherscan-DJTxjIAP.js} +1 -1
- package/dist/{exclamation-triangle-jiEvqZCt.js → exclamation-triangle-B1YdY5CX.js} +1 -1
- package/dist/{extension-VNmHHnl3.js → extension-CnhByDAh.js} +1 -1
- package/dist/{external-link-C1cNXEY_.js → external-link-CZmI3Q92.js} +1 -1
- package/dist/{facebook-BMo02i5k.js → facebook-CRHPGcBq.js} +1 -1
- package/dist/{farcaster-DGe5MIGO.js → farcaster-BYs6AvgJ.js} +1 -1
- package/dist/{filters-CUJYlRnZ.js → filters-BqJFiFCl.js} +1 -1
- package/dist/{getChainIds-D11guRHs.js → getChainIds-CPQkM2Fw.js} +4 -6
- package/dist/{getCosmosAddress-DgfHG7Hd.js → getCosmosAddress-CrzIqoe8.js} +2304 -2370
- package/dist/{github-Cs2pYb7C.js → github-WI_fsQyX.js} +1 -1
- package/dist/{google-DHT6lJFv.js → google-PDPeuX25.js} +1 -1
- package/dist/{hamburger-Yws20Vz4.js → hamburger-JHCSR4wq.js} +427 -436
- package/dist/{help-circle-DgP-m-Uz.js → help-circle-CC1LutMp.js} +1 -1
- package/dist/{id-B_EdR-1o.js → id-Dg4qm85K.js} +1 -1
- package/dist/{image-Cj7amYSJ.js → image-DvH3pCRi.js} +1 -1
- package/dist/{index-HFb_3Q0W.js → index-4DGqOb0b.js} +1 -1
- package/dist/{index-CWhe50Ec.js → index-BAjx9Sij.js} +451 -451
- package/dist/{index-D2IU_xeZ.js → index-BII8gr4h.js} +1134 -1151
- package/dist/{index-SFtx8RRR.js → index-Bl06WOfD.js} +14 -19
- package/dist/{index-BxH9oOBu.js → index-BrgwPS_u.js} +21 -32
- package/dist/{index-BXD_AzIx.js → index-ByNEeX9y.js} +1 -1
- package/dist/{index-BMBfrbLJ.js → index-CBMjkxpP.js} +5034 -5110
- package/dist/{index-BLrg6aM7.js → index-D8oYLVSL.js} +2 -2
- package/dist/{index-Bl2UpALc.js → index-DTish3yr.js} +1 -3
- package/dist/{index-mhA4TOGx.js → index-DbOqrlxW.js} +4 -4
- package/dist/{index-tEVjSKpt.js → index-Mqg8CWuX.js} +18 -32
- package/dist/{index-_c95MH6R.js → index-qIeZpXcg.js} +78 -78
- package/dist/{index.es-Cf2P8B_E.js → index.es-DV8y1ve_.js} +958 -978
- package/dist/{index.es-svtwMaZq.js → index.es-DkTmjrB8.js} +1 -1
- package/dist/index.es.js +1 -1
- package/dist/{info-Cp9JCjqN.js → info-Cjmzqm5P.js} +1 -1
- package/dist/{info-circle-DRaVj-ap.js → info-circle-Dimf4UPG.js} +1 -1
- package/dist/{lightbulb-CsW2vktv.js → lightbulb-BsZjMPbK.js} +1 -1
- package/dist/{mail-CWnCoK8z.js → mail-KNgNgUMG.js} +1 -1
- package/dist/{mobile-CA14tPHx.js → mobile-hJMru58F.js} +1 -1
- package/dist/{more-QAxcbEKq.js → more-B1Hz9ISJ.js} +1 -1
- package/dist/{network-placeholder-TIBJyj_I.js → network-placeholder-Ba37-PVe.js} +1 -1
- package/dist/{nftPlaceholder-CjKZ96cX.js → nftPlaceholder-Br6ZCUyX.js} +1 -1
- package/dist/{off-pDtmSFmO.js → off-DZv0f5qk.js} +1 -1
- package/dist/{play-store-CSc6NscT.js → play-store-PVT99oFp.js} +1 -1
- package/dist/{plus-C_Utdahs.js → plus-0JhMk1yC.js} +1 -1
- package/dist/{qr-code-DyK3HPLw.js → qr-code-CYMnN7H6.js} +1 -1
- package/dist/{recycle-horizontal-B2PCZE0j.js → recycle-horizontal-BODX35XL.js} +1 -1
- package/dist/{refresh-DCyPlTQE.js → refresh-KT2nzf4V.js} +1 -1
- package/dist/{reown-logo-BZtSC222.js → reown-logo-x-a1ehju.js} +1 -1
- package/dist/{search-zmw8hnGf.js → search-floOYVWE.js} +1 -1
- package/dist/{send-qpVD_BnX.js → send-rBEZNvkT.js} +1 -1
- package/dist/{swapHorizontal-DeiTZysc.js → swapHorizontal-FpW50anF.js} +1 -1
- package/dist/{swapHorizontalBold-DxXPoYvj.js → swapHorizontalBold-DJo2s6QM.js} +1 -1
- package/dist/{swapHorizontalMedium-Bk5t746S.js → swapHorizontalMedium-AdMIxAQ-.js} +1 -1
- package/dist/{swapHorizontalRoundedBold-BKNTjAMS.js → swapHorizontalRoundedBold-DB7VaS-l.js} +1 -1
- package/dist/{swapVertical-BgErJn7M.js → swapVertical-CStjk8mq.js} +1 -1
- package/dist/{telegram-DLZsj0GL.js → telegram-B7o9hZwP.js} +1 -1
- package/dist/{three-dots-C639cevE.js → three-dots-DogTUFsH.js} +1 -1
- package/dist/{twitch-BjX2MWAc.js → twitch-B_TRhhNU.js} +1 -1
- package/dist/{twitterIcon-_EGscQMD.js → twitterIcon-ujuPKvRN.js} +1 -1
- package/dist/{unsupportedProp-qsTU86qU.js → unsupportedProp-BC6azYXA.js} +1 -1
- package/dist/useRegisterError-DMILz6N1.js +8918 -0
- package/dist/{verify-B9nCXXUk.js → verify-BRWSwLhn.js} +1 -1
- package/dist/{verify-filled-Cfe5su-B.js → verify-filled-z7UoRJXn.js} +1 -1
- package/dist/{w3m-modal-pIdI-nLd.js → w3m-modal-CuXPdser.js} +2 -2
- package/dist/{wallet-BLNq3D4p.js → wallet-BMFvv3DF.js} +1 -1
- package/dist/{wallet-placeholder-DNL9SHUB.js → wallet-placeholder-DFg6CZXP.js} +1 -1
- package/dist/{walletconnect-B8OExIGD.js → walletconnect-WSdSSZfM.js} +1 -1
- package/dist/{warning-circle-CbRvsp3p.js → warning-circle-BDW9xnhM.js} +1 -1
- package/dist/widget.css +1 -1
- package/dist/{x-Booefzx8.js → x-DUDktTjC.js} +1 -1
- package/package.json +1 -1
- package/dist/AdvancedSettings-D7odvw7r.js +0 -47
- package/dist/useRegisterError-B1CjkI-p.js +0 -8923
@@ -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 De, { useState as J, useEffect as Fe } from "react";
|
4
|
+
import { S as Pe, a as _e } 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 Ne, j as Ut, l as Ue, o as Rt, r as Dt, i as Ce, c as ue, f as ve } from "./useRegisterError-DMILz6N1.js";
|
7
|
+
import { b as Te, g as Ie, i as Ae, _ as pe, d as k, e as oe, s as ce, f as at, h as Ee, p as Z, P as r, w as Ft, u as se } from "./index-CBMjkxpP.js";
|
8
|
+
import { S as We, C as je, G as Ve } from "./clockIcon-C2W5xvyt.js";
|
9
|
+
import { T as Pt } from "./Tooltip-CsxhxDbM.js";
|
10
|
+
import { O as we } from "./index-ByNEeX9y.js";
|
11
|
+
import { B as _t } from "./Box-CMXImt80.js";
|
12
|
+
import { c as ct, d as it, r as At } from "./index-4DGqOb0b.js";
|
13
|
+
import { b as dt } from "./Grow-CYJk-72r.js";
|
14
|
+
import { B as bt, o as ut } from "./getChainIds-CPQkM2Fw.js";
|
15
|
+
import { u as Wt } from "./unsupportedProp-BC6azYXA.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 Ie("MuiTab", o);
|
38
38
|
}
|
39
|
-
const le =
|
39
|
+
const le = Te("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 = Ie("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 Ee(O, Vt, n);
|
54
54
|
}, Gt = ce(bt, {
|
55
55
|
name: "MuiTab",
|
56
56
|
slot: "Root",
|
@@ -125,8 +125,8 @@ const le = Ie("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
|
+
})), ye = /* @__PURE__ */ v.forwardRef(function(n, s) {
|
129
|
+
const i = Ae({
|
130
130
|
props: n,
|
131
131
|
name: "MuiTab"
|
132
132
|
}), {
|
@@ -146,7 +146,7 @@ const le = Ie("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: p,
|
150
150
|
// eslint-disable-next-line react/prop-types
|
151
151
|
textColor: L = "inherit",
|
152
152
|
value: t,
|
@@ -165,8 +165,8 @@ const le = Ie("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
|
+
}, f = (m) => {
|
169
|
+
p && !_ && 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 = Ie("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrim
|
|
176
176
|
"aria-selected": _,
|
177
177
|
disabled: a,
|
178
178
|
onClick: R,
|
179
|
-
onFocus:
|
179
|
+
onFocus: f,
|
180
180
|
ownerState: g,
|
181
181
|
tabIndex: _ ? 0 : -1
|
182
182
|
}, y, {
|
@@ -187,7 +187,7 @@ const le = Ie("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrim
|
|
187
187
|
}), $]
|
188
188
|
}));
|
189
189
|
});
|
190
|
-
Z.env.NODE_ENV !== "production" && (
|
190
|
+
Z.env.NODE_ENV !== "production" && (ye.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 Ie("MuiTabScrollButton", o);
|
337
337
|
}
|
338
|
-
const eo =
|
338
|
+
const eo = Te("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 Ee({
|
345
345
|
root: ["root", s, i && "disabled"]
|
346
346
|
}, Qt, n);
|
347
347
|
}, no = ce(bt, {
|
@@ -370,7 +370,7 @@ const eo = Ie("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 = Ae({
|
374
374
|
props: n,
|
375
375
|
name: "MuiTabScrollButton"
|
376
376
|
}), {
|
@@ -380,14 +380,14 @@ const eo = Ie("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, p = Ne({
|
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 = Ne({
|
391
391
|
elementType: _,
|
392
392
|
externalSlotProps: h.endScrollButtonIcon,
|
393
393
|
additionalProps: {
|
@@ -403,7 +403,7 @@ const eo = Ie("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({}, p)) : /* @__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 Ie("MuiTabs", o);
|
463
463
|
}
|
464
|
-
const
|
464
|
+
const Re = Te("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, ge = (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 De = Ie("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVer
|
|
488
488
|
scrollButtonsHideMobile: w,
|
489
489
|
classes: h
|
490
490
|
} = o;
|
491
|
-
return
|
491
|
+
return Ee({
|
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 De = Ie("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVer
|
|
505
505
|
ownerState: s
|
506
506
|
} = o;
|
507
507
|
return [{
|
508
|
-
[`& .${
|
508
|
+
[`& .${Re.scrollButtons}`]: n.scrollButtons
|
509
509
|
}, {
|
510
|
-
[`& .${
|
510
|
+
[`& .${Re.scrollButtons}`]: s.scrollButtonsHideMobile && n.scrollButtonsHideMobile
|
511
511
|
}, n.root, s.vertical && n.vertical];
|
512
512
|
}
|
513
513
|
})(({
|
@@ -522,7 +522,7 @@ const De = Ie("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVer
|
|
522
522
|
}, o.vertical && {
|
523
523
|
flexDirection: "column"
|
524
524
|
}, o.scrollButtonsHideMobile && {
|
525
|
-
[`& .${
|
525
|
+
[`& .${Re.scrollButtons}`]: {
|
526
526
|
[n.breakpoints.down("sm")]: {
|
527
527
|
display: "none"
|
528
528
|
}
|
@@ -611,7 +611,7 @@ const De = Ie("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 = Ae({
|
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: p = "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: f,
|
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 = p === "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: p,
|
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 = Ne({
|
657
657
|
elementType: y.StartScrollButtonIcon,
|
658
658
|
externalSlotProps: g.startScrollButtonIcon,
|
659
659
|
ownerState: j
|
660
|
-
}), K =
|
660
|
+
}), K = Ne({
|
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;
|
666
|
+
const [He, St] = v.useState(!1), [ie, Ge] = v.useState(lt), [Xe, Nt] = v.useState(!1), [qe, Ct] = v.useState(!1), [Ye, Tt] = v.useState(!1), [Ke, It] = v.useState({
|
667
667
|
overflow: "hidden",
|
668
668
|
scrollbarWidth: 0
|
669
|
-
}),
|
669
|
+
}), Ze = /* @__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,21 +684,19 @@ const xt = /* @__PURE__ */ v.forwardRef(function(n, s) {
|
|
684
684
|
};
|
685
685
|
}
|
686
686
|
let N;
|
687
|
-
if (d &&
|
687
|
+
if (d && f !== !1) {
|
688
688
|
const C = de.current.children;
|
689
689
|
if (C.length > 0) {
|
690
|
-
const A = C[
|
691
|
-
Z.env.NODE_ENV
|
692
|
-
|
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);
|
690
|
+
const A = C[Ze.get(f)];
|
691
|
+
Z.env.NODE_ENV, 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
|
692
|
+
u.clientWidth !== 0 && (u = null, st = !0);
|
695
693
|
}
|
696
694
|
}
|
697
695
|
return {
|
698
696
|
tabsMeta: u,
|
699
697
|
tabMeta: N
|
700
698
|
};
|
701
|
-
}, fe =
|
699
|
+
}, fe = Ue(() => {
|
702
700
|
const {
|
703
701
|
tabsMeta: d,
|
704
702
|
tabMeta: u
|
@@ -716,12 +714,12 @@ const xt = /* @__PURE__ */ v.forwardRef(function(n, s) {
|
|
716
714
|
[H]: u ? u[H] : 0
|
717
715
|
};
|
718
716
|
if (isNaN(ie[C]) || isNaN(ie[H]))
|
719
|
-
|
717
|
+
Ge(A);
|
720
718
|
else {
|
721
719
|
const V = Math.abs(ie[C] - A[C]), ee = Math.abs(ie[H] - A[H]);
|
722
|
-
(V >= 1 || ee >= 1) &&
|
720
|
+
(V >= 1 || ee >= 1) && Ge(A);
|
723
721
|
}
|
724
|
-
}),
|
722
|
+
}), Me = (d, {
|
725
723
|
animation: u = !0
|
726
724
|
} = {}) => {
|
727
725
|
u ? Kt(z, te.current, d, {
|
@@ -729,7 +727,7 @@ const xt = /* @__PURE__ */ v.forwardRef(function(n, s) {
|
|
729
727
|
}) : te.current[z] = d;
|
730
728
|
}, Qe = (d) => {
|
731
729
|
let u = te.current[z];
|
732
|
-
E ? u += d : (u += d * (a ? -1 : 1), u *= a && wt() === "reverse" ? -1 : 1),
|
730
|
+
E ? u += d : (u += d * (a ? -1 : 1), u *= a && wt() === "reverse" ? -1 : 1), Me(u);
|
733
731
|
}, et = () => {
|
734
732
|
const d = te.current[Q];
|
735
733
|
let u = 0;
|
@@ -758,7 +756,7 @@ const xt = /* @__PURE__ */ v.forwardRef(function(n, s) {
|
|
758
756
|
onChange: Bt,
|
759
757
|
className: oe(M.scrollableX, M.hideScrollbar)
|
760
758
|
}) : null;
|
761
|
-
const N = D && (t === "auto" && (
|
759
|
+
const N = D && (t === "auto" && (Xe || qe) || t === !0);
|
762
760
|
return d.scrollButtonStart = N ? /* @__PURE__ */ e(L, k({
|
763
761
|
slots: {
|
764
762
|
StartScrollButtonIcon: y.StartScrollButtonIcon
|
@@ -766,10 +764,10 @@ const xt = /* @__PURE__ */ v.forwardRef(function(n, s) {
|
|
766
764
|
slotProps: {
|
767
765
|
startScrollButtonIcon: Y
|
768
766
|
},
|
769
|
-
orientation:
|
767
|
+
orientation: p,
|
770
768
|
direction: a ? "right" : "left",
|
771
769
|
onClick: Et,
|
772
|
-
disabled: !
|
770
|
+
disabled: !Xe
|
773
771
|
}, T, {
|
774
772
|
className: oe(M.scrollButtons, T.className)
|
775
773
|
})) : null, d.scrollButtonEnd = N ? /* @__PURE__ */ e(L, k({
|
@@ -779,14 +777,14 @@ const xt = /* @__PURE__ */ v.forwardRef(function(n, s) {
|
|
779
777
|
slotProps: {
|
780
778
|
endScrollButtonIcon: K
|
781
779
|
},
|
782
|
-
orientation:
|
780
|
+
orientation: p,
|
783
781
|
direction: a ? "left" : "right",
|
784
782
|
onClick: Ot,
|
785
|
-
disabled: !
|
783
|
+
disabled: !qe
|
786
784
|
}, T, {
|
787
785
|
className: oe(M.scrollButtons, T.className)
|
788
786
|
})) : null, d;
|
789
|
-
}, tt =
|
787
|
+
}, tt = Ue((d) => {
|
790
788
|
const {
|
791
789
|
tabsMeta: u,
|
792
790
|
tabMeta: N
|
@@ -794,18 +792,18 @@ const xt = /* @__PURE__ */ v.forwardRef(function(n, s) {
|
|
794
792
|
if (!(!N || !u)) {
|
795
793
|
if (N[X] < u[X]) {
|
796
794
|
const C = u[z] + (N[X] - u[X]);
|
797
|
-
|
795
|
+
Me(C, {
|
798
796
|
animation: d
|
799
797
|
});
|
800
798
|
} else if (N[q] > u[q]) {
|
801
799
|
const C = u[z] + (N[q] - u[q]);
|
802
|
-
|
800
|
+
Me(C, {
|
803
801
|
animation: d
|
804
802
|
});
|
805
803
|
}
|
806
804
|
}
|
807
|
-
}),
|
808
|
-
D && t !== !1 && Tt(!
|
805
|
+
}), he = Ue(() => {
|
806
|
+
D && t !== !1 && Tt(!Ye);
|
809
807
|
});
|
810
808
|
v.useEffect(() => {
|
811
809
|
const d = it(() => {
|
@@ -821,7 +819,7 @@ const xt = /* @__PURE__ */ v.forwardRef(function(n, s) {
|
|
821
819
|
var re;
|
822
820
|
(re = u) == null || re.observe(xe);
|
823
821
|
});
|
824
|
-
}), d(),
|
822
|
+
}), d(), he();
|
825
823
|
}, C = ut(te.current);
|
826
824
|
C.addEventListener("resize", d);
|
827
825
|
let A;
|
@@ -833,24 +831,24 @@ const xt = /* @__PURE__ */ v.forwardRef(function(n, s) {
|
|
833
831
|
var V, ee;
|
834
832
|
d.clear(), C.removeEventListener("resize", d), (V = A) == null || V.disconnect(), (ee = u) == null || ee.disconnect();
|
835
833
|
};
|
836
|
-
}, [fe,
|
834
|
+
}, [fe, he]), v.useEffect(() => {
|
837
835
|
const d = Array.from(de.current.children), u = d.length;
|
838
836
|
if (typeof IntersectionObserver < "u" && u > 0 && D && t !== !1) {
|
839
837
|
const N = d[0], C = d[u - 1], A = {
|
840
838
|
root: te.current,
|
841
839
|
threshold: 0.99
|
842
|
-
}, V = (
|
843
|
-
Nt(!
|
840
|
+
}, V = (ke) => {
|
841
|
+
Nt(!ke[0].isIntersecting);
|
844
842
|
}, ee = new IntersectionObserver(V, A);
|
845
843
|
ee.observe(N);
|
846
|
-
const xe = (
|
847
|
-
Ct(!
|
844
|
+
const xe = (ke) => {
|
845
|
+
Ct(!ke[0].isIntersecting);
|
848
846
|
}, re = new IntersectionObserver(xe, A);
|
849
847
|
return re.observe(C), () => {
|
850
848
|
ee.disconnect(), re.disconnect();
|
851
849
|
};
|
852
850
|
}
|
853
|
-
}, [D, t,
|
851
|
+
}, [D, t, Ye, $ == null ? void 0 : $.length]), v.useEffect(() => {
|
854
852
|
St(!0);
|
855
853
|
}, []), v.useEffect(() => {
|
856
854
|
fe();
|
@@ -858,79 +856,78 @@ const xt = /* @__PURE__ */ v.forwardRef(function(n, s) {
|
|
858
856
|
tt(lt !== ie);
|
859
857
|
}, [tt, ie]), v.useImperativeHandle(h, () => ({
|
860
858
|
updateIndicator: fe,
|
861
|
-
updateScrollButtons:
|
862
|
-
}), [fe,
|
859
|
+
updateScrollButtons: he
|
860
|
+
}), [fe, he]);
|
863
861
|
const ot = /* @__PURE__ */ e(bo, k({}, S, {
|
864
862
|
className: oe(M.indicator, S.className),
|
865
863
|
ownerState: j,
|
866
864
|
style: k({}, ie, S.style)
|
867
865
|
}));
|
868
|
-
let
|
866
|
+
let me = 0;
|
869
867
|
const Mt = v.Children.map($, (d) => {
|
870
868
|
if (!/* @__PURE__ */ v.isValidElement(d))
|
871
869
|
return null;
|
872
|
-
Z.env.NODE_ENV !== "production" && At.isFragment(d)
|
873
|
-
|
874
|
-
|
875
|
-
|
876
|
-
|
877
|
-
return ge += 1, /* @__PURE__ */ v.cloneElement(d, k({
|
870
|
+
Z.env.NODE_ENV !== "production" && At.isFragment(d);
|
871
|
+
const u = d.props.value === void 0 ? me : d.props.value;
|
872
|
+
Ze.set(u, me);
|
873
|
+
const N = u === f;
|
874
|
+
return me += 1, /* @__PURE__ */ v.cloneElement(d, k({
|
878
875
|
fullWidth: m === "fullWidth",
|
879
|
-
indicator: N && !
|
876
|
+
indicator: N && !He && ot,
|
880
877
|
selected: N,
|
881
878
|
selectionFollowsFocus: x,
|
882
879
|
onChange: _,
|
883
880
|
textColor: R,
|
884
881
|
value: u
|
885
|
-
},
|
882
|
+
}, me === 1 && f === !1 && !d.props.tabIndex ? {
|
886
883
|
tabIndex: 0
|
887
884
|
} : {}));
|
888
885
|
}), $t = (d) => {
|
889
886
|
const u = de.current, N = Rt(u).activeElement;
|
890
887
|
if (N.getAttribute("role") !== "tab")
|
891
888
|
return;
|
892
|
-
let A =
|
893
|
-
switch (
|
889
|
+
let A = p === "horizontal" ? "ArrowLeft" : "ArrowUp", V = p === "horizontal" ? "ArrowRight" : "ArrowDown";
|
890
|
+
switch (p === "horizontal" && a && (A = "ArrowRight", V = "ArrowLeft"), d.key) {
|
894
891
|
case A:
|
895
|
-
d.preventDefault(),
|
892
|
+
d.preventDefault(), ge(u, N, rt);
|
896
893
|
break;
|
897
894
|
case V:
|
898
|
-
d.preventDefault(),
|
895
|
+
d.preventDefault(), ge(u, N, nt);
|
899
896
|
break;
|
900
897
|
case "Home":
|
901
|
-
d.preventDefault(),
|
898
|
+
d.preventDefault(), ge(u, null, nt);
|
902
899
|
break;
|
903
900
|
case "End":
|
904
|
-
d.preventDefault(),
|
901
|
+
d.preventDefault(), ge(u, null, rt);
|
905
902
|
break;
|
906
903
|
}
|
907
|
-
},
|
904
|
+
}, $e = Lt();
|
908
905
|
return /* @__PURE__ */ l(ao, k({
|
909
906
|
className: oe(M.root, F),
|
910
907
|
ownerState: j,
|
911
908
|
ref: s,
|
912
909
|
as: I
|
913
910
|
}, G, {
|
914
|
-
children: [
|
911
|
+
children: [$e.scrollButtonStart, $e.scrollbarSizeListener, /* @__PURE__ */ l(co, {
|
915
912
|
className: M.scroller,
|
916
913
|
ownerState: j,
|
917
914
|
style: {
|
918
|
-
overflow:
|
919
|
-
[E ? `margin${a ? "Left" : "Right"}` : "marginBottom"]: W ? void 0 : -
|
915
|
+
overflow: Ke.overflow,
|
916
|
+
[E ? `margin${a ? "Left" : "Right"}` : "marginBottom"]: W ? void 0 : -Ke.scrollbarWidth
|
920
917
|
},
|
921
918
|
ref: te,
|
922
919
|
children: [/* @__PURE__ */ e(io, {
|
923
920
|
"aria-label": c,
|
924
921
|
"aria-labelledby": w,
|
925
|
-
"aria-orientation":
|
922
|
+
"aria-orientation": p === "vertical" ? "vertical" : null,
|
926
923
|
className: M.flexContainer,
|
927
924
|
ownerState: j,
|
928
925
|
onKeyDown: $t,
|
929
926
|
ref: de,
|
930
927
|
role: "tablist",
|
931
928
|
children: Mt
|
932
|
-
}),
|
933
|
-
}),
|
929
|
+
}), He && ot]
|
930
|
+
}), $e.scrollButtonEnd]
|
934
931
|
}));
|
935
932
|
});
|
936
933
|
Z.env.NODE_ENV !== "production" && (xt.propTypes = {
|
@@ -1082,8 +1079,8 @@ Z.env.NODE_ENV !== "production" && (xt.propTypes = {
|
|
1082
1079
|
*/
|
1083
1080
|
visibleScrollbar: r.bool
|
1084
1081
|
});
|
1085
|
-
const
|
1086
|
-
Z.env.NODE_ENV !== "production" && (
|
1082
|
+
const ze = /* @__PURE__ */ v.createContext(null);
|
1083
|
+
Z.env.NODE_ENV !== "production" && (ze.displayName = "TabContext");
|
1087
1084
|
function wo() {
|
1088
1085
|
const [o, n] = v.useState(null);
|
1089
1086
|
return v.useEffect(() => {
|
@@ -1098,7 +1095,7 @@ function ht(o) {
|
|
1098
1095
|
idPrefix: i,
|
1099
1096
|
value: s
|
1100
1097
|
}), [i, s]);
|
1101
|
-
return /* @__PURE__ */ e(
|
1098
|
+
return /* @__PURE__ */ e(ze.Provider, {
|
1102
1099
|
value: b,
|
1103
1100
|
children: n
|
1104
1101
|
});
|
@@ -1118,7 +1115,7 @@ Z.env.NODE_ENV !== "production" && (ht.propTypes = {
|
|
1118
1115
|
value: r.oneOfType([r.number, r.string]).isRequired
|
1119
1116
|
});
|
1120
1117
|
function mt() {
|
1121
|
-
return v.useContext(
|
1118
|
+
return v.useContext(ze);
|
1122
1119
|
}
|
1123
1120
|
function gt(o, n) {
|
1124
1121
|
const {
|
@@ -1160,14 +1157,14 @@ Z.env.NODE_ENV !== "production" && (yt.propTypes = {
|
|
1160
1157
|
children: r.node
|
1161
1158
|
});
|
1162
1159
|
function fo(o) {
|
1163
|
-
return
|
1160
|
+
return Ie("MuiTabPanel", o);
|
1164
1161
|
}
|
1165
|
-
|
1162
|
+
Te("MuiTabPanel", ["root"]);
|
1166
1163
|
const xo = ["children", "className", "value"], ho = (o) => {
|
1167
1164
|
const {
|
1168
1165
|
classes: n
|
1169
1166
|
} = o;
|
1170
|
-
return
|
1167
|
+
return Ee({
|
1171
1168
|
root: ["root"]
|
1172
1169
|
}, fo, n);
|
1173
1170
|
}, mo = ce("div", {
|
@@ -1178,7 +1175,7 @@ const xo = ["children", "className", "value"], ho = (o) => {
|
|
1178
1175
|
theme: o
|
1179
1176
|
}) => ({
|
1180
1177
|
padding: o.spacing(3)
|
1181
|
-
})),
|
1178
|
+
})), Se = /* @__PURE__ */ v.forwardRef(function(n, s) {
|
1182
1179
|
const i = Ft({
|
1183
1180
|
props: n,
|
1184
1181
|
name: "MuiTabPanel"
|
@@ -1202,7 +1199,7 @@ const xo = ["children", "className", "value"], ho = (o) => {
|
|
1202
1199
|
children: c === $.value && b
|
1203
1200
|
}));
|
1204
1201
|
});
|
1205
|
-
Z.env.NODE_ENV !== "production" && (
|
1202
|
+
Z.env.NODE_ENV !== "production" && (Se.propTypes = {
|
1206
1203
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
1207
1204
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
1208
1205
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
@@ -1265,7 +1262,7 @@ function ae({ name: o, children: n }) {
|
|
1265
1262
|
}
|
1266
1263
|
);
|
1267
1264
|
}
|
1268
|
-
function
|
1265
|
+
function Oe({ fill: o, spinnerColor: n, stopColor: s }) {
|
1269
1266
|
return /* @__PURE__ */ l(
|
1270
1267
|
"svg",
|
1271
1268
|
{
|
@@ -1345,7 +1342,7 @@ function Be({ fill: o, spinnerColor: n, stopColor: s }) {
|
|
1345
1342
|
}
|
1346
1343
|
);
|
1347
1344
|
}
|
1348
|
-
function
|
1345
|
+
function Be({ fill: o }) {
|
1349
1346
|
return /* @__PURE__ */ l(
|
1350
1347
|
"svg",
|
1351
1348
|
{
|
@@ -1401,7 +1398,7 @@ function Le({ fill: o }) {
|
|
1401
1398
|
}
|
1402
1399
|
);
|
1403
1400
|
}
|
1404
|
-
function
|
1401
|
+
function Le({ fill: o }) {
|
1405
1402
|
return /* @__PURE__ */ l(
|
1406
1403
|
"svg",
|
1407
1404
|
{
|
@@ -1457,14 +1454,14 @@ function Me({ fill: o }) {
|
|
1457
1454
|
}
|
1458
1455
|
function go({ gasImg: o, item: n, fromChain: s }) {
|
1459
1456
|
const [i, b] = J({});
|
1460
|
-
return
|
1457
|
+
return Fe(() => {
|
1461
1458
|
var c;
|
1462
1459
|
let a = { amountInUSD: 0 };
|
1463
1460
|
(c = n == null ? void 0 : n.fee) == null || c.forEach((w) => {
|
1464
1461
|
w.source == "FROM_SOURCE_WALLET" && (a.amountInUSD += Number(w.amountInUSD));
|
1465
1462
|
}), b(a);
|
1466
1463
|
}, [n]), /* @__PURE__ */ l("div", { className: "bw-flex bw-text-sm bw-items-center bw-gap-x-1", children: [
|
1467
|
-
/* @__PURE__ */ e(
|
1464
|
+
/* @__PURE__ */ e(Ve, { fill: "var(--tw-text-secondary)" }),
|
1468
1465
|
/* @__PURE__ */ l("p", { children: [
|
1469
1466
|
"$",
|
1470
1467
|
ue((i == null ? void 0 : i.amountInUSD) || 0, 6) || 0
|
@@ -1472,41 +1469,41 @@ function go({ gasImg: o, item: n, fromChain: s }) {
|
|
1472
1469
|
] });
|
1473
1470
|
}
|
1474
1471
|
function vo({ routes: o, handleShowAllRoutes: n, handleRoutesData: s, convertVal: i, fromChain: b, toChain: a, sort: c }) {
|
1475
|
-
var _,
|
1476
|
-
const w = se((t) => t.configuration), { gasnew: h, defaultCoin: O } =
|
1472
|
+
var _, p, L;
|
1473
|
+
const w = se((t) => t.configuration), { gasnew: h, defaultCoin: O } = Ce, [$, F] = J({}), [I, P] = J({});
|
1477
1474
|
function U(t, x, y) {
|
1478
1475
|
var W;
|
1479
1476
|
B((t == null ? void 0 : t.minOutputAmountDisplay) * ((W = t == null ? void 0 : t.to) == null ? void 0 : W.lastPrice) || 0, 4);
|
1480
|
-
let S = t.outputAmountDisplay * (i || 0) || 0, T = (x[x.length - 1].outputAmountDisplay || "") * i, R = (x[0].outputAmountDisplay || "") * i,
|
1477
|
+
let S = t.outputAmountDisplay * (i || 0) || 0, T = (x[x.length - 1].outputAmountDisplay || "") * i, R = (x[0].outputAmountDisplay || "") * i, f = c == "asc" ? T : R, m = c == "asc" ? R : T;
|
1481
1478
|
return y == 0 && c !== "asc" || y == x.length - 1 && c == "asc" ? {
|
1482
1479
|
val: /* @__PURE__ */ l("p", { className: "bw-text-[10px] bw-text-text-secondary bw-font-normal", children: [
|
1483
|
-
/* @__PURE__ */ e("span", { className: "bw-text-text-greentext", children: `+$${ue(
|
1480
|
+
/* @__PURE__ */ e("span", { className: "bw-text-text-greentext", children: `+$${ue(ve(f - m), 12)}` }),
|
1484
1481
|
" Higher Output"
|
1485
1482
|
] }),
|
1486
1483
|
isMax: !0
|
1487
1484
|
} : y == x.length - 1 && c !== "asc" || y === 0 && c == "asc" ? {
|
1488
1485
|
val: /* @__PURE__ */ l("p", { className: "bw-text-[10px] bw-text-text-secondary bw-font-normal", children: [
|
1489
|
-
/* @__PURE__ */ e("span", { className: `${
|
1486
|
+
/* @__PURE__ */ e("span", { className: `${f - m === 0 ? "bw-text-text-greentext" : "bw-bg-background-container"}`, children: `-$${ue(ve(f - m), 12)}` }),
|
1490
1487
|
" ",
|
1491
|
-
|
1488
|
+
f - m === 0 ? "Higher Output" : "Less Output"
|
1492
1489
|
] }),
|
1493
|
-
isMax:
|
1490
|
+
isMax: f - m === 0
|
1494
1491
|
} : {
|
1495
1492
|
val: /* @__PURE__ */ l("p", { className: "bw-text-[10px] bw-text-text-secondary bw-font-normal", children: [
|
1496
|
-
/* @__PURE__ */ e("span", { className: `${
|
1493
|
+
/* @__PURE__ */ e("span", { className: `${f - S === 0 ? "bw-text-text-greentext" : "bw-bg-background-container"}`, children: `-$${ue(ve(f - S), 12)}` }),
|
1497
1494
|
" ",
|
1498
|
-
|
1495
|
+
f - S === 0 ? "Higher Output" : "Less Output"
|
1499
1496
|
] }),
|
1500
|
-
isMax:
|
1497
|
+
isMax: f - S === 0
|
1501
1498
|
};
|
1502
1499
|
}
|
1503
|
-
return /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e("div", { className: "bw-h-[410px] bw-pt-2 bw-overflow-y-auto", children: (L = (
|
1500
|
+
return /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e("div", { className: "bw-h-[410px] bw-pt-2 bw-overflow-y-auto", children: (L = (p = (_ = o.data) == null ? void 0 : _.data) == null ? void 0 : p.quotes) == null ? void 0 : L.sort((t, x) => {
|
1504
1501
|
let y = Number(t.outputAmountDisplay || 0), g = Number(x.outputAmountDisplay || 0);
|
1505
1502
|
return c === "asc" ? y - g : g - y;
|
1506
1503
|
}).map((t, x, y) => {
|
1507
|
-
var R,
|
1504
|
+
var R, f, m, W, G, D, E, z, X, q, Q, H, j;
|
1508
1505
|
const g = U(t, y, x);
|
1509
|
-
let S = (t == null ? void 0 : t.outputAmountDisplay) || "", T = (
|
1506
|
+
let S = (t == null ? void 0 : t.outputAmountDisplay) || "", T = (f = (R = t == null ? void 0 : t.providerDetails) == null ? void 0 : R.logoUrl) != null && f.length ? (m = t == null ? void 0 : t.providerDetails) == null ? void 0 : m.logoUrl : O;
|
1510
1507
|
return /* @__PURE__ */ e(
|
1511
1508
|
"div",
|
1512
1509
|
{
|
@@ -1523,9 +1520,9 @@ function vo({ routes: o, handleShowAllRoutes: n, handleRoutesData: s, convertVal
|
|
1523
1520
|
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",
|
1524
1521
|
children: [
|
1525
1522
|
/* @__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: [
|
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(
|
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(
|
1528
|
-
(z = t.tags) != null && z.includes("FAST") ? /* @__PURE__ */ e("div", { className: "bw-w-[20px] bw-h-[20px]", children: /* @__PURE__ */ e(
|
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(Oe, { fill: "var(--tw-background-container)" }) }) }) : /* @__PURE__ */ e(ne, {}),
|
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(Be, { fill: "var(--tw-background-container)" }) }) }) : /* @__PURE__ */ e(ne, {}),
|
1525
|
+
(z = t.tags) != null && z.includes("FAST") ? /* @__PURE__ */ e("div", { className: "bw-w-[20px] bw-h-[20px]", children: /* @__PURE__ */ e(Le, { fill: "var(--tw-background-container)" }) }) : /* @__PURE__ */ e(ne, {})
|
1529
1526
|
] }),
|
1530
1527
|
/* @__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 }) }),
|
1531
1528
|
/* @__PURE__ */ l("div", { className: "bw-absolute bw-text-[10px] bw-text-text-primary bw-font-normal bw-left-5 bw-top-1", children: [
|
@@ -1542,7 +1539,7 @@ function vo({ routes: o, handleShowAllRoutes: n, handleRoutesData: s, convertVal
|
|
1542
1539
|
] }),
|
1543
1540
|
/* @__PURE__ */ l("div", { className: "bw-flex bw-items-center bw-gap-x-1", children: [
|
1544
1541
|
/* @__PURE__ */ l("div", { className: "bw-flex bw-items-center bw-gap-x-1", children: [
|
1545
|
-
/* @__PURE__ */ e(
|
1542
|
+
/* @__PURE__ */ e(We, { fill: "var(--tw-text-secondary)" }),
|
1546
1543
|
/* @__PURE__ */ l("p", { className: "bw-text-xs bw-font-normal bw-text-text-secondary", children: [
|
1547
1544
|
t.steps.length,
|
1548
1545
|
" Step"
|
@@ -1572,7 +1569,7 @@ function vo({ routes: o, handleShowAllRoutes: n, handleRoutesData: s, convertVal
|
|
1572
1569
|
] }) }),
|
1573
1570
|
/* @__PURE__ */ l("div", { className: "bw-text-sm bw-flex bw-items-center bw-gap-x-2 bw-font-medium bw-text-text-secondary", children: [
|
1574
1571
|
/* @__PURE__ */ l("div", { className: "bw-flex bw-text-sm bw-items-center bw-gap-x-1", children: [
|
1575
|
-
/* @__PURE__ */ e(
|
1572
|
+
/* @__PURE__ */ e(je, { fill: "var(--tw-text-secondary)" }),
|
1576
1573
|
/* @__PURE__ */ l("p", { children: [
|
1577
1574
|
" ",
|
1578
1575
|
t.estimatedTimeInSeconds >= 90 ? `${Math.round(B((t.estimatedTimeInSeconds || 60) / 60, 2) || 0)}min` : `${(t == null ? void 0 : t.estimatedTimeInSeconds) || 60} secs`
|
@@ -1591,14 +1588,14 @@ function vo({ routes: o, handleShowAllRoutes: n, handleRoutesData: s, convertVal
|
|
1591
1588
|
}
|
1592
1589
|
function yo({ gasImg: o, item: n, fromChain: s }) {
|
1593
1590
|
const [i, b] = J({});
|
1594
|
-
return
|
1591
|
+
return Fe(() => {
|
1595
1592
|
var c;
|
1596
1593
|
let a = { amountInUSD: 0 };
|
1597
1594
|
(c = n == null ? void 0 : n.fee) == null || c.forEach((w) => {
|
1598
1595
|
w.source == "FROM_SOURCE_WALLET" && (a.amountInUSD += Number(w.amountInUSD));
|
1599
1596
|
}), b(a);
|
1600
1597
|
}, [n]), /* @__PURE__ */ l("div", { className: "bw-flex bw-text-sm bw-items-center bw-gap-x-1", children: [
|
1601
|
-
/* @__PURE__ */ e(
|
1598
|
+
/* @__PURE__ */ e(Ve, { fill: "var(--tw-text-secondary)" }),
|
1602
1599
|
/* @__PURE__ */ l("p", { children: [
|
1603
1600
|
"$",
|
1604
1601
|
ue((i == null ? void 0 : i.amountInUSD) || 0, 6) || 0
|
@@ -1606,8 +1603,8 @@ function yo({ gasImg: o, item: n, fromChain: s }) {
|
|
1606
1603
|
] });
|
1607
1604
|
}
|
1608
1605
|
function So({ routes: o, handleShowAllRoutes: n, handleRoutesData: s, convertVal: i, fromChain: b, sort: a, toChain: c }) {
|
1609
|
-
var _,
|
1610
|
-
const { gasnew: w, defaultCoin: h } =
|
1606
|
+
var _, p, L;
|
1607
|
+
const { gasnew: w, defaultCoin: h } = Ce, [O, $] = J({}), [F, I] = J({}), P = se((t) => t.configuration);
|
1611
1608
|
function U(t, x, y) {
|
1612
1609
|
var W, G, D;
|
1613
1610
|
let g = { amountInUSD: 0 };
|
@@ -1622,52 +1619,52 @@ function So({ routes: o, handleShowAllRoutes: n, handleRoutesData: s, convertVal
|
|
1622
1619
|
(D = x[x.length - 1].fee) == null || D.forEach((E) => {
|
1623
1620
|
E.source == "FROM_SOURCE_WALLET" && (R.amountInUSD += Number(E.amountInUSD));
|
1624
1621
|
});
|
1625
|
-
let
|
1622
|
+
let f = a === "desc" ? R.amountInUSD : T.amountInUSD, m = a === "desc" ? T.amountInUSD : R.amountInUSD;
|
1626
1623
|
return y == 0 && a !== "desc" || y == x.length - 1 && a == "desc" ? {
|
1627
1624
|
val: /* @__PURE__ */ l("p", { className: "bw-text-[10px] bw-text-text-secondary bw-font-normal", children: [
|
1628
|
-
/* @__PURE__ */ e("span", { className: "bw-text-text-greentext", children: `$${B(m -
|
1625
|
+
/* @__PURE__ */ e("span", { className: "bw-text-text-greentext", children: `$${B(m - f, 4)}` }),
|
1629
1626
|
" Cheaper"
|
1630
1627
|
] }),
|
1631
1628
|
isMax: !0
|
1632
1629
|
} : y === 0 && a !== "desc" ? {
|
1633
1630
|
val: /* @__PURE__ */ l("p", { className: "bw-text-[10px] bw-text-text-secondary bw-font-normal", children: [
|
1634
|
-
/* @__PURE__ */ e("span", { className: `${B(
|
1631
|
+
/* @__PURE__ */ e("span", { className: `${B(f - m, 4) === 0 ? "bw-text-text-greentext" : "bw-bg-background-container"}`, children: `$${B(f - m, 4)}` }),
|
1635
1632
|
" ",
|
1636
|
-
B(
|
1633
|
+
B(f - m, 4) === 0 ? "Cheaper" : "Higher"
|
1637
1634
|
] }),
|
1638
|
-
isMax: B(
|
1635
|
+
isMax: B(f - m, 4) === 0
|
1639
1636
|
} : y == x.length - 1 && a == "desc" ? {
|
1640
1637
|
val: /* @__PURE__ */ l("p", { className: "bw-text-[10px] bw-text-text-secondary bw-font-normal", children: [
|
1641
|
-
/* @__PURE__ */ e("span", { className: `${B(m -
|
1638
|
+
/* @__PURE__ */ e("span", { className: `${B(m - f, 4) === 0 ? "bw-text-text-greentext" : "bw-bg-background-container"}`, children: `$${B(m - f, 4)}` }),
|
1642
1639
|
" ",
|
1643
|
-
B(m -
|
1640
|
+
B(m - f, 4) ? "Cheaper" : "Higher"
|
1644
1641
|
] }),
|
1645
|
-
isMax: B(m -
|
1642
|
+
isMax: B(m - f, 4) === 0
|
1646
1643
|
} : {
|
1647
1644
|
val: /* @__PURE__ */ l("p", { className: "bw-text-[10px] bw-text-text-secondary bw-font-normal", children: [
|
1648
|
-
/* @__PURE__ */ e("span", { className: `${B(S -
|
1645
|
+
/* @__PURE__ */ e("span", { className: `${B(S - f, 4) === 0 ? "bw-text-text-greentext" : "bw-bg-background-container"}`, children: `$${B(S - f, 4)}` }),
|
1649
1646
|
" ",
|
1650
|
-
B(S -
|
1647
|
+
B(S - f, 4) ? "Cheaper" : "Higher"
|
1651
1648
|
] }),
|
1652
|
-
isMax: B(S -
|
1649
|
+
isMax: B(S - f, 4) === 0
|
1653
1650
|
};
|
1654
1651
|
}
|
1655
|
-
return /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e("div", { className: "bw-h-[410px] bw-pt-2 bw-overflow-y-auto", children: (L = (
|
1656
|
-
var R,
|
1652
|
+
return /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e("div", { className: "bw-h-[410px] bw-pt-2 bw-overflow-y-auto", children: (L = (p = (_ = o == null ? void 0 : o.data) == null ? void 0 : _.data) == null ? void 0 : p.quotes) == null ? void 0 : L.sort((t, x) => {
|
1653
|
+
var R, f;
|
1657
1654
|
let y = { amountInUSD: 0 };
|
1658
1655
|
(R = t == null ? void 0 : t.fee) == null || R.forEach((m) => {
|
1659
1656
|
m.source == "FROM_SOURCE_WALLET" && (y.amountInUSD += Number(m.amountInUSD));
|
1660
1657
|
});
|
1661
1658
|
let g = { amountInUSD: 0 };
|
1662
|
-
(
|
1659
|
+
(f = x == null ? void 0 : x.fee) == null || f.forEach((m) => {
|
1663
1660
|
m.source == "FROM_SOURCE_WALLET" && (g.amountInUSD += Number(m.amountInUSD));
|
1664
1661
|
});
|
1665
1662
|
let S = y.amountInUSD, T = g.amountInUSD;
|
1666
1663
|
return a === "asc" || a === "none" ? S - T : T - S;
|
1667
1664
|
}).map((t, x, y) => {
|
1668
|
-
var R,
|
1665
|
+
var R, f, m, W, G, D, E, z, X, q, Q, H, j;
|
1669
1666
|
const g = U(t, y, x);
|
1670
|
-
let S = (t == null ? void 0 : t.outputAmountDisplay) || "", T = (
|
1667
|
+
let S = (t == null ? void 0 : t.outputAmountDisplay) || "", T = (f = (R = t == null ? void 0 : t.providerDetails) == null ? void 0 : R.logoUrl) != null && f.length ? (m = t == null ? void 0 : t.providerDetails) == null ? void 0 : m.logoUrl : h;
|
1671
1668
|
return /* @__PURE__ */ e(
|
1672
1669
|
"div",
|
1673
1670
|
{
|
@@ -1684,9 +1681,9 @@ function So({ routes: o, handleShowAllRoutes: n, handleRoutesData: s, convertVal
|
|
1684
1681
|
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",
|
1685
1682
|
children: [
|
1686
1683
|
/* @__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: [
|
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(
|
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(
|
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(
|
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(Be, { fill: "var(--tw-background-container)" }) }) }) : /* @__PURE__ */ e(ne, {}),
|
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(Oe, { fill: "var(--tw-background-container)" }) }) }) : /* @__PURE__ */ e(ne, {}),
|
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(Le, { fill: "var(--tw-background-container)" }) }) }) : /* @__PURE__ */ e(ne, {})
|
1690
1687
|
] }),
|
1691
1688
|
/* @__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 }) }),
|
1692
1689
|
/* @__PURE__ */ l("div", { className: "bw-absolute bw-text-[10px] bw-text-text-primary bw-font-normal bw-left-5 bw-top-1", children: [
|
@@ -1703,7 +1700,7 @@ function So({ routes: o, handleShowAllRoutes: n, handleRoutesData: s, convertVal
|
|
1703
1700
|
] }),
|
1704
1701
|
/* @__PURE__ */ l("div", { className: "bw-flex bw-items-center bw-gap-x-1", children: [
|
1705
1702
|
/* @__PURE__ */ l("div", { className: "bw-flex bw-items-center bw-gap-x-1", children: [
|
1706
|
-
/* @__PURE__ */ e(
|
1703
|
+
/* @__PURE__ */ e(We, { fill: "var(--tw-text-secondary)" }),
|
1707
1704
|
/* @__PURE__ */ l("p", { className: "bw-text-xs bw-font-normal bw-text-text-secondary", children: [
|
1708
1705
|
t.steps.length,
|
1709
1706
|
" Step"
|
@@ -1733,7 +1730,7 @@ function So({ routes: o, handleShowAllRoutes: n, handleRoutesData: s, convertVal
|
|
1733
1730
|
] }) }),
|
1734
1731
|
/* @__PURE__ */ l("div", { className: "bw-text-sm bw-flex bw-items-center bw-gap-x-2 bw-font-medium bw-text-text-secondary", children: [
|
1735
1732
|
/* @__PURE__ */ l("div", { className: "bw-flex bw-text-sm bw-items-center bw-gap-x-1", children: [
|
1736
|
-
/* @__PURE__ */ e(
|
1733
|
+
/* @__PURE__ */ e(je, { fill: "var(--tw-text-secondary)" }),
|
1737
1734
|
/* @__PURE__ */ l("p", { children: [
|
1738
1735
|
" ",
|
1739
1736
|
t.estimatedTimeInSeconds >= 90 ? `${Math.round(B((t.estimatedTimeInSeconds || 60) / 60, 2) || 0)}min` : `${(t == null ? void 0 : t.estimatedTimeInSeconds) || 60} secs`
|
@@ -1752,14 +1749,14 @@ function So({ routes: o, handleShowAllRoutes: n, handleRoutesData: s, convertVal
|
|
1752
1749
|
}
|
1753
1750
|
function No({ gasImg: o, item: n, fromChain: s }) {
|
1754
1751
|
const [i, b] = J({});
|
1755
|
-
return
|
1752
|
+
return Fe(() => {
|
1756
1753
|
var c;
|
1757
1754
|
let a = { amountInUSD: 0 };
|
1758
1755
|
(c = n == null ? void 0 : n.fee) == null || c.forEach((w) => {
|
1759
1756
|
w.source == "FROM_SOURCE_WALLET" && (a.amountInUSD += Number(w.amountInUSD));
|
1760
1757
|
}), b(a);
|
1761
1758
|
}, [n]), /* @__PURE__ */ l("div", { className: "bw-flex bw-text-sm bw-items-center bw-gap-x-1", children: [
|
1762
|
-
/* @__PURE__ */ e(
|
1759
|
+
/* @__PURE__ */ e(Ve, { fill: "var(--tw-text-secondary)" }),
|
1763
1760
|
/* @__PURE__ */ l("p", { children: [
|
1764
1761
|
"$",
|
1765
1762
|
ue((i == null ? void 0 : i.amountInUSD) || 0, 6) || 0
|
@@ -1767,8 +1764,8 @@ function No({ gasImg: o, item: n, fromChain: s }) {
|
|
1767
1764
|
] });
|
1768
1765
|
}
|
1769
1766
|
function Co({ routes: o, handleShowAllRoutes: n, handleRoutesData: s, convertVal: i, fromChain: b, sort: a, toChain: c }) {
|
1770
|
-
var _,
|
1771
|
-
const { gasnew: w, defaultCoin: h } =
|
1767
|
+
var _, p, L;
|
1768
|
+
const { gasnew: w, defaultCoin: h } = Ce, [O, $] = J({}), [F, I] = J({}), P = se((t) => t.configuration);
|
1772
1769
|
function U(t, x, y) {
|
1773
1770
|
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;
|
1774
1771
|
return y == 0 && a !== "asc" || y == x.length - 1 && a == "asc" ? {
|
@@ -1793,13 +1790,13 @@ function Co({ routes: o, handleShowAllRoutes: n, handleRoutesData: s, convertVal
|
|
1793
1790
|
isMax: S - g === 0
|
1794
1791
|
};
|
1795
1792
|
}
|
1796
|
-
return /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e("div", { className: "bw-h-[410px] bw-pt-2 bw-overflow-y-auto", children: (L = (
|
1793
|
+
return /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e("div", { className: "bw-h-[410px] bw-pt-2 bw-overflow-y-auto", children: (L = (p = (_ = o.data) == null ? void 0 : _.data) == null ? void 0 : p.quotes) == null ? void 0 : L.sort((t, x) => {
|
1797
1794
|
let y = B((t.estimatedTimeInSeconds || 60) / 60, 2) || 0, g = B((x.estimatedTimeInSeconds || 60) / 60, 2) || 0;
|
1798
1795
|
return a === "asc" ? g - y : y - g;
|
1799
1796
|
}).map((t, x, y) => {
|
1800
|
-
var R,
|
1797
|
+
var R, f, m, W, G, D, E, z, X, q, Q, H, j;
|
1801
1798
|
const g = U(t, y, x);
|
1802
|
-
let S = (t == null ? void 0 : t.outputAmountDisplay) || "", T = (
|
1799
|
+
let S = (t == null ? void 0 : t.outputAmountDisplay) || "", T = (f = (R = t == null ? void 0 : t.providerDetails) == null ? void 0 : R.logoUrl) != null && f.length ? (m = t == null ? void 0 : t.providerDetails) == null ? void 0 : m.logoUrl : h;
|
1803
1800
|
return /* @__PURE__ */ e(
|
1804
1801
|
"div",
|
1805
1802
|
{
|
@@ -1816,9 +1813,9 @@ function Co({ routes: o, handleShowAllRoutes: n, handleRoutesData: s, convertVal
|
|
1816
1813
|
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",
|
1817
1814
|
children: [
|
1818
1815
|
/* @__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: [
|
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(
|
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(
|
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(
|
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(Le, { fill: "var(--tw-background-container)" }) }) }) : /* @__PURE__ */ e(ne, {}),
|
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(Be, { fill: "var(--tw-background-container)" }) }) }) : /* @__PURE__ */ e(ne, {}),
|
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(Oe, { fill: "var(--tw-background-container)" }) }) }) : /* @__PURE__ */ e(ne, {})
|
1822
1819
|
] }),
|
1823
1820
|
/* @__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 }) }),
|
1824
1821
|
/* @__PURE__ */ l("div", { className: "bw-absolute bw-text-[10px] bw-text-text-primary bw-font-normal bw-left-5 bw-top-1", children: [
|
@@ -1835,7 +1832,7 @@ function Co({ routes: o, handleShowAllRoutes: n, handleRoutesData: s, convertVal
|
|
1835
1832
|
] }),
|
1836
1833
|
/* @__PURE__ */ l("div", { className: "bw-flex bw-items-center bw-gap-x-1", children: [
|
1837
1834
|
/* @__PURE__ */ l("div", { className: "bw-flex bw-items-center bw-gap-x-1", children: [
|
1838
|
-
/* @__PURE__ */ e(
|
1835
|
+
/* @__PURE__ */ e(We, { fill: "var(--tw-text-secondary)" }),
|
1839
1836
|
/* @__PURE__ */ l("p", { className: "bw-text-xs bw-font-normal bw-text-text-secondary", children: [
|
1840
1837
|
t.steps.length,
|
1841
1838
|
" Step"
|
@@ -1865,7 +1862,7 @@ function Co({ routes: o, handleShowAllRoutes: n, handleRoutesData: s, convertVal
|
|
1865
1862
|
] }) }),
|
1866
1863
|
/* @__PURE__ */ l("div", { className: "bw-text-sm bw-flex bw-items-center bw-gap-x-2 bw-font-medium bw-text-text-secondary", children: [
|
1867
1864
|
/* @__PURE__ */ l("div", { className: "bw-flex bw-text-sm bw-items-center bw-gap-x-1", children: [
|
1868
|
-
/* @__PURE__ */ e(
|
1865
|
+
/* @__PURE__ */ e(je, { fill: "var(--tw-text-secondary)" }),
|
1869
1866
|
/* @__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` })
|
1870
1867
|
] }),
|
1871
1868
|
/* @__PURE__ */ e(No, { item: t, gasImg: w, fromChain: b })
|
@@ -1879,12 +1876,12 @@ function Co({ routes: o, handleShowAllRoutes: n, handleRoutesData: s, convertVal
|
|
1879
1876
|
);
|
1880
1877
|
}) }) });
|
1881
1878
|
}
|
1882
|
-
const To =
|
1879
|
+
const To = De.memo(function({ maxOpSort: o, value: n }) {
|
1883
1880
|
var i, b;
|
1884
1881
|
const s = se((a) => a.configuration);
|
1885
1882
|
return /* @__PURE__ */ l("div", { className: "bw-flex bw-items-center bw-gap-x-2", children: [
|
1886
1883
|
/* @__PURE__ */ e("div", { className: "bw-w-[16px] bw-h-[16px]", children: /* @__PURE__ */ e(
|
1887
|
-
|
1884
|
+
Oe,
|
1888
1885
|
{
|
1889
1886
|
fill: "var(--tw-background-container)",
|
1890
1887
|
spinnerColor: (i = s == null ? void 0 : s.gradientStyle) == null ? void 0 : i.spinnerColor,
|
@@ -1900,14 +1897,14 @@ const To = Fe.memo(function({ maxOpSort: o, value: n }) {
|
|
1900
1897
|
),
|
1901
1898
|
/* @__PURE__ */ l("div", { className: "bw-flex bw-gap-y-[2px] bw-items-center bw-flex-col bw-justify-center", children: [
|
1902
1899
|
/* @__PURE__ */ e(
|
1903
|
-
|
1900
|
+
Pe,
|
1904
1901
|
{
|
1905
1902
|
isSelected: o == "asc",
|
1906
1903
|
fill: "var(--tw-text-primary)"
|
1907
1904
|
}
|
1908
1905
|
),
|
1909
1906
|
/* @__PURE__ */ e(
|
1910
|
-
|
1907
|
+
_e,
|
1911
1908
|
{
|
1912
1909
|
fill: "var(--tw-text-primary)",
|
1913
1910
|
isSelected: o == "desc"
|
@@ -1915,9 +1912,9 @@ const To = Fe.memo(function({ maxOpSort: o, value: n }) {
|
|
1915
1912
|
)
|
1916
1913
|
] })
|
1917
1914
|
] });
|
1918
|
-
}), Io =
|
1915
|
+
}), Io = De.memo(function({ lowestGasSort: o, value: n }) {
|
1919
1916
|
return /* @__PURE__ */ l("div", { className: "bw-flex bw-items-center bw-gap-x-2", children: [
|
1920
|
-
/* @__PURE__ */ e("div", { className: "bw-w-[16px] bw-h-[16px]", children: /* @__PURE__ */ e(
|
1917
|
+
/* @__PURE__ */ e("div", { className: "bw-w-[16px] bw-h-[16px]", children: /* @__PURE__ */ e(Be, { fill: "var(--tw-background-container)" }) }),
|
1921
1918
|
/* @__PURE__ */ e(
|
1922
1919
|
"span",
|
1923
1920
|
{
|
@@ -1927,14 +1924,14 @@ const To = Fe.memo(function({ maxOpSort: o, value: n }) {
|
|
1927
1924
|
),
|
1928
1925
|
/* @__PURE__ */ l("div", { className: "bw-flex bw-gap-y-[2px] bw-items-center bw-flex-col bw-justify-center", children: [
|
1929
1926
|
/* @__PURE__ */ e(
|
1930
|
-
|
1927
|
+
Pe,
|
1931
1928
|
{
|
1932
1929
|
fill: "var(--tw-text-primary)",
|
1933
1930
|
isSelected: o === "asc"
|
1934
1931
|
}
|
1935
1932
|
),
|
1936
1933
|
/* @__PURE__ */ e(
|
1937
|
-
|
1934
|
+
_e,
|
1938
1935
|
{
|
1939
1936
|
fill: "var(--tw-text-primary)",
|
1940
1937
|
isSelected: o === "desc"
|
@@ -1942,9 +1939,9 @@ const To = Fe.memo(function({ maxOpSort: o, value: n }) {
|
|
1942
1939
|
)
|
1943
1940
|
] })
|
1944
1941
|
] });
|
1945
|
-
}), Eo =
|
1942
|
+
}), Eo = De.memo(function({ fastestSort: o, value: n }) {
|
1946
1943
|
return /* @__PURE__ */ l("div", { className: "bw-flex bw-items-center bw-gap-x-2", children: [
|
1947
|
-
/* @__PURE__ */ e("div", { className: "bw-w-[16px] bw-h-[16px]", children: /* @__PURE__ */ e(
|
1944
|
+
/* @__PURE__ */ e("div", { className: "bw-w-[16px] bw-h-[16px]", children: /* @__PURE__ */ e(Le, { fill: "var(--tw-background-container)" }) }),
|
1948
1945
|
/* @__PURE__ */ e(
|
1949
1946
|
"span",
|
1950
1947
|
{
|
@@ -1954,14 +1951,14 @@ const To = Fe.memo(function({ maxOpSort: o, value: n }) {
|
|
1954
1951
|
),
|
1955
1952
|
/* @__PURE__ */ l("div", { className: "bw-flex bw-gap-y-[2px] bw-items-center bw-flex-col bw-justify-center", children: [
|
1956
1953
|
/* @__PURE__ */ e(
|
1957
|
-
|
1954
|
+
Pe,
|
1958
1955
|
{
|
1959
1956
|
fill: "var(--tw-text-primary)",
|
1960
1957
|
isSelected: o === "asc"
|
1961
1958
|
}
|
1962
1959
|
),
|
1963
1960
|
/* @__PURE__ */ e(
|
1964
|
-
|
1961
|
+
_e,
|
1965
1962
|
{
|
1966
1963
|
fill: "var(--tw-text-primary)",
|
1967
1964
|
isSelected: o === "desc"
|
@@ -1978,19 +1975,19 @@ function Oo({
|
|
1978
1975
|
fromChain: b,
|
1979
1976
|
toChain: a
|
1980
1977
|
}) {
|
1981
|
-
const [c, w] = J("1"), [h, O] = J("none"), [$, F] = J("none"), [I, P] = J("none"), U = se((
|
1982
|
-
function _(
|
1978
|
+
const [c, w] = J("1"), [h, O] = J("none"), [$, F] = J("none"), [I, P] = J("none"), U = se((p) => p.configuration);
|
1979
|
+
function _(p, L) {
|
1983
1980
|
w(L);
|
1984
1981
|
}
|
1985
1982
|
return /* @__PURE__ */ l(ht, { value: c, children: [
|
1986
1983
|
/* @__PURE__ */ e(
|
1987
1984
|
_t,
|
1988
1985
|
{
|
1989
|
-
sx: (
|
1986
|
+
sx: (p) => ({
|
1990
1987
|
borderBottom: 1,
|
1991
1988
|
borderColor: "var(--tw-border-primary)",
|
1992
1989
|
width: "max-content",
|
1993
|
-
[
|
1990
|
+
[p.breakpoints.down("sm")]: { width: "100%", overflowX: "auto" },
|
1994
1991
|
marginX: "auto"
|
1995
1992
|
}),
|
1996
1993
|
children: /* @__PURE__ */ l(
|
@@ -1999,9 +1996,9 @@ function Oo({
|
|
1999
1996
|
TabIndicatorProps: {
|
2000
1997
|
style: { background: "var(--tw-text-secondary)" }
|
2001
1998
|
},
|
2002
|
-
sx: (
|
1999
|
+
sx: (p) => ({
|
2003
2000
|
width: "max-content",
|
2004
|
-
[
|
2001
|
+
[p.breakpoints.down("sm")]: {
|
2005
2002
|
width: "100%",
|
2006
2003
|
overflowX: "auto"
|
2007
2004
|
}
|
@@ -2010,15 +2007,15 @@ function Oo({
|
|
2010
2007
|
"aria-label": "lab API tabs example",
|
2011
2008
|
children: [
|
2012
2009
|
/* @__PURE__ */ e(
|
2013
|
-
|
2010
|
+
ye,
|
2014
2011
|
{
|
2015
2012
|
onClick: () => {
|
2016
2013
|
if (c == "1")
|
2017
|
-
O((
|
2014
|
+
O((p) => p == "none" ? "asc" : p === "asc" ? "desc" : "none");
|
2018
2015
|
else return !0;
|
2019
2016
|
},
|
2020
2017
|
disableRipple: !0,
|
2021
|
-
sx: (
|
2018
|
+
sx: (p) => {
|
2022
2019
|
var L;
|
2023
2020
|
return {
|
2024
2021
|
textTransform: "none",
|
@@ -2026,7 +2023,7 @@ function Oo({
|
|
2026
2023
|
fontFamily: ((L = U == null ? void 0 : U.customTheme) == null ? void 0 : L.fontFamily) || "lato",
|
2027
2024
|
width: "120px",
|
2028
2025
|
paddingX: "5px",
|
2029
|
-
[
|
2026
|
+
[p.breakpoints.down("sm")]: {
|
2030
2027
|
minWidth: "33%",
|
2031
2028
|
paddingX: "auto"
|
2032
2029
|
}
|
@@ -2037,15 +2034,15 @@ function Oo({
|
|
2037
2034
|
}
|
2038
2035
|
),
|
2039
2036
|
/* @__PURE__ */ e(
|
2040
|
-
|
2037
|
+
ye,
|
2041
2038
|
{
|
2042
2039
|
onClick: () => {
|
2043
2040
|
if (c == "2")
|
2044
|
-
F((
|
2041
|
+
F((p) => p == "none" ? "asc" : p === "asc" ? "desc" : "none");
|
2045
2042
|
else return !0;
|
2046
2043
|
},
|
2047
2044
|
disableRipple: !0,
|
2048
|
-
sx: (
|
2045
|
+
sx: (p) => {
|
2049
2046
|
var L;
|
2050
2047
|
return {
|
2051
2048
|
textTransform: "none",
|
@@ -2054,7 +2051,7 @@ function Oo({
|
|
2054
2051
|
width: "120px",
|
2055
2052
|
paddingX: "5px",
|
2056
2053
|
paddingLeft: "10px",
|
2057
|
-
[
|
2054
|
+
[p.breakpoints.down("sm")]: {
|
2058
2055
|
minWidth: "33%",
|
2059
2056
|
paddingX: "auto",
|
2060
2057
|
paddingLeft: "auto"
|
@@ -2066,15 +2063,15 @@ function Oo({
|
|
2066
2063
|
}
|
2067
2064
|
),
|
2068
2065
|
/* @__PURE__ */ e(
|
2069
|
-
|
2066
|
+
ye,
|
2070
2067
|
{
|
2071
2068
|
onClick: () => {
|
2072
2069
|
if (c == "3")
|
2073
|
-
P((
|
2070
|
+
P((p) => p == "none" ? "asc" : p === "asc" ? "desc" : "none");
|
2074
2071
|
else return !0;
|
2075
2072
|
},
|
2076
2073
|
disableRipple: !0,
|
2077
|
-
sx: (
|
2074
|
+
sx: (p) => {
|
2078
2075
|
var L;
|
2079
2076
|
return {
|
2080
2077
|
textTransform: "none",
|
@@ -2082,7 +2079,7 @@ function Oo({
|
|
2082
2079
|
fontFamily: ((L = U == null ? void 0 : U.customTheme) == null ? void 0 : L.fontFamily) || "lato",
|
2083
2080
|
width: "110px",
|
2084
2081
|
paddingX: "5px",
|
2085
|
-
[
|
2082
|
+
[p.breakpoints.down("sm")]: {
|
2086
2083
|
minWidth: "33%",
|
2087
2084
|
paddingX: "auto"
|
2088
2085
|
}
|
@@ -2098,7 +2095,7 @@ function Oo({
|
|
2098
2095
|
}
|
2099
2096
|
),
|
2100
2097
|
/* @__PURE__ */ e(
|
2101
|
-
|
2098
|
+
Se,
|
2102
2099
|
{
|
2103
2100
|
sx: { paddingLeft: "0px", paddingRight: "0px", paddingTop: "10px" },
|
2104
2101
|
value: "1",
|
@@ -2117,7 +2114,7 @@ function Oo({
|
|
2117
2114
|
}
|
2118
2115
|
),
|
2119
2116
|
/* @__PURE__ */ e(
|
2120
|
-
|
2117
|
+
Se,
|
2121
2118
|
{
|
2122
2119
|
sx: { paddingLeft: "0px", paddingRight: "0px", paddingTop: "10px" },
|
2123
2120
|
value: "2",
|
@@ -2136,7 +2133,7 @@ function Oo({
|
|
2136
2133
|
}
|
2137
2134
|
),
|
2138
2135
|
/* @__PURE__ */ e(
|
2139
|
-
|
2136
|
+
Se,
|
2140
2137
|
{
|
2141
2138
|
sx: { paddingLeft: "0px", paddingRight: "0px", paddingTop: "10px" },
|
2142
2139
|
value: "3",
|
@@ -2164,7 +2161,7 @@ function Bo({ fill1: o, fill2: n }) {
|
|
2164
2161
|
}
|
2165
2162
|
function zo({ routes: o, handleShowAllRoutes: n, handleRoutesData: s, convertVal: i, amount: b }) {
|
2166
2163
|
var O, $, F;
|
2167
|
-
const a = se((I) => I.fromChain), c = se((I) => I.fromCoin), w = se((I) => I.toChain), { defaultCoin: h } =
|
2164
|
+
const a = se((I) => I.fromChain), c = se((I) => I.fromCoin), w = se((I) => I.toChain), { defaultCoin: h } = Ce;
|
2168
2165
|
return /* @__PURE__ */ l("div", { children: [
|
2169
2166
|
/* @__PURE__ */ l("div", { className: "bw-flex bw-w-full bw-relative bw-justify-between bw-mb-2", children: [
|
2170
2167
|
/* @__PURE__ */ l("div", { className: "bw-flex bw-items-start bw-gap-x-3", children: [
|
@@ -2192,7 +2189,7 @@ function zo({ routes: o, handleShowAllRoutes: n, handleRoutesData: s, convertVal
|
|
2192
2189
|
/* @__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 }),
|
2193
2190
|
/* @__PURE__ */ l("p", { className: "bw-text-sm bw-font-bold bw-text-right bw-text-text-secondary", children: [
|
2194
2191
|
"$",
|
2195
|
-
|
2192
|
+
ve(b * (c == null ? void 0 : c.lastPrice) || 0, 10)
|
2196
2193
|
] })
|
2197
2194
|
] }),
|
2198
2195
|
/* @__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: [
|