@mx-cartographer/experiences 8.1.0 → 8.1.2
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 +9 -0
- package/dist/{Account-DuOz1a27.mjs → Account-BIKn4XEZ.mjs} +1 -1
- package/dist/{Account-BiB1F8lL.mjs → Account-CMjOp7S2.mjs} +2 -2
- package/dist/{AccountDetailsHeader-IPRH6Wja.mjs → AccountDetailsHeader-D_a0XUkL.mjs} +6 -6
- package/dist/{AccountFields-BbPSfzru.mjs → AccountFields-nrrEXd46.mjs} +30 -29
- package/dist/{AccountListItem-qpACFl6i.mjs → AccountListItem-D80egD01.mjs} +5 -5
- package/dist/{AccountStore-BeEiLNhW.mjs → AccountStore-B3S_p5Qa.mjs} +3 -3
- package/dist/{Accounts-o7ohkngR.mjs → Accounts-DX3xJE97.mjs} +1 -1
- package/dist/{Analytics-CjZ0emfs.mjs → Analytics-CxK7O19c.mjs} +2 -2
- package/dist/{BudgetUtil-CLh4xtj4.mjs → BudgetUtil-DalEN9--.mjs} +47 -47
- package/dist/{CashflowStore-CeAzChyD.mjs → CashflowStore-BEi92kJg.mjs} +10 -10
- package/dist/{Category-CevNQ03n.mjs → Category-Ccoew_sA.mjs} +2 -2
- package/dist/{CategorySelectorDrawer-BG04ByUx.mjs → CategorySelectorDrawer-DjeHNx71.mjs} +7 -7
- package/dist/{CategoryStore-Bp1kO9Z-.mjs → CategoryStore-CA4NTaKH.mjs} +2 -2
- package/dist/{CategoryUtil-DKRCegQv.mjs → CategoryUtil-BJOHgYKS.mjs} +3 -3
- package/dist/{Connect-eYIWqCEr.mjs → Connect-BRLh-69J.mjs} +1 -1
- package/dist/{ConnectDrawer-C0wjwcJt.mjs → ConnectDrawer-5BpU4IQU.mjs} +3 -3
- package/dist/{ConnectionsDrawer-IA7vnv1J.mjs → ConnectionsDrawer-DxpSlJN7.mjs} +3 -3
- package/dist/{CurrencyInput-BkNVHxSV.mjs → CurrencyInput-CSJ3zMgE.mjs} +18 -18
- package/dist/DateUtil-D0TO0DaZ.mjs +58 -0
- package/dist/{DebtsStore-BZqNLaqd.mjs → DebtsStore-BJlC2-yO.mjs} +1 -1
- package/dist/{Dialog-Ck34yr-d.mjs → Dialog-iLlBR8TG.mjs} +6 -6
- package/dist/{Donut-CpxJlVvJ.mjs → Donut-D7ekbgf5.mjs} +12 -12
- package/dist/{Drawer-Bbe4AMB1.mjs → Drawer-XPaLYjiO.mjs} +11 -11
- package/dist/{EmbeddedCard-j7IGx3s1.mjs → EmbeddedCard-BCcn_fK2.mjs} +193 -193
- package/dist/{ExportCsvAction-7sjz7AXQ.mjs → ExportCsvAction-BPjdEUXx.mjs} +5 -5
- package/dist/{FinstrongStore-DgyDJTEP.mjs → FinstrongStore-DYawCv1d.mjs} +54 -54
- package/dist/{GlobalAccountFilter-CmnaZDS6.mjs → GlobalAccountFilter-CZbiDwBH.mjs} +1 -1
- package/dist/{GoalStore-DcaT4fM6.mjs → GoalStore-DmqM1ZfW.mjs} +1 -1
- package/dist/{Help-B8mD4aLJ.mjs → Help-CgpJK03Q.mjs} +6 -6
- package/dist/{Help-cTsMzSQh.mjs → Help-DuhUdMTZ.mjs} +95 -98
- package/dist/{IconBacking-B9oC6uL2.mjs → IconBacking-DgT8DCeh.mjs} +11 -11
- package/dist/{LineChart-DkD_s9NN.mjs → LineChart-jJVBE8V8.mjs} +1 -1
- package/dist/{ListItemAction-4KB7P75M.mjs → ListItemAction-Buv7tPLp.mjs} +4 -4
- package/dist/{Loader-D3rjKx72.mjs → Loader-CxeBwuPG.mjs} +5 -5
- package/dist/{ManageIncome-DwSE_a8L.mjs → ManageIncome-CrHDAku7.mjs} +8 -8
- package/dist/MicroWidgetContainer-CEcwdfti.mjs +45 -0
- package/dist/MiniWidgetContainer-CmTGSUL5.mjs +66 -0
- package/dist/{NetWorthStore-Ba3q3VcH.mjs → NetWorthStore-BY-B_hxy.mjs} +4 -4
- package/dist/{NotificationSettings-DB-eNgSv.mjs → NotificationSettings-DOgnTxzv.mjs} +9 -9
- package/dist/{OriginalBalanceAction-AB1TGb5P.mjs → OriginalBalanceAction-C8VJZUat.mjs} +9 -9
- package/dist/{RecurringSettings-CZKeZC4m.mjs → RecurringSettings-CIpZL4CX.mjs} +2 -2
- package/dist/{RecurringTransactions-kzlU8OFY.mjs → RecurringTransactions-DCt94TN4.mjs} +47 -47
- package/dist/{RecurringTransactionsStore-D62Dt2BF.mjs → RecurringTransactionsStore-CFJYC7lI.mjs} +1 -1
- package/dist/{ResponsiveButton-DZFp78fJ.mjs → ResponsiveButton-BNsV08Ud.mjs} +12 -12
- package/dist/{SettingsStore-Dsz1mvd3.mjs → SettingsStore-BcbuKfFO.mjs} +1 -1
- package/dist/{SingleSegmentDonut-BgbLgwHi.mjs → SingleSegmentDonut-PsRQPkmV.mjs} +5 -5
- package/dist/{SpendingData-CoZOmlZD.mjs → SpendingData-Dj85XEUp.mjs} +3 -3
- package/dist/{SpendingLegend-DljKEG69.mjs → SpendingLegend-DIWHSsKw.mjs} +5 -5
- package/dist/{StatusBar-BK_uYHAB.mjs → StatusBar-CPfSXe80.mjs} +6 -6
- package/dist/{TabContentContainer-j01JYR_7.mjs → TabContentContainer-CnMXkVqr.mjs} +8 -8
- package/dist/{TransactionDetails-CN-yZkin.mjs → TransactionDetails-Db8dwHoM.mjs} +21 -21
- package/dist/{TransactionStore-6ovFO8P1.mjs → TransactionStore-BUsP-unK.mjs} +40 -57
- package/dist/{TrendsStore-DZa6cyQC.mjs → TrendsStore-bYjIGqyR.mjs} +1 -1
- package/dist/{ViewMoreMicroCard-BsEitNRJ.mjs → ViewMoreMicroCard-C7dC9lDT.mjs} +93 -94
- package/dist/WidgetContainer-CCR7I0gu.mjs +470 -0
- package/dist/accounts/index.es.js +29 -29
- package/dist/analytics/index.es.js +10 -10
- package/dist/budgets/index.es.js +19 -19
- package/dist/cashflow/index.es.js +110 -110
- package/dist/categories/index.es.js +2 -2
- package/dist/common/hooks/useWidgetHeaderStyles.d.ts +1 -0
- package/dist/common/index.es.js +250 -250
- package/dist/core/index.es.js +64 -64
- package/dist/dashboard/index.es.js +22 -22
- package/dist/debts/index.es.js +22 -22
- package/dist/{exportTransactionsToCSV-Dnd5lVq7.mjs → exportTransactionsToCSV-B2Lp7AMl.mjs} +7 -7
- package/dist/finstrong/index.es.js +22 -22
- package/dist/goals/index.es.js +17 -17
- package/dist/help/index.es.js +5 -5
- package/dist/{hooks-BxkfR-Ff.mjs → hooks-HwStH7q_.mjs} +9 -9
- package/dist/insights/index.es.js +328 -328
- package/dist/investments/index.es.js +10 -10
- package/dist/merchants/index.es.js +9 -9
- package/dist/microinsights/index.es.js +1 -1
- package/dist/networth/index.es.js +25 -25
- package/dist/notifications/index.es.js +5 -5
- package/dist/recurringtransactions/index.es.js +23 -23
- package/dist/settings/index.es.js +96 -96
- package/dist/spending/index.es.js +65 -65
- package/dist/transactions/index.es.js +74 -74
- package/dist/trends/index.es.js +55 -55
- package/dist/{useAccountDisplayName-DKwT1mWv.mjs → useAccountDisplayName-SrQA7K_6.mjs} +1 -1
- package/dist/{useInsightsEnabled-DL_oNyI0.mjs → useInsightsEnabled-DzvRm5Bo.mjs} +1 -1
- package/dist/{useScreenSize-CUcpY7aJ.mjs → useScreenSize-CeFhWTt_.mjs} +1 -1
- package/dist/{useWidgetLoadTimer-DgN1bTyu.mjs → useWidgetLoadTimer-wkBTL5xx.mjs} +1 -1
- package/package.json +20 -20
- package/dist/DateUtil-C57sqxn4.mjs +0 -54
- package/dist/MicroWidgetContainer-B_EnfvCq.mjs +0 -45
- package/dist/MiniWidgetContainer-Bhkv-hpz.mjs +0 -66
- package/dist/WidgetContainer-Bc75FqK7.mjs +0 -468
|
@@ -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
|
+
};
|
|
@@ -10,15 +10,15 @@ import O from "@mui/material/List";
|
|
|
10
10
|
import B from "@mui/material/ListSubheader";
|
|
11
11
|
import P from "@mui/system/Stack";
|
|
12
12
|
import { useTheme as V1, alpha as M1 } from "@mui/material/styles";
|
|
13
|
-
import { u as x, A as y1 } from "../AccountDetailsHeader-
|
|
14
|
-
import { L as w1 } from "../LineChart-
|
|
15
|
-
import { g as x1, a as R1, b as S1 } from "../SpendingData-
|
|
16
|
-
import { l as T1, u as A, d as E, g as D, h as m1, b as G, a as E1 } from "../hooks-
|
|
17
|
-
import { A as I, g as L, N as p1 } from "../Account-
|
|
18
|
-
import { I as _1, P as L1, S as f1 } from "../Account-
|
|
19
|
-
import { a as D1, b as k1 } from "../AccountFields-
|
|
20
|
-
import { g as i2 } from "../AccountFields-
|
|
21
|
-
import { A as U } from "../AccountListItem-
|
|
13
|
+
import { u as x, A as y1 } from "../AccountDetailsHeader-D_a0XUkL.mjs";
|
|
14
|
+
import { L as w1 } from "../LineChart-jJVBE8V8.mjs";
|
|
15
|
+
import { g as x1, a as R1, b as S1 } from "../SpendingData-Dj85XEUp.mjs";
|
|
16
|
+
import { l as T1, u as A, d as E, g as D, h as m1, b as G, a as E1 } from "../hooks-HwStH7q_.mjs";
|
|
17
|
+
import { A as I, g as L, N as p1 } from "../Account-CMjOp7S2.mjs";
|
|
18
|
+
import { I as _1, P as L1, S as f1 } from "../Account-BIKn4XEZ.mjs";
|
|
19
|
+
import { a as D1, b as k1 } from "../AccountFields-nrrEXd46.mjs";
|
|
20
|
+
import { g as i2 } from "../AccountFields-nrrEXd46.mjs";
|
|
21
|
+
import { A as U } from "../AccountListItem-D80egD01.mjs";
|
|
22
22
|
import a1 from "@mui/material/Tab";
|
|
23
23
|
import I1 from "@mui/material/Tabs";
|
|
24
24
|
import Z1 from "@mui/material/Switch";
|
|
@@ -26,18 +26,18 @@ import T from "@mui/material/ListItem";
|
|
|
26
26
|
import $ from "@mui/material/ListItemButton";
|
|
27
27
|
import Z from "@mui/material/ListItemText";
|
|
28
28
|
import { A as w } from "../Analytics-0Xm_BjHU.mjs";
|
|
29
|
-
import { D as Q } from "../Dialog-
|
|
29
|
+
import { D as Q } from "../Dialog-iLlBR8TG.mjs";
|
|
30
30
|
import { b as f } from "../Localization-CkQ49EKr.mjs";
|
|
31
|
-
import { D as t1 } from "../Drawer-
|
|
31
|
+
import { D as t1 } from "../Drawer-XPaLYjiO.mjs";
|
|
32
32
|
import Y from "@mui/material/ListItemAvatar";
|
|
33
33
|
import N1 from "@mui/material/styles/useTheme";
|
|
34
|
-
import {
|
|
35
|
-
import { C as z } from "../ConnectDrawer-
|
|
34
|
+
import { Language as O1, Error as g1, CheckCircle as F1 } from "@mxenabled/mx-icons";
|
|
35
|
+
import { C as z } from "../ConnectDrawer-5BpU4IQU.mjs";
|
|
36
36
|
import { fromUnixTime as P1 } from "date-fns/fromUnixTime";
|
|
37
37
|
import { isToday as W1 } from "date-fns/isToday";
|
|
38
38
|
import { isYesterday as B1 } from "date-fns/isYesterday";
|
|
39
39
|
import { f as s1, D as l1 } from "../DateFormats-CaOj_4eI.mjs";
|
|
40
|
-
import { I as j } from "../IconBacking-
|
|
40
|
+
import { I as j } from "../IconBacking-DgT8DCeh.mjs";
|
|
41
41
|
import { addMonths as U1 } from "date-fns/addMonths";
|
|
42
42
|
import { AdapterDateFns as $1 } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
|
43
43
|
import { DateCalendar as G1 } from "@mui/x-date-pickers/DateCalendar";
|
|
@@ -49,23 +49,23 @@ import X1 from "@mui/material/Select";
|
|
|
49
49
|
import J1 from "@mui/material/TextField";
|
|
50
50
|
import { F as X } from "../Accounts-CseLC3lL.mjs";
|
|
51
51
|
import { M as a2 } from "../Accounts-CseLC3lL.mjs";
|
|
52
|
-
import { C as q1 } from "../CurrencyInput-
|
|
52
|
+
import { C as q1 } from "../CurrencyInput-CSJ3zMgE.mjs";
|
|
53
53
|
import Q1 from "@mui/material/Alert";
|
|
54
54
|
import e3 from "@mui/material/AlertTitle";
|
|
55
55
|
import t3 from "@mui/material/Link";
|
|
56
56
|
import n3 from "@mui/material/Paper";
|
|
57
|
-
import {
|
|
58
|
-
import { T as a3 } from "../EmbeddedCard-
|
|
59
|
-
import { T as s3 } from "../TransactionDetails-
|
|
60
|
-
import { T as r1 } from "../TabContentContainer-
|
|
57
|
+
import { endOfToday as o3, subDays as i3, startOfToday as c3 } from "date-fns";
|
|
58
|
+
import { T as a3 } from "../EmbeddedCard-BCcn_fK2.mjs";
|
|
59
|
+
import { T as s3 } from "../TransactionDetails-Db8dwHoM.mjs";
|
|
60
|
+
import { T as r1 } from "../TabContentContainer-CnMXkVqr.mjs";
|
|
61
61
|
import { f as d1 } from "../NumberFormatting-CyrvFgfd.mjs";
|
|
62
|
-
import { C as l3 } from "../ConnectionsDrawer-
|
|
63
|
-
import { u as H1 } from "../useScreenSize-
|
|
64
|
-
import { u as n1 } from "../useWidgetLoadTimer-
|
|
65
|
-
import { L as o1 } from "../Loader-
|
|
66
|
-
import { W as r3 } from "../WidgetContainer-
|
|
67
|
-
import { M as v1 } from "../MiniWidgetContainer-
|
|
68
|
-
import { A as l2 } from "../AccountStore-
|
|
62
|
+
import { C as l3 } from "../ConnectionsDrawer-DxpSlJN7.mjs";
|
|
63
|
+
import { u as H1 } from "../useScreenSize-CeFhWTt_.mjs";
|
|
64
|
+
import { u as n1 } from "../useWidgetLoadTimer-wkBTL5xx.mjs";
|
|
65
|
+
import { L as o1 } from "../Loader-CxeBwuPG.mjs";
|
|
66
|
+
import { W as r3 } from "../WidgetContainer-CCR7I0gu.mjs";
|
|
67
|
+
import { M as v1 } from "../MiniWidgetContainer-CmTGSUL5.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);
|
|
@@ -437,7 +437,7 @@ const d3 = (t, o) => {
|
|
|
437
437
|
secondaryMessage: `${u.title}.`
|
|
438
438
|
} : {
|
|
439
439
|
color: "success.main",
|
|
440
|
-
icon: /* @__PURE__ */ e(
|
|
440
|
+
icon: /* @__PURE__ */ e(F1, { filled: !0, sx: { ...q } }),
|
|
441
441
|
mainMessage: u.statusName,
|
|
442
442
|
secondaryMessage: u.title
|
|
443
443
|
};
|
|
@@ -497,7 +497,7 @@ const d3 = (t, o) => {
|
|
|
497
497
|
},
|
|
498
498
|
size: 32,
|
|
499
499
|
children: /* @__PURE__ */ e(
|
|
500
|
-
|
|
500
|
+
O1,
|
|
501
501
|
{
|
|
502
502
|
sx: {
|
|
503
503
|
...q,
|
|
@@ -779,7 +779,7 @@ const d3 = (t, o) => {
|
|
|
779
779
|
);
|
|
780
780
|
return h.useEffect(() => {
|
|
781
781
|
a({
|
|
782
|
-
dateRange: { start:
|
|
782
|
+
dateRange: { start: i3(c3(), 90), end: o3() },
|
|
783
783
|
accounts: [i.guid]
|
|
784
784
|
});
|
|
785
785
|
}, [i]), h.useEffect(() => n(w.ACCOUNT_DETAILS_VIEW_TRANSACTIONS), []), /* @__PURE__ */ C(R, { children: [
|
|
@@ -3,12 +3,12 @@ import c from "react";
|
|
|
3
3
|
import { observer as h } from "mobx-react-lite";
|
|
4
4
|
import { SurveyQuestionType as C } from "posthog-js";
|
|
5
5
|
import R from "@mui/material/Alert";
|
|
6
|
-
import
|
|
6
|
+
import j from "@mui/material/Button";
|
|
7
7
|
import s from "@mui/material/Stack";
|
|
8
|
-
import { Text as u, TextField as
|
|
9
|
-
import { L
|
|
10
|
-
import { M as
|
|
11
|
-
import { j as f, u as g, g as
|
|
8
|
+
import { Text as u, TextField as A } from "@mxenabled/mxui";
|
|
9
|
+
import { L } from "../Loader-CxeBwuPG.mjs";
|
|
10
|
+
import { M as W } from "../MiniWidgetContainer-CmTGSUL5.mjs";
|
|
11
|
+
import { j as f, u as g, g as $, b as q } from "../hooks-HwStH7q_.mjs";
|
|
12
12
|
import E from "@mui/material/ToggleButton";
|
|
13
13
|
import Q from "@mui/material/ToggleButtonGroup";
|
|
14
14
|
import B from "@mui/material/styles/useTheme";
|
|
@@ -59,7 +59,7 @@ const G = () => {
|
|
|
59
59
|
}, O = h(G), z = () => {
|
|
60
60
|
const { response: n, setResponse: a } = f(), { analytics: t } = g();
|
|
61
61
|
return /* @__PURE__ */ e(
|
|
62
|
-
|
|
62
|
+
A,
|
|
63
63
|
{
|
|
64
64
|
label: t.feedback,
|
|
65
65
|
multiline: !0,
|
|
@@ -72,7 +72,7 @@ const G = () => {
|
|
|
72
72
|
}
|
|
73
73
|
);
|
|
74
74
|
}, H = h(z), I = () => {
|
|
75
|
-
const { onEvent: n } =
|
|
75
|
+
const { onEvent: n } = $(), {
|
|
76
76
|
surveyId: a,
|
|
77
77
|
question: t,
|
|
78
78
|
isLastQuestion: o,
|
|
@@ -101,7 +101,7 @@ const G = () => {
|
|
|
101
101
|
n("survey sent", r), x(), _(!0);
|
|
102
102
|
};
|
|
103
103
|
return k ? !t && !b ? null : /* @__PURE__ */ i(
|
|
104
|
-
|
|
104
|
+
W,
|
|
105
105
|
{
|
|
106
106
|
closeLabel: w.close_aria,
|
|
107
107
|
onClose: M,
|
|
@@ -130,7 +130,7 @@ const G = () => {
|
|
|
130
130
|
t.type === C.Open && /* @__PURE__ */ e(H, {})
|
|
131
131
|
] }),
|
|
132
132
|
/* @__PURE__ */ e(s, { sx: { px: 24, py: 16 }, children: /* @__PURE__ */ e(
|
|
133
|
-
|
|
133
|
+
j,
|
|
134
134
|
{
|
|
135
135
|
disabled: !o && !p,
|
|
136
136
|
onClick: o ? F : T,
|
|
@@ -145,7 +145,7 @@ const G = () => {
|
|
|
145
145
|
] })
|
|
146
146
|
]
|
|
147
147
|
}
|
|
148
|
-
) : /* @__PURE__ */ e(
|
|
148
|
+
) : /* @__PURE__ */ e(L, {});
|
|
149
149
|
}, se = h(I);
|
|
150
150
|
export {
|
|
151
151
|
se as SurveyMiniWidget
|