@mx-cartographer/experiences 7.4.13 → 7.4.14
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 +4 -0
- package/dist/{AccountDetailsContent-H6ORsLqt.mjs → AccountDetailsContent-CitErkuS.mjs} +81 -74
- package/dist/MicroWidgetContainer-r6mtxRer.mjs +52 -0
- package/dist/MiniWidgetContainer-Bg02sF1Y.mjs +71 -0
- package/dist/accounts/index.es.js +3 -3
- package/dist/analytics/index.es.js +1 -1
- package/dist/budgets/index.es.js +1 -1
- package/dist/cashflow/index.es.js +1 -1
- package/dist/common/index.es.js +2 -2
- package/dist/goals/index.es.js +2 -2
- package/dist/networth/index.es.js +1 -1
- package/dist/recurringtransactions/index.es.js +2 -2
- package/dist/spending/index.es.js +1 -1
- package/dist/trends/index.es.js +2 -2
- package/package.json +1 -1
- package/dist/MicroWidgetContainer-B2hO9rOG.mjs +0 -45
- package/dist/MiniWidgetContainer-98-hKFqm.mjs +0 -56
package/CHANGELOG.md
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as u, Fragment as g, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import _ from "react";
|
|
3
3
|
import { observer as T } from "mobx-react-lite";
|
|
4
|
-
import
|
|
4
|
+
import B from "@mui/material/Tab";
|
|
5
5
|
import nt from "@mui/material/Tabs";
|
|
6
6
|
import $ from "@mui/material/List";
|
|
7
7
|
import Y from "@mui/material/ListSubheader";
|
|
8
8
|
import ot from "@mui/material/Switch";
|
|
9
|
-
import { Text as b, Icon as
|
|
10
|
-
import
|
|
9
|
+
import { Text as b, Icon as k, THEMES as H } from "@mxenabled/mxui";
|
|
10
|
+
import I from "@mui/material/Divider";
|
|
11
11
|
import v from "@mui/material/ListItem";
|
|
12
12
|
import N from "@mui/material/ListItemButton";
|
|
13
13
|
import w from "@mui/material/ListItemText";
|
|
14
14
|
import { u as D } from "./AccountDetailsHeader-BkG3MNYo.mjs";
|
|
15
15
|
import { d as z, u as E, g as O, h as X } from "./hooks-ZMp65DFz.mjs";
|
|
16
16
|
import { A as at } from "./AccountListItem-DHrz8Mml.mjs";
|
|
17
|
-
import { A as
|
|
18
|
-
import { D as V, f as
|
|
17
|
+
import { A as M } from "./WidgetContainer-CoFDmQRE.mjs";
|
|
18
|
+
import { D as V, f as G, a as K } from "./Dialog-BPTr3qHE.mjs";
|
|
19
19
|
import { b as h } from "./Localization-2MODESHW.mjs";
|
|
20
20
|
import { D as J } from "./Drawer-By9V-B5L.mjs";
|
|
21
21
|
import P from "@mui/material/ListItemAvatar";
|
|
@@ -24,8 +24,8 @@ import st from "@mui/material/styles/useTheme";
|
|
|
24
24
|
import { Error as q, CheckCircle as it, Language as rt } from "@mxenabled/mx-icons";
|
|
25
25
|
import { n as m, N as Q, l as Z, F as R } from "./ConnectDrawer-BkvlItWx.mjs";
|
|
26
26
|
import { fromUnixTime as lt } from "date-fns/fromUnixTime";
|
|
27
|
-
import { isToday as
|
|
28
|
-
import { isYesterday as
|
|
27
|
+
import { isToday as ut } from "date-fns/isToday";
|
|
28
|
+
import { isYesterday as dt } from "date-fns/isYesterday";
|
|
29
29
|
import { I as F } from "./IconBacking-B9oC6uL2.mjs";
|
|
30
30
|
import { addMonths as _t } from "date-fns/addMonths";
|
|
31
31
|
import { alpha as mt } from "@mui/material/styles";
|
|
@@ -43,7 +43,7 @@ import Et from "@mui/material/Alert";
|
|
|
43
43
|
import yt from "@mui/material/AlertTitle";
|
|
44
44
|
import xt from "@mui/material/Link";
|
|
45
45
|
import wt from "@mui/material/Paper";
|
|
46
|
-
import { subDays as
|
|
46
|
+
import { subDays as Mt, startOfToday as kt, endOfToday as It } from "date-fns";
|
|
47
47
|
import { T as vt, a as Lt } from "./TransactionDetails-m5PddMQn.mjs";
|
|
48
48
|
import { T as j } from "./TabContentContainer-j01JYR_7.mjs";
|
|
49
49
|
const U = ({
|
|
@@ -52,19 +52,19 @@ const U = ({
|
|
|
52
52
|
onClick: n,
|
|
53
53
|
primaryText: c,
|
|
54
54
|
secondaryText: i
|
|
55
|
-
}) => /* @__PURE__ */
|
|
56
|
-
/* @__PURE__ */ t(v, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */
|
|
55
|
+
}) => /* @__PURE__ */ u(g, { children: [
|
|
56
|
+
/* @__PURE__ */ t(v, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ u(N, { onClick: n, children: [
|
|
57
57
|
/* @__PURE__ */ t(w, { primary: c, secondary: i }),
|
|
58
58
|
e
|
|
59
59
|
] }) }),
|
|
60
|
-
/* @__PURE__ */ t(
|
|
60
|
+
/* @__PURE__ */ t(I, { sx: { ml: o ? 0 : 24 } })
|
|
61
61
|
] }), Nt = () => {
|
|
62
62
|
const { accounts: e } = z(), { selectedAccount: o, selectedMember: n } = D();
|
|
63
63
|
return e.filter(
|
|
64
64
|
(c) => c.member_guid === n.guid && n.successfully_aggregated_at && c.guid !== o.guid
|
|
65
65
|
);
|
|
66
66
|
}, Ot = () => {
|
|
67
|
-
const [e, o] = _.useState(!1), [n, c] = _.useState(!1), [i,
|
|
67
|
+
const [e, o] = _.useState(!1), [n, c] = _.useState(!1), [i, d] = _.useState(!1), [l, s] = _.useState({}), { selectedAccount: r } = D(), { mergeAccounts: y, updateAccount: S } = z(), { accounts: a } = E(), C = Nt(), { onEvent: A } = O(), { modifyTransactionByAccountGuid: x } = X(), L = async (f) => {
|
|
68
68
|
await S({
|
|
69
69
|
...r,
|
|
70
70
|
...f
|
|
@@ -74,13 +74,13 @@ const U = ({
|
|
|
74
74
|
() => c(!1)
|
|
75
75
|
);
|
|
76
76
|
};
|
|
77
|
-
return /* @__PURE__ */
|
|
77
|
+
return /* @__PURE__ */ u(g, { children: [
|
|
78
78
|
/* @__PURE__ */ t(Y, { sx: { backgroundColor: "transparent", mb: 4, mt: 12, mx: 8 }, children: /* @__PURE__ */ t(b, { bold: !0, component: "h2", variant: "XSmall", children: a.actions }) }),
|
|
79
79
|
/* @__PURE__ */ t(
|
|
80
80
|
U,
|
|
81
81
|
{
|
|
82
82
|
onClick: () => {
|
|
83
|
-
L({ is_hidden: !r.is_hidden }), A(
|
|
83
|
+
L({ is_hidden: !r.is_hidden }), A(M.ACCOUNT_DETAILS_CLICK_HIDE, { account_guid: r.guid });
|
|
84
84
|
},
|
|
85
85
|
primaryText: r.is_hidden ? a.unhide_account : a.hide_Account,
|
|
86
86
|
secondaryText: r.is_hidden ? a.include_this_account : a.exclude_this_account,
|
|
@@ -91,13 +91,13 @@ const U = ({
|
|
|
91
91
|
U,
|
|
92
92
|
{
|
|
93
93
|
onClick: () => {
|
|
94
|
-
o(!0), A(
|
|
94
|
+
o(!0), A(M.ACCOUNT_DETAILS_CLICK_MARK_CLOSED, {
|
|
95
95
|
account_guid: r.guid
|
|
96
96
|
});
|
|
97
97
|
},
|
|
98
98
|
primaryText: r.is_closed ? a.mark_as_open : a.mark_as_closed,
|
|
99
99
|
secondaryText: r.is_closed ? a.this_will_set_the_closed_account : a.this_will_set_the_account_balance_to_0,
|
|
100
|
-
children: /* @__PURE__ */ t(
|
|
100
|
+
children: /* @__PURE__ */ t(k, { name: "chevron_right" })
|
|
101
101
|
}
|
|
102
102
|
),
|
|
103
103
|
C.length > 0 && /* @__PURE__ */ t(
|
|
@@ -105,13 +105,13 @@ const U = ({
|
|
|
105
105
|
{
|
|
106
106
|
isLast: !0,
|
|
107
107
|
onClick: () => {
|
|
108
|
-
c(!0), A(
|
|
108
|
+
c(!0), A(M.ACCOUNT_DETAILS_CLICK_MARK_DUPLICATE, {
|
|
109
109
|
account_guid: r.guid
|
|
110
110
|
});
|
|
111
111
|
},
|
|
112
112
|
primaryText: a.mark_as_duplicate,
|
|
113
113
|
secondaryText: a.if_a_connected_account_is_showing_up_twice,
|
|
114
|
-
children: /* @__PURE__ */ t(
|
|
114
|
+
children: /* @__PURE__ */ t(k, { name: "chevron_right" })
|
|
115
115
|
}
|
|
116
116
|
),
|
|
117
117
|
/* @__PURE__ */ t(
|
|
@@ -141,13 +141,13 @@ const U = ({
|
|
|
141
141
|
title: a.mark_as_duplicate,
|
|
142
142
|
children: /* @__PURE__ */ t($, { children: C.map((f) => {
|
|
143
143
|
const et = C.indexOf(f) === C.length - 1;
|
|
144
|
-
return /* @__PURE__ */
|
|
144
|
+
return /* @__PURE__ */ u(_.Fragment, { children: [
|
|
145
145
|
/* @__PURE__ */ t(
|
|
146
146
|
at,
|
|
147
147
|
{
|
|
148
148
|
account: f,
|
|
149
149
|
onRowClick: () => {
|
|
150
|
-
|
|
150
|
+
d(!0), s(f);
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
153
|
),
|
|
@@ -156,7 +156,7 @@ const U = ({
|
|
|
156
156
|
}) })
|
|
157
157
|
}
|
|
158
158
|
),
|
|
159
|
-
i && /* @__PURE__ */
|
|
159
|
+
i && /* @__PURE__ */ u(
|
|
160
160
|
V,
|
|
161
161
|
{
|
|
162
162
|
copy: {
|
|
@@ -164,7 +164,7 @@ const U = ({
|
|
|
164
164
|
title: a.confirm_merge
|
|
165
165
|
},
|
|
166
166
|
isOpen: i,
|
|
167
|
-
onClose: () =>
|
|
167
|
+
onClose: () => d(!1),
|
|
168
168
|
onPrimaryAction: p,
|
|
169
169
|
children: [
|
|
170
170
|
/* @__PURE__ */ t(b, { truncate: !1, children: h(
|
|
@@ -314,12 +314,12 @@ const U = ({
|
|
|
314
314
|
};
|
|
315
315
|
default: {
|
|
316
316
|
const c = () => {
|
|
317
|
-
const i = e.successfully_aggregated_at ? lt(e.successfully_aggregated_at) : void 0,
|
|
318
|
-
if (
|
|
319
|
-
return
|
|
317
|
+
const i = e.successfully_aggregated_at ? lt(e.successfully_aggregated_at) : void 0, d = i && G(i, K.TIME_STAMP_HOUR_MINUTE);
|
|
318
|
+
if (d)
|
|
319
|
+
return ut(i) ? h(o.last_updated_at, o.today, d) : dt(i) ? h(o.last_updated_at, o.yesterday, d) : h(
|
|
320
320
|
o.last_updated_at,
|
|
321
|
-
|
|
322
|
-
|
|
321
|
+
G(i, K.MONTH_DAY_YEAR),
|
|
322
|
+
d
|
|
323
323
|
);
|
|
324
324
|
};
|
|
325
325
|
return {
|
|
@@ -338,7 +338,7 @@ const U = ({
|
|
|
338
338
|
}, Rt = () => {
|
|
339
339
|
const [e, o] = _.useState(!1), {
|
|
340
340
|
palette: { mode: n }
|
|
341
|
-
} = st(), { selectedMember: c } = D(), { accounts: i, connect:
|
|
341
|
+
} = st(), { selectedMember: c } = D(), { accounts: i, connect: d } = E(), l = tt(c, d), s = Q.includes(c.connection_status) ? {
|
|
342
342
|
color: "error.main",
|
|
343
343
|
ctaCopy: l.cta ?? "",
|
|
344
344
|
icon: /* @__PURE__ */ t(q, { filled: !0, sx: { ...W } }),
|
|
@@ -350,34 +350,34 @@ const U = ({
|
|
|
350
350
|
mainMessage: l.statusName,
|
|
351
351
|
secondaryMessage: l.title
|
|
352
352
|
};
|
|
353
|
-
return /* @__PURE__ */
|
|
353
|
+
return /* @__PURE__ */ u(g, { children: [
|
|
354
354
|
/* @__PURE__ */ t(Y, { sx: { mb: 4, mt: 12, mx: 8 }, children: /* @__PURE__ */ t(b, { bold: !0, component: "h2", variant: "XSmall", children: i.connection_status }) }),
|
|
355
|
-
/* @__PURE__ */ t(v, { sx: { backgroundColor: "background.paper" }, children: c.is_manual || !s.ctaCopy ? /* @__PURE__ */
|
|
355
|
+
/* @__PURE__ */ t(v, { sx: { backgroundColor: "background.paper" }, children: c.is_manual || !s.ctaCopy ? /* @__PURE__ */ u(ct, { alignItems: "center", direction: "row", px: 24, py: 12, children: [
|
|
356
356
|
/* @__PURE__ */ t(P, { children: /* @__PURE__ */ t(F, { backingSx: { backgroundColor: s.color, borderRadius: 1 }, size: 32, children: s.icon }) }),
|
|
357
357
|
/* @__PURE__ */ t(w, { primary: s.mainMessage, secondary: s.secondaryMessage })
|
|
358
|
-
] }) : /* @__PURE__ */
|
|
358
|
+
] }) : /* @__PURE__ */ u(N, { onClick: () => o(!0), children: [
|
|
359
359
|
/* @__PURE__ */ t(P, { children: /* @__PURE__ */ t(F, { backingSx: { backgroundColor: s.color, borderRadius: 1 }, size: 32, children: s.icon }) }),
|
|
360
360
|
/* @__PURE__ */ t(
|
|
361
361
|
w,
|
|
362
362
|
{
|
|
363
363
|
primary: s.mainMessage,
|
|
364
|
-
secondary: s.secondaryMessage && /* @__PURE__ */
|
|
364
|
+
secondary: s.secondaryMessage && /* @__PURE__ */ u(g, { children: [
|
|
365
365
|
s.secondaryMessage,
|
|
366
366
|
" ",
|
|
367
367
|
/* @__PURE__ */ t(b, { bold: !0, sx: { color: "action.active" }, variant: "XSmall", children: s.ctaCopy })
|
|
368
368
|
] })
|
|
369
369
|
}
|
|
370
370
|
),
|
|
371
|
-
/* @__PURE__ */ t(
|
|
371
|
+
/* @__PURE__ */ t(k, { name: "chevron_right" })
|
|
372
372
|
] }) }),
|
|
373
|
-
/* @__PURE__ */ t(
|
|
374
|
-
!c.is_manual && c.institution_url && /* @__PURE__ */
|
|
375
|
-
/* @__PURE__ */ t(v, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */
|
|
373
|
+
/* @__PURE__ */ t(I, { sx: { ml: c.is_manual || !c.institution_url ? 0 : 24 } }),
|
|
374
|
+
!c.is_manual && c.institution_url && /* @__PURE__ */ u(g, { children: [
|
|
375
|
+
/* @__PURE__ */ t(v, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ u(N, { component: "a", href: c.institution_url, target: "_blank", children: [
|
|
376
376
|
/* @__PURE__ */ t(P, { children: /* @__PURE__ */ t(
|
|
377
377
|
F,
|
|
378
378
|
{
|
|
379
379
|
backingSx: {
|
|
380
|
-
backgroundColor: n ===
|
|
380
|
+
backgroundColor: n === H.LIGHT ? "grey.300" : "grey.700",
|
|
381
381
|
borderRadius: 1
|
|
382
382
|
},
|
|
383
383
|
size: 32,
|
|
@@ -386,16 +386,16 @@ const U = ({
|
|
|
386
386
|
{
|
|
387
387
|
sx: {
|
|
388
388
|
...W,
|
|
389
|
-
color: n ===
|
|
389
|
+
color: n === H.LIGHT ? "grey.900" : "common.white"
|
|
390
390
|
}
|
|
391
391
|
}
|
|
392
392
|
)
|
|
393
393
|
}
|
|
394
394
|
) }),
|
|
395
395
|
/* @__PURE__ */ t(w, { primary: c.name, secondary: c.institution_url }),
|
|
396
|
-
/* @__PURE__ */ t(
|
|
396
|
+
/* @__PURE__ */ t(k, { name: "launch" })
|
|
397
397
|
] }) }),
|
|
398
|
-
/* @__PURE__ */ t(
|
|
398
|
+
/* @__PURE__ */ t(I, {})
|
|
399
399
|
] }),
|
|
400
400
|
e && /* @__PURE__ */ t(
|
|
401
401
|
Z,
|
|
@@ -408,12 +408,12 @@ const U = ({
|
|
|
408
408
|
)
|
|
409
409
|
] });
|
|
410
410
|
}, Ft = T(Rt), Ut = ({ field: e, isOpen: o, onClose: n }) => {
|
|
411
|
-
const { updateAccount: c } = z(), { selectedAccount: i } = D(), { accounts:
|
|
411
|
+
const { updateAccount: c } = z(), { selectedAccount: i } = D(), { accounts: d } = E(), [l, s] = _.useState(i[e.name]), [r, y] = _.useState(""), [S, a] = _.useState(!0), C = () => {
|
|
412
412
|
s(""), y(""), n();
|
|
413
413
|
}, A = () => {
|
|
414
414
|
switch (e.type) {
|
|
415
415
|
case R.Select:
|
|
416
|
-
return /* @__PURE__ */
|
|
416
|
+
return /* @__PURE__ */ u(gt, { fullWidth: !0, children: [
|
|
417
417
|
/* @__PURE__ */ t(Ct, { id: `${e.label}-select-label`, children: e.label }),
|
|
418
418
|
/* @__PURE__ */ t(
|
|
419
419
|
At,
|
|
@@ -497,22 +497,29 @@ const U = ({
|
|
|
497
497
|
V,
|
|
498
498
|
{
|
|
499
499
|
copy: {
|
|
500
|
-
close_aria:
|
|
501
|
-
title: h(
|
|
500
|
+
close_aria: d.close_aria,
|
|
501
|
+
title: h(d.edit_field, e.label)
|
|
502
502
|
},
|
|
503
503
|
disablePrimaryButton: !!r || !S,
|
|
504
504
|
isOpen: o,
|
|
505
505
|
onClose: C,
|
|
506
506
|
onPrimaryAction: x,
|
|
507
|
-
primaryText:
|
|
507
|
+
primaryText: d.save,
|
|
508
|
+
sx: {
|
|
509
|
+
"& .MuiButton-root:focus-visible, & .MuiButton-root:focus": {
|
|
510
|
+
outline: "2px solid",
|
|
511
|
+
outlineColor: "primary.main",
|
|
512
|
+
outlineOffset: "2px"
|
|
513
|
+
}
|
|
514
|
+
},
|
|
508
515
|
children: A()
|
|
509
516
|
}
|
|
510
517
|
);
|
|
511
518
|
}, Wt = T(Ut), $t = () => {
|
|
512
|
-
const e = window.app?.config, { onEvent: o } = O(), { selectedAccount: n } = D(), { accounts: c } = E(), i = Dt(n, c),
|
|
513
|
-
(a) =>
|
|
519
|
+
const e = window.app?.config, { onEvent: o } = O(), { selectedAccount: n } = D(), { accounts: c } = E(), i = Dt(n, c), d = n.member_is_managed_by_user || !n.member_is_managed_by_user && e.enable_renaming_home_accounts, [l, s] = _.useState(!1), [r, y] = _.useState(i[0]), S = i.filter(
|
|
520
|
+
(a) => d || n[a.name] || n[a.name] === 0
|
|
514
521
|
);
|
|
515
|
-
return /* @__PURE__ */
|
|
522
|
+
return /* @__PURE__ */ u(g, { children: [
|
|
516
523
|
S.map((a) => {
|
|
517
524
|
const C = n[a.name] || n[a.name] === 0, A = S.indexOf(a) === S.length - 1, x = /* @__PURE__ */ t(
|
|
518
525
|
w,
|
|
@@ -522,8 +529,8 @@ const U = ({
|
|
|
522
529
|
secondary: /* @__PURE__ */ t(b, { bold: !0, sx: { fontSize: 15 }, children: C ? a.valueFormatter(n[a.name]) : a.placeholder })
|
|
523
530
|
}
|
|
524
531
|
);
|
|
525
|
-
return /* @__PURE__ */ t(_.Fragment, { children:
|
|
526
|
-
/* @__PURE__ */ t(v, { sx: { backgroundColor: "background.paper", px: 0 }, children: /* @__PURE__ */
|
|
532
|
+
return /* @__PURE__ */ t(_.Fragment, { children: d ? /* @__PURE__ */ u(g, { children: [
|
|
533
|
+
/* @__PURE__ */ t(v, { sx: { backgroundColor: "background.paper", px: 0 }, children: /* @__PURE__ */ u(
|
|
527
534
|
N,
|
|
528
535
|
{
|
|
529
536
|
onClick: () => {
|
|
@@ -531,14 +538,14 @@ const U = ({
|
|
|
531
538
|
},
|
|
532
539
|
children: [
|
|
533
540
|
x,
|
|
534
|
-
/* @__PURE__ */ t(
|
|
541
|
+
/* @__PURE__ */ t(k, { name: "chevron_right" })
|
|
535
542
|
]
|
|
536
543
|
}
|
|
537
544
|
) }),
|
|
538
|
-
/* @__PURE__ */ t(
|
|
539
|
-
] }) : C && /* @__PURE__ */
|
|
545
|
+
/* @__PURE__ */ t(I, { sx: { ml: A ? 0 : 24 } })
|
|
546
|
+
] }) : C && /* @__PURE__ */ u(g, { children: [
|
|
540
547
|
/* @__PURE__ */ t(v, { sx: { backgroundColor: "background.paper", px: 24 }, children: x }),
|
|
541
|
-
/* @__PURE__ */ t(
|
|
548
|
+
/* @__PURE__ */ t(I, { sx: { ml: A ? 0 : 24 } })
|
|
542
549
|
] }) }, a.name);
|
|
543
550
|
}),
|
|
544
551
|
l && r && /* @__PURE__ */ t(
|
|
@@ -552,18 +559,18 @@ const U = ({
|
|
|
552
559
|
] });
|
|
553
560
|
}, Vt = T($t), zt = () => {
|
|
554
561
|
const { onEvent: e } = O();
|
|
555
|
-
return _.useEffect(() => e(
|
|
562
|
+
return _.useEffect(() => e(M.ACCOUNT_DETAILS_VIEW), []), /* @__PURE__ */ u($, { children: [
|
|
556
563
|
/* @__PURE__ */ t(Vt, {}),
|
|
557
564
|
/* @__PURE__ */ t(Ft, {}),
|
|
558
565
|
/* @__PURE__ */ t(Pt, {})
|
|
559
566
|
] });
|
|
560
|
-
},
|
|
561
|
-
const [o, n] = _.useState(!1), { selectedMember: c } = D(), { accounts: i, connect:
|
|
567
|
+
}, Bt = T(zt), Ht = ({ setTabValue: e }) => {
|
|
568
|
+
const [o, n] = _.useState(!1), { selectedMember: c } = D(), { accounts: i, connect: d } = E(), l = c.connection_status && Q.includes(c.connection_status);
|
|
562
569
|
if (_.useEffect(() => {
|
|
563
570
|
l && e(1);
|
|
564
571
|
}, [l]), !l) return;
|
|
565
|
-
const s = tt(c,
|
|
566
|
-
return /* @__PURE__ */
|
|
572
|
+
const s = tt(c, d);
|
|
573
|
+
return /* @__PURE__ */ u(g, { children: [
|
|
567
574
|
/* @__PURE__ */ t(
|
|
568
575
|
wt,
|
|
569
576
|
{
|
|
@@ -572,7 +579,7 @@ const U = ({
|
|
|
572
579
|
mt: 24,
|
|
573
580
|
mx: 24
|
|
574
581
|
},
|
|
575
|
-
children: /* @__PURE__ */
|
|
582
|
+
children: /* @__PURE__ */ u(
|
|
576
583
|
Et,
|
|
577
584
|
{
|
|
578
585
|
icon: /* @__PURE__ */ t(q, { filled: !0 }),
|
|
@@ -613,17 +620,17 @@ const U = ({
|
|
|
613
620
|
}
|
|
614
621
|
)
|
|
615
622
|
] });
|
|
616
|
-
},
|
|
617
|
-
const [e, o] = _.useState(""), { onEvent: n } = O(), { selectedAccount: c } = D(), { accounts: i } = E(), { setFilter:
|
|
623
|
+
}, Gt = T(Ht), Kt = () => {
|
|
624
|
+
const [e, o] = _.useState(""), { onEvent: n } = O(), { selectedAccount: c } = D(), { accounts: i } = E(), { setFilter: d, sortedTransactions: l } = X(), s = _.useMemo(
|
|
618
625
|
() => l.find((r) => r.guid === e),
|
|
619
626
|
[e, l]
|
|
620
627
|
);
|
|
621
628
|
return _.useEffect(() => {
|
|
622
|
-
|
|
623
|
-
dateRange: { start: kt(
|
|
629
|
+
d({
|
|
630
|
+
dateRange: { start: Mt(kt(), 90), end: It() },
|
|
624
631
|
accounts: [c.guid]
|
|
625
632
|
});
|
|
626
|
-
}, [c]), _.useEffect(() => n(
|
|
633
|
+
}, [c]), _.useEffect(() => n(M.ACCOUNT_DETAILS_VIEW_TRANSACTIONS), []), /* @__PURE__ */ u(g, { children: [
|
|
627
634
|
/* @__PURE__ */ t(vt, { onClick: o }),
|
|
628
635
|
s && /* @__PURE__ */ t(
|
|
629
636
|
J,
|
|
@@ -638,9 +645,9 @@ const U = ({
|
|
|
638
645
|
] });
|
|
639
646
|
}, jt = T(Kt), Yt = () => {
|
|
640
647
|
const [e, o] = _.useState(0), { accounts: n } = E();
|
|
641
|
-
return /* @__PURE__ */
|
|
642
|
-
/* @__PURE__ */ t(
|
|
643
|
-
/* @__PURE__ */
|
|
648
|
+
return /* @__PURE__ */ u(g, { children: [
|
|
649
|
+
/* @__PURE__ */ t(Gt, { setTabValue: o }),
|
|
650
|
+
/* @__PURE__ */ u(
|
|
644
651
|
nt,
|
|
645
652
|
{
|
|
646
653
|
"aria-label": n.transactions_and_details_aria,
|
|
@@ -651,7 +658,7 @@ const U = ({
|
|
|
651
658
|
variant: "fullWidth",
|
|
652
659
|
children: [
|
|
653
660
|
/* @__PURE__ */ t(
|
|
654
|
-
|
|
661
|
+
B,
|
|
655
662
|
{
|
|
656
663
|
"aria-controls": "transaction-details-tabpanel-0",
|
|
657
664
|
id: "transaction-details-tab-0",
|
|
@@ -659,7 +666,7 @@ const U = ({
|
|
|
659
666
|
}
|
|
660
667
|
),
|
|
661
668
|
/* @__PURE__ */ t(
|
|
662
|
-
|
|
669
|
+
B,
|
|
663
670
|
{
|
|
664
671
|
"aria-controls": "account-details-tabpanel-1",
|
|
665
672
|
id: "account-details-tab-1",
|
|
@@ -670,10 +677,10 @@ const U = ({
|
|
|
670
677
|
}
|
|
671
678
|
),
|
|
672
679
|
/* @__PURE__ */ t(j, { index: 0, name: "transaction-details", value: e, children: /* @__PURE__ */ t(jt, {}) }),
|
|
673
|
-
/* @__PURE__ */ t(j, { index: 1, name: "account-details", value: e, children: /* @__PURE__ */ t(
|
|
680
|
+
/* @__PURE__ */ t(j, { index: 1, name: "account-details", value: e, children: /* @__PURE__ */ t(Bt, {}) })
|
|
674
681
|
] });
|
|
675
|
-
},
|
|
682
|
+
}, Be = T(Yt);
|
|
676
683
|
export {
|
|
677
|
-
|
|
684
|
+
Be as A,
|
|
678
685
|
Nt as u
|
|
679
686
|
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { jsx as r, jsxs as h, Fragment as f } from "react/jsx-runtime";
|
|
2
|
+
import x from "@mui/material/Button";
|
|
3
|
+
import u from "@mui/material/Card";
|
|
4
|
+
import C from "@mui/material/CardContent";
|
|
5
|
+
import b from "@mui/material/CardHeader";
|
|
6
|
+
import { P as g, H3 as v } from "@mxenabled/mxui";
|
|
7
|
+
import { ChevronRight as W } from "@mxenabled/mx-icons";
|
|
8
|
+
import { u as M } from "./useDimensions-27p2evRx.mjs";
|
|
9
|
+
import { W as w } from "./hooks-ZMp65DFz.mjs";
|
|
10
|
+
const y = ({
|
|
11
|
+
children: o,
|
|
12
|
+
className: e,
|
|
13
|
+
ctaLabel: n,
|
|
14
|
+
onCTAClick: a,
|
|
15
|
+
subHeader: i,
|
|
16
|
+
sx: s,
|
|
17
|
+
title: c,
|
|
18
|
+
variant: l = "borderless"
|
|
19
|
+
}) => {
|
|
20
|
+
const [d, { height: m, width: p }] = M(), t = /* @__PURE__ */ h(f, { children: [
|
|
21
|
+
/* @__PURE__ */ r(
|
|
22
|
+
b,
|
|
23
|
+
{
|
|
24
|
+
action: /* @__PURE__ */ r(
|
|
25
|
+
x,
|
|
26
|
+
{
|
|
27
|
+
endIcon: /* @__PURE__ */ r(W, { size: 20 }),
|
|
28
|
+
onClick: a,
|
|
29
|
+
size: "small",
|
|
30
|
+
sx: {
|
|
31
|
+
"&:focus-visible, &:focus": {
|
|
32
|
+
outline: "2px solid",
|
|
33
|
+
outlineColor: "primary.main",
|
|
34
|
+
outlineOffset: "2px"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
variant: "text",
|
|
38
|
+
children: n
|
|
39
|
+
}
|
|
40
|
+
),
|
|
41
|
+
subheader: i && /* @__PURE__ */ r(g, { sx: { color: "text.secondary" }, variant: "body2", children: i }),
|
|
42
|
+
sx: { p: 0, pb: 8, width: "calc(100% - 8px)", "& .MuiCardHeader-action": { mt: 0 } },
|
|
43
|
+
title: /* @__PURE__ */ r(v, { sx: { width: "calc(100% - 10px)" }, children: c })
|
|
44
|
+
}
|
|
45
|
+
),
|
|
46
|
+
/* @__PURE__ */ r(C, { ref: d, sx: { p: 0, ":last-child": { pb: 0 } }, children: /* @__PURE__ */ r(w, { availableHeight: m, availableWidth: p, children: o }) })
|
|
47
|
+
] });
|
|
48
|
+
return l === "borderless" ? t : /* @__PURE__ */ r(u, { className: e, sx: { alignItems: "center", p: 16, ...s }, children: t });
|
|
49
|
+
}, F = y;
|
|
50
|
+
export {
|
|
51
|
+
F as M
|
|
52
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { jsxs as r, jsx as i, Fragment as x } from "react/jsx-runtime";
|
|
2
|
+
import g from "@mui/material/Box";
|
|
3
|
+
import u from "@mui/material/Button";
|
|
4
|
+
import C from "@mui/material/Card";
|
|
5
|
+
import v from "@mui/material/CardHeader";
|
|
6
|
+
import b from "@mui/material/CardContent";
|
|
7
|
+
import W from "@mui/material/IconButton";
|
|
8
|
+
import { Icon as z, ChevronRight as H } from "@mxenabled/mx-icons";
|
|
9
|
+
import { H3 as I, Text as B, P as M } from "@mxenabled/mxui";
|
|
10
|
+
import { u as S } from "./useDimensions-27p2evRx.mjs";
|
|
11
|
+
import { W as j } from "./hooks-ZMp65DFz.mjs";
|
|
12
|
+
const w = ({
|
|
13
|
+
children: a,
|
|
14
|
+
className: l = "mx-cmn-mini-widget",
|
|
15
|
+
closeLabel: m,
|
|
16
|
+
contentStyles: s,
|
|
17
|
+
onClose: e,
|
|
18
|
+
onPrimaryCtaClick: o,
|
|
19
|
+
primaryCtaLabel: d = "",
|
|
20
|
+
subTitle: n = "",
|
|
21
|
+
sx: c = {},
|
|
22
|
+
title: t = ""
|
|
23
|
+
}) => {
|
|
24
|
+
const [p, { height: f, width: h }] = S();
|
|
25
|
+
return /* @__PURE__ */ r(C, { className: l, sx: { ...c }, children: [
|
|
26
|
+
/* @__PURE__ */ i(
|
|
27
|
+
v,
|
|
28
|
+
{
|
|
29
|
+
sx: { pb: 8 },
|
|
30
|
+
title: /* @__PURE__ */ r(x, { children: [
|
|
31
|
+
/* @__PURE__ */ r(
|
|
32
|
+
g,
|
|
33
|
+
{
|
|
34
|
+
sx: {
|
|
35
|
+
alignItems: "center",
|
|
36
|
+
display: "grid",
|
|
37
|
+
gap: 2,
|
|
38
|
+
gridTemplateColumns: "1fr auto",
|
|
39
|
+
pb: 4
|
|
40
|
+
},
|
|
41
|
+
children: [
|
|
42
|
+
t && /* @__PURE__ */ i(I, { children: t }),
|
|
43
|
+
e ? /* @__PURE__ */ i(W, { "aria-label": m, onClick: e, size: "small", children: /* @__PURE__ */ i(z, { name: "close", size: 24 }) }) : o && /* @__PURE__ */ i(
|
|
44
|
+
u,
|
|
45
|
+
{
|
|
46
|
+
endIcon: /* @__PURE__ */ i(H, {}),
|
|
47
|
+
onClick: o,
|
|
48
|
+
size: "small",
|
|
49
|
+
sx: {
|
|
50
|
+
"&:focus-visible, &:focus": {
|
|
51
|
+
outline: "2px solid",
|
|
52
|
+
outlineColor: "primary.main",
|
|
53
|
+
outlineOffset: "2px"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
children: /* @__PURE__ */ i(B, { bold: !0, variant: "Small", children: d })
|
|
57
|
+
}
|
|
58
|
+
)
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
),
|
|
62
|
+
n && /* @__PURE__ */ i(M, { color: "text.secondary", sx: { fontSize: 15, lineHeight: "20px" }, variant: "Small", children: n })
|
|
63
|
+
] })
|
|
64
|
+
}
|
|
65
|
+
),
|
|
66
|
+
/* @__PURE__ */ i(b, { ref: p, sx: { p: 0, ...s }, children: /* @__PURE__ */ i(j, { availableHeight: f, availableWidth: h, children: a }) })
|
|
67
|
+
] });
|
|
68
|
+
}, E = w;
|
|
69
|
+
export {
|
|
70
|
+
E as M
|
|
71
|
+
};
|
|
@@ -18,8 +18,8 @@ import { I as $, P as j, S as Y } from "../Account-CvR2-dSR.mjs";
|
|
|
18
18
|
import { a as d1 } from "../AccountFields-zCMqet85.mjs";
|
|
19
19
|
import { g as s3, b as a3 } from "../AccountFields-zCMqet85.mjs";
|
|
20
20
|
import { A as N } from "../AccountListItem-DHrz8Mml.mjs";
|
|
21
|
-
import { A as c1 } from "../AccountDetailsContent-
|
|
22
|
-
import { u as L3 } from "../AccountDetailsContent-
|
|
21
|
+
import { A as c1 } from "../AccountDetailsContent-CitErkuS.mjs";
|
|
22
|
+
import { u as L3 } from "../AccountDetailsContent-CitErkuS.mjs";
|
|
23
23
|
import { f as D } from "../NumberFormatting-DjTD0t3W.mjs";
|
|
24
24
|
import { D as s1 } from "../Drawer-By9V-B5L.mjs";
|
|
25
25
|
import { A as x, W as a1 } from "../WidgetContainer-CoFDmQRE.mjs";
|
|
@@ -28,7 +28,7 @@ import { u as K } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
|
28
28
|
import { u as B } from "../useWidgetLoadTimer-hIOioiKx.mjs";
|
|
29
29
|
import { L as w } from "../Loader-DUaFpDGv.mjs";
|
|
30
30
|
import L1 from "@mui/material/ListItem";
|
|
31
|
-
import { M as z } from "../MiniWidgetContainer-
|
|
31
|
+
import { M as z } from "../MiniWidgetContainer-Bg02sF1Y.mjs";
|
|
32
32
|
import u1 from "@mui/material/Stack";
|
|
33
33
|
import { A as h3, a as H3 } from "../AccountStore-LgfBcYMe.mjs";
|
|
34
34
|
const h1 = (o, C) => {
|
|
@@ -8,7 +8,7 @@ import a from "@mui/material/Stack";
|
|
|
8
8
|
import _ from "@mui/material/styles/useTheme";
|
|
9
9
|
import { Text as u, TextField as L } from "@mxenabled/mxui";
|
|
10
10
|
import { L as W } from "../Loader-DUaFpDGv.mjs";
|
|
11
|
-
import { M as j } from "../MiniWidgetContainer-
|
|
11
|
+
import { M as j } from "../MiniWidgetContainer-Bg02sF1Y.mjs";
|
|
12
12
|
import { k as f, u as b, g as q, b as E } from "../hooks-ZMp65DFz.mjs";
|
|
13
13
|
import Q from "@mui/material/ToggleButton";
|
|
14
14
|
import G from "@mui/material/ToggleButtonGroup";
|
package/dist/budgets/index.es.js
CHANGED
|
@@ -31,7 +31,7 @@ import { E as ue } from "../EmptyState-DoxNUae-.mjs";
|
|
|
31
31
|
import { A as $, W as Je } from "../WidgetContainer-CoFDmQRE.mjs";
|
|
32
32
|
import { u as Qe } from "../BudgetUtil-BmZXkL0C.mjs";
|
|
33
33
|
import { u as we } from "../useWidgetLoadTimer-hIOioiKx.mjs";
|
|
34
|
-
import { M as et } from "../MiniWidgetContainer-
|
|
34
|
+
import { M as et } from "../MiniWidgetContainer-Bg02sF1Y.mjs";
|
|
35
35
|
import { isAfter as tt } from "date-fns/isAfter";
|
|
36
36
|
import { startOfToday as J } from "date-fns/startOfToday";
|
|
37
37
|
import De from "@mui/material/Alert";
|
|
@@ -16,7 +16,7 @@ import { I as fe } from "../CashflowStore-D9Dpuz7X.mjs";
|
|
|
16
16
|
import { C as Bn } from "../CashflowStore-D9Dpuz7X.mjs";
|
|
17
17
|
import { b as M } from "../Localization-2MODESHW.mjs";
|
|
18
18
|
import { u as We } from "../useWidgetLoadTimer-hIOioiKx.mjs";
|
|
19
|
-
import { M as Je } from "../MiniWidgetContainer-
|
|
19
|
+
import { M as Je } from "../MiniWidgetContainer-Bg02sF1Y.mjs";
|
|
20
20
|
import { E as Ze } from "../EmptyState-DoxNUae-.mjs";
|
|
21
21
|
import { R as et } from "../RecurringSettings-B4ybrS0B.mjs";
|
|
22
22
|
import tt from "@mui/material/Tabs";
|
package/dist/common/index.es.js
CHANGED
|
@@ -10,8 +10,8 @@ import { T as rt } from "../User-Cnlegl1N.mjs";
|
|
|
10
10
|
import { C as ps, b as ms, L as _s, a as fs } from "../User-Cnlegl1N.mjs";
|
|
11
11
|
import { H as ot } from "../Help-DhcC-C05.mjs";
|
|
12
12
|
import { E as Ss } from "../Help-DhcC-C05.mjs";
|
|
13
|
-
import { M as ws } from "../MicroWidgetContainer-
|
|
14
|
-
import { M as Cs } from "../MiniWidgetContainer-
|
|
13
|
+
import { M as ws } from "../MicroWidgetContainer-r6mtxRer.mjs";
|
|
14
|
+
import { M as Cs } from "../MiniWidgetContainer-Bg02sF1Y.mjs";
|
|
15
15
|
import { A as Ds, D as As, W as Es } from "../WidgetContainer-CoFDmQRE.mjs";
|
|
16
16
|
import { k as Bs, a as Is, e as Ns, h as Ms, A as $s, f as ks, l as Rs, d as Us, n as Ps, E as Os, j as Ls, N as Gs, i as Hs, P as Fs, o as Ws, S as qs } from "../ConnectDrawer-BkvlItWx.mjs";
|
|
17
17
|
import { C as Qs } from "../CurrencyInput-itK0R3wV.mjs";
|
package/dist/goals/index.es.js
CHANGED
|
@@ -39,7 +39,7 @@ import nt from "@mui/material/Collapse";
|
|
|
39
39
|
import ot from "@mui/material/ListItemIcon";
|
|
40
40
|
import at from "@mui/material/Checkbox";
|
|
41
41
|
import { u as rt, A as it } from "../AccountDetailsHeader-BkG3MNYo.mjs";
|
|
42
|
-
import { A as st } from "../AccountDetailsContent-
|
|
42
|
+
import { A as st } from "../AccountDetailsContent-CitErkuS.mjs";
|
|
43
43
|
import { u as lt } from "../useAccountDisplayName-B7iXTNM8.mjs";
|
|
44
44
|
import De from "@mui/material/TextField";
|
|
45
45
|
import { M as ct, I as dt, O as mt } from "../OriginalBalanceAction-C6jdS4ws.mjs";
|
|
@@ -56,7 +56,7 @@ import yt from "@mui/material/Stack/Stack";
|
|
|
56
56
|
import At from "@mui/material/Box";
|
|
57
57
|
import Tt from "@mui/material/styles/useTheme";
|
|
58
58
|
import { S as Ct } from "../SingleSegmentDonut-BgbLgwHi.mjs";
|
|
59
|
-
import { M as St } from "../MicroWidgetContainer-
|
|
59
|
+
import { M as St } from "../MicroWidgetContainer-r6mtxRer.mjs";
|
|
60
60
|
function ce({ title: t, subtitle: n }) {
|
|
61
61
|
return /* @__PURE__ */ r(f, { children: [
|
|
62
62
|
/* @__PURE__ */ e(A, { bold: !0, variant: "Body", children: t }),
|
|
@@ -26,7 +26,7 @@ import { f as V } from "../NumberFormatting-DjTD0t3W.mjs";
|
|
|
26
26
|
import { u as ie } from "../useWidgetLoadTimer-hIOioiKx.mjs";
|
|
27
27
|
import { A as b, W as Me } from "../WidgetContainer-CoFDmQRE.mjs";
|
|
28
28
|
import { L as O } from "../Loader-DUaFpDGv.mjs";
|
|
29
|
-
import { M as Ae } from "../MicroWidgetContainer-
|
|
29
|
+
import { M as Ae } from "../MicroWidgetContainer-r6mtxRer.mjs";
|
|
30
30
|
import ae from "@mui/material/Box";
|
|
31
31
|
import { C as He } from "../ConnectionsDrawer-VmuVFHbL.mjs";
|
|
32
32
|
import Be from "@mui/material/Collapse";
|
|
@@ -52,9 +52,9 @@ import { S as $e } from "../StatusBar-BK_uYHAB.mjs";
|
|
|
52
52
|
import { u as ye } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
53
53
|
import { u as be } from "../useWidgetLoadTimer-hIOioiKx.mjs";
|
|
54
54
|
import { L as V } from "../Loader-DUaFpDGv.mjs";
|
|
55
|
-
import { M as gt } from "../MiniWidgetContainer-
|
|
55
|
+
import { M as gt } from "../MiniWidgetContainer-Bg02sF1Y.mjs";
|
|
56
56
|
import { u as ht } from "../useDimensions-27p2evRx.mjs";
|
|
57
|
-
import { M as ft } from "../MicroWidgetContainer-
|
|
57
|
+
import { M as ft } from "../MicroWidgetContainer-r6mtxRer.mjs";
|
|
58
58
|
const Q = {
|
|
59
59
|
gridRow: 1,
|
|
60
60
|
gridColumn: 1,
|
|
@@ -14,7 +14,7 @@ import { f as A } from "../NumberFormatting-DjTD0t3W.mjs";
|
|
|
14
14
|
import { u as w, b as R, m as F, d as dt, a as V, h as Ct, g as yt } from "../hooks-ZMp65DFz.mjs";
|
|
15
15
|
import { u as gt } from "../useWidgetLoadTimer-hIOioiKx.mjs";
|
|
16
16
|
import { L as P } from "../Loader-DUaFpDGv.mjs";
|
|
17
|
-
import { M as St } from "../MiniWidgetContainer-
|
|
17
|
+
import { M as St } from "../MiniWidgetContainer-Bg02sF1Y.mjs";
|
|
18
18
|
import { startOfToday as Z } from "date-fns/startOfToday";
|
|
19
19
|
import Tt from "@mui/material/Button";
|
|
20
20
|
import { useTheme as Mt } from "@mui/material";
|
package/dist/trends/index.es.js
CHANGED
|
@@ -36,10 +36,10 @@ import { D as He } from "../Drawer-By9V-B5L.mjs";
|
|
|
36
36
|
import { u as we } from "../useWidgetLoadTimer-hIOioiKx.mjs";
|
|
37
37
|
import { L as ge } from "../Loader-DUaFpDGv.mjs";
|
|
38
38
|
import { L as We } from "../LineChart-BQRxZF3p.mjs";
|
|
39
|
-
import { M as Ht } from "../MiniWidgetContainer-
|
|
39
|
+
import { M as Ht } from "../MiniWidgetContainer-Bg02sF1Y.mjs";
|
|
40
40
|
import { subMonths as Nt } from "date-fns";
|
|
41
41
|
import { TrendingUp as Wt, TrendingDown as Ot, MultilineChart as Gt, ExpandLess as Bt, ExpandMore as Vt } from "@mxenabled/mx-icons";
|
|
42
|
-
import { M as Pt } from "../MicroWidgetContainer-
|
|
42
|
+
import { M as Pt } from "../MicroWidgetContainer-r6mtxRer.mjs";
|
|
43
43
|
import Ft from "@mui/material/Collapse";
|
|
44
44
|
import $t from "@mui/material/List";
|
|
45
45
|
import zt from "@mui/material/ListItem";
|
package/package.json
CHANGED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { jsx as r, jsxs as p, Fragment as f } from "react/jsx-runtime";
|
|
2
|
-
import x from "@mui/material/Button";
|
|
3
|
-
import C from "@mui/material/Card";
|
|
4
|
-
import g from "@mui/material/CardContent";
|
|
5
|
-
import b from "@mui/material/CardHeader";
|
|
6
|
-
import { P as u, H3 as v } from "@mxenabled/mxui";
|
|
7
|
-
import { ChevronRight as W } from "@mxenabled/mx-icons";
|
|
8
|
-
import { u as M } from "./useDimensions-27p2evRx.mjs";
|
|
9
|
-
import { W as w } from "./hooks-ZMp65DFz.mjs";
|
|
10
|
-
const H = ({
|
|
11
|
-
children: e,
|
|
12
|
-
className: o,
|
|
13
|
-
ctaLabel: n,
|
|
14
|
-
onCTAClick: a,
|
|
15
|
-
subHeader: t,
|
|
16
|
-
sx: s,
|
|
17
|
-
title: c,
|
|
18
|
-
variant: d = "borderless"
|
|
19
|
-
}) => {
|
|
20
|
-
const [m, { height: l, width: h }] = M(), i = /* @__PURE__ */ p(f, { children: [
|
|
21
|
-
/* @__PURE__ */ r(
|
|
22
|
-
b,
|
|
23
|
-
{
|
|
24
|
-
action: /* @__PURE__ */ r(
|
|
25
|
-
x,
|
|
26
|
-
{
|
|
27
|
-
endIcon: /* @__PURE__ */ r(W, { size: 20 }),
|
|
28
|
-
onClick: a,
|
|
29
|
-
size: "small",
|
|
30
|
-
variant: "text",
|
|
31
|
-
children: n
|
|
32
|
-
}
|
|
33
|
-
),
|
|
34
|
-
subheader: t && /* @__PURE__ */ r(u, { sx: { color: "text.secondary" }, variant: "body2", children: t }),
|
|
35
|
-
sx: { p: 0, pb: 8, width: "calc(100% - 8px)", "& .MuiCardHeader-action": { mt: 0 } },
|
|
36
|
-
title: /* @__PURE__ */ r(v, { sx: { width: "calc(100% - 10px)" }, children: c })
|
|
37
|
-
}
|
|
38
|
-
),
|
|
39
|
-
/* @__PURE__ */ r(g, { ref: m, sx: { p: 0, ":last-child": { pb: 0 } }, children: /* @__PURE__ */ r(w, { availableHeight: l, availableWidth: h, children: e }) })
|
|
40
|
-
] });
|
|
41
|
-
return d === "borderless" ? i : /* @__PURE__ */ r(C, { className: o, sx: { alignItems: "center", p: 16, ...s }, children: i });
|
|
42
|
-
}, F = H;
|
|
43
|
-
export {
|
|
44
|
-
F as M
|
|
45
|
-
};
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { jsxs as r, jsx as i, Fragment as g } from "react/jsx-runtime";
|
|
2
|
-
import x from "@mui/material/Box";
|
|
3
|
-
import C from "@mui/material/Button";
|
|
4
|
-
import u from "@mui/material/Card";
|
|
5
|
-
import v from "@mui/material/CardHeader";
|
|
6
|
-
import b from "@mui/material/CardContent";
|
|
7
|
-
import W from "@mui/material/IconButton";
|
|
8
|
-
import { Icon as z, ChevronRight as H } from "@mxenabled/mx-icons";
|
|
9
|
-
import { H3 as I, Text as B, P as M } from "@mxenabled/mxui";
|
|
10
|
-
import { u as S } from "./useDimensions-27p2evRx.mjs";
|
|
11
|
-
import { W as j } from "./hooks-ZMp65DFz.mjs";
|
|
12
|
-
const w = ({
|
|
13
|
-
children: a,
|
|
14
|
-
className: m = "mx-cmn-mini-widget",
|
|
15
|
-
closeLabel: l,
|
|
16
|
-
contentStyles: d,
|
|
17
|
-
onClose: e,
|
|
18
|
-
onPrimaryCtaClick: o,
|
|
19
|
-
primaryCtaLabel: s = "",
|
|
20
|
-
subTitle: n = "",
|
|
21
|
-
sx: c = {},
|
|
22
|
-
title: t = ""
|
|
23
|
-
}) => {
|
|
24
|
-
const [p, { height: h, width: f }] = S();
|
|
25
|
-
return /* @__PURE__ */ r(u, { className: m, sx: { ...c }, children: [
|
|
26
|
-
/* @__PURE__ */ i(
|
|
27
|
-
v,
|
|
28
|
-
{
|
|
29
|
-
sx: { pb: 8 },
|
|
30
|
-
title: /* @__PURE__ */ r(g, { children: [
|
|
31
|
-
/* @__PURE__ */ r(
|
|
32
|
-
x,
|
|
33
|
-
{
|
|
34
|
-
sx: {
|
|
35
|
-
alignItems: "center",
|
|
36
|
-
display: "grid",
|
|
37
|
-
gap: 2,
|
|
38
|
-
gridTemplateColumns: "1fr auto",
|
|
39
|
-
pb: 4
|
|
40
|
-
},
|
|
41
|
-
children: [
|
|
42
|
-
t && /* @__PURE__ */ i(I, { children: t }),
|
|
43
|
-
e ? /* @__PURE__ */ i(W, { "aria-label": l, onClick: e, size: "small", children: /* @__PURE__ */ i(z, { name: "close", size: 24 }) }) : o && /* @__PURE__ */ i(C, { endIcon: /* @__PURE__ */ i(H, {}), onClick: o, size: "small", children: /* @__PURE__ */ i(B, { bold: !0, variant: "Small", children: s }) })
|
|
44
|
-
]
|
|
45
|
-
}
|
|
46
|
-
),
|
|
47
|
-
n && /* @__PURE__ */ i(M, { color: "text.secondary", sx: { fontSize: 15, lineHeight: "20px" }, variant: "Small", children: n })
|
|
48
|
-
] })
|
|
49
|
-
}
|
|
50
|
-
),
|
|
51
|
-
/* @__PURE__ */ i(b, { ref: p, sx: { p: 0, ...d }, children: /* @__PURE__ */ i(j, { availableHeight: h, availableWidth: f, children: a }) })
|
|
52
|
-
] });
|
|
53
|
-
}, G = w;
|
|
54
|
-
export {
|
|
55
|
-
G as M
|
|
56
|
-
};
|