@mx-cartographer/experiences 6.26.22-alpha.sms1 → 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 +5 -5
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
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
|
|
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,12 +5508,12 @@ 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
|
|
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
|
|
5514
|
+
if (/^spl/i.test(s) && (l.has_been_split || l?.parent_guid))
|
|
5515
5515
|
return !0;
|
|
5516
|
-
const _ = l.tags
|
|
5516
|
+
const _ = l.tags?.some(
|
|
5517
5517
|
(p) => Kt(s, n.find((m) => m.guid === p)?.name)
|
|
5518
5518
|
), h = Ue(l.date);
|
|
5519
5519
|
return Kt(s, l.payee) || Kt(s, l.feed_description) || Kt(s, l.category) || Kt(s, ue(h, re.MONTH)) || Kt(s, ue(h, re.DAY)) || Kt(s, ue(h, re.FULL_MONTH_DAY)) || Kt(s, ue(h, re.MONTH_DAY_YEAR)) || Kt(s, pn(h, B_)) || Kt(s, l.account) || Kt(s, `${l.amount}`) || Kt(s, l.memo) || _;
|