@mx-cartographer/experiences 6.24.15-alpha.al1 → 6.24.15-alpha.al2
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 +2 -2
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -20361,7 +20361,7 @@ const ef = (e) => e.reduce((a, i) => {
|
|
|
20361
20361
|
}, af = (e) => e.reduce((n, a) => {
|
|
20362
20362
|
const i = a.top_level_category_guid, o = a.category_guid;
|
|
20363
20363
|
return i && (n[i] || (n[i] = { monthlyTotals: [], transactions: [], transactionCount: 0 }), n[i].transactions.push(a), o === i && n[i].transactionCount++), o && o !== i && (n[o] || (n[o] = { monthlyTotals: [], transactions: [], transactionCount: 0 }), n[o].transactions.push(a), n[o].transactionCount++), n;
|
|
20364
|
-
}, {}), tl = (e) => e.reduce((n, a) => n + a.total, 0), of = (e, n, a) => ({
|
|
20364
|
+
}, {}), tl = (e) => e.reduce((n, a) => n + Math.abs(a.total), 0), of = (e, n, a) => ({
|
|
20365
20365
|
guid: e,
|
|
20366
20366
|
name: Fo(e),
|
|
20367
20367
|
amount: tl(n),
|
|
@@ -20371,7 +20371,7 @@ const ef = (e) => e.reduce((a, i) => {
|
|
|
20371
20371
|
}), rf = (e, n, a, i, o) => {
|
|
20372
20372
|
const r = tl(a), { subcategoryAmount: s, subcategoryTransactionCount: c } = n.reduce(
|
|
20373
20373
|
(d, _) => ({
|
|
20374
|
-
subcategoryAmount: d.subcategoryAmount + _.amount,
|
|
20374
|
+
subcategoryAmount: d.subcategoryAmount + Math.abs(_.amount),
|
|
20375
20375
|
subcategoryTransactionCount: d.subcategoryTransactionCount + (_.transactionCount || 0)
|
|
20376
20376
|
}),
|
|
20377
20377
|
{ subcategoryAmount: 0, subcategoryTransactionCount: 0 }
|