@mx-cartographer/experiences 7.0.59-alpha.al0 → 7.0.59-alpha.al1

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.
@@ -30,7 +30,7 @@ import Ue from "@mui/material/AccordionSummary";
30
30
  import Ve from "@mui/material/CardHeader";
31
31
  import { u as Ye } from "../useDimensions-27p2evRx.mjs";
32
32
  import { C as qe } from "../ConnectionsDrawer-CU3E2RLw.mjs";
33
- import { R as Je } from "../RecurringSettings-qv7DNYac.mjs";
33
+ import { R as Je } from "../RecurringSettings-B486z99o.mjs";
34
34
  import Qe from "@mui/material/TextField";
35
35
  import { u as Ce } from "../useScreenSize-B6JyS_Lj.mjs";
36
36
  import { a as Ze } from "../Dialog-CWW597AF.mjs";
@@ -48,9 +48,9 @@ import { isValid as ut } from "date-fns/isValid";
48
48
  import { AdapterDateFns as _t } from "@mui/x-date-pickers/AdapterDateFnsV3";
49
49
  import { DatePicker as pt } from "@mui/x-date-pickers";
50
50
  import { LocalizationProvider as ht } from "@mui/x-date-pickers/LocalizationProvider";
51
- import { E as gt } from "../EmptyState-w2yYDuKG.mjs";
52
- import { A as Y, W as bt } from "../WidgetContainer-B8MRJ5Y1.mjs";
51
+ import { A as Y, W as gt } from "../WidgetContainer-B8MRJ5Y1.mjs";
53
52
  import { L as Ke } from "../Loader-DUaFpDGv.mjs";
53
+ import { E as bt } from "../EmptyState-w2yYDuKG.mjs";
54
54
  import ft from "@mui/material/Stack/Stack";
55
55
  import yt from "@mui/material/Box";
56
56
  import At from "@mui/material/styles/useTheme";
@@ -948,7 +948,7 @@ const St = (t, n) => n ? v(t, t < 1e3 ? "0" : "0.00a").replace(
948
948
  [m, c, S]
949
949
  );
950
950
  return !c || !a || !_ ? /* @__PURE__ */ e(Ke, {}) : /* @__PURE__ */ r(
951
- bt,
951
+ gt,
952
952
  {
953
953
  accountOptions: p,
954
954
  actions: [
@@ -998,7 +998,7 @@ const St = (t, n) => n ? v(t, t < 1e3 ? "0" : "0.00a").replace(
998
998
  }
999
999
  ),
1000
1000
  O ? /* @__PURE__ */ e(
1001
- gt,
1001
+ bt,
1002
1002
  {
1003
1003
  header: l.create_goals_header,
1004
1004
  icon: "trophy",
@@ -1,8 +1,9 @@
1
1
  interface RecurringSettingsDrawerProps {
2
2
  isOpen: boolean;
3
3
  onClose: () => void;
4
+ selectedTab?: number;
4
5
  }
5
- export declare const RecurringSettingsDrawer: (({ isOpen, onClose }: RecurringSettingsDrawerProps) => import("react/jsx-runtime").JSX.Element) & {
6
+ export declare const RecurringSettingsDrawer: (({ isOpen, onClose, selectedTab }: RecurringSettingsDrawerProps) => import("react/jsx-runtime").JSX.Element) & {
6
7
  displayName: string;
7
8
  };
8
9
  export {};
@@ -1,3 +1,7 @@
1
- export declare const RecurringSettings: (() => import("react/jsx-runtime").JSX.Element) & {
1
+ interface RecurringSettingsProps {
2
+ defaultSelectedTab?: number;
3
+ }
4
+ export declare const RecurringSettings: (({ defaultSelectedTab }: RecurringSettingsProps) => import("react/jsx-runtime").JSX.Element) & {
2
5
  displayName: string;
3
6
  };
7
+ export {};
@@ -8,8 +8,8 @@ import { startOfToday as ue } from "date-fns/startOfToday";
8
8
  import { subDays as me } from "date-fns/subDays";
9
9
  import ae from "@mui/material/Skeleton";
10
10
  import c from "@mui/material/Stack";
11
- import { R as Ee } from "../RecurringSettings-qv7DNYac.mjs";
12
- import { M as En } from "../RecurringSettings-qv7DNYac.mjs";
11
+ import { R as Ee } from "../RecurringSettings-B486z99o.mjs";
12
+ import { M as En } from "../RecurringSettings-B486z99o.mjs";
13
13
  import { addMonths as ze } from "date-fns/addMonths";
14
14
  import { subMonths as Fe } from "date-fns/subMonths";
15
15
  import { isBefore as Ue } from "date-fns/isBefore";
@@ -66,9 +66,9 @@ const Q = {
66
66
  }
67
67
  ) }), Re = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(q, { size: n, sx: { ...ee(t) }, children: /* @__PURE__ */ e(Ge, { color: "error", filled: !0, sx: { fontSize: n, ...Q } }) }), Te = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(q, { size: n, sx: { ...ee(t) }, children: /* @__PURE__ */ e(Ne, { color: "success", filled: !0, sx: { fontSize: n, ...Q } }) }), ft = T(
68
68
  ({ day: t, outsideCurrentMonth: n, ...i }) => {
69
- const { recurring: r } = D(), { selectedAccountGuids: o } = U(), { recurrences: l, setSelectedDay: m } = I(), s = h.useMemo(
70
- () => l.filter((d) => o.includes(d.accountGuid)),
71
- [o, l]
69
+ const { recurring: o } = D(), { selectedAccountGuids: r } = U(), { recurrences: l, setSelectedDay: m } = I(), s = h.useMemo(
70
+ () => l.filter((d) => r.includes(d.accountGuid)),
71
+ [r, l]
72
72
  ).filter(
73
73
  (d) => nt(d.occurredOnDate || d.expectedDate, t)
74
74
  ), u = s.some(
@@ -99,10 +99,10 @@ const Q = {
99
99
  rt,
100
100
  {
101
101
  "aria-label": `
102
- ${x && r.paid},
103
- ${f && r.missed},
104
- ${u && r.upcoming},
105
- ${C && r.income}`,
102
+ ${x && o.paid},
103
+ ${f && o.missed},
104
+ ${u && o.upcoming},
105
+ ${C && o.income}`,
106
106
  day: t,
107
107
  onClick: () => m(t),
108
108
  outsideCurrentMonth: n,
@@ -142,10 +142,10 @@ const Q = {
142
142
  }
143
143
  );
144
144
  }), Me = 58, $e = T(() => {
145
- const t = ge(), { onEvent: n } = J(), { selectedDay: i, setDateRange: r } = I(), [o, l] = h.useState(
145
+ const t = ge(), { onEvent: n } = J(), { selectedDay: i, setDateRange: o } = I(), [r, l] = h.useState(
146
146
  we(/* @__PURE__ */ new Date()) * B + Me
147
147
  ), m = (s) => {
148
- l(we(s) * B + Me), r({
148
+ l(we(s) * B + Me), o({
149
149
  start: k(s),
150
150
  end: z(s)
151
151
  }), n(w.RECURRING_TRANSACTIONS_CLICK_CALENDAR_RIGHT);
@@ -182,10 +182,10 @@ const Q = {
182
182
  fontWeight: 600
183
183
  },
184
184
  "& .MuiDayCalendar-slideTransition": {
185
- minHeight: o
185
+ minHeight: r
186
186
  },
187
187
  "&.MuiDateCalendar-root": {
188
- minHeight: o + B
188
+ minHeight: r + B
189
189
  },
190
190
  "& .MuiButtonBase-root, .MuiDayCalendar-weekDayLabel": {
191
191
  height: B,
@@ -245,14 +245,14 @@ const Q = {
245
245
  isMini: n = !1,
246
246
  onRecurrenceClick: i = () => {
247
247
  },
248
- showOrdinal: r = !1
248
+ showOrdinal: o = !1
249
249
  }) => {
250
- const { recurring: o } = D(), { repeatingTransactions: l } = I(), [m, g] = h.useState(!1), s = h.useMemo(
250
+ const { recurring: r } = D(), { repeatingTransactions: l } = I(), [m, g] = h.useState(!1), s = h.useMemo(
251
251
  () => l.find((b) => b.guid === t.repeatingTransactionGuid),
252
252
  [t, l]
253
253
  ), u = t.type === M.Income, f = t.status === S.Paid, x = t.status === S.Missed, C = t.status === S.Upcoming;
254
- let y = o.paid?.toLowerCase();
255
- return x ? y = o.missed?.toLowerCase() : C && (y = r ? Ie(o, s || {}, !0) : Ie(o, s || {}, !1)), //TODO: implement common/components/ListItemRow.tsx
254
+ let y = r.paid?.toLowerCase();
255
+ return x ? y = r.missed?.toLowerCase() : C && (y = o ? Ie(r, s || {}, !0) : Ie(r, s || {}, !1)), //TODO: implement common/components/ListItemRow.tsx
256
256
  /* @__PURE__ */ a(ke, { disableGutters: !0, disablePadding: !0, children: [
257
257
  /* @__PURE__ */ a(dt, { onClick: () => {
258
258
  g(!0), i(t);
@@ -275,7 +275,7 @@ const Q = {
275
275
  /* @__PURE__ */ e(p, { bold: !0, variant: "body1", children: t.name }),
276
276
  /* @__PURE__ */ e(c, { alignItems: "center", direction: "row", gap: 6, children: n ? /* @__PURE__ */ a(c, { direction: "row", gap: 4, children: [
277
277
  yt(t),
278
- /* @__PURE__ */ e(p, { variant: "caption", children: Ct(t, o) })
278
+ /* @__PURE__ */ e(p, { variant: "caption", children: Ct(t, r) })
279
279
  ] }) : /* @__PURE__ */ a(Z, { children: [
280
280
  t.institutionGuid && /* @__PURE__ */ e(
281
281
  qe,
@@ -319,10 +319,10 @@ const Q = {
319
319
  /* @__PURE__ */ e(
320
320
  xe,
321
321
  {
322
- ariaLabelClose: o.close_drawer_aria,
322
+ ariaLabelClose: r.close_drawer_aria,
323
323
  isOpen: m,
324
324
  onClose: () => g(!1),
325
- title: t.type === M.Income ? o.income_details : o.expense_details,
325
+ title: t.type === M.Income ? r.income_details : r.expense_details,
326
326
  children: s && /* @__PURE__ */ e(
327
327
  mt,
328
328
  {
@@ -338,12 +338,12 @@ const Q = {
338
338
  recurrences: t,
339
339
  isMini: n = !1,
340
340
  onResetClick: i,
341
- onRecurrenceClick: r,
342
- sx: o = {},
341
+ onRecurrenceClick: o,
342
+ sx: r = {},
343
343
  title: l
344
344
  }) => {
345
345
  const { recurring: m } = D(), g = h.useMemo(() => ot(t), [t]);
346
- return /* @__PURE__ */ a(c, { sx: { gap: 8, mt: 4, ...o }, children: [
346
+ return /* @__PURE__ */ a(c, { sx: { gap: 8, mt: 4, ...r }, children: [
347
347
  l && /* @__PURE__ */ a(
348
348
  c,
349
349
  {
@@ -359,7 +359,7 @@ const Q = {
359
359
  Le,
360
360
  {
361
361
  isMini: n,
362
- onRecurrenceClick: r,
362
+ onRecurrenceClick: o,
363
363
  recurrence: s
364
364
  }
365
365
  ),
@@ -374,7 +374,7 @@ const Q = {
374
374
  Le,
375
375
  {
376
376
  isMini: n,
377
- onRecurrenceClick: r,
377
+ onRecurrenceClick: o,
378
378
  recurrence: f
379
379
  }
380
380
  ) }, `day-recurrence-${x}`))
@@ -385,20 +385,20 @@ const Q = {
385
385
  ] });
386
386
  }
387
387
  ), Ae = T(
388
- ({ expected: t, isExpense: n = !0, missed: i, paid: r, title: o, total: l, upcoming: m }) => {
388
+ ({ expected: t, isExpense: n = !0, missed: i, paid: o, title: r, total: l, upcoming: m }) => {
389
389
  const g = ge(), { isSmallMobile: s } = ye(), { recurring: u } = D(), f = h.useMemo(() => {
390
- const x = [{ color: g.palette.success.main, percentage: `${r / t}` }];
390
+ const x = [{ color: g.palette.success.main, percentage: `${o / t}` }];
391
391
  return i && x.push({ color: g.palette.error.main, percentage: `${i / t}` }), x;
392
- }, [r, t, i]);
392
+ }, [o, t, i]);
393
393
  return /* @__PURE__ */ a(c, { children: [
394
394
  /* @__PURE__ */ a(c, { sx: { flexDirection: "row", justifyContent: "space-between", pb: 12 }, children: [
395
- /* @__PURE__ */ e(p, { bold: !0, variant: "body1", children: `${o} (${l})` }),
395
+ /* @__PURE__ */ e(p, { bold: !0, variant: "body1", children: `${r} (${l})` }),
396
396
  /* @__PURE__ */ e(p, { bold: !0, color: n ? "text.primary" : "success.main", variant: "body1", children: `${n ? "-" : "+"}${L(t, "0,0.00")}` })
397
397
  ] }),
398
398
  /* @__PURE__ */ e(We, { data: f, height: 12 }),
399
399
  /* @__PURE__ */ a(c, { sx: { alignItems: "center", flexDirection: "row", gap: 2, my: 8 }, children: [
400
400
  /* @__PURE__ */ e(O, { sx: { bgcolor: "success.main", height: 8, mr: 8, width: 8 } }),
401
- !s && /* @__PURE__ */ e(p, { bold: !0, variant: "body2", children: L(r, "0,0.00") }),
401
+ !s && /* @__PURE__ */ e(p, { bold: !0, variant: "body2", children: L(o, "0,0.00") }),
402
402
  /* @__PURE__ */ e(p, { variant: "caption", children: u.paid?.toLowerCase() }),
403
403
  i !== void 0 && /* @__PURE__ */ a(Z, { children: [
404
404
  /* @__PURE__ */ e(O, { sx: { bgcolor: "error.main", height: 8, ml: 16, mr: 8, width: 8 } }),
@@ -412,7 +412,7 @@ const Q = {
412
412
  ] });
413
413
  }
414
414
  ), bt = T(() => {
415
- const { recurring: t } = D(), { availableWidth: n } = Oe(), { isDesktop: i, isSmallMobile: r, isMobile: o } = ye(n), { onEvent: l } = J(), {
415
+ const { recurring: t } = D(), { availableWidth: n } = Oe(), { isDesktop: i, isSmallMobile: o, isMobile: r } = ye(n), { onEvent: l } = J(), {
416
416
  currentMonthExpenses: m,
417
417
  currentMonthIncome: g,
418
418
  dateRange: s,
@@ -510,18 +510,18 @@ const Q = {
510
510
  }
511
511
  )
512
512
  ] }),
513
- !i && /* @__PURE__ */ a(c, { sx: { px: o ? 0 : 24 }, children: [
513
+ !i && /* @__PURE__ */ a(c, { sx: { px: r ? 0 : 24 }, children: [
514
514
  /* @__PURE__ */ a(je, { onChange: v, value: $, variant: "fullWidth", children: [
515
515
  /* @__PURE__ */ e(
516
516
  _e,
517
517
  {
518
- label: /* @__PURE__ */ e(p, { bold: !0, sx: { textTransform: "none" }, variant: "body1", children: r ? t.upcoming : t.upcoming_activity })
518
+ label: /* @__PURE__ */ e(p, { bold: !0, sx: { textTransform: "none" }, variant: "body1", children: o ? t.upcoming : t.upcoming_activity })
519
519
  }
520
520
  ),
521
521
  /* @__PURE__ */ e(
522
522
  _e,
523
523
  {
524
- label: /* @__PURE__ */ e(p, { bold: !0, sx: { textTransform: "none" }, variant: "body1", children: r ? t.past : t.past_transactions })
524
+ label: /* @__PURE__ */ e(p, { bold: !0, sx: { textTransform: "none" }, variant: "body1", children: o ? t.past : t.past_transactions })
525
525
  }
526
526
  )
527
527
  ] }),
@@ -559,7 +559,7 @@ const Q = {
559
559
  }
560
560
  );
561
561
  }), wn = T(({ onBackClick: t, sx: n = {} }) => {
562
- const { accounts: i } = he(), { recurring: r } = D(), { isCopyLoaded: o, isInitialized: l, selectedAccountGuids: m, setSelectedAccounts: g } = U(), { isDataLoaded: s, loadRepeatingTransactions: u, setDateRange: f } = I(), { setFilter: x } = fe(), { onEvent: C } = J(), { isMobile: y } = ye(), [d, b] = h.useState(!1);
562
+ const { accounts: i } = he(), { recurring: o } = D(), { isCopyLoaded: r, isInitialized: l, selectedAccountGuids: m, setSelectedAccounts: g } = U(), { isDataLoaded: s, loadRepeatingTransactions: u, setDateRange: f } = I(), { setFilter: x } = fe(), { onEvent: C } = J(), { isMobile: y } = ye(), [d, b] = h.useState(!1);
563
563
  return h.useEffect(() => {
564
564
  g(i);
565
565
  }, [i]), h.useEffect(() => {
@@ -567,13 +567,13 @@ const Q = {
567
567
  dateRange: { start: me(ue(), 90), end: de() },
568
568
  accounts: m
569
569
  }), f({ start: k(/* @__PURE__ */ new Date()), end: z(/* @__PURE__ */ new Date()) }), u().finally());
570
- }, [l]), o ? /* @__PURE__ */ a(
570
+ }, [l]), r ? /* @__PURE__ */ a(
571
571
  at,
572
572
  {
573
573
  accountOptions: i,
574
574
  actions: [
575
575
  {
576
- label: r.action_title,
576
+ label: o.action_title,
577
577
  iconName: "credit_card_gear",
578
578
  onClick: () => {
579
579
  b(!0), C(w.RECURRING_TRANSACTIONS_CLICK_SETTINGS);
@@ -584,7 +584,7 @@ const Q = {
584
584
  onAccountsFilterClick: () => C(w.RECURRING_TRANSACTIONS_CLICK_FILTER),
585
585
  onBackClick: t,
586
586
  sx: n,
587
- title: r.title,
587
+ title: o.title,
588
588
  children: [
589
589
  l && s ? /* @__PURE__ */ e(bt, {}) : /* @__PURE__ */ a(c, { direction: "column", p: 48, spacing: 24, children: [
590
590
  /* @__PURE__ */ e(ae, { height: 100, variant: "rounded", width: "100%" }),
@@ -594,11 +594,11 @@ const Q = {
594
594
  /* @__PURE__ */ e(
595
595
  xe,
596
596
  {
597
- ariaLabelClose: r.close_drawer_aria,
597
+ ariaLabelClose: o.close_drawer_aria,
598
598
  isOpen: d,
599
599
  onClose: () => b(!1),
600
600
  shouldShowHeaderBorders: !1,
601
- title: r.action_title,
601
+ title: o.action_title,
602
602
  children: /* @__PURE__ */ e(Ee, {})
603
603
  }
604
604
  )
@@ -606,7 +606,7 @@ const Q = {
606
606
  }
607
607
  ) : /* @__PURE__ */ e(F, {});
608
608
  }), Rt = T(() => {
609
- const { recurring: t } = D(), { availableWidth: n } = Oe(), { selectedDay: i, selectedDayRecurrences: r, setSelectedDay: o, upcomingRecurrences: l } = I(), m = n < 750;
609
+ const { recurring: t } = D(), { availableWidth: n } = Oe(), { selectedDay: i, selectedDayRecurrences: o, setSelectedDay: r, upcomingRecurrences: l } = I(), m = n < 750;
610
610
  return /* @__PURE__ */ a(c, { flexDirection: m ? "column" : "row", width: "100%", children: [
611
611
  /* @__PURE__ */ e($e, {}),
612
612
  !m && /* @__PURE__ */ e(le, { flexItem: !0, orientation: "vertical", sx: { my: 16, ml: 16 } }),
@@ -614,8 +614,8 @@ const Q = {
614
614
  H,
615
615
  {
616
616
  isMini: !0,
617
- onResetClick: i ? () => o(i) : void 0,
618
- recurrences: r || l.slice(0, 5),
617
+ onResetClick: i ? () => r(i) : void 0,
618
+ recurrences: o || l.slice(0, 5),
619
619
  sx: { width: m ? "100%" : "calc(100% - 336px)", mt: 12 },
620
620
  title: i ? N(
621
621
  t.day_transactions,
@@ -626,11 +626,11 @@ const Q = {
626
626
  ] });
627
627
  }), In = T(
628
628
  ({ onPrimaryCtaClick: t, sx: n }) => {
629
- const { accounts: i } = he(), { recurring: r } = D(), { setFilter: o } = fe(), { isDataLoaded: l, loadRepeatingTransactions: m } = I(), { isCopyLoaded: g, isInitialized: s, setSelectedAccounts: u, selectedAccountGuids: f } = U();
629
+ const { accounts: i } = he(), { recurring: o } = D(), { setFilter: r } = fe(), { isDataLoaded: l, loadRepeatingTransactions: m } = I(), { isCopyLoaded: g, isInitialized: s, setSelectedAccounts: u, selectedAccountGuids: f } = U();
630
630
  return h.useEffect(() => {
631
631
  s && u(i);
632
632
  }, [s]), h.useEffect(() => {
633
- f.length > 0 && (o({
633
+ f.length > 0 && (r({
634
634
  dateRange: { start: me(ue(), 90), end: de() },
635
635
  accounts: f
636
636
  }), m().finally());
@@ -639,10 +639,10 @@ const Q = {
639
639
  {
640
640
  className: "mx-exp-recurring-transactions-miniwidget",
641
641
  onPrimaryCtaClick: t,
642
- primaryCtaLabel: r.primary_cta,
643
- subTitle: r.sub_title,
642
+ primaryCtaLabel: o.primary_cta,
643
+ subTitle: o.sub_title,
644
644
  sx: n,
645
- title: r.mini_title,
645
+ title: o.mini_title,
646
646
  children: l ? /* @__PURE__ */ e(Rt, {}) : /* @__PURE__ */ e(F, {})
647
647
  }
648
648
  );
@@ -650,19 +650,19 @@ const Q = {
650
650
  ), Tt = ({
651
651
  upcomingRecurrences: t,
652
652
  maxLogos: n = 3
653
- }) => /* @__PURE__ */ e(c, { sx: { flexDirection: "row", gap: 4 }, children: t?.slice(0, n).map((i, r) => /* @__PURE__ */ e(
653
+ }) => /* @__PURE__ */ e(c, { sx: { flexDirection: "row", gap: 4 }, children: t?.slice(0, n).map((i, o) => /* @__PURE__ */ e(
654
654
  pe,
655
655
  {
656
656
  categoryGuid: i.categoryGuid || "",
657
657
  merchantGuid: i.merchantGuid || ""
658
658
  },
659
- `${i.categoryGuid}-${i.merchantGuid}-${r}`
659
+ `${i.categoryGuid}-${i.merchantGuid}-${o}`
660
660
  )) }), Dt = ({
661
661
  upcomingRecurrences: t,
662
662
  logoSize: n = 32,
663
663
  maxLogos: i = 3
664
664
  }) => {
665
- const r = (o) => o * (n / 2);
665
+ const o = (r) => r * (n / 2);
666
666
  return /* @__PURE__ */ e(
667
667
  O,
668
668
  {
@@ -670,12 +670,12 @@ const Q = {
670
670
  position: "relative",
671
671
  width: 64
672
672
  },
673
- children: t.map((o, l) => l < i ? /* @__PURE__ */ e(
673
+ children: t.map((r, l) => l < i ? /* @__PURE__ */ e(
674
674
  O,
675
675
  {
676
676
  sx: {
677
677
  borderRadius: "4px",
678
- left: r(l),
678
+ left: o(l),
679
679
  outlineColor: "common.white",
680
680
  outlineStyle: "solid",
681
681
  outlineWidth: 2,
@@ -684,13 +684,13 @@ const Q = {
684
684
  children: /* @__PURE__ */ e(
685
685
  pe,
686
686
  {
687
- categoryGuid: o.categoryGuid || "",
688
- merchantGuid: o.merchantGuid || "",
687
+ categoryGuid: r.categoryGuid || "",
688
+ merchantGuid: r.merchantGuid || "",
689
689
  size: n
690
690
  }
691
691
  )
692
692
  },
693
- `${o.categoryGuid}-${o.merchantGuid}-${l}`
693
+ `${r.categoryGuid}-${r.merchantGuid}-${l}`
694
694
  ) : null)
695
695
  }
696
696
  );
@@ -698,8 +698,8 @@ const Q = {
698
698
  amount: t,
699
699
  bgcolor: n,
700
700
  isLargeScreen: i,
701
- isSmallScreen: r,
702
- label: o
701
+ isSmallScreen: o,
702
+ label: r
703
703
  }) => /* @__PURE__ */ a(c, { sx: { alignItems: "center", flexDirection: "row", gap: 8 }, children: [
704
704
  /* @__PURE__ */ e(
705
705
  O,
@@ -713,8 +713,8 @@ const Q = {
713
713
  }
714
714
  ),
715
715
  /* @__PURE__ */ a(c, { sx: { alignItems: "center", flexDirection: "row", gap: 2 }, children: [
716
- !r && /* @__PURE__ */ e(p, { bold: !0, variant: "caption", children: L(t, t === 0 || !i ? "0,0" : "0,0.00") }),
717
- /* @__PURE__ */ e(p, { variant: "caption", children: o })
716
+ !o && /* @__PURE__ */ e(p, { bold: !0, variant: "caption", children: L(t, t === 0 || !i ? "0,0" : "0,0.00") }),
717
+ /* @__PURE__ */ e(p, { variant: "caption", children: r })
718
718
  ] })
719
719
  ] }), _t = T(() => {
720
720
  const { recurring: t } = D();
@@ -727,7 +727,7 @@ const Q = {
727
727
  ] });
728
728
  }), vn = T(
729
729
  ({ onCTAClick: t }) => {
730
- const [n, i] = h.useState(!1), { onEvent: r } = J(), o = ge(), { accounts: l } = he(), [m, { width: g }] = gt(), { isCopyLoaded: s, isInitialized: u, selectedAccountGuids: f, setSelectedAccounts: x } = U(), {
730
+ const [n, i] = h.useState(!1), { onEvent: o } = J(), r = ge(), { accounts: l } = he(), [m, { width: g }] = gt(), { isCopyLoaded: s, isInitialized: u, selectedAccountGuids: f, setSelectedAccounts: x } = U(), {
731
731
  loadRepeatingTransactions: C,
732
732
  upcomingRecurrences: y,
733
733
  expenseTotal: d,
@@ -746,26 +746,26 @@ const Q = {
746
746
  accounts: f
747
747
  }), te({ start: k(/* @__PURE__ */ new Date()), end: z(/* @__PURE__ */ new Date()) }), C().finally(), i(!0));
748
748
  }, [u]), h.useEffect(() => {
749
- n && r(w.RECURRING_TRANSACTIONS_LOAD_WIDGET, {
749
+ n && o(w.RECURRING_TRANSACTIONS_LOAD_WIDGET, {
750
750
  state: y.length > 0 ? "default" : "zeroState"
751
751
  });
752
752
  }, [n]);
753
753
  const v = g <= 288, Y = g >= 450, V = h.useMemo(() => {
754
754
  const G = [
755
- { color: o.palette.success.main, percentage: `${W / d}` }
755
+ { color: r.palette.success.main, percentage: `${W / d}` }
756
756
  ];
757
757
  return b && G.push({
758
- color: o.palette.error.main,
758
+ color: r.palette.error.main,
759
759
  percentage: `${b / d}`
760
760
  }), G;
761
761
  }, [
762
762
  W,
763
763
  d,
764
764
  b,
765
- o.palette.success.main,
766
- o.palette.error.main
765
+ r.palette.success.main,
766
+ r.palette.error.main
767
767
  ]), P = h.useMemo(() => L(d, d === 0 ? "0,0" : "0,0.00"), [d]), re = () => {
768
- r(
768
+ o(
769
769
  y.length > 0 ? w.RECURRING_TRANSACTIONS_CLICK_GET_STARTED : w.RECURRING_TRANSACTIONS_CLICK_VIEW_ALL
770
770
  ), t();
771
771
  };
@@ -879,16 +879,16 @@ const Q = {
879
879
  );
880
880
  }
881
881
  ), Mn = T(
882
- ({ isOpen: t, onClose: n }) => {
883
- const { cashflow: i } = D(), { isCopyLoaded: r } = U();
882
+ ({ isOpen: t, onClose: n, selectedTab: i }) => {
883
+ const { cashflow: o } = D(), { isCopyLoaded: r } = U();
884
884
  return r ? /* @__PURE__ */ e(
885
885
  xe,
886
886
  {
887
- ariaLabelClose: i.close_settings_aria,
887
+ ariaLabelClose: o.close_settings_aria,
888
888
  isOpen: t,
889
889
  onClose: n,
890
- title: i.cashflow_settings,
891
- children: /* @__PURE__ */ e(Ee, {})
890
+ title: o.cashflow_settings,
891
+ children: /* @__PURE__ */ e(Ee, { defaultSelectedTab: i })
892
892
  }
893
893
  ) : /* @__PURE__ */ e(F, {});
894
894
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "7.0.59-alpha.al0",
3
+ "version": "7.0.59-alpha.al1",
4
4
  "description": "Library containing experience widgets",
5
5
  "author": "MX",
6
6
  "license": "MIT",