@mx-cartographer/experiences 4.0.6-alpha.mm.2 → 4.0.6-alpha.mm.3

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
@@ -16609,7 +16609,7 @@ const Pt = C.createContext(null), j1 = ({
16609
16609
  }, y7 = T(xC), PC = (A) => Me[A] ?? Me.default, NC = (A) => nn[A], MC = (A) => {
16610
16610
  let e = null, n = null;
16611
16611
  const r = A.reduce((a, i) => {
16612
- const o = bA(new Date(i.year, i.month));
16612
+ const o = bA(new Date(i.year, i.month - 1));
16613
16613
  (!e || o < e.date) && (e = { date: o, year: i.year, month: i.month }), (!n || o > n.date) && (n = { date: o, year: i.year, month: i.month });
16614
16614
  const s = {
16615
16615
  top_level_category_guid: i.top_level_category_guid,
@@ -16636,7 +16636,7 @@ const Pt = C.createContext(null), j1 = ({
16636
16636
  year: ${n.year},
16637
16637
  month: ${n.month}
16638
16638
  `,
16639
- "color: green",
16639
+ "color: purple",
16640
16640
  "color: white"
16641
16641
  ), r;
16642
16642
  }, _C = (A) => {
@@ -16648,7 +16648,7 @@ const Pt = C.createContext(null), j1 = ({
16648
16648
  const d = u[0].top_level_category_guid, h = a.map((g) => {
16649
16649
  const f = u.filter((p) => p.year_month === g).reduce((p, v) => p + Math.abs(v.amount), 0), m = new Date(
16650
16650
  Number(String(g).slice(0, 4)),
16651
- Number(String(g).slice(4))
16651
+ Number(String(g).slice(4)) - 1
16652
16652
  );
16653
16653
  return (!i || m < i.date) && (i = { yearMonth: g, date: m }), (!o || m > o.date) && (o = { yearMonth: g, date: m }), { x: m, y: f };
16654
16654
  }).sort((g, f) => g.x.getTime() - f.x.getTime());
@@ -16674,7 +16674,7 @@ const Pt = C.createContext(null), j1 = ({
16674
16674
  %c yearMonth: ${o.yearMonth},
16675
16675
  date: ${o.date}
16676
16676
  `,
16677
- "color: blue",
16677
+ "color: purple",
16678
16678
  "color: white"
16679
16679
  ), s;
16680
16680
  }, Ra = (A, e) => A.map((n) => ({