@mx-cartographer/experiences 7.13.21 → 7.13.22-alpha.al0

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 (67) hide show
  1. package/dist/{AccountDetailsHeader-D9gbTbUt.mjs → AccountDetailsHeader-CG9VtEpj.mjs} +2 -2
  2. package/dist/{AccountListItem-D9WJDbZ1.mjs → AccountListItem-BDFCEhSI.mjs} +2 -2
  3. package/dist/{AccountStore-DpYvNnql.mjs → AccountStore-Bn1eH2EU.mjs} +1 -1
  4. package/dist/{BudgetUtil-CLhRnCoX.mjs → BudgetUtil-BCSxP3M3.mjs} +1 -1
  5. package/dist/{CategorySelectorDrawer-Dc9Widy9.mjs → CategorySelectorDrawer-tvJUjmwZ.mjs} +1 -1
  6. package/dist/{Connect-eYIWqCEr.mjs → Connect-CmjOgy5v.mjs} +1 -1
  7. package/dist/{ConnectDrawer-C0wjwcJt.mjs → ConnectDrawer-Be0RkL7I.mjs} +2 -2
  8. package/dist/{ConnectionsDrawer-IA7vnv1J.mjs → ConnectionsDrawer-yeD_PsY1.mjs} +2 -2
  9. package/dist/{CurrencyInput-DuMktPu3.mjs → CurrencyInput-xu9UcYZR.mjs} +1 -1
  10. package/dist/DateRangeSelector-DE4UR77m.mjs +275 -0
  11. package/dist/{ExportCsvAction-izkIdXj5.mjs → ExportCsvAction-CLUDN8jI.mjs} +3 -3
  12. package/dist/{GlobalAccountFilter-B73Pw1hJ.mjs → GlobalAccountFilter-BkUeAltd.mjs} +90 -96
  13. package/dist/{GoalStore-DB58sKTC.mjs → GoalStore-DMhiGiF4.mjs} +1 -1
  14. package/dist/{Help-D-laTbKu.mjs → Help-pcoNjCaF.mjs} +1 -1
  15. package/dist/{LineChart-EAr5ox5U.mjs → LineChart-DIjY-HBq.mjs} +1 -1
  16. package/dist/{ListItemAction-4KB7P75M.mjs → ListItemAction-BQIdxB-9.mjs} +1 -1
  17. package/dist/{ManageIncome-B1j-AzI1.mjs → ManageIncome-DWVaWpCT.mjs} +4 -4
  18. package/dist/{MicroWidgetContainer-B_EnfvCq.mjs → MicroWidgetContainer-CTMkXRJM.mjs} +1 -1
  19. package/dist/{MiniWidgetContainer-Bhkv-hpz.mjs → MiniWidgetContainer-BKPN3c-6.mjs} +1 -1
  20. package/dist/{NotificationSettings-C77J42Ue.mjs → NotificationSettings-O3iUw7-O.mjs} +32 -32
  21. package/dist/{OriginalBalanceAction-DjpvVVFz.mjs → OriginalBalanceAction-2lCGZTRv.mjs} +3 -3
  22. package/dist/{RecurringSettings-Dyj3i0ZJ.mjs → RecurringSettings-DNko1CD0.mjs} +2 -2
  23. package/dist/{SpendingLegend-BgjazduU.mjs → SpendingLegend-CGYqNtOp.mjs} +1 -1
  24. package/dist/{StatusIndicator-CIKUOoN_.mjs → StatusIndicator-CnDblSmc.mjs} +2 -2
  25. package/dist/{Transaction-CqjlF6SO.mjs → Transaction-Bd0myZzA.mjs} +1 -1
  26. package/dist/{TransactionDetails-CwqokbQo.mjs → TransactionDetails-DAB5arBD.mjs} +6 -6
  27. package/dist/{TransactionStore-rpqhGX8m.mjs → TransactionStore-hzVucfUK.mjs} +2 -2
  28. package/dist/{ViewMoreMicroCard-D24H9kDm.mjs → ViewMoreMicroCard-BWCe3UeO.mjs} +1 -1
  29. package/dist/WidgetContainer-BPeSl0Dj.mjs +180 -0
  30. package/dist/WidgetContainerV2-BjOelON7.mjs +127 -0
  31. package/dist/accounts/index.es.js +218 -219
  32. package/dist/analytics/index.es.js +8 -8
  33. package/dist/budgets/index.es.js +408 -409
  34. package/dist/cashflow/index.es.js +227 -228
  35. package/dist/categories/index.es.js +1 -1
  36. package/dist/common/components/GlobalAccountFilter.d.ts +1 -1
  37. package/dist/common/components/WidgetContainer.d.ts +3 -2
  38. package/dist/common/components/WidgetContainerV2.d.ts +4 -0
  39. package/dist/common/components/index.d.ts +1 -0
  40. package/dist/common/index.es.js +167 -164
  41. package/dist/dashboard/index.es.js +5 -5
  42. package/dist/debts/index.es.js +585 -586
  43. package/dist/{exportTransactionsToCSV-CdTF_RqL.mjs → exportTransactionsToCSV-CamFllci.mjs} +1 -1
  44. package/dist/finstrong/FinstrongWidget.d.ts +1 -1
  45. package/dist/finstrong/index.es.js +641 -652
  46. package/dist/goals/GoalsWidget.d.ts +1 -1
  47. package/dist/goals/index.es.js +498 -499
  48. package/dist/help/index.es.js +8 -8
  49. package/dist/{hooks-BxkfR-Ff.mjs → hooks-DOWEalfb.mjs} +2 -2
  50. package/dist/insights/index.es.js +3 -3
  51. package/dist/investments/InvestmentsWidget.d.ts +1 -1
  52. package/dist/investments/index.es.js +448 -449
  53. package/dist/merchants/index.es.js +1 -1
  54. package/dist/microinsights/index.es.js +1 -1
  55. package/dist/networth/index.es.js +182 -196
  56. package/dist/notifications/index.es.js +2 -2
  57. package/dist/recurringtransactions/RecurringTransactionsWidget.d.ts +1 -1
  58. package/dist/recurringtransactions/index.es.js +240 -242
  59. package/dist/settings/index.es.js +7 -7
  60. package/dist/spending/index.es.js +8 -8
  61. package/dist/transactions/index.es.js +246 -248
  62. package/dist/trends/index.es.js +12 -12
  63. package/dist/{useAccountDisplayName-DKwT1mWv.mjs → useAccountDisplayName-DQc7zGqk.mjs} +1 -1
  64. package/dist/{useInsightsEnabled-DL_oNyI0.mjs → useInsightsEnabled-DojdZhOg.mjs} +1 -1
  65. package/dist/{useWidgetLoadTimer-DgN1bTyu.mjs → useWidgetLoadTimer-DmYEMfRw.mjs} +1 -1
  66. package/package.json +1 -1
  67. package/dist/WidgetContainer-B7xDq2bM.mjs +0 -441
@@ -1,44 +1,43 @@
1
- import { jsxs as d, jsx as e } from "react/jsx-runtime";
2
- import B from "react";
3
- import { observer as I } from "mobx-react-lite";
4
- import j from "@mui/material/Box";
1
+ import { jsxs as d, jsx as e, Fragment as W } from "react/jsx-runtime";
2
+ import I from "react";
3
+ import { observer as B } from "mobx-react-lite";
5
4
  import C from "@mui/material/Button";
6
5
  import P from "@mui/material/Divider";
7
- import w from "@mui/material/IconButton";
8
- import O from "@mui/material/Popover";
9
- import S from "@mui/material/Stack";
10
- import D from "@mui/material/Tooltip";
11
- import { FilterAlt as A } from "@mxenabled/mx-icons";
12
- import F from "@mui/material/Checkbox";
6
+ import j from "@mui/material/IconButton";
7
+ import w from "@mui/material/Popover";
8
+ import F from "@mui/material/Stack";
9
+ import O from "@mui/material/Tooltip";
10
+ import { FilterAlt as S } from "@mxenabled/mx-icons";
11
+ import A from "@mui/material/Checkbox";
13
12
  import G from "@mui/material/List";
14
- import y from "@mui/material/ListItem";
13
+ import g from "@mui/material/ListItem";
15
14
  import _ from "@mui/material/ListItemButton";
16
- import E from "@mui/material/ListItemIcon";
15
+ import D from "@mui/material/ListItemIcon";
17
16
  import v from "@mui/material/ListItemText";
18
- import { b as z, u as M, d as L } from "./hooks-BxkfR-Ff.mjs";
19
- import { u as H } from "./useScreenSize-B6JyS_Lj.mjs";
20
- const N = I(
17
+ import { b as z, u as M, d as L } from "./hooks-DOWEalfb.mjs";
18
+ import { u as E } from "./useScreenSize-B6JyS_Lj.mjs";
19
+ const H = B(
21
20
  ({ allowedAccountTypes: a }) => {
22
- const { accountFilterMap: s, updateAccountFilterMap: u } = z(), { accounts: g, common: x } = M(), { account_filter: c } = x, { accountsByTypeMap: n } = L(), k = B.useMemo(
23
- () => Array.from(n.keys()).reduce((t, i) => {
24
- if (!a || a && a.includes(i)) {
25
- const o = n.get(i);
26
- o && t.push(...o);
21
+ const { accountFilterMap: s, updateAccountFilterMap: u } = z(), { accounts: x, common: m } = M(), { account_filter: h } = m, { accountsByTypeMap: n } = L(), k = I.useMemo(
22
+ () => Array.from(n.keys()).reduce((t, r) => {
23
+ if (!a || a && a.includes(r)) {
24
+ const i = n.get(r);
25
+ i && t.push(...i);
27
26
  }
28
27
  return t;
29
28
  }, []),
30
29
  [n, a]
31
30
  ), p = new Map(
32
- Array.from(s.entries()).filter(([t]) => k.some((i) => i.guid === t))
33
- ), m = Array.from(p.values()).every((t) => t), h = Array.from(p.values()).some((t) => t), f = () => {
31
+ Array.from(s.entries()).filter(([t]) => k.some((r) => r.guid === t))
32
+ ), c = Array.from(p.values()).every((t) => t), f = Array.from(p.values()).some((t) => t), b = () => {
34
33
  for (const t of p.keys())
35
- u(t, !m);
36
- }, b = (t) => {
37
- const i = n.get(t);
38
- if (!i) return;
39
- const o = i.some((r) => s.get(r.guid));
40
- for (const r of i)
41
- u(r.guid, !o);
34
+ u(t, !c);
35
+ }, y = (t) => {
36
+ const r = n.get(t);
37
+ if (!r) return;
38
+ const i = r.some((l) => s.get(l.guid));
39
+ for (const l of r)
40
+ u(l.guid, !i);
42
41
  };
43
42
  return /* @__PURE__ */ d(
44
43
  G,
@@ -48,21 +47,21 @@ const N = I(
48
47
  sx: { overflowY: "scroll", maxHeight: 350, minWidth: 280 },
49
48
  children: [
50
49
  /* @__PURE__ */ e(
51
- y,
50
+ g,
52
51
  {
53
- "aria-label": c.select_all_accounts,
52
+ "aria-label": h.select_all_accounts,
54
53
  disableGutters: !0,
55
54
  disablePadding: !0,
56
55
  role: "menuitem",
57
56
  sx: { py: 16 },
58
- children: /* @__PURE__ */ d(_, { disableGutters: !0, onClick: f, sx: { p: 0, px: 8 }, children: [
57
+ children: /* @__PURE__ */ d(_, { disableGutters: !0, onClick: b, sx: { p: 0, px: 8 }, children: [
59
58
  /* @__PURE__ */ e(
60
- F,
59
+ A,
61
60
  {
62
- "aria-checked": m,
63
- checked: m,
61
+ "aria-checked": c,
62
+ checked: c,
64
63
  disableRipple: !0,
65
- indeterminate: !m && h,
64
+ indeterminate: !c && f,
66
65
  inputProps: { "aria-labelledby": "label-select-all" },
67
66
  size: "small",
68
67
  tabIndex: -1
@@ -72,7 +71,7 @@ const N = I(
72
71
  v,
73
72
  {
74
73
  id: "label-select-all",
75
- primary: c.select_all_accounts,
74
+ primary: h.select_all_accounts,
76
75
  primaryTypographyProps: { variant: "body1" }
77
76
  }
78
77
  )
@@ -80,55 +79,55 @@ const N = I(
80
79
  }
81
80
  ),
82
81
  Array.from(n.keys()).map((t) => {
83
- const i = n.get(t), o = a ? !a.includes(t) : !1, r = g.account_type_accounts[t];
82
+ const r = n.get(t), i = a ? !a.includes(t) : !1, l = x.account_type_accounts[t];
84
83
  return (
85
84
  // Account Type Header
86
85
  /* @__PURE__ */ e(
87
- y,
86
+ g,
88
87
  {
89
- "aria-label": r,
88
+ "aria-label": l,
90
89
  disableGutters: !0,
91
90
  disablePadding: !0,
92
- children: /* @__PURE__ */ d(S, { sx: { pb: 8, width: "100%" }, children: [
91
+ children: /* @__PURE__ */ d(F, { sx: { pb: 8, width: "100%" }, children: [
93
92
  /* @__PURE__ */ e(P, {}),
94
93
  /* @__PURE__ */ e(
95
94
  G,
96
95
  {
97
96
  dense: !0,
98
97
  role: "menu",
99
- subheader: /* @__PURE__ */ e(y, { "aria-label": r, role: "menu", children: /* @__PURE__ */ e(
98
+ subheader: /* @__PURE__ */ e(g, { "aria-label": l, role: "menu", children: /* @__PURE__ */ e(
100
99
  _,
101
100
  {
102
101
  disableGutters: !0,
103
- disabled: o,
104
- onClick: () => b(t),
102
+ disabled: i,
103
+ onClick: () => y(t),
105
104
  sx: { pl: 16, minHeight: 40, justifyContent: "left" },
106
105
  children: /* @__PURE__ */ e(
107
106
  v,
108
107
  {
109
- primary: r,
108
+ primary: l,
110
109
  primaryTypographyProps: { variant: "body1", fontWeight: "bold" }
111
110
  }
112
111
  )
113
112
  }
114
113
  ) }),
115
- children: i?.map((l) => (
114
+ children: r?.map((o) => (
116
115
  // Account Checkbox
117
- /* @__PURE__ */ e(y, { "aria-label": l.displayName, role: "menuitem", children: /* @__PURE__ */ d(
116
+ /* @__PURE__ */ e(g, { "aria-label": o.displayName, role: "menuitem", children: /* @__PURE__ */ d(
118
117
  _,
119
118
  {
120
119
  disableGutters: !0,
121
- disabled: o,
122
- onClick: () => u(l.guid, !s.get(l.guid)),
120
+ disabled: i,
121
+ onClick: () => u(o.guid, !s.get(o.guid)),
123
122
  sx: { p: 0, minHeight: 40 },
124
123
  children: [
125
- /* @__PURE__ */ e(E, { children: /* @__PURE__ */ e(
126
- F,
124
+ /* @__PURE__ */ e(D, { children: /* @__PURE__ */ e(
125
+ A,
127
126
  {
128
- "aria-checked": s.get(l.guid),
129
- checked: s.get(l.guid),
127
+ "aria-checked": s.get(o.guid),
128
+ checked: s.get(o.guid),
130
129
  disableRipple: !0,
131
- inputProps: { "aria-labelledby": `label-${l.guid}` },
130
+ inputProps: { "aria-labelledby": `label-${o.guid}` },
132
131
  size: "small",
133
132
  tabIndex: -1
134
133
  }
@@ -136,14 +135,14 @@ const N = I(
136
135
  /* @__PURE__ */ e(
137
136
  v,
138
137
  {
139
- id: `label-${l.guid}`,
140
- primary: l.displayName,
138
+ id: `label-${o.guid}`,
139
+ primary: o.displayName,
141
140
  primaryTypographyProps: { variant: "body1" }
142
141
  }
143
142
  )
144
143
  ]
145
144
  }
146
- ) }, l.guid)
145
+ ) }, o.guid)
147
146
  ))
148
147
  }
149
148
  )
@@ -157,72 +156,67 @@ const N = I(
157
156
  }
158
157
  );
159
158
  }
160
- ), ne = I(
161
- ({
162
- allowedAccountTypes: a,
163
- onAccountFilterClick: s,
164
- sx: u = {},
165
- variant: g = "text"
166
- }) => {
167
- const { isDesktop: x } = H(), { common: c } = M(), { accountFilterMap: n, resetAccountFilterMap: k } = z(), { detailedAccounts: p, updateAccountFilter: m } = L(), [h, f] = B.useState(null), b = (W) => {
168
- k(), f(W.currentTarget), s?.();
169
- }, t = () => {
159
+ ), le = B(
160
+ ({ allowedAccountTypes: a, onAccountFilterClick: s, variant: u = "text" }) => {
161
+ const { isDesktop: x } = E(), { common: m } = M(), { accountFilterMap: h, resetAccountFilterMap: n } = z(), { detailedAccounts: k, updateAccountFilter: p } = L(), [c, f] = I.useState(null), b = (o) => {
162
+ n(), f(o.currentTarget), s?.();
163
+ }, y = () => {
170
164
  f(null);
171
- }, i = async () => {
172
- await m(n), f(null);
173
- }, o = c.account_filter, r = !!h, l = p.length === 0;
174
- return /* @__PURE__ */ d(j, { m: 4, sx: { ...u }, children: [
165
+ }, t = async () => {
166
+ await p(h), f(null);
167
+ }, r = m.account_filter, i = !!c, l = k.length === 0;
168
+ return /* @__PURE__ */ d(W, { children: [
175
169
  x ? /* @__PURE__ */ e(
176
170
  C,
177
171
  {
178
- "aria-controls": r ? "filter_accounts" : void 0,
179
- "aria-expanded": r,
172
+ "aria-controls": i ? "filter_accounts" : void 0,
173
+ "aria-expanded": i,
180
174
  "aria-haspopup": !0,
181
- "aria-label": o.title,
175
+ "aria-label": r.title,
182
176
  disabled: l,
183
177
  onClick: b,
184
- startIcon: /* @__PURE__ */ e(A, { size: 24 }),
178
+ startIcon: /* @__PURE__ */ e(S, { size: 24 }),
185
179
  sx: { p: 8, whiteSpace: "nowrap", minWidth: "max-content" },
186
- variant: g,
187
- children: c.filter_button
180
+ variant: u,
181
+ children: m.filter_button
188
182
  }
189
- ) : /* @__PURE__ */ e(D, { id: "filter-accounts", placement: "bottom", title: o.title, children: /* @__PURE__ */ e(
190
- w,
183
+ ) : /* @__PURE__ */ e(O, { id: "filter-accounts", placement: "bottom", title: r.title, children: /* @__PURE__ */ e(
184
+ j,
191
185
  {
192
- "aria-controls": r ? "filter_accounts" : void 0,
186
+ "aria-controls": i ? "filter_accounts" : void 0,
193
187
  "aria-describedby": "filter-accounts",
194
- "aria-expanded": r,
188
+ "aria-expanded": i,
195
189
  "aria-haspopup": !0,
196
- "aria-label": o.title,
190
+ "aria-label": r.title,
197
191
  color: "primary",
198
192
  disabled: l,
199
193
  onClick: b,
200
- sx: { p: 8 },
201
- children: /* @__PURE__ */ e(A, { size: 24 })
194
+ sx: { p: 12 },
195
+ children: /* @__PURE__ */ e(S, { size: 24 })
202
196
  }
203
197
  ) }),
204
198
  /* @__PURE__ */ e(
205
- O,
199
+ w,
206
200
  {
207
- anchorEl: h,
201
+ anchorEl: c,
208
202
  anchorOrigin: { vertical: "bottom", horizontal: "left" },
209
- onClose: t,
210
- open: r,
203
+ onClose: y,
204
+ open: i,
211
205
  transformOrigin: { vertical: "top", horizontal: "left" },
212
- children: /* @__PURE__ */ d(S, { children: [
213
- /* @__PURE__ */ e(N, { allowedAccountTypes: a }),
206
+ children: /* @__PURE__ */ d(F, { children: [
207
+ /* @__PURE__ */ e(H, { allowedAccountTypes: a }),
214
208
  /* @__PURE__ */ e(P, {}),
215
- /* @__PURE__ */ d(S, { direction: "row", justifyContent: "space-between", spacing: 16, sx: { p: 16 }, children: [
216
- /* @__PURE__ */ e(C, { fullWidth: !0, onClick: t, variant: "text", children: c.cancel_button }),
209
+ /* @__PURE__ */ d(F, { direction: "row", justifyContent: "space-between", spacing: 16, sx: { p: 16 }, children: [
210
+ /* @__PURE__ */ e(C, { fullWidth: !0, onClick: y, variant: "text", children: m.cancel_button }),
217
211
  /* @__PURE__ */ e(
218
212
  C,
219
213
  {
220
- "aria-label": o.filter_button_aria,
214
+ "aria-label": r.filter_button_aria,
221
215
  color: "primary",
222
216
  fullWidth: !0,
223
- onClick: i,
217
+ onClick: t,
224
218
  variant: "contained",
225
- children: c.filter_button
219
+ children: m.filter_button
226
220
  }
227
221
  )
228
222
  ] })
@@ -233,5 +227,5 @@ const N = I(
233
227
  }
234
228
  );
235
229
  export {
236
- ne as G
230
+ le as G
237
231
  };
@@ -7,7 +7,7 @@ import O from "@mui/material/CardHeader";
7
7
  import w from "@mui/material/Stack";
8
8
  import { AccountBalance as L, ChevronRight as y } from "@mxenabled/mx-icons";
9
9
  import { Text as g } from "@mxenabled/mxui";
10
- import { C as S } from "./ConnectDrawer-C0wjwcJt.mjs";
10
+ import { C as S } from "./ConnectDrawer-Be0RkL7I.mjs";
11
11
  import { makeAutoObservable as b, runInAction as u } from "mobx";
12
12
  import { F as D, A as i } from "./Fetch-B6tMJC1r.mjs";
13
13
  import { fromUnixTime as R } from "date-fns/fromUnixTime";
@@ -12,7 +12,7 @@ import et from "@mui/material/ListItemButton";
12
12
  import C from "@mui/material/Stack";
13
13
  import { H3 as it, P as U, Icon as Y, Text as E, H2 as at, InstitutionLogo as ft } from "@mxenabled/mxui";
14
14
  import { ExpandMore as ct, ChevronRight as St } from "@mxenabled/mx-icons";
15
- import { g as V, u as K, z as nt, d as It, b as Tt, o as Et, a as Ct } from "./hooks-BxkfR-Ff.mjs";
15
+ import { f as V, u as K, z as nt, d as It, b as Tt, o as Et, a as Ct } from "./hooks-DOWEalfb.mjs";
16
16
  import { A as k } from "./Analytics-BYItVAe-.mjs";
17
17
  import At from "@mui/material/Breadcrumbs";
18
18
  import { useTheme as Q } from "@mui/material/styles";
@@ -13,7 +13,7 @@ import { f as L, c as O } from "./NumberFormatting-QCaNwbjv.mjs";
13
13
  import { observer as Dt } from "mobx-react-lite";
14
14
  import z from "@mui/material/Stack";
15
15
  import { Text as d } from "@mxenabled/mxui";
16
- import { u as Tt } from "./hooks-BxkfR-Ff.mjs";
16
+ import { u as Tt } from "./hooks-DOWEalfb.mjs";
17
17
  import Rt from "@mui/material/useMediaQuery";
18
18
  import { Stack as M, Box as $t } from "@mui/material";
19
19
  const B = {
@@ -8,7 +8,7 @@ import L from "@mui/material/Stack";
8
8
  import { ChevronRight as _ } from "@mxenabled/mx-icons";
9
9
  import { Text as m } from "@mxenabled/mxui";
10
10
  import { D as g } from "./Dialog-Ck34yr-d.mjs";
11
- import { u as j } from "./hooks-BxkfR-Ff.mjs";
11
+ import { u as j } from "./hooks-DOWEalfb.mjs";
12
12
  const q = v(
13
13
  ({
14
14
  children: n,
@@ -17,15 +17,15 @@ import { endOfMonth as ue } from "date-fns/endOfMonth";
17
17
  import { parseISO as me } from "date-fns/parseISO";
18
18
  import J from "@mui/material/Button";
19
19
  import { Delete as pe, Add as ye, ReceiptLong as he } from "@mxenabled/mx-icons";
20
- import { T as V, u as fe, S as ge, a as Ce } from "./StatusIndicator-CIKUOoN_.mjs";
21
- import { T as be } from "./TransactionDetails-CwqokbQo.mjs";
20
+ import { T as V, u as fe, S as ge, a as Ce } from "./StatusIndicator-CnDblSmc.mjs";
21
+ import { T as be } from "./TransactionDetails-DAB5arBD.mjs";
22
22
  import { addYears as j } from "date-fns/addYears";
23
23
  import { getDayOfYear as xe } from "date-fns/getDayOfYear";
24
24
  import { setDayOfYear as Se } from "date-fns/setDayOfYear";
25
25
  import { AdapterDateFns as ve } from "@mui/x-date-pickers/AdapterDateFnsV3";
26
26
  import { DatePicker as De } from "@mui/x-date-pickers";
27
27
  import { LocalizationProvider as we } from "@mui/x-date-pickers/LocalizationProvider";
28
- import { u as w, i as Y, g as P, b as Ae, h as ee, o as Ie } from "./hooks-BxkfR-Ff.mjs";
28
+ import { u as w, i as Y, f as P, b as Ae, h as ee, o as Ie } from "./hooks-DOWEalfb.mjs";
29
29
  import { b as Re, f as te } from "./NumberFormatting-QCaNwbjv.mjs";
30
30
  import { D as N } from "./Drawer-Bbe4AMB1.mjs";
31
31
  import { A as O } from "./Analytics-BYItVAe-.mjs";
@@ -36,7 +36,7 @@ import { fromUnixTime as ke } from "date-fns/fromUnixTime";
36
36
  import { S as Ne } from "./SearchBox-CwDgvWVJ.mjs";
37
37
  import { h as Me } from "./DateUtil-wcYTmDRD.mjs";
38
38
  import { b as q } from "./Category-CevNQ03n.mjs";
39
- import { T as ne } from "./Transaction-CqjlF6SO.mjs";
39
+ import { T as ne } from "./Transaction-Bd0myZzA.mjs";
40
40
  const re = ({
41
41
  frequency: n,
42
42
  firstDay: t,
@@ -6,7 +6,7 @@ import b from "@mui/material/CardHeader";
6
6
  import { P as u, H3 as v } from "@mxenabled/mxui";
7
7
  import { ChevronRight as W } from "@mxenabled/mx-icons";
8
8
  import { u as M } from "./useDimensions-CeDR9V8N.mjs";
9
- import { W as w } from "./hooks-BxkfR-Ff.mjs";
9
+ import { W as w } from "./hooks-DOWEalfb.mjs";
10
10
  const H = ({
11
11
  children: e,
12
12
  className: o,
@@ -8,7 +8,7 @@ import z from "@mui/material/IconButton";
8
8
  import { Icon as H, ChevronRight as I } from "@mxenabled/mx-icons";
9
9
  import { H3 as y, Text as B, P as M } from "@mxenabled/mxui";
10
10
  import { u as j } from "./useDimensions-CeDR9V8N.mjs";
11
- import { W as w } from "./hooks-BxkfR-Ff.mjs";
11
+ import { W as w } from "./hooks-DOWEalfb.mjs";
12
12
  const R = ({
13
13
  children: a,
14
14
  className: m = "mx-cmn-mini-widget",
@@ -1,5 +1,5 @@
1
1
  import { jsxs as c, jsx as e, Fragment as N } from "react/jsx-runtime";
2
- import p from "react";
2
+ import f from "react";
3
3
  import { observer as C } from "mobx-react-lite";
4
4
  import v from "@mui/material/Divider";
5
5
  import E from "@mui/material/List";
@@ -15,14 +15,14 @@ import { DateCalendar as se } from "@mui/x-date-pickers/DateCalendar";
15
15
  import { LocalizationProvider as ae } from "@mui/x-date-pickers/LocalizationProvider";
16
16
  import { AdapterDateFns as ce } from "@mui/x-date-pickers/AdapterDateFnsV3";
17
17
  import { A as le, T as R, a as D, N as b } from "./Notification-CMBNDGC-.mjs";
18
- import { u as k, r as T, o as A, d as J, g as re, a as q, b as de } from "./hooks-BxkfR-Ff.mjs";
18
+ import { u as k, r as T, o as A, d as J, f as re, a as q, b as de } from "./hooks-DOWEalfb.mjs";
19
19
  import { b as me } from "./Localization-CPkpIwIx.mjs";
20
20
  import { b as he, f as ue } from "./NumberFormatting-QCaNwbjv.mjs";
21
21
  import { D as B } from "./Dialog-Ck34yr-d.mjs";
22
- import { C as _e } from "./CurrencyInput-DuMktPu3.mjs";
23
- import { u as pe } from "./useScreenSize-B6JyS_Lj.mjs";
22
+ import { C as _e } from "./CurrencyInput-xu9UcYZR.mjs";
23
+ import { u as fe } from "./useScreenSize-B6JyS_Lj.mjs";
24
24
  import { D as K } from "./Drawer-Bbe4AMB1.mjs";
25
- import fe from "@mui/material/Collapse";
25
+ import pe from "@mui/material/Collapse";
26
26
  import ge from "@mui/material/Card";
27
27
  import ye from "@mui/material/CardContent";
28
28
  import W from "@mui/material/Box";
@@ -30,16 +30,16 @@ import j from "@mui/material/Button";
30
30
  import U from "@mui/material/TextField";
31
31
  import { u as be } from "./useDimensions-CeDR9V8N.mjs";
32
32
  import Q from "@mui/material/styles/useTheme";
33
- import { u as xe } from "./useInsightsEnabled-DL_oNyI0.mjs";
34
- import { u as Ce } from "./useWidgetLoadTimer-DgN1bTyu.mjs";
33
+ import { u as xe } from "./useInsightsEnabled-DojdZhOg.mjs";
34
+ import { u as Ce } from "./useWidgetLoadTimer-DmYEMfRw.mjs";
35
35
  import { L as ve } from "./Loader-D3rjKx72.mjs";
36
36
  const Te = C(() => {
37
- const { common: n, settings: t } = k(), { sendEmailVerification: s } = T(), { user: l } = A(), i = Q(), [r, a] = p.useState(!1), o = () => {
37
+ const { common: n, settings: t } = k(), { sendEmailVerification: s } = T(), { user: l } = A(), i = Q(), [r, a] = f.useState(!1), o = () => {
38
38
  a(!1);
39
39
  }, u = () => {
40
40
  a(!0);
41
41
  };
42
- return /* @__PURE__ */ c(p.Fragment, { children: [
42
+ return /* @__PURE__ */ c(f.Fragment, { children: [
43
43
  /* @__PURE__ */ c(j, { onClick: u, sx: { height: "auto", p: 4, width: "fit-content" }, children: [
44
44
  /* @__PURE__ */ e(x, { variant: "body2", children: t.verify_email }),
45
45
  /* @__PURE__ */ e(S, {})
@@ -84,7 +84,7 @@ const Te = C(() => {
84
84
  ] });
85
85
  }), Pe = C(
86
86
  ({ handleClose: n, handleVerify: t, isOpen: s }) => {
87
- const { common: l, settings: i } = k(), [r, a] = p.useState("");
87
+ const { common: l, settings: i } = k(), [r, a] = f.useState("");
88
88
  return /* @__PURE__ */ e(
89
89
  B,
90
90
  {
@@ -108,7 +108,7 @@ const Te = C(() => {
108
108
  );
109
109
  }
110
110
  ), De = C(() => {
111
- const { common: n, settings: t } = k(), { sendPhoneVerification: s, verifyPhoneToken: l } = T(), { user: i } = A(), r = Q(), [a, o] = p.useState(!1), [u, d] = p.useState(!1), f = () => {
111
+ const { common: n, settings: t } = k(), { sendPhoneVerification: s, verifyPhoneToken: l } = T(), { user: i } = A(), r = Q(), [a, o] = f.useState(!1), [u, d] = f.useState(!1), p = () => {
112
112
  o(!1);
113
113
  }, _ = () => {
114
114
  o(!0);
@@ -121,7 +121,7 @@ const Te = C(() => {
121
121
  d(!1);
122
122
  });
123
123
  };
124
- return /* @__PURE__ */ c(p.Fragment, { children: [
124
+ return /* @__PURE__ */ c(f.Fragment, { children: [
125
125
  /* @__PURE__ */ c(j, { onClick: _, sx: { height: "auto", p: 4, width: "fit-content" }, children: [
126
126
  /* @__PURE__ */ e(x, { variant: "body2", children: t.verify_phone }),
127
127
  /* @__PURE__ */ e(S, {})
@@ -131,9 +131,9 @@ const Te = C(() => {
131
131
  {
132
132
  copy: { title: "" },
133
133
  isOpen: a,
134
- onClose: f,
134
+ onClose: p,
135
135
  onPrimaryAction: y,
136
- onSecondaryAction: f,
136
+ onSecondaryAction: p,
137
137
  primaryText: t.send_verification,
138
138
  secondaryText: n.back,
139
139
  sx: {
@@ -174,7 +174,7 @@ const Te = C(() => {
174
174
  ] });
175
175
  }), ke = C(
176
176
  ({ onProfileUpdated: n, profile: t }) => {
177
- const { common: s, recurring: l, settings: i } = k(), { updateAccount: r } = J(), a = t.notification_type === le.DebtPaymentReminder, [o, u] = p.useState(!1), [d, f] = p.useState(t.threshold || 0), [_, y] = p.useState(
177
+ const { common: s, recurring: l, settings: i } = k(), { updateAccount: r } = J(), a = t.notification_type === le.DebtPaymentReminder, [o, u] = f.useState(!1), [d, p] = f.useState(t.threshold || 0), [_, y] = f.useState(
178
178
  t.account?.day_payment_is_due || 0
179
179
  ), m = t.account?.name || t.account?.feed_name || "", g = t.account?.day_payment_is_due ? me(
180
180
  i.notification_debt_payment_date,
@@ -246,7 +246,7 @@ const Te = C(() => {
246
246
  autoFocus: !0,
247
247
  fullWidth: !0,
248
248
  minAmount: 0,
249
- setAmount: (w) => f(Number(w) || 0),
249
+ setAmount: (w) => p(Number(w) || 0),
250
250
  sx: { ".MuiTypography-body1": { p: 0 } }
251
251
  }
252
252
  )
@@ -256,10 +256,10 @@ const Te = C(() => {
256
256
  }
257
257
  ), we = C(
258
258
  ({ onUpdateProfile: n, profile: t }) => {
259
- const { settings: s } = k(), { user: l } = A(), { clientCommunicationProfile: i, userCommunicationsProfile: r } = T(), { isMobile: a } = pe(), o = t.notification_type > 2, {
259
+ const { settings: s } = k(), { user: l } = A(), { clientCommunicationProfile: i, userCommunicationsProfile: r } = T(), { isMobile: a } = fe(), o = t.notification_type > 2, {
260
260
  opted_out_of_email_notifications: u,
261
261
  opted_out_of_push_notifications: d,
262
- opted_out_of_sms_notifications: f
262
+ opted_out_of_sms_notifications: p
263
263
  } = r, {
264
264
  email_notifications_enabled: _,
265
265
  push_notifications_enabled: y,
@@ -284,11 +284,11 @@ const Te = C(() => {
284
284
  m && /* @__PURE__ */ e(h, { sx: { pl: 24 }, children: /* @__PURE__ */ e(
285
285
  D,
286
286
  {
287
- isChecked: !f && t.sms_channel && !!l.phone,
288
- isDisabled: f || !l.phone,
287
+ isChecked: !p && t.sms_channel && !!l.phone,
288
+ isDisabled: p || !l.phone,
289
289
  onToggle: () => n({ ...t, sms_channel: !t.sms_channel }),
290
290
  primaryText: `${s.delivery_method_sms_label}`,
291
- secondaryText: f || !t.sms_channel || !l.phone ? s.notification_disabled : s.notification_enabled,
291
+ secondaryText: p || !t.sms_channel || !l.phone ? s.notification_disabled : s.notification_enabled,
292
292
  useExtraPadding: !1
293
293
  }
294
294
  ) }),
@@ -321,7 +321,7 @@ const Te = C(() => {
321
321
  ] });
322
322
  }
323
323
  ), z = C(() => {
324
- const { accountProfiles: n, updateNotificationProfile: t } = T(), [s, l] = p.useState(""), i = p.useMemo(
324
+ const { accountProfiles: n, updateNotificationProfile: t } = T(), [s, l] = f.useState(""), i = f.useMemo(
325
325
  () => n.find((o) => o.guid === s),
326
326
  [n, s]
327
327
  ), r = async (o) => {
@@ -375,7 +375,7 @@ const Te = C(() => {
375
375
  opted_out_of_push_notifications: o,
376
376
  opted_out_of_sms_notifications: u
377
377
  }
378
- } = T(), { user: d } = A(), [f, _] = p.useState(!1), y = async () => {
378
+ } = T(), { user: d } = A(), [p, _] = f.useState(!1), y = async () => {
379
379
  await m({ ...n, is_enabled: !n.is_enabled }), n.is_enabled && _(!1);
380
380
  }, m = async (P) => {
381
381
  await r(P);
@@ -389,20 +389,20 @@ const Te = C(() => {
389
389
  {
390
390
  sx: {
391
391
  transition: "transform 0.3s ease-in-out",
392
- transform: f ? "rotate(180deg)" : "rotate(0deg)"
392
+ transform: p ? "rotate(180deg)" : "rotate(0deg)"
393
393
  }
394
394
  }
395
395
  ) : void 0,
396
396
  isChecked: n.is_enabled,
397
397
  isDisabled: !n.is_enabled,
398
- onClick: () => _(!f),
398
+ onClick: () => _(!p),
399
399
  onToggle: () => y(),
400
400
  primaryText: n.label,
401
401
  secondaryText: n.is_enabled ? n.deliveryMethodsLabel : void 0
402
402
  },
403
403
  n.guid
404
404
  ),
405
- g && /* @__PURE__ */ e(fe, { in: f, children: /* @__PURE__ */ c(E, { sx: { bgcolor: "background.paper" }, children: [
405
+ g && /* @__PURE__ */ e(pe, { in: p, children: /* @__PURE__ */ c(E, { sx: { bgcolor: "background.paper" }, children: [
406
406
  s && /* @__PURE__ */ e(
407
407
  D,
408
408
  {
@@ -514,12 +514,12 @@ const Te = C(() => {
514
514
  const { insightsProfiles: n } = T();
515
515
  return /* @__PURE__ */ e(h, { children: n.map((t) => /* @__PURE__ */ e(X, { profile: t }, t.guid)) });
516
516
  }), Ae = () => {
517
- const { config: n } = q(), [t, { width: s }] = be(), { common: l, settings: i } = k(), { updateUser: r } = T(), { user: a } = A(), [o, u] = p.useState(!1), [d, f] = p.useState({
517
+ const { config: n } = q(), [t, { width: s }] = be(), { common: l, settings: i } = k(), { updateUser: r } = T(), { user: a } = A(), [o, u] = f.useState(!1), [d, p] = f.useState({
518
518
  email: a.email,
519
519
  phone: a.phone
520
520
  }), _ = d.email && !a.email_is_verified && !o, y = d.phone && !a.phone_is_verified && !o, m = (P) => {
521
521
  const { name: I, value: w } = P.target, M = { ...d, [I]: w };
522
- f(M), u(JSON.stringify({ ...a, ...M }) !== JSON.stringify(a));
522
+ p(M), u(JSON.stringify({ ...a, ...M }) !== JSON.stringify(a));
523
523
  }, g = async () => {
524
524
  await r({ ...a, ...d }), u(!1);
525
525
  };
@@ -601,15 +601,15 @@ const Te = C(() => {
601
601
  showPersonalDetails: t = !1,
602
602
  view: s
603
603
  }) => {
604
- const { config: l } = q(), { settings: i } = k(), { isInitialized: r } = de(), { isAccountDataLoaded: a, loadAccountData: o } = J(), { clientCommunicationProfile: u, loadNotificationProfiles: d } = T(), f = xe(), [_, y] = p.useState(!1), [m, g] = p.useState(
604
+ const { config: l } = q(), { settings: i } = k(), { isInitialized: r } = de(), { isAccountDataLoaded: a, loadAccountData: o } = J(), { clientCommunicationProfile: u, loadNotificationProfiles: d } = T(), p = xe(), [_, y] = f.useState(!1), [m, g] = f.useState(
605
605
  void 0
606
606
  );
607
- if (n.length > 0 && f && n.push(b.Insights), Ce({
607
+ if (n.length > 0 && p && n.push(b.Insights), Ce({
608
608
  widgetName: "NotificationSettingsWidget",
609
609
  isLoaded: _
610
- }), p.useEffect(() => {
610
+ }), f.useEffect(() => {
611
611
  a || o().finally();
612
- }, []), p.useEffect(() => {
612
+ }, []), f.useEffect(() => {
613
613
  r && d().finally(() => y(!0));
614
614
  }, [r]), !r)
615
615
  return /* @__PURE__ */ e(ve, {});
@@ -2,10 +2,10 @@ import { jsx as o } from "react/jsx-runtime";
2
2
  import _ from "react";
3
3
  import { observer as p } from "mobx-react-lite";
4
4
  import v from "@mui/material/TextField";
5
- import { L as y } from "./ListItemAction-4KB7P75M.mjs";
6
- import { u as h, k as b } from "./hooks-BxkfR-Ff.mjs";
5
+ import { L as y } from "./ListItemAction-BQIdxB-9.mjs";
6
+ import { u as h, k as b } from "./hooks-DOWEalfb.mjs";
7
7
  import { a as T, f as S } from "./NumberFormatting-QCaNwbjv.mjs";
8
- import { C as f } from "./CurrencyInput-DuMktPu3.mjs";
8
+ import { C as f } from "./CurrencyInput-xu9UcYZR.mjs";
9
9
  const F = p(({ goal: e }) => {
10
10
  const { goals: a } = h(), { setAlert: r, setSelectedGoal: l, updateGoal: m } = b(), [t, s] = _.useState(e.interest_rate ?? 0), c = !e.guid, i = t < 0, d = async () => {
11
11
  const n = { ...e, interest_rate: t };
@@ -7,8 +7,8 @@ import R from "@mui/material/Tabs";
7
7
  import d from "@mui/material/Divider";
8
8
  import b from "@mui/material/List";
9
9
  import T from "@mui/material/Stack";
10
- import { R as C, A as S, a as E, M as v } from "./ManageIncome-B1j-AzI1.mjs";
11
- import { u as _, i as A, g as f } from "./hooks-BxkfR-Ff.mjs";
10
+ import { R as C, A as S, a as E, M as v } from "./ManageIncome-DWVaWpCT.mjs";
11
+ import { u as _, i as A, f } from "./hooks-DOWEalfb.mjs";
12
12
  import { R as y, F as N } from "./RecurringTransactions-tayG19Wn.mjs";
13
13
  import { A as m } from "./Analytics-BYItVAe-.mjs";
14
14
  const I = h(() => {