@mx-cartographer/experiences 6.26.27-alpha.al1 → 6.26.27-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
@@ -6594,19 +6594,24 @@ const cg = ({
6594
6594
  const i = Xl.find((a) => a.guid === e);
6595
6595
  return i ? n.palette.categories[i.colorName] || "" : n.palette.categories.uncategorized || "";
6596
6596
  }, Mc = (e, n, i, a = []) => {
6597
+ console.log("category ", e.name);
6597
6598
  const o = e.guid, r = e.parent_guid || o, s = o === r, c = n.find((m) => m.category_guid === o)?.total || 0, l = Vr(
6598
6599
  i.filter((m) => m.category_guid === o)
6599
- ), u = Vr(
6600
+ );
6601
+ console.log("currentAmount ", c), console.log("monthlyAmounts ", l);
6602
+ const u = Vr(
6600
6603
  i.filter(
6601
6604
  (m) => m.category_guid === o || m.top_level_category_guid === o
6602
6605
  )
6603
- ), _ = a.map(
6606
+ );
6607
+ console.log("totalMonthlyAmounts ", u);
6608
+ const _ = a.map(
6604
6609
  (m) => Mc(m, n, i)
6605
6610
  ), h = _.reduce(
6606
6611
  (m, p) => m + p.currentAmount,
6607
6612
  c
6608
6613
  );
6609
- return {
6614
+ return console.log("totalAmount ", h), {
6610
6615
  ...e,
6611
6616
  currentAmount: c,
6612
6617
  averageAmount: Ur(l),
@@ -24680,7 +24685,7 @@ const Ui = g.createContext(null), w0 = ({
24680
24685
  const {
24681
24686
  categoryDetailsChartData: { monthlyAmounts: i, tooltipLabels: a }
24682
24687
  } = Si();
24683
- return console.log("monothly amounts: ", i), /* @__PURE__ */ t(b, { sx: { pt: 12, width: "100%" }, children: /* @__PURE__ */ t(
24688
+ return /* @__PURE__ */ t(b, { sx: { pt: 12, width: "100%" }, children: /* @__PURE__ */ t(
24684
24689
  ni,
24685
24690
  {
24686
24691
  baseline: "min",
@@ -24743,10 +24748,9 @@ const Ui = g.createContext(null), w0 = ({
24743
24748
  const [i, a] = e, o = i, r = a ?? i, s = [];
24744
24749
  if (o) {
24745
24750
  const c = o.reduce((l, u) => l + u.y, 0);
24746
- console.log("credits: ", o), s.push({ label: n.income_label, amount: c });
24751
+ s.push({ label: n.income_label, amount: c });
24747
24752
  }
24748
24753
  if (r) {
24749
- console.log("debits: ", r);
24750
24754
  const c = r.reduce((l, u) => l + u.y, 0);
24751
24755
  s.push({ label: n.spending_label, amount: c });
24752
24756
  }