@mx-cartographer/experiences 9.0.2 → 9.1.0-alpha.bb1
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/dist/Analytics-BKzTPees.mjs +61 -0
- package/dist/GlobalCopyApi-BeXzaDH9.mjs +487 -0
- package/dist/HeaderCell-EhCUSjvj.mjs +10 -0
- package/dist/Loader-BlVzRtUd.mjs +73 -0
- package/dist/MiniWidgetContainer-COwnjfy7.mjs +110 -0
- package/dist/OriginalBalanceAction-sbiqaxok.mjs +110 -0
- package/dist/SpendingLegend-D15ixlQ1.mjs +222 -0
- package/dist/accounts/index.es.js +12 -1598
- package/dist/accounts-DkyAiLpg.mjs +15632 -0
- package/dist/analytics/index.es.js +155 -139
- package/dist/budgets/index.es.js +1317 -1266
- package/dist/cashflow/index.es.js +1047 -942
- package/dist/categories/index.es.js +4 -4
- package/dist/common/index.es.js +101 -310
- package/dist/core/index.es.js +80 -104
- package/dist/core-BexP5oiV.mjs +4047 -0
- package/dist/dashboard/index.es.js +185 -141
- package/dist/debts/index.es.js +1384 -1272
- package/dist/finstrong/index.es.js +3366 -3471
- package/dist/goals/index.es.js +1103 -984
- package/dist/help/index.es.js +3 -25
- package/dist/help-CctDYrAH.mjs +2308 -0
- package/dist/insights/index.es.js +93 -4843
- package/dist/investments/index.es.js +1533 -1522
- package/dist/merchants/index.es.js +75 -64
- package/dist/microinsights/index.es.js +15 -824
- package/dist/microinsights-CRf3ChsJ.mjs +1814 -0
- package/dist/networth/index.es.js +550 -503
- package/dist/notifications/index.es.js +169 -161
- package/dist/recurringtransactions/index.es.js +10 -962
- package/dist/recurringtransactions-gbJ_NA8u.mjs +1564 -0
- package/dist/settings/index.es.js +13 -880
- package/dist/settings-ZMHe439l.mjs +1526 -0
- package/dist/spending/index.es.js +400 -456
- package/dist/transactions/index.es.js +10 -603
- package/dist/trends/index.es.js +1268 -1407
- package/package.json +28 -28
- package/dist/Account-BaJmiJAG.mjs +0 -118
- package/dist/Account-BxHMlV9R.mjs +0 -30
- package/dist/AccountDetailsHeader-DIysk_4w.mjs +0 -95
- package/dist/AccountDisplayName-CO7z3v99.mjs +0 -11
- package/dist/AccountFields-mwJ8NXsX.mjs +0 -141
- package/dist/AccountListItem-BDXHs4tV.mjs +0 -94
- package/dist/AccountUtils-T5_Odvos.mjs +0 -27
- package/dist/Accounts-CseLC3lL.mjs +0 -5
- package/dist/Analytics-CkYXKvco.mjs +0 -53
- package/dist/Analytics-CzGzz_sE.mjs +0 -136
- package/dist/ApiEndpoints-DXwIYNUV.mjs +0 -49
- package/dist/BudgetUtil-Bg2AQJpQ.mjs +0 -74
- package/dist/Category-DEKZGLYe.mjs +0 -301
- package/dist/CategorySelectorDrawer-8soGrhB8.mjs +0 -430
- package/dist/Connect-Dk6GZEsA.mjs +0 -39
- package/dist/ConnectCard-CCep7Zqe.mjs +0 -54
- package/dist/ConnectDrawer-Cnjr3Ddg.mjs +0 -58
- package/dist/ConnectionsDrawer-CtfPXk0M.mjs +0 -54
- package/dist/CurrencyDialog-DumQCTPO.mjs +0 -373
- package/dist/CurrencyInput-adTIRtL3.mjs +0 -87
- package/dist/CurrencyText-CCbE6MmF.mjs +0 -20
- package/dist/DateFormats-HudZ3Bjs.mjs +0 -64
- package/dist/DateUtil-Bhq59ZVg.mjs +0 -58
- package/dist/DebtUtils-DD3186U-.mjs +0 -153
- package/dist/Dialog-Bvd2n8hz.mjs +0 -66
- package/dist/Donut-SzzfZDHF.mjs +0 -88
- package/dist/Drawer-BXqqBMxg.mjs +0 -174
- package/dist/EmbeddedCard-DPwJjqMH.mjs +0 -856
- package/dist/EmptyState-CJUDc3kD.mjs +0 -84
- package/dist/Error-Dogaw2jO.mjs +0 -84
- package/dist/ErrorBoundary-CsdOcnJ9.mjs +0 -23
- package/dist/ExportCsvAction-Bw02ZJEj.mjs +0 -24
- package/dist/GlobalAccountFilter-7Cg2-9A5.mjs +0 -237
- package/dist/GlobalCopyApi-wcnDUzMV.mjs +0 -128
- package/dist/GoalsUtil-C9EnLWvC.mjs +0 -107
- package/dist/HeaderCell-P8w6CmfO.mjs +0 -6
- package/dist/Help-CkQTjORd.mjs +0 -299
- package/dist/Help-DJ8PrVHX.mjs +0 -3209
- package/dist/IconBacking-DgT8DCeh.mjs +0 -39
- package/dist/InformationTooltip-4su8bn1e.mjs +0 -41
- package/dist/InvestmentUtil-BItV7uEs.mjs +0 -134
- package/dist/LineChart-CejWS_rh.mjs +0 -612
- package/dist/ListItemAction-CzZ8s39Z.mjs +0 -69
- package/dist/ListItemRow-kH1rn8Xu.mjs +0 -67
- package/dist/ListItemWrapper-B5r-YQQ_.mjs +0 -42
- package/dist/Loader-CxeBwuPG.mjs +0 -21
- package/dist/Localization-DnoVyBNK.mjs +0 -38
- package/dist/ManageIncome-D1yBODQi.mjs +0 -595
- package/dist/MicroWidgetContainer-CfKdQfhi.mjs +0 -45
- package/dist/MiniWidgetContainer-BdPiUU-u.mjs +0 -66
- package/dist/NetWorthUtils-DilGN1nW.mjs +0 -95
- package/dist/Notification-DTNYSd8P.mjs +0 -7
- package/dist/NotificationSettings-B4JA5IKE.mjs +0 -677
- package/dist/NotificationUtils-BRGFTePr.mjs +0 -23
- package/dist/NumberFormatting--XMeeBfr.mjs +0 -49
- package/dist/OriginalBalanceAction-BybTXDtO.mjs +0 -114
- package/dist/RecurringSettings-D2xbNb67.mjs +0 -88
- package/dist/RecurringTransactionsUtil-B3rLEx_g.mjs +0 -253
- package/dist/ResponsiveButton-CC9F_Ezk.mjs +0 -45
- package/dist/SearchBox-Cpgu_gdO.mjs +0 -50
- package/dist/Select-BFt-HD-L.mjs +0 -55
- package/dist/SelectionBox-B4xELRgp.mjs +0 -48
- package/dist/SingleSegmentDonut-7Uy6VEld.mjs +0 -69
- package/dist/Sizes-DISGrlUg.mjs +0 -6
- package/dist/SkeletonLoader-BaNboJjD.mjs +0 -38
- package/dist/SpendingData-PKlh8caU.mjs +0 -53
- package/dist/SpendingLegend-5Ct_FZ8o.mjs +0 -193
- package/dist/StatusBar-CPfSXe80.mjs +0 -30
- package/dist/TabContentContainer-CnMXkVqr.mjs +0 -21
- package/dist/ToggleListItem-Dl1lXNwj.mjs +0 -91
- package/dist/TransactionDetails-DctXr07p.mjs +0 -1714
- package/dist/TransactionUtils-BphBJBbU.mjs +0 -234
- package/dist/TrendsUtil-D9z3kIj_.mjs +0 -69
- package/dist/UserStore-CRpKQjpP.mjs +0 -3002
- package/dist/ViewMoreMicroCard-BD_MNc2z.mjs +0 -1295
- package/dist/WidgetContainer-CmbU4CBH.mjs +0 -482
- package/dist/hooks-BaO_gOI6.mjs +0 -77
- package/dist/useAccountDisplayName-CFa_MrS6.mjs +0 -15
- package/dist/useAriaLive-MkYebyUR.mjs +0 -35
- package/dist/useDimensions-CeDR9V8N.mjs +0 -36
- package/dist/useInsightsEnabled-DaNLPmUU.mjs +0 -11
- package/dist/useScreenSize-mWpmnh5w.mjs +0 -36
- package/dist/useWidgetLoadTimer-CJb-RELP.mjs +0 -19
|
@@ -1,482 +0,0 @@
|
|
|
1
|
-
import { jsxs as h, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import p from "react";
|
|
3
|
-
import { observer as ie } from "mobx-react-lite";
|
|
4
|
-
import z from "@mui/material/Button";
|
|
5
|
-
import pe from "@mui/material/Card";
|
|
6
|
-
import he from "@mui/material/CardContent";
|
|
7
|
-
import ge from "@mui/material/Divider";
|
|
8
|
-
import $ from "@mui/material/IconButton";
|
|
9
|
-
import fe from "@mui/material/Paper";
|
|
10
|
-
import Y from "@mui/material/Stack";
|
|
11
|
-
import { ChevronLeft as be } from "@mxenabled/mx-icons";
|
|
12
|
-
import { Icon as x, Text as F, DateRangePicker as Z } from "@mxenabled/mxui";
|
|
13
|
-
import { u as J } from "./useDimensions-CeDR9V8N.mjs";
|
|
14
|
-
import { G as _e } from "./GlobalAccountFilter-7Cg2-9A5.mjs";
|
|
15
|
-
import { b as se, u as le, g as Re, a as Ce, W as xe } from "./hooks-BaO_gOI6.mjs";
|
|
16
|
-
import { addMonths as ee } from "date-fns/addMonths";
|
|
17
|
-
import { addDays as De } from "date-fns/addDays";
|
|
18
|
-
import { addYears as te } from "date-fns/addYears";
|
|
19
|
-
import { differenceInCalendarDays as ye } from "date-fns/differenceInCalendarDays";
|
|
20
|
-
import { endOfDay as ke } from "date-fns/endOfDay";
|
|
21
|
-
import { endOfMonth as W } from "date-fns/endOfMonth";
|
|
22
|
-
import { endOfToday as ae } from "date-fns/endOfToday";
|
|
23
|
-
import { endOfYear as Te } from "date-fns/endOfYear";
|
|
24
|
-
import { startOfMonth as ve } from "date-fns/startOfMonth";
|
|
25
|
-
import { startOfToday as Me } from "date-fns/startOfToday";
|
|
26
|
-
import { startOfYear as Pe } from "date-fns/startOfYear";
|
|
27
|
-
import { subMonths as K } from "date-fns/subMonths";
|
|
28
|
-
import { subDays as Se } from "date-fns/subDays";
|
|
29
|
-
import { subYears as re } from "date-fns/subYears";
|
|
30
|
-
import oe from "@mui/material/Box";
|
|
31
|
-
import Ee from "@mui/material/ButtonGroup";
|
|
32
|
-
import Ye from "@mui/material/Tab";
|
|
33
|
-
import Le from "@mui/material/Tabs";
|
|
34
|
-
import Ae from "@mui/material/ToggleButton";
|
|
35
|
-
import we from "@mui/material/ToggleButtonGroup";
|
|
36
|
-
import { useTheme as Be } from "@mui/material/styles";
|
|
37
|
-
import { u as Ne } from "./useAriaLive-MkYebyUR.mjs";
|
|
38
|
-
import { D as Oe } from "./Dialog-Bvd2n8hz.mjs";
|
|
39
|
-
import { D as Ie } from "./Drawer-BXqqBMxg.mjs";
|
|
40
|
-
import { u as de } from "./useScreenSize-mWpmnh5w.mjs";
|
|
41
|
-
import { f as M, D as P } from "./DateFormats-HudZ3Bjs.mjs";
|
|
42
|
-
import { L as Ge } from "./Loader-CxeBwuPG.mjs";
|
|
43
|
-
import He from "@mui/material/useMediaQuery";
|
|
44
|
-
import { A as ne } from "./Analytics-CzGzz_sE.mjs";
|
|
45
|
-
const We = (n) => {
|
|
46
|
-
const { isDesktop: d, isMobile: a, isSmallTablet: m, isTablet: r } = de(n), s = He("(min-width:900px)"), _ = 24;
|
|
47
|
-
let l = 48, D = 32, g = 0, c = "h1", R = !1;
|
|
48
|
-
const o = a || m;
|
|
49
|
-
r && !m ? (l = 24, D = 24, c = "h2") : o && (l = 8, D = 10, g = 10, c = "h3", R = !0);
|
|
50
|
-
const S = {
|
|
51
|
-
pb: o ? 12 : 0,
|
|
52
|
-
...o && {
|
|
53
|
-
px: l,
|
|
54
|
-
"& .mx-cmn-date-range-selector": { m: 0, width: "100%" },
|
|
55
|
-
"& .mx-cmn-date-range-selector > .MuiBox-root": { display: "flex", justifyContent: "center" },
|
|
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: R,
|
|
64
|
-
headerHeadingLevel: c,
|
|
65
|
-
headerPaddingBottom: g,
|
|
66
|
-
headerPaddingTop: D,
|
|
67
|
-
headerPaddingX: l,
|
|
68
|
-
iconSize: _,
|
|
69
|
-
isCompact: o,
|
|
70
|
-
isDesktop: d,
|
|
71
|
-
isViewportAbove900: s,
|
|
72
|
-
slotSx: S
|
|
73
|
-
};
|
|
74
|
-
}, ze = ({
|
|
75
|
-
calendarActions: n,
|
|
76
|
-
color: d = "primary",
|
|
77
|
-
copy: a,
|
|
78
|
-
range: m = [ve(Me()), W(ae())],
|
|
79
|
-
shouldShrinkToIcon: r = !0,
|
|
80
|
-
variant: s = "outlined"
|
|
81
|
-
}) => {
|
|
82
|
-
const _ = Be(), { isMobile: l } = de(), { announce: D, ariaLive: g } = Ne(), [c, R] = p.useState(m), [o, S] = p.useState(a.dateRangePickerCopy.dateRangeThisMonth), [C, L] = p.useState(c), [E, y] = p.useState(!1), [j, A] = p.useState(!0), [k, w] = p.useState(6), B = {
|
|
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
|
-
R(m), L(m);
|
|
98
|
-
}, [m]), p.useEffect(() => {
|
|
99
|
-
(s === "timeframebuttons" || s === "timeframetabs") && n.onRangeChanged(V());
|
|
100
|
-
}, [k]);
|
|
101
|
-
const V = () => {
|
|
102
|
-
const t = W(ae());
|
|
103
|
-
return [W(K(t, k)), t];
|
|
104
|
-
}, N = (t) => {
|
|
105
|
-
const [i, u] = c, f = t === "previous";
|
|
106
|
-
let b;
|
|
107
|
-
if (o === a.dateRangePickerCopy.dateRangeThisMonth || o === a.dateRangePickerCopy.dateRangeLastMonth)
|
|
108
|
-
b = [
|
|
109
|
-
f ? K(i, 1) : ee(i, 1),
|
|
110
|
-
W(f ? K(u, 1) : ee(u, 1))
|
|
111
|
-
];
|
|
112
|
-
else if (o === a.dateRangePickerCopy.dateRangeYTD || o === a.dateRangePickerCopy.dateRangeLastYear) {
|
|
113
|
-
const T = Pe(i), v = Te(i);
|
|
114
|
-
b = [
|
|
115
|
-
f ? re(T, 1) : te(T, 1),
|
|
116
|
-
f ? re(v, 1) : te(v, 1)
|
|
117
|
-
];
|
|
118
|
-
} else {
|
|
119
|
-
const T = ye(u, i), v = f ? Se : De;
|
|
120
|
-
b = [v(i, T), v(u, T)];
|
|
121
|
-
}
|
|
122
|
-
R(b), n.onRangeChanged(b);
|
|
123
|
-
}, O = () => {
|
|
124
|
-
R(C), A(
|
|
125
|
-
o === a.dateRangePickerCopy.dateRangeThisMonth || o === a.dateRangePickerCopy.dateRangeLastMonth
|
|
126
|
-
), n.onRangeChanged(C);
|
|
127
|
-
}, I = (t, i) => {
|
|
128
|
-
t[1] = t[1] ?? t[0];
|
|
129
|
-
const u = [t[0], t[1] ? ke(t[1]) : t[1]], f = M(u[0], P.MONTH_DAY_YEAR), b = M(u[1], P.MONTH_DAY_YEAR);
|
|
130
|
-
L(u), S(i), D(`${a.dateRangePickerCopy}: ${f} - ${b}`);
|
|
131
|
-
}, G = (t) => {
|
|
132
|
-
w(t);
|
|
133
|
-
};
|
|
134
|
-
return /* @__PURE__ */ h(oe, { className: "mx-cmn-date-range-selector", m: 4, children: [
|
|
135
|
-
/* @__PURE__ */ h(
|
|
136
|
-
oe,
|
|
137
|
-
{
|
|
138
|
-
sx: {
|
|
139
|
-
[_.breakpoints.down("sm")]: {
|
|
140
|
-
display: r ? "none" : "flex",
|
|
141
|
-
justifyContent: "center"
|
|
142
|
-
},
|
|
143
|
-
[_.breakpoints.up("sm")]: { display: "inline-flex" }
|
|
144
|
-
},
|
|
145
|
-
children: [
|
|
146
|
-
s === "readonly" && /* @__PURE__ */ h(Y, { 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
|
-
s !== "readonly" && s !== "timeframebuttons" && s !== "timeframetabs" && /* @__PURE__ */ h(
|
|
153
|
-
Ee,
|
|
154
|
-
{
|
|
155
|
-
color: d,
|
|
156
|
-
sx: {
|
|
157
|
-
"& .MuiButtonGroup-grouped": {
|
|
158
|
-
padding: l ? 0 : 12
|
|
159
|
-
},
|
|
160
|
-
"& .MuiButtonGroup-middleButton": {
|
|
161
|
-
px: 24
|
|
162
|
-
},
|
|
163
|
-
height: 44
|
|
164
|
-
},
|
|
165
|
-
variant: s,
|
|
166
|
-
children: [
|
|
167
|
-
/* @__PURE__ */ e(
|
|
168
|
-
z,
|
|
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
|
-
z,
|
|
179
|
-
{
|
|
180
|
-
"aria-disabled": n.shouldDisablePicker,
|
|
181
|
-
color: d,
|
|
182
|
-
onClick: () => n.shouldDisablePicker ? null : y(!0),
|
|
183
|
-
startIcon: /* @__PURE__ */ e(x, { name: "calendar_month", size: 20 }),
|
|
184
|
-
sx: {
|
|
185
|
-
p: l ? 0 : 8
|
|
186
|
-
},
|
|
187
|
-
children: j ? M(c[0], P.MONTH_YEAR) : /* @__PURE__ */ h("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
|
-
z,
|
|
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
|
-
s === "timeframebuttons" && /* @__PURE__ */ e(
|
|
209
|
-
we,
|
|
210
|
-
{
|
|
211
|
-
"aria-label": a.dateRangeEditTitle,
|
|
212
|
-
color: d,
|
|
213
|
-
exclusive: !0,
|
|
214
|
-
orientation: "horizontal",
|
|
215
|
-
value: k,
|
|
216
|
-
children: B.buttons.map((t) => /* @__PURE__ */ e(
|
|
217
|
-
Ae,
|
|
218
|
-
{
|
|
219
|
-
"aria-label": t.ariaLabel,
|
|
220
|
-
onClick: () => G(t.value),
|
|
221
|
-
sx: { width: 56 },
|
|
222
|
-
value: t.value,
|
|
223
|
-
children: t.label
|
|
224
|
-
},
|
|
225
|
-
t.label
|
|
226
|
-
))
|
|
227
|
-
}
|
|
228
|
-
),
|
|
229
|
-
s === "timeframetabs" && /* @__PURE__ */ e(
|
|
230
|
-
Le,
|
|
231
|
-
{
|
|
232
|
-
indicatorColor: "primary",
|
|
233
|
-
onChange: (t, i) => G(i),
|
|
234
|
-
textColor: "primary",
|
|
235
|
-
value: k,
|
|
236
|
-
variant: "fullWidth",
|
|
237
|
-
children: B.tabs.map((t) => /* @__PURE__ */ e(
|
|
238
|
-
Ye,
|
|
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 && l && /* @__PURE__ */ h(
|
|
252
|
-
Ie,
|
|
253
|
-
{
|
|
254
|
-
ariaLabelClose: a.dateRangeCloseAria,
|
|
255
|
-
isOpen: E,
|
|
256
|
-
onClose: () => y(!1),
|
|
257
|
-
onPrimaryAction: () => {
|
|
258
|
-
O(), y(!1);
|
|
259
|
-
},
|
|
260
|
-
primaryText: a.dateRangeEditApply,
|
|
261
|
-
title: a.dateRangeEditTitle,
|
|
262
|
-
children: [
|
|
263
|
-
g,
|
|
264
|
-
/* @__PURE__ */ e(
|
|
265
|
-
Z,
|
|
266
|
-
{
|
|
267
|
-
copy: a.dateRangePickerCopy,
|
|
268
|
-
dateRange: C,
|
|
269
|
-
onRangeChanged: I,
|
|
270
|
-
selectedShortcut: o,
|
|
271
|
-
sx: { p: 0 }
|
|
272
|
-
}
|
|
273
|
-
)
|
|
274
|
-
]
|
|
275
|
-
}
|
|
276
|
-
),
|
|
277
|
-
E && !l && /* @__PURE__ */ h(
|
|
278
|
-
Oe,
|
|
279
|
-
{
|
|
280
|
-
copy: { title: a.dateRangeEditTitle },
|
|
281
|
-
isOpen: !0,
|
|
282
|
-
onClose: () => y(!1),
|
|
283
|
-
onPrimaryAction: () => O(),
|
|
284
|
-
primaryText: a.dateRangeEditApply,
|
|
285
|
-
sx: {
|
|
286
|
-
"& .MuiDialogContent-root": {
|
|
287
|
-
padding: 0
|
|
288
|
-
}
|
|
289
|
-
},
|
|
290
|
-
children: [
|
|
291
|
-
g,
|
|
292
|
-
/* @__PURE__ */ e(
|
|
293
|
-
Z,
|
|
294
|
-
{
|
|
295
|
-
copy: a.dateRangePickerCopy,
|
|
296
|
-
dateRange: C,
|
|
297
|
-
onRangeChanged: I,
|
|
298
|
-
selectedShortcut: o,
|
|
299
|
-
sx: {
|
|
300
|
-
pt: 0,
|
|
301
|
-
"& .MuiPickersLayout-toolbar": {
|
|
302
|
-
gridColumn: "1/4"
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
)
|
|
307
|
-
]
|
|
308
|
-
}
|
|
309
|
-
)
|
|
310
|
-
] });
|
|
311
|
-
}, Fe = ie(
|
|
312
|
-
({ calendarActions: n, dateRange: d, dateRangeVariant: a }) => {
|
|
313
|
-
const { displayedDateRange: m } = se(), { common: r } = le(), s = {
|
|
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
|
-
}, _ = d ? d.start : m.start, l = d ? d.end : m.end;
|
|
332
|
-
return /* @__PURE__ */ e(
|
|
333
|
-
ze,
|
|
334
|
-
{
|
|
335
|
-
calendarActions: n,
|
|
336
|
-
copy: s,
|
|
337
|
-
range: [_, l],
|
|
338
|
-
shouldShrinkToIcon: !1,
|
|
339
|
-
variant: a
|
|
340
|
-
}
|
|
341
|
-
);
|
|
342
|
-
}
|
|
343
|
-
), wt = ie(
|
|
344
|
-
({
|
|
345
|
-
actions: n,
|
|
346
|
-
allowedAccountTypes: d,
|
|
347
|
-
calendarActions: a,
|
|
348
|
-
children: m,
|
|
349
|
-
className: r = "mx-cmn-widget",
|
|
350
|
-
dateRange: s,
|
|
351
|
-
dateRangeVariant: _,
|
|
352
|
-
hasDivider: l = !1,
|
|
353
|
-
onAccountsFilterClick: D,
|
|
354
|
-
onBackClick: g,
|
|
355
|
-
onMenuClick: c,
|
|
356
|
-
showAccountFilter: R = !0,
|
|
357
|
-
slotComponent: o,
|
|
358
|
-
sx: S = {},
|
|
359
|
-
title: C = ""
|
|
360
|
-
}) => {
|
|
361
|
-
const [L, { height: E, width: y }] = J(), [j, { height: A, width: k }] = J(), { onEvent: w } = Re(), {
|
|
362
|
-
actionsFlex: B,
|
|
363
|
-
containerSquareCorners: V,
|
|
364
|
-
headerHeadingLevel: N,
|
|
365
|
-
headerPaddingBottom: O,
|
|
366
|
-
headerPaddingTop: I,
|
|
367
|
-
headerPaddingX: G,
|
|
368
|
-
iconSize: t,
|
|
369
|
-
isCompact: i,
|
|
370
|
-
isDesktop: u,
|
|
371
|
-
isViewportAbove900: f,
|
|
372
|
-
slotSx: b
|
|
373
|
-
} = We(y), { isCopyLoaded: T } = se(), { common: v } = le(), {
|
|
374
|
-
config: { display_widget_headings: me }
|
|
375
|
-
} = Ce(), ce = () => {
|
|
376
|
-
g && (g(), w(ne.WIDGET_BACK_CLICK));
|
|
377
|
-
};
|
|
378
|
-
if (p.useEffect(() => {
|
|
379
|
-
w(ne.WIDGET_SIZE_CHANGED, {
|
|
380
|
-
height: A,
|
|
381
|
-
width: k
|
|
382
|
-
});
|
|
383
|
-
}, [A, k]), !T)
|
|
384
|
-
return /* @__PURE__ */ e(Ge, {});
|
|
385
|
-
const ue = () => c && i && !f ? /* @__PURE__ */ e($, { color: "primary", onClick: c, sx: { p: 10 }, children: /* @__PURE__ */ e(x, { name: "menu_open", size: t, sx: { transform: "rotate(180deg)" } }) }) : g ? /* @__PURE__ */ e(
|
|
386
|
-
$,
|
|
387
|
-
{
|
|
388
|
-
"aria-label": v.back_to_dashboard,
|
|
389
|
-
color: "primary",
|
|
390
|
-
onClick: ce,
|
|
391
|
-
sx: { p: 10 },
|
|
392
|
-
children: /* @__PURE__ */ e(be, { size: 24 })
|
|
393
|
-
}
|
|
394
|
-
) : null, X = a && /* @__PURE__ */ e(Y, { alignItems: "center", sx: b, children: /* @__PURE__ */ e(
|
|
395
|
-
Fe,
|
|
396
|
-
{
|
|
397
|
-
calendarActions: a,
|
|
398
|
-
dateRange: s,
|
|
399
|
-
dateRangeVariant: _
|
|
400
|
-
}
|
|
401
|
-
) });
|
|
402
|
-
return /* @__PURE__ */ e(
|
|
403
|
-
fe,
|
|
404
|
-
{
|
|
405
|
-
className: r,
|
|
406
|
-
elevation: 1,
|
|
407
|
-
ref: L,
|
|
408
|
-
square: V,
|
|
409
|
-
sx: {
|
|
410
|
-
borderBottomLeftRadius: 0,
|
|
411
|
-
borderBottomRightRadius: 0,
|
|
412
|
-
margin: 0,
|
|
413
|
-
overflowY: "auto",
|
|
414
|
-
height: "100%",
|
|
415
|
-
...S
|
|
416
|
-
},
|
|
417
|
-
children: /* @__PURE__ */ h(pe, { children: [
|
|
418
|
-
/* @__PURE__ */ h(
|
|
419
|
-
Y,
|
|
420
|
-
{
|
|
421
|
-
alignItems: "center",
|
|
422
|
-
alignSelf: "stretch",
|
|
423
|
-
direction: "row",
|
|
424
|
-
justifyContent: "space-between",
|
|
425
|
-
sx: {
|
|
426
|
-
pb: O,
|
|
427
|
-
pt: I,
|
|
428
|
-
px: G
|
|
429
|
-
},
|
|
430
|
-
children: [
|
|
431
|
-
ue(),
|
|
432
|
-
/* @__PURE__ */ e(Y, { alignItems: "flex-start", minWidth: 0, sx: { flex: 1 }, children: me && /* @__PURE__ */ e(F, { sx: { width: "100%" }, truncate: !0, variant: N, children: C }) }),
|
|
433
|
-
!i && (o || X),
|
|
434
|
-
/* @__PURE__ */ h(
|
|
435
|
-
Y,
|
|
436
|
-
{
|
|
437
|
-
alignItems: "center",
|
|
438
|
-
direction: "row",
|
|
439
|
-
justifyContent: "flex-end",
|
|
440
|
-
sx: { flex: B, flexShrink: 0 },
|
|
441
|
-
children: [
|
|
442
|
-
R && /* @__PURE__ */ e(
|
|
443
|
-
_e,
|
|
444
|
-
{
|
|
445
|
-
allowedAccountTypes: d,
|
|
446
|
-
isDesktop: u,
|
|
447
|
-
onAccountFilterClick: D
|
|
448
|
-
}
|
|
449
|
-
),
|
|
450
|
-
n?.map((q) => {
|
|
451
|
-
if (p.isValidElement(q))
|
|
452
|
-
return p.cloneElement(q, { isDesktop: u });
|
|
453
|
-
const { iconName: H, onClick: Q, label: U } = q;
|
|
454
|
-
return u ? /* @__PURE__ */ e(
|
|
455
|
-
z,
|
|
456
|
-
{
|
|
457
|
-
onClick: Q,
|
|
458
|
-
startIcon: /* @__PURE__ */ e(x, { name: H, size: t }),
|
|
459
|
-
children: U
|
|
460
|
-
},
|
|
461
|
-
H
|
|
462
|
-
) : /* @__PURE__ */ e($, { "aria-label": U, color: "primary", onClick: Q, children: /* @__PURE__ */ e(x, { name: H, size: t }) }, H);
|
|
463
|
-
})
|
|
464
|
-
]
|
|
465
|
-
}
|
|
466
|
-
)
|
|
467
|
-
]
|
|
468
|
-
}
|
|
469
|
-
),
|
|
470
|
-
i && (o || X),
|
|
471
|
-
i && l && /* @__PURE__ */ e(ge, {}),
|
|
472
|
-
/* @__PURE__ */ e(he, { ref: j, sx: { p: 0 }, children: /* @__PURE__ */ e(xe, { availableHeight: E, availableWidth: y, children: m }) })
|
|
473
|
-
] })
|
|
474
|
-
}
|
|
475
|
-
);
|
|
476
|
-
}
|
|
477
|
-
);
|
|
478
|
-
export {
|
|
479
|
-
ze as D,
|
|
480
|
-
wt as W,
|
|
481
|
-
We as u
|
|
482
|
-
};
|
package/dist/hooks-BaO_gOI6.mjs
DELETED
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import r from "react";
|
|
2
|
-
import { jsx as n } from "react/jsx-runtime";
|
|
3
|
-
const a = r.createContext(null), C = ({
|
|
4
|
-
children: t,
|
|
5
|
-
globalStore: e,
|
|
6
|
-
onError: s,
|
|
7
|
-
onEvent: l,
|
|
8
|
-
onLoad: u,
|
|
9
|
-
onPageView: c
|
|
10
|
-
}) => /* @__PURE__ */ n(
|
|
11
|
-
a.Provider,
|
|
12
|
-
{
|
|
13
|
-
value: {
|
|
14
|
-
globalStore: e,
|
|
15
|
-
onError: s,
|
|
16
|
-
onEvent: l,
|
|
17
|
-
onLoad: u,
|
|
18
|
-
onPageView: c,
|
|
19
|
-
children: t
|
|
20
|
-
},
|
|
21
|
-
children: t
|
|
22
|
-
}
|
|
23
|
-
), S = r.createContext(null), d = ({ children: t, availableHeight: e, availableWidth: s }) => /* @__PURE__ */ n(
|
|
24
|
-
S.Provider,
|
|
25
|
-
{
|
|
26
|
-
value: {
|
|
27
|
-
availableHeight: e,
|
|
28
|
-
availableWidth: s,
|
|
29
|
-
children: t
|
|
30
|
-
},
|
|
31
|
-
children: t
|
|
32
|
-
}
|
|
33
|
-
), o = (t = "useGlobalStore") => {
|
|
34
|
-
const e = r.useContext(a);
|
|
35
|
-
if (!e)
|
|
36
|
-
throw new Error(`${t}() must be used within the GlobalDataContext`);
|
|
37
|
-
return e;
|
|
38
|
-
}, p = () => o("useAccountStore").globalStore.accountStore, f = () => o("useAppConfig").globalStore.appDataStore.appConfig, h = () => o("useAnalyticsStore").globalStore.analyticsStore, x = () => o("useBudgetsStore").globalStore.budgetsStore, w = () => o("useCashflowStore").globalStore.cashflowStore, G = () => o("useCategoryStore").globalStore.categoryStore, v = () => o("useConnectStore").globalStore.connectStore, y = () => o("useDebtsStore").globalStore.debtsStore, W = () => o("useFinstrongStore").globalStore.finstrongStore, m = () => o("useGlobalStore").globalStore, D = () => o("useGlobalUiStore").globalStore.globalUiStore, E = () => o("globalCopyStore").globalStore.copyStore.copy, P = () => o("useGoalStore").globalStore.goalStore, A = () => o("useHelpStore").globalStore.helpStore, T = () => o("useHoldingStore").globalStore.holdingStore, U = () => o("useMerchantStore").globalStore.merchantStore, H = () => o("useNetWorthStore").globalStore.netWorthStore, N = () => o("useNotificationStore").globalStore.notificationStore, B = () => o("useRecurringTransactionsStore").globalStore.recurringTransactionsStore, L = () => o("useSettingsStore").globalStore.settingsStore, R = () => o("useTransactionStore").globalStore.transactionStore, V = () => o("useTrendsStore").globalStore.trendsStore, j = () => o("useUserStore").globalStore.userStore, F = () => ({ onError: o().onError }), M = () => ({ onEvent: o().onEvent }), _ = () => ({ onLoad: o().onLoad }), $ = () => ({ onPageView: o().onPageView }), i = (t = "useWidgetContainerContext") => {
|
|
39
|
-
const e = r.useContext(S);
|
|
40
|
-
if (!e)
|
|
41
|
-
throw new Error(`${t}() must be used within the WidgetContainerContext`);
|
|
42
|
-
return e;
|
|
43
|
-
}, k = () => i();
|
|
44
|
-
export {
|
|
45
|
-
L as A,
|
|
46
|
-
V as B,
|
|
47
|
-
j as C,
|
|
48
|
-
k as D,
|
|
49
|
-
a as G,
|
|
50
|
-
d as W,
|
|
51
|
-
f as a,
|
|
52
|
-
D as b,
|
|
53
|
-
U as c,
|
|
54
|
-
p as d,
|
|
55
|
-
v as e,
|
|
56
|
-
m as f,
|
|
57
|
-
M as g,
|
|
58
|
-
R as h,
|
|
59
|
-
B as i,
|
|
60
|
-
h as j,
|
|
61
|
-
P as k,
|
|
62
|
-
G as l,
|
|
63
|
-
C as m,
|
|
64
|
-
S as n,
|
|
65
|
-
x as o,
|
|
66
|
-
w as p,
|
|
67
|
-
y as q,
|
|
68
|
-
F as r,
|
|
69
|
-
W as s,
|
|
70
|
-
A as t,
|
|
71
|
-
E as u,
|
|
72
|
-
T as v,
|
|
73
|
-
_ as w,
|
|
74
|
-
H as x,
|
|
75
|
-
N as y,
|
|
76
|
-
$ as z
|
|
77
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import e from "react";
|
|
2
|
-
import { g as s } from "./AccountDisplayName-CO7z3v99.mjs";
|
|
3
|
-
import { a as n } from "./hooks-BaO_gOI6.mjs";
|
|
4
|
-
const i = (o) => {
|
|
5
|
-
const { config: a } = n();
|
|
6
|
-
return e.useMemo(
|
|
7
|
-
() => s(o, {
|
|
8
|
-
allowNickname: a?.show_account_nicknames_in_master
|
|
9
|
-
}),
|
|
10
|
-
[o, a?.show_account_nicknames_in_master]
|
|
11
|
-
);
|
|
12
|
-
};
|
|
13
|
-
export {
|
|
14
|
-
i as u
|
|
15
|
-
};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
-
import e from "react";
|
|
3
|
-
import u from "@mui/material/Box";
|
|
4
|
-
const f = (i = "polite") => {
|
|
5
|
-
const [s, o] = e.useState(""), [t, r] = e.useState(i), n = e.useCallback((c, a) => {
|
|
6
|
-
a && r(a), o(c);
|
|
7
|
-
}, []), p = e.useMemo(
|
|
8
|
-
() => /* @__PURE__ */ l(
|
|
9
|
-
u,
|
|
10
|
-
{
|
|
11
|
-
"aria-atomic": "true",
|
|
12
|
-
"aria-live": t,
|
|
13
|
-
role: t === "assertive" ? "alert" : "status",
|
|
14
|
-
sx: {
|
|
15
|
-
position: "absolute",
|
|
16
|
-
width: "1px",
|
|
17
|
-
height: "1px",
|
|
18
|
-
padding: 0,
|
|
19
|
-
margin: "-1px",
|
|
20
|
-
overflow: "hidden",
|
|
21
|
-
clip: "rect(0 0 0 0)",
|
|
22
|
-
clipPath: "inset(50%)",
|
|
23
|
-
whiteSpace: "nowrap",
|
|
24
|
-
border: 0
|
|
25
|
-
},
|
|
26
|
-
children: s
|
|
27
|
-
}
|
|
28
|
-
),
|
|
29
|
-
[s, t]
|
|
30
|
-
);
|
|
31
|
-
return { announce: n, ariaLive: p };
|
|
32
|
-
};
|
|
33
|
-
export {
|
|
34
|
-
f as u
|
|
35
|
-
};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import t from "react";
|
|
2
|
-
const d = (i, s) => t.useMemo(() => {
|
|
3
|
-
let o = null;
|
|
4
|
-
return (...e) => {
|
|
5
|
-
o && clearTimeout(o), o = setTimeout(() => {
|
|
6
|
-
i(...e);
|
|
7
|
-
}, s);
|
|
8
|
-
};
|
|
9
|
-
}, [i, s]);
|
|
10
|
-
function D(i = 100) {
|
|
11
|
-
const [s, o] = t.useState({
|
|
12
|
-
width: 0,
|
|
13
|
-
height: 0
|
|
14
|
-
}), e = t.useRef(null), u = t.useRef(s), f = d((n, r) => {
|
|
15
|
-
(n !== u.current.width || r !== u.current.height) && (o({ width: n, height: r }), u.current = { width: n, height: r });
|
|
16
|
-
}, i), l = t.useCallback(
|
|
17
|
-
(n) => {
|
|
18
|
-
if (e.current && (e.current.disconnect(), e.current = null), n?.nodeType === Node.ELEMENT_NODE) {
|
|
19
|
-
const r = new ResizeObserver(([c]) => {
|
|
20
|
-
if (c && c.borderBoxSize) {
|
|
21
|
-
const { inlineSize: m, blockSize: b } = c.borderBoxSize[0];
|
|
22
|
-
f(m, b);
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
r.observe(n), e.current = r;
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
[f]
|
|
29
|
-
);
|
|
30
|
-
return t.useEffect(() => () => {
|
|
31
|
-
e.current && e.current.disconnect();
|
|
32
|
-
}, []), [l, s];
|
|
33
|
-
}
|
|
34
|
-
export {
|
|
35
|
-
D as u
|
|
36
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { useState as n, useEffect as a } from "react";
|
|
2
|
-
import { f as o } from "./hooks-BaO_gOI6.mjs";
|
|
3
|
-
const f = () => {
|
|
4
|
-
const { isInitialized: e, appDataStore: t } = o(), [s, i] = n(!1);
|
|
5
|
-
return a(() => {
|
|
6
|
-
e && t.clientInsightProfile?.is_enabled && i(!0);
|
|
7
|
-
}, [e, t.clientInsightProfile]), s;
|
|
8
|
-
};
|
|
9
|
-
export {
|
|
10
|
-
f as u
|
|
11
|
-
};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { useTheme as k } from "@mui/material/styles";
|
|
2
|
-
import o from "@mui/material/useMediaQuery";
|
|
3
|
-
const l = (s) => {
|
|
4
|
-
const e = k(), { xs: n, sm: r, md: p, lg: t, xl: i } = e.breakpoints.values;
|
|
5
|
-
let m = {
|
|
6
|
-
// Larger than 1536
|
|
7
|
-
isLargeDesktop: o(e.breakpoints.up("xl")),
|
|
8
|
-
// Larger than 1200
|
|
9
|
-
isDesktop: o(e.breakpoints.up("lg")),
|
|
10
|
-
// Smaller than 600
|
|
11
|
-
isMobile: o(e.breakpoints.down("sm")),
|
|
12
|
-
// Smaller than 444
|
|
13
|
-
isSmallMobile: o(e.breakpoints.down("xs")),
|
|
14
|
-
// Between 600 and 900
|
|
15
|
-
isSmallTablet: o(e.breakpoints.between("sm", "md")),
|
|
16
|
-
// Between 600 and 1200
|
|
17
|
-
isTablet: o(e.breakpoints.between("sm", "lg"))
|
|
18
|
-
};
|
|
19
|
-
return s !== void 0 && (m = {
|
|
20
|
-
// Larger than 1536
|
|
21
|
-
isLargeDesktop: s > i,
|
|
22
|
-
// Larger than 1200
|
|
23
|
-
isDesktop: s > t,
|
|
24
|
-
// Smaller than 600
|
|
25
|
-
isMobile: s < r,
|
|
26
|
-
// Smaller than 444
|
|
27
|
-
isSmallMobile: s < n,
|
|
28
|
-
// Between 600 and 900
|
|
29
|
-
isSmallTablet: s >= r && s < p,
|
|
30
|
-
// Between 600 and 1200
|
|
31
|
-
isTablet: s > r && s <= t
|
|
32
|
-
}), m;
|
|
33
|
-
};
|
|
34
|
-
export {
|
|
35
|
-
l as u
|
|
36
|
-
};
|