@mx-cartographer/experiences 6.26.32 → 7.0.0-alpha.mega1
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/CHANGELOG.md +4 -0
- package/dist/Account-DY6nxO7y.mjs +30 -0
- package/dist/AccountDetailsContent-DvPs81kL.mjs +677 -0
- package/dist/AccountDetailsHeader-W2U7ZVm_.mjs +119 -0
- package/dist/AccountFields-DAVcbZy5.mjs +135 -0
- package/dist/AccountListItem-DFlbdcmT.mjs +90 -0
- package/dist/AccountStore-CU7qV3vg.mjs +230 -0
- package/dist/Accounts-BLlrQA5m.mjs +9 -0
- package/dist/BeatApi-DLu87ijw.mjs +21 -0
- package/dist/BeatStore-By4aGoRM.mjs +81 -0
- package/dist/BudgetUtil-Ci1TN0J5.mjs +101 -0
- package/dist/CashflowStore-D9Dpuz7X.mjs +91 -0
- package/dist/Category-5S6uwuXz.mjs +301 -0
- package/dist/CategorySelectorDrawer-rHyHHYuh.mjs +397 -0
- package/dist/CategoryStore-B5EW6I1d.mjs +183 -0
- package/dist/CategoryUtil-DRyruNgi.mjs +78 -0
- package/dist/ConnectDrawer-D9cR5phc.mjs +508 -0
- package/dist/ConnectionsDrawer-BzGqljSp.mjs +52 -0
- package/dist/CurrencyInput-D74cemI2.mjs +83 -0
- package/dist/CurrencyText-YUhH2caW.mjs +20 -0
- package/dist/DateUtil-BcuH7ErC.mjs +48 -0
- package/dist/DebtsStore-S0l9kr0r.mjs +60 -0
- package/dist/Dialog-CWW597AF.mjs +123 -0
- package/dist/Donut-1UMNcG67.mjs +57 -0
- package/dist/Drawer-kEE73B87.mjs +113 -0
- package/dist/EmptyState-Dcb-o2tl.mjs +55 -0
- package/dist/Fetch-CkFKy79O.mjs +116 -0
- package/dist/FinstrongStore-mkALvztw.mjs +101 -0
- package/dist/GoalStore-DioeeL-s.mjs +263 -0
- package/dist/HeaderCell-DjuifqHJ.mjs +6 -0
- package/dist/Help-DhcC-C05.mjs +320 -0
- package/dist/Help-DpYRO8oA.mjs +3181 -0
- package/dist/IconBacking-B9oC6uL2.mjs +39 -0
- package/dist/InvestmentUtil-jOyOgzIB.mjs +134 -0
- package/dist/LineChart-CcyX38kK.mjs +499 -0
- package/dist/ListItemAction-BabpYivr.mjs +69 -0
- package/dist/Loader-Dp1P2gNw.mjs +14 -0
- package/dist/Localization-2MODESHW.mjs +30 -0
- package/dist/ManageIncome-ndMuhJMG.mjs +535 -0
- package/dist/MerchantStore-DVH-QOf0.mjs +37 -0
- package/dist/MicroWidgetContainer-CsvHLYKX.mjs +45 -0
- package/dist/MiniWidgetContainer-BoOp-A05.mjs +39 -0
- package/dist/NetWorthStore-PD-RUe09.mjs +150 -0
- package/dist/Notification-AMGWM1Al.mjs +78 -0
- package/dist/NotificationSettings-VhHuMAFU.mjs +667 -0
- package/dist/NotificationStore-DHtSGySy.mjs +67 -0
- package/dist/NumberFormatting-CtWHhyBX.mjs +40 -0
- package/dist/OriginalBalanceAction-D39mx6uE.mjs +115 -0
- package/dist/RecurringSettings-D_HnMYZP.mjs +57 -0
- package/dist/RecurringTransactionsStore-BKLD3OWo.mjs +263 -0
- package/dist/RepeatingTransaction-BPWfaB3f.mjs +282 -0
- package/dist/SearchBox-B2_zLv8-.mjs +42 -0
- package/dist/SettingsStore-CE7jDVFL.mjs +265 -0
- package/dist/SingleSegmentDonut-BgbLgwHi.mjs +69 -0
- package/dist/SpendingData-BkrxzHdr.mjs +55 -0
- package/dist/StatusBar-BK_uYHAB.mjs +30 -0
- package/dist/TabContentContainer-j01JYR_7.mjs +21 -0
- package/dist/Transaction-CA0FW2Ij.mjs +312 -0
- package/dist/TransactionApi-DbbcjI2L.mjs +86 -0
- package/dist/TransactionDetails-WBHFmbxL.mjs +1283 -0
- package/dist/TransactionStore-CeLdmVnC.mjs +669 -0
- package/dist/TrendsStore-BHJUapXF.mjs +487 -0
- package/dist/ViewMoreMicroCard-CAPFNz-J.mjs +1959 -0
- package/dist/WidgetContainer-DWCusxYI.mjs +556 -0
- package/dist/accounts/index.es.js +752 -0
- package/dist/analytics/index.es.js +171 -0
- package/dist/budgets/index.es.js +1075 -0
- package/dist/cashflow/index.es.js +1098 -0
- package/dist/categories/index.es.js +9 -0
- package/dist/common/context/hooks.d.ts +13 -13
- package/dist/common/index.es.js +1451 -0
- package/dist/dashboard/index.es.js +181 -0
- package/dist/debts/index.es.js +1460 -0
- package/dist/exportTransactionsToCSV-CmwsKl2D.mjs +47 -0
- package/dist/finstrong/index.es.js +1455 -0
- package/dist/goals/index.es.js +1209 -0
- package/dist/help/components/content/section/index.d.ts +15 -15
- package/dist/help/index.es.js +14 -0
- package/dist/hooks-30y_BLwc.mjs +71 -0
- package/dist/index.d.ts +0 -22
- package/dist/insights/index.d.ts +1 -0
- package/dist/insights/index.es.js +4 -0
- package/dist/investments/index.es.js +1638 -0
- package/dist/merchants/index.es.js +79 -0
- package/dist/microinsights/index.es.js +16 -0
- package/dist/networth/index.es.js +576 -0
- package/dist/notifications/index.es.js +192 -0
- package/dist/recurringtransactions/index.es.js +879 -0
- package/dist/settings/index.es.js +879 -0
- package/dist/spending/index.es.js +570 -0
- package/dist/transactions/index.es.js +587 -0
- package/dist/trends/index.es.js +1086 -0
- package/dist/useCombineEvents-DaDBSR_1.mjs +92 -0
- package/dist/useDimensions-27p2evRx.mjs +36 -0
- package/dist/useScreenSize-B6JyS_Lj.mjs +36 -0
- package/package.json +155 -3
- package/dist/index.es.js +0 -30508
- package/dist/index.es.js.map +0 -1
@@ -0,0 +1,47 @@
|
|
1
|
+
import { fromUnixTime as c } from "date-fns/fromUnixTime";
|
2
|
+
import { C as u } from "./Category-5S6uwuXz.mjs";
|
3
|
+
import { f as p, D as m } from "./Dialog-CWW597AF.mjs";
|
4
|
+
import { T as g } from "./Transaction-CA0FW2Ij.mjs";
|
5
|
+
function f(n) {
|
6
|
+
return new Set(
|
7
|
+
n.filter((e) => e.parent_guid !== void 0).map((e) => e.parent_guid)
|
8
|
+
);
|
9
|
+
}
|
10
|
+
function T(n) {
|
11
|
+
return n.reduce((e, t) => (t.parent_guid && (e[t.parent_guid] || (e[t.parent_guid] = []), e[t.parent_guid].push(t)), e), {});
|
12
|
+
}
|
13
|
+
function E(n, e) {
|
14
|
+
const t = f(e), i = T(e), o = /* @__PURE__ */ new Set(), a = [];
|
15
|
+
for (const r of n)
|
16
|
+
t.has(r.guid) ? (i[r.guid] ?? []).slice().sort((s, d) => Math.abs(d.amount) - Math.abs(s.amount)).forEach((s) => {
|
17
|
+
o.has(s.guid) || (a.push(s), o.add(s.guid));
|
18
|
+
}) : o.has(r.guid) || (a.push(r), o.add(r.guid));
|
19
|
+
return a;
|
20
|
+
}
|
21
|
+
const j = (n, e) => {
|
22
|
+
const t = h(l(n, e)), i = encodeURIComponent(t), o = document.createElement("a");
|
23
|
+
o.href = `data:attachment/csv;charset=utf-8,${i}`, o.download = "transactions.csv", document.body.appendChild(o), o.click(), document.body.removeChild(o);
|
24
|
+
}, l = (n, e) => n.map((t) => ({
|
25
|
+
Date: p(c(t.date), m.YEAR_MONTH_DAY),
|
26
|
+
Description: _(t),
|
27
|
+
"Original Description": t.feed_description,
|
28
|
+
Amount: `${t.amount}`,
|
29
|
+
Type: t.transaction_type === g.CREDIT ? "Credit" : "Debit",
|
30
|
+
"Parent Category": u[t.top_level_category_guid || ""],
|
31
|
+
Category: t.category,
|
32
|
+
Account: t.account,
|
33
|
+
Tags: C(t, e),
|
34
|
+
Memo: t.memo
|
35
|
+
})), h = (n) => {
|
36
|
+
const e = Object.keys(n[0]).join(",").concat(`\r
|
37
|
+
`), t = n.map((i) => Object.values(i).join(",")).join(`\r
|
38
|
+
`);
|
39
|
+
return e + t;
|
40
|
+
}, _ = (n) => {
|
41
|
+
let e = n.parent_guid ? "Split: " : "";
|
42
|
+
return e += n.is_hidden ? "(Excluded) " : "", e += n.description, e;
|
43
|
+
}, C = (n, e) => n.tags.map((t) => e.filter((o) => o.guid === t)[0]?.name ?? "").join(" ");
|
44
|
+
export {
|
45
|
+
j as e,
|
46
|
+
E as f
|
47
|
+
};
|