@mx-cartographer/experiences 7.0.37-alpha-recurring-transactions-divider-padding-ram3 → 7.0.37-alpha-testing-mr-ram1

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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## [7.0.38] - 10-03-2025
2
+
3
+ - **FIXED** - Fixed footer for Manage Expenses/Income
4
+
1
5
  ## [7.0.37] - 10-02-2025
2
6
 
3
7
  - **UPDATED** - Account Filter empty state to optionally suppress 'connect accounts' prompts
@@ -3,24 +3,24 @@ import u from "react";
3
3
  import { observer as A } from "mobx-react-lite";
4
4
  import P from "@mui/material/Box";
5
5
  import T from "@mui/material/Divider";
6
- import K from "@mui/material/List";
7
- import p from "@mui/material/Stack";
8
- import re from "@mui/material/ListItem";
9
- import ae from "@mui/material/ListItemAvatar";
10
- import ie from "@mui/material/ListItemButton";
11
- import se from "@mui/material/ListItemText";
12
- import { MerchantLogo as Q, Text as x, H1 as ce, InstitutionLogo as le, P as U } from "@mxenabled/mxui";
13
- import { F as d, S as N, D as Y, g as $, R as E, e as de } from "./RepeatingTransaction-BW4J-jeJ.mjs";
6
+ import j from "@mui/material/List";
7
+ import y from "@mui/material/Stack";
8
+ import { MerchantLogo as H, Text as S, H1 as re, InstitutionLogo as ae, P as U } from "@mxenabled/mxui";
9
+ import ie from "@mui/material/ListItem";
10
+ import se from "@mui/material/ListItemAvatar";
11
+ import ce from "@mui/material/ListItemButton";
12
+ import le from "@mui/material/ListItemText";
13
+ import { F as d, S as N, D as Y, g as Q, R as E, e as de } from "./RepeatingTransaction-BW4J-jeJ.mjs";
14
14
  import { subDays as ue } from "date-fns/subDays";
15
15
  import { startOfToday as z } from "date-fns/startOfToday";
16
16
  import { endOfMonth as _e } from "date-fns/endOfMonth";
17
- import H from "@mui/material/Button";
18
- import { Delete as me, Add as ye, ReceiptLong as pe } from "@mxenabled/mx-icons";
17
+ import $ from "@mui/material/Button";
18
+ import { Delete as me, Add as pe, ReceiptLong as ye } from "@mxenabled/mx-icons";
19
19
  import { T as X, a as he, u as ge, S as fe, b as Ce } from "./TransactionDetails-C-2UEbmQ.mjs";
20
20
  import { getDayOfYear as be } from "date-fns/getDayOfYear";
21
- import { setDayOfYear as Se } from "date-fns/setDayOfYear";
22
- import { AdapterDateFns as ve } from "@mui/x-date-pickers/AdapterDateFnsV3";
23
- import { DatePicker as xe } from "@mui/x-date-pickers";
21
+ import { setDayOfYear as xe } from "date-fns/setDayOfYear";
22
+ import { AdapterDateFns as Se } from "@mui/x-date-pickers/AdapterDateFnsV3";
23
+ import { DatePicker as ve } from "@mui/x-date-pickers";
24
24
  import { LocalizationProvider as we } from "@mui/x-date-pickers/LocalizationProvider";
25
25
  import { u as w, i as M, f as F, a as Ae, g as Z, o as De } from "./hooks-BAAimqdq.mjs";
26
26
  import { b as Ie, f as J } from "./NumberFormatting-CtWHhyBX.mjs";
@@ -61,15 +61,15 @@ const ee = ({
61
61
  { id: 4, label: o.weekday_thursday },
62
62
  { id: 5, label: o.weekday_friday },
63
63
  { id: 6, label: o.weekday_saturday }
64
- ], h = [...Array(31).keys()].map((y) => ({
65
- id: y + 1,
66
- label: Ie(y + 1)
64
+ ], h = [...Array(31).keys()].map((p) => ({
65
+ id: p + 1,
66
+ label: Ie(p + 1)
67
67
  }));
68
68
  h[30].label += ` (${o.last_day_of_month})`;
69
- const C = h.slice(0, 15), v = h.slice(14), b = n === d.EveryWeek || n === d.EveryOtherWeek, g = n === d.TwiceAMonth || n === d.EveryMonth || n === d.EveryOtherMonth || n === d.EveryQuarter || n === d.EveryOtherQuarter, D = Se(z(), t), f = (y) => {
70
- y && s(be(y));
69
+ const C = h.slice(0, 15), v = h.slice(14), b = n === d.EveryWeek || n === d.EveryOtherWeek, g = n === d.TwiceAMonth || n === d.EveryMonth || n === d.EveryOtherMonth || n === d.EveryQuarter || n === d.EveryOtherQuarter, D = xe(z(), t), f = (p) => {
70
+ p && s(be(p));
71
71
  };
72
- return /* @__PURE__ */ c(p, { gap: 24, sx: { m: 24 }, children: [
72
+ return /* @__PURE__ */ c(y, { gap: 24, sx: { m: 24 }, children: [
73
73
  /* @__PURE__ */ e(
74
74
  N,
75
75
  {
@@ -106,8 +106,8 @@ const ee = ({
106
106
  value: r || 0
107
107
  }
108
108
  ),
109
- n === d.EveryYear && /* @__PURE__ */ e(we, { dateAdapter: ve, children: /* @__PURE__ */ e(
110
- xe,
109
+ n === d.EveryYear && /* @__PURE__ */ e(we, { dateAdapter: Se, children: /* @__PURE__ */ e(
110
+ ve,
111
111
  {
112
112
  disablePast: !0,
113
113
  label: o.next_payment_date,
@@ -134,7 +134,7 @@ const ee = ({
134
134
  iconName: "sync",
135
135
  label: t.activity_schedule,
136
136
  onClick: g,
137
- value: `${$(t, n, !0)}`
137
+ value: `${Q(t, n, !0)}`
138
138
  }
139
139
  ),
140
140
  /* @__PURE__ */ e(
@@ -172,15 +172,15 @@ const ee = ({
172
172
  const f = u.useMemo(
173
173
  () => i.find((_) => _.guid === g),
174
174
  [g, i]
175
- ), y = t.repeating_transaction_type === E.Income, k = async () => {
175
+ ), p = t.repeating_transaction_type === E.Income, k = async () => {
176
176
  await l(t.guid), n();
177
177
  }, G = () => {
178
178
  b(!0), s(R.RECURRING_TRANSACTIONS_DETAILS_CLICK_DELETE);
179
179
  };
180
- return /* @__PURE__ */ c(p, { bgcolor: "background.default", direction: "column", height: "100%", children: [
181
- /* @__PURE__ */ c(p, { direction: "column", m: 24, children: [
180
+ return /* @__PURE__ */ c(y, { bgcolor: "background.default", direction: "column", height: "100%", children: [
181
+ /* @__PURE__ */ c(y, { direction: "column", m: 24, children: [
182
182
  /* @__PURE__ */ e(
183
- Q,
183
+ H,
184
184
  {
185
185
  categoryGuid: f?.category_guid || "",
186
186
  merchantGuid: C,
@@ -188,17 +188,17 @@ const ee = ({
188
188
  sx: { mb: 12 }
189
189
  }
190
190
  ),
191
- /* @__PURE__ */ e(x, { bold: !0, variant: "body1", children: h }),
192
- /* @__PURE__ */ c(ce, { color: y ? "success.main" : "text.primary", sx: { my: 4 }, children: [
193
- y ? "+" : "",
191
+ /* @__PURE__ */ e(S, { bold: !0, variant: "body1", children: h }),
192
+ /* @__PURE__ */ c(re, { color: p ? "success.main" : "text.primary", sx: { my: 4 }, children: [
193
+ p ? "+" : "",
194
194
  J(m, "0,0.00")
195
195
  ] }),
196
- /* @__PURE__ */ e(x, { color: "text.secondary", variant: "body2", children: `${r.next_payment_date}: ${Ee(
196
+ /* @__PURE__ */ e(S, { color: "text.secondary", variant: "body2", children: `${r.next_payment_date}: ${Ee(
197
197
  t.predicted_occurs_on,
198
198
  Re.MONTH_DAY_YEAR
199
199
  )}` })
200
200
  ] }),
201
- /* @__PURE__ */ c(K, { sx: { bgcolor: "background.paper" }, children: [
201
+ /* @__PURE__ */ c(j, { sx: { bgcolor: "background.paper" }, children: [
202
202
  t.account && /* @__PURE__ */ c(L, { children: [
203
203
  /* @__PURE__ */ e(
204
204
  Y,
@@ -225,17 +225,17 @@ const ee = ({
225
225
  /* @__PURE__ */ e(T, {})
226
226
  ] }),
227
227
  /* @__PURE__ */ e(
228
- H,
228
+ $,
229
229
  {
230
230
  color: "error",
231
231
  onClick: G,
232
232
  startIcon: /* @__PURE__ */ e(me, {}),
233
233
  sx: { mx: 24, my: 16 },
234
234
  variant: "text",
235
- children: y ? r.delete_income_title : r.delete_expense_title
235
+ children: p ? r.delete_income_title : r.delete_expense_title
236
236
  }
237
237
  ),
238
- /* @__PURE__ */ e(x, { bold: !0, sx: { ml: 24, mt: 16 }, variant: "Body", children: r.paid_transactions }),
238
+ /* @__PURE__ */ e(S, { bold: !0, sx: { ml: 24, mt: 16 }, variant: "Body", children: r.paid_transactions }),
239
239
  /* @__PURE__ */ e(X, { height: "30dvh", onClick: D }),
240
240
  /* @__PURE__ */ e(
241
241
  O,
@@ -251,13 +251,13 @@ const ee = ({
251
251
  Te,
252
252
  {
253
253
  copy: {
254
- title: y ? r.delete_income_title : r.delete_expense_title,
254
+ title: p ? r.delete_income_title : r.delete_expense_title,
255
255
  close_aria: r.close_drawer_aria
256
256
  },
257
257
  isOpen: v,
258
258
  onClose: () => b(!1),
259
259
  onPrimaryAction: k,
260
- children: /* @__PURE__ */ e(x, { children: y ? r.delete_income_description : r.delete_expense_description })
260
+ children: /* @__PURE__ */ e(S, { children: p ? r.delete_income_description : r.delete_expense_description })
261
261
  }
262
262
  )
263
263
  ] });
@@ -268,36 +268,36 @@ const ee = ({
268
268
  const { recurring: r } = w(), [a, s] = u.useState(!1), l = u.useMemo(
269
269
  () => t.transactions.length === 0 ? "" : t.transactions[0].category_guid || "",
270
270
  [t]
271
- ), o = t.account?.institutionName || "", i = t.repeating_transaction_type === E.Income, m = $(r, t, !0);
272
- return /* @__PURE__ */ c(re, { disableGutters: !0, disablePadding: !0, children: [
273
- /* @__PURE__ */ c(ie, { onClick: () => {
271
+ ), o = t.account?.institutionName || "", i = t.repeating_transaction_type === E.Income, m = Q(r, t, !0);
272
+ return /* @__PURE__ */ c(ie, { disableGutters: !0, disablePadding: !0, children: [
273
+ /* @__PURE__ */ c(ce, { onClick: () => {
274
274
  n(t), s(!0);
275
275
  }, children: [
276
- /* @__PURE__ */ e(ae, { children: /* @__PURE__ */ e(
277
- Q,
276
+ /* @__PURE__ */ e(se, { children: /* @__PURE__ */ e(
277
+ H,
278
278
  {
279
279
  categoryGuid: l,
280
280
  merchantGuid: t.merchant_guid
281
281
  }
282
282
  ) }),
283
- /* @__PURE__ */ e(se, { children: /* @__PURE__ */ c(p, { direction: "row", gap: 4, sx: { justifyContent: "space-between" }, children: [
284
- /* @__PURE__ */ c(p, { direction: "column", sx: { width: "50%" }, children: [
285
- /* @__PURE__ */ e(x, { bold: !0, variant: "body1", children: t.description }),
286
- /* @__PURE__ */ c(p, { alignItems: "center", direction: "row", gap: 6, children: [
283
+ /* @__PURE__ */ e(le, { children: /* @__PURE__ */ c(y, { direction: "row", gap: 4, sx: { justifyContent: "space-between" }, children: [
284
+ /* @__PURE__ */ c(y, { direction: "column", sx: { width: "50%" }, children: [
285
+ /* @__PURE__ */ e(S, { bold: !0, variant: "body1", children: t.description }),
286
+ /* @__PURE__ */ c(y, { alignItems: "center", direction: "row", gap: 6, children: [
287
287
  t.account?.institution_guid && /* @__PURE__ */ e(
288
- le,
288
+ ae,
289
289
  {
290
290
  alt: o,
291
291
  institutionGuid: t.account?.institution_guid,
292
292
  size: 12
293
293
  }
294
294
  ),
295
- /* @__PURE__ */ e(x, { variant: "caption", children: o })
295
+ /* @__PURE__ */ e(S, { variant: "caption", children: o })
296
296
  ] })
297
297
  ] }),
298
- /* @__PURE__ */ c(p, { alignItems: "flex-end", sx: { width: "50%" }, children: [
298
+ /* @__PURE__ */ c(y, { alignItems: "flex-end", sx: { width: "50%" }, children: [
299
299
  /* @__PURE__ */ c(
300
- x,
300
+ S,
301
301
  {
302
302
  bold: !0,
303
303
  color: i ? "success.main" : "text.primary",
@@ -309,7 +309,7 @@ const ee = ({
309
309
  }
310
310
  ),
311
311
  /* @__PURE__ */ e(
312
- p,
312
+ y,
313
313
  {
314
314
  direction: "row",
315
315
  sx: {
@@ -319,7 +319,7 @@ const ee = ({
319
319
  textTransform: "uppercase",
320
320
  width: "100%"
321
321
  },
322
- children: /* @__PURE__ */ e(x, { bold: !0, color: "text.secondary", variant: "caption", children: m })
322
+ children: /* @__PURE__ */ e(S, { bold: !0, color: "text.secondary", variant: "caption", children: m })
323
323
  }
324
324
  )
325
325
  ] })
@@ -351,7 +351,7 @@ const ee = ({
351
351
  onSelected: a
352
352
  }) => {
353
353
  const { recurring: s } = w(), { searchValue: l, setSearchValue: o } = ge();
354
- return /* @__PURE__ */ c(p, { sx: { bgcolor: n, gap: 16, pt: 8 }, children: [
354
+ return /* @__PURE__ */ c(y, { sx: { bgcolor: n, gap: 16, pt: 8 }, children: [
355
355
  t && /* @__PURE__ */ e(U, { sx: { mx: 24 }, children: t }),
356
356
  /* @__PURE__ */ e(
357
357
  ke,
@@ -380,12 +380,12 @@ const ee = ({
380
380
  transaction: i
381
381
  }) => {
382
382
  const { recurring: m } = w();
383
- return /* @__PURE__ */ c(p, { bgcolor: n, gap: 24, height: "100%", children: [
384
- /* @__PURE__ */ c(p, { children: [
383
+ return /* @__PURE__ */ c(y, { bgcolor: n, gap: 24, height: "100%", children: [
384
+ /* @__PURE__ */ c(y, { children: [
385
385
  /* @__PURE__ */ e(fe, { bgcolor: n, children: Ne(i.date) }),
386
386
  /* @__PURE__ */ e(Ce, { transaction: i })
387
387
  ] }),
388
- /* @__PURE__ */ e(x, { bold: !0, sx: { mx: 24 }, variant: "Body", children: m.payment_schedule }),
388
+ /* @__PURE__ */ e(S, { bold: !0, sx: { mx: 24 }, variant: "Body", children: m.payment_schedule }),
389
389
  /* @__PURE__ */ e(
390
390
  ee,
391
391
  {
@@ -405,25 +405,25 @@ const ee = ({
405
405
  label: t,
406
406
  onAddRecurringTransaction: r = () => null
407
407
  }) => {
408
- const { recurring: a } = w(), { filter: s, setFilter: l, transactions: o } = Z(), { addRepeatingTransaction: i } = M(), { user: m } = De(), [h, C] = u.useState(!1), [v, b] = u.useState(""), [g, D] = u.useState(d.EveryMonth), [f, y] = u.useState(1), [k, G] = u.useState(15), _ = u.useMemo(
409
- () => o.find((S) => S.guid === v),
408
+ const { recurring: a } = w(), { filter: s, setFilter: l, transactions: o } = Z(), { addRepeatingTransaction: i } = M(), { user: m } = De(), [h, C] = u.useState(!1), [v, b] = u.useState(""), [g, D] = u.useState(d.EveryMonth), [f, p] = u.useState(1), [k, G] = u.useState(15), _ = u.useMemo(
409
+ () => o.find((x) => x.guid === v),
410
410
  [v, o]
411
411
  ), ne = () => {
412
412
  C(!0), l(n ? { ...s, custom: W } : { ...s, custom: q });
413
413
  }, oe = async () => {
414
414
  if (!_) {
415
- j();
415
+ K();
416
416
  return;
417
417
  }
418
418
  r();
419
- const S = de(g, Oe(_.date)), I = {
419
+ const x = de(g, Oe(_.date)), I = {
420
420
  account_guid: _.account_guid,
421
421
  amount: _.amount,
422
422
  created_by: 0,
423
423
  // User
424
424
  merchant_guid: _.merchant_guid,
425
425
  description: _.payee || _.description || _.feed_description,
426
- predicted_occurs_on: Le(S, { representation: "date" }),
426
+ predicted_occurs_on: Le(x, { representation: "date" }),
427
427
  recurrence_day: f,
428
428
  recurrence_type: g,
429
429
  repeating_transaction_type: n ? E.Income : E.Bill,
@@ -431,12 +431,12 @@ const ee = ({
431
431
  transaction_type: _.transaction_type,
432
432
  user_guid: m.guid
433
433
  };
434
- await i(I, _), j();
435
- }, j = () => {
434
+ await i(I, _), K();
435
+ }, K = () => {
436
436
  b(""), C(!1);
437
437
  };
438
438
  return /* @__PURE__ */ c(L, { children: [
439
- /* @__PURE__ */ e(H, { onClick: ne, startIcon: /* @__PURE__ */ e(ye, { size: 24 }), variant: "contained", children: t }),
439
+ /* @__PURE__ */ e($, { onClick: ne, startIcon: /* @__PURE__ */ e(pe, { size: 24 }), variant: "contained", children: t }),
440
440
  /* @__PURE__ */ e(
441
441
  O,
442
442
  {
@@ -448,13 +448,13 @@ const ee = ({
448
448
  Pe,
449
449
  {
450
450
  description: n ? a.add_income_description : a.add_expense_description,
451
- onSearch: (S) => {
451
+ onSearch: (x) => {
452
452
  l({
453
453
  ...s,
454
- custom: (I) => n ? S ? ze(I, S) : W(I) : S ? Ye(I, S) : q(I)
454
+ custom: (I) => n ? x ? ze(I, x) : W(I) : x ? Ye(I, x) : q(I)
455
455
  });
456
456
  },
457
- onSelected: (S) => b(S)
457
+ onSelected: (x) => b(x)
458
458
  }
459
459
  )
460
460
  }
@@ -472,7 +472,7 @@ const ee = ({
472
472
  {
473
473
  firstDay: f,
474
474
  frequency: g,
475
- onFirstDayChange: y,
475
+ onFirstDayChange: p,
476
476
  onFrequencyChange: D,
477
477
  onSecondDayChange: G,
478
478
  secondDay: k,
@@ -486,8 +486,8 @@ const ee = ({
486
486
  ), Be = A(
487
487
  ({ zeroStateFor: n }) => {
488
488
  const { recurring: t } = w(), { onEvent: r } = F(), a = n === "income", s = a ? t.recurring_setting_zero_state_income_title : t.recurring_setting_zero_state_expenses_title, l = a ? t.recurring_setting_zero_state_income_description : t.recurring_setting_zero_state_expenses_description, o = a ? t.add_income : t.add_expense;
489
- return /* @__PURE__ */ c(p, { sx: { alignItems: "center", p: 24, pt: 48 }, children: [
490
- /* @__PURE__ */ e(pe, { size: 48 }),
489
+ return /* @__PURE__ */ c(y, { sx: { alignItems: "center", p: 24, pt: 48 }, children: [
490
+ /* @__PURE__ */ e(ye, { size: 48 }),
491
491
  /* @__PURE__ */ e(U, { sx: { my: 8, fontWeight: 600 }, variant: "body1", children: s }),
492
492
  /* @__PURE__ */ e(U, { color: "text.secondary", sx: { mb: 32 }, variant: "subtitle2", children: l }),
493
493
  /* @__PURE__ */ e(
@@ -515,14 +515,15 @@ const ee = ({
515
515
  (i) => i.repeating_transaction_type === E.Income && (i.transactions.length > 0 || i.recurrence_type === d.EveryYear)
516
516
  );
517
517
  return /* @__PURE__ */ e(L, { children: o.length !== 0 ? /* @__PURE__ */ c(
518
- p,
518
+ y,
519
519
  {
520
520
  sx: {
521
- justifyContent: "space-between",
522
- height: n ? "calc(100% - 32px)" : "calc(100% - 57px)"
521
+ height: n ? "calc(100vh - 62px)" : "calc(100vh - 109px)",
522
+ maxHeight: n ? "calc(100vh - 62px)" : "calc(100vh - 109px)"
523
523
  },
524
524
  children: [
525
- /* @__PURE__ */ e(P, { children: /* @__PURE__ */ e(K, { sx: { bgcolor: "background.paper" }, children: o.map((i, m) => /* @__PURE__ */ c(u.Fragment, { children: [
525
+ n && /* @__PURE__ */ e(S, { bold: !0, sx: { mb: 4, mt: 12, mx: 24 }, variant: "Small", children: t.income }),
526
+ /* @__PURE__ */ e(P, { sx: { flex: 1, overflow: "auto" }, children: /* @__PURE__ */ e(j, { sx: { bgcolor: "background.paper" }, children: o.map((i, m) => /* @__PURE__ */ c(u.Fragment, { children: [
526
527
  /* @__PURE__ */ e(Ge, { onClick: s, repeatingTransaction: i }),
527
528
  /* @__PURE__ */ e(
528
529
  T,
@@ -0,0 +1,88 @@
1
+ import { jsx as e, Fragment as x, jsxs as t } from "react/jsx-runtime";
2
+ import m from "react";
3
+ import { observer as u } from "mobx-react-lite";
4
+ import s from "@mui/material/Box";
5
+ import l from "@mui/material/Tab";
6
+ import b from "@mui/material/Tabs";
7
+ import p from "@mui/material/Divider";
8
+ import R from "@mui/material/List";
9
+ import T from "@mui/material/Stack";
10
+ import { R as C, A as S, a as E, M as v } from "./ManageIncome-4_bSdxXr.mjs";
11
+ import { u as h, i as A, f } from "./hooks-BAAimqdq.mjs";
12
+ import { R as y, F as N } from "./RepeatingTransaction-BW4J-jeJ.mjs";
13
+ import { A as d } from "./WidgetContainer-ztkGgdIH.mjs";
14
+ const I = u(() => {
15
+ const { recurring: n } = h(), { repeatingTransactions: c } = A(), { onEvent: o } = f(), a = (r) => {
16
+ o(d.RECURRING_TRANSACTIONS_CLICK_EXPENSE, {
17
+ repeating_transaction_guid: r.guid
18
+ });
19
+ }, g = () => {
20
+ o(d.RECURRING_TRANSACTIONS_CLICK_ADD_EXPENSE);
21
+ }, i = c.filter(
22
+ (r) => r.repeating_transaction_type !== y.Income && (r.transactions.length > 0 || r.recurrence_type === N.EveryYear)
23
+ );
24
+ return /* @__PURE__ */ e(x, { children: i.length !== 0 ? /* @__PURE__ */ t(
25
+ T,
26
+ {
27
+ sx: {
28
+ height: "calc(100vh - 109px)",
29
+ maxHeight: "calc(100vh - 109px)"
30
+ },
31
+ children: [
32
+ /* @__PURE__ */ e(s, { sx: { flex: 1, overflow: "auto" }, children: /* @__PURE__ */ e(R, { sx: { bgcolor: "background.paper" }, children: i.map((r, _) => /* @__PURE__ */ t(m.Fragment, { children: [
33
+ /* @__PURE__ */ e(C, { onClick: a, repeatingTransaction: r }),
34
+ /* @__PURE__ */ e(
35
+ p,
36
+ {
37
+ variant: _ < i.length - 1 ? "inset" : "fullWidth"
38
+ }
39
+ )
40
+ ] }, r.guid)) }) }),
41
+ /* @__PURE__ */ t(s, { children: [
42
+ /* @__PURE__ */ e(p, {}),
43
+ /* @__PURE__ */ e(
44
+ s,
45
+ {
46
+ sx: {
47
+ alignContent: "center",
48
+ bgcolor: "background.paper",
49
+ justifyContent: "flex-end",
50
+ px: 24,
51
+ py: 12,
52
+ textAlign: "right"
53
+ },
54
+ children: /* @__PURE__ */ e(S, { label: n.add_expense, onAddRecurringTransaction: g })
55
+ }
56
+ )
57
+ ] })
58
+ ]
59
+ }
60
+ ) : /* @__PURE__ */ e(E, { zeroStateFor: "expenses" }) });
61
+ }), X = u(() => {
62
+ const [n, c] = m.useState(0), { onEvent: o } = f(), { recurring: a } = h();
63
+ return /* @__PURE__ */ t(s, { bgcolor: "background.default", height: "100%", children: [
64
+ /* @__PURE__ */ t(
65
+ b,
66
+ {
67
+ onChange: (i, r) => {
68
+ c(r), o(
69
+ r === 0 ? "recurring_transactions_widget_manage_expenses" : "recurring_transactions_widget_edit_income"
70
+ );
71
+ },
72
+ sx: { bgcolor: "background.paper", mb: 0 },
73
+ value: n,
74
+ variant: "fullWidth",
75
+ children: [
76
+ /* @__PURE__ */ e(l, { label: a.expenses }),
77
+ /* @__PURE__ */ e(l, { label: a.income })
78
+ ]
79
+ }
80
+ ),
81
+ n === 0 && /* @__PURE__ */ e(I, {}),
82
+ n === 1 && /* @__PURE__ */ e(v, {})
83
+ ] });
84
+ });
85
+ export {
86
+ I as M,
87
+ X as R
88
+ };