@mx-cartographer/experiences 7.0.29-alpha.mega2 → 7.0.30
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 +6 -1
- package/dist/{AccountDetailsContent-B8BSf9Bj.mjs → AccountDetailsContent-CHtXOmHC.mjs} +5 -5
- package/dist/{AccountDetailsHeader-DXTi1p0V.mjs → AccountDetailsHeader-Dwk01nsY.mjs} +1 -1
- package/dist/{AccountFields-Bxvi1C4Z.mjs → AccountFields-5i77eFJ6.mjs} +31 -27
- package/dist/{AccountListItem-CnE3rCVZ.mjs → AccountListItem-BiST9IgK.mjs} +1 -1
- package/dist/{ManageIncome-BFy5tz8l.mjs → ManageIncome-CFh-N0KK.mjs} +2 -2
- package/dist/{RecurringSettings-FbiLpjT5.mjs → RecurringSettings-C9TjSuS_.mjs} +2 -2
- package/dist/{TransactionDetails-D7Nx839i.mjs → TransactionDetails-C2gYzV0z.mjs} +1 -1
- package/dist/{WidgetContainer-D3Y1NrBT.mjs → WidgetContainer-Bn6JPnY3.mjs} +139 -150
- package/dist/accounts/index.es.js +66 -68
- package/dist/accounts/utils/AccountFields.d.ts +1 -0
- package/dist/budgets/index.es.js +3 -3
- package/dist/cashflow/index.es.js +5 -5
- package/dist/common/index.es.js +531 -566
- package/dist/common/utils/Theme.d.ts +24 -102
- package/dist/debts/components/DebtDrawer.d.ts +1 -2
- package/dist/debts/components/PaydownDrawer.d.ts +1 -2
- package/dist/debts/components/SnowballDrawer.d.ts +1 -2
- package/dist/debts/index.es.js +280 -283
- package/dist/finstrong/index.es.js +2 -2
- package/dist/goals/index.es.js +3 -3
- package/dist/help/index.es.js +1 -1
- package/dist/investments/index.es.js +1 -1
- package/dist/networth/index.es.js +1 -1
- package/dist/recurringtransactions/index.es.js +5 -5
- package/dist/settings/index.es.js +1 -1
- package/dist/spending/index.es.js +2 -2
- package/dist/transactions/index.es.js +3 -3
- package/dist/trends/index.es.js +2 -2
- package/package.json +1 -1
|
@@ -1,43 +1,42 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { observer as
|
|
1
|
+
import { jsxs as T, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import o from "react";
|
|
3
|
+
import { observer as ne } from "mobx-react-lite";
|
|
4
4
|
import M from "@mui/material/Button";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
5
|
+
import j from "@mui/material/Box";
|
|
6
|
+
import ce from "@mui/material/Card";
|
|
7
|
+
import re from "@mui/material/CardHeader";
|
|
8
|
+
import oe from "@mui/material/CardContent";
|
|
9
9
|
import Z from "@mui/material/Divider";
|
|
10
10
|
import F from "@mui/material/IconButton";
|
|
11
11
|
import Y from "@mui/material/Stack";
|
|
12
|
-
import { Icon as
|
|
13
|
-
import { u as
|
|
14
|
-
import { L as
|
|
15
|
-
import { f as
|
|
16
|
-
import { u as
|
|
12
|
+
import { Icon as s, Text as z, DateRangePicker as q, H1 as se, H3 as le } from "@mxenabled/mxui";
|
|
13
|
+
import { u as Ce } from "./useDimensions-27p2evRx.mjs";
|
|
14
|
+
import { L as de } from "./Loader-DUaFpDGv.mjs";
|
|
15
|
+
import { f as Te, a as Ie, u as Ee, W as Re } from "./hooks-DlI63qSB.mjs";
|
|
16
|
+
import { u as ae } from "./useScreenSize-B6JyS_Lj.mjs";
|
|
17
17
|
import { addMonths as J } from "date-fns/addMonths";
|
|
18
18
|
import { addDays as ge } from "date-fns/addDays";
|
|
19
19
|
import { addYears as Q } from "date-fns/addYears";
|
|
20
|
-
import { differenceInCalendarDays as
|
|
21
|
-
import { endOfDay as ee } from "date-fns/endOfDay";
|
|
20
|
+
import { differenceInCalendarDays as Ae } from "date-fns/differenceInCalendarDays";
|
|
22
21
|
import { endOfMonth as V } from "date-fns/endOfMonth";
|
|
23
|
-
import { endOfToday as
|
|
22
|
+
import { endOfToday as ee } from "date-fns/endOfToday";
|
|
24
23
|
import { endOfYear as Se } from "date-fns/endOfYear";
|
|
25
|
-
import { startOfMonth as
|
|
26
|
-
import { startOfToday as
|
|
27
|
-
import { startOfYear as
|
|
28
|
-
import { subMonths as
|
|
29
|
-
import { subDays as
|
|
30
|
-
import { subYears as
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import
|
|
24
|
+
import { startOfMonth as ue } from "date-fns/startOfMonth";
|
|
25
|
+
import { startOfToday as Ne } from "date-fns/startOfToday";
|
|
26
|
+
import { startOfYear as me } from "date-fns/startOfYear";
|
|
27
|
+
import { subMonths as X } from "date-fns/subMonths";
|
|
28
|
+
import { subDays as Le } from "date-fns/subDays";
|
|
29
|
+
import { subYears as te } from "date-fns/subYears";
|
|
30
|
+
import De from "@mui/material/ButtonGroup";
|
|
31
|
+
import pe from "@mui/material/Tab";
|
|
32
|
+
import ke from "@mui/material/Tabs";
|
|
34
33
|
import he from "@mui/material/ToggleButton";
|
|
35
|
-
import
|
|
36
|
-
import
|
|
37
|
-
import { f as K, D as G, a as
|
|
38
|
-
import { D as
|
|
39
|
-
import { i as
|
|
40
|
-
const
|
|
34
|
+
import Oe from "@mui/material/ToggleButtonGroup";
|
|
35
|
+
import fe from "@mui/material/styles/useTheme";
|
|
36
|
+
import { f as K, D as G, a as be } from "./Dialog-CWW597AF.mjs";
|
|
37
|
+
import { D as we } from "./Drawer-kEE73B87.mjs";
|
|
38
|
+
import { i as Ke, j as Ge } from "./ConnectDrawer-D86nRDxQ.mjs";
|
|
39
|
+
const Me = {
|
|
41
40
|
ACCOUNTS_CLICK_ACCOUNT: "accounts_widget_click_account",
|
|
42
41
|
ACCOUNTS_CLICK_CONNECT: "accounts_widget_click_connect_accounts",
|
|
43
42
|
ACCOUNTS_CLICK_FILTER: "accounts_widget_click_filter_accounts",
|
|
@@ -156,15 +155,15 @@ const We = {
|
|
|
156
155
|
TRENDS_HOVER_LEGEND: "trends_hover_ChartLegend",
|
|
157
156
|
TRENDS_LOAD_WIDGET: "trends_load_widget",
|
|
158
157
|
TRENDS_VIEW_TRANSACTIONS: "trends_view_transactions"
|
|
159
|
-
},
|
|
158
|
+
}, We = ({
|
|
160
159
|
calendarActions: i,
|
|
161
|
-
color:
|
|
160
|
+
color: u = "primary",
|
|
162
161
|
copy: a,
|
|
163
|
-
range:
|
|
164
|
-
shouldShrinkToIcon:
|
|
162
|
+
range: N = [ue(Ne()), V(ee())],
|
|
163
|
+
shouldShrinkToIcon: m = !0,
|
|
165
164
|
variant: n = "outlined"
|
|
166
165
|
}) => {
|
|
167
|
-
const W =
|
|
166
|
+
const W = fe(), { isMobile: L } = ae(), [l, b] = o.useState(N), [c, y] = o.useState(a.dateRangePickerCopy.dateRangeThisMonth), [r, D] = o.useState(l), [p, k] = o.useState(!1), [H, x] = o.useState(!0), [h, C] = o.useState(6), d = {
|
|
168
167
|
buttons: [
|
|
169
168
|
{ label: "3M", value: 3 },
|
|
170
169
|
{ label: "6M", value: 6 },
|
|
@@ -178,31 +177,31 @@ const We = {
|
|
|
178
177
|
{ label: "1 Year", value: 12 }
|
|
179
178
|
]
|
|
180
179
|
};
|
|
181
|
-
|
|
182
|
-
b(
|
|
183
|
-
}, [
|
|
184
|
-
(n === "timeframebuttons" || n === "timeframetabs") && i.onRangeChanged(
|
|
180
|
+
o.useEffect(() => {
|
|
181
|
+
b(N), D(N);
|
|
182
|
+
}, [N]), o.useEffect(() => {
|
|
183
|
+
(n === "timeframebuttons" || n === "timeframetabs") && i.onRangeChanged(I());
|
|
185
184
|
}, [h]);
|
|
186
|
-
const
|
|
187
|
-
const _ = V(
|
|
188
|
-
return [V(
|
|
185
|
+
const I = () => {
|
|
186
|
+
const _ = V(ee());
|
|
187
|
+
return [V(X(_, h)), _];
|
|
189
188
|
}, w = (_) => {
|
|
190
|
-
const [t,
|
|
189
|
+
const [t, O] = l, A = _ === "previous";
|
|
191
190
|
let S;
|
|
192
191
|
if (c === a.dateRangePickerCopy.dateRangeThisMonth || c === a.dateRangePickerCopy.dateRangeLastMonth)
|
|
193
192
|
S = [
|
|
194
|
-
|
|
195
|
-
V(
|
|
193
|
+
A ? X(t, 1) : J(t, 1),
|
|
194
|
+
V(A ? X(O, 1) : J(O, 1))
|
|
196
195
|
];
|
|
197
196
|
else if (c === a.dateRangePickerCopy.dateRangeYTD || c === a.dateRangePickerCopy.dateRangeLastYear) {
|
|
198
|
-
const
|
|
197
|
+
const E = me(t), R = Se(t);
|
|
199
198
|
S = [
|
|
200
|
-
|
|
201
|
-
|
|
199
|
+
A ? te(E, 1) : Q(E, 1),
|
|
200
|
+
A ? te(R, 1) : Q(R, 1)
|
|
202
201
|
];
|
|
203
202
|
} else {
|
|
204
|
-
const
|
|
205
|
-
S = [
|
|
203
|
+
const E = Ae(O, t), R = A ? Le : ge;
|
|
204
|
+
S = [R(t, E), R(O, E)];
|
|
206
205
|
}
|
|
207
206
|
b(S), i.onRangeChanged(S);
|
|
208
207
|
}, v = () => {
|
|
@@ -210,33 +209,33 @@ const We = {
|
|
|
210
209
|
c === a.dateRangePickerCopy.dateRangeThisMonth || c === a.dateRangePickerCopy.dateRangeLastMonth
|
|
211
210
|
), i.onRangeChanged(r);
|
|
212
211
|
}, U = (_) => {
|
|
213
|
-
|
|
212
|
+
C(_);
|
|
214
213
|
};
|
|
215
|
-
return /* @__PURE__ */
|
|
216
|
-
/* @__PURE__ */
|
|
217
|
-
|
|
214
|
+
return /* @__PURE__ */ T(j, { className: "mx-cmn-date-range-selector", m: 4, children: [
|
|
215
|
+
/* @__PURE__ */ T(
|
|
216
|
+
j,
|
|
218
217
|
{
|
|
219
218
|
sx: {
|
|
220
219
|
[W.breakpoints.down("sm")]: {
|
|
221
|
-
display:
|
|
220
|
+
display: m ? "none" : "flex",
|
|
222
221
|
justifyContent: "center"
|
|
223
222
|
},
|
|
224
223
|
[W.breakpoints.up("sm")]: { display: "inline-flex" }
|
|
225
224
|
},
|
|
226
225
|
children: [
|
|
227
|
-
n === "readonly" && /* @__PURE__ */
|
|
228
|
-
/* @__PURE__ */ e(
|
|
226
|
+
n === "readonly" && /* @__PURE__ */ T(Y, { alignItems: "center", direction: "row", gap: 8, children: [
|
|
227
|
+
/* @__PURE__ */ e(s, { name: "calendar_month", size: 24 }),
|
|
229
228
|
/* @__PURE__ */ e(z, { bold: !0, children: K(r[0], G.MONTH_DAY) }),
|
|
230
|
-
/* @__PURE__ */ e(
|
|
229
|
+
/* @__PURE__ */ e(s, { name: "remove" }),
|
|
231
230
|
/* @__PURE__ */ e(z, { bold: !0, children: K(r[1], G.MONTH_DAY_YEAR) })
|
|
232
231
|
] }),
|
|
233
|
-
n !== "readonly" && n !== "timeframebuttons" && n !== "timeframetabs" && /* @__PURE__ */
|
|
234
|
-
|
|
232
|
+
n !== "readonly" && n !== "timeframebuttons" && n !== "timeframetabs" && /* @__PURE__ */ T(
|
|
233
|
+
De,
|
|
235
234
|
{
|
|
236
|
-
color:
|
|
235
|
+
color: u,
|
|
237
236
|
sx: {
|
|
238
237
|
"& .MuiButtonGroup-grouped": {
|
|
239
|
-
padding:
|
|
238
|
+
padding: L ? 0 : 12
|
|
240
239
|
},
|
|
241
240
|
"& .MuiButtonGroup-middleButton": {
|
|
242
241
|
px: 24
|
|
@@ -252,24 +251,24 @@ const We = {
|
|
|
252
251
|
"aria-label": a.dateRangePreviousAria,
|
|
253
252
|
color: i.shouldDisablePrevious ? "secondary" : "primary",
|
|
254
253
|
onClick: () => i.shouldDisablePrevious ? null : w("previous"),
|
|
255
|
-
children: /* @__PURE__ */ e(
|
|
254
|
+
children: /* @__PURE__ */ e(s, { name: "chevron_left", size: 20 })
|
|
256
255
|
}
|
|
257
256
|
),
|
|
258
257
|
/* @__PURE__ */ e(
|
|
259
258
|
M,
|
|
260
259
|
{
|
|
261
260
|
"aria-disabled": i.shouldDisablePicker,
|
|
262
|
-
color:
|
|
263
|
-
onClick: () => i.shouldDisablePicker ? null :
|
|
264
|
-
startIcon: /* @__PURE__ */ e(
|
|
261
|
+
color: u,
|
|
262
|
+
onClick: () => i.shouldDisablePicker ? null : k(!0),
|
|
263
|
+
startIcon: /* @__PURE__ */ e(s, { name: "calendar_month", size: 20 }),
|
|
265
264
|
sx: {
|
|
266
|
-
p:
|
|
265
|
+
p: L ? 0 : 8
|
|
267
266
|
},
|
|
268
|
-
children: H ? K(
|
|
269
|
-
K(
|
|
267
|
+
children: H ? K(l[0], G.MONTH_YEAR) : /* @__PURE__ */ T("span", { children: [
|
|
268
|
+
K(l[0], G.MONTH_DAY_YEAR),
|
|
270
269
|
" -",
|
|
271
270
|
" ",
|
|
272
|
-
K(
|
|
271
|
+
K(l[1], G.MONTH_DAY_YEAR)
|
|
273
272
|
] })
|
|
274
273
|
}
|
|
275
274
|
),
|
|
@@ -280,20 +279,20 @@ const We = {
|
|
|
280
279
|
"aria-label": a.dateRangeNextAria,
|
|
281
280
|
color: i.shouldDisableNext ? "secondary" : "primary",
|
|
282
281
|
onClick: () => i.shouldDisableNext ? null : w("next"),
|
|
283
|
-
children: /* @__PURE__ */ e(
|
|
282
|
+
children: /* @__PURE__ */ e(s, { name: "chevron_right", size: 20 })
|
|
284
283
|
}
|
|
285
284
|
)
|
|
286
285
|
]
|
|
287
286
|
}
|
|
288
287
|
),
|
|
289
288
|
n === "timeframebuttons" && /* @__PURE__ */ e(
|
|
290
|
-
|
|
289
|
+
Oe,
|
|
291
290
|
{
|
|
292
|
-
color:
|
|
291
|
+
color: u,
|
|
293
292
|
exclusive: !0,
|
|
294
293
|
orientation: "horizontal",
|
|
295
294
|
value: h,
|
|
296
|
-
children:
|
|
295
|
+
children: d.buttons.map((_) => /* @__PURE__ */ e(
|
|
297
296
|
he,
|
|
298
297
|
{
|
|
299
298
|
onClick: () => U(_.value),
|
|
@@ -306,15 +305,15 @@ const We = {
|
|
|
306
305
|
}
|
|
307
306
|
),
|
|
308
307
|
n === "timeframetabs" && /* @__PURE__ */ e(
|
|
309
|
-
|
|
308
|
+
ke,
|
|
310
309
|
{
|
|
311
310
|
indicatorColor: "primary",
|
|
312
311
|
onChange: (_, t) => U(t),
|
|
313
312
|
textColor: "primary",
|
|
314
313
|
value: h,
|
|
315
314
|
variant: "fullWidth",
|
|
316
|
-
children:
|
|
317
|
-
|
|
315
|
+
children: d.tabs.map((_) => /* @__PURE__ */ e(
|
|
316
|
+
pe,
|
|
318
317
|
{
|
|
319
318
|
label: /* @__PURE__ */ e(z, { bold: !0, variant: "Body", children: _.label }),
|
|
320
319
|
sx: { minWidth: 80 },
|
|
@@ -327,14 +326,14 @@ const We = {
|
|
|
327
326
|
]
|
|
328
327
|
}
|
|
329
328
|
),
|
|
330
|
-
|
|
331
|
-
|
|
329
|
+
p && L && /* @__PURE__ */ e(
|
|
330
|
+
we,
|
|
332
331
|
{
|
|
333
332
|
ariaLabelClose: a.dateRangeCloseAria,
|
|
334
|
-
isOpen:
|
|
335
|
-
onClose: () =>
|
|
333
|
+
isOpen: p,
|
|
334
|
+
onClose: () => k(!1),
|
|
336
335
|
onPrimaryAction: () => {
|
|
337
|
-
v(),
|
|
336
|
+
v(), k(!1);
|
|
338
337
|
},
|
|
339
338
|
primaryText: a.dateRangeEditApply,
|
|
340
339
|
title: a.dateRangeEditTitle,
|
|
@@ -344,12 +343,7 @@ const We = {
|
|
|
344
343
|
copy: a.dateRangePickerCopy,
|
|
345
344
|
dateRange: r,
|
|
346
345
|
onRangeChanged: (_, t) => {
|
|
347
|
-
_[0] && !_[1] && (_[1] = _[0]);
|
|
348
|
-
const o = [
|
|
349
|
-
_[0],
|
|
350
|
-
_[1] ? ee(_[1]) : _[1]
|
|
351
|
-
];
|
|
352
|
-
p(o), y(t);
|
|
346
|
+
_[0] && !_[1] && (_[1] = _[0]), D(_), y(t);
|
|
353
347
|
},
|
|
354
348
|
selectedShortcut: c,
|
|
355
349
|
sx: { p: 16 }
|
|
@@ -357,12 +351,12 @@ const We = {
|
|
|
357
351
|
)
|
|
358
352
|
}
|
|
359
353
|
),
|
|
360
|
-
|
|
361
|
-
|
|
354
|
+
p && !L && /* @__PURE__ */ e(
|
|
355
|
+
be,
|
|
362
356
|
{
|
|
363
357
|
copy: { title: a.dateRangeEditTitle },
|
|
364
358
|
isOpen: !0,
|
|
365
|
-
onClose: () =>
|
|
359
|
+
onClose: () => k(!1),
|
|
366
360
|
onPrimaryAction: () => v(),
|
|
367
361
|
primaryText: a.dateRangeEditApply,
|
|
368
362
|
sx: {
|
|
@@ -376,12 +370,7 @@ const We = {
|
|
|
376
370
|
copy: a.dateRangePickerCopy,
|
|
377
371
|
dateRange: r,
|
|
378
372
|
onRangeChanged: (_, t) => {
|
|
379
|
-
_[0] && !_[1] && (_[1] = _[0]);
|
|
380
|
-
const o = [
|
|
381
|
-
_[0],
|
|
382
|
-
_[1] ? ee(_[1]) : _[1]
|
|
383
|
-
];
|
|
384
|
-
p(o), y(t);
|
|
373
|
+
_[0] && !_[1] && (_[1] = _[0]), D(_), y(t);
|
|
385
374
|
},
|
|
386
375
|
selectedShortcut: c,
|
|
387
376
|
sx: {
|
|
@@ -395,26 +384,26 @@ const We = {
|
|
|
395
384
|
}
|
|
396
385
|
)
|
|
397
386
|
] });
|
|
398
|
-
},
|
|
387
|
+
}, _e = We, ye = ({
|
|
399
388
|
accountOptions: i,
|
|
400
|
-
actions:
|
|
389
|
+
actions: u = [],
|
|
401
390
|
calendarActions: a,
|
|
402
|
-
children:
|
|
403
|
-
dateRange:
|
|
391
|
+
children: N,
|
|
392
|
+
dateRange: m,
|
|
404
393
|
dateRangeVariant: n,
|
|
405
394
|
className: W = "mx-cmn-widget",
|
|
406
|
-
hasDivider:
|
|
407
|
-
onBackClick:
|
|
395
|
+
hasDivider: L = !1,
|
|
396
|
+
onBackClick: l,
|
|
408
397
|
onAccountsFilterClick: b,
|
|
409
398
|
showDividerAboveDateSelector: c = !0,
|
|
410
399
|
sx: y = {},
|
|
411
400
|
title: r = ""
|
|
412
401
|
}) => {
|
|
413
|
-
const [
|
|
414
|
-
|
|
402
|
+
const [D, p] = o.useState(!1), [k, { height: H, width: x }] = Ce(), { onEvent: h } = Te(), { isDesktop: C, isMobile: d, isTablet: I } = ae(x), { displayedDateRange: w, isCopyLoaded: v, selectedAccountGuids: U, setSelectedAccountGuids: _ } = Ie(), { common: t, connect: O } = Ee(), A = () => {
|
|
403
|
+
l && (l(), h(Me.WIDGET_BACK_CLICK));
|
|
415
404
|
};
|
|
416
405
|
if (!v)
|
|
417
|
-
return /* @__PURE__ */ e(
|
|
406
|
+
return /* @__PURE__ */ e(de, {});
|
|
418
407
|
const S = {
|
|
419
408
|
accountFilterOptionsCopy: {
|
|
420
409
|
accountTypeAccounts: t.account_filter.account_type_accounts,
|
|
@@ -429,7 +418,7 @@ const We = {
|
|
|
429
418
|
zeroStateTitle: t.account_filter.zero_state_title
|
|
430
419
|
},
|
|
431
420
|
title: t.account_filter.title
|
|
432
|
-
},
|
|
421
|
+
}, E = {
|
|
433
422
|
dateRangePickerCopy: {
|
|
434
423
|
dateRangeFrom: t.date_range_picker.from,
|
|
435
424
|
dateRangeTo: t.date_range_picker.to,
|
|
@@ -447,39 +436,39 @@ const We = {
|
|
|
447
436
|
dateRangeEditTitle: t.date_range_picker.edit_title,
|
|
448
437
|
dateRangeNextAria: t.date_range_picker.next_aria,
|
|
449
438
|
dateRangePreviousAria: t.date_range_picker.previous_aria
|
|
450
|
-
},
|
|
451
|
-
return /* @__PURE__ */
|
|
452
|
-
|
|
439
|
+
}, R = m ? m.start : w.start, $ = m ? m.end : w.end, ie = u?.length > 1;
|
|
440
|
+
return /* @__PURE__ */ T(
|
|
441
|
+
ce,
|
|
453
442
|
{
|
|
454
443
|
className: W,
|
|
455
444
|
sx: {
|
|
456
|
-
...
|
|
445
|
+
...d && { px: 4 },
|
|
457
446
|
"& .mx-cmn-date-range-selector": {
|
|
458
|
-
...(
|
|
447
|
+
...(d || I) && { textAlign: "center" }
|
|
459
448
|
},
|
|
460
449
|
...y
|
|
461
450
|
},
|
|
462
451
|
children: [
|
|
463
452
|
r && /* @__PURE__ */ e(
|
|
464
|
-
|
|
453
|
+
re,
|
|
465
454
|
{
|
|
466
|
-
action: /* @__PURE__ */
|
|
467
|
-
|
|
468
|
-
|
|
455
|
+
action: /* @__PURE__ */ T(Y, { alignItems: "center", flexDirection: "row", children: [
|
|
456
|
+
C && a && /* @__PURE__ */ e(j, { sx: { flexGrow: 1 }, children: /* @__PURE__ */ e(
|
|
457
|
+
_e,
|
|
469
458
|
{
|
|
470
459
|
calendarActions: a,
|
|
471
|
-
copy:
|
|
472
|
-
range: [
|
|
460
|
+
copy: E,
|
|
461
|
+
range: [R, $],
|
|
473
462
|
shouldShrinkToIcon: !1,
|
|
474
463
|
variant: n
|
|
475
464
|
}
|
|
476
465
|
) }),
|
|
477
466
|
i && /* @__PURE__ */ e(
|
|
478
|
-
|
|
467
|
+
Ke,
|
|
479
468
|
{
|
|
480
469
|
accounts: i,
|
|
481
470
|
copy: S,
|
|
482
|
-
onConnectAccountClick: () =>
|
|
471
|
+
onConnectAccountClick: () => p(!0),
|
|
483
472
|
onFilterClick: (f) => {
|
|
484
473
|
_(f), b?.(f);
|
|
485
474
|
},
|
|
@@ -488,86 +477,86 @@ const We = {
|
|
|
488
477
|
variant: "text"
|
|
489
478
|
}
|
|
490
479
|
),
|
|
491
|
-
|
|
492
|
-
if (
|
|
480
|
+
u?.map((f) => {
|
|
481
|
+
if (o.isValidElement(f)) return f;
|
|
493
482
|
const { iconName: g, onClick: P, label: B } = f;
|
|
494
|
-
return
|
|
483
|
+
return ie ? C || I ? /* @__PURE__ */ e(
|
|
495
484
|
M,
|
|
496
485
|
{
|
|
497
486
|
onClick: P,
|
|
498
|
-
startIcon: /* @__PURE__ */ e(
|
|
487
|
+
startIcon: /* @__PURE__ */ e(s, { name: g, size: 24 }),
|
|
499
488
|
sx: { my: 4 },
|
|
500
489
|
children: B
|
|
501
490
|
},
|
|
502
491
|
g
|
|
503
|
-
) : /* @__PURE__ */ e(F, { "aria-label": B, color: "primary", onClick: P, children: /* @__PURE__ */ e(
|
|
492
|
+
) : /* @__PURE__ */ e(F, { "aria-label": B, color: "primary", onClick: P, children: /* @__PURE__ */ e(s, { name: g, size: 24 }) }, g) : C || I ? /* @__PURE__ */ e(
|
|
504
493
|
M,
|
|
505
494
|
{
|
|
506
495
|
onClick: P,
|
|
507
|
-
startIcon: /* @__PURE__ */ e(
|
|
496
|
+
startIcon: /* @__PURE__ */ e(s, { name: g, size: 24 }),
|
|
508
497
|
sx: { my: 4 },
|
|
509
498
|
children: B
|
|
510
499
|
},
|
|
511
500
|
g
|
|
512
|
-
) : /* @__PURE__ */ e(F, { "aria-label": B, color: "primary", onClick: P, children: /* @__PURE__ */ e(
|
|
501
|
+
) : /* @__PURE__ */ e(F, { "aria-label": B, color: "primary", onClick: P, children: /* @__PURE__ */ e(s, { name: g, size: 24 }) }, g);
|
|
513
502
|
})
|
|
514
503
|
] }),
|
|
515
504
|
sx: {
|
|
516
|
-
p:
|
|
505
|
+
p: C ? 48 : 24,
|
|
517
506
|
pb: 0,
|
|
518
507
|
"& .MuiCardHeader-action": {
|
|
519
508
|
mr: 0,
|
|
520
|
-
...a &&
|
|
521
|
-
...(
|
|
509
|
+
...a && C && { flexGrow: 1 },
|
|
510
|
+
...(d || I) && { alignSelf: "center" }
|
|
522
511
|
},
|
|
523
512
|
"& .MuiCardHeader-content": {
|
|
524
513
|
overflow: "hidden"
|
|
525
514
|
}
|
|
526
515
|
},
|
|
527
|
-
title:
|
|
528
|
-
|
|
516
|
+
title: C || I ? /* @__PURE__ */ e(se, { children: r }) : /* @__PURE__ */ T(Y, { alignItems: "center", flexDirection: "row", sx: { overflow: "hidden" }, children: [
|
|
517
|
+
d && l && /* @__PURE__ */ e(
|
|
529
518
|
F,
|
|
530
519
|
{
|
|
531
520
|
"aria-label": t.back_to_dashboard,
|
|
532
521
|
color: "primary",
|
|
533
|
-
onClick:
|
|
522
|
+
onClick: A,
|
|
534
523
|
sx: { p: 12, mr: 4 },
|
|
535
|
-
children: /* @__PURE__ */ e(
|
|
524
|
+
children: /* @__PURE__ */ e(s, { name: "arrow_back", size: 24 })
|
|
536
525
|
}
|
|
537
526
|
),
|
|
538
|
-
/* @__PURE__ */ e(
|
|
527
|
+
/* @__PURE__ */ e(le, { children: r })
|
|
539
528
|
] })
|
|
540
529
|
}
|
|
541
530
|
),
|
|
542
|
-
|
|
543
|
-
a && (
|
|
531
|
+
L && /* @__PURE__ */ e(Z, { sx: { mt: C ? 48 : 24 } }),
|
|
532
|
+
a && (d || I) && /* @__PURE__ */ T(Y, { gap: 24, justifyContent: "center", sx: { mt: d ? 0 : 16 }, children: [
|
|
544
533
|
c && /* @__PURE__ */ e(Z, {}),
|
|
545
534
|
/* @__PURE__ */ e(
|
|
546
|
-
|
|
535
|
+
_e,
|
|
547
536
|
{
|
|
548
537
|
calendarActions: a,
|
|
549
|
-
copy:
|
|
550
|
-
range: [
|
|
538
|
+
copy: E,
|
|
539
|
+
range: [R, $],
|
|
551
540
|
shouldShrinkToIcon: !1,
|
|
552
541
|
variant: n
|
|
553
542
|
}
|
|
554
543
|
)
|
|
555
544
|
] }),
|
|
556
|
-
|
|
557
|
-
|
|
545
|
+
D && /* @__PURE__ */ e(
|
|
546
|
+
Ge,
|
|
558
547
|
{
|
|
559
|
-
onClose: () =>
|
|
560
|
-
showConnectWidget:
|
|
561
|
-
title:
|
|
548
|
+
onClose: () => p(!1),
|
|
549
|
+
showConnectWidget: D,
|
|
550
|
+
title: O.mini_title
|
|
562
551
|
}
|
|
563
552
|
),
|
|
564
|
-
/* @__PURE__ */ e(
|
|
553
|
+
/* @__PURE__ */ e(oe, { ref: k, sx: { p: 0 }, children: /* @__PURE__ */ e(Re, { availableHeight: H, availableWidth: x, children: N }) })
|
|
565
554
|
]
|
|
566
555
|
}
|
|
567
556
|
);
|
|
568
|
-
},
|
|
557
|
+
}, Nt = ne(ye);
|
|
569
558
|
export {
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
559
|
+
Me as A,
|
|
560
|
+
_e as D,
|
|
561
|
+
Nt as W
|
|
573
562
|
};
|