@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
- (l) => l.setSelectedIntegration
42602
- ), n = Fe((l) => l.setTokenIn), r = Fe((l) => l.tokenIn), i = Fe((l) => l.setChainIdIn), o = Fe((l) => l.chainIdIn), { holdingsList: s, isLoading: a } = KS();
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: a ? Array.from({ length: 10 }).map((l, c) => /* @__PURE__ */ T(
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
- c
42613
- )) : s == null ? void 0 : s.map((l) => /* @__PURE__ */ T(
42614
+ p
42615
+ )) : u == null ? void 0 : u.map((h) => /* @__PURE__ */ T(
42614
42616
  Bd,
42615
42617
  {
42616
- chainId: l.chainId,
42617
- icon: l.logoUri,
42618
- title: l.name,
42618
+ chainId: h.chainId,
42619
+ icon: h.logoUri,
42620
+ title: h.name,
42619
42621
  balance: `${Br(
42620
42622
  gr(
42621
- l.amount,
42622
- l.decimals
42623
+ h.amount,
42624
+ h.decimals
42623
42625
  )
42624
- )} ${l.symbol}`,
42625
- usdBalance: Fr(l.total),
42626
+ )} ${h.symbol}`,
42627
+ usdBalance: Fr(h.total),
42626
42628
  tag: "",
42627
42629
  loading: !1,
42628
- selected: l.token === r && l.chainId === o,
42630
+ selected: h.token === r && h.chainId === o,
42629
42631
  onClick: () => {
42630
- n(l.token), i(l.chainId);
42632
+ n(h.token), i(h.chainId);
42631
42633
  }
42632
42634
  },
42633
- `${l.token}-${l.chainId}`
42635
+ `${h.token}-${h.chainId}`
42634
42636
  )) }) }),
42635
42637
  /* @__PURE__ */ T(
42636
42638
  fr,