@mx-cartographer/experiences 6.26.22-alpha.sms2 → 6.26.22-alpha.sms3

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
@@ -5497,7 +5497,7 @@ const Dc = (e, n) => {
5497
5497
  }, Oh = (e, n) => e.tags.map((i) => n.filter((o) => o.guid === i)[0]?.name ?? "").join(" "), Lh = "uncategorized", Mh = (e, n, i, a, o, r) => {
5498
5498
  const s = kh(e, o, r), c = Gh(s, i, a);
5499
5499
  return n.forEach((l) => {
5500
- const u = c.findIndex((h) => h.guid === l), _ = r.filter((h) => h.parent_guid === l);
5500
+ const u = c.findIndex((h) => h.guid === l), _ = r.filter((h) => h?.parent_guid === l);
5501
5501
  c.splice(u + 1, 0, ..._);
5502
5502
  }), c;
5503
5503
  }, kh = (e, n, i) => {
@@ -5508,10 +5508,10 @@ const Dc = (e, n) => {
5508
5508
  searchTerm: s = "",
5509
5509
  showSplits: c = !1
5510
5510
  } = e;
5511
- return i.filter((l) => c ? !l.has_been_split : !l.parent_guid).filter((l) => !!a.find((u) => u === l.account_guid)).filter((l) => l.date >= Fe(o.start) && l.date <= Fe(o.end)).filter(r).filter((l) => {
5512
- if (s === Lh && l.has_been_split)
5511
+ return console.log("filter", e.accounts), i.filter((l) => c ? !l.has_been_split : !l?.parent_guid).filter((l) => !!a.find((u) => u === l.account_guid)).filter((l) => l.date >= Fe(o.start) && l.date <= Fe(o.end)).filter(r).filter((l) => {
5512
+ if (console.log("final filter", l), s === Lh && l.has_been_split)
5513
5513
  return !1;
5514
- if (/^spl/i.test(s) && (l.has_been_split || l.parent_guid))
5514
+ if (/^spl/i.test(s) && (l.has_been_split || l?.parent_guid))
5515
5515
  return !0;
5516
5516
  const _ = l.tags?.some(
5517
5517
  (p) => Kt(s, n.find((m) => m.guid === p)?.name)
@@ -5912,9 +5912,7 @@ const zh = ({ transaction: e, onClick: n }) => {
5912
5912
  width: c = "100%",
5913
5913
  zeroState: l = /* @__PURE__ */ t(jh, {})
5914
5914
  }) => {
5915
- const { isLoading: u, sortedTransactions: _ } = Le();
5916
- console.log("sortedTransactions", _);
5917
- const h = g.useMemo(() => s ? _ : _.filter((w) => !w.is_hidden), [_, s]), { clearExpandedSplits: p, setShowInsights: m, toggleSplit: f } = wt(), { onEvent: S } = q(), y = (w) => {
5915
+ const { isLoading: u, sortedTransactions: _ } = Le(), h = g.useMemo(() => s ? _ : _.filter((w) => !w.is_hidden), [_, s]), { clearExpandedSplits: p, setShowInsights: m, toggleSplit: f } = wt(), { onEvent: S } = q(), y = (w) => {
5918
5916
  const v = h.find((N) => N.guid === w);
5919
5917
  if (v?.has_been_split) {
5920
5918
  f(v.guid);