@mx-cartographer/experiences 9.0.3 → 9.1.0-alpha.bb1

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 (121) hide show
  1. package/CHANGELOG.md +0 -4
  2. package/dist/Analytics-BKzTPees.mjs +61 -0
  3. package/dist/GlobalCopyApi-BeXzaDH9.mjs +487 -0
  4. package/dist/HeaderCell-EhCUSjvj.mjs +10 -0
  5. package/dist/Loader-BlVzRtUd.mjs +73 -0
  6. package/dist/MiniWidgetContainer-COwnjfy7.mjs +110 -0
  7. package/dist/OriginalBalanceAction-sbiqaxok.mjs +110 -0
  8. package/dist/SpendingLegend-D15ixlQ1.mjs +222 -0
  9. package/dist/accounts/index.es.js +12 -1598
  10. package/dist/accounts-DkyAiLpg.mjs +15632 -0
  11. package/dist/analytics/index.es.js +155 -139
  12. package/dist/budgets/index.es.js +1317 -1266
  13. package/dist/cashflow/index.es.js +1047 -942
  14. package/dist/categories/index.es.js +4 -4
  15. package/dist/common/index.es.js +101 -310
  16. package/dist/core/index.es.js +80 -104
  17. package/dist/core-BexP5oiV.mjs +4047 -0
  18. package/dist/dashboard/index.es.js +185 -141
  19. package/dist/debts/index.es.js +1384 -1272
  20. package/dist/finstrong/index.es.js +3366 -3471
  21. package/dist/goals/index.es.js +1103 -984
  22. package/dist/help/index.es.js +3 -25
  23. package/dist/help-CctDYrAH.mjs +2308 -0
  24. package/dist/insights/index.es.js +93 -4843
  25. package/dist/investments/index.es.js +1533 -1522
  26. package/dist/merchants/index.es.js +75 -64
  27. package/dist/microinsights/index.es.js +15 -824
  28. package/dist/microinsights-CRf3ChsJ.mjs +1814 -0
  29. package/dist/networth/index.es.js +550 -503
  30. package/dist/notifications/index.es.js +169 -161
  31. package/dist/recurringtransactions/index.es.js +10 -962
  32. package/dist/recurringtransactions-gbJ_NA8u.mjs +1564 -0
  33. package/dist/settings/index.es.js +13 -880
  34. package/dist/settings-ZMHe439l.mjs +1526 -0
  35. package/dist/spending/index.es.js +400 -456
  36. package/dist/transactions/index.es.js +10 -603
  37. package/dist/trends/index.es.js +1268 -1407
  38. package/package.json +28 -28
  39. package/dist/Account-BaJmiJAG.mjs +0 -118
  40. package/dist/Account-BxHMlV9R.mjs +0 -30
  41. package/dist/AccountDetailsHeader-DIysk_4w.mjs +0 -95
  42. package/dist/AccountDisplayName-CO7z3v99.mjs +0 -11
  43. package/dist/AccountFields-mwJ8NXsX.mjs +0 -141
  44. package/dist/AccountListItem-BDXHs4tV.mjs +0 -94
  45. package/dist/AccountUtils-T5_Odvos.mjs +0 -27
  46. package/dist/Accounts-CseLC3lL.mjs +0 -5
  47. package/dist/Analytics-CkYXKvco.mjs +0 -53
  48. package/dist/Analytics-CzGzz_sE.mjs +0 -136
  49. package/dist/ApiEndpoints-DXwIYNUV.mjs +0 -49
  50. package/dist/BudgetUtil-Bg2AQJpQ.mjs +0 -74
  51. package/dist/Category-DEKZGLYe.mjs +0 -301
  52. package/dist/CategorySelectorDrawer-8soGrhB8.mjs +0 -430
  53. package/dist/Connect-Dk6GZEsA.mjs +0 -39
  54. package/dist/ConnectCard-CCep7Zqe.mjs +0 -54
  55. package/dist/ConnectDrawer-Cnjr3Ddg.mjs +0 -58
  56. package/dist/ConnectionsDrawer-CtfPXk0M.mjs +0 -54
  57. package/dist/CurrencyDialog-DumQCTPO.mjs +0 -373
  58. package/dist/CurrencyInput-adTIRtL3.mjs +0 -87
  59. package/dist/CurrencyText-CCbE6MmF.mjs +0 -20
  60. package/dist/DateFormats-HudZ3Bjs.mjs +0 -64
  61. package/dist/DateUtil-Bhq59ZVg.mjs +0 -58
  62. package/dist/DebtUtils-DD3186U-.mjs +0 -153
  63. package/dist/Dialog-Bvd2n8hz.mjs +0 -66
  64. package/dist/Donut-SzzfZDHF.mjs +0 -88
  65. package/dist/Drawer-BXqqBMxg.mjs +0 -174
  66. package/dist/EmbeddedCard-DPwJjqMH.mjs +0 -856
  67. package/dist/EmptyState-CJUDc3kD.mjs +0 -84
  68. package/dist/Error-Dogaw2jO.mjs +0 -84
  69. package/dist/ErrorBoundary-CsdOcnJ9.mjs +0 -23
  70. package/dist/ExportCsvAction-Bw02ZJEj.mjs +0 -24
  71. package/dist/GlobalAccountFilter-7Cg2-9A5.mjs +0 -237
  72. package/dist/GlobalCopyApi-wcnDUzMV.mjs +0 -128
  73. package/dist/GoalsUtil-C9EnLWvC.mjs +0 -107
  74. package/dist/HeaderCell-P8w6CmfO.mjs +0 -6
  75. package/dist/Help-CkQTjORd.mjs +0 -299
  76. package/dist/Help-DJ8PrVHX.mjs +0 -3209
  77. package/dist/IconBacking-DgT8DCeh.mjs +0 -39
  78. package/dist/InformationTooltip-4su8bn1e.mjs +0 -41
  79. package/dist/InvestmentUtil-BItV7uEs.mjs +0 -134
  80. package/dist/LineChart-CejWS_rh.mjs +0 -612
  81. package/dist/ListItemAction-CzZ8s39Z.mjs +0 -69
  82. package/dist/ListItemRow-kH1rn8Xu.mjs +0 -67
  83. package/dist/ListItemWrapper-B5r-YQQ_.mjs +0 -42
  84. package/dist/Loader-CxeBwuPG.mjs +0 -21
  85. package/dist/Localization-DnoVyBNK.mjs +0 -38
  86. package/dist/ManageIncome-D1yBODQi.mjs +0 -595
  87. package/dist/MicroWidgetContainer-CfKdQfhi.mjs +0 -45
  88. package/dist/MiniWidgetContainer-BdPiUU-u.mjs +0 -66
  89. package/dist/NetWorthUtils-DilGN1nW.mjs +0 -95
  90. package/dist/Notification-DTNYSd8P.mjs +0 -7
  91. package/dist/NotificationSettings-B4JA5IKE.mjs +0 -677
  92. package/dist/NotificationUtils-BRGFTePr.mjs +0 -23
  93. package/dist/NumberFormatting--XMeeBfr.mjs +0 -49
  94. package/dist/OriginalBalanceAction-BybTXDtO.mjs +0 -114
  95. package/dist/RecurringSettings-D2xbNb67.mjs +0 -88
  96. package/dist/RecurringTransactionsUtil-B3rLEx_g.mjs +0 -253
  97. package/dist/ResponsiveButton-CC9F_Ezk.mjs +0 -45
  98. package/dist/SearchBox-Cpgu_gdO.mjs +0 -50
  99. package/dist/Select-BFt-HD-L.mjs +0 -55
  100. package/dist/SelectionBox-B4xELRgp.mjs +0 -48
  101. package/dist/SingleSegmentDonut-7Uy6VEld.mjs +0 -69
  102. package/dist/Sizes-DISGrlUg.mjs +0 -6
  103. package/dist/SkeletonLoader-BaNboJjD.mjs +0 -38
  104. package/dist/SpendingData-Fii_xATx.mjs +0 -53
  105. package/dist/SpendingLegend-5Ct_FZ8o.mjs +0 -193
  106. package/dist/StatusBar-CPfSXe80.mjs +0 -30
  107. package/dist/TabContentContainer-CnMXkVqr.mjs +0 -21
  108. package/dist/ToggleListItem-Dl1lXNwj.mjs +0 -91
  109. package/dist/TransactionDetails-DctXr07p.mjs +0 -1714
  110. package/dist/TransactionUtils-BphBJBbU.mjs +0 -234
  111. package/dist/TrendsUtil-D9z3kIj_.mjs +0 -69
  112. package/dist/UserStore-CRpKQjpP.mjs +0 -3002
  113. package/dist/ViewMoreMicroCard-BD_MNc2z.mjs +0 -1295
  114. package/dist/WidgetContainer-CmbU4CBH.mjs +0 -482
  115. package/dist/hooks-BaO_gOI6.mjs +0 -77
  116. package/dist/useAccountDisplayName-CFa_MrS6.mjs +0 -15
  117. package/dist/useAriaLive-MkYebyUR.mjs +0 -35
  118. package/dist/useDimensions-CeDR9V8N.mjs +0 -36
  119. package/dist/useInsightsEnabled-DaNLPmUU.mjs +0 -11
  120. package/dist/useScreenSize-mWpmnh5w.mjs +0 -36
  121. package/dist/useWidgetLoadTimer-CJb-RELP.mjs +0 -19
@@ -1,964 +1,12 @@
1
- import { jsx as e, jsxs as s, Fragment as $ } from "react/jsx-runtime";
2
- import x from "react";
3
- import { observer as R } from "mobx-react-lite";
4
- import { endOfMonth as z } from "date-fns/endOfMonth";
5
- import { endOfToday as J } from "date-fns/endOfToday";
6
- import { startOfMonth as k } from "date-fns/startOfMonth";
7
- import { startOfToday as Q } from "date-fns/startOfToday";
8
- import { subDays as ee } from "date-fns/subDays";
9
- import { R as _e } from "../RecurringSettings-D2xbNb67.mjs";
10
- import { M as Un } from "../RecurringSettings-D2xbNb67.mjs";
11
- import { addMonths as ze } from "date-fns/addMonths";
12
- import { subMonths as He } from "date-fns/subMonths";
13
- import { isBefore as $e } from "date-fns/isBefore";
14
- import q from "@mui/material/Grid";
15
- import ge from "@mui/material/IconButton";
16
- import l from "@mui/material/Stack";
17
- import he from "@mui/material/Tab";
18
- import Be from "@mui/material/Tabs";
19
- import { Cancel as Te, CheckCircle as Se, Schedule as Fe, MonetizationOn as Ue, ChevronLeft as Ye, ChevronRight as je, CurrencyExchange as Ke } from "@mxenabled/mx-icons";
20
- import { Text as h, MerchantLogo as te, InstitutionLogo as Ve, H3 as qe, H2 as Ze, P as Z } from "@mxenabled/mxui";
21
- import { g as Xe, L as G, b as N } from "../Localization-DnoVyBNK.mjs";
22
- import { getWeeksInMonth as fe } from "date-fns/getWeeksInMonth";
23
- import { enCA as Je } from "date-fns/locale/en-CA";
24
- import { enUS as xe } from "date-fns/locale/en-US";
25
- import { es as Qe } from "date-fns/locale/es";
26
- import { fr as et } from "date-fns/locale/fr";
27
- import { frCA as tt } from "date-fns/locale/fr-CA";
28
- import { useTheme as ne } from "@mui/material/styles";
29
- import { AdapterDateFns as nt } from "@mui/x-date-pickers/AdapterDateFnsV3";
30
- import { DateCalendar as rt } from "@mui/x-date-pickers/DateCalendar";
31
- import { LocalizationProvider as it } from "@mui/x-date-pickers/LocalizationProvider";
32
- import { isSameDay as ot } from "date-fns/isSameDay";
33
- import at from "@mui/material/Badge";
34
- import { PickersDay as st } from "@mui/x-date-pickers/PickersDay";
35
- import { I as B } from "../IconBacking-DgT8DCeh.mjs";
36
- import { u as y, b as F, i as I, g as U, D as we, h as re } from "../hooks-BaO_gOI6.mjs";
37
- import { b as A, a as D, g as be, d as ct } from "../RecurringTransactionsUtil-B3rLEx_g.mjs";
38
- import { f as S, D as w } from "../DateFormats-HudZ3Bjs.mjs";
39
- import { T as W } from "../Sizes-DISGrlUg.mjs";
40
- import { A as L } from "../Analytics-CzGzz_sE.mjs";
41
- import lt from "@mui/material/Button";
42
- import X from "@mui/material/Divider";
43
- import Ce from "@mui/material/List";
44
- import Ie from "@mui/material/ListItem";
45
- import dt from "@mui/material/ListSubheader";
46
- import ut from "@mui/material/ListItemAvatar";
47
- import mt from "@mui/material/ListItemButton";
48
- import pt from "@mui/material/ListItemText";
49
- import { f as E } from "../NumberFormatting--XMeeBfr.mjs";
50
- import { d as gt } from "../ManageIncome-D1yBODQi.mjs";
51
- import { c as jn, M as Kn, S as Vn } from "../ManageIncome-D1yBODQi.mjs";
52
- import { D as ie } from "../Drawer-BXqqBMxg.mjs";
53
- import O from "@mui/material/Box";
54
- import { u as Me } from "../useScreenSize-mWpmnh5w.mjs";
55
- import { S as Le } from "../StatusBar-CPfSXe80.mjs";
56
- import { S as ve } from "../SkeletonLoader-BaNboJjD.mjs";
57
- import { u as oe } from "../useWidgetLoadTimer-CJb-RELP.mjs";
58
- import { L as ae } from "../Loader-CxeBwuPG.mjs";
59
- import { W as ht } from "../WidgetContainer-CmbU4CBH.mjs";
60
- import { M as ft } from "../MiniWidgetContainer-BdPiUU-u.mjs";
61
- import { u as xt } from "../useDimensions-CeDR9V8N.mjs";
62
- import { M as bt } from "../MicroWidgetContainer-CfKdQfhi.mjs";
63
- const Y = {
64
- gridRow: 1,
65
- gridColumn: 1,
66
- zIndex: 2
67
- }, j = (t) => t ? { margin: "0 0 -6px -4px" } : void 0, se = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(
68
- B,
69
- {
70
- backingSx: { backgroundColor: "background.paper" },
71
- size: n,
72
- sx: { ...j(t) },
73
- children: /* @__PURE__ */ e(Fe, { color: "primary", filled: !0, sx: { fontSize: n, ...Y } })
74
- }
75
- ), ce = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(
76
- B,
77
- {
78
- backingSx: { backgroundColor: "background.paper" },
79
- size: n,
80
- sx: { ...j(t) },
81
- children: /* @__PURE__ */ e(
82
- Ue,
83
- {
84
- filled: !0,
85
- sx: { color: "categories.income", fontSize: n, ...Y }
86
- }
87
- )
88
- }
89
- ), le = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(
90
- B,
91
- {
92
- backingSx: { backgroundColor: "background.paper" },
93
- size: n,
94
- sx: { ...j(t) },
95
- children: /* @__PURE__ */ e(Te, { color: "error", filled: !0, sx: { fontSize: n, ...Y } })
96
- }
97
- ), de = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(
98
- B,
99
- {
100
- backingSx: { backgroundColor: "background.paper" },
101
- size: n,
102
- sx: { ...j(t) },
103
- children: /* @__PURE__ */ e(Se, { color: "success", filled: !0, sx: { fontSize: n, ...Y } })
104
- }
105
- ), Ct = R(
106
- ({ day: t, outsideCurrentMonth: n, ...r }) => {
107
- const { recurring: i } = y(), { selectedAccountGuids: o } = F(), { recurrences: c, setSelectedDay: u } = I(), a = x.useMemo(
108
- () => c.filter((f) => o.includes(f.accountGuid)),
109
- [o, c]
110
- ).filter(
111
- (f) => ot(f.occurredOnDate || f.expectedDate, t)
112
- ), d = a.some(
113
- (f) => f.type !== A.Income && f.status === D.Upcoming
114
- ), m = a.some(
115
- (f) => f.type !== A.Income && f.status === D.Missed
116
- ), g = a.some(
117
- (f) => f.type !== A.Income && f.status === D.Paid
118
- ), b = a.some((f) => f.type === A.Income), C = (d ? 1 : 0) + (m ? 1 : 0) + (g ? 1 : 0) + (b ? 1 : 0), v = [
119
- g && i.paid,
120
- m && i.missed,
121
- d && i.upcoming,
122
- b && i.income
123
- ].filter(Boolean), M = v.length > 0 ? `${S(t, w.MONTH_DAY_YEAR)}, ${v.join(", ")}` : S(t, w.MONTH_DAY_YEAR);
124
- return /* @__PURE__ */ e(
125
- at,
126
- {
127
- badgeContent: a.length > 0 && /* @__PURE__ */ s($, { children: [
128
- m && /* @__PURE__ */ e(le, { isOffset: !0 }),
129
- g && /* @__PURE__ */ e(de, { isOffset: !0 }),
130
- d && /* @__PURE__ */ e(se, { isOffset: !0 }),
131
- b && /* @__PURE__ */ e(ce, { isOffset: !0 })
132
- ] }),
133
- overlap: "circular",
134
- sx: {
135
- "& .MuiBadge-badge": {
136
- padding: 0,
137
- marginRight: `${(C - 1) * 6 + 1}px`,
138
- flexWrap: "nowrap"
139
- }
140
- },
141
- children: /* @__PURE__ */ e(
142
- st,
143
- {
144
- "aria-label": M,
145
- day: t,
146
- onClick: () => u(t),
147
- outsideCurrentMonth: n,
148
- sx: {
149
- "&.MuiPickersDay-root": {
150
- ...n && {
151
- color: "text.disabled"
152
- }
153
- }
154
- },
155
- ...r
156
- }
157
- )
158
- }
159
- );
160
- }
161
- ), H = ({ icon: t, label: n }) => /* @__PURE__ */ s(l, { alignItems: "center", flexDirection: "row", sx: { gap: 6 }, children: [
162
- /* @__PURE__ */ e(t, {}),
163
- /* @__PURE__ */ e(h, { variant: "caption", children: n })
164
- ] }), yt = R(() => {
165
- const { recurring: t } = y();
166
- return /* @__PURE__ */ s(
167
- l,
168
- {
169
- alignItems: "center",
170
- "aria-hidden": !0,
171
- flexDirection: "row",
172
- gap: 16,
173
- justifyContent: "center",
174
- mt: 12,
175
- children: [
176
- /* @__PURE__ */ e(H, { icon: se, label: t.expense }),
177
- /* @__PURE__ */ e(H, { icon: ce, label: t.income }),
178
- /* @__PURE__ */ e(H, { icon: le, label: t.missed }),
179
- /* @__PURE__ */ e(H, { icon: de, label: t.paid })
180
- ]
181
- }
182
- );
183
- }), ye = 58, Rt = () => {
184
- const t = Xe();
185
- return {
186
- [G.EN_US]: xe,
187
- [G.EN_CA]: Je,
188
- [G.FR]: et,
189
- [G.FR_CA]: tt,
190
- [G.ES]: Qe
191
- }[t] || xe;
192
- }, Ae = R(() => {
193
- const t = ne(), { onEvent: n } = U(), { recurring: r } = y(), { selectedDay: i, setDateRange: o } = I(), [c, u] = x.useState(
194
- fe(/* @__PURE__ */ new Date()) * W + ye
195
- ), p = (m) => {
196
- u(fe(m) * W + ye), o({
197
- start: k(m),
198
- end: z(m)
199
- }), a(m), n(L.RECURRING_TRANSACTIONS_CLICK_CALENDAR_RIGHT);
200
- }, a = (m) => {
201
- m && requestAnimationFrame(() => {
202
- const g = document.getElementById("recurrence-list");
203
- g?.setAttribute("tabindex", "-1"), g?.focus();
204
- });
205
- }, d = /* @__PURE__ */ e(
206
- rt,
207
- {
208
- minDate: k(/* @__PURE__ */ new Date()),
209
- onChange: a,
210
- onMonthChange: p,
211
- showDaysOutsideCurrentMonth: !0,
212
- slots: {
213
- day: Ct
214
- },
215
- sx: {
216
- "& .MuiPickersArrowSwitcher-button": {
217
- color: "primary.main",
218
- "&:disabled": {
219
- color: "action.disabled"
220
- }
221
- },
222
- "& .MuiButtonBase-root.MuiPickersDay-root": {
223
- borderRadius: "4px",
224
- "&:focus, &:hover": {
225
- borderRadius: "4px"
226
- }
227
- },
228
- "& .MuiPickersCalendarHeader-root": {
229
- mt: 0,
230
- pl: 16,
231
- pr: 8
232
- },
233
- "& .MuiPickersCalendarHeader-label": {
234
- fontFamily: t.typography.body1.fontFamily,
235
- fontSize: t.typography.body1.fontSize,
236
- fontWeight: 600
237
- },
238
- "& .MuiDayCalendar-slideTransition": {
239
- minHeight: c
240
- },
241
- "&.MuiDateCalendar-root": {
242
- minHeight: c + W
243
- },
244
- "& .MuiButtonBase-root, .MuiDayCalendar-weekDayLabel": {
245
- height: W,
246
- width: W,
247
- margin: 0
248
- },
249
- "& .MuiDayCalendar-weekDayLabel": {
250
- fontFamily: t.typography.h3.fontFamily,
251
- fontSize: t.typography.body2.fontSize
252
- },
253
- "& .MuiPickersDay-dayOutsideMonth": {
254
- color: "text.secondary"
255
- },
256
- textTransform: "capitalize"
257
- },
258
- value: i,
259
- views: ["day"]
260
- }
261
- );
262
- return /* @__PURE__ */ e(l, { "aria-labelledby": "calendar-label", justifyContent: "center", role: "group", children: /* @__PURE__ */ s(it, { adapterLocale: Rt(), dateAdapter: nt, children: [
263
- i && d,
264
- !i && d,
265
- /* @__PURE__ */ e(h, { id: "calendar-label", sx: { alignSelf: "center" }, variant: "body2", children: r.calendar_tooltip }),
266
- /* @__PURE__ */ e(yt, {})
267
- ] }) });
268
- }), Dt = (t) => {
269
- if (t.type === A.Income)
270
- return /* @__PURE__ */ e(ce, {});
271
- switch (t.status) {
272
- case D.Missed:
273
- return /* @__PURE__ */ e(le, {});
274
- case D.Paid:
275
- return /* @__PURE__ */ e(de, {});
276
- default:
277
- return /* @__PURE__ */ e(se, {});
278
- }
279
- }, _t = (t, n) => {
280
- switch (t.status) {
281
- case D.Paid:
282
- return t.expectedDate ? N(
283
- n.paid_on,
284
- S(
285
- t.occurredOnDate || t.expectedDate,
286
- w.MONTH_DAY
287
- )
288
- ) : n.paid;
289
- case D.Missed:
290
- return N(
291
- n.missed_on,
292
- S(t.expectedDate, w.MONTH_DAY)
293
- );
294
- case D.Upcoming:
295
- return N(
296
- n.upcoming_on,
297
- S(t.expectedDate, w.MONTH_DAY)
298
- );
299
- default:
300
- return n.unknown;
301
- }
302
- }, Re = ({
303
- recurrence: t,
304
- isMini: n = !1,
305
- onRecurrenceClick: r = () => {
306
- },
307
- showOrdinal: i = !1
308
- }) => {
309
- const { recurring: o } = y(), { detailedRepeatingTransactions: c } = I(), [u, p] = x.useState(!1), a = x.useMemo(
310
- () => c.find((M) => M.guid === t.repeatingTransactionGuid),
311
- [t, c]
312
- ), d = t.type === A.Income, m = t.status === D.Paid, g = t.status === D.Missed, b = t.status === D.Upcoming;
313
- let C = o.paid?.toLowerCase();
314
- return g ? C = o.missed?.toLowerCase() : b && (C = i ? be(o, a || {}, !0) : be(o, a || {}, !1)), //TODO: implement common/components/ListItemRow.tsx
315
- /* @__PURE__ */ s(Ie, { disableGutters: !0, disablePadding: !0, children: [
316
- /* @__PURE__ */ s(mt, { onClick: () => {
317
- p(!0), r(t);
318
- }, children: [
319
- /* @__PURE__ */ e(ut, { children: /* @__PURE__ */ e(
320
- te,
321
- {
322
- categoryGuid: t.categoryGuid,
323
- merchantGuid: t.merchantGuid
324
- }
325
- ) }),
326
- /* @__PURE__ */ e(pt, { children: /* @__PURE__ */ s(
327
- l,
328
- {
329
- direction: "row",
330
- gap: 4,
331
- sx: { justifyContent: "space-between", textOverflow: "ellipsis", textWrap: "nowrap" },
332
- children: [
333
- /* @__PURE__ */ s(l, { direction: "column", width: "50%", children: [
334
- /* @__PURE__ */ e(h, { bold: !0, variant: "body1", children: t.name }),
335
- /* @__PURE__ */ e(l, { alignItems: "center", direction: "row", gap: 6, children: n ? /* @__PURE__ */ s(l, { direction: "row", gap: 4, children: [
336
- Dt(t),
337
- /* @__PURE__ */ e(h, { variant: "caption", children: _t(t, o) })
338
- ] }) : /* @__PURE__ */ s($, { children: [
339
- t.institutionGuid && /* @__PURE__ */ e(
340
- Ve,
341
- {
342
- alt: `${t.institutionName} institution logo`,
343
- institutionGuid: t.institutionGuid,
344
- size: 12
345
- }
346
- ),
347
- /* @__PURE__ */ e(h, { sx: { maxWidth: 250 }, variant: "caption", children: t.institutionName })
348
- ] }) })
349
- ] }),
350
- /* @__PURE__ */ s(l, { alignItems: "flex-end", width: "100%", children: [
351
- /* @__PURE__ */ s(h, { bold: !0, color: d ? "success.main" : "text.primary", variant: "body1", children: [
352
- d ? "+" : "",
353
- E(t.amount, "0,0.00")
354
- ] }),
355
- !n && /* @__PURE__ */ s(
356
- l,
357
- {
358
- direction: "row",
359
- sx: {
360
- alignItems: "center",
361
- gap: 6,
362
- justifyContent: "flex-end",
363
- textTransform: "uppercase",
364
- width: "100%"
365
- },
366
- children: [
367
- m && /* @__PURE__ */ e(Se, { color: "success", filled: !0, size: 12 }),
368
- g && /* @__PURE__ */ e(Te, { color: "error", filled: !0, size: 12 }),
369
- /* @__PURE__ */ e(h, { bold: !0, color: "text.secondary", variant: "caption", children: C })
370
- ]
371
- }
372
- )
373
- ] })
374
- ]
375
- }
376
- ) })
377
- ] }),
378
- /* @__PURE__ */ e(
379
- ie,
380
- {
381
- ariaLabelClose: o.close_drawer_aria,
382
- isOpen: u,
383
- onClose: () => p(!1),
384
- title: t.type === A.Income ? o.income_details : o.expense_details,
385
- children: a && /* @__PURE__ */ e(
386
- gt,
387
- {
388
- onDeleted: () => p(!1),
389
- recurringTransaction: a
390
- }
391
- )
392
- }
393
- )
394
- ] });
395
- }, P = R(
396
- ({
397
- recurrences: t,
398
- isMini: n = !1,
399
- onResetClick: r,
400
- onRecurrenceClick: i,
401
- sx: o = {},
402
- title: c
403
- }) => {
404
- const { recurring: u } = y(), p = x.useMemo(() => ct(t), [t]);
405
- return /* @__PURE__ */ s(l, { id: "recurrence-list", sx: { gap: 8, mt: 4, ...o }, "tab-index": -1, children: [
406
- c && /* @__PURE__ */ s(
407
- l,
408
- {
409
- sx: {
410
- alignItems: "center",
411
- flexDirection: "row",
412
- justifyContent: "space-between",
413
- px: 24
414
- },
415
- children: [
416
- /* @__PURE__ */ e(qe, { bold: !0, variant: "body1", children: c }),
417
- r && /* @__PURE__ */ e(lt, { onClick: r, size: "small", variant: "text", children: u.reset })
418
- ]
419
- }
420
- ),
421
- t.length === 0 ? /* @__PURE__ */ e(h, { fontStyle: "italic", sx: { py: 24, textAlign: "center" }, children: u.no_activities }) : /* @__PURE__ */ e(Ce, { children: n ? t.map((a, d) => /* @__PURE__ */ s(x.Fragment, { children: [
422
- /* @__PURE__ */ e(
423
- Re,
424
- {
425
- isMini: n,
426
- onRecurrenceClick: i,
427
- recurrence: a
428
- }
429
- ),
430
- /* @__PURE__ */ e(X, { sx: { mx: 24 } })
431
- ] }, `recurrence-${d}`)) : p.map((a, d) => /* @__PURE__ */ s(x.Fragment, { children: [
432
- /* @__PURE__ */ e(Ie, { children: /* @__PURE__ */ e(
433
- Ce,
434
- {
435
- subheader: /* @__PURE__ */ e(dt, { sx: { bgcolor: "background.paper", ml: 8, pb: 4, pt: 12 }, children: /* @__PURE__ */ e(h, { bold: !0, variant: "caption", children: S(a.date, w.DAY_OF_WEEK_MONTH_DAY) }) }),
436
- sx: { width: "100%" },
437
- children: a.recurrences.map((m, g) => /* @__PURE__ */ e(x.Fragment, { children: /* @__PURE__ */ e(
438
- Re,
439
- {
440
- isMini: n,
441
- onRecurrenceClick: i,
442
- recurrence: m
443
- }
444
- ) }, `day-recurrence-${g}`))
445
- }
446
- ) }, a.id),
447
- /* @__PURE__ */ e(X, { sx: { mx: 24 } })
448
- ] }, `recurrence-${d}`)) })
449
- ] });
450
- }
451
- ), De = R(
452
- ({ expected: t, isExpense: n = !0, missed: r, paid: i, title: o, total: c, upcoming: u }) => {
453
- const p = ne(), { isSmallMobile: a } = Me(), { recurring: d } = y(), m = x.useMemo(() => {
454
- const g = [{ color: p.palette.success.main, percentage: `${i / t}` }];
455
- return r && g.push({ color: p.palette.error.main, percentage: `${r / t}` }), g;
456
- }, [i, t, r]);
457
- return /* @__PURE__ */ s(l, { children: [
458
- /* @__PURE__ */ s(l, { sx: { flexDirection: "row", justifyContent: "space-between", pb: 12 }, children: [
459
- /* @__PURE__ */ e(h, { bold: !0, variant: "body1", children: `${o} (${c})` }),
460
- /* @__PURE__ */ e(h, { bold: !0, color: n ? "text.primary" : "success.main", variant: "body1", children: `${n ? "-" : "+"}${E(t, "0,0.00")}` })
461
- ] }),
462
- /* @__PURE__ */ e(Le, { data: m, height: 12 }),
463
- /* @__PURE__ */ s(l, { sx: { alignItems: "center", flexDirection: "row", gap: 2, my: 8 }, children: [
464
- /* @__PURE__ */ e(O, { sx: { bgcolor: "success.main", height: 8, mr: 8, width: 8 } }),
465
- !a && /* @__PURE__ */ e(h, { bold: !0, variant: "body2", children: E(i, "0,0.00") }),
466
- /* @__PURE__ */ e(h, { variant: "caption", children: d.paid?.toLowerCase() }),
467
- r !== void 0 && /* @__PURE__ */ s($, { children: [
468
- /* @__PURE__ */ e(O, { sx: { bgcolor: "error.main", height: 8, ml: 16, mr: 8, width: 8 } }),
469
- !a && /* @__PURE__ */ e(h, { bold: !0, variant: "body2", children: E(r, "0,0.00") }),
470
- /* @__PURE__ */ e(h, { variant: "caption", children: d.missed?.toLowerCase() })
471
- ] }),
472
- /* @__PURE__ */ e(O, { sx: { bgcolor: "divider", height: 8, ml: 16, mr: 8, width: 8 } }),
473
- !a && /* @__PURE__ */ e(h, { bold: !0, variant: "body2", children: E(u, "0,0.00") }),
474
- /* @__PURE__ */ e(h, { variant: "caption", children: d.upcoming?.toLowerCase() })
475
- ] })
476
- ] });
477
- }
478
- ), Tt = R(() => {
479
- const { recurring: t } = y(), { availableWidth: n } = we(), { isDesktop: r, isSmallMobile: i, isMobile: o } = Me(n), { onEvent: c } = U(), {
480
- currentMonthExpenses: u,
481
- currentMonthIncome: p,
482
- dateRange: a,
483
- expenseTotal: d,
484
- incomeTotal: m,
485
- missedExpenseTotal: g,
486
- pastRecurrences: b,
487
- paidExpenseTotal: C,
488
- paidIncomeTotal: v,
489
- selectedDay: M,
490
- selectedDayRecurrences: f,
491
- setDateRange: T,
492
- upcomingExpenseTotal: K,
493
- upcomingIncomeTotal: Ee,
494
- upcomingRecurrences: ue
495
- } = I(), [V, Ne] = x.useState(0), Oe = $e(a.start, /* @__PURE__ */ new Date()), ke = (_, Pe) => {
496
- Ne(Pe);
497
- }, me = (_) => {
498
- c(L.RECURRING_TRANSACTIONS_CLICK_UPCOMING, {
499
- transaction_guid: _.transaction?.guid
500
- });
501
- }, pe = (_) => {
502
- c(L.RECURRING_TRANSACTIONS_CLICK_PAID, {
503
- transaction_guid: _.transaction?.guid
504
- });
505
- }, Ge = () => {
506
- const _ = ze(a.start, 1);
507
- T({
508
- start: k(_),
509
- end: z(_)
510
- });
511
- }, We = () => {
512
- const _ = He(a.start, 1);
513
- T({
514
- start: k(_),
515
- end: z(_)
516
- });
517
- };
518
- return /* @__PURE__ */ s(
519
- q,
520
- {
521
- container: !0,
522
- sx: {
523
- pt: 16
524
- },
525
- children: [
526
- /* @__PURE__ */ s(q, { size: { sm: 12, md: "grow" }, width: "100%", children: [
527
- /* @__PURE__ */ s(l, { sx: { gap: 16, px: r ? 48 : 24 }, children: [
528
- /* @__PURE__ */ s(l, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
529
- /* @__PURE__ */ e(Ze, { variant: "h3", children: N(
530
- t.header_title,
531
- S(a.start, w.MONTH_LONG)
532
- ) }),
533
- !r && /* @__PURE__ */ s(l, { direction: "row", gap: 4, children: [
534
- /* @__PURE__ */ e(
535
- ge,
536
- {
537
- color: "primary",
538
- disabled: Oe,
539
- onClick: We,
540
- children: /* @__PURE__ */ e(Ye, {})
541
- }
542
- ),
543
- /* @__PURE__ */ e(ge, { color: "primary", onClick: Ge, children: /* @__PURE__ */ e(je, {}) })
544
- ] })
545
- ] }),
546
- /* @__PURE__ */ e(
547
- De,
548
- {
549
- expected: d,
550
- missed: g,
551
- paid: C,
552
- title: t.expenses,
553
- total: u.length,
554
- upcoming: K
555
- }
556
- ),
557
- /* @__PURE__ */ e(
558
- De,
559
- {
560
- expected: m,
561
- isExpense: !1,
562
- paid: v,
563
- title: t.deposits,
564
- total: p.length,
565
- upcoming: Ee
566
- }
567
- ),
568
- r && /* @__PURE__ */ e(
569
- P,
570
- {
571
- onRecurrenceClick: me,
572
- recurrences: ue,
573
- title: t.upcoming_activity
574
- }
575
- )
576
- ] }),
577
- !r && /* @__PURE__ */ s(l, { sx: { px: o ? 0 : 24 }, children: [
578
- /* @__PURE__ */ s(Be, { onChange: ke, value: V, variant: "fullWidth", children: [
579
- /* @__PURE__ */ e(
580
- he,
581
- {
582
- label: /* @__PURE__ */ e(h, { bold: !0, sx: { textTransform: "none" }, variant: "body1", children: i ? t.upcoming : t.upcoming_activity })
583
- }
584
- ),
585
- /* @__PURE__ */ e(
586
- he,
587
- {
588
- label: /* @__PURE__ */ e(h, { bold: !0, sx: { textTransform: "none" }, variant: "body1", children: i ? t.past : t.past_transactions })
589
- }
590
- )
591
- ] }),
592
- V === 0 && /* @__PURE__ */ e(
593
- P,
594
- {
595
- onRecurrenceClick: me,
596
- recurrences: ue
597
- }
598
- ),
599
- V === 1 && /* @__PURE__ */ e(
600
- P,
601
- {
602
- onRecurrenceClick: pe,
603
- recurrences: b
604
- }
605
- )
606
- ] })
607
- ] }),
608
- r && /* @__PURE__ */ e(q, { size: { xs: "auto" }, sx: { minWidth: 450 }, children: /* @__PURE__ */ s(l, { gap: 24, children: [
609
- /* @__PURE__ */ e(Ae, {}),
610
- /* @__PURE__ */ e(
611
- P,
612
- {
613
- onRecurrenceClick: pe,
614
- recurrences: f || b,
615
- title: M ? N(
616
- t.day_transactions,
617
- S(M, w.MONTH_DAY)
618
- ) : t.past_transactions
619
- }
620
- )
621
- ] }) })
622
- ]
623
- }
624
- );
625
- }), Pn = R(
626
- ({ onBackClick: t, onMenuClick: n, sx: r = {} }) => {
627
- const { recurring: i } = y(), { isInitialized: o, selectedAccountGuids: c } = F(), { isDataLoaded: u, loadRepeatingTransactionData: p, setDateRange: a } = I(), { setFilter: d } = re(), { onEvent: m } = U(), [g, b] = x.useState(!1);
628
- return oe({
629
- widgetName: "RecurringTransactionsWidget",
630
- isLoaded: u
631
- }), x.useEffect(() => {
632
- u || p().finally();
633
- }, []), x.useEffect(() => {
634
- d({
635
- dateRange: { start: ee(Q(), 90), end: J() },
636
- accounts: c
637
- }), a({ start: k(/* @__PURE__ */ new Date()), end: z(/* @__PURE__ */ new Date()) });
638
- }, [c]), o ? /* @__PURE__ */ s(
639
- ht,
640
- {
641
- actions: [
642
- {
643
- label: i.action_title,
644
- iconName: "credit_card_gear",
645
- onClick: () => {
646
- b(!0), m(L.RECURRING_TRANSACTIONS_CLICK_SETTINGS);
647
- }
648
- }
649
- ],
650
- hasDivider: !0,
651
- onAccountsFilterClick: () => m(L.RECURRING_TRANSACTIONS_CLICK_FILTER),
652
- onBackClick: t,
653
- onMenuClick: n,
654
- sx: r,
655
- title: i.title,
656
- children: [
657
- u ? /* @__PURE__ */ e(Tt, {}) : /* @__PURE__ */ e(ve, { sx: { m: 48 }, variant: "list" }),
658
- /* @__PURE__ */ e(
659
- ie,
660
- {
661
- ariaLabelClose: i.close_drawer_aria,
662
- isOpen: g,
663
- onClose: () => b(!1),
664
- shouldShowHeaderBorders: !1,
665
- title: i.action_title,
666
- children: /* @__PURE__ */ e(_e, {})
667
- }
668
- )
669
- ]
670
- }
671
- ) : /* @__PURE__ */ e(ae, {});
672
- }
673
- ), St = R(() => {
674
- const { recurring: t } = y(), { availableWidth: n } = we(), { selectedDay: r, selectedDayRecurrences: i, setSelectedDay: o, upcomingRecurrences: c } = I(), u = n < 750;
675
- return /* @__PURE__ */ s(l, { flexDirection: u ? "column" : "row", width: "100%", children: [
676
- /* @__PURE__ */ e(Ae, {}),
677
- !u && /* @__PURE__ */ e(X, { flexItem: !0, orientation: "vertical", sx: { my: 16, ml: 16 } }),
678
- /* @__PURE__ */ e(
679
- P,
680
- {
681
- isMini: !0,
682
- onResetClick: r ? () => o(r) : void 0,
683
- recurrences: i || c.slice(0, 5),
684
- sx: { width: u ? "100%" : "calc(100% - 336px)", mt: 12 },
685
- title: r ? N(
686
- t.day_transactions,
687
- S(r, w.MONTH_DAY)
688
- ) : t.upcoming_activity
689
- }
690
- )
691
- ] });
692
- }), zn = R(
693
- ({ onPrimaryCtaClick: t, sx: n }) => {
694
- const { recurring: r } = y(), { setFilter: i } = re(), { isDataLoaded: o, loadRepeatingTransactionData: c } = I(), { isInitialized: u, selectedAccountGuids: p } = F();
695
- return oe({
696
- widgetName: "RecurringTransactionsMiniWidget",
697
- isLoaded: o
698
- }), x.useEffect(() => {
699
- o || c().finally();
700
- }, []), x.useEffect(() => {
701
- p.length > 0 && i({
702
- dateRange: { start: ee(Q(), 90), end: J() },
703
- accounts: p
704
- });
705
- }, [p]), u ? /* @__PURE__ */ e(
706
- ft,
707
- {
708
- className: "mx-exp-recurring-transactions-miniwidget",
709
- onPrimaryCtaClick: t,
710
- primaryCtaLabel: r.primary_cta,
711
- primaryCtaLabelAria: r.primary_cta_aria,
712
- subTitle: r.sub_title,
713
- sx: n,
714
- title: r.mini_title,
715
- children: o ? /* @__PURE__ */ e(St, {}) : /* @__PURE__ */ e(ve, { sx: { mx: 16 }, variant: "list" })
716
- }
717
- ) : /* @__PURE__ */ e(ae, {});
718
- }
719
- ), wt = R(() => {
720
- const { recurring: t } = y();
721
- return /* @__PURE__ */ s(l, { sx: { alignItems: "start", flexDirection: "row", gap: 12 }, children: [
722
- /* @__PURE__ */ e(Ke, { size: 32 }),
723
- /* @__PURE__ */ s(l, { children: [
724
- /* @__PURE__ */ e(Z, { fontWeight: 600, variant: "body1", children: t.zero_state_content_header }),
725
- /* @__PURE__ */ e(Z, { color: "text.secondary", variant: "subtitle2", children: t.zero_state_content_description })
726
- ] })
727
- ] });
728
- }), It = ({
729
- amount: t,
730
- bgcolor: n,
731
- isLargeScreen: r,
732
- isSmallScreen: i,
733
- label: o
734
- }) => /* @__PURE__ */ s(l, { sx: { alignItems: "center", flexDirection: "row", gap: 8 }, children: [
735
- /* @__PURE__ */ e(
736
- O,
737
- {
738
- sx: {
739
- borderRadius: "2px",
740
- bgcolor: n,
741
- height: 8,
742
- width: 8
743
- }
744
- }
745
- ),
746
- /* @__PURE__ */ s(l, { sx: { alignItems: "center", flexDirection: "row", gap: 2 }, children: [
747
- !i && /* @__PURE__ */ e(h, { bold: !0, variant: "caption", children: E(t, t === 0 || !r ? "0,0" : "0,0.00") }),
748
- /* @__PURE__ */ e(h, { variant: "caption", children: o })
749
- ] })
750
- ] }), Mt = ({
751
- upcomingRecurrences: t,
752
- logoSize: n = 32,
753
- maxLogos: r = 3
754
- }) => {
755
- const i = (o) => o * (n / 2);
756
- return /* @__PURE__ */ e(
757
- O,
758
- {
759
- sx: {
760
- position: "relative",
761
- width: 64
762
- },
763
- children: t.map((o, c) => c < r ? /* @__PURE__ */ e(
764
- O,
765
- {
766
- sx: {
767
- borderRadius: "4px",
768
- left: i(c),
769
- outlineColor: "common.white",
770
- outlineStyle: "solid",
771
- outlineWidth: 2,
772
- position: "absolute"
773
- },
774
- children: /* @__PURE__ */ e(
775
- te,
776
- {
777
- categoryGuid: o.categoryGuid || "",
778
- merchantGuid: o.merchantGuid || "",
779
- size: n
780
- }
781
- )
782
- },
783
- `${o.categoryGuid}-${o.merchantGuid}-${c}`
784
- ) : null)
785
- }
786
- );
787
- }, Lt = ({
788
- upcomingRecurrences: t,
789
- maxLogos: n = 3
790
- }) => /* @__PURE__ */ e(l, { sx: { flexDirection: "row", gap: 4 }, children: t?.slice(0, n).map((r, i) => /* @__PURE__ */ e(
791
- te,
792
- {
793
- categoryGuid: r.categoryGuid || "",
794
- merchantGuid: r.merchantGuid || ""
795
- },
796
- `${r.categoryGuid}-${r.merchantGuid}-${i}`
797
- )) }), vt = R(() => {
798
- const t = ne(), [n, { width: r }] = xt(), {
799
- upcomingRecurrences: i,
800
- expenseTotal: o,
801
- missedExpenseTotal: c,
802
- paidExpenseTotal: u,
803
- upcomingExpenseTotal: p
804
- } = I(), { recurring: a } = y(), d = r <= 288, m = r >= 450, g = 32, b = i.length > 0, C = x.useMemo(() => E(o, o === 0 ? "0,0" : "0,0.00"), [o]), v = x.useMemo(() => {
805
- const T = [
806
- { color: t.palette.success.main, percentage: `${u / o}` }
807
- ];
808
- return c && T.push({
809
- color: t.palette.error.main,
810
- percentage: `${c / o}`
811
- }), T;
812
- }, [
813
- u,
814
- o,
815
- c,
816
- t.palette.success.main,
817
- t.palette.error.main
818
- ]), M = () => b ? d ? /* @__PURE__ */ e(
819
- Mt,
820
- {
821
- logoSize: g,
822
- maxLogos: 3,
823
- upcomingRecurrences: i.slice(0, 3)
824
- }
825
- ) : /* @__PURE__ */ e(Lt, { maxLogos: 3, upcomingRecurrences: i.slice(0, 3) }) : /* @__PURE__ */ e(l, { sx: { width: d ? 64 : 104 } }), f = [
826
- {
827
- amount: u,
828
- bgColor: "success.main",
829
- label: a.paid
830
- },
831
- {
832
- amount: c,
833
- bgColor: "error.main",
834
- label: a.missed
835
- },
836
- {
837
- amount: p,
838
- bgColor: "neutral.light",
839
- label: a.upcoming
840
- }
841
- ];
842
- return /* @__PURE__ */ s($, { children: [
843
- /* @__PURE__ */ s(l, { ref: n, sx: { flexDirection: "row", justifyContent: "space-between" }, children: [
844
- /* @__PURE__ */ s(
845
- l,
846
- {
847
- sx: [
848
- C.length >= 10 && d ? { flexDirection: "column" } : { flexDirection: "row", gap: 2 },
849
- {
850
- alignItems: "baseline",
851
- overflow: "hidden",
852
- textOverflow: "ellipsis",
853
- whiteSpace: "nowrap"
854
- }
855
- ],
856
- children: [
857
- /* @__PURE__ */ e(
858
- h,
859
- {
860
- sx: { width: "100%" },
861
- variant: C.length >= 10 && d ? "h3" : "h2",
862
- children: C
863
- }
864
- ),
865
- /* @__PURE__ */ e(Z, { sx: { pr: 12 }, variant: "caption", children: a.expected })
866
- ]
867
- }
868
- ),
869
- M()
870
- ] }),
871
- /* @__PURE__ */ s(l, { sx: { pt: 12 }, children: [
872
- /* @__PURE__ */ e(Le, { data: v }),
873
- /* @__PURE__ */ e(
874
- l,
875
- {
876
- sx: {
877
- alignItems: "center",
878
- flexDirection: "row",
879
- gap: 16,
880
- mt: 4
881
- },
882
- children: f.map((T, K) => /* @__PURE__ */ e(
883
- It,
884
- {
885
- amount: T.amount,
886
- bgcolor: T.bgColor,
887
- isLargeScreen: m,
888
- isSmallScreen: d,
889
- label: T.label
890
- },
891
- `recurrence-legend-${K}`
892
- ))
893
- }
894
- )
895
- ] })
896
- ] });
897
- }), Hn = R(
898
- ({ onCTAClick: t }) => {
899
- const { onEvent: n } = U(), { isInitialized: r, selectedAccountGuids: i } = F(), {
900
- loadRepeatingTransactionData: o,
901
- upcomingRecurrences: c,
902
- repeatingTransactions: u,
903
- setDateRange: p,
904
- isDataLoaded: a
905
- } = I(), { setFilter: d } = re(), { recurring: m, budgets: g } = y();
906
- oe({
907
- widgetName: "RecurringTransactionsMicroWidget",
908
- isLoaded: a
909
- }), x.useEffect(() => {
910
- a || o().finally(() => {
911
- n(L.RECURRING_TRANSACTIONS_LOAD_WIDGET, {
912
- state: c.length > 0 ? "default" : "zeroState"
913
- });
914
- });
915
- }, []), x.useEffect(() => {
916
- r && (d({
917
- dateRange: { start: ee(Q(), 90), end: J() },
918
- accounts: i
919
- }), p({ start: k(/* @__PURE__ */ new Date()), end: z(/* @__PURE__ */ new Date()) }));
920
- }, [r, i]);
921
- const b = () => {
922
- n(
923
- c.length > 0 ? L.RECURRING_TRANSACTIONS_CLICK_GET_STARTED : L.RECURRING_TRANSACTIONS_CLICK_VIEW_ALL
924
- ), t();
925
- };
926
- if (!r || !a) return /* @__PURE__ */ e(ae, { height: 100 });
927
- const C = !u?.length;
928
- return /* @__PURE__ */ e(
929
- bt,
930
- {
931
- className: "mx-recurring-transaction-microwidget",
932
- ctaLabel: C ? g.get_started_cta : m.primary_cta,
933
- onCTAClick: b,
934
- title: m.recurring_expenses,
935
- children: C ? /* @__PURE__ */ e(wt, {}) : /* @__PURE__ */ e(vt, {})
936
- }
937
- );
938
- }
939
- ), $n = R(
940
- ({ isOpen: t, onClose: n, selectedTab: r }) => {
941
- const { cashflow: i } = y();
942
- return /* @__PURE__ */ e(
943
- ie,
944
- {
945
- ariaLabelClose: i.close_settings_aria,
946
- isOpen: t,
947
- onClose: n,
948
- title: i.cashflow_settings,
949
- children: /* @__PURE__ */ e(_e, { defaultSelectedTab: r })
950
- }
951
- );
952
- }
953
- );
1
+ import { a as n, d as r, i as s, n as i, o as e, r as t, s as c, t as g, u as o } from "../recurringtransactions-gbJ_NA8u.mjs";
954
2
  export {
955
- jn as AddRecurringTransactionDetails,
956
- Un as ManageExpenses,
957
- Kn as ManageIncome,
958
- _e as RecurringSettings,
959
- $n as RecurringSettingsDrawer,
960
- Hn as RecurringTransactionsMicroWidget,
961
- zn as RecurringTransactionsMiniWidget,
962
- Pn as RecurringTransactionsWidget,
963
- Vn as SelectTransaction
3
+ o as AddRecurringTransactionDetails,
4
+ c as ManageExpenses,
5
+ e as ManageIncome,
6
+ n as RecurringSettings,
7
+ g as RecurringSettingsDrawer,
8
+ i as RecurringTransactionsMicroWidget,
9
+ t as RecurringTransactionsMiniWidget,
10
+ s as RecurringTransactionsWidget,
11
+ r as SelectTransaction
964
12
  };