@mx-cartographer/experiences 7.4.8-alpha.mm1 → 7.4.9

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 (62) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/{Account-BrOTlmeK.mjs → Account-01wOyrH1.mjs} +1 -1
  3. package/dist/{AccountDetailsContent-B7FqH05C.mjs → AccountDetailsContent-COMjOzwr.mjs} +8 -8
  4. package/dist/{AccountDetailsHeader-C8MxsxhN.mjs → AccountDetailsHeader-Cbi5G6fJ.mjs} +4 -4
  5. package/dist/{AccountFields-BQZ-o6Kj.mjs → AccountFields-Cd_nOWmf.mjs} +2 -2
  6. package/dist/{AccountListItem-aIE9WWTO.mjs → AccountListItem-DxY4cCF1.mjs} +4 -4
  7. package/dist/{AccountStore-DqO84Aer.mjs → AccountStore-C1zMBzHq.mjs} +2 -2
  8. package/dist/{Accounts-DC_A4UCa.mjs → Accounts-D7QljYas.mjs} +1 -1
  9. package/dist/{BudgetUtil-BmZXkL0C.mjs → BudgetUtil-Df2nII9u.mjs} +1 -1
  10. package/dist/{CategorySelectorDrawer-SUgfE5GN.mjs → CategorySelectorDrawer-DqJK_rrL.mjs} +1 -1
  11. package/dist/{ConnectDrawer-KL8t1qSC.mjs → ConnectDrawer-CuUj16NH.mjs} +1 -1
  12. package/dist/{ConnectionsDrawer-DaK5uIL5.mjs → ConnectionsDrawer-Bz4uwdFE.mjs} +2 -2
  13. package/dist/{CurrencyInput-itK0R3wV.mjs → CurrencyInput-BFKcs-_K.mjs} +1 -1
  14. package/dist/{DebtsStore-DVPZbv2C.mjs → DebtsStore-Bu8rRRSL.mjs} +1 -1
  15. package/dist/{ExportCsvAction-Cglo8Mca.mjs → ExportCsvAction-DzTrtPzk.mjs} +3 -3
  16. package/dist/{GoalStore-o4rrjGSJ.mjs → GoalStore-CrNhjvNc.mjs} +2 -2
  17. package/dist/{Help-BjLMsuMS.mjs → Help-BnPXM_N2.mjs} +1 -1
  18. package/dist/{LineChart-BQRxZF3p.mjs → LineChart-bc1D9xBE.mjs} +1 -1
  19. package/dist/{ListItemAction-BxTkF6Tz.mjs → ListItemAction-uobBrm_a.mjs} +1 -1
  20. package/dist/{ManageIncome-rcnDYsBJ.mjs → ManageIncome-A69EUO5u.mjs} +75 -75
  21. package/dist/{MicroWidgetContainer-B2hO9rOG.mjs → MicroWidgetContainer-DEiRnYVa.mjs} +1 -1
  22. package/dist/{MiniWidgetContainer-98-hKFqm.mjs → MiniWidgetContainer-CmXpTylX.mjs} +1 -1
  23. package/dist/{NetWorthStore-DG2X69jG.mjs → NetWorthStore-CpL_kqvx.mjs} +2 -2
  24. package/dist/{NotificationSettings-C7FYNM7I.mjs → NotificationSettings-CNmJWVeI.mjs} +248 -250
  25. package/dist/{OriginalBalanceAction-C6jdS4ws.mjs → OriginalBalanceAction-DK8_LkPz.mjs} +3 -3
  26. package/dist/{RecurringSettings-C81H1l38.mjs → RecurringSettings-B0uObPlD.mjs} +3 -3
  27. package/dist/{SpendingLegend-DqZxN_BZ.mjs → SpendingLegend-Bf-wbJvb.mjs} +2 -2
  28. package/dist/{TransactionDetails-BA_E5nQ-.mjs → TransactionDetails-COH0OKNG.mjs} +5 -5
  29. package/dist/{TransactionStore-PRlwE-TF.mjs → TransactionStore-Dz-G8Wd0.mjs} +2 -2
  30. package/dist/{User-Cnlegl1N.mjs → User-wXzDI4M8.mjs} +1 -1
  31. package/dist/{ViewMoreMicroCard-DfPXJzbv.mjs → ViewMoreMicroCard-C0832BMe.mjs} +101 -105
  32. package/dist/{WidgetContainer-CaPjoWeE.mjs → WidgetContainer-6dsjtOVg.mjs} +2 -2
  33. package/dist/accounts/index.es.js +140 -148
  34. package/dist/analytics/index.es.js +2 -2
  35. package/dist/budgets/components/AddBudgets.d.ts +2 -1
  36. package/dist/budgets/index.es.js +627 -599
  37. package/dist/cashflow/index.es.js +362 -367
  38. package/dist/categories/index.es.js +1 -1
  39. package/dist/common/hooks/index.d.ts +0 -1
  40. package/dist/common/index.es.js +33 -35
  41. package/dist/dashboard/index.es.js +88 -90
  42. package/dist/debts/index.es.js +342 -346
  43. package/dist/{exportTransactionsToCSV-DuAaI5XA.mjs → exportTransactionsToCSV-Cz2t0lmA.mjs} +1 -1
  44. package/dist/finstrong/index.es.js +350 -352
  45. package/dist/goals/index.es.js +511 -518
  46. package/dist/help/index.es.js +9 -13
  47. package/dist/{hooks-ZMp65DFz.mjs → hooks-C41HAxM5.mjs} +11 -11
  48. package/dist/investments/index.es.js +393 -395
  49. package/dist/merchants/index.es.js +1 -1
  50. package/dist/microinsights/index.es.js +1 -1
  51. package/dist/networth/index.es.js +240 -245
  52. package/dist/notifications/index.es.js +2 -2
  53. package/dist/recurringtransactions/index.es.js +285 -293
  54. package/dist/settings/index.es.js +249 -252
  55. package/dist/spending/index.es.js +126 -138
  56. package/dist/transactions/index.es.js +73 -77
  57. package/dist/trends/index.es.js +588 -601
  58. package/dist/{useAccountDisplayName-Cjx8YmKK.mjs → useAccountDisplayName-CMMlIOXF.mjs} +2 -2
  59. package/dist/{useInsightsEnabled-B7dxpDrX.mjs → useInsightsEnabled-CNjP5cfR.mjs} +1 -1
  60. package/package.json +1 -1
  61. package/dist/common/hooks/useWidgetLoadTimer.d.ts +0 -6
  62. package/dist/useWidgetLoadTimer-C1NBkyLd.mjs +0 -23
@@ -1,4 +1,4 @@
1
- import { jsxs as c, jsx as e, Fragment as M } from "react/jsx-runtime";
1
+ import { jsxs as l, jsx as e, Fragment as M } from "react/jsx-runtime";
2
2
  import g from "react";
3
3
  import { observer as C } from "mobx-react-lite";
4
4
  import v from "@mui/material/Divider";
@@ -6,20 +6,20 @@ import E from "@mui/material/List";
6
6
  import O from "@mui/material/ListItem";
7
7
  import L from "@mui/material/ListItemText";
8
8
  import V from "@mui/material/ListItemButton";
9
- import h from "@mui/material/Stack";
10
- import { ChevronRight as w, ExpandMore as Q, Star as Y } from "@mxenabled/mx-icons";
11
- import { Text as x, InstitutionLogo as Z, H3 as F } from "@mxenabled/mxui";
12
- import { endOfMonth as ee } from "date-fns/endOfMonth";
13
- import { startOfMonth as te } from "date-fns/startOfMonth";
14
- import { DateCalendar as ne } from "@mui/x-date-pickers/DateCalendar";
15
- import { LocalizationProvider as ie } from "@mui/x-date-pickers/LocalizationProvider";
16
- import { AdapterDateFns as oe } from "@mui/x-date-pickers/AdapterDateFnsV3";
17
- import { A as se, T as R, a as P, N as y } from "./ToggleListItem-ciFTiqRS.mjs";
18
- import { u as D, r as T, o as A, d as ae, g as ce, a as $, b as le } from "./hooks-ZMp65DFz.mjs";
9
+ import m from "@mui/material/Stack";
10
+ import { ChevronRight as w, ExpandMore as K, Star as Q } from "@mxenabled/mx-icons";
11
+ import { Text as x, InstitutionLogo as Y, H3 as F } from "@mxenabled/mxui";
12
+ import { endOfMonth as Z } from "date-fns/endOfMonth";
13
+ import { startOfMonth as ee } from "date-fns/startOfMonth";
14
+ import { DateCalendar as te } from "@mui/x-date-pickers/DateCalendar";
15
+ import { LocalizationProvider as ne } from "@mui/x-date-pickers/LocalizationProvider";
16
+ import { AdapterDateFns as ie } from "@mui/x-date-pickers/AdapterDateFnsV3";
17
+ import { A as oe, T as R, a as P, N as y } from "./ToggleListItem-ciFTiqRS.mjs";
18
+ import { u as D, s as T, p as I, d as se, g as ae, a as W, n as ce, b as le } from "./hooks-C41HAxM5.mjs";
19
19
  import { b as re } from "./Localization-2MODESHW.mjs";
20
20
  import { b as de, f as me } from "./NumberFormatting-DjTD0t3W.mjs";
21
21
  import { D as N } from "./Dialog-BPTr3qHE.mjs";
22
- import { C as he } from "./CurrencyInput-itK0R3wV.mjs";
22
+ import { C as he } from "./CurrencyInput-BFKcs-_K.mjs";
23
23
  import { u as _e } from "./useScreenSize-B6JyS_Lj.mjs";
24
24
  import { D as J } from "./Drawer-BEtCk82g.mjs";
25
25
  import ue from "@mui/material/Collapse";
@@ -30,17 +30,16 @@ import j from "@mui/material/Button";
30
30
  import U from "@mui/material/TextField";
31
31
  import { u as ge } from "./useDimensions-27p2evRx.mjs";
32
32
  import X from "@mui/material/styles/useTheme";
33
- import { u as ye } from "./useInsightsEnabled-B7dxpDrX.mjs";
34
- import { u as be } from "./useWidgetLoadTimer-C1NBkyLd.mjs";
35
- import { L as xe } from "./Loader-DUaFpDGv.mjs";
36
- const Ce = C(() => {
37
- const { common: n, settings: t } = D(), { sendEmailVerification: s } = T(), { user: l } = A(), i = X(), [r, a] = g.useState(!1), o = () => {
33
+ import { u as ye } from "./useInsightsEnabled-CNjP5cfR.mjs";
34
+ import { L as be } from "./Loader-DUaFpDGv.mjs";
35
+ const xe = C(() => {
36
+ const { common: n, settings: t } = D(), { sendEmailVerification: o } = T(), { user: r } = I(), s = X(), [c, a] = g.useState(!1), i = () => {
38
37
  a(!1);
39
38
  }, _ = () => {
40
39
  a(!0);
41
40
  };
42
- return /* @__PURE__ */ c(g.Fragment, { children: [
43
- /* @__PURE__ */ c(j, { onClick: _, sx: { height: "auto", p: 4, width: "fit-content" }, children: [
41
+ return /* @__PURE__ */ l(g.Fragment, { children: [
42
+ /* @__PURE__ */ l(j, { onClick: _, sx: { height: "auto", p: 4, width: "fit-content" }, children: [
44
43
  /* @__PURE__ */ e(x, { variant: "Small", children: t.verify_email }),
45
44
  /* @__PURE__ */ e(w, {})
46
45
  ] }),
@@ -48,10 +47,10 @@ const Ce = C(() => {
48
47
  N,
49
48
  {
50
49
  copy: { title: "" },
51
- isOpen: r,
52
- onClose: o,
53
- onPrimaryAction: s,
54
- onSecondaryAction: o,
50
+ isOpen: c,
51
+ onClose: i,
52
+ onPrimaryAction: o,
53
+ onSecondaryAction: i,
55
54
  primaryText: t.send_verification,
56
55
  secondaryText: n.back,
57
56
  sx: {
@@ -62,19 +61,19 @@ const Ce = C(() => {
62
61
  justifyContent: "center"
63
62
  }
64
63
  },
65
- children: /* @__PURE__ */ c(h, { spacing: 16, sx: { px: 40, textAlign: "center", width: "100%" }, children: [
64
+ children: /* @__PURE__ */ l(m, { spacing: 16, sx: { px: 40, textAlign: "center", width: "100%" }, children: [
66
65
  /* @__PURE__ */ e(x, { bold: !0, truncate: !1, variant: "Body", children: t.confirm_your_email }),
67
66
  /* @__PURE__ */ e(x, { truncate: !1, variant: "Small", children: t.confirm_email }),
68
67
  /* @__PURE__ */ e(
69
68
  x,
70
69
  {
71
70
  sx: {
72
- border: `1px solid ${i.palette.border.light}`,
71
+ border: `1px solid ${s.palette.border.light}`,
73
72
  borderRadius: "4px",
74
73
  p: "16px 32px"
75
74
  },
76
75
  variant: "H3",
77
- children: l.email
76
+ children: r.email
78
77
  }
79
78
  ),
80
79
  /* @__PURE__ */ e(x, { truncate: !1, variant: "Small", children: t.verification_notice_email })
@@ -82,19 +81,19 @@ const Ce = C(() => {
82
81
  }
83
82
  )
84
83
  ] });
85
- }), ve = C(
86
- ({ handleClose: n, handleVerify: t, isOpen: s }) => {
87
- const { common: l, settings: i } = D(), [r, a] = g.useState("");
84
+ }), Ce = C(
85
+ ({ handleClose: n, handleVerify: t, isOpen: o }) => {
86
+ const { common: r, settings: s } = D(), [c, a] = g.useState("");
88
87
  return /* @__PURE__ */ e(
89
88
  N,
90
89
  {
91
- copy: { title: i.enter_verification_code },
92
- isOpen: s,
90
+ copy: { title: s.enter_verification_code },
91
+ isOpen: o,
93
92
  onClose: n,
94
- onPrimaryAction: () => t(r),
93
+ onPrimaryAction: () => t(c),
95
94
  onSecondaryAction: n,
96
- primaryText: i.verify,
97
- secondaryText: l.cancel_button,
95
+ primaryText: s.verify,
96
+ secondaryText: r.cancel_button,
98
97
  sx: {
99
98
  "& .MuiDialogContent-root": { pt: 0, width: 400 },
100
99
  "& .MuiToolbar-root:last-child": {
@@ -103,26 +102,26 @@ const Ce = C(() => {
103
102
  justifyContent: "flex-end"
104
103
  }
105
104
  },
106
- children: /* @__PURE__ */ e(h, { children: /* @__PURE__ */ e(U, { onChange: (o) => a(o.target.value), sx: { width: 352 }, value: r }) })
105
+ children: /* @__PURE__ */ e(m, { children: /* @__PURE__ */ e(U, { onChange: (i) => a(i.target.value), sx: { width: 352 }, value: c }) })
107
106
  }
108
107
  );
109
108
  }
110
- ), Te = C(() => {
111
- const { common: n, settings: t } = D(), { sendPhoneVerification: s, verifyPhoneToken: l } = T(), { user: i } = A(), r = X(), [a, o] = g.useState(!1), [_, d] = g.useState(!1), p = () => {
112
- o(!1);
113
- }, m = () => {
114
- o(!0);
109
+ ), ve = C(() => {
110
+ const { common: n, settings: t } = D(), { sendPhoneVerification: o, verifyPhoneToken: r } = T(), { user: s } = I(), c = X(), [a, i] = g.useState(!1), [_, d] = g.useState(!1), h = () => {
111
+ i(!1);
112
+ }, u = () => {
113
+ i(!0);
115
114
  }, f = () => {
116
- s().finally(() => {
115
+ o().finally(() => {
117
116
  d(!0);
118
117
  });
119
- }, u = (b) => {
120
- l(b).finally(() => {
118
+ }, p = (b) => {
119
+ r(b).finally(() => {
121
120
  d(!1);
122
121
  });
123
122
  };
124
- return /* @__PURE__ */ c(g.Fragment, { children: [
125
- /* @__PURE__ */ c(j, { onClick: m, sx: { height: "auto", p: 4, width: "fit-content" }, children: [
123
+ return /* @__PURE__ */ l(g.Fragment, { children: [
124
+ /* @__PURE__ */ l(j, { onClick: u, sx: { height: "auto", p: 4, width: "fit-content" }, children: [
126
125
  /* @__PURE__ */ e(x, { variant: "Small", children: t.verify_phone }),
127
126
  /* @__PURE__ */ e(w, {})
128
127
  ] }),
@@ -131,9 +130,9 @@ const Ce = C(() => {
131
130
  {
132
131
  copy: { title: "" },
133
132
  isOpen: a,
134
- onClose: p,
133
+ onClose: h,
135
134
  onPrimaryAction: f,
136
- onSecondaryAction: p,
135
+ onSecondaryAction: h,
137
136
  primaryText: t.send_verification,
138
137
  secondaryText: n.back,
139
138
  sx: {
@@ -144,19 +143,19 @@ const Ce = C(() => {
144
143
  justifyContent: "center"
145
144
  }
146
145
  },
147
- children: /* @__PURE__ */ c(h, { spacing: 16, sx: { px: 40, textAlign: "center", width: "100%" }, children: [
146
+ children: /* @__PURE__ */ l(m, { spacing: 16, sx: { px: 40, textAlign: "center", width: "100%" }, children: [
148
147
  /* @__PURE__ */ e(x, { bold: !0, truncate: !1, variant: "Body", children: t.confirm_your_phone }),
149
148
  /* @__PURE__ */ e(x, { truncate: !1, variant: "Small", children: t.confirm_phone }),
150
149
  /* @__PURE__ */ e(
151
150
  x,
152
151
  {
153
152
  sx: {
154
- border: `1px solid ${r.palette.border.light}`,
153
+ border: `1px solid ${c.palette.border.light}`,
155
154
  borderRadius: "4px",
156
155
  p: "16px 32px"
157
156
  },
158
157
  variant: "H3",
159
- children: i.phone
158
+ children: s.phone
160
159
  }
161
160
  ),
162
161
  /* @__PURE__ */ e(x, { truncate: !1, variant: "Small", children: t.verification_notice_phone })
@@ -164,30 +163,30 @@ const Ce = C(() => {
164
163
  }
165
164
  ),
166
165
  /* @__PURE__ */ e(
167
- ve,
166
+ Ce,
168
167
  {
169
168
  handleClose: () => d(!1),
170
- handleVerify: u,
169
+ handleVerify: p,
171
170
  isOpen: _
172
171
  }
173
172
  )
174
173
  ] });
175
- }), Pe = C(
174
+ }), Te = C(
176
175
  ({ onProfileUpdated: n, profile: t }) => {
177
- const { common: s, recurring: l, settings: i } = D(), { updateAccount: r } = ae(), a = t.notification_type === se.DebtPaymentReminder, [o, _] = g.useState(!1), [d, p] = g.useState(t.threshold || 0), [m, f] = g.useState(
176
+ const { common: o, recurring: r, settings: s } = D(), { updateAccount: c } = se(), a = t.notification_type === oe.DebtPaymentReminder, [i, _] = g.useState(!1), [d, h] = g.useState(t.threshold || 0), [u, f] = g.useState(
178
177
  t.account?.day_payment_is_due || 0
179
- ), u = t.account?.name || t.account?.feed_name || "", b = t.account?.day_payment_is_due ? re(
180
- i.notification_debt_payment_date,
178
+ ), p = t.account?.name || t.account?.feed_name || "", b = t.account?.day_payment_is_due ? re(
179
+ s.notification_debt_payment_date,
181
180
  de(t.account?.day_payment_is_due)
182
- ) : i.notification_debt_payment_zero_state, k = a ? b : me(t.threshold ?? 0, "0,0"), I = async () => {
183
- a && t.account ? await r({ ...t.account, day_payment_is_due: m }) : n({ ...t, threshold: d });
181
+ ) : s.notification_debt_payment_zero_state, S = a ? b : me(t.threshold ?? 0, "0,0"), A = async () => {
182
+ a && t.account ? await c({ ...t.account, day_payment_is_due: u }) : n({ ...t, threshold: d });
184
183
  };
185
- return /* @__PURE__ */ c(h, { children: [
184
+ return /* @__PURE__ */ l(m, { children: [
186
185
  /* @__PURE__ */ e(
187
186
  R,
188
187
  {
189
188
  avatar: t.account?.institution_guid ? /* @__PURE__ */ e(
190
- Z,
189
+ Y,
191
190
  {
192
191
  alt: t.label,
193
192
  institutionGuid: t.account?.institution_guid
@@ -202,29 +201,29 @@ const Ce = C(() => {
202
201
  ...t,
203
202
  is_enabled: !t.is_enabled
204
203
  }),
205
- primaryText: u,
206
- secondaryText: t.is_enabled ? k : i.notification_disabled
204
+ primaryText: p,
205
+ secondaryText: t.is_enabled ? S : s.notification_disabled
207
206
  }
208
207
  ),
209
208
  /* @__PURE__ */ e(
210
209
  N,
211
210
  {
212
211
  copy: {
213
- title: a ? l.day_of_the_month : i.notification_threshold_label,
214
- close_aria: s.close_aria
212
+ title: a ? r.day_of_the_month : s.notification_threshold_label,
213
+ close_aria: o.close_aria
215
214
  },
216
- disablePrimaryButton: a && m === 0,
217
- isOpen: o,
215
+ disablePrimaryButton: a && u === 0,
216
+ isOpen: i,
218
217
  onClose: () => _(!1),
219
- onPrimaryAction: I,
220
- primaryText: s.save_button,
221
- children: a ? /* @__PURE__ */ e(ie, { dateAdapter: oe, children: /* @__PURE__ */ e(
222
- ne,
218
+ onPrimaryAction: A,
219
+ primaryText: o.save_button,
220
+ children: a ? /* @__PURE__ */ e(ne, { dateAdapter: ie, children: /* @__PURE__ */ e(
221
+ te,
223
222
  {
224
- maxDate: ee(/* @__PURE__ */ new Date()),
225
- minDate: te(/* @__PURE__ */ new Date()),
226
- onChange: (S) => {
227
- f(S.getDate());
223
+ maxDate: Z(/* @__PURE__ */ new Date()),
224
+ minDate: ee(/* @__PURE__ */ new Date()),
225
+ onChange: (k) => {
226
+ f(k.getDate());
228
227
  },
229
228
  slots: {
230
229
  // Hides the arrows
@@ -246,7 +245,7 @@ const Ce = C(() => {
246
245
  autoFocus: !0,
247
246
  fullWidth: !0,
248
247
  minAmount: 0,
249
- setAmount: (S) => p(Number(S) || 0),
248
+ setAmount: (k) => h(Number(k) || 0),
250
249
  sx: { ".MuiTypography-Body": { p: 0 } }
251
250
  }
252
251
  )
@@ -254,63 +253,63 @@ const Ce = C(() => {
254
253
  )
255
254
  ] });
256
255
  }
257
- ), De = C(
256
+ ), Pe = C(
258
257
  ({ onUpdateProfile: n, profile: t }) => {
259
- const { settings: s } = D(), { user: l } = A(), { clientCommunicationProfile: i, userCommunicationsProfile: r } = T(), { isMobile: a } = _e(), o = t.notification_type > 2, {
258
+ const { settings: o } = D(), { user: r } = I(), { clientCommunicationProfile: s, userCommunicationsProfile: c } = T(), { isMobile: a } = _e(), i = t.notification_type > 2, {
260
259
  opted_out_of_email_notifications: _,
261
260
  opted_out_of_push_notifications: d,
262
- opted_out_of_sms_notifications: p
263
- } = r, {
264
- email_notifications_enabled: m,
261
+ opted_out_of_sms_notifications: h
262
+ } = c, {
263
+ email_notifications_enabled: u,
265
264
  push_notifications_enabled: f,
266
- sms_notifications_enabled: u
267
- } = i;
268
- return /* @__PURE__ */ c(h, { children: [
269
- (m || u || f) && /* @__PURE__ */ c(M, { children: [
270
- /* @__PURE__ */ e(x, { bold: !0, sx: { mb: 4, ml: 24, mt: 12 }, variant: "caption", children: s.delivery_method_title }),
271
- /* @__PURE__ */ c(E, { sx: { bgcolor: "background.paper" }, children: [
272
- m && /* @__PURE__ */ e(h, { sx: { pl: 24 }, children: /* @__PURE__ */ e(
265
+ sms_notifications_enabled: p
266
+ } = s;
267
+ return /* @__PURE__ */ l(m, { children: [
268
+ (u || p || f) && /* @__PURE__ */ l(M, { children: [
269
+ /* @__PURE__ */ e(x, { bold: !0, sx: { mb: 4, ml: 24, mt: 12 }, variant: "caption", children: o.delivery_method_title }),
270
+ /* @__PURE__ */ l(E, { sx: { bgcolor: "background.paper" }, children: [
271
+ u && /* @__PURE__ */ e(m, { sx: { pl: 24 }, children: /* @__PURE__ */ e(
273
272
  P,
274
273
  {
275
- isChecked: !_ && t.email_channel && !!l.email,
276
- isDisabled: _ || !l.email,
274
+ isChecked: !_ && t.email_channel && !!r.email,
275
+ isDisabled: _ || !r.email,
277
276
  onToggle: () => n({ ...t, email_channel: !t.email_channel }),
278
- primaryText: s.delivery_method_email_label,
279
- secondaryText: _ || !t.email_channel || !l.email ? s.notification_disabled : s.notification_enabled,
277
+ primaryText: o.delivery_method_email_label,
278
+ secondaryText: _ || !t.email_channel || !r.email ? o.notification_disabled : o.notification_enabled,
280
279
  useExtraPadding: !1
281
280
  }
282
281
  ) }),
283
- m && (u || f) && /* @__PURE__ */ e(v, { sx: { ml: a ? 0 : 24 } }),
284
- u && /* @__PURE__ */ e(h, { sx: { pl: 24 }, children: /* @__PURE__ */ e(
282
+ u && (p || f) && /* @__PURE__ */ e(v, { sx: { ml: a ? 0 : 24 } }),
283
+ p && /* @__PURE__ */ e(m, { sx: { pl: 24 }, children: /* @__PURE__ */ e(
285
284
  P,
286
285
  {
287
- isChecked: !p && t.sms_channel && !!l.phone,
288
- isDisabled: p || !l.phone,
286
+ isChecked: !h && t.sms_channel && !!r.phone,
287
+ isDisabled: h || !r.phone,
289
288
  onToggle: () => n({ ...t, sms_channel: !t.sms_channel }),
290
- primaryText: `${s.delivery_method_sms_label}`,
291
- secondaryText: p || !t.sms_channel || !l.phone ? s.notification_disabled : s.notification_enabled,
289
+ primaryText: `${o.delivery_method_sms_label}`,
290
+ secondaryText: h || !t.sms_channel || !r.phone ? o.notification_disabled : o.notification_enabled,
292
291
  useExtraPadding: !1
293
292
  }
294
293
  ) }),
295
- u && f && /* @__PURE__ */ e(v, { sx: { ml: a ? 0 : 24 } }),
296
- f && /* @__PURE__ */ e(h, { sx: { pl: 24 }, children: /* @__PURE__ */ e(
294
+ p && f && /* @__PURE__ */ e(v, { sx: { ml: a ? 0 : 24 } }),
295
+ f && /* @__PURE__ */ e(m, { sx: { pl: 24 }, children: /* @__PURE__ */ e(
297
296
  P,
298
297
  {
299
298
  isChecked: !d && t.push_channel,
300
299
  isDisabled: d,
301
300
  onToggle: () => n({ ...t, push_channel: !t.push_channel }),
302
- primaryText: s.delivery_method_push_label,
303
- secondaryText: s.delivery_method_push_subtitle,
301
+ primaryText: o.delivery_method_push_label,
302
+ secondaryText: o.delivery_method_push_subtitle,
304
303
  useExtraPadding: !1
305
304
  }
306
305
  ) }),
307
306
  /* @__PURE__ */ e(v, {})
308
307
  ] })
309
308
  ] }),
310
- o && !!t.children?.length && /* @__PURE__ */ c(h, { children: [
311
- /* @__PURE__ */ e(x, { bold: !0, sx: { mb: 4, ml: 24, mt: 12 }, variant: "caption", children: s.accounts_threshold_title }),
309
+ i && !!t.children?.length && /* @__PURE__ */ l(m, { children: [
310
+ /* @__PURE__ */ e(x, { bold: !0, sx: { mb: 4, ml: 24, mt: 12 }, variant: "caption", children: o.accounts_threshold_title }),
312
311
  /* @__PURE__ */ e(E, { sx: { bgcolor: "background.paper" }, children: t.children?.map((b) => /* @__PURE__ */ e(
313
- Pe,
312
+ Te,
314
313
  {
315
314
  onProfileUpdated: n,
316
315
  profile: b
@@ -321,42 +320,42 @@ const Ce = C(() => {
321
320
  ] });
322
321
  }
323
322
  ), H = C(() => {
324
- const { accountProfiles: n, updateNotificationProfile: t } = T(), [s, l] = g.useState(""), i = g.useMemo(
325
- () => n.find((o) => o.guid === s),
326
- [n, s]
327
- ), r = async (o) => {
323
+ const { accountProfiles: n, updateNotificationProfile: t } = T(), [o, r] = g.useState(""), s = g.useMemo(
324
+ () => n.find((i) => i.guid === o),
325
+ [n, o]
326
+ ), c = async (i) => {
328
327
  await t({
329
- ...o,
330
- is_enabled: !o.is_enabled
328
+ ...i,
329
+ is_enabled: !i.is_enabled
331
330
  });
332
- }, a = async (o) => {
333
- await t(o);
331
+ }, a = async (i) => {
332
+ await t(i);
334
333
  };
335
- return /* @__PURE__ */ c(h, { sx: { backgroundColor: "background.paper" }, children: [
336
- n.filter((o) => o.children && o.children.length > 0).map((o) => /* @__PURE__ */ e(
334
+ return /* @__PURE__ */ l(m, { sx: { backgroundColor: "background.paper" }, children: [
335
+ n.filter((i) => i.children && i.children.length > 0).map((i) => /* @__PURE__ */ e(
337
336
  R,
338
337
  {
339
338
  endIcon: /* @__PURE__ */ e(w, {}),
340
- isChecked: o.is_enabled,
341
- isDisabled: !o.is_enabled,
342
- onClick: () => l(o.guid),
343
- onToggle: () => r(o),
344
- primaryText: o.label,
345
- secondaryText: o.is_enabled ? o.deliveryMethodsLabel : void 0
339
+ isChecked: i.is_enabled,
340
+ isDisabled: !i.is_enabled,
341
+ onClick: () => r(i.guid),
342
+ onToggle: () => c(i),
343
+ primaryText: i.label,
344
+ secondaryText: i.is_enabled ? i.deliveryMethodsLabel : void 0
346
345
  },
347
- o.guid
346
+ i.guid
348
347
  )),
349
348
  /* @__PURE__ */ e(
350
349
  J,
351
350
  {
352
- isOpen: !!i,
353
- onClose: () => l(""),
354
- title: i ? i.label : "",
355
- children: i && /* @__PURE__ */ e(
356
- De,
351
+ isOpen: !!s,
352
+ onClose: () => r(""),
353
+ title: s ? s.label : "",
354
+ children: s && /* @__PURE__ */ e(
355
+ Pe,
357
356
  {
358
357
  onUpdateProfile: a,
359
- profile: i
358
+ profile: s
360
359
  }
361
360
  )
362
361
  }
@@ -365,76 +364,76 @@ const Ce = C(() => {
365
364
  }), q = C(({ profile: n }) => {
366
365
  const { settings: t } = D(), {
367
366
  clientCommunicationProfile: {
368
- email_notifications_enabled: s,
369
- push_notifications_enabled: l,
370
- sms_notifications_enabled: i
367
+ email_notifications_enabled: o,
368
+ push_notifications_enabled: r,
369
+ sms_notifications_enabled: s
371
370
  },
372
- updateNotificationProfile: r,
371
+ updateNotificationProfile: c,
373
372
  userCommunicationsProfile: {
374
373
  opted_out_of_email_notifications: a,
375
- opted_out_of_push_notifications: o,
374
+ opted_out_of_push_notifications: i,
376
375
  opted_out_of_sms_notifications: _
377
376
  }
378
- } = T(), { user: d } = A(), [p, m] = g.useState(!1), f = async () => {
379
- await u({ ...n, is_enabled: !n.is_enabled }), n.is_enabled && m(!1);
380
- }, u = async (k) => {
381
- await r(k);
382
- }, b = s || i || l;
383
- return /* @__PURE__ */ c(E, { sx: { bgcolor: "background.paper" }, children: [
377
+ } = T(), { user: d } = I(), [h, u] = g.useState(!1), f = async () => {
378
+ await p({ ...n, is_enabled: !n.is_enabled }), n.is_enabled && u(!1);
379
+ }, p = async (S) => {
380
+ await c(S);
381
+ }, b = o || s || r;
382
+ return /* @__PURE__ */ l(E, { sx: { bgcolor: "background.paper" }, children: [
384
383
  /* @__PURE__ */ e(
385
384
  R,
386
385
  {
387
386
  endIcon: b ? /* @__PURE__ */ e(
388
- Q,
387
+ K,
389
388
  {
390
389
  sx: {
391
390
  transition: "transform 0.3s ease-in-out",
392
- transform: p ? "rotate(180deg)" : "rotate(0deg)"
391
+ transform: h ? "rotate(180deg)" : "rotate(0deg)"
393
392
  }
394
393
  }
395
394
  ) : void 0,
396
395
  isChecked: n.is_enabled,
397
396
  isDisabled: !n.is_enabled,
398
- onClick: () => m(!p),
397
+ onClick: () => u(!h),
399
398
  onToggle: () => f(),
400
399
  primaryText: n.label,
401
400
  secondaryText: n.is_enabled ? n.deliveryMethodsLabel : void 0
402
401
  },
403
402
  n.guid
404
403
  ),
405
- b && /* @__PURE__ */ e(ue, { in: p, children: /* @__PURE__ */ c(E, { sx: { bgcolor: "background.paper" }, children: [
406
- s && /* @__PURE__ */ e(
404
+ b && /* @__PURE__ */ e(ue, { in: h, children: /* @__PURE__ */ l(E, { sx: { bgcolor: "background.paper" }, children: [
405
+ o && /* @__PURE__ */ e(
407
406
  P,
408
407
  {
409
408
  isChecked: !a && n.email_channel && !!d.email,
410
409
  isDisabled: a || !d.email,
411
- onToggle: () => u({
410
+ onToggle: () => p({
412
411
  ...n,
413
412
  email_channel: !n.email_channel
414
413
  }),
415
414
  primaryText: t.delivery_method_email_label
416
415
  }
417
416
  ),
418
- s && (i || l) && /* @__PURE__ */ e(v, { sx: { ml: 48 } }),
419
- i && /* @__PURE__ */ e(
417
+ o && (s || r) && /* @__PURE__ */ e(v, { sx: { ml: 48 } }),
418
+ s && /* @__PURE__ */ e(
420
419
  P,
421
420
  {
422
421
  isChecked: !_ && n.sms_channel && !!d.phone,
423
422
  isDisabled: _ || !d.phone,
424
- onToggle: () => u({
423
+ onToggle: () => p({
425
424
  ...n,
426
425
  sms_channel: !n.sms_channel
427
426
  }),
428
427
  primaryText: t.delivery_method_sms_label
429
428
  }
430
429
  ),
431
- i && l && /* @__PURE__ */ e(v, { sx: { ml: 48 } }),
432
- l && /* @__PURE__ */ e(
430
+ s && r && /* @__PURE__ */ e(v, { sx: { ml: 48 } }),
431
+ r && /* @__PURE__ */ e(
433
432
  P,
434
433
  {
435
- isChecked: !o && n.push_channel,
436
- isDisabled: o,
437
- onToggle: () => u({
434
+ isChecked: !i && n.push_channel,
435
+ isDisabled: i,
436
+ onToggle: () => p({
438
437
  ...n,
439
438
  push_channel: !n.push_channel
440
439
  }),
@@ -444,59 +443,59 @@ const Ce = C(() => {
444
443
  ] }) }),
445
444
  /* @__PURE__ */ e(v, {})
446
445
  ] }, n.guid);
447
- }), W = C(() => {
446
+ }), z = C(() => {
448
447
  const { budgetProfiles: n } = T();
449
- return /* @__PURE__ */ e(h, { children: n.map((t) => /* @__PURE__ */ e(q, { profile: t }, t.guid)) });
450
- }), Se = C(() => {
451
- const { onEvent: n } = ce(), { settings: t } = D(), {
452
- clientCommunicationProfile: s,
453
- updateUserCommunicationProfile: l,
454
- userCommunicationsProfile: i
455
- } = T(), { user: r } = A(), a = async (o, _) => {
456
- const d = { ...i, [o]: _ };
448
+ return /* @__PURE__ */ e(m, { children: n.map((t) => /* @__PURE__ */ e(q, { profile: t }, t.guid)) });
449
+ }), De = C(() => {
450
+ const { onEvent: n } = ae(), { settings: t } = D(), {
451
+ clientCommunicationProfile: o,
452
+ updateUserCommunicationProfile: r,
453
+ userCommunicationsProfile: s
454
+ } = T(), { user: c } = I(), a = async (i, _) => {
455
+ const d = { ...s, [i]: _ };
457
456
  if (n) {
458
- const m = o.split("_")[3];
459
- _ === !1 ? n("opt_in_notification_method", { notificationType: m }) : n("opt_out_notification_method", { notificationType: m });
457
+ const u = i.split("_")[3];
458
+ _ === !1 ? n("opt_in_notification_method", { notificationType: u }) : n("opt_out_notification_method", { notificationType: u });
460
459
  }
461
- await l(d);
460
+ await r(d);
462
461
  };
463
- return /* @__PURE__ */ c(h, { children: [
462
+ return /* @__PURE__ */ l(m, { children: [
464
463
  /* @__PURE__ */ e(F, { sx: { mt: 24 }, children: t.delivery_method_title }),
465
- s.email_notifications_enabled && /* @__PURE__ */ c(M, { children: [
464
+ o.email_notifications_enabled && /* @__PURE__ */ l(M, { children: [
466
465
  /* @__PURE__ */ e(
467
466
  P,
468
467
  {
469
- isChecked: !!r.email && !i.opted_out_of_email_notifications,
470
- isDisabled: !r.email,
468
+ isChecked: !!c.email && !s.opted_out_of_email_notifications,
469
+ isDisabled: !c.email,
471
470
  onToggle: () => a(
472
471
  "opted_out_of_email_notifications",
473
- !i.opted_out_of_email_notifications
472
+ !s.opted_out_of_email_notifications
474
473
  ),
475
474
  primaryText: t.delivery_method_email_title,
476
- secondaryText: r.email && !i.opted_out_of_email_notifications ? t.notification_enabled : t.notification_disabled,
475
+ secondaryText: c.email && !s.opted_out_of_email_notifications ? t.notification_enabled : t.notification_disabled,
477
476
  useExtraPadding: !1
478
477
  }
479
478
  ),
480
- (s.sms_notifications_enabled || s.push_notifications_enabled) && /* @__PURE__ */ e(v, {})
479
+ (o.sms_notifications_enabled || o.push_notifications_enabled) && /* @__PURE__ */ e(v, {})
481
480
  ] }),
482
- s.sms_notifications_enabled && /* @__PURE__ */ c(M, { children: [
481
+ o.sms_notifications_enabled && /* @__PURE__ */ l(M, { children: [
483
482
  /* @__PURE__ */ e(
484
483
  P,
485
484
  {
486
- isChecked: !!r.phone && !i.opted_out_of_sms_notifications,
487
- isDisabled: !r.phone,
488
- onToggle: () => a("opted_out_of_sms_notifications", !i.opted_out_of_sms_notifications),
485
+ isChecked: !!c.phone && !s.opted_out_of_sms_notifications,
486
+ isDisabled: !c.phone,
487
+ onToggle: () => a("opted_out_of_sms_notifications", !s.opted_out_of_sms_notifications),
489
488
  primaryText: t.delivery_method_sms_title,
490
- secondaryText: r.phone && !i.opted_out_of_sms_notifications ? t.notification_enabled : t.notification_disabled,
489
+ secondaryText: c.phone && !s.opted_out_of_sms_notifications ? t.notification_enabled : t.notification_disabled,
491
490
  useExtraPadding: !1
492
491
  }
493
492
  ),
494
- s.push_notifications_enabled && /* @__PURE__ */ e(v, {})
493
+ o.push_notifications_enabled && /* @__PURE__ */ e(v, {})
495
494
  ] }),
496
- s.push_notifications_enabled && /* @__PURE__ */ e(
495
+ o.push_notifications_enabled && /* @__PURE__ */ e(
497
496
  P,
498
497
  {
499
- isChecked: !i.opted_out_of_push_notifications,
498
+ isChecked: !s.opted_out_of_push_notifications,
500
499
  isDisabled: !0,
501
500
  onToggle: () => {
502
501
  },
@@ -505,41 +504,41 @@ const Ce = C(() => {
505
504
  useExtraPadding: !1
506
505
  }
507
506
  ),
508
- s.sms_notifications_enabled && /* @__PURE__ */ e(pe, { sx: { backgroundColor: "background.default", mt: 12 }, variant: "outlined", children: /* @__PURE__ */ e(fe, { children: /* @__PURE__ */ c(h, { alignItems: "flex-start", direction: "row", gap: 6, children: [
509
- /* @__PURE__ */ e(Y, { color: "primary", filled: !0 }),
507
+ o.sms_notifications_enabled && /* @__PURE__ */ e(pe, { sx: { backgroundColor: "background.default", mt: 12 }, variant: "outlined", children: /* @__PURE__ */ e(fe, { children: /* @__PURE__ */ l(m, { alignItems: "flex-start", direction: "row", gap: 6, children: [
508
+ /* @__PURE__ */ e(Q, { color: "primary", filled: !0 }),
510
509
  /* @__PURE__ */ e(x, { sx: { whiteSpace: "wrap" }, variant: "XSmall", children: t.delivery_method_sms_note_1 })
511
510
  ] }) }) })
512
511
  ] });
513
- }), z = C(() => {
512
+ }), $ = C(() => {
514
513
  const { insightsProfiles: n } = T();
515
- return /* @__PURE__ */ e(h, { children: n.map((t) => /* @__PURE__ */ e(q, { profile: t }, t.guid)) });
516
- }), ke = () => {
517
- const { config: n } = $(), [t, { width: s }] = ge(), { common: l, settings: i } = D(), { updateUser: r } = T(), { user: a } = A(), [o, _] = g.useState(!1), [d, p] = g.useState({
514
+ return /* @__PURE__ */ e(m, { children: n.map((t) => /* @__PURE__ */ e(q, { profile: t }, t.guid)) });
515
+ }), Se = () => {
516
+ const { config: n } = W(), [t, { width: o }] = ge(), { common: r, settings: s } = D(), { updateUser: c } = T(), { user: a } = I(), [i, _] = g.useState(!1), [d, h] = g.useState({
518
517
  email: a.email,
519
518
  phone: a.phone
520
- }), m = d.email && !a.email_is_verified && !o, f = d.phone && !a.phone_is_verified && !o, u = (k) => {
521
- const { name: I, value: S } = k.target, B = { ...d, [I]: S };
522
- p(B), _(JSON.stringify({ ...a, ...B }) !== JSON.stringify(a));
519
+ }), u = d.email && !a.email_is_verified && !i, f = d.phone && !a.phone_is_verified && !i, p = (S) => {
520
+ const { name: A, value: k } = S.target, B = { ...d, [A]: k };
521
+ h(B), _(JSON.stringify({ ...a, ...B }) !== JSON.stringify(a));
523
522
  }, b = async () => {
524
- await r({ ...a, ...d }), _(!1);
523
+ await c({ ...a, ...d }), _(!1);
525
524
  };
526
- return /* @__PURE__ */ c(h, { ref: t, children: [
525
+ return /* @__PURE__ */ l(m, { ref: t, children: [
527
526
  /* @__PURE__ */ e(v, {}),
528
- /* @__PURE__ */ c(h, { sx: { pt: 12 }, children: [
529
- /* @__PURE__ */ e(F, { sx: { lineHeight: "20px", pb: 4, pt: 16 }, children: i.personal_details }),
530
- /* @__PURE__ */ c(h, { sx: { flexDirection: s <= 768 ? "column" : "row", gap: 24, py: 16 }, children: [
531
- n.display_email_edit_field_in_settings && /* @__PURE__ */ c(h, { sx: { flex: 1, pb: 14 }, children: [
527
+ /* @__PURE__ */ l(m, { sx: { pt: 12 }, children: [
528
+ /* @__PURE__ */ e(F, { sx: { lineHeight: "20px", pb: 4, pt: 16 }, children: s.personal_details }),
529
+ /* @__PURE__ */ l(m, { sx: { flexDirection: o <= 768 ? "column" : "row", gap: 24, py: 16 }, children: [
530
+ n.display_email_edit_field_in_settings && /* @__PURE__ */ l(m, { sx: { flex: 1, pb: 14 }, children: [
532
531
  /* @__PURE__ */ e(
533
532
  U,
534
533
  {
535
534
  defaultValue: a.email,
536
535
  fullWidth: !0,
537
- label: i.email_address,
536
+ label: s.email_address,
538
537
  name: "email",
539
- onChange: u
538
+ onChange: p
540
539
  }
541
540
  ),
542
- m && /* @__PURE__ */ e(
541
+ u && /* @__PURE__ */ e(
543
542
  G,
544
543
  {
545
544
  sx: {
@@ -551,19 +550,19 @@ const Ce = C(() => {
551
550
  }
552
551
  }
553
552
  },
554
- children: /* @__PURE__ */ e(Ce, {})
553
+ children: /* @__PURE__ */ e(xe, {})
555
554
  }
556
555
  )
557
556
  ] }),
558
- n.display_sms_edit_field_in_settings && /* @__PURE__ */ c(h, { sx: { flex: 1, pb: 14 }, children: [
557
+ n.display_sms_edit_field_in_settings && /* @__PURE__ */ l(m, { sx: { flex: 1, pb: 14 }, children: [
559
558
  /* @__PURE__ */ e(
560
559
  U,
561
560
  {
562
561
  defaultValue: a.phone,
563
562
  fullWidth: !0,
564
- label: i.mobile_number,
563
+ label: s.mobile_number,
565
564
  name: "phone",
566
- onChange: u
565
+ onChange: p
567
566
  }
568
567
  ),
569
568
  f && /* @__PURE__ */ e(
@@ -578,7 +577,7 @@ const Ce = C(() => {
578
577
  }
579
578
  }
580
579
  },
581
- children: /* @__PURE__ */ e(Te, {})
580
+ children: /* @__PURE__ */ e(ve, {})
582
581
  }
583
582
  )
584
583
  ] })
@@ -586,78 +585,77 @@ const Ce = C(() => {
586
585
  /* @__PURE__ */ e(
587
586
  j,
588
587
  {
589
- disabled: !o,
588
+ disabled: !i,
590
589
  onClick: b,
591
590
  sx: { width: 84 },
592
591
  variant: "contained",
593
- children: l.save_button
592
+ children: r.save_button
594
593
  }
595
594
  )
596
595
  ] })
597
596
  ] });
598
- }, we = C(ke), dt = C(
597
+ }, ke = C(Se), lt = C(
599
598
  ({
600
599
  notificationTypes: n = [y.Accounts, y.Budgets],
601
600
  showPersonalDetails: t = !1,
602
- view: s
601
+ view: o
603
602
  }) => {
604
- const { config: l } = $(), { settings: i } = D(), { isInitialized: r } = le(), { clientCommunicationProfile: a, loadNotificationProfiles: o } = T(), _ = ye(), [d, p] = g.useState(!1), [m, f] = g.useState(
603
+ const { onLoad: r } = ce(), { config: s } = W(), { settings: c } = D(), { isInitialized: a } = le(), { clientCommunicationProfile: i, loadNotificationProfiles: _ } = T(), d = ye(), [h, u] = g.useState(
605
604
  void 0
606
605
  );
607
- if (n.length > 0 && _ && n.push(y.Insights), be({
608
- widgetName: "NotificationSettingsWidget",
609
- isLoaded: d
610
- }), g.useEffect(() => {
611
- r && o().finally(() => p(!0));
612
- }, [r]), !r)
613
- return /* @__PURE__ */ e(xe, {});
614
- let u = i.manage_account_notifications;
615
- m === y.Budgets ? u = i.manage_budget_notifications : m === y.Insights && (u = i.manage_insights_notifications);
606
+ if (n.length > 0 && d && n.push(y.Insights), g.useEffect(() => {
607
+ a && _().finally(() => {
608
+ r?.("NotificationSettings");
609
+ });
610
+ }, [a]), !a)
611
+ return /* @__PURE__ */ e(be, {});
612
+ let f = c.manage_account_notifications;
613
+ h === y.Budgets ? f = c.manage_budget_notifications : h === y.Insights && (f = c.manage_insights_notifications);
616
614
  const {
617
- email_notifications_enabled: b,
618
- sms_notifications_enabled: k,
619
- push_notifications_enabled: I
620
- } = a, S = b || k || I;
621
- if (s === "accounts")
615
+ email_notifications_enabled: p,
616
+ sms_notifications_enabled: b,
617
+ push_notifications_enabled: S
618
+ } = i, A = p || b || S;
619
+ if (o === "accounts")
622
620
  return /* @__PURE__ */ e(H, {});
623
- if (s === "budgets")
624
- return /* @__PURE__ */ e(W, {});
625
- if (s === "insights")
621
+ if (o === "budgets")
626
622
  return /* @__PURE__ */ e(z, {});
627
- const B = l.display_email_edit_field_in_settings || l.display_sms_edit_field_in_settings, K = t && a.can_edit_contact_info && B;
628
- return /* @__PURE__ */ c(h, { sx: { pt: S ? 0 : 24 }, children: [
629
- /* @__PURE__ */ c(h, { sx: { px: 24 }, children: [
630
- S && /* @__PURE__ */ c(M, { children: [
631
- /* @__PURE__ */ e(Se, {}),
623
+ if (o === "insights")
624
+ return /* @__PURE__ */ e($, {});
625
+ const k = s.display_email_edit_field_in_settings || s.display_sms_edit_field_in_settings, B = t && i.can_edit_contact_info && k;
626
+ return /* @__PURE__ */ l(m, { sx: { pt: A ? 0 : 24 }, children: [
627
+ /* @__PURE__ */ l(m, { sx: { px: 24 }, children: [
628
+ A && /* @__PURE__ */ l(M, { children: [
629
+ /* @__PURE__ */ e(De, {}),
632
630
  /* @__PURE__ */ e(v, { sx: { my: 24 } })
633
631
  ] }),
634
- /* @__PURE__ */ e(F, { sx: { mb: 4 }, children: i.notification_types_title })
632
+ /* @__PURE__ */ e(F, { sx: { mb: 4 }, children: c.notification_types_title })
635
633
  ] }),
636
- /* @__PURE__ */ c(E, { children: [
637
- n.includes(y.Accounts) && /* @__PURE__ */ e(O, { children: /* @__PURE__ */ c(V, { onClick: () => f(y.Accounts), children: [
638
- /* @__PURE__ */ e(L, { primary: i.accounts_title, secondary: i.accounts_subtitle }),
634
+ /* @__PURE__ */ l(E, { children: [
635
+ n.includes(y.Accounts) && /* @__PURE__ */ e(O, { children: /* @__PURE__ */ l(V, { onClick: () => u(y.Accounts), children: [
636
+ /* @__PURE__ */ e(L, { primary: c.accounts_title, secondary: c.accounts_subtitle }),
639
637
  /* @__PURE__ */ e(w, {})
640
638
  ] }) }),
641
- n.includes(y.Budgets) && /* @__PURE__ */ e(O, { children: /* @__PURE__ */ c(V, { onClick: () => f(y.Budgets), children: [
642
- /* @__PURE__ */ e(L, { primary: i.budgets_title, secondary: i.budgets_subtitle }),
639
+ n.includes(y.Budgets) && /* @__PURE__ */ e(O, { children: /* @__PURE__ */ l(V, { onClick: () => u(y.Budgets), children: [
640
+ /* @__PURE__ */ e(L, { primary: c.budgets_title, secondary: c.budgets_subtitle }),
643
641
  /* @__PURE__ */ e(w, {})
644
642
  ] }) }),
645
- n.includes(y.Insights) && /* @__PURE__ */ e(O, { children: /* @__PURE__ */ c(V, { onClick: () => f(y.Insights), children: [
646
- /* @__PURE__ */ e(L, { primary: i.insights_title, secondary: i.insights_subtitle }),
643
+ n.includes(y.Insights) && /* @__PURE__ */ e(O, { children: /* @__PURE__ */ l(V, { onClick: () => u(y.Insights), children: [
644
+ /* @__PURE__ */ e(L, { primary: c.insights_title, secondary: c.insights_subtitle }),
647
645
  /* @__PURE__ */ e(w, {})
648
646
  ] }) })
649
647
  ] }),
650
- K && /* @__PURE__ */ e(h, { sx: { px: 24 }, children: /* @__PURE__ */ e(we, {}) }),
648
+ B && /* @__PURE__ */ e(m, { sx: { px: 24 }, children: /* @__PURE__ */ e(ke, {}) }),
651
649
  /* @__PURE__ */ e(
652
650
  J,
653
651
  {
654
- isOpen: !!m,
655
- onClose: () => f(void 0),
656
- title: u,
657
- children: /* @__PURE__ */ c(h, { children: [
658
- m === y.Accounts && /* @__PURE__ */ e(H, {}),
659
- m === y.Budgets && /* @__PURE__ */ e(W, {}),
660
- m === y.Insights && /* @__PURE__ */ e(z, {})
652
+ isOpen: !!h,
653
+ onClose: () => u(void 0),
654
+ title: f,
655
+ children: /* @__PURE__ */ l(m, { children: [
656
+ h === y.Accounts && /* @__PURE__ */ e(H, {}),
657
+ h === y.Budgets && /* @__PURE__ */ e(z, {}),
658
+ h === y.Insights && /* @__PURE__ */ e($, {})
661
659
  ] })
662
660
  }
663
661
  )
@@ -666,9 +664,9 @@ const Ce = C(() => {
666
664
  );
667
665
  export {
668
666
  H as A,
669
- W as B,
670
- z as I,
671
- dt as N,
672
- Ce as V,
673
- Te as a
667
+ z as B,
668
+ $ as I,
669
+ lt as N,
670
+ xe as V,
671
+ ve as a
674
672
  };