@mx-cartographer/experiences 8.1.0 → 8.1.2
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 +9 -0
- package/dist/{Account-DuOz1a27.mjs → Account-BIKn4XEZ.mjs} +1 -1
- package/dist/{Account-BiB1F8lL.mjs → Account-CMjOp7S2.mjs} +2 -2
- package/dist/{AccountDetailsHeader-IPRH6Wja.mjs → AccountDetailsHeader-D_a0XUkL.mjs} +6 -6
- package/dist/{AccountFields-BbPSfzru.mjs → AccountFields-nrrEXd46.mjs} +30 -29
- package/dist/{AccountListItem-qpACFl6i.mjs → AccountListItem-D80egD01.mjs} +5 -5
- package/dist/{AccountStore-BeEiLNhW.mjs → AccountStore-B3S_p5Qa.mjs} +3 -3
- package/dist/{Accounts-o7ohkngR.mjs → Accounts-DX3xJE97.mjs} +1 -1
- package/dist/{Analytics-CjZ0emfs.mjs → Analytics-CxK7O19c.mjs} +2 -2
- package/dist/{BudgetUtil-CLh4xtj4.mjs → BudgetUtil-DalEN9--.mjs} +47 -47
- package/dist/{CashflowStore-CeAzChyD.mjs → CashflowStore-BEi92kJg.mjs} +10 -10
- package/dist/{Category-CevNQ03n.mjs → Category-Ccoew_sA.mjs} +2 -2
- package/dist/{CategorySelectorDrawer-BG04ByUx.mjs → CategorySelectorDrawer-DjeHNx71.mjs} +7 -7
- package/dist/{CategoryStore-Bp1kO9Z-.mjs → CategoryStore-CA4NTaKH.mjs} +2 -2
- package/dist/{CategoryUtil-DKRCegQv.mjs → CategoryUtil-BJOHgYKS.mjs} +3 -3
- package/dist/{Connect-eYIWqCEr.mjs → Connect-BRLh-69J.mjs} +1 -1
- package/dist/{ConnectDrawer-C0wjwcJt.mjs → ConnectDrawer-5BpU4IQU.mjs} +3 -3
- package/dist/{ConnectionsDrawer-IA7vnv1J.mjs → ConnectionsDrawer-DxpSlJN7.mjs} +3 -3
- package/dist/{CurrencyInput-BkNVHxSV.mjs → CurrencyInput-CSJ3zMgE.mjs} +18 -18
- package/dist/DateUtil-D0TO0DaZ.mjs +58 -0
- package/dist/{DebtsStore-BZqNLaqd.mjs → DebtsStore-BJlC2-yO.mjs} +1 -1
- package/dist/{Dialog-Ck34yr-d.mjs → Dialog-iLlBR8TG.mjs} +6 -6
- package/dist/{Donut-CpxJlVvJ.mjs → Donut-D7ekbgf5.mjs} +12 -12
- package/dist/{Drawer-Bbe4AMB1.mjs → Drawer-XPaLYjiO.mjs} +11 -11
- package/dist/{EmbeddedCard-j7IGx3s1.mjs → EmbeddedCard-BCcn_fK2.mjs} +193 -193
- package/dist/{ExportCsvAction-7sjz7AXQ.mjs → ExportCsvAction-BPjdEUXx.mjs} +5 -5
- package/dist/{FinstrongStore-DgyDJTEP.mjs → FinstrongStore-DYawCv1d.mjs} +54 -54
- package/dist/{GlobalAccountFilter-CmnaZDS6.mjs → GlobalAccountFilter-CZbiDwBH.mjs} +1 -1
- package/dist/{GoalStore-DcaT4fM6.mjs → GoalStore-DmqM1ZfW.mjs} +1 -1
- package/dist/{Help-B8mD4aLJ.mjs → Help-CgpJK03Q.mjs} +6 -6
- package/dist/{Help-cTsMzSQh.mjs → Help-DuhUdMTZ.mjs} +95 -98
- package/dist/{IconBacking-B9oC6uL2.mjs → IconBacking-DgT8DCeh.mjs} +11 -11
- package/dist/{LineChart-DkD_s9NN.mjs → LineChart-jJVBE8V8.mjs} +1 -1
- package/dist/{ListItemAction-4KB7P75M.mjs → ListItemAction-Buv7tPLp.mjs} +4 -4
- package/dist/{Loader-D3rjKx72.mjs → Loader-CxeBwuPG.mjs} +5 -5
- package/dist/{ManageIncome-DwSE_a8L.mjs → ManageIncome-CrHDAku7.mjs} +8 -8
- package/dist/MicroWidgetContainer-CEcwdfti.mjs +45 -0
- package/dist/MiniWidgetContainer-CmTGSUL5.mjs +66 -0
- package/dist/{NetWorthStore-Ba3q3VcH.mjs → NetWorthStore-BY-B_hxy.mjs} +4 -4
- package/dist/{NotificationSettings-DB-eNgSv.mjs → NotificationSettings-DOgnTxzv.mjs} +9 -9
- package/dist/{OriginalBalanceAction-AB1TGb5P.mjs → OriginalBalanceAction-C8VJZUat.mjs} +9 -9
- package/dist/{RecurringSettings-CZKeZC4m.mjs → RecurringSettings-CIpZL4CX.mjs} +2 -2
- package/dist/{RecurringTransactions-kzlU8OFY.mjs → RecurringTransactions-DCt94TN4.mjs} +47 -47
- package/dist/{RecurringTransactionsStore-D62Dt2BF.mjs → RecurringTransactionsStore-CFJYC7lI.mjs} +1 -1
- package/dist/{ResponsiveButton-DZFp78fJ.mjs → ResponsiveButton-BNsV08Ud.mjs} +12 -12
- package/dist/{SettingsStore-Dsz1mvd3.mjs → SettingsStore-BcbuKfFO.mjs} +1 -1
- package/dist/{SingleSegmentDonut-BgbLgwHi.mjs → SingleSegmentDonut-PsRQPkmV.mjs} +5 -5
- package/dist/{SpendingData-CoZOmlZD.mjs → SpendingData-Dj85XEUp.mjs} +3 -3
- package/dist/{SpendingLegend-DljKEG69.mjs → SpendingLegend-DIWHSsKw.mjs} +5 -5
- package/dist/{StatusBar-BK_uYHAB.mjs → StatusBar-CPfSXe80.mjs} +6 -6
- package/dist/{TabContentContainer-j01JYR_7.mjs → TabContentContainer-CnMXkVqr.mjs} +8 -8
- package/dist/{TransactionDetails-CN-yZkin.mjs → TransactionDetails-Db8dwHoM.mjs} +21 -21
- package/dist/{TransactionStore-6ovFO8P1.mjs → TransactionStore-BUsP-unK.mjs} +40 -57
- package/dist/{TrendsStore-DZa6cyQC.mjs → TrendsStore-bYjIGqyR.mjs} +1 -1
- package/dist/{ViewMoreMicroCard-BsEitNRJ.mjs → ViewMoreMicroCard-C7dC9lDT.mjs} +93 -94
- package/dist/WidgetContainer-CCR7I0gu.mjs +470 -0
- package/dist/accounts/index.es.js +29 -29
- package/dist/analytics/index.es.js +10 -10
- package/dist/budgets/index.es.js +19 -19
- package/dist/cashflow/index.es.js +110 -110
- package/dist/categories/index.es.js +2 -2
- package/dist/common/hooks/useWidgetHeaderStyles.d.ts +1 -0
- package/dist/common/index.es.js +250 -250
- package/dist/core/index.es.js +64 -64
- package/dist/dashboard/index.es.js +22 -22
- package/dist/debts/index.es.js +22 -22
- package/dist/{exportTransactionsToCSV-Dnd5lVq7.mjs → exportTransactionsToCSV-B2Lp7AMl.mjs} +7 -7
- package/dist/finstrong/index.es.js +22 -22
- package/dist/goals/index.es.js +17 -17
- package/dist/help/index.es.js +5 -5
- package/dist/{hooks-BxkfR-Ff.mjs → hooks-HwStH7q_.mjs} +9 -9
- package/dist/insights/index.es.js +328 -328
- package/dist/investments/index.es.js +10 -10
- package/dist/merchants/index.es.js +9 -9
- package/dist/microinsights/index.es.js +1 -1
- package/dist/networth/index.es.js +25 -25
- package/dist/notifications/index.es.js +5 -5
- package/dist/recurringtransactions/index.es.js +23 -23
- package/dist/settings/index.es.js +96 -96
- package/dist/spending/index.es.js +65 -65
- package/dist/transactions/index.es.js +74 -74
- package/dist/trends/index.es.js +55 -55
- package/dist/{useAccountDisplayName-DKwT1mWv.mjs → useAccountDisplayName-SrQA7K_6.mjs} +1 -1
- package/dist/{useInsightsEnabled-DL_oNyI0.mjs → useInsightsEnabled-DzvRm5Bo.mjs} +1 -1
- package/dist/{useScreenSize-CUcpY7aJ.mjs → useScreenSize-CeFhWTt_.mjs} +1 -1
- package/dist/{useWidgetLoadTimer-DgN1bTyu.mjs → useWidgetLoadTimer-wkBTL5xx.mjs} +1 -1
- package/package.json +20 -20
- package/dist/DateUtil-C57sqxn4.mjs +0 -54
- package/dist/MicroWidgetContainer-B_EnfvCq.mjs +0 -45
- package/dist/MiniWidgetContainer-Bhkv-hpz.mjs +0 -66
- package/dist/WidgetContainer-Bc75FqK7.mjs +0 -468
|
@@ -5,38 +5,38 @@ import { startOfMonth as ot } from "date-fns/startOfMonth";
|
|
|
5
5
|
import { endOfMonth as at } from "date-fns/endOfMonth";
|
|
6
6
|
import L from "@mui/material/Box";
|
|
7
7
|
import y from "@mui/material/Stack";
|
|
8
|
-
import
|
|
8
|
+
import O from "@mui/material/Tab";
|
|
9
9
|
import it from "@mui/material/Tabs";
|
|
10
10
|
import _t from "@mui/material/styles/useTheme";
|
|
11
|
-
import { g as rt, a as st, S as
|
|
11
|
+
import { g as rt, a as st, S as k, b as Y } from "../SpendingLegend-DIWHSsKw.mjs";
|
|
12
12
|
import { Text as T, Icon as bt } from "@mxenabled/mxui";
|
|
13
13
|
import { f as N } from "../NumberFormatting-CyrvFgfd.mjs";
|
|
14
|
-
import { u as A, l as W, d as lt, b as z, a as V, h as
|
|
15
|
-
import { u as
|
|
16
|
-
import { L as gt } from "../Loader-
|
|
17
|
-
import { M as Ct } from "../MiniWidgetContainer-
|
|
14
|
+
import { u as A, l as W, d as lt, b as z, a as V, h as dt, g as yt } from "../hooks-HwStH7q_.mjs";
|
|
15
|
+
import { u as ct } from "../useWidgetLoadTimer-wkBTL5xx.mjs";
|
|
16
|
+
import { L as gt } from "../Loader-CxeBwuPG.mjs";
|
|
17
|
+
import { M as Ct } from "../MiniWidgetContainer-CmTGSUL5.mjs";
|
|
18
18
|
import { startOfToday as q } from "date-fns/startOfToday";
|
|
19
19
|
import St from "@mui/material/Button";
|
|
20
20
|
import { useTheme as Tt } from "@mui/material";
|
|
21
|
-
import { e as Mt } from "../exportTransactionsToCSV-
|
|
22
|
-
import { T as Dt } from "../EmbeddedCard-
|
|
23
|
-
import { T as xt } from "../TransactionDetails-
|
|
21
|
+
import { e as Mt } from "../exportTransactionsToCSV-B2Lp7AMl.mjs";
|
|
22
|
+
import { T as Dt } from "../EmbeddedCard-BCcn_fK2.mjs";
|
|
23
|
+
import { T as xt } from "../TransactionDetails-Db8dwHoM.mjs";
|
|
24
24
|
import vt from "@mui/material/Collapse";
|
|
25
25
|
import wt from "@mui/material/Divider";
|
|
26
26
|
import J from "@mui/material/List";
|
|
27
27
|
import Q from "@mui/material/ListItem";
|
|
28
28
|
import X from "@mui/material/ListItemButton";
|
|
29
|
-
import { u as Lt } from "../useScreenSize-
|
|
30
|
-
import { D as Z } from "../Drawer-
|
|
31
|
-
import { b as w } from "../Category-
|
|
29
|
+
import { u as Lt } from "../useScreenSize-CeFhWTt_.mjs";
|
|
30
|
+
import { D as Z } from "../Drawer-XPaLYjiO.mjs";
|
|
31
|
+
import { b as w } from "../Category-Ccoew_sA.mjs";
|
|
32
32
|
import { parseISO as tt } from "date-fns/parseISO";
|
|
33
33
|
import { A as et } from "../Analytics-0Xm_BjHU.mjs";
|
|
34
|
-
import { W as It } from "../WidgetContainer-
|
|
35
|
-
const
|
|
36
|
-
/* @__PURE__ */ t(T, { bold: !0, sx: { textTransform: "none" }, variant: "body1", children:
|
|
34
|
+
import { W as It } from "../WidgetContainer-CCR7I0gu.mjs";
|
|
35
|
+
const $ = ({ amount: n, label: c, variant: o = "full" }) => /* @__PURE__ */ p(y, { direction: "column", children: [
|
|
36
|
+
/* @__PURE__ */ t(T, { bold: !0, sx: { textTransform: "none" }, variant: "body1", children: c }),
|
|
37
37
|
/* @__PURE__ */ t(T, { variant: "caption", children: N(n, o === "mini" ? "0,0" : "0,0.00") })
|
|
38
38
|
] }), At = () => {
|
|
39
|
-
const n = _t(), { goals:
|
|
39
|
+
const n = _t(), { goals: c, spending: o } = A(), { categories: a, dateRangeCategoryTotals: i } = W(), g = l.useMemo(
|
|
40
40
|
() => [
|
|
41
41
|
n.palette.chartMono.chartMono5,
|
|
42
42
|
n.palette.chartMono.chartMono4,
|
|
@@ -46,8 +46,8 @@ const k = ({ amount: n, label: d, variant: o = "full" }) => /* @__PURE__ */ p(y,
|
|
|
46
46
|
n.palette.chartMono.chartMono6
|
|
47
47
|
],
|
|
48
48
|
[n]
|
|
49
|
-
), [e, r] = l.useState(""), [
|
|
50
|
-
() => rt(a,
|
|
49
|
+
), [e, r] = l.useState(""), [d, b] = l.useState(0), u = l.useMemo(
|
|
50
|
+
() => rt(a, c, n, i),
|
|
51
51
|
[a, i]
|
|
52
52
|
), h = l.useMemo(
|
|
53
53
|
() => st(a, i, g),
|
|
@@ -63,39 +63,39 @@ const k = ({ amount: n, label: d, variant: o = "full" }) => /* @__PURE__ */ p(y,
|
|
|
63
63
|
{
|
|
64
64
|
"aria-label": o.mini_title,
|
|
65
65
|
onChange: M,
|
|
66
|
-
value:
|
|
66
|
+
value: d,
|
|
67
67
|
variant: "fullWidth",
|
|
68
68
|
children: [
|
|
69
69
|
/* @__PURE__ */ t(
|
|
70
|
-
|
|
70
|
+
O,
|
|
71
71
|
{
|
|
72
72
|
"aria-controls": "spending-tabpanel",
|
|
73
73
|
id: "spending-tab",
|
|
74
74
|
label: /* @__PURE__ */ t(
|
|
75
|
-
|
|
75
|
+
$,
|
|
76
76
|
{
|
|
77
77
|
amount: u.totalAmount,
|
|
78
78
|
label: o.spend_tab_title,
|
|
79
79
|
variant: "mini"
|
|
80
80
|
}
|
|
81
81
|
),
|
|
82
|
-
tabIndex:
|
|
82
|
+
tabIndex: d === 0 ? 0 : -1
|
|
83
83
|
}
|
|
84
84
|
),
|
|
85
85
|
/* @__PURE__ */ t(
|
|
86
|
-
|
|
86
|
+
O,
|
|
87
87
|
{
|
|
88
88
|
"aria-controls": "income-tabpanel",
|
|
89
89
|
id: "income-tab",
|
|
90
90
|
label: /* @__PURE__ */ t(
|
|
91
|
-
|
|
91
|
+
$,
|
|
92
92
|
{
|
|
93
93
|
amount: h.totalAmount,
|
|
94
94
|
label: o.income_tab_title,
|
|
95
95
|
variant: "mini"
|
|
96
96
|
}
|
|
97
97
|
),
|
|
98
|
-
tabIndex:
|
|
98
|
+
tabIndex: d === 1 ? 0 : -1
|
|
99
99
|
}
|
|
100
100
|
)
|
|
101
101
|
]
|
|
@@ -105,12 +105,12 @@ const k = ({ amount: n, label: d, variant: o = "full" }) => /* @__PURE__ */ p(y,
|
|
|
105
105
|
L,
|
|
106
106
|
{
|
|
107
107
|
"aria-labelledby": "spending-tab",
|
|
108
|
-
hidden:
|
|
108
|
+
hidden: d !== 0,
|
|
109
109
|
id: "spending-tabpanel",
|
|
110
110
|
role: "tabpanel",
|
|
111
111
|
children: /* @__PURE__ */ p(y, { direction: "row", gap: 16, justifyContent: "center", p: 24, children: [
|
|
112
112
|
/* @__PURE__ */ t(
|
|
113
|
-
|
|
113
|
+
k,
|
|
114
114
|
{
|
|
115
115
|
data: u,
|
|
116
116
|
onSelected: _,
|
|
@@ -126,12 +126,12 @@ const k = ({ amount: n, label: d, variant: o = "full" }) => /* @__PURE__ */ p(y,
|
|
|
126
126
|
L,
|
|
127
127
|
{
|
|
128
128
|
"aria-labelledby": "income-tab",
|
|
129
|
-
hidden:
|
|
129
|
+
hidden: d !== 1,
|
|
130
130
|
id: "income-tabpanel",
|
|
131
131
|
role: "tabpanel",
|
|
132
132
|
children: /* @__PURE__ */ p(y, { direction: "row", gap: 16, justifyContent: "center", p: 24, children: [
|
|
133
133
|
/* @__PURE__ */ t(
|
|
134
|
-
|
|
134
|
+
k,
|
|
135
135
|
{
|
|
136
136
|
data: h,
|
|
137
137
|
isIncome: !0,
|
|
@@ -145,9 +145,9 @@ const k = ({ amount: n, label: d, variant: o = "full" }) => /* @__PURE__ */ p(y,
|
|
|
145
145
|
}
|
|
146
146
|
)
|
|
147
147
|
] });
|
|
148
|
-
}, Et = I(At), Wt = ({ onPrimaryCtaClick: n, sx:
|
|
149
|
-
const { isAccountDataLoaded: o, loadAccountData: a } = lt(), { dateRangeTotalsLoaded: i, categoriesLoaded: g, loadCategories: e, loadDateRangeCategoryTotals: r } = W(), { spending:
|
|
150
|
-
return
|
|
148
|
+
}, Et = I(At), Wt = ({ onPrimaryCtaClick: n, sx: c = {} }) => {
|
|
149
|
+
const { isAccountDataLoaded: o, loadAccountData: a } = lt(), { dateRangeTotalsLoaded: i, categoriesLoaded: g, loadCategories: e, loadDateRangeCategoryTotals: r } = W(), { spending: d } = A(), { isInitialized: b, selectedAccounts: u } = z();
|
|
150
|
+
return ct({
|
|
151
151
|
widgetName: "SpendingMiniWidget",
|
|
152
152
|
isLoaded: i
|
|
153
153
|
}), l.useEffect(() => {
|
|
@@ -163,16 +163,16 @@ const k = ({ amount: n, label: d, variant: o = "full" }) => /* @__PURE__ */ p(y,
|
|
|
163
163
|
{
|
|
164
164
|
className: "mx-exp-spending-miniwidget",
|
|
165
165
|
onPrimaryCtaClick: n,
|
|
166
|
-
primaryCtaLabel:
|
|
167
|
-
primaryCtaLabelAria:
|
|
168
|
-
sx: { height: "100%", ...
|
|
169
|
-
title:
|
|
166
|
+
primaryCtaLabel: d.primary_cta,
|
|
167
|
+
primaryCtaLabelAria: d.primary_cta_aria,
|
|
168
|
+
sx: { height: "100%", ...c },
|
|
169
|
+
title: d.mini_title,
|
|
170
170
|
children: /* @__PURE__ */ t(Et, {})
|
|
171
171
|
}
|
|
172
172
|
) : /* @__PURE__ */ t(gt, {});
|
|
173
173
|
}, Ce = I(Wt), Rt = ({
|
|
174
174
|
data: n,
|
|
175
|
-
onSelected:
|
|
175
|
+
onSelected: c,
|
|
176
176
|
selectedId: o = "",
|
|
177
177
|
title: a
|
|
178
178
|
}) => {
|
|
@@ -196,7 +196,7 @@ const k = ({ amount: n, label: d, variant: o = "full" }) => /* @__PURE__ */ p(y,
|
|
|
196
196
|
{
|
|
197
197
|
"aria-expanded": g?.guid === e.guid,
|
|
198
198
|
id: `spending-list-category-${e.guid}`,
|
|
199
|
-
onClick: () =>
|
|
199
|
+
onClick: () => c(e.guid),
|
|
200
200
|
sx: { minHeight: 44, px: 8, py: 0 },
|
|
201
201
|
children: [
|
|
202
202
|
/* @__PURE__ */ t(
|
|
@@ -240,7 +240,7 @@ const k = ({ amount: n, label: d, variant: o = "full" }) => /* @__PURE__ */ p(y,
|
|
|
240
240
|
X,
|
|
241
241
|
{
|
|
242
242
|
id: `spending-list-subcategory-${r.guid}`,
|
|
243
|
-
onClick: () =>
|
|
243
|
+
onClick: () => c(r.guid, !0),
|
|
244
244
|
sx: { minHeight: 44, px: 8, py: 0 },
|
|
245
245
|
children: /* @__PURE__ */ p(y, { direction: "row", justifyContent: "space-between", width: "100%", children: [
|
|
246
246
|
/* @__PURE__ */ p(T, { children: [
|
|
@@ -257,14 +257,14 @@ const k = ({ amount: n, label: d, variant: o = "full" }) => /* @__PURE__ */ p(y,
|
|
|
257
257
|
] }, e.guid)) }),
|
|
258
258
|
/* @__PURE__ */ t(T, { bold: !0, sx: { mt: 12, pr: 8, textAlign: "right" }, children: `${i.total}: ${N(n.totalAmount, "0,0.00")}` })
|
|
259
259
|
] });
|
|
260
|
-
}, Nt = I(Rt),
|
|
260
|
+
}, Nt = I(Rt), Ot = ({
|
|
261
261
|
data: n,
|
|
262
|
-
onSelected:
|
|
262
|
+
onSelected: c,
|
|
263
263
|
onViewTransactions: o,
|
|
264
264
|
selectedId: a,
|
|
265
265
|
title: i
|
|
266
266
|
}) => {
|
|
267
|
-
const { isDesktop: g, isMobile: e } = Lt(), { dateRangeTotalsLoading: r } = W(), { spending:
|
|
267
|
+
const { isDesktop: g, isMobile: e } = Lt(), { dateRangeTotalsLoading: r } = W(), { spending: d } = A();
|
|
268
268
|
return /* @__PURE__ */ p(
|
|
269
269
|
y,
|
|
270
270
|
{
|
|
@@ -276,7 +276,7 @@ const k = ({ amount: n, label: d, variant: o = "full" }) => /* @__PURE__ */ p(y,
|
|
|
276
276
|
px: 8,
|
|
277
277
|
children: [
|
|
278
278
|
r && /* @__PURE__ */ t(
|
|
279
|
-
|
|
279
|
+
k,
|
|
280
280
|
{
|
|
281
281
|
data: {
|
|
282
282
|
categoryData: [],
|
|
@@ -292,45 +292,45 @@ const k = ({ amount: n, label: d, variant: o = "full" }) => /* @__PURE__ */ p(y,
|
|
|
292
292
|
}
|
|
293
293
|
),
|
|
294
294
|
!r && /* @__PURE__ */ t(
|
|
295
|
-
|
|
295
|
+
k,
|
|
296
296
|
{
|
|
297
297
|
data: n,
|
|
298
298
|
onSelected: (h) => {
|
|
299
|
-
|
|
299
|
+
c(h), setTimeout(() => document.getElementById(`spending-list-category-${h}`)?.focus(), 0);
|
|
300
300
|
},
|
|
301
301
|
onViewTransactions: o,
|
|
302
302
|
selectedId: a,
|
|
303
303
|
size: g ? 400 : 300,
|
|
304
|
-
totalLabel:
|
|
304
|
+
totalLabel: d.total_amount,
|
|
305
305
|
variant: "full"
|
|
306
306
|
}
|
|
307
307
|
),
|
|
308
|
-
/* @__PURE__ */ t(Nt, { data: n, onSelected:
|
|
308
|
+
/* @__PURE__ */ t(Nt, { data: n, onSelected: c, selectedId: a, title: i })
|
|
309
309
|
]
|
|
310
310
|
}
|
|
311
311
|
);
|
|
312
|
-
}, nt = I(
|
|
312
|
+
}, nt = I(Ot), kt = (n) => [
|
|
313
313
|
n.palette.chartMono.chartMono5,
|
|
314
314
|
n.palette.chartMono.chartMono4,
|
|
315
315
|
n.palette.chartMono.chartMono3,
|
|
316
316
|
n.palette.chartMono.chartMono2,
|
|
317
317
|
n.palette.chartMono.chartMono1,
|
|
318
318
|
n.palette.chartMono.chartMono6
|
|
319
|
-
],
|
|
320
|
-
const n = Tt(), { is_mobile_webview:
|
|
319
|
+
], $t = () => {
|
|
320
|
+
const n = Tt(), { is_mobile_webview: c } = V(), { clientConfig: o } = V(), { categories: a, dateRangeCategoryTotals: i } = W(), {
|
|
321
321
|
goals: g,
|
|
322
322
|
spending: e,
|
|
323
323
|
transactions: r
|
|
324
|
-
} = A(), { displayedDateRange:
|
|
324
|
+
} = A(), { displayedDateRange: d, selectedAccountGuids: b } = z(), {
|
|
325
325
|
setFilter: u,
|
|
326
326
|
sortedTransactions: h,
|
|
327
327
|
sortedTransactionsWithSplits: M,
|
|
328
328
|
tags: _
|
|
329
|
-
} =
|
|
329
|
+
} = dt(), f = o?.master?.deep_link_params?.account_guids, x = o?.master?.deep_link_params?.view, [D, R] = l.useState(""), [v, C] = l.useState(x === "income" ? 1 : 0), [E, H] = l.useState(""), [pt, B] = l.useState(!1), G = l.useMemo(
|
|
330
330
|
() => rt(a, g, n, i),
|
|
331
331
|
[a, i]
|
|
332
332
|
), P = l.useMemo(
|
|
333
|
-
() => st(a, i,
|
|
333
|
+
() => st(a, i, kt(n)),
|
|
334
334
|
[a, i]
|
|
335
335
|
), j = l.useMemo(
|
|
336
336
|
() => h.find((s) => s.guid === E),
|
|
@@ -343,7 +343,7 @@ const k = ({ amount: n, label: d, variant: o = "full" }) => /* @__PURE__ */ p(y,
|
|
|
343
343
|
u({
|
|
344
344
|
...{
|
|
345
345
|
accounts: f || b,
|
|
346
|
-
dateRange:
|
|
346
|
+
dateRange: d
|
|
347
347
|
},
|
|
348
348
|
custom: (m) => D === "other" ? m.top_level_category_guid === s : m.category_guid === s,
|
|
349
349
|
showSplits: !0
|
|
@@ -351,7 +351,7 @@ const k = ({ amount: n, label: d, variant: o = "full" }) => /* @__PURE__ */ p(y,
|
|
|
351
351
|
}, U = (s) => {
|
|
352
352
|
const S = {
|
|
353
353
|
accounts: f || b,
|
|
354
|
-
dateRange:
|
|
354
|
+
dateRange: d
|
|
355
355
|
};
|
|
356
356
|
if (v === 0)
|
|
357
357
|
if (s === "other") {
|
|
@@ -378,10 +378,10 @@ const k = ({ amount: n, label: d, variant: o = "full" }) => /* @__PURE__ */ p(y,
|
|
|
378
378
|
return /* @__PURE__ */ p(L, { children: [
|
|
379
379
|
/* @__PURE__ */ p(it, { onChange: ut, value: v, variant: "fullWidth", children: [
|
|
380
380
|
/* @__PURE__ */ t(
|
|
381
|
-
|
|
381
|
+
O,
|
|
382
382
|
{
|
|
383
383
|
label: /* @__PURE__ */ t(
|
|
384
|
-
|
|
384
|
+
$,
|
|
385
385
|
{
|
|
386
386
|
amount: G.totalAmount,
|
|
387
387
|
label: e.spend_tab_title
|
|
@@ -390,10 +390,10 @@ const k = ({ amount: n, label: d, variant: o = "full" }) => /* @__PURE__ */ p(y,
|
|
|
390
390
|
}
|
|
391
391
|
),
|
|
392
392
|
/* @__PURE__ */ t(
|
|
393
|
-
|
|
393
|
+
O,
|
|
394
394
|
{
|
|
395
395
|
label: /* @__PURE__ */ t(
|
|
396
|
-
|
|
396
|
+
$,
|
|
397
397
|
{
|
|
398
398
|
amount: P.totalAmount,
|
|
399
399
|
label: e.income_tab_title
|
|
@@ -430,7 +430,7 @@ const k = ({ amount: n, label: d, variant: o = "full" }) => /* @__PURE__ */ p(y,
|
|
|
430
430
|
onClose: () => B(!1),
|
|
431
431
|
title: e.transactions_drawer_title,
|
|
432
432
|
children: /* @__PURE__ */ p(y, { children: [
|
|
433
|
-
!
|
|
433
|
+
!c && h.length > 0 && /* @__PURE__ */ t(y, { direction: "row", justifyContent: "right", mb: -24, mr: 8, mt: 8, zIndex: 1, children: /* @__PURE__ */ t(
|
|
434
434
|
St,
|
|
435
435
|
{
|
|
436
436
|
onClick: ht,
|
|
@@ -454,16 +454,16 @@ const k = ({ amount: n, label: d, variant: o = "full" }) => /* @__PURE__ */ p(y,
|
|
|
454
454
|
}
|
|
455
455
|
)
|
|
456
456
|
] });
|
|
457
|
-
}, Bt = I(
|
|
458
|
-
const { isAccountDataLoaded: a, loadAccountData: i } = lt(), { categoriesLoaded: g, dateRangeTotalsLoaded: e, loadCategories: r, loadDateRangeCategoryTotals:
|
|
459
|
-
|
|
457
|
+
}, Bt = I($t), Gt = ({ onBackClick: n, onMenuClick: c, sx: o = {} }) => {
|
|
458
|
+
const { isAccountDataLoaded: a, loadAccountData: i } = lt(), { categoriesLoaded: g, dateRangeTotalsLoaded: e, loadCategories: r, loadDateRangeCategoryTotals: d } = W(), { isTransactionDataLoaded: b, loadTransactionData: u } = dt(), { spending: h } = A(), { displayedDateRange: M, isInitialized: _, setDisplayedDate: f, selectedAccounts: x } = z(), { onEvent: D } = yt(), { clientConfig: R } = V();
|
|
459
|
+
ct({
|
|
460
460
|
widgetName: "SpendingWidget",
|
|
461
461
|
isLoaded: e
|
|
462
462
|
}), l.useEffect(() => {
|
|
463
463
|
const C = R?.master?.deep_link_params, E = C?.date_range ? [tt(C.date_range.from), tt(C.date_range.to)] : [ot(q()), at(q())];
|
|
464
464
|
f(E[0], E[1]), a || i().finally(), g || r().finally(), b || u().finally(), D(et.SPENDING_VIEW);
|
|
465
465
|
}, []), l.useEffect(() => {
|
|
466
|
-
_ &&
|
|
466
|
+
_ && d(
|
|
467
467
|
x,
|
|
468
468
|
M.start,
|
|
469
469
|
M.end
|
|
@@ -478,7 +478,7 @@ const k = ({ amount: n, label: d, variant: o = "full" }) => /* @__PURE__ */ p(y,
|
|
|
478
478
|
calendarActions: { onRangeChanged: v },
|
|
479
479
|
onAccountsFilterClick: () => D(et.SPENDING_CLICK_FILTER),
|
|
480
480
|
onBackClick: n,
|
|
481
|
-
onMenuClick:
|
|
481
|
+
onMenuClick: c,
|
|
482
482
|
sx: o,
|
|
483
483
|
title: h.title,
|
|
484
484
|
children: /* @__PURE__ */ t(L, { width: "100%", children: /* @__PURE__ */ t(Bt, {}) })
|