@mx-cartographer/experiences 8.1.1 → 9.0.0-alpha.0

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 (31) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/dist/{AccountStore-nxHZqg1Z.mjs → AccountStore-B3S_p5Qa.mjs} +1 -1
  3. package/dist/{BudgetUtil-Cwvpb7xl.mjs → BudgetUtil-DalEN9--.mjs} +1 -1
  4. package/dist/{Help-Dfw_GHKi.mjs → Help-DuhUdMTZ.mjs} +1 -1
  5. package/dist/{ManageIncome-wgo-qbdP.mjs → ManageIncome-CrHDAku7.mjs} +1 -1
  6. package/dist/{NotificationSettings-BFFIl-wS.mjs → NotificationSettings-DOgnTxzv.mjs} +1 -1
  7. package/dist/{RecurringSettings-Dn5pPRVS.mjs → RecurringSettings-CIpZL4CX.mjs} +1 -1
  8. package/dist/{SpendingLegend-RtFvutJ0.mjs → SpendingLegend-DIWHSsKw.mjs} +1 -1
  9. package/dist/{TransactionDetails-Cb6vauzy.mjs → TransactionDetails-Db8dwHoM.mjs} +1 -1
  10. package/dist/WidgetContainer-CCR7I0gu.mjs +470 -0
  11. package/dist/accounts/index.es.js +4 -4
  12. package/dist/budgets/index.es.js +5 -5
  13. package/dist/cashflow/index.es.js +4 -4
  14. package/dist/common/hooks/useWidgetHeaderStyles.d.ts +1 -0
  15. package/dist/common/index.es.js +5 -5
  16. package/dist/dashboard/index.es.js +1 -1
  17. package/dist/debts/index.es.js +2 -2
  18. package/dist/finstrong/index.es.js +5 -5
  19. package/dist/goals/index.es.js +2 -2
  20. package/dist/help/index.es.js +2 -2
  21. package/dist/investments/index.es.js +2 -2
  22. package/dist/networth/index.es.js +2 -2
  23. package/dist/notifications/index.es.js +1 -1
  24. package/dist/recurringtransactions/index.es.js +6 -6
  25. package/dist/settings/index.es.js +5 -5
  26. package/dist/spending/index.es.js +4 -4
  27. package/dist/transactions/index.es.js +4 -4
  28. package/dist/trends/index.es.js +3 -3
  29. package/dist/{useScreenSize-CUcpY7aJ.mjs → useScreenSize-CeFhWTt_.mjs} +1 -1
  30. package/package.json +8 -8
  31. package/dist/WidgetContainer-MhgZzIaI.mjs +0 -468
package/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## [8.1.2] - 04-22-2026
2
+
3
+ - **FIXED** - Widget header title flash on initial render
4
+ - **FIXED** - Menu button showing incorrectly on large viewports in compact containers
5
+
1
6
  ## [8.1.1] - 04-22-2026
2
7
 
3
8
  - **FIXED** - payment dates
@@ -1,5 +1,5 @@
1
1
  import { makeAutoObservable as h, runInAction as a } from "mobx";
2
- import { i as g } from "./BudgetUtil-Cwvpb7xl.mjs";
2
+ import { i as g } from "./BudgetUtil-DalEN9--.mjs";
3
3
  import { A as d } from "./AccountApi-WEM2M9tg.mjs";
4
4
  import { d as p } from "./Accounts-DX3xJE97.mjs";
5
5
  import { A as s, d as u } from "./Account-CMjOp7S2.mjs";
@@ -27,7 +27,7 @@ import ut from "@mui/material/IconButton";
27
27
  import gt from "@mui/material/InputAdornment";
28
28
  import T from "@mui/material/Stack";
29
29
  import ft from "@mui/material/TextField";
30
- import { u as pt } from "./useScreenSize-CUcpY7aJ.mjs";
30
+ import { u as pt } from "./useScreenSize-CeFhWTt_.mjs";
31
31
  import { m as ht } from "./hooks-HwStH7q_.mjs";
32
32
  import { b as $ } from "./Category-Ccoew_sA.mjs";
33
33
  import { b as j } from "./Localization-CkQ49EKr.mjs";
@@ -18,7 +18,7 @@ import At from "@mui/material/Breadcrumbs";
18
18
  import { useTheme as Q } from "@mui/material/styles";
19
19
  import { b as s } from "./Localization-CkQ49EKr.mjs";
20
20
  import { E as Ot, a as Nt, P as Lt } from "./Help-CgpJK03Q.mjs";
21
- import { u as Dt } from "./useScreenSize-CUcpY7aJ.mjs";
21
+ import { u as Dt } from "./useScreenSize-CeFhWTt_.mjs";
22
22
  import { observer as lt } from "mobx-react-lite";
23
23
  import dt from "@mui/material/Alert";
24
24
  import gt from "@mui/material/Snackbar";
@@ -18,7 +18,7 @@ import { parseISO as me } from "date-fns/parseISO";
18
18
  import J from "@mui/material/Button";
19
19
  import { Delete as pe, Add as ye, ReceiptLong as he } from "@mxenabled/mx-icons";
20
20
  import { T as V, u as fe, S as ge, a as Ce } from "./EmbeddedCard-BCcn_fK2.mjs";
21
- import { T as be } from "./TransactionDetails-Cb6vauzy.mjs";
21
+ import { T as be } from "./TransactionDetails-Db8dwHoM.mjs";
22
22
  import { addYears as j } from "date-fns/addYears";
23
23
  import { getDayOfYear as xe } from "date-fns/getDayOfYear";
24
24
  import { setDayOfYear as Se } from "date-fns/setDayOfYear";
@@ -21,7 +21,7 @@ import { b as he, f as ue } from "./NumberFormatting-CyrvFgfd.mjs";
21
21
  import { T as R, a as D } from "./ToggleListItem-BLu_fWA2.mjs";
22
22
  import { D as B } from "./Dialog-iLlBR8TG.mjs";
23
23
  import { C as _e } from "./CurrencyInput-CSJ3zMgE.mjs";
24
- import { u as pe } from "./useScreenSize-CUcpY7aJ.mjs";
24
+ import { u as pe } from "./useScreenSize-CeFhWTt_.mjs";
25
25
  import { D as K } from "./Drawer-XPaLYjiO.mjs";
26
26
  import fe from "@mui/material/Collapse";
27
27
  import ge from "@mui/material/Card";
@@ -7,7 +7,7 @@ import x from "@mui/material/Tabs";
7
7
  import d from "@mui/material/Divider";
8
8
  import R from "@mui/material/List";
9
9
  import T from "@mui/material/Stack";
10
- import { R as C, A as S, a as E, M as v } from "./ManageIncome-wgo-qbdP.mjs";
10
+ import { R as C, A as S, a as E, M as v } from "./ManageIncome-CrHDAku7.mjs";
11
11
  import { u as _, i as A, g as f } from "./hooks-HwStH7q_.mjs";
12
12
  import { b as y, F as N } from "./RepeatingTransaction-D2gmBTd0.mjs";
13
13
  import { A as m } from "./Analytics-0Xm_BjHU.mjs";
@@ -11,7 +11,7 @@ import { CategoryIcon as G, CategoryIconVariants as O, Text as y, P as $ } from
11
11
  import { D as j } from "./Donut-D7ekbgf5.mjs";
12
12
  import { u as R } from "./useAriaLive-MkYebyUR.mjs";
13
13
  import { u as v } from "./hooks-HwStH7q_.mjs";
14
- import { u as V } from "./useScreenSize-CUcpY7aJ.mjs";
14
+ import { u as V } from "./useScreenSize-CeFhWTt_.mjs";
15
15
  import { f as b } from "./NumberFormatting-CyrvFgfd.mjs";
16
16
  const D = 5, B = (i, l, g, m) => m.reduce((o, n) => {
17
17
  const a = i.find((s) => s.guid === n.category_guid);
@@ -12,7 +12,7 @@ import { endOfMonth as Pe } from "date-fns/endOfMonth";
12
12
  import { getUnixTime as Ae } from "date-fns/getUnixTime";
13
13
  import { isBefore as ze } from "date-fns/isBefore";
14
14
  import { startOfMonth as Ne } from "date-fns/startOfMonth";
15
- import { l as Ve, d as We, C as Ye, c as je, i as qe } from "./BudgetUtil-Cwvpb7xl.mjs";
15
+ import { l as Ve, d as We, C as Ye, c as je, i as qe } from "./BudgetUtil-DalEN9--.mjs";
16
16
  import ue from "@mui/material/Button";
17
17
  import Qe from "@mui/material/FormGroup";
18
18
  import de from "@mui/material/IconButton";
@@ -0,0 +1,470 @@
1
+ import { jsxs as g, jsx as e } from "react/jsx-runtime";
2
+ import p from "react";
3
+ import { observer as oe } from "mobx-react-lite";
4
+ import G from "@mui/material/Button";
5
+ import le from "@mui/material/Card";
6
+ import de from "@mui/material/CardContent";
7
+ import me from "@mui/material/Divider";
8
+ import $ from "@mui/material/IconButton";
9
+ import ce from "@mui/material/Paper";
10
+ import B from "@mui/material/Stack";
11
+ import { ChevronLeft as ue } from "@mxenabled/mx-icons";
12
+ import { Icon as x, Text as F, DateRangePicker as J } from "@mxenabled/mxui";
13
+ import { u as pe } from "./useDimensions-CeDR9V8N.mjs";
14
+ import { G as ge } from "./GlobalAccountFilter-CZbiDwBH.mjs";
15
+ import { b as ne, u as ie, g as he, a as fe, W as be } from "./hooks-HwStH7q_.mjs";
16
+ import { addMonths as Z } from "date-fns/addMonths";
17
+ import { addDays as Re } from "date-fns/addDays";
18
+ import { addYears as ee } from "date-fns/addYears";
19
+ import { differenceInCalendarDays as _e } from "date-fns/differenceInCalendarDays";
20
+ import { endOfDay as Ce } from "date-fns/endOfDay";
21
+ import { endOfMonth as z } from "date-fns/endOfMonth";
22
+ import { endOfToday as te } from "date-fns/endOfToday";
23
+ import { endOfYear as xe } from "date-fns/endOfYear";
24
+ import { startOfMonth as De } from "date-fns/startOfMonth";
25
+ import { startOfToday as ke } from "date-fns/startOfToday";
26
+ import { startOfYear as ye } from "date-fns/startOfYear";
27
+ import { subMonths as K } from "date-fns/subMonths";
28
+ import { subDays as Te } from "date-fns/subDays";
29
+ import { subYears as ae } from "date-fns/subYears";
30
+ import re from "@mui/material/Box";
31
+ import ve from "@mui/material/ButtonGroup";
32
+ import Me from "@mui/material/Tab";
33
+ import Pe from "@mui/material/Tabs";
34
+ import Se from "@mui/material/ToggleButton";
35
+ import Le from "@mui/material/ToggleButtonGroup";
36
+ import Ye from "@mui/material/styles/useTheme";
37
+ import { u as Ae } from "./useAriaLive-MkYebyUR.mjs";
38
+ import { D as Ee } from "./Dialog-iLlBR8TG.mjs";
39
+ import { D as Be } from "./Drawer-XPaLYjiO.mjs";
40
+ import { u as se } from "./useScreenSize-CeFhWTt_.mjs";
41
+ import { f as M, D as P } from "./DateFormats-CaOj_4eI.mjs";
42
+ import { L as Oe } from "./Loader-CxeBwuPG.mjs";
43
+ import we from "@mui/material/useMediaQuery";
44
+ import { A as Ne } from "./Analytics-0Xm_BjHU.mjs";
45
+ const Ie = (n) => {
46
+ const { isDesktop: d, isMobile: a, isSmallTablet: m, isTablet: r } = se(n), i = we("(min-width:900px)"), R = 24;
47
+ let s = 48, D = 32, h = 0, c = "h1", _ = !1;
48
+ const o = a || m;
49
+ r && !m ? (s = 24, D = 24, c = "h2") : o && (s = 8, D = 10, h = 10, c = "h3", _ = !0);
50
+ const A = {
51
+ pb: o ? 12 : 0,
52
+ ...o && {
53
+ px: s,
54
+ "& .mx-cmn-date-range-selector": { m: 0, width: "100%" },
55
+ "& .mx-cmn-date-range-selector > .MuiBox-root": { display: "flex" },
56
+ "& .MuiButtonGroup-root": { width: "100%" },
57
+ "& .MuiButtonGroup-middleButton": { flex: 1 },
58
+ "& .MuiToggleButtonGroup-root": { width: "100%", justifyContent: "center" }
59
+ }
60
+ };
61
+ return {
62
+ actionsFlex: o ? 0 : 1,
63
+ containerSquareCorners: _,
64
+ headerHeadingLevel: c,
65
+ headerPaddingBottom: h,
66
+ headerPaddingTop: D,
67
+ headerPaddingX: s,
68
+ iconSize: R,
69
+ isCompact: o,
70
+ isDesktop: d,
71
+ isViewportAbove900: i,
72
+ slotSx: A
73
+ };
74
+ }, ze = ({
75
+ calendarActions: n,
76
+ color: d = "primary",
77
+ copy: a,
78
+ range: m = [De(ke()), z(te())],
79
+ shouldShrinkToIcon: r = !0,
80
+ variant: i = "outlined"
81
+ }) => {
82
+ const R = Ye(), { isMobile: s } = se(), { announce: D, ariaLive: h } = Ae(), [c, _] = p.useState(m), [o, A] = p.useState(a.dateRangePickerCopy.dateRangeThisMonth), [C, O] = p.useState(c), [E, k] = p.useState(!1), [H, W] = p.useState(!0), [S, j] = p.useState(6), w = {
83
+ buttons: [
84
+ { ariaLabel: "3 Months", label: "3M", value: 3 },
85
+ { ariaLabel: "6 Months", label: "6M", value: 6 },
86
+ { ariaLabel: "9 Months", label: "9M", value: 9 },
87
+ { ariaLabel: "1 Year", label: "1Y", value: 12 }
88
+ ],
89
+ tabs: [
90
+ { label: "3 Months", value: 3 },
91
+ { label: "6 Months", value: 6 },
92
+ { label: "9 Months", value: 9 },
93
+ { label: "1 Year", value: 12 }
94
+ ]
95
+ };
96
+ p.useEffect(() => {
97
+ _(m), O(m);
98
+ }, [m]), p.useEffect(() => {
99
+ (i === "timeframebuttons" || i === "timeframetabs") && n.onRangeChanged(V());
100
+ }, [S]);
101
+ const V = () => {
102
+ const t = z(te());
103
+ return [z(K(t, S)), t];
104
+ }, N = (t) => {
105
+ const [l, u] = c, f = t === "previous";
106
+ let b;
107
+ if (o === a.dateRangePickerCopy.dateRangeThisMonth || o === a.dateRangePickerCopy.dateRangeLastMonth)
108
+ b = [
109
+ f ? K(l, 1) : Z(l, 1),
110
+ z(f ? K(u, 1) : Z(u, 1))
111
+ ];
112
+ else if (o === a.dateRangePickerCopy.dateRangeYTD || o === a.dateRangePickerCopy.dateRangeLastYear) {
113
+ const T = ye(l), v = xe(l);
114
+ b = [
115
+ f ? ae(T, 1) : ee(T, 1),
116
+ f ? ae(v, 1) : ee(v, 1)
117
+ ];
118
+ } else {
119
+ const T = _e(u, l), v = f ? Te : Re;
120
+ b = [v(l, T), v(u, T)];
121
+ }
122
+ _(b), n.onRangeChanged(b);
123
+ }, L = () => {
124
+ _(C), W(
125
+ o === a.dateRangePickerCopy.dateRangeThisMonth || o === a.dateRangePickerCopy.dateRangeLastMonth
126
+ ), n.onRangeChanged(C);
127
+ }, y = (t, l) => {
128
+ t[1] = t[1] ?? t[0];
129
+ const u = [t[0], t[1] ? Ce(t[1]) : t[1]], f = M(u[0], P.MONTH_DAY_YEAR), b = M(u[1], P.MONTH_DAY_YEAR);
130
+ O(u), A(l), D(`${a.dateRangePickerCopy}: ${f} - ${b}`);
131
+ }, Y = (t) => {
132
+ j(t);
133
+ };
134
+ return /* @__PURE__ */ g(re, { className: "mx-cmn-date-range-selector", m: 4, children: [
135
+ /* @__PURE__ */ g(
136
+ re,
137
+ {
138
+ sx: {
139
+ [R.breakpoints.down("sm")]: {
140
+ display: r ? "none" : "flex",
141
+ justifyContent: "center"
142
+ },
143
+ [R.breakpoints.up("sm")]: { display: "inline-flex" }
144
+ },
145
+ children: [
146
+ i === "readonly" && /* @__PURE__ */ g(B, { alignItems: "center", direction: "row", gap: 8, children: [
147
+ /* @__PURE__ */ e(x, { name: "calendar_month", size: 24 }),
148
+ /* @__PURE__ */ e(F, { bold: !0, children: M(C[0], P.MONTH_DAY) }),
149
+ /* @__PURE__ */ e(x, { name: "remove" }),
150
+ /* @__PURE__ */ e(F, { bold: !0, children: M(C[1], P.MONTH_DAY_YEAR) })
151
+ ] }),
152
+ i !== "readonly" && i !== "timeframebuttons" && i !== "timeframetabs" && /* @__PURE__ */ g(
153
+ ve,
154
+ {
155
+ color: d,
156
+ sx: {
157
+ "& .MuiButtonGroup-grouped": {
158
+ padding: s ? 0 : 12
159
+ },
160
+ "& .MuiButtonGroup-middleButton": {
161
+ px: 24
162
+ },
163
+ height: 44
164
+ },
165
+ variant: i,
166
+ children: [
167
+ /* @__PURE__ */ e(
168
+ G,
169
+ {
170
+ "aria-disabled": n.shouldDisablePrevious,
171
+ "aria-label": a.dateRangePreviousAria,
172
+ color: n.shouldDisablePrevious ? "secondary" : "primary",
173
+ onClick: () => n.shouldDisablePrevious ? null : N("previous"),
174
+ children: /* @__PURE__ */ e(x, { name: "chevron_left", size: 20 })
175
+ }
176
+ ),
177
+ /* @__PURE__ */ e(
178
+ G,
179
+ {
180
+ "aria-disabled": n.shouldDisablePicker,
181
+ color: d,
182
+ onClick: () => n.shouldDisablePicker ? null : k(!0),
183
+ startIcon: /* @__PURE__ */ e(x, { name: "calendar_month", size: 20 }),
184
+ sx: {
185
+ p: s ? 0 : 8
186
+ },
187
+ children: H ? M(c[0], P.MONTH_YEAR) : /* @__PURE__ */ g("span", { children: [
188
+ M(c[0], P.MONTH_DAY_YEAR),
189
+ " -",
190
+ " ",
191
+ M(c[1], P.MONTH_DAY_YEAR)
192
+ ] })
193
+ }
194
+ ),
195
+ /* @__PURE__ */ e(
196
+ G,
197
+ {
198
+ "aria-disabled": n.shouldDisableNext,
199
+ "aria-label": a.dateRangeNextAria,
200
+ color: n.shouldDisableNext ? "secondary" : "primary",
201
+ onClick: () => n.shouldDisableNext ? null : N("next"),
202
+ children: /* @__PURE__ */ e(x, { name: "chevron_right", size: 20 })
203
+ }
204
+ )
205
+ ]
206
+ }
207
+ ),
208
+ i === "timeframebuttons" && /* @__PURE__ */ e(
209
+ Le,
210
+ {
211
+ "aria-label": a.dateRangeEditTitle,
212
+ color: d,
213
+ exclusive: !0,
214
+ orientation: "horizontal",
215
+ value: S,
216
+ children: w.buttons.map((t) => /* @__PURE__ */ e(
217
+ Se,
218
+ {
219
+ "aria-label": t.ariaLabel,
220
+ onClick: () => Y(t.value),
221
+ sx: { width: 56 },
222
+ value: t.value,
223
+ children: t.label
224
+ },
225
+ t.label
226
+ ))
227
+ }
228
+ ),
229
+ i === "timeframetabs" && /* @__PURE__ */ e(
230
+ Pe,
231
+ {
232
+ indicatorColor: "primary",
233
+ onChange: (t, l) => Y(l),
234
+ textColor: "primary",
235
+ value: S,
236
+ variant: "fullWidth",
237
+ children: w.tabs.map((t) => /* @__PURE__ */ e(
238
+ Me,
239
+ {
240
+ label: /* @__PURE__ */ e(F, { bold: !0, variant: "body1", children: t.label }),
241
+ sx: { minWidth: 80 },
242
+ value: t.value
243
+ },
244
+ t.label
245
+ ))
246
+ }
247
+ )
248
+ ]
249
+ }
250
+ ),
251
+ E && s && /* @__PURE__ */ g(
252
+ Be,
253
+ {
254
+ ariaLabelClose: a.dateRangeCloseAria,
255
+ isOpen: E,
256
+ onClose: () => k(!1),
257
+ onPrimaryAction: () => {
258
+ L(), k(!1);
259
+ },
260
+ primaryText: a.dateRangeEditApply,
261
+ title: a.dateRangeEditTitle,
262
+ children: [
263
+ h,
264
+ /* @__PURE__ */ e(
265
+ J,
266
+ {
267
+ copy: a.dateRangePickerCopy,
268
+ dateRange: C,
269
+ onRangeChanged: y,
270
+ selectedShortcut: o,
271
+ sx: { p: 0 }
272
+ }
273
+ )
274
+ ]
275
+ }
276
+ ),
277
+ E && !s && /* @__PURE__ */ g(
278
+ Ee,
279
+ {
280
+ copy: { title: a.dateRangeEditTitle },
281
+ isOpen: !0,
282
+ onClose: () => k(!1),
283
+ onPrimaryAction: () => L(),
284
+ primaryText: a.dateRangeEditApply,
285
+ sx: {
286
+ "& .MuiDialogContent-root": {
287
+ padding: 0
288
+ }
289
+ },
290
+ children: [
291
+ h,
292
+ /* @__PURE__ */ e(
293
+ J,
294
+ {
295
+ copy: a.dateRangePickerCopy,
296
+ dateRange: C,
297
+ onRangeChanged: y,
298
+ selectedShortcut: o,
299
+ sx: {
300
+ pt: 0,
301
+ "& .MuiPickersLayout-toolbar": {
302
+ gridColumn: "1/4"
303
+ }
304
+ }
305
+ }
306
+ )
307
+ ]
308
+ }
309
+ )
310
+ ] });
311
+ }, Ge = oe(
312
+ ({ calendarActions: n, dateRange: d, dateRangeVariant: a }) => {
313
+ const { displayedDateRange: m } = ne(), { common: r } = ie(), i = {
314
+ dateRangePickerCopy: {
315
+ dateRangeFrom: r.date_range_picker.from,
316
+ dateRangeTo: r.date_range_picker.to,
317
+ dateRangeCustom: r.date_range_picker.custom,
318
+ dateRangeSelectARange: r.date_range_picker.select_range,
319
+ dateRangeThisMonth: r.date_range_picker.this_month,
320
+ dateRangeLastMonth: r.date_range_picker.last_month,
321
+ dateRangeLast30Days: r.date_range_picker.last_30_days,
322
+ dateRangeLast90Days: r.date_range_picker.last_90_days,
323
+ dateRangeYTD: r.date_range_picker.ytd,
324
+ dateRangeLastYear: r.date_range_picker.last_year,
325
+ dateRangeSelect: r.date_range_picker.select
326
+ },
327
+ dateRangeEditApply: r.date_range_picker.edit_apply,
328
+ dateRangeEditTitle: r.date_range_picker.edit_title,
329
+ dateRangeNextAria: r.date_range_picker.next_aria,
330
+ dateRangePreviousAria: r.date_range_picker.previous_aria
331
+ }, R = d ? d.start : m.start, s = d ? d.end : m.end;
332
+ return /* @__PURE__ */ e(
333
+ ze,
334
+ {
335
+ calendarActions: n,
336
+ copy: i,
337
+ range: [R, s],
338
+ shouldShrinkToIcon: !1,
339
+ variant: a
340
+ }
341
+ );
342
+ }
343
+ ), Yt = oe(
344
+ ({
345
+ actions: n,
346
+ allowedAccountTypes: d,
347
+ calendarActions: a,
348
+ children: m,
349
+ className: r = "mx-cmn-widget",
350
+ dateRange: i,
351
+ dateRangeVariant: R,
352
+ hasDivider: s = !1,
353
+ onAccountsFilterClick: D,
354
+ onBackClick: h,
355
+ onMenuClick: c,
356
+ showAccountFilter: _ = !0,
357
+ slotComponent: o,
358
+ sx: A = {},
359
+ title: C = ""
360
+ }) => {
361
+ const [O, { height: E, width: k }] = pe(), { onEvent: H } = he(), {
362
+ actionsFlex: W,
363
+ containerSquareCorners: S,
364
+ headerHeadingLevel: j,
365
+ headerPaddingBottom: w,
366
+ headerPaddingTop: V,
367
+ headerPaddingX: N,
368
+ iconSize: L,
369
+ isCompact: y,
370
+ isDesktop: Y,
371
+ isViewportAbove900: t,
372
+ slotSx: l
373
+ } = Ie(k), { isCopyLoaded: u } = ne(), { common: f } = ie(), {
374
+ config: { display_widget_headings: b }
375
+ } = fe(), T = () => {
376
+ h && (h(), H(Ne.WIDGET_BACK_CLICK));
377
+ };
378
+ if (!u)
379
+ return /* @__PURE__ */ e(Oe, {});
380
+ const v = () => c && y && !t ? /* @__PURE__ */ e($, { color: "primary", onClick: c, sx: { p: 10 }, children: /* @__PURE__ */ e(x, { name: "menu_open", size: L, sx: { transform: "rotate(180deg)" } }) }) : h ? /* @__PURE__ */ e(
381
+ $,
382
+ {
383
+ "aria-label": f.back_to_dashboard,
384
+ color: "primary",
385
+ onClick: T,
386
+ sx: { p: 10 },
387
+ children: /* @__PURE__ */ e(ue, { size: 24 })
388
+ }
389
+ ) : null, X = a && /* @__PURE__ */ e(B, { alignItems: "center", sx: l, children: /* @__PURE__ */ e(
390
+ Ge,
391
+ {
392
+ calendarActions: a,
393
+ dateRange: i,
394
+ dateRangeVariant: R
395
+ }
396
+ ) });
397
+ return /* @__PURE__ */ e(
398
+ ce,
399
+ {
400
+ className: r,
401
+ elevation: 1,
402
+ ref: O,
403
+ square: S,
404
+ sx: { borderBottomLeftRadius: 0, borderBottomRightRadius: 0, margin: 0, ...A },
405
+ children: /* @__PURE__ */ g(le, { children: [
406
+ /* @__PURE__ */ g(
407
+ B,
408
+ {
409
+ alignItems: "center",
410
+ alignSelf: "stretch",
411
+ direction: "row",
412
+ justifyContent: "space-between",
413
+ sx: {
414
+ pb: w,
415
+ pt: V,
416
+ px: N
417
+ },
418
+ children: [
419
+ v(),
420
+ /* @__PURE__ */ e(B, { alignItems: "flex-start", minWidth: 0, sx: { flex: 1 }, children: b && /* @__PURE__ */ e(F, { sx: { width: "100%" }, truncate: !0, variant: j, children: C }) }),
421
+ !y && (o || X),
422
+ /* @__PURE__ */ g(
423
+ B,
424
+ {
425
+ alignItems: "center",
426
+ direction: "row",
427
+ justifyContent: "flex-end",
428
+ sx: { flex: W, flexShrink: 0 },
429
+ children: [
430
+ _ && /* @__PURE__ */ e(
431
+ ge,
432
+ {
433
+ allowedAccountTypes: d,
434
+ isDesktop: Y,
435
+ onAccountFilterClick: D
436
+ }
437
+ ),
438
+ n?.map((q) => {
439
+ if (p.isValidElement(q))
440
+ return p.cloneElement(q, { isDesktop: Y });
441
+ const { iconName: I, onClick: Q, label: U } = q;
442
+ return Y ? /* @__PURE__ */ e(
443
+ G,
444
+ {
445
+ onClick: Q,
446
+ startIcon: /* @__PURE__ */ e(x, { name: I, size: L }),
447
+ children: U
448
+ },
449
+ I
450
+ ) : /* @__PURE__ */ e($, { "aria-label": U, color: "primary", onClick: Q, children: /* @__PURE__ */ e(x, { name: I, size: L }) }, I);
451
+ })
452
+ ]
453
+ }
454
+ )
455
+ ]
456
+ }
457
+ ),
458
+ y && (o || X),
459
+ y && s && /* @__PURE__ */ e(me, {}),
460
+ /* @__PURE__ */ e(de, { children: /* @__PURE__ */ e(be, { availableHeight: E, availableWidth: k, children: m }) })
461
+ ] })
462
+ }
463
+ );
464
+ }
465
+ );
466
+ export {
467
+ ze as D,
468
+ Yt as W,
469
+ Ie as u
470
+ };
@@ -56,16 +56,16 @@ import t3 from "@mui/material/Link";
56
56
  import n3 from "@mui/material/Paper";
57
57
  import { endOfToday as o3, subDays as i3, startOfToday as c3 } from "date-fns";
58
58
  import { T as a3 } from "../EmbeddedCard-BCcn_fK2.mjs";
59
- import { T as s3 } from "../TransactionDetails-Cb6vauzy.mjs";
59
+ import { T as s3 } from "../TransactionDetails-Db8dwHoM.mjs";
60
60
  import { T as r1 } from "../TabContentContainer-CnMXkVqr.mjs";
61
61
  import { f as d1 } from "../NumberFormatting-CyrvFgfd.mjs";
62
62
  import { C as l3 } from "../ConnectionsDrawer-DxpSlJN7.mjs";
63
- import { u as H1 } from "../useScreenSize-CUcpY7aJ.mjs";
63
+ import { u as H1 } from "../useScreenSize-CeFhWTt_.mjs";
64
64
  import { u as n1 } from "../useWidgetLoadTimer-wkBTL5xx.mjs";
65
65
  import { L as o1 } from "../Loader-CxeBwuPG.mjs";
66
- import { W as r3 } from "../WidgetContainer-MhgZzIaI.mjs";
66
+ import { W as r3 } from "../WidgetContainer-CCR7I0gu.mjs";
67
67
  import { M as v1 } from "../MiniWidgetContainer-CmTGSUL5.mjs";
68
- import { A as l2 } from "../AccountStore-nxHZqg1Z.mjs";
68
+ import { A as l2 } from "../AccountStore-B3S_p5Qa.mjs";
69
69
  const d3 = (t, o) => {
70
70
  const n = _1.includes(o) ? x1(t) : [], i = L1.includes(o) ? R1(t) : [], c = f1.includes(o) ? S1(t) : [];
71
71
  return [n, i, c].filter((l) => l.length > 0);
@@ -29,7 +29,7 @@ import { C as qe } from "../ConnectionsDrawer-DxpSlJN7.mjs";
29
29
  import * as O from "d3";
30
30
  import Je from "@mui/material/Tooltip";
31
31
  import { useTheme as Ge, alpha as Qe } from "@mui/material/styles";
32
- import { u as ge } from "../useScreenSize-CUcpY7aJ.mjs";
32
+ import { u as ge } from "../useScreenSize-CeFhWTt_.mjs";
33
33
  import { L as pe } from "../Loader-CxeBwuPG.mjs";
34
34
  import { E as _e } from "../EmptyState-DHAkGsjk.mjs";
35
35
  import { A as P } from "../Analytics-0Xm_BjHU.mjs";
@@ -37,7 +37,7 @@ import Ee from "@mui/material/Tab";
37
37
  import et from "@mui/material/Tabs";
38
38
  import { e as tt } from "../exportTransactionsToCSV-B2Lp7AMl.mjs";
39
39
  import { T as ve } from "../EmbeddedCard-BCcn_fK2.mjs";
40
- import { T as ot, c as nt } from "../TransactionDetails-Cb6vauzy.mjs";
40
+ import { T as ot, c as nt } from "../TransactionDetails-Db8dwHoM.mjs";
41
41
  import Te from "@mui/material/Card";
42
42
  import De from "@mui/material/CardContent";
43
43
  import { S as Se } from "../StatusBar-CPfSXe80.mjs";
@@ -46,10 +46,10 @@ import { u as at, C as rt } from "../CategorySelectorDrawer-DjeHNx71.mjs";
46
46
  import je from "@mui/material/CardHeader";
47
47
  import { subDays as st } from "date-fns/subDays";
48
48
  import it from "@mui/material/IconButton";
49
- import { M as ct } from "../ManageIncome-wgo-qbdP.mjs";
49
+ import { M as ct } from "../ManageIncome-CrHDAku7.mjs";
50
50
  import { u as ze } from "../useWidgetLoadTimer-wkBTL5xx.mjs";
51
- import { W as lt } from "../WidgetContainer-MhgZzIaI.mjs";
52
- import { u as dt, l as ut, d as mt } from "../BudgetUtil-Cwvpb7xl.mjs";
51
+ import { W as lt } from "../WidgetContainer-CCR7I0gu.mjs";
52
+ import { u as dt, l as ut, d as mt } from "../BudgetUtil-DalEN9--.mjs";
53
53
  import { M as gt } from "../MiniWidgetContainer-CmTGSUL5.mjs";
54
54
  import { b as we } from "../CategoryUtil-BJOHgYKS.mjs";
55
55
  const pt = I(() => {
@@ -10,7 +10,7 @@ import ie from "@mui/material/styles/useTheme";
10
10
  import { Text as m, P as N, Icon as z, InstitutionLogo as xe, H2 as de, H3 as qe } from "@mxenabled/mxui";
11
11
  import { G as Ke, t as me, u as k, p as ae, d as ke, b as P, i as B, g as Le, a as Ve, h as Ne, o as Xe } from "../hooks-HwStH7q_.mjs";
12
12
  import { C as E } from "../CurrencyText-oqd6cX3M.mjs";
13
- import { u as ue } from "../useScreenSize-CUcpY7aJ.mjs";
13
+ import { u as ue } from "../useScreenSize-CeFhWTt_.mjs";
14
14
  import { L as Z } from "../Loader-CxeBwuPG.mjs";
15
15
  import { b as H } from "../Localization-CkQ49EKr.mjs";
16
16
  import { I as pe } from "../CashflowStore-BEi92kJg.mjs";
@@ -18,7 +18,7 @@ import { C as $n } from "../CashflowStore-BEi92kJg.mjs";
18
18
  import { u as Oe } from "../useWidgetLoadTimer-wkBTL5xx.mjs";
19
19
  import { M as Je } from "../MiniWidgetContainer-CmTGSUL5.mjs";
20
20
  import { E as Qe } from "../EmptyState-DHAkGsjk.mjs";
21
- import { R as Ze } from "../RecurringSettings-Dn5pPRVS.mjs";
21
+ import { R as Ze } from "../RecurringSettings-CIpZL4CX.mjs";
22
22
  import et from "@mui/material/Tabs";
23
23
  import ye from "@mui/material/Tab";
24
24
  import { getUnixTime as le } from "date-fns/getUnixTime";
@@ -36,11 +36,11 @@ import { alpha as ot, keyframes as it } from "@mui/material/styles";
36
36
  import { DataGridPro as at } from "@mui/x-data-grid-pro";
37
37
  import { T as Ce } from "../TabContentContainer-CnMXkVqr.mjs";
38
38
  import W from "@mui/material/Button";
39
- import { M as rt, S as st, i as ct, b as we, c as lt } from "../ManageIncome-wgo-qbdP.mjs";
39
+ import { M as rt, S as st, i as ct, b as we, c as lt } from "../ManageIncome-CrHDAku7.mjs";
40
40
  import { D as He } from "../Drawer-XPaLYjiO.mjs";
41
41
  import { subDays as We } from "date-fns/subDays";
42
42
  import { endOfToday as dt } from "date-fns/endOfToday";
43
- import { W as mt } from "../WidgetContainer-MhgZzIaI.mjs";
43
+ import { W as mt } from "../WidgetContainer-CCR7I0gu.mjs";
44
44
  import { A as X } from "../Account-CMjOp7S2.mjs";
45
45
  import { A as Se } from "../Analytics-0Xm_BjHU.mjs";
46
46
  import { formatISO as ut } from "date-fns/formatISO";
@@ -8,6 +8,7 @@ export declare const useWidgetHeaderStyles: (availableWidth?: number) => {
8
8
  iconSize: number;
9
9
  isCompact: boolean;
10
10
  isDesktop: boolean;
11
+ isViewportAbove900: boolean;
11
12
  slotSx: {
12
13
  px?: number | undefined;
13
14
  '& .mx-cmn-date-range-selector'?: {