@mx-cartographer/experiences 6.26.22-alpha.al2 → 6.26.22-alpha.al3

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/index.es.js CHANGED
@@ -2341,10 +2341,7 @@ function ku({
2341
2341
  },
2342
2342
  children: [
2343
2343
  /* @__PURE__ */ t(C, { variant: "H3", children: u }),
2344
- /* @__PURE__ */ t(C, { bold: !0, variant: "H3", children: H(
2345
- Math.abs(c[0]?.data[l]),
2346
- i
2347
- ) })
2344
+ /* @__PURE__ */ t(C, { bold: !0, variant: "H3", children: H(c[0]?.data[l], i) })
2348
2345
  ]
2349
2346
  }
2350
2347
  ),
@@ -21944,22 +21941,20 @@ const e0 = (e) => e.reduce((i, a) => {
21944
21941
  const h = _.monthlyAmounts.slice(-n).find((m) => o(m.label) === s);
21945
21942
  return {
21946
21943
  label: _.name,
21947
- amount: h?.amount || 0,
21944
+ amount: Math.abs(h?.amount || 0),
21948
21945
  header: s
21949
21946
  };
21950
21947
  }), l = e.monthlyAmounts.slice(-n).find((_) => o(_.label) === s);
21951
21948
  return [{
21952
21949
  label: e.name,
21953
- amount: l?.amount || 0,
21950
+ amount: Math.abs(l?.amount || 0),
21954
21951
  header: s
21955
- }, ...c].sort(
21956
- (_, h) => Math.abs(h.amount) - Math.abs(_.amount)
21957
- );
21952
+ }, ...c].sort((_, h) => h.amount - _.amount);
21958
21953
  });
21959
21954
  }, a0 = (e, n) => {
21960
21955
  const i = e ? e.totalMonthlyAmounts.slice(-n).map((o) => ({
21961
21956
  x: o.label.substring(0, 3),
21962
- y: o.amount
21957
+ y: Math.abs(o.amount)
21963
21958
  })) : [], a = e ? i0(e, n) : [];
21964
21959
  return { monthlyAmounts: i, tooltipLabels: a };
21965
21960
  }, Sl = ({ selectedTab: e, onTabChange: n }) => /* @__PURE__ */ t(