@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.
Files changed (91) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/{Account-DuOz1a27.mjs → Account-BIKn4XEZ.mjs} +1 -1
  3. package/dist/{Account-BiB1F8lL.mjs → Account-CMjOp7S2.mjs} +2 -2
  4. package/dist/{AccountDetailsHeader-IPRH6Wja.mjs → AccountDetailsHeader-D_a0XUkL.mjs} +6 -6
  5. package/dist/{AccountFields-BbPSfzru.mjs → AccountFields-nrrEXd46.mjs} +30 -29
  6. package/dist/{AccountListItem-qpACFl6i.mjs → AccountListItem-D80egD01.mjs} +5 -5
  7. package/dist/{AccountStore-BeEiLNhW.mjs → AccountStore-B3S_p5Qa.mjs} +3 -3
  8. package/dist/{Accounts-o7ohkngR.mjs → Accounts-DX3xJE97.mjs} +1 -1
  9. package/dist/{Analytics-CjZ0emfs.mjs → Analytics-CxK7O19c.mjs} +2 -2
  10. package/dist/{BudgetUtil-CLh4xtj4.mjs → BudgetUtil-DalEN9--.mjs} +47 -47
  11. package/dist/{CashflowStore-CeAzChyD.mjs → CashflowStore-BEi92kJg.mjs} +10 -10
  12. package/dist/{Category-CevNQ03n.mjs → Category-Ccoew_sA.mjs} +2 -2
  13. package/dist/{CategorySelectorDrawer-BG04ByUx.mjs → CategorySelectorDrawer-DjeHNx71.mjs} +7 -7
  14. package/dist/{CategoryStore-Bp1kO9Z-.mjs → CategoryStore-CA4NTaKH.mjs} +2 -2
  15. package/dist/{CategoryUtil-DKRCegQv.mjs → CategoryUtil-BJOHgYKS.mjs} +3 -3
  16. package/dist/{Connect-eYIWqCEr.mjs → Connect-BRLh-69J.mjs} +1 -1
  17. package/dist/{ConnectDrawer-C0wjwcJt.mjs → ConnectDrawer-5BpU4IQU.mjs} +3 -3
  18. package/dist/{ConnectionsDrawer-IA7vnv1J.mjs → ConnectionsDrawer-DxpSlJN7.mjs} +3 -3
  19. package/dist/{CurrencyInput-BkNVHxSV.mjs → CurrencyInput-CSJ3zMgE.mjs} +18 -18
  20. package/dist/DateUtil-D0TO0DaZ.mjs +58 -0
  21. package/dist/{DebtsStore-BZqNLaqd.mjs → DebtsStore-BJlC2-yO.mjs} +1 -1
  22. package/dist/{Dialog-Ck34yr-d.mjs → Dialog-iLlBR8TG.mjs} +6 -6
  23. package/dist/{Donut-CpxJlVvJ.mjs → Donut-D7ekbgf5.mjs} +12 -12
  24. package/dist/{Drawer-Bbe4AMB1.mjs → Drawer-XPaLYjiO.mjs} +11 -11
  25. package/dist/{EmbeddedCard-j7IGx3s1.mjs → EmbeddedCard-BCcn_fK2.mjs} +193 -193
  26. package/dist/{ExportCsvAction-7sjz7AXQ.mjs → ExportCsvAction-BPjdEUXx.mjs} +5 -5
  27. package/dist/{FinstrongStore-DgyDJTEP.mjs → FinstrongStore-DYawCv1d.mjs} +54 -54
  28. package/dist/{GlobalAccountFilter-CmnaZDS6.mjs → GlobalAccountFilter-CZbiDwBH.mjs} +1 -1
  29. package/dist/{GoalStore-DcaT4fM6.mjs → GoalStore-DmqM1ZfW.mjs} +1 -1
  30. package/dist/{Help-B8mD4aLJ.mjs → Help-CgpJK03Q.mjs} +6 -6
  31. package/dist/{Help-cTsMzSQh.mjs → Help-DuhUdMTZ.mjs} +95 -98
  32. package/dist/{IconBacking-B9oC6uL2.mjs → IconBacking-DgT8DCeh.mjs} +11 -11
  33. package/dist/{LineChart-DkD_s9NN.mjs → LineChart-jJVBE8V8.mjs} +1 -1
  34. package/dist/{ListItemAction-4KB7P75M.mjs → ListItemAction-Buv7tPLp.mjs} +4 -4
  35. package/dist/{Loader-D3rjKx72.mjs → Loader-CxeBwuPG.mjs} +5 -5
  36. package/dist/{ManageIncome-DwSE_a8L.mjs → ManageIncome-CrHDAku7.mjs} +8 -8
  37. package/dist/MicroWidgetContainer-CEcwdfti.mjs +45 -0
  38. package/dist/MiniWidgetContainer-CmTGSUL5.mjs +66 -0
  39. package/dist/{NetWorthStore-Ba3q3VcH.mjs → NetWorthStore-BY-B_hxy.mjs} +4 -4
  40. package/dist/{NotificationSettings-DB-eNgSv.mjs → NotificationSettings-DOgnTxzv.mjs} +9 -9
  41. package/dist/{OriginalBalanceAction-AB1TGb5P.mjs → OriginalBalanceAction-C8VJZUat.mjs} +9 -9
  42. package/dist/{RecurringSettings-CZKeZC4m.mjs → RecurringSettings-CIpZL4CX.mjs} +2 -2
  43. package/dist/{RecurringTransactions-kzlU8OFY.mjs → RecurringTransactions-DCt94TN4.mjs} +47 -47
  44. package/dist/{RecurringTransactionsStore-D62Dt2BF.mjs → RecurringTransactionsStore-CFJYC7lI.mjs} +1 -1
  45. package/dist/{ResponsiveButton-DZFp78fJ.mjs → ResponsiveButton-BNsV08Ud.mjs} +12 -12
  46. package/dist/{SettingsStore-Dsz1mvd3.mjs → SettingsStore-BcbuKfFO.mjs} +1 -1
  47. package/dist/{SingleSegmentDonut-BgbLgwHi.mjs → SingleSegmentDonut-PsRQPkmV.mjs} +5 -5
  48. package/dist/{SpendingData-CoZOmlZD.mjs → SpendingData-Dj85XEUp.mjs} +3 -3
  49. package/dist/{SpendingLegend-DljKEG69.mjs → SpendingLegend-DIWHSsKw.mjs} +5 -5
  50. package/dist/{StatusBar-BK_uYHAB.mjs → StatusBar-CPfSXe80.mjs} +6 -6
  51. package/dist/{TabContentContainer-j01JYR_7.mjs → TabContentContainer-CnMXkVqr.mjs} +8 -8
  52. package/dist/{TransactionDetails-CN-yZkin.mjs → TransactionDetails-Db8dwHoM.mjs} +21 -21
  53. package/dist/{TransactionStore-6ovFO8P1.mjs → TransactionStore-BUsP-unK.mjs} +40 -57
  54. package/dist/{TrendsStore-DZa6cyQC.mjs → TrendsStore-bYjIGqyR.mjs} +1 -1
  55. package/dist/{ViewMoreMicroCard-BsEitNRJ.mjs → ViewMoreMicroCard-C7dC9lDT.mjs} +93 -94
  56. package/dist/WidgetContainer-CCR7I0gu.mjs +470 -0
  57. package/dist/accounts/index.es.js +29 -29
  58. package/dist/analytics/index.es.js +10 -10
  59. package/dist/budgets/index.es.js +19 -19
  60. package/dist/cashflow/index.es.js +110 -110
  61. package/dist/categories/index.es.js +2 -2
  62. package/dist/common/hooks/useWidgetHeaderStyles.d.ts +1 -0
  63. package/dist/common/index.es.js +250 -250
  64. package/dist/core/index.es.js +64 -64
  65. package/dist/dashboard/index.es.js +22 -22
  66. package/dist/debts/index.es.js +22 -22
  67. package/dist/{exportTransactionsToCSV-Dnd5lVq7.mjs → exportTransactionsToCSV-B2Lp7AMl.mjs} +7 -7
  68. package/dist/finstrong/index.es.js +22 -22
  69. package/dist/goals/index.es.js +17 -17
  70. package/dist/help/index.es.js +5 -5
  71. package/dist/{hooks-BxkfR-Ff.mjs → hooks-HwStH7q_.mjs} +9 -9
  72. package/dist/insights/index.es.js +328 -328
  73. package/dist/investments/index.es.js +10 -10
  74. package/dist/merchants/index.es.js +9 -9
  75. package/dist/microinsights/index.es.js +1 -1
  76. package/dist/networth/index.es.js +25 -25
  77. package/dist/notifications/index.es.js +5 -5
  78. package/dist/recurringtransactions/index.es.js +23 -23
  79. package/dist/settings/index.es.js +96 -96
  80. package/dist/spending/index.es.js +65 -65
  81. package/dist/transactions/index.es.js +74 -74
  82. package/dist/trends/index.es.js +55 -55
  83. package/dist/{useAccountDisplayName-DKwT1mWv.mjs → useAccountDisplayName-SrQA7K_6.mjs} +1 -1
  84. package/dist/{useInsightsEnabled-DL_oNyI0.mjs → useInsightsEnabled-DzvRm5Bo.mjs} +1 -1
  85. package/dist/{useScreenSize-CUcpY7aJ.mjs → useScreenSize-CeFhWTt_.mjs} +1 -1
  86. package/dist/{useWidgetLoadTimer-DgN1bTyu.mjs → useWidgetLoadTimer-wkBTL5xx.mjs} +1 -1
  87. package/package.json +20 -20
  88. package/dist/DateUtil-C57sqxn4.mjs +0 -54
  89. package/dist/MicroWidgetContainer-B_EnfvCq.mjs +0 -45
  90. package/dist/MiniWidgetContainer-Bhkv-hpz.mjs +0 -66
  91. 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 $ from "@mui/material/Tab";
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 O, b as Y } from "../SpendingLegend-DljKEG69.mjs";
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 ct, g as yt } from "../hooks-BxkfR-Ff.mjs";
15
- import { u as dt } from "../useWidgetLoadTimer-DgN1bTyu.mjs";
16
- import { L as gt } from "../Loader-D3rjKx72.mjs";
17
- import { M as Ct } from "../MiniWidgetContainer-Bhkv-hpz.mjs";
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-Dnd5lVq7.mjs";
22
- import { T as Dt } from "../EmbeddedCard-j7IGx3s1.mjs";
23
- import { T as xt } from "../TransactionDetails-CN-yZkin.mjs";
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-CUcpY7aJ.mjs";
30
- import { D as Z } from "../Drawer-Bbe4AMB1.mjs";
31
- import { b as w } from "../Category-CevNQ03n.mjs";
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-Bc75FqK7.mjs";
35
- const k = ({ amount: n, label: d, variant: o = "full" }) => /* @__PURE__ */ p(y, { direction: "column", children: [
36
- /* @__PURE__ */ t(T, { bold: !0, sx: { textTransform: "none" }, variant: "body1", children: d }),
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: d, spending: o } = A(), { categories: a, dateRangeCategoryTotals: i } = W(), g = l.useMemo(
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(""), [c, b] = l.useState(0), u = l.useMemo(
50
- () => rt(a, d, n, i),
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: c,
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
- k,
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: c === 0 ? 0 : -1
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
- k,
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: c === 1 ? 0 : -1
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: c !== 0,
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
- O,
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: c !== 1,
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
- O,
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: d = {} }) => {
149
- const { isAccountDataLoaded: o, loadAccountData: a } = lt(), { dateRangeTotalsLoaded: i, categoriesLoaded: g, loadCategories: e, loadDateRangeCategoryTotals: r } = W(), { spending: c } = A(), { isInitialized: b, selectedAccounts: u } = z();
150
- return dt({
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: c.primary_cta,
167
- primaryCtaLabelAria: c.primary_cta_aria,
168
- sx: { height: "100%", ...d },
169
- title: c.mini_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: d,
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: () => d(e.guid),
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: () => d(r.guid, !0),
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), $t = ({
260
+ }, Nt = I(Rt), Ot = ({
261
261
  data: n,
262
- onSelected: d,
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: c } = A();
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
- O,
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
- O,
295
+ k,
296
296
  {
297
297
  data: n,
298
298
  onSelected: (h) => {
299
- d(h), setTimeout(() => document.getElementById(`spending-list-category-${h}`)?.focus(), 0);
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: c.total_amount,
304
+ totalLabel: d.total_amount,
305
305
  variant: "full"
306
306
  }
307
307
  ),
308
- /* @__PURE__ */ t(Nt, { data: n, onSelected: d, selectedId: a, title: i })
308
+ /* @__PURE__ */ t(Nt, { data: n, onSelected: c, selectedId: a, title: i })
309
309
  ]
310
310
  }
311
311
  );
312
- }, nt = I($t), Ot = (n) => [
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
- ], kt = () => {
320
- const n = Tt(), { is_mobile_webview: d } = V(), { clientConfig: o } = V(), { categories: a, dateRangeCategoryTotals: i } = W(), {
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: c, selectedAccountGuids: b } = z(), {
324
+ } = A(), { displayedDateRange: d, selectedAccountGuids: b } = z(), {
325
325
  setFilter: u,
326
326
  sortedTransactions: h,
327
327
  sortedTransactionsWithSplits: M,
328
328
  tags: _
329
- } = ct(), 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(
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, Ot(n)),
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: c
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: c
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
- k,
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
- k,
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
- !d && h.length > 0 && /* @__PURE__ */ t(y, { direction: "row", justifyContent: "right", mb: -24, mr: 8, mt: 8, zIndex: 1, children: /* @__PURE__ */ t(
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(kt), Gt = ({ onBackClick: n, onMenuClick: d, sx: o = {} }) => {
458
- const { isAccountDataLoaded: a, loadAccountData: i } = lt(), { categoriesLoaded: g, dateRangeTotalsLoaded: e, loadCategories: r, loadDateRangeCategoryTotals: c } = W(), { isTransactionDataLoaded: b, loadTransactionData: u } = ct(), { spending: h } = A(), { displayedDateRange: M, isInitialized: _, setDisplayedDate: f, selectedAccounts: x } = z(), { onEvent: D } = yt(), { clientConfig: R } = V();
459
- dt({
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
- _ && c(
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: d,
481
+ onMenuClick: c,
482
482
  sx: o,
483
483
  title: h.title,
484
484
  children: /* @__PURE__ */ t(L, { width: "100%", children: /* @__PURE__ */ t(Bt, {}) })