@ensofinance/checkout-widget 0.1.5 → 0.1.6
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.
|
@@ -42598,39 +42598,41 @@ const Cb = [
|
|
|
42598
42598
|
] });
|
|
42599
42599
|
}, kb = ({ setStep: t }) => {
|
|
42600
42600
|
const e = Fe(
|
|
42601
|
-
(
|
|
42602
|
-
), n = Fe((
|
|
42601
|
+
(h) => h.setSelectedIntegration
|
|
42602
|
+
), n = Fe((h) => h.setTokenIn), r = Fe((h) => h.tokenIn), i = Fe((h) => h.setChainIdIn), o = Fe((h) => h.chainIdIn), s = Fe((h) => h.tokenOut), a = Fe((h) => h.chainIdOut), { holdingsList: l, isLoading: c } = KS(), u = l == null ? void 0 : l.filter(
|
|
42603
|
+
(h) => !(h.token.toLowerCase() === s.toLowerCase() && h.chainId === a)
|
|
42604
|
+
);
|
|
42603
42605
|
return Ge(() => {
|
|
42604
42606
|
e(null);
|
|
42605
42607
|
}, []), /* @__PURE__ */ ae(on, { children: [
|
|
42606
|
-
/* @__PURE__ */ T(ue, { overflowY: "scroll", maxH: "400px", children: /* @__PURE__ */ T(zo, { children:
|
|
42608
|
+
/* @__PURE__ */ T(ue, { overflowY: "scroll", maxH: "400px", children: /* @__PURE__ */ T(zo, { children: c ? Array.from({ length: 10 }).map((h, p) => /* @__PURE__ */ T(
|
|
42607
42609
|
ei,
|
|
42608
42610
|
{
|
|
42609
42611
|
height: "40px",
|
|
42610
42612
|
width: "300px"
|
|
42611
42613
|
},
|
|
42612
|
-
|
|
42613
|
-
)) :
|
|
42614
|
+
p
|
|
42615
|
+
)) : u == null ? void 0 : u.map((h) => /* @__PURE__ */ T(
|
|
42614
42616
|
Bd,
|
|
42615
42617
|
{
|
|
42616
|
-
chainId:
|
|
42617
|
-
icon:
|
|
42618
|
-
title:
|
|
42618
|
+
chainId: h.chainId,
|
|
42619
|
+
icon: h.logoUri,
|
|
42620
|
+
title: h.name,
|
|
42619
42621
|
balance: `${Br(
|
|
42620
42622
|
gr(
|
|
42621
|
-
|
|
42622
|
-
|
|
42623
|
+
h.amount,
|
|
42624
|
+
h.decimals
|
|
42623
42625
|
)
|
|
42624
|
-
)} ${
|
|
42625
|
-
usdBalance: Fr(
|
|
42626
|
+
)} ${h.symbol}`,
|
|
42627
|
+
usdBalance: Fr(h.total),
|
|
42626
42628
|
tag: "",
|
|
42627
42629
|
loading: !1,
|
|
42628
|
-
selected:
|
|
42630
|
+
selected: h.token === r && h.chainId === o,
|
|
42629
42631
|
onClick: () => {
|
|
42630
|
-
n(
|
|
42632
|
+
n(h.token), i(h.chainId);
|
|
42631
42633
|
}
|
|
42632
42634
|
},
|
|
42633
|
-
`${
|
|
42635
|
+
`${h.token}-${h.chainId}`
|
|
42634
42636
|
)) }) }),
|
|
42635
42637
|
/* @__PURE__ */ T(
|
|
42636
42638
|
fr,
|