@mx-cartographer/experiences 7.13.21 → 7.13.22-alpha.al0

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 (67) hide show
  1. package/dist/{AccountDetailsHeader-D9gbTbUt.mjs → AccountDetailsHeader-CG9VtEpj.mjs} +2 -2
  2. package/dist/{AccountListItem-D9WJDbZ1.mjs → AccountListItem-BDFCEhSI.mjs} +2 -2
  3. package/dist/{AccountStore-DpYvNnql.mjs → AccountStore-Bn1eH2EU.mjs} +1 -1
  4. package/dist/{BudgetUtil-CLhRnCoX.mjs → BudgetUtil-BCSxP3M3.mjs} +1 -1
  5. package/dist/{CategorySelectorDrawer-Dc9Widy9.mjs → CategorySelectorDrawer-tvJUjmwZ.mjs} +1 -1
  6. package/dist/{Connect-eYIWqCEr.mjs → Connect-CmjOgy5v.mjs} +1 -1
  7. package/dist/{ConnectDrawer-C0wjwcJt.mjs → ConnectDrawer-Be0RkL7I.mjs} +2 -2
  8. package/dist/{ConnectionsDrawer-IA7vnv1J.mjs → ConnectionsDrawer-yeD_PsY1.mjs} +2 -2
  9. package/dist/{CurrencyInput-DuMktPu3.mjs → CurrencyInput-xu9UcYZR.mjs} +1 -1
  10. package/dist/DateRangeSelector-DE4UR77m.mjs +275 -0
  11. package/dist/{ExportCsvAction-izkIdXj5.mjs → ExportCsvAction-CLUDN8jI.mjs} +3 -3
  12. package/dist/{GlobalAccountFilter-B73Pw1hJ.mjs → GlobalAccountFilter-BkUeAltd.mjs} +90 -96
  13. package/dist/{GoalStore-DB58sKTC.mjs → GoalStore-DMhiGiF4.mjs} +1 -1
  14. package/dist/{Help-D-laTbKu.mjs → Help-pcoNjCaF.mjs} +1 -1
  15. package/dist/{LineChart-EAr5ox5U.mjs → LineChart-DIjY-HBq.mjs} +1 -1
  16. package/dist/{ListItemAction-4KB7P75M.mjs → ListItemAction-BQIdxB-9.mjs} +1 -1
  17. package/dist/{ManageIncome-B1j-AzI1.mjs → ManageIncome-DWVaWpCT.mjs} +4 -4
  18. package/dist/{MicroWidgetContainer-B_EnfvCq.mjs → MicroWidgetContainer-CTMkXRJM.mjs} +1 -1
  19. package/dist/{MiniWidgetContainer-Bhkv-hpz.mjs → MiniWidgetContainer-BKPN3c-6.mjs} +1 -1
  20. package/dist/{NotificationSettings-C77J42Ue.mjs → NotificationSettings-O3iUw7-O.mjs} +32 -32
  21. package/dist/{OriginalBalanceAction-DjpvVVFz.mjs → OriginalBalanceAction-2lCGZTRv.mjs} +3 -3
  22. package/dist/{RecurringSettings-Dyj3i0ZJ.mjs → RecurringSettings-DNko1CD0.mjs} +2 -2
  23. package/dist/{SpendingLegend-BgjazduU.mjs → SpendingLegend-CGYqNtOp.mjs} +1 -1
  24. package/dist/{StatusIndicator-CIKUOoN_.mjs → StatusIndicator-CnDblSmc.mjs} +2 -2
  25. package/dist/{Transaction-CqjlF6SO.mjs → Transaction-Bd0myZzA.mjs} +1 -1
  26. package/dist/{TransactionDetails-CwqokbQo.mjs → TransactionDetails-DAB5arBD.mjs} +6 -6
  27. package/dist/{TransactionStore-rpqhGX8m.mjs → TransactionStore-hzVucfUK.mjs} +2 -2
  28. package/dist/{ViewMoreMicroCard-D24H9kDm.mjs → ViewMoreMicroCard-BWCe3UeO.mjs} +1 -1
  29. package/dist/WidgetContainer-BPeSl0Dj.mjs +180 -0
  30. package/dist/WidgetContainerV2-BjOelON7.mjs +127 -0
  31. package/dist/accounts/index.es.js +218 -219
  32. package/dist/analytics/index.es.js +8 -8
  33. package/dist/budgets/index.es.js +408 -409
  34. package/dist/cashflow/index.es.js +227 -228
  35. package/dist/categories/index.es.js +1 -1
  36. package/dist/common/components/GlobalAccountFilter.d.ts +1 -1
  37. package/dist/common/components/WidgetContainer.d.ts +3 -2
  38. package/dist/common/components/WidgetContainerV2.d.ts +4 -0
  39. package/dist/common/components/index.d.ts +1 -0
  40. package/dist/common/index.es.js +167 -164
  41. package/dist/dashboard/index.es.js +5 -5
  42. package/dist/debts/index.es.js +585 -586
  43. package/dist/{exportTransactionsToCSV-CdTF_RqL.mjs → exportTransactionsToCSV-CamFllci.mjs} +1 -1
  44. package/dist/finstrong/FinstrongWidget.d.ts +1 -1
  45. package/dist/finstrong/index.es.js +641 -652
  46. package/dist/goals/GoalsWidget.d.ts +1 -1
  47. package/dist/goals/index.es.js +498 -499
  48. package/dist/help/index.es.js +8 -8
  49. package/dist/{hooks-BxkfR-Ff.mjs → hooks-DOWEalfb.mjs} +2 -2
  50. package/dist/insights/index.es.js +3 -3
  51. package/dist/investments/InvestmentsWidget.d.ts +1 -1
  52. package/dist/investments/index.es.js +448 -449
  53. package/dist/merchants/index.es.js +1 -1
  54. package/dist/microinsights/index.es.js +1 -1
  55. package/dist/networth/index.es.js +182 -196
  56. package/dist/notifications/index.es.js +2 -2
  57. package/dist/recurringtransactions/RecurringTransactionsWidget.d.ts +1 -1
  58. package/dist/recurringtransactions/index.es.js +240 -242
  59. package/dist/settings/index.es.js +7 -7
  60. package/dist/spending/index.es.js +8 -8
  61. package/dist/transactions/index.es.js +246 -248
  62. package/dist/trends/index.es.js +12 -12
  63. package/dist/{useAccountDisplayName-DKwT1mWv.mjs → useAccountDisplayName-DQc7zGqk.mjs} +1 -1
  64. package/dist/{useInsightsEnabled-DL_oNyI0.mjs → useInsightsEnabled-DojdZhOg.mjs} +1 -1
  65. package/dist/{useWidgetLoadTimer-DgN1bTyu.mjs → useWidgetLoadTimer-DmYEMfRw.mjs} +1 -1
  66. package/package.json +1 -1
  67. package/dist/WidgetContainer-B7xDq2bM.mjs +0 -441
@@ -10,7 +10,7 @@ import { useTheme as A } from "@mui/material/styles";
10
10
  import { CategoryIcon as G, CategoryIconVariants as O, Text as y, P as $ } from "@mxenabled/mxui";
11
11
  import { D as j } from "./Donut-CpxJlVvJ.mjs";
12
12
  import { u as R } from "./useAriaLive-MkYebyUR.mjs";
13
- import { u as v } from "./hooks-BxkfR-Ff.mjs";
13
+ import { u as v } from "./hooks-DOWEalfb.mjs";
14
14
  import { u as V } from "./useScreenSize-B6JyS_Lj.mjs";
15
15
  import { f as b } from "./NumberFormatting-QCaNwbjv.mjs";
16
16
  const D = 5, B = (i, l, g, c) => c.reduce((o, n) => {
@@ -5,13 +5,13 @@ import { useVirtualizer as H } from "@tanstack/react-virtual";
5
5
  import y from "@mui/material/Box";
6
6
  import W from "@mui/material/Divider";
7
7
  import B from "@mui/material/List";
8
- import { G as K, h as E, u as R, g as P } from "./hooks-BxkfR-Ff.mjs";
8
+ import { G as K, h as E, u as R, f as P } from "./hooks-DOWEalfb.mjs";
9
9
  import { MerchantLogo as Y, Icon as v, Text as l, P as Z, H2 as F } from "@mxenabled/mxui";
10
10
  import q from "@mui/material/ListItemAvatar";
11
11
  import J from "@mui/material/ListItemText";
12
12
  import s from "@mui/material/Stack";
13
13
  import { useTheme as Q } from "@mui/material/styles";
14
- import { T as X, L as ee, O as te } from "./Transaction-CqjlF6SO.mjs";
14
+ import { T as X, L as ee, O as te } from "./Transaction-Bd0myZzA.mjs";
15
15
  import { f as re } from "./NumberFormatting-QCaNwbjv.mjs";
16
16
  import { Receipt as oe } from "@mxenabled/mx-icons";
17
17
  import { fromUnixTime as w } from "date-fns/fromUnixTime";
@@ -1,7 +1,7 @@
1
1
  import { jsx as C } from "react/jsx-runtime";
2
2
  import A from "@mui/material/ListItem";
3
3
  import o from "@mui/material/ListItemButton";
4
- import { g as O } from "./hooks-BxkfR-Ff.mjs";
4
+ import { f as O } from "./hooks-DOWEalfb.mjs";
5
5
  const S = ({
6
6
  children: T,
7
7
  clickEventName: _,
@@ -8,14 +8,14 @@ import ce from "@mui/material/Paper";
8
8
  import v from "@mui/material/Stack";
9
9
  import { useTheme as U, alpha as Ce } from "@mui/material/styles";
10
10
  import { P as j, Text as x, H2 as Ge, MerchantLogo as Se, Toast as Be, CategoryIcon as Ne, CategoryIconVariants as De, TextField as Ie, Icon as le } from "@mxenabled/mxui";
11
- import { g as $e, C as Ke, a as Fe, b as He, i as Ue } from "./BudgetUtil-CLhRnCoX.mjs";
11
+ import { g as $e, C as Ke, a as Fe, b as He, i as Ue } from "./BudgetUtil-BCSxP3M3.mjs";
12
12
  import oe from "@mui/material/Button";
13
13
  import Ve from "@mui/material/FormGroup";
14
14
  import ae from "@mui/material/IconButton";
15
15
  import Oe from "@mui/material/TextField";
16
16
  import { u as pe } from "./useAriaLive-MkYebyUR.mjs";
17
- import { O as y } from "./Transaction-CqjlF6SO.mjs";
18
- import { u as S, h as O, m as Ye, d as ze, l as Le, g as w, b as We, o as je } from "./hooks-BxkfR-Ff.mjs";
17
+ import { O as y } from "./Transaction-Bd0myZzA.mjs";
18
+ import { u as S, h as O, m as Ye, d as ze, l as Le, f as w, b as We, o as je } from "./hooks-DOWEalfb.mjs";
19
19
  import { A as H } from "./Analytics-BYItVAe-.mjs";
20
20
  import qe from "@mui/material/ToggleButton";
21
21
  import { ChevronRight as we, Icon as D, Delete as _e, Cancel as me, Search as Xe, Edit as Je, Flag as Qe } from "@mxenabled/mx-icons";
@@ -27,8 +27,8 @@ import $ from "@mui/material/ListItemText";
27
27
  import { f as Re, D as Me } from "./DateFormats-BMpMrZpW.mjs";
28
28
  import z from "@mui/material/ListItemButton";
29
29
  import W from "@mui/material/ListItemIcon";
30
- import { a as ke } from "./CategorySelectorDrawer-Dc9Widy9.mjs";
31
- import { b as Ze, T as et, u as J } from "./StatusIndicator-CIKUOoN_.mjs";
30
+ import { a as ke } from "./CategorySelectorDrawer-tvJUjmwZ.mjs";
31
+ import { b as Ze, T as et, u as J } from "./StatusIndicator-CnDblSmc.mjs";
32
32
  import { D as X } from "./Dialog-Ck34yr-d.mjs";
33
33
  import { b as I } from "./Localization-CPkpIwIx.mjs";
34
34
  import { getUnixTime as tt } from "date-fns/getUnixTime";
@@ -41,7 +41,7 @@ import { startOfMonth as at } from "date-fns/startOfMonth";
41
41
  import { endOfMonth as ot } from "date-fns/endOfMonth";
42
42
  import { i as it } from "./DateUtil-wcYTmDRD.mjs";
43
43
  import xe from "@mui/material/Grid";
44
- import { C as st } from "./CurrencyInput-DuMktPu3.mjs";
44
+ import { C as st } from "./CurrencyInput-xu9UcYZR.mjs";
45
45
  import ct from "@mui/material/Switch";
46
46
  import { L as lt } from "./Loader-D3rjKx72.mjs";
47
47
  var ne = /* @__PURE__ */ ((t) => (t[t.Category = 0] = "Category", t[t.Date = 1] = "Date", t[t.Memo = 2] = "Memo", t[t.Tags = 3] = "Tags", t))(ne || {}), Z = /* @__PURE__ */ ((t) => (t[t.MerchantBudget = 0] = "MerchantBudget", t[t.SplitTransaction = 1] = "SplitTransaction", t[t.HideTransaction = 2] = "HideTransaction", t[t.MerchantLogo = 3] = "MerchantLogo", t))(Z || {});
@@ -12,10 +12,10 @@ import { isBefore as V } from "date-fns/isBefore";
12
12
  import { startOfMonth as h } from "date-fns/startOfMonth";
13
13
  import { startOfToday as m } from "date-fns/startOfToday";
14
14
  import { subDays as v } from "date-fns/subDays";
15
- import { O as n, a as y, T as b } from "./Transaction-CqjlF6SO.mjs";
15
+ import { O as n, a as y, T as b } from "./Transaction-Bd0myZzA.mjs";
16
16
  import { T as D } from "./TransactionApi-Ck5Ua-7F.mjs";
17
17
  import { b as Y } from "./Category-CevNQ03n.mjs";
18
- import { f as F } from "./exportTransactionsToCSV-CdTF_RqL.mjs";
18
+ import { f as F } from "./exportTransactionsToCSV-CamFllci.mjs";
19
19
  import { format as W } from "date-fns/format";
20
20
  import { fromUnixTime as $ } from "date-fns/fromUnixTime";
21
21
  import { f as C, D as I, O as k } from "./DateFormats-BMpMrZpW.mjs";
@@ -17,7 +17,7 @@ import Ze from "@mui/material/CircularProgress";
17
17
  import { makeAutoObservable as le, runInAction as We } from "mobx";
18
18
  import { G as he, b as Qe, u as qe, a as Je } from "./useCombineEvents-Bqojlv8q.mjs";
19
19
  import { B as ge } from "./BeatApi-EFHXULDx.mjs";
20
- import { u as et } from "./useWidgetLoadTimer-DgN1bTyu.mjs";
20
+ import { u as et } from "./useWidgetLoadTimer-DmYEMfRw.mjs";
21
21
  import tt from "@mui/material/Card";
22
22
  import ot from "@mui/material/CardActionArea";
23
23
  import nt from "@mui/material/Avatar";
@@ -0,0 +1,180 @@
1
+ import { jsx as e, jsxs as c } from "react/jsx-runtime";
2
+ import P from "react";
3
+ import { observer as Y } from "mobx-react-lite";
4
+ import K from "@mui/material/Box";
5
+ import D from "@mui/material/Button";
6
+ import U from "@mui/material/Card";
7
+ import V from "@mui/material/CardContent";
8
+ import q from "@mui/material/CardHeader";
9
+ import S from "@mui/material/Divider";
10
+ import f from "@mui/material/IconButton";
11
+ import h from "@mui/material/Stack";
12
+ import { ChevronLeft as J } from "@mxenabled/mx-icons";
13
+ import { Icon as m, H2 as O, H3 as Q } from "@mxenabled/mxui";
14
+ import { u as X } from "./useDimensions-CeDR9V8N.mjs";
15
+ import { G as Z } from "./GlobalAccountFilter-BkUeAltd.mjs";
16
+ import { L as $ } from "./Loader-D3rjKx72.mjs";
17
+ import { f as ee, b as re, u as te, a as ae, W as oe } from "./hooks-DOWEalfb.mjs";
18
+ import { u as ie } from "./useScreenSize-B6JyS_Lj.mjs";
19
+ import { D as I } from "./DateRangeSelector-DE4UR77m.mjs";
20
+ import { A as ne } from "./Analytics-BYItVAe-.mjs";
21
+ const Ie = Y(
22
+ ({
23
+ allowedAccountTypes: w,
24
+ actions: u = [],
25
+ calendarActions: n,
26
+ children: L,
27
+ dateRange: s,
28
+ dateRangeVariant: x = "outlined",
29
+ className: T = "mx-cmn-widget",
30
+ hasDivider: A = !1,
31
+ onAccountsFilterClick: E,
32
+ onBackClick: p,
33
+ showAccountFilter: G = !0,
34
+ showDividerAboveDateSelector: z = !0,
35
+ sx: H = {},
36
+ title: _ = ""
37
+ }) => {
38
+ const [M, { height: W, width: y }] = X(), { onEvent: N } = ee(), { isDesktop: a, isMobile: o, isTablet: i } = ie(y), { displayedDateRange: C, isCopyLoaded: j } = re(), { common: r } = te(), { config: k } = ae(), B = () => {
39
+ p && (p(), N(ne.WIDGET_BACK_CLICK));
40
+ };
41
+ if (!j)
42
+ return /* @__PURE__ */ e($, {});
43
+ const R = {
44
+ dateRangePickerCopy: {
45
+ dateRangeFrom: r.date_range_picker.from,
46
+ dateRangeTo: r.date_range_picker.to,
47
+ dateRangeCustom: r.date_range_picker.custom,
48
+ dateRangeSelectARange: r.date_range_picker.select_range,
49
+ dateRangeThisMonth: r.date_range_picker.this_month,
50
+ dateRangeLastMonth: r.date_range_picker.last_month,
51
+ dateRangeLast30Days: r.date_range_picker.last_30_days,
52
+ dateRangeLast90Days: r.date_range_picker.last_90_days,
53
+ dateRangeYTD: r.date_range_picker.ytd,
54
+ dateRangeLastYear: r.date_range_picker.last_year,
55
+ dateRangeSelect: r.date_range_picker.select
56
+ },
57
+ dateRangeEditApply: r.date_range_picker.edit_apply,
58
+ dateRangeEditTitle: r.date_range_picker.edit_title,
59
+ dateRangeNextAria: r.date_range_picker.next_aria,
60
+ dateRangePreviousAria: r.date_range_picker.previous_aria
61
+ }, b = s ? s.start : C.start, v = s ? s.end : C.end, F = u?.length > 1;
62
+ return /* @__PURE__ */ c(
63
+ U,
64
+ {
65
+ className: T,
66
+ sx: {
67
+ ...o && { px: 4 },
68
+ "& .mx-cmn-date-range-selector": {
69
+ ...(o || i) && { textAlign: "center" }
70
+ },
71
+ ...H
72
+ },
73
+ children: [
74
+ _ && /* @__PURE__ */ e(
75
+ q,
76
+ {
77
+ action: /* @__PURE__ */ c(h, { alignItems: "center", flexDirection: "row", children: [
78
+ a && n && /* @__PURE__ */ e(K, { sx: { flexGrow: 1 }, children: /* @__PURE__ */ e(
79
+ I,
80
+ {
81
+ calendarActions: n,
82
+ copy: R,
83
+ range: [b, v],
84
+ shouldShrinkToIcon: !1,
85
+ variant: x
86
+ }
87
+ ) }),
88
+ G && /* @__PURE__ */ e(
89
+ Z,
90
+ {
91
+ allowedAccountTypes: w,
92
+ onAccountFilterClick: E
93
+ }
94
+ ),
95
+ u?.map((g) => {
96
+ if (P.isValidElement(g)) return g;
97
+ const { iconName: t, onClick: d, label: l } = g;
98
+ return F ? a || i ? /* @__PURE__ */ e(
99
+ D,
100
+ {
101
+ onClick: d,
102
+ startIcon: /* @__PURE__ */ e(m, { name: t, size: 24 }),
103
+ sx: { my: 4 },
104
+ children: l
105
+ },
106
+ t
107
+ ) : /* @__PURE__ */ e(
108
+ f,
109
+ {
110
+ "aria-label": l,
111
+ color: "primary",
112
+ onClick: d,
113
+ children: /* @__PURE__ */ e(m, { name: t, size: 24 })
114
+ },
115
+ t
116
+ ) : a || i ? /* @__PURE__ */ e(
117
+ D,
118
+ {
119
+ onClick: d,
120
+ startIcon: /* @__PURE__ */ e(m, { name: t, size: 24 }),
121
+ sx: { my: 4 },
122
+ children: l
123
+ },
124
+ t
125
+ ) : /* @__PURE__ */ e(f, { "aria-label": l, color: "primary", onClick: d, children: /* @__PURE__ */ e(m, { name: t, size: 24 }) }, t);
126
+ })
127
+ ] }),
128
+ sx: {
129
+ p: a ? 48 : 24,
130
+ pb: 0,
131
+ "& .MuiCardHeader-action": {
132
+ mr: 0,
133
+ ...n && a && { flexGrow: 1 },
134
+ ...(o || i) && { alignSelf: "center" }
135
+ },
136
+ "& .MuiCardHeader-content": {
137
+ overflow: "hidden"
138
+ }
139
+ },
140
+ title: (
141
+ // eslint-disable-next-line no-nested-ternary
142
+ a || i ? k.display_widget_headings ? /* @__PURE__ */ e(O, { variant: "h1", children: _ }) : null : /* @__PURE__ */ c(h, { alignItems: "center", flexDirection: "row", sx: { overflow: "hidden" }, children: [
143
+ o && p && /* @__PURE__ */ e(
144
+ f,
145
+ {
146
+ "aria-label": r.back_to_dashboard,
147
+ color: "primary",
148
+ onClick: B,
149
+ sx: { p: 12, mr: 4 },
150
+ children: /* @__PURE__ */ e(J, { size: 24 })
151
+ }
152
+ ),
153
+ k.display_widget_headings ? /* @__PURE__ */ e(Q, { children: _ }) : null
154
+ ] })
155
+ )
156
+ }
157
+ ),
158
+ A && /* @__PURE__ */ e(S, { sx: { mt: a ? 48 : 24 } }),
159
+ n && (o || i) && /* @__PURE__ */ c(h, { gap: 24, justifyContent: "center", sx: { mt: o ? 0 : 16 }, children: [
160
+ z && /* @__PURE__ */ e(S, {}),
161
+ /* @__PURE__ */ e(
162
+ I,
163
+ {
164
+ calendarActions: n,
165
+ copy: R,
166
+ range: [b, v],
167
+ shouldShrinkToIcon: !1,
168
+ variant: x
169
+ }
170
+ )
171
+ ] }),
172
+ /* @__PURE__ */ e(V, { ref: M, sx: { p: 0 }, children: /* @__PURE__ */ e(oe, { availableHeight: W, availableWidth: y, children: L }) })
173
+ ]
174
+ }
175
+ );
176
+ }
177
+ );
178
+ export {
179
+ Ie as W
180
+ };
@@ -0,0 +1,127 @@
1
+ import { jsx as t, jsxs as g } from "react/jsx-runtime";
2
+ import M from "react";
3
+ import N from "@mui/material/Button";
4
+ import C from "@mui/material/IconButton";
5
+ import r from "@mui/material/Stack";
6
+ import { Text as Y } from "@mxenabled/mxui";
7
+ import { u as H } from "./useDimensions-CeDR9V8N.mjs";
8
+ import { G as U } from "./GlobalAccountFilter-BkUeAltd.mjs";
9
+ import { observer as V } from "mobx-react-lite";
10
+ import { Icon as _ } from "@mxenabled/mx-icons";
11
+ import X from "@mui/material/Paper";
12
+ import { L as q } from "./Loader-D3rjKx72.mjs";
13
+ import { u as J } from "./useScreenSize-B6JyS_Lj.mjs";
14
+ import { b as K, u as O, a as Q, W as Z } from "./hooks-DOWEalfb.mjs";
15
+ import { D as v } from "./DateRangeSelector-DE4UR77m.mjs";
16
+ const _e = V(
17
+ ({
18
+ actions: T,
19
+ allowedAccountTypes: D,
20
+ calendarActions: i,
21
+ children: I,
22
+ className: w = "mx-cmn-widget",
23
+ dateRange: n,
24
+ dateRangeVariant: f,
25
+ onAccountsFilterClick: L,
26
+ showAccountFilter: W = !0,
27
+ sx: z = {},
28
+ title: j = ""
29
+ }) => {
30
+ const [A, { height: G, width: P }] = H(), { isDesktop: o, isMobile: l, isSmallTablet: a, isTablet: d } = J(), { displayedDateRange: h, isCopyLoaded: B, isInitialized: E } = K(), { common: e } = O(), {
31
+ config: { display_widget_headings: F }
32
+ } = Q();
33
+ let c = 48, u = 32, k = 0, p = "h1";
34
+ if (d && !a ? (c = 24, u = 24, p = "h2") : (l || a) && (c = 8, k = 10, p = "h3"), !B)
35
+ return /* @__PURE__ */ t(q, {});
36
+ const x = {
37
+ dateRangePickerCopy: {
38
+ dateRangeFrom: e.date_range_picker.from,
39
+ dateRangeTo: e.date_range_picker.to,
40
+ dateRangeCustom: e.date_range_picker.custom,
41
+ dateRangeSelectARange: e.date_range_picker.select_range,
42
+ dateRangeThisMonth: e.date_range_picker.this_month,
43
+ dateRangeLastMonth: e.date_range_picker.last_month,
44
+ dateRangeLast30Days: e.date_range_picker.last_30_days,
45
+ dateRangeLast90Days: e.date_range_picker.last_90_days,
46
+ dateRangeYTD: e.date_range_picker.ytd,
47
+ dateRangeLastYear: e.date_range_picker.last_year,
48
+ dateRangeSelect: e.date_range_picker.select
49
+ },
50
+ dateRangeEditApply: e.date_range_picker.edit_apply,
51
+ dateRangeEditTitle: e.date_range_picker.edit_title,
52
+ dateRangeNextAria: e.date_range_picker.next_aria,
53
+ dateRangePreviousAria: e.date_range_picker.previous_aria
54
+ }, y = n ? n.start : h.start, R = n ? n.end : h.end;
55
+ return E ? /* @__PURE__ */ g(X, { className: w, elevation: 0, sx: { height: "100vh", ...z }, children: [
56
+ /* @__PURE__ */ g(
57
+ r,
58
+ {
59
+ alignItems: "center",
60
+ alignSelf: "stretch",
61
+ direction: "row",
62
+ justifyContent: "space-between",
63
+ sx: { pb: k, pt: u, px: c },
64
+ children: [
65
+ (l || a) && /* @__PURE__ */ t(C, { color: "primary", sx: { p: 10 }, children: /* @__PURE__ */ t(_, { name: "menu_open", size: 24, sx: { transform: "rotate(180deg)" } }) }),
66
+ /* @__PURE__ */ t(r, { alignItems: "flex-start", minWidth: 0, sx: { flex: 1 }, children: F && /* @__PURE__ */ t(Y, { sx: { width: "100%" }, truncate: !0, variant: p, children: j }) }),
67
+ (o || d && !a) && i && /* @__PURE__ */ t(r, { alignItems: "center", sx: { flex: 1, flexShrink: 0 }, children: /* @__PURE__ */ t(
68
+ v,
69
+ {
70
+ calendarActions: i,
71
+ copy: x,
72
+ range: [y, R],
73
+ shouldShrinkToIcon: !1,
74
+ variant: f
75
+ }
76
+ ) }),
77
+ /* @__PURE__ */ g(
78
+ r,
79
+ {
80
+ alignItems: "center",
81
+ direction: "row",
82
+ justifyContent: "flex-end",
83
+ sx: { flex: o || d && !a ? 1 : 0, flexShrink: 0 },
84
+ children: [
85
+ W && /* @__PURE__ */ t(
86
+ U,
87
+ {
88
+ allowedAccountTypes: D,
89
+ onAccountFilterClick: L
90
+ }
91
+ ),
92
+ T?.map((m) => {
93
+ if (M.isValidElement(m)) return m;
94
+ const { iconName: s, onClick: S, label: b } = m;
95
+ return o ? /* @__PURE__ */ t(
96
+ N,
97
+ {
98
+ onClick: S,
99
+ startIcon: /* @__PURE__ */ t(_, { name: s, size: 24 }),
100
+ children: b
101
+ },
102
+ s
103
+ ) : /* @__PURE__ */ t(C, { "aria-label": b, color: "primary", onClick: S, children: /* @__PURE__ */ t(_, { name: s, size: 24 }) }, s);
104
+ })
105
+ ]
106
+ }
107
+ )
108
+ ]
109
+ }
110
+ ),
111
+ (l || a) && i && /* @__PURE__ */ t(
112
+ v,
113
+ {
114
+ calendarActions: i,
115
+ copy: x,
116
+ range: [y, R],
117
+ shouldShrinkToIcon: !1,
118
+ variant: f
119
+ }
120
+ ),
121
+ /* @__PURE__ */ t(r, { ref: A, sx: { p: o ? 48 : 24 }, children: /* @__PURE__ */ t(Z, { availableHeight: G, availableWidth: P, children: I }) })
122
+ ] }) : null;
123
+ }
124
+ );
125
+ export {
126
+ _e as W
127
+ };