@mx-cartographer/experiences 9.1.4-alpha.al6 → 9.1.4

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 (110) hide show
  1. package/CHANGELOG.md +2 -1
  2. package/dist/{AccountDetailsDrawer-Dae8eUXt.mjs → AccountDetailsDrawer-Cq4kiiKD.mjs} +10 -10
  3. package/dist/{AccountDetailsDrawer-Dae8eUXt.mjs.map → AccountDetailsDrawer-Cq4kiiKD.mjs.map} +1 -1
  4. package/dist/{AccountDetailsHeader-D_UjMD99.mjs → AccountDetailsHeader-BliEZhz7.mjs} +4 -4
  5. package/dist/{AccountDetailsHeader-D_UjMD99.mjs.map → AccountDetailsHeader-BliEZhz7.mjs.map} +1 -1
  6. package/dist/{Analytics-fWQ36-fb.mjs → Analytics-CkYXKvco.mjs} +2 -2
  7. package/dist/{Analytics-fWQ36-fb.mjs.map → Analytics-CkYXKvco.mjs.map} +1 -1
  8. package/dist/{CategorySelectorDrawer-k8AZYC8I.mjs → CategorySelectorDrawer-NJsFsKP1.mjs} +2 -2
  9. package/dist/{CategorySelectorDrawer-k8AZYC8I.mjs.map → CategorySelectorDrawer-NJsFsKP1.mjs.map} +1 -1
  10. package/dist/{Connect-tID_S_5e.mjs → Connect-BH0Pt6zc.mjs} +2 -2
  11. package/dist/{Connect-tID_S_5e.mjs.map → Connect-BH0Pt6zc.mjs.map} +1 -1
  12. package/dist/{ConnectCard-DcM6tUOX.mjs → ConnectCard-D7uxoH5Y.mjs} +2 -2
  13. package/dist/{ConnectCard-DcM6tUOX.mjs.map → ConnectCard-D7uxoH5Y.mjs.map} +1 -1
  14. package/dist/{ConnectDrawer-BQy4YYuc.mjs → ConnectDrawer-CW4LA3H3.mjs} +3 -3
  15. package/dist/{ConnectDrawer-BQy4YYuc.mjs.map → ConnectDrawer-CW4LA3H3.mjs.map} +1 -1
  16. package/dist/{ConnectionsDrawer-C73ASLMj.mjs → ConnectionsDrawer-CZU9ku-k.mjs} +3 -3
  17. package/dist/{ConnectionsDrawer-C73ASLMj.mjs.map → ConnectionsDrawer-CZU9ku-k.mjs.map} +1 -1
  18. package/dist/{CurrencyInput-CABYmqBh.mjs → CurrencyInput-DaGEQaLW.mjs} +2 -2
  19. package/dist/{CurrencyInput-CABYmqBh.mjs.map → CurrencyInput-DaGEQaLW.mjs.map} +1 -1
  20. package/dist/{EmbeddedCard-BwfkCsUN.mjs → EmbeddedCard-DCOQnTz-.mjs} +3 -3
  21. package/dist/{EmbeddedCard-BwfkCsUN.mjs.map → EmbeddedCard-DCOQnTz-.mjs.map} +1 -1
  22. package/dist/{Error-BFJ3BnfS.mjs → Error-Dtw6yxkf.mjs} +2 -2
  23. package/dist/{Error-BFJ3BnfS.mjs.map → Error-Dtw6yxkf.mjs.map} +1 -1
  24. package/dist/ErrorBoundary-CsdOcnJ9.mjs +24 -0
  25. package/dist/ErrorBoundary-CsdOcnJ9.mjs.map +1 -0
  26. package/dist/{ExportCsvAction-B1257a3M.mjs → ExportCsvAction-C-IisDcv.mjs} +3 -3
  27. package/dist/{ExportCsvAction-B1257a3M.mjs.map → ExportCsvAction-C-IisDcv.mjs.map} +1 -1
  28. package/dist/{GlobalAccountFilter-DEEc3Bc5.mjs → GlobalAccountFilter-BhzR5Vb1.mjs} +2 -2
  29. package/dist/{GlobalAccountFilter-DEEc3Bc5.mjs.map → GlobalAccountFilter-BhzR5Vb1.mjs.map} +1 -1
  30. package/dist/{GlobalCopyApi-DoJLovk7.mjs → GlobalCopyApi-wcnDUzMV.mjs} +56 -54
  31. package/dist/GlobalCopyApi-wcnDUzMV.mjs.map +1 -0
  32. package/dist/{Help-C3rQ0Cyu.mjs → Help-zVZdcmlk.mjs} +3 -3
  33. package/dist/{Help-C3rQ0Cyu.mjs.map → Help-zVZdcmlk.mjs.map} +1 -1
  34. package/dist/{LineChart-BxEIZHht.mjs → LineChart-CUfiH86G.mjs} +2 -2
  35. package/dist/{LineChart-BxEIZHht.mjs.map → LineChart-CUfiH86G.mjs.map} +1 -1
  36. package/dist/{ListItemAction-GDU5z4BN.mjs → ListItemAction-BqUCLj_w.mjs} +2 -2
  37. package/dist/{ListItemAction-GDU5z4BN.mjs.map → ListItemAction-BqUCLj_w.mjs.map} +1 -1
  38. package/dist/{ListItemWrapper-D6b-6m4t.mjs → ListItemWrapper-DRse79Iu.mjs} +2 -2
  39. package/dist/{ListItemWrapper-D6b-6m4t.mjs.map → ListItemWrapper-DRse79Iu.mjs.map} +1 -1
  40. package/dist/{ManageIncome-BJWVPAly.mjs → ManageIncome-B_8i71mE.mjs} +32 -32
  41. package/dist/{ManageIncome-BJWVPAly.mjs.map → ManageIncome-B_8i71mE.mjs.map} +1 -1
  42. package/dist/{MicroWidgetContainer-IUZQlml1.mjs → MicroWidgetContainer-B2NnKBgW.mjs} +2 -2
  43. package/dist/{MicroWidgetContainer-IUZQlml1.mjs.map → MicroWidgetContainer-B2NnKBgW.mjs.map} +1 -1
  44. package/dist/{MiniWidgetContainer-CIswJui8.mjs → MiniWidgetContainer-Bmv_WeUd.mjs} +2 -2
  45. package/dist/{MiniWidgetContainer-CIswJui8.mjs.map → MiniWidgetContainer-Bmv_WeUd.mjs.map} +1 -1
  46. package/dist/{NotificationSettings-DltXMrnb.mjs → NotificationSettings-CW7okUrk.mjs} +33 -33
  47. package/dist/{NotificationSettings-DltXMrnb.mjs.map → NotificationSettings-CW7okUrk.mjs.map} +1 -1
  48. package/dist/{OriginalBalanceAction-KuJSsZCA.mjs → OriginalBalanceAction-YrvxBYAl.mjs} +4 -4
  49. package/dist/{OriginalBalanceAction-KuJSsZCA.mjs.map → OriginalBalanceAction-YrvxBYAl.mjs.map} +1 -1
  50. package/dist/{RecurringSettings-D2Aaqz7d.mjs → RecurringSettings-hs0YUp83.mjs} +3 -3
  51. package/dist/{RecurringSettings-D2Aaqz7d.mjs.map → RecurringSettings-hs0YUp83.mjs.map} +1 -1
  52. package/dist/{SpendingLegend-C_dMdqbe.mjs → SpendingLegend-CxvNOg3c.mjs} +2 -2
  53. package/dist/{SpendingLegend-C_dMdqbe.mjs.map → SpendingLegend-CxvNOg3c.mjs.map} +1 -1
  54. package/dist/{TransactionDetails-CDZNsKv7.mjs → TransactionDetails-DT-MQqOB.mjs} +5 -5
  55. package/dist/{TransactionDetails-CDZNsKv7.mjs.map → TransactionDetails-DT-MQqOB.mjs.map} +1 -1
  56. package/dist/{UserStore-B__9hQOS.mjs → UserStore-_QQpkbw9.mjs} +67 -69
  57. package/dist/UserStore-_QQpkbw9.mjs.map +1 -0
  58. package/dist/{ViewMoreMicroCard-CxGhzbRP.mjs → ViewMoreMicroCard-fnwE0hqd.mjs} +4 -4
  59. package/dist/{ViewMoreMicroCard-CxGhzbRP.mjs.map → ViewMoreMicroCard-fnwE0hqd.mjs.map} +1 -1
  60. package/dist/{WidgetContainer-5O6N88mr.mjs → WidgetContainer-CjdCY4sj.mjs} +3 -3
  61. package/dist/{WidgetContainer-5O6N88mr.mjs.map → WidgetContainer-CjdCY4sj.mjs.map} +1 -1
  62. package/dist/accounts/index.es.js +11 -11
  63. package/dist/analytics/index.es.js +2 -2
  64. package/dist/budgets/index.es.js +10 -10
  65. package/dist/cashflow/index.es.js +70 -70
  66. package/dist/categories/index.es.js +1 -1
  67. package/dist/common/components/ErrorBoundary.d.ts +0 -2
  68. package/dist/common/components/index.d.ts +0 -1
  69. package/dist/common/context/GlobalDataProvider.d.ts +1 -2
  70. package/dist/common/context/hooks.d.ts +0 -3
  71. package/dist/common/context/index.d.ts +1 -1
  72. package/dist/common/index.es.js +219 -275
  73. package/dist/common/index.es.js.map +1 -1
  74. package/dist/core/index.es.js +3 -3
  75. package/dist/core/stores/GlobalStore.d.ts +2 -4
  76. package/dist/core/types/Handlers.d.ts +0 -1
  77. package/dist/core/types/index.d.ts +1 -1
  78. package/dist/dashboard/index.es.js +4 -4
  79. package/dist/debts/index.es.js +8 -8
  80. package/dist/finstrong/index.es.js +12 -12
  81. package/dist/goals/index.es.js +9 -9
  82. package/dist/help/index.es.js +4 -4
  83. package/dist/hooks-97sNJ_lf.mjs +78 -0
  84. package/dist/hooks-97sNJ_lf.mjs.map +1 -0
  85. package/dist/insights/index.es.js +4 -4
  86. package/dist/investments/index.es.js +4 -4
  87. package/dist/merchants/index.es.js +1 -1
  88. package/dist/microinsights/index.es.js +1 -1
  89. package/dist/networth/index.es.js +6 -6
  90. package/dist/notifications/index.es.js +8 -8
  91. package/dist/recurringtransactions/index.es.js +38 -38
  92. package/dist/settings/index.es.js +27 -27
  93. package/dist/spending/index.es.js +33 -33
  94. package/dist/spending/index.es.js.map +1 -1
  95. package/dist/transactions/index.es.js +11 -11
  96. package/dist/trends/index.es.js +12 -12
  97. package/dist/{useAccountDisplayName-DHXXCFYZ.mjs → useAccountDisplayName-BsiXA0qf.mjs} +2 -2
  98. package/dist/{useAccountDisplayName-DHXXCFYZ.mjs.map → useAccountDisplayName-BsiXA0qf.mjs.map} +1 -1
  99. package/dist/{useInsightsEnabled-B_UpjpE6.mjs → useInsightsEnabled-D5Sdm0TJ.mjs} +2 -2
  100. package/dist/{useInsightsEnabled-B_UpjpE6.mjs.map → useInsightsEnabled-D5Sdm0TJ.mjs.map} +1 -1
  101. package/dist/{useWidgetLoadTimer-C0Mr0eRf.mjs → useWidgetLoadTimer-B0tB-yzL.mjs} +2 -2
  102. package/dist/{useWidgetLoadTimer-C0Mr0eRf.mjs.map → useWidgetLoadTimer-B0tB-yzL.mjs.map} +1 -1
  103. package/package.json +1 -1
  104. package/dist/ErrorBoundary-C7BlHx04.mjs +0 -27
  105. package/dist/ErrorBoundary-C7BlHx04.mjs.map +0 -1
  106. package/dist/GlobalCopyApi-DoJLovk7.mjs.map +0 -1
  107. package/dist/UserStore-B__9hQOS.mjs.map +0 -1
  108. package/dist/common/components/ErrorTestButtons.d.ts +0 -7
  109. package/dist/hooks-DWOrMnfZ.mjs +0 -83
  110. package/dist/hooks-DWOrMnfZ.mjs.map +0 -1
@@ -8,8 +8,8 @@ import { startOfToday as Q } from "date-fns/startOfToday";
8
8
  import { subDays as ee } from "date-fns/subDays";
9
9
  import Be from "@mui/material/Alert";
10
10
  import Fe from "@mui/material/Snackbar";
11
- import { R as De } from "../RecurringSettings-D2Aaqz7d.mjs";
12
- import { M as Jn } from "../RecurringSettings-D2Aaqz7d.mjs";
11
+ import { R as _e } from "../RecurringSettings-hs0YUp83.mjs";
12
+ import { M as Jn } from "../RecurringSettings-hs0YUp83.mjs";
13
13
  import { addMonths as Ue } from "date-fns/addMonths";
14
14
  import { subMonths as Ye } from "date-fns/subMonths";
15
15
  import { isBefore as je } from "date-fns/isBefore";
@@ -35,8 +35,8 @@ import { isSameDay as dt } from "date-fns/isSameDay";
35
35
  import ut from "@mui/material/Badge";
36
36
  import { PickersDay as mt } from "@mui/x-date-pickers/PickersDay";
37
37
  import { I as F } from "../IconBacking-DgT8DCeh.mjs";
38
- import { u as b, a as U, h as D, f as Y, E as Ie, g as re } from "../hooks-DWOrMnfZ.mjs";
39
- import { b as E, a as _, g as ye, e as pt, R as gt } from "../RecurringTransactionsUtil-CHWmqvW5.mjs";
38
+ import { u as b, a as U, h as _, f as Y, D as Ie, g as re } from "../hooks-97sNJ_lf.mjs";
39
+ import { b as E, a as D, g as ye, e as pt, R as gt } from "../RecurringTransactionsUtil-CHWmqvW5.mjs";
40
40
  import { f as I, D as M } from "../DateFormats-HudZ3Bjs.mjs";
41
41
  import { T as W } from "../Sizes-DISGrlUg.mjs";
42
42
  import { A as v } from "../Analytics-D-jdcL72.mjs";
@@ -52,16 +52,16 @@ import { f as L } from "../NumberFormatting--XMeeBfr.mjs";
52
52
  import N from "@mui/material/Box";
53
53
  import { u as ve } from "../useScreenSize-mWpmnh5w.mjs";
54
54
  import { S as Le } from "../StatusBar-CPfSXe80.mjs";
55
- import { d as Ct } from "../ManageIncome-BJWVPAly.mjs";
56
- import { c as er, M as tr, S as nr } from "../ManageIncome-BJWVPAly.mjs";
55
+ import { d as Ct } from "../ManageIncome-B_8i71mE.mjs";
56
+ import { c as er, M as tr, S as nr } from "../ManageIncome-B_8i71mE.mjs";
57
57
  import { D as ie } from "../Drawer-DsnW2o0v.mjs";
58
58
  import { S as Ae } from "../SkeletonLoader-BaNboJjD.mjs";
59
- import { u as oe } from "../useWidgetLoadTimer-C0Mr0eRf.mjs";
59
+ import { u as oe } from "../useWidgetLoadTimer-B0tB-yzL.mjs";
60
60
  import { L as ae } from "../Loader-CxeBwuPG.mjs";
61
- import { W as Rt } from "../WidgetContainer-5O6N88mr.mjs";
62
- import { M as Tt } from "../MiniWidgetContainer-CIswJui8.mjs";
63
- import { u as _t } from "../useDimensions-CeDR9V8N.mjs";
64
- import { M as Dt } from "../MicroWidgetContainer-IUZQlml1.mjs";
61
+ import { W as Rt } from "../WidgetContainer-CjdCY4sj.mjs";
62
+ import { M as Tt } from "../MiniWidgetContainer-Bmv_WeUd.mjs";
63
+ import { u as Dt } from "../useDimensions-CeDR9V8N.mjs";
64
+ import { M as _t } from "../MicroWidgetContainer-B2NnKBgW.mjs";
65
65
  const j = {
66
66
  gridRow: 1,
67
67
  gridColumn: 1,
@@ -106,17 +106,17 @@ const j = {
106
106
  }
107
107
  ), St = T(
108
108
  ({ day: t, outsideCurrentMonth: n, ...r }) => {
109
- const { recurring: i } = b(), { selectedAccountGuids: o } = U(), { recurrences: s, setSelectedDay: m } = D(), a = x.useMemo(
109
+ const { recurring: i } = b(), { selectedAccountGuids: o } = U(), { recurrences: s, setSelectedDay: m } = _(), a = x.useMemo(
110
110
  () => s.filter((f) => o.includes(f.accountGuid)),
111
111
  [o, s]
112
112
  ).filter(
113
113
  (f) => dt(f.occurredOnDate || f.expectedDate, t)
114
114
  ), l = a.some(
115
- (f) => f.type !== E.Income && f.status === _.Upcoming
115
+ (f) => f.type !== E.Income && f.status === D.Upcoming
116
116
  ), u = a.some(
117
- (f) => f.type !== E.Income && f.status === _.Missed
117
+ (f) => f.type !== E.Income && f.status === D.Missed
118
118
  ), g = a.some(
119
- (f) => f.type !== E.Income && f.status === _.Paid
119
+ (f) => f.type !== E.Income && f.status === D.Paid
120
120
  ), y = a.some((f) => f.type === E.Income), C = (l ? 1 : 0) + (u ? 1 : 0) + (g ? 1 : 0) + (y ? 1 : 0), S = [
121
121
  g && i.paid,
122
122
  u && i.missed,
@@ -195,7 +195,7 @@ const j = {
195
195
  [O.ES]: it
196
196
  }[t] || be;
197
197
  }, Ee = T(() => {
198
- const t = ne(), { onEvent: n } = Y(), { recurring: r } = b(), { selectedDay: i, setDateRange: o } = D(), [s, m] = x.useState(
198
+ const t = ne(), { onEvent: n } = Y(), { recurring: r } = b(), { selectedDay: i, setDateRange: o } = _(), [s, m] = x.useState(
199
199
  xe(/* @__PURE__ */ new Date()) * W + Re
200
200
  ), p = (u) => {
201
201
  m(xe(u) * W + Re), o({
@@ -274,16 +274,16 @@ const j = {
274
274
  if (t.type === E.Income)
275
275
  return /* @__PURE__ */ e(ce, {});
276
276
  switch (t.status) {
277
- case _.Missed:
277
+ case D.Missed:
278
278
  return /* @__PURE__ */ e(le, {});
279
- case _.Paid:
279
+ case D.Paid:
280
280
  return /* @__PURE__ */ e(de, {});
281
281
  default:
282
282
  return /* @__PURE__ */ e(se, {});
283
283
  }
284
284
  }, vt = (t, n) => {
285
285
  switch (t.status) {
286
- case _.Paid:
286
+ case D.Paid:
287
287
  return t.expectedDate ? G(
288
288
  n.paid_on,
289
289
  I(
@@ -291,12 +291,12 @@ const j = {
291
291
  M.MONTH_DAY
292
292
  )
293
293
  ) : n.paid;
294
- case _.Missed:
294
+ case D.Missed:
295
295
  return G(
296
296
  n.missed_on,
297
297
  I(t.expectedDate, M.MONTH_DAY)
298
298
  );
299
- case _.Upcoming:
299
+ case D.Upcoming:
300
300
  return G(
301
301
  n.upcoming_on,
302
302
  I(t.expectedDate, M.MONTH_DAY)
@@ -311,10 +311,10 @@ const j = {
311
311
  },
312
312
  showOrdinal: i = !1
313
313
  }) => {
314
- const { recurring: o } = b(), { detailedRepeatingTransactions: s } = D(), m = x.useMemo(
314
+ const { recurring: o } = b(), { detailedRepeatingTransactions: s } = _(), m = x.useMemo(
315
315
  () => s.find((C) => C.guid === t.repeatingTransactionGuid),
316
316
  [t, s]
317
- ), p = t.type === E.Income, a = t.status === _.Paid, l = t.status === _.Missed, u = t.status === _.Upcoming;
317
+ ), p = t.type === E.Income, a = t.status === D.Paid, l = t.status === D.Missed, u = t.status === D.Upcoming;
318
318
  let g = o.paid?.toLowerCase();
319
319
  return l ? g = o.missed?.toLowerCase() : u && (g = i ? ye(o, m || {}, !0) : ye(o, m || {}, !1)), //TODO: implement common/components/ListItemRow.tsx
320
320
  /* @__PURE__ */ e(Me, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ c(bt, { onClick: () => {
@@ -445,7 +445,7 @@ const j = {
445
445
  ] }, `recurrence-${l}`)) })
446
446
  ] });
447
447
  }
448
- ), _e = T(
448
+ ), De = T(
449
449
  ({ expected: t, isExpense: n = !0, missed: r, paid: i, title: o, total: s, upcoming: m }) => {
450
450
  const p = ne(), { isSmallMobile: a } = ve(), { recurring: l } = b(), u = x.useMemo(() => {
451
451
  const g = [{ color: p.palette.success.main, percentage: `${i / t}` }];
@@ -478,7 +478,7 @@ const j = {
478
478
  selectedRepeatingTransaction: r,
479
479
  setSelectedRecurrence: i,
480
480
  setSelectedRepeatingTransactionGuid: o
481
- } = D(), s = () => {
481
+ } = _(), s = () => {
482
482
  o(null), i(null);
483
483
  };
484
484
  return /* @__PURE__ */ e(
@@ -517,7 +517,7 @@ const j = {
517
517
  upcomingExpenseTotal: Ne,
518
518
  upcomingIncomeTotal: ke,
519
519
  upcomingRecurrences: me
520
- } = D(), [V, Oe] = x.useState(0), We = je(a.start, /* @__PURE__ */ new Date()), Pe = (R, $e) => {
520
+ } = _(), [V, Oe] = x.useState(0), We = je(a.start, /* @__PURE__ */ new Date()), Pe = (R, $e) => {
521
521
  Oe($e);
522
522
  }, pe = (R) => {
523
523
  ue(R.repeatingTransactionGuid), H(R), s(v.RECURRING_TRANSACTIONS_CLICK_UPCOMING, {
@@ -569,7 +569,7 @@ const j = {
569
569
  ] })
570
570
  ] }),
571
571
  /* @__PURE__ */ e(
572
- _e,
572
+ De,
573
573
  {
574
574
  expected: l,
575
575
  missed: g,
@@ -580,7 +580,7 @@ const j = {
580
580
  }
581
581
  ),
582
582
  /* @__PURE__ */ e(
583
- _e,
583
+ De,
584
584
  {
585
585
  expected: u,
586
586
  isExpense: !1,
@@ -650,7 +650,7 @@ const j = {
650
650
  );
651
651
  }), jn = T(
652
652
  ({ onBackClick: t, onMenuClick: n, sx: r = {} }) => {
653
- const { recurring: i } = b(), { isInitialized: o, selectedAccountGuids: s } = U(), { alert: m, isDataLoaded: p, loadRepeatingTransactionData: a, setAlert: l, setDateRange: u } = D(), { setFilter: g } = re(), { onEvent: y } = Y(), [C, S] = x.useState(!1);
653
+ const { recurring: i } = b(), { isInitialized: o, selectedAccountGuids: s } = U(), { alert: m, isDataLoaded: p, loadRepeatingTransactionData: a, setAlert: l, setDateRange: u } = _(), { setFilter: g } = re(), { onEvent: y } = Y(), [C, S] = x.useState(!1);
654
654
  return oe({
655
655
  widgetName: "RecurringTransactionsWidget",
656
656
  isLoaded: p
@@ -689,7 +689,7 @@ const j = {
689
689
  onClose: () => S(!1),
690
690
  shouldShowHeaderBorders: !1,
691
691
  title: i.action_title,
692
- children: /* @__PURE__ */ e(De, {})
692
+ children: /* @__PURE__ */ e(_e, {})
693
693
  }
694
694
  ),
695
695
  /* @__PURE__ */ e(
@@ -714,7 +714,7 @@ const j = {
714
714
  setSelectedRecurrence: s,
715
715
  setSelectedRepeatingTransactionGuid: m,
716
716
  upcomingRecurrences: p
717
- } = D(), a = (u) => {
717
+ } = _(), a = (u) => {
718
718
  m(u.repeatingTransactionGuid), s(u);
719
719
  }, l = n < 750;
720
720
  return /* @__PURE__ */ c(d, { flexDirection: l ? "column" : "row", width: "100%", children: [
@@ -737,7 +737,7 @@ const j = {
737
737
  ] });
738
738
  }), Kn = T(
739
739
  ({ onPrimaryCtaClick: t, sx: n }) => {
740
- const { recurring: r } = b(), { setFilter: i } = re(), { isDataLoaded: o, loadRepeatingTransactionData: s } = D(), { isInitialized: m, selectedAccountGuids: p } = U();
740
+ const { recurring: r } = b(), { setFilter: i } = re(), { isDataLoaded: o, loadRepeatingTransactionData: s } = _(), { isInitialized: m, selectedAccountGuids: p } = U();
741
741
  return oe({
742
742
  widgetName: "RecurringTransactionsMiniWidget",
743
743
  isLoaded: o
@@ -844,13 +844,13 @@ const j = {
844
844
  },
845
845
  `${r.categoryGuid}-${r.merchantGuid}-${i}`
846
846
  )) }), Ot = T(() => {
847
- const t = ne(), [n, { width: r }] = _t(), {
847
+ const t = ne(), [n, { width: r }] = Dt(), {
848
848
  upcomingRecurrences: i,
849
849
  expenseTotal: o,
850
850
  missedExpenseTotal: s,
851
851
  paidExpenseTotal: m,
852
852
  upcomingExpenseTotal: p
853
- } = D(), { recurring: a } = b(), l = r <= 288, u = r >= 450, g = 32, y = i.length > 0, C = x.useMemo(() => L(o, o === 0 ? "0,0" : "0,0.00"), [o]), S = x.useMemo(() => {
853
+ } = _(), { recurring: a } = b(), l = r <= 288, u = r >= 450, g = 32, y = i.length > 0, C = x.useMemo(() => L(o, o === 0 ? "0,0" : "0,0.00"), [o]), S = x.useMemo(() => {
854
854
  const w = [
855
855
  { color: t.palette.success.main, percentage: `${m / o}` }
856
856
  ];
@@ -951,7 +951,7 @@ const j = {
951
951
  repeatingTransactions: m,
952
952
  setDateRange: p,
953
953
  isDataLoaded: a
954
- } = D(), { setFilter: l } = re(), { recurring: u, budgets: g } = b();
954
+ } = _(), { setFilter: l } = re(), { recurring: u, budgets: g } = b();
955
955
  oe({
956
956
  widgetName: "RecurringTransactionsMicroWidget",
957
957
  isLoaded: a
@@ -975,7 +975,7 @@ const j = {
975
975
  if (!r || !a) return /* @__PURE__ */ e(ae, { height: 100 });
976
976
  const C = !m?.length;
977
977
  return /* @__PURE__ */ e(
978
- Dt,
978
+ _t,
979
979
  {
980
980
  className: "mx-recurring-transaction-microwidget",
981
981
  ctaLabel: C ? g.get_started_cta : u.primary_cta,
@@ -995,7 +995,7 @@ const j = {
995
995
  isOpen: t,
996
996
  onClose: n,
997
997
  title: i.cashflow_settings,
998
- children: /* @__PURE__ */ e(De, { defaultSelectedTab: r })
998
+ children: /* @__PURE__ */ e(_e, { defaultSelectedTab: r })
999
999
  }
1000
1000
  );
1001
1001
  }
@@ -1004,7 +1004,7 @@ export {
1004
1004
  er as AddRecurringTransactionDetails,
1005
1005
  Jn as ManageExpenses,
1006
1006
  tr as ManageIncome,
1007
- De as RecurringSettings,
1007
+ _e as RecurringSettings,
1008
1008
  qn as RecurringSettingsDrawer,
1009
1009
  Vn as RecurringTransactionsMicroWidget,
1010
1010
  Kn as RecurringTransactionsMiniWidget,
@@ -13,11 +13,11 @@ import { LocalizationProvider as ye } from "@mui/x-date-pickers/LocalizationProv
13
13
  import { useTheme as L, alpha as W } from "@mui/material/styles";
14
14
  import z from "@mui/material/Box";
15
15
  import Z from "@mui/material/Button";
16
- import A from "@mui/material/TextField";
16
+ import I from "@mui/material/TextField";
17
17
  import { H3 as Y, P as M, Text as x, Icon as B } from "@mxenabled/mxui";
18
- import { V as xe, a as ve, N as J } from "../NotificationSettings-DltXMrnb.mjs";
19
- import { A as Jt, B as Kt, I as Yt } from "../NotificationSettings-DltXMrnb.mjs";
20
- import { u as k, i as G, B as E, D as Ce, a as ee, l as j } from "../hooks-DWOrMnfZ.mjs";
18
+ import { V as xe, a as ve, N as J } from "../NotificationSettings-CW7okUrk.mjs";
19
+ import { A as Jt, B as Kt, I as Yt } from "../NotificationSettings-CW7okUrk.mjs";
20
+ import { u as k, i as G, A as E, C as Ce, a as ee, l as j } from "../hooks-97sNJ_lf.mjs";
21
21
  import { u as F } from "../useScreenSize-mWpmnh5w.mjs";
22
22
  import { D as $ } from "../Dialog-Bvd2n8hz.mjs";
23
23
  import { formatDistanceToNow as te } from "date-fns/formatDistanceToNow";
@@ -32,17 +32,17 @@ import Se from "@mui/material/AccordionSummary";
32
32
  import { L as ie } from "../Loader-CxeBwuPG.mjs";
33
33
  import Te from "@mui/material/List";
34
34
  import K from "@mui/material/Divider";
35
- import Ie from "@mui/material/ListSubheader";
36
- import { b as Ae, u as Ee } from "../CategorySelectorDrawer-k8AZYC8I.mjs";
35
+ import Ae from "@mui/material/ListSubheader";
36
+ import { b as Ie, u as Ee } from "../CategorySelectorDrawer-NJsFsKP1.mjs";
37
37
  import Pe from "@mui/material/ListItem";
38
38
  import Re from "@mui/material/ListItemButton";
39
39
  import Ne from "@mui/material/ListItemIcon";
40
40
  import Me from "@mui/material/ListItemText";
41
41
  import { ChevronRight as Le, ChevronLeft as Be } from "@mxenabled/mx-icons";
42
42
  import { D as He } from "../Drawer-DsnW2o0v.mjs";
43
- import { u as ne } from "../useWidgetLoadTimer-C0Mr0eRf.mjs";
44
- import { H as Oe } from "../Help-C3rQ0Cyu.mjs";
45
- import { W as q } from "../WidgetContainer-5O6N88mr.mjs";
43
+ import { u as ne } from "../useWidgetLoadTimer-B0tB-yzL.mjs";
44
+ import { H as Oe } from "../Help-zVZdcmlk.mjs";
45
+ import { W as q } from "../WidgetContainer-CjdCY4sj.mjs";
46
46
  const Fe = ({ availableWidth: t, handleOnLeavClick: r }) => {
47
47
  const i = L(), { common: o, settings: n } = k(), { isDesktop: u, isMobile: s, isSmallMobile: a, isTablet: l } = F(t), { config: b } = G(), { updateUser: _ } = E(), { user: d } = Ce(), [h, w] = m.useState({
48
48
  first_name: d.first_name,
@@ -52,7 +52,7 @@ const Fe = ({ availableWidth: t, handleOnLeavClick: r }) => {
52
52
  birthday: d.birthday,
53
53
  postal_code: d.postal_code,
54
54
  credit_score: d.credit_score
55
- }), [v, S] = m.useState(!1), [I, T] = m.useState(!1), g = m.useRef(null), D = h.email && !d.email_is_verified && !v, U = h.phone && !d.phone_is_verified && !v;
55
+ }), [v, S] = m.useState(!1), [A, T] = m.useState(!1), g = m.useRef(null), D = h.email && !d.email_is_verified && !v, U = h.phone && !d.phone_is_verified && !v;
56
56
  m.useEffect(() => {
57
57
  if (r) {
58
58
  const f = (R) => {
@@ -106,7 +106,7 @@ const Fe = ({ availableWidth: t, handleOnLeavClick: r }) => {
106
106
  sx: { mb: 44, pt: 32 },
107
107
  children: [
108
108
  /* @__PURE__ */ e(
109
- A,
109
+ I,
110
110
  {
111
111
  defaultValue: h.first_name,
112
112
  label: n.first_name,
@@ -114,7 +114,7 @@ const Fe = ({ availableWidth: t, handleOnLeavClick: r }) => {
114
114
  }
115
115
  ),
116
116
  /* @__PURE__ */ e(
117
- A,
117
+ I,
118
118
  {
119
119
  defaultValue: h.last_name,
120
120
  label: n.last_name,
@@ -127,7 +127,7 @@ const Fe = ({ availableWidth: t, handleOnLeavClick: r }) => {
127
127
  /* @__PURE__ */ c(p, { direction: s ? "column" : "row", children: [
128
128
  b.display_email_edit_field_in_settings && /* @__PURE__ */ c(p, { sx: { mb: D ? 20 : 44, mr: s ? 0 : 24 }, children: [
129
129
  /* @__PURE__ */ e(
130
- A,
130
+ I,
131
131
  {
132
132
  defaultValue: h.email,
133
133
  label: n.email_address,
@@ -138,7 +138,7 @@ const Fe = ({ availableWidth: t, handleOnLeavClick: r }) => {
138
138
  ] }),
139
139
  b.display_sms_edit_field_in_settings && /* @__PURE__ */ c(p, { sx: { mb: U ? 20 : 44 }, children: [
140
140
  /* @__PURE__ */ e(
141
- A,
141
+ I,
142
142
  {
143
143
  defaultValue: h.phone,
144
144
  label: n.mobile_number,
@@ -180,7 +180,7 @@ const Fe = ({ availableWidth: t, handleOnLeavClick: r }) => {
180
180
  }
181
181
  ) }),
182
182
  /* @__PURE__ */ e(
183
- A,
183
+ I,
184
184
  {
185
185
  defaultValue: h.postal_code,
186
186
  label: n.zip_code,
@@ -190,7 +190,7 @@ const Fe = ({ availableWidth: t, handleOnLeavClick: r }) => {
190
190
  ] }),
191
191
  /* @__PURE__ */ c(p, { children: [
192
192
  /* @__PURE__ */ e(
193
- A,
193
+ I,
194
194
  {
195
195
  defaultValue: h.credit_score,
196
196
  label: n.credit_score,
@@ -216,7 +216,7 @@ const Fe = ({ availableWidth: t, handleOnLeavClick: r }) => {
216
216
  $,
217
217
  {
218
218
  copy: { title: n.discard_changes },
219
- isOpen: I,
219
+ isOpen: A,
220
220
  onClose: ce,
221
221
  onSecondaryAction: le,
222
222
  primaryText: n.keep_editing,
@@ -472,7 +472,7 @@ const Ve = ({
472
472
  default:
473
473
  return "";
474
474
  }
475
- }, I = () => {
475
+ }, A = () => {
476
476
  const g = {
477
477
  "& .MuiDialogContent-root": {
478
478
  width: 400,
@@ -531,7 +531,7 @@ const Ve = ({
531
531
  primaryColor: t === y.Delete ? "error" : void 0,
532
532
  primaryText: S(),
533
533
  secondaryText: t === y.Token ? s.back : s.cancel_button,
534
- sx: I(),
534
+ sx: A(),
535
535
  children: [
536
536
  t === y.Token && /* @__PURE__ */ c(p, { spacing: 16, sx: { px: 40, textAlign: "center", width: "100%" }, children: [
537
537
  /* @__PURE__ */ e(x, { bold: !0, truncate: !1, variant: "body1", children: a.mobile_devices_access_label }),
@@ -550,7 +550,7 @@ const Ve = ({
550
550
  ),
551
551
  /* @__PURE__ */ e(x, { truncate: !1, variant: "body2", children: a.mobile_devices_access_info_2 })
552
552
  ] }),
553
- t === y.Edit && /* @__PURE__ */ e(p, { children: /* @__PURE__ */ e(A, { onChange: (g) => w(g.target.value), value: h }) }),
553
+ t === y.Edit && /* @__PURE__ */ e(p, { children: /* @__PURE__ */ e(I, { onChange: (g) => w(g.target.value), value: h }) }),
554
554
  t === y.Delete && /* @__PURE__ */ e(M, { children: a.mobile_devices_delete_info })
555
555
  ]
556
556
  }
@@ -565,7 +565,7 @@ const Ve = ({
565
565
  g ? (w(g), b({ open: !0, type: y.Token })) : n(r.mobile_devices_access_error, "error");
566
566
  }, S = (g) => {
567
567
  d(g), b({ open: !0, type: y.Edit });
568
- }, I = (g) => {
568
+ }, A = (g) => {
569
569
  d(g), b({ open: !0, type: y.Delete });
570
570
  }, T = () => {
571
571
  b({ open: !1, type: "" }), d(void 0);
@@ -587,14 +587,14 @@ const Ve = ({
587
587
  We,
588
588
  {
589
589
  devices: u,
590
- onClickDeviceDelete: I,
590
+ onClickDeviceDelete: A,
591
591
  onClickDeviceEdit: S
592
592
  }
593
593
  ) : /* @__PURE__ */ e(
594
594
  Ve,
595
595
  {
596
596
  devices: u,
597
- onClickDeviceDelete: I,
597
+ onClickDeviceDelete: A,
598
598
  onClickDeviceEdit: S
599
599
  }
600
600
  ),
@@ -642,7 +642,7 @@ const Ve = ({
642
642
  }
643
643
  ),
644
644
  /* @__PURE__ */ e(
645
- Ae,
645
+ Ie,
646
646
  {
647
647
  initialSelected: i?.category_guid ? i.category_guid : void 0,
648
648
  onClose: s,
@@ -682,7 +682,7 @@ const Ve = ({
682
682
  path: { fill: n.palette.secondary.darker }
683
683
  },
684
684
  children: /* @__PURE__ */ e(
685
- A,
685
+ I,
686
686
  {
687
687
  onChange: (h) => b(h.target.value),
688
688
  sx: { width: 352 },
@@ -726,7 +726,7 @@ const Ve = ({
726
726
  primaryText: o.delete_button,
727
727
  title: n.edit_rule,
728
728
  children: [
729
- /* @__PURE__ */ e(Ie, { children: /* @__PURE__ */ e(x, { bold: !0, variant: "caption", children: n.details }) }),
729
+ /* @__PURE__ */ e(Ae, { children: /* @__PURE__ */ e(x, { bold: !0, variant: "caption", children: n.details }) }),
730
730
  /* @__PURE__ */ e(Je, {}),
731
731
  /* @__PURE__ */ e(K, { sx: { ml: 24 } }),
732
732
  /* @__PURE__ */ e($e, {}),
@@ -830,7 +830,7 @@ const Wt = C(({ onBackClick: t, onMenuClick: r, sx: i }) => {
830
830
  { enabled: h, index: 2, label: o?.notifications_label },
831
831
  { enabled: w, index: 3, label: o?.transaction_rules_label },
832
832
  { enabled: v, index: 4, label: o?.help_label }
833
- ], I = S.find((D) => D.enabled), [T, g] = m.useState(I ? I.index : -1);
833
+ ], A = S.find((D) => D.enabled), [T, g] = m.useState(A ? A.index : -1);
834
834
  return !n || !u ? /* @__PURE__ */ e(ie, {}) : /* @__PURE__ */ e(
835
835
  q,
836
836
  {
@@ -8,19 +8,19 @@ import y from "@mui/material/Stack";
8
8
  import $ from "@mui/material/Tab";
9
9
  import rt from "@mui/material/Tabs";
10
10
  import { useTheme as _t } from "@mui/material/styles";
11
- import { g as st, a as lt, S as B, b as q } from "../SpendingLegend-C_dMdqbe.mjs";
11
+ import { g as st, a as lt, S as B, b as q } from "../SpendingLegend-CxvNOg3c.mjs";
12
12
  import { Text as T, Icon as bt } from "@mxenabled/mxui";
13
13
  import { f as k } from "../NumberFormatting--XMeeBfr.mjs";
14
- import { u as A, l as R, c as ct, a as P, i as H, g as dt, f as yt } from "../hooks-DWOrMnfZ.mjs";
15
- import { u as gt } from "../useWidgetLoadTimer-C0Mr0eRf.mjs";
14
+ import { u as A, l as R, c as ct, a as P, i as H, g as dt, f as yt } from "../hooks-97sNJ_lf.mjs";
15
+ import { u as gt } from "../useWidgetLoadTimer-B0tB-yzL.mjs";
16
16
  import { L as pt } from "../Loader-CxeBwuPG.mjs";
17
- import { M as Ct } from "../MiniWidgetContainer-CIswJui8.mjs";
17
+ import { M as Ct } from "../MiniWidgetContainer-Bmv_WeUd.mjs";
18
18
  import { startOfToday as J } from "date-fns/startOfToday";
19
19
  import St from "@mui/material/Button";
20
20
  import { useTheme as Tt } from "@mui/material";
21
21
  import { e as Mt } from "../TransactionUtils-BphBJBbU.mjs";
22
- import { T as Dt } from "../EmbeddedCard-BwfkCsUN.mjs";
23
- import { T as xt } from "../TransactionDetails-CDZNsKv7.mjs";
22
+ import { T as Dt } from "../EmbeddedCard-DCOQnTz-.mjs";
23
+ import { T as xt } from "../TransactionDetails-DT-MQqOB.mjs";
24
24
  import vt from "@mui/material/Collapse";
25
25
  import wt from "@mui/material/Divider";
26
26
  import Q from "@mui/material/List";
@@ -31,7 +31,7 @@ import { D as tt } from "../Drawer-DsnW2o0v.mjs";
31
31
  import { C as w } from "../Category-DEKZGLYe.mjs";
32
32
  import { parseISO as et } from "date-fns/parseISO";
33
33
  import { A as nt } from "../Analytics-D-jdcL72.mjs";
34
- import { W as It } from "../WidgetContainer-5O6N88mr.mjs";
34
+ import { W as It } from "../WidgetContainer-CjdCY4sj.mjs";
35
35
  const G = ({ amount: n, label: d, variant: o = "full" }) => /* @__PURE__ */ p(y, { direction: "column", children: [
36
36
  /* @__PURE__ */ t(T, { bold: !0, sx: { textTransform: "none" }, variant: "body1", children: d }),
37
37
  /* @__PURE__ */ t(T, { variant: "caption", children: k(n, o === "mini" ? "0,0" : "0,0.00") })
@@ -46,16 +46,16 @@ const G = ({ amount: n, label: d, variant: o = "full" }) => /* @__PURE__ */ p(y,
46
46
  n.palette.chartMono.chartMono6
47
47
  ],
48
48
  [n]
49
- ), [e, r] = c.useState(""), [s, b] = c.useState(0), u = c.useMemo(
49
+ ), [e, r] = c.useState(""), [s, f] = c.useState(0), u = c.useMemo(
50
50
  () => st(a, d, n, i),
51
51
  [a, i]
52
52
  ), h = c.useMemo(
53
53
  () => lt(a, i, g),
54
54
  [a, i, g]
55
- ), M = (_, D) => {
56
- b(D), r("");
57
- }, f = (_) => {
58
- r(e === _ ? "" : _);
55
+ ), M = (b, D) => {
56
+ f(D), r("");
57
+ }, _ = (b) => {
58
+ r(e === b ? "" : b);
59
59
  };
60
60
  return /* @__PURE__ */ p(L, { width: "100%", children: [
61
61
  /* @__PURE__ */ p(
@@ -114,12 +114,12 @@ const G = ({ amount: n, label: d, variant: o = "full" }) => /* @__PURE__ */ p(y,
114
114
  B,
115
115
  {
116
116
  data: u,
117
- onSelected: f,
117
+ onSelected: _,
118
118
  selectedId: e,
119
119
  totalLabel: o.total_spending
120
120
  }
121
121
  ),
122
- /* @__PURE__ */ t(q, { data: u, onSelected: f, selectedId: e })
122
+ /* @__PURE__ */ t(q, { data: u, onSelected: _, selectedId: e })
123
123
  ] })
124
124
  }
125
125
  ),
@@ -136,30 +136,30 @@ const G = ({ amount: n, label: d, variant: o = "full" }) => /* @__PURE__ */ p(y,
136
136
  {
137
137
  data: h,
138
138
  isIncome: !0,
139
- onSelected: f,
139
+ onSelected: _,
140
140
  selectedId: e,
141
141
  totalLabel: o.total_income
142
142
  }
143
143
  ),
144
- /* @__PURE__ */ t(q, { data: h, onSelected: f, selectedId: e })
144
+ /* @__PURE__ */ t(q, { data: h, onSelected: _, selectedId: e })
145
145
  ] })
146
146
  }
147
147
  )
148
148
  ] });
149
149
  }, Et = I(At), Wt = ({ onPrimaryCtaClick: n, sx: d = {} }) => {
150
- const { isAccountDataLoaded: o, loadAccountData: a } = ct(), { dateRangeTotalsLoaded: i, categoriesLoaded: g, loadCategories: e, loadDateRangeCategoryTotals: r } = R(), { spending: s } = A(), { isInitialized: b, selectedAccounts: u } = P();
150
+ const { isAccountDataLoaded: o, loadAccountData: a } = ct(), { dateRangeTotalsLoaded: i, categoriesLoaded: g, loadCategories: e, loadDateRangeCategoryTotals: r } = R(), { spending: s } = A(), { isInitialized: f, selectedAccounts: u } = P();
151
151
  return gt({
152
152
  widgetName: "SpendingMiniWidget",
153
153
  isLoaded: i
154
154
  }), c.useEffect(() => {
155
155
  o || a().finally(), g || e().finally();
156
156
  }, []), c.useEffect(() => {
157
- r(
157
+ !f || !o || r(
158
158
  u,
159
159
  at(/* @__PURE__ */ new Date()),
160
160
  it(/* @__PURE__ */ new Date())
161
161
  ).finally();
162
- }, [u]), b ? /* @__PURE__ */ t(
162
+ }, [f, o, u]), !f || !o || !i ? /* @__PURE__ */ t(pt, {}) : /* @__PURE__ */ t(
163
163
  Ct,
164
164
  {
165
165
  className: "mx-exp-spending-miniwidget",
@@ -170,7 +170,7 @@ const G = ({ amount: n, label: d, variant: o = "full" }) => /* @__PURE__ */ p(y,
170
170
  title: s.mini_title,
171
171
  children: /* @__PURE__ */ t(Et, {})
172
172
  }
173
- ) : /* @__PURE__ */ t(pt, {});
173
+ );
174
174
  }, Ce = I(Wt), Rt = ({
175
175
  data: n,
176
176
  onSelected: d,
@@ -322,12 +322,12 @@ const G = ({ amount: n, label: d, variant: o = "full" }) => /* @__PURE__ */ p(y,
322
322
  goals: g,
323
323
  spending: e,
324
324
  transactions: r
325
- } = A(), { displayedDateRange: s, selectedAccountGuids: b } = P(), {
325
+ } = A(), { displayedDateRange: s, selectedAccountGuids: f } = P(), {
326
326
  setFilter: u,
327
327
  sortedTransactions: h,
328
328
  sortedTransactionsWithSplits: M,
329
- tags: f
330
- } = dt(), _ = o?.master?.deep_link_params?.account_guids, D = o?.master?.deep_link_params?.view, [x, N] = c.useState(""), [v, C] = c.useState(D === "income" ? 1 : 0), [E, W] = c.useState(""), [O, j] = c.useState(!1), F = c.useMemo(
329
+ tags: _
330
+ } = dt(), b = o?.master?.deep_link_params?.account_guids, D = o?.master?.deep_link_params?.view, [x, N] = c.useState(""), [v, C] = c.useState(D === "income" ? 1 : 0), [E, W] = c.useState(""), [O, j] = c.useState(!1), F = c.useMemo(
331
331
  () => st(a, g, n, i),
332
332
  [a, i]
333
333
  ), K = c.useMemo(
@@ -343,7 +343,7 @@ const G = ({ amount: n, label: d, variant: o = "full" }) => /* @__PURE__ */ p(y,
343
343
  }, mt = (l) => {
344
344
  u({
345
345
  ...{
346
- accounts: _ || b,
346
+ accounts: b || f,
347
347
  dateRange: s
348
348
  },
349
349
  custom: (m) => x === "other" ? m.top_level_category_guid === l : m.category_guid === l,
@@ -351,7 +351,7 @@ const G = ({ amount: n, label: d, variant: o = "full" }) => /* @__PURE__ */ p(y,
351
351
  }), j(!0);
352
352
  }, Y = (l) => {
353
353
  const S = {
354
- accounts: _ || b,
354
+ accounts: b || f,
355
355
  dateRange: s
356
356
  };
357
357
  if (v === 0)
@@ -374,7 +374,7 @@ const G = ({ amount: n, label: d, variant: o = "full" }) => /* @__PURE__ */ p(y,
374
374
  });
375
375
  j(!0);
376
376
  }, ht = () => {
377
- Mt(M, f);
377
+ Mt(M, _);
378
378
  };
379
379
  return /* @__PURE__ */ p(L, { children: [
380
380
  /* @__PURE__ */ p(rt, { onChange: ut, value: v, variant: "fullWidth", children: [
@@ -456,24 +456,24 @@ const G = ({ amount: n, label: d, variant: o = "full" }) => /* @__PURE__ */ p(y,
456
456
  )
457
457
  ] });
458
458
  }, Bt = I($t), Gt = ({ onBackClick: n, onMenuClick: d, sx: o = {} }) => {
459
- const { isAccountDataLoaded: a, loadAccountData: i } = ct(), { categoriesLoaded: g, dateRangeTotalsLoaded: e, loadCategories: r, loadDateRangeCategoryTotals: s } = R(), { isTransactionDataLoaded: b, loadTransactionData: u } = dt(), { spending: h } = A(), { displayedDateRange: M, isInitialized: f, setDisplayedDate: _, selectedAccounts: D } = P(), { onEvent: x } = yt(), { clientConfig: N } = H();
459
+ const { isAccountDataLoaded: a, loadAccountData: i } = ct(), { categoriesLoaded: g, dateRangeTotalsLoaded: e, loadCategories: r, loadDateRangeCategoryTotals: s } = R(), { isTransactionDataLoaded: f, loadTransactionData: u } = dt(), { spending: h } = A(), { displayedDateRange: M, isInitialized: _, setDisplayedDate: b, selectedAccounts: D } = P(), { onEvent: x } = yt(), { clientConfig: N } = H();
460
460
  gt({
461
461
  widgetName: "SpendingWidget",
462
462
  isLoaded: e
463
463
  }), c.useEffect(() => {
464
464
  const C = N?.master?.deep_link_params, E = C?.date_range ? [et(C.date_range.from), et(C.date_range.to)] : [at(J()), it(J())], W = E[0], O = E[1];
465
- _(W, O), a || i().finally(), g || r().finally(), b || u().finally(), f && s(D, W, O).finally(), x(nt.SPENDING_VIEW);
465
+ b(W, O), a || i().finally(), g || r().finally(), f || u().finally(), _ && a && s(D, W, O).finally(), x(nt.SPENDING_VIEW);
466
466
  }, []), c.useEffect(() => {
467
- f && s(
467
+ _ && a && s(
468
468
  D,
469
469
  M.start,
470
470
  M.end
471
471
  ).finally();
472
- }, [M, f, D]);
472
+ }, [M, _, a, D]);
473
473
  const v = (C) => {
474
- _(C[0], C[1]);
474
+ b(C[0], C[1]);
475
475
  };
476
- return f ? /* @__PURE__ */ t(
476
+ return !_ || !a || !e ? /* @__PURE__ */ t(pt, {}) : /* @__PURE__ */ t(
477
477
  It,
478
478
  {
479
479
  calendarActions: { onRangeChanged: v },
@@ -484,7 +484,7 @@ const G = ({ amount: n, label: d, variant: o = "full" }) => /* @__PURE__ */ p(y,
484
484
  title: h.title,
485
485
  children: /* @__PURE__ */ t(L, { width: "100%", children: /* @__PURE__ */ t(Bt, {}) })
486
486
  }
487
- ) : /* @__PURE__ */ t(pt, {});
487
+ );
488
488
  }, Se = I(Gt);
489
489
  export {
490
490
  Ce as SpendingMiniWidget,