@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,84 +0,0 @@
|
|
|
1
|
-
import { jsxs as n, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import o from "@mui/material/Button";
|
|
3
|
-
import s from "@mui/material/Stack";
|
|
4
|
-
import { Icon as x } from "@mxenabled/mx-icons";
|
|
5
|
-
import { Text as c } from "@mxenabled/mxui";
|
|
6
|
-
const w = ({
|
|
7
|
-
icon: m,
|
|
8
|
-
iconColor: l,
|
|
9
|
-
header: p,
|
|
10
|
-
onClick: a,
|
|
11
|
-
primaryButton: e,
|
|
12
|
-
primaryButtonStartIcon: i,
|
|
13
|
-
secondaryButton: r,
|
|
14
|
-
subText: d,
|
|
15
|
-
sx: h
|
|
16
|
-
}) => /* @__PURE__ */ n(
|
|
17
|
-
s,
|
|
18
|
-
{
|
|
19
|
-
sx: {
|
|
20
|
-
alignItems: "center",
|
|
21
|
-
alignSelf: "center",
|
|
22
|
-
maxWidth: "100%",
|
|
23
|
-
p: "12px 16px 24px 16px",
|
|
24
|
-
...h
|
|
25
|
-
},
|
|
26
|
-
children: [
|
|
27
|
-
/* @__PURE__ */ t(x, { name: m, size: 48, sx: { color: l } }),
|
|
28
|
-
/* @__PURE__ */ t(
|
|
29
|
-
c,
|
|
30
|
-
{
|
|
31
|
-
className: "empty-state-header",
|
|
32
|
-
color: "text.primary",
|
|
33
|
-
sx: { fontWeight: 600, mt: 16, textAlign: "center" },
|
|
34
|
-
variant: "body1",
|
|
35
|
-
children: p
|
|
36
|
-
}
|
|
37
|
-
),
|
|
38
|
-
/* @__PURE__ */ t(
|
|
39
|
-
c,
|
|
40
|
-
{
|
|
41
|
-
className: "empty-state-subtext",
|
|
42
|
-
color: "text.secondary",
|
|
43
|
-
sx: { fontWeight: 400, textAlign: "center", width: "calc(100% - 8px)" },
|
|
44
|
-
variant: "subtitle2",
|
|
45
|
-
children: d
|
|
46
|
-
}
|
|
47
|
-
),
|
|
48
|
-
(e || r) && /* @__PURE__ */ n(
|
|
49
|
-
s,
|
|
50
|
-
{
|
|
51
|
-
className: "buttons-footer",
|
|
52
|
-
sx: {
|
|
53
|
-
gap: 12,
|
|
54
|
-
mt: 32
|
|
55
|
-
},
|
|
56
|
-
children: [
|
|
57
|
-
e && /* @__PURE__ */ t(
|
|
58
|
-
o,
|
|
59
|
-
{
|
|
60
|
-
onClick: () => a?.("primary"),
|
|
61
|
-
startIcon: i ? /* @__PURE__ */ t(x, { name: i }) : void 0,
|
|
62
|
-
sx: { textWrap: "nowrap" },
|
|
63
|
-
variant: "contained",
|
|
64
|
-
children: e
|
|
65
|
-
}
|
|
66
|
-
),
|
|
67
|
-
r && /* @__PURE__ */ t(
|
|
68
|
-
o,
|
|
69
|
-
{
|
|
70
|
-
onClick: () => a?.("secondary"),
|
|
71
|
-
sx: { textWrap: "nowrap" },
|
|
72
|
-
variant: "text",
|
|
73
|
-
children: r
|
|
74
|
-
}
|
|
75
|
-
)
|
|
76
|
-
]
|
|
77
|
-
}
|
|
78
|
-
)
|
|
79
|
-
]
|
|
80
|
-
}
|
|
81
|
-
);
|
|
82
|
-
export {
|
|
83
|
-
w as E
|
|
84
|
-
};
|
package/dist/Error-Dogaw2jO.mjs
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { jsx as e, jsxs as a } from "react/jsx-runtime";
|
|
2
|
-
import c from "react";
|
|
3
|
-
import { observer as g } from "mobx-react-lite";
|
|
4
|
-
import { Stack as i, Box as f, Button as u, useTheme as y } from "@mui/material";
|
|
5
|
-
import { Icon as C, Text as l } from "@mxenabled/mxui";
|
|
6
|
-
import { G as b } from "./hooks-BaO_gOI6.mjs";
|
|
7
|
-
const m = c.forwardRef(
|
|
8
|
-
(r, o) => {
|
|
9
|
-
const n = y();
|
|
10
|
-
return /* @__PURE__ */ e(
|
|
11
|
-
"svg",
|
|
12
|
-
{
|
|
13
|
-
fill: "none",
|
|
14
|
-
height: "60",
|
|
15
|
-
ref: o,
|
|
16
|
-
viewBox: "0 0 72 60",
|
|
17
|
-
width: "72",
|
|
18
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
19
|
-
...r,
|
|
20
|
-
children: /* @__PURE__ */ e(
|
|
21
|
-
"path",
|
|
22
|
-
{
|
|
23
|
-
d: "M28.8288 1.43265C34.4433 4.02036 36.9443 13.1615 44.4378 18.7551C53.8387 25.7725 64.7205 8.05287 70.6592 18.2364C80.9926 35.9558 28.2828 74.5237 25.8072 54.2678C25.1894 49.213 34.1353 42.7165 27.308 38.2971C18.7065 32.7294 9.89746 43.1722 4.34888 37.9733C-8.70438 25.7428 10.0261 -7.2333 28.8288 1.43265Z",
|
|
24
|
-
fill: n.palette.primary[100] ?? "#DFE8FD"
|
|
25
|
-
}
|
|
26
|
-
)
|
|
27
|
-
}
|
|
28
|
-
);
|
|
29
|
-
}
|
|
30
|
-
);
|
|
31
|
-
m.displayName = "BlobSVG";
|
|
32
|
-
const w = ({
|
|
33
|
-
heading: r,
|
|
34
|
-
message: o,
|
|
35
|
-
iconName: n = "error",
|
|
36
|
-
buttonText: d,
|
|
37
|
-
onClick: s
|
|
38
|
-
}) => {
|
|
39
|
-
const t = c.useContext(b)?.globalStore.copyStore.copy.common, h = r ?? (t?.error_heading ? `${t.error_heading}!` : "Oops!"), x = o ?? t?.error_message ?? "Something went wrong. Please try again.", p = d ?? t?.refresh_button ?? "Refresh";
|
|
40
|
-
return /* @__PURE__ */ e(i, { alignItems: "center", justifyContent: "center", style: { height: "100dvh" }, children: /* @__PURE__ */ a(
|
|
41
|
-
i,
|
|
42
|
-
{
|
|
43
|
-
sx: {
|
|
44
|
-
display: "flex",
|
|
45
|
-
padding: "48px 16px",
|
|
46
|
-
flexDirection: "column",
|
|
47
|
-
alignItems: "center"
|
|
48
|
-
},
|
|
49
|
-
children: [
|
|
50
|
-
/* @__PURE__ */ a(
|
|
51
|
-
i,
|
|
52
|
-
{
|
|
53
|
-
sx: {
|
|
54
|
-
alignItems: "center",
|
|
55
|
-
justifyContent: "center"
|
|
56
|
-
},
|
|
57
|
-
children: [
|
|
58
|
-
/* @__PURE__ */ e(
|
|
59
|
-
f,
|
|
60
|
-
{
|
|
61
|
-
sx: {
|
|
62
|
-
position: "absolute",
|
|
63
|
-
zIndex: 0
|
|
64
|
-
},
|
|
65
|
-
children: /* @__PURE__ */ e(m, {})
|
|
66
|
-
}
|
|
67
|
-
),
|
|
68
|
-
/* @__PURE__ */ e(C, { color: "primary", name: n, size: 48, sx: { zIndex: 1 } })
|
|
69
|
-
]
|
|
70
|
-
}
|
|
71
|
-
),
|
|
72
|
-
/* @__PURE__ */ e(l, { bold: !0, color: "text.primary", mt: "24px", variant: "h2", children: h }),
|
|
73
|
-
/* @__PURE__ */ e(l, { color: "text.secondary", variant: "subtitle1", children: x }),
|
|
74
|
-
s && /* @__PURE__ */ e(u, { color: "primary", onClick: () => {
|
|
75
|
-
s?.();
|
|
76
|
-
}, sx: { mt: 48 }, variant: "contained", children: p })
|
|
77
|
-
]
|
|
78
|
-
}
|
|
79
|
-
) });
|
|
80
|
-
}, G = g(w);
|
|
81
|
-
export {
|
|
82
|
-
m as B,
|
|
83
|
-
G as E
|
|
84
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import o from "react";
|
|
3
|
-
import { H3 as s } from "@mxenabled/mxui";
|
|
4
|
-
const n = {
|
|
5
|
-
text: "Oops! Something went wrong."
|
|
6
|
-
};
|
|
7
|
-
class h extends o.Component {
|
|
8
|
-
state = {
|
|
9
|
-
hasError: !1
|
|
10
|
-
};
|
|
11
|
-
componentDidCatch(r, t) {
|
|
12
|
-
console.error("Uncaught error:", r, t);
|
|
13
|
-
}
|
|
14
|
-
static getDerivedStateFromError() {
|
|
15
|
-
return { hasError: !0 };
|
|
16
|
-
}
|
|
17
|
-
render() {
|
|
18
|
-
return this.state.hasError ? /* @__PURE__ */ e(s, { sx: { pt: 24 }, children: n.text }) : this.props.children;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
export {
|
|
22
|
-
h as E
|
|
23
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { observer as c } from "mobx-react-lite";
|
|
3
|
-
import { Icon as i } from "@mxenabled/mxui";
|
|
4
|
-
import { e as p } from "./TransactionUtils-BphBJBbU.mjs";
|
|
5
|
-
import { O as m } from "./EmbeddedCard-DPwJjqMH.mjs";
|
|
6
|
-
import { g as x, h as _, u as C } from "./hooks-BaO_gOI6.mjs";
|
|
7
|
-
import { R as l } from "./ResponsiveButton-CC9F_Ezk.mjs";
|
|
8
|
-
const v = ({ filter: t }) => {
|
|
9
|
-
const { onEvent: r } = x(), { tags: e, sortedTransactions: s } = _(), { transactions: n } = C(), a = () => {
|
|
10
|
-
r(m.ON_TRANSACTION_EXPORT_CSV_CLICK), p(t ? s.filter(t) : s, e);
|
|
11
|
-
};
|
|
12
|
-
return /* @__PURE__ */ o("div", { className: "mx-txn-export-csv-action", children: /* @__PURE__ */ o(
|
|
13
|
-
l,
|
|
14
|
-
{
|
|
15
|
-
icon: /* @__PURE__ */ o(i, { name: "open_in_new" }),
|
|
16
|
-
label: n.export_csv_btn,
|
|
17
|
-
onClick: a,
|
|
18
|
-
tooltipText: n.export_csv_title
|
|
19
|
-
}
|
|
20
|
-
) });
|
|
21
|
-
}, b = c(v);
|
|
22
|
-
export {
|
|
23
|
-
b as E
|
|
24
|
-
};
|
|
@@ -1,237 +0,0 @@
|
|
|
1
|
-
import { jsxs as d, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import B from "react";
|
|
3
|
-
import { observer as I } from "mobx-react-lite";
|
|
4
|
-
import j from "@mui/material/Box";
|
|
5
|
-
import C from "@mui/material/Button";
|
|
6
|
-
import P from "@mui/material/Divider";
|
|
7
|
-
import w from "@mui/material/IconButton";
|
|
8
|
-
import O from "@mui/material/Popover";
|
|
9
|
-
import A from "@mui/material/Stack";
|
|
10
|
-
import E from "@mui/material/Tooltip";
|
|
11
|
-
import { FilterAlt as F } from "@mxenabled/mx-icons";
|
|
12
|
-
import S from "@mui/material/Checkbox";
|
|
13
|
-
import G from "@mui/material/List";
|
|
14
|
-
import g from "@mui/material/ListItem";
|
|
15
|
-
import _ from "@mui/material/ListItemButton";
|
|
16
|
-
import H from "@mui/material/ListItemIcon";
|
|
17
|
-
import v from "@mui/material/ListItemText";
|
|
18
|
-
import { b as M, u as W, d as z } from "./hooks-BaO_gOI6.mjs";
|
|
19
|
-
const N = I(
|
|
20
|
-
({ allowedAccountTypes: a }) => {
|
|
21
|
-
const { accountFilterMap: s, updateAccountFilterMap: u } = M(), { accounts: y, common: x } = W(), { account_filter: c } = x, { accountsByTypeMap: n } = z(), k = B.useMemo(
|
|
22
|
-
() => Array.from(n.keys()).reduce((t, i) => {
|
|
23
|
-
if (!a || a && a.includes(i)) {
|
|
24
|
-
const o = n.get(i);
|
|
25
|
-
o && t.push(...o);
|
|
26
|
-
}
|
|
27
|
-
return t;
|
|
28
|
-
}, []),
|
|
29
|
-
[n, a]
|
|
30
|
-
), p = new Map(
|
|
31
|
-
Array.from(s.entries()).filter(([t]) => k.some((i) => i.guid === t))
|
|
32
|
-
), m = Array.from(p.values()).every((t) => t), b = Array.from(p.values()).some((t) => t), f = () => {
|
|
33
|
-
for (const t of p.keys())
|
|
34
|
-
u(t, !m);
|
|
35
|
-
}, h = (t) => {
|
|
36
|
-
const i = n.get(t);
|
|
37
|
-
if (!i) return;
|
|
38
|
-
const o = i.some((r) => s.get(r.guid));
|
|
39
|
-
for (const r of i)
|
|
40
|
-
u(r.guid, !o);
|
|
41
|
-
};
|
|
42
|
-
return /* @__PURE__ */ d(
|
|
43
|
-
G,
|
|
44
|
-
{
|
|
45
|
-
dense: !0,
|
|
46
|
-
id: "filter_accounts",
|
|
47
|
-
sx: { overflowY: "scroll", maxHeight: 350, minWidth: 280 },
|
|
48
|
-
children: [
|
|
49
|
-
/* @__PURE__ */ e(
|
|
50
|
-
g,
|
|
51
|
-
{
|
|
52
|
-
"aria-label": c.select_all_accounts,
|
|
53
|
-
disableGutters: !0,
|
|
54
|
-
disablePadding: !0,
|
|
55
|
-
role: "menuitem",
|
|
56
|
-
sx: { py: 16 },
|
|
57
|
-
children: /* @__PURE__ */ d(_, { disableGutters: !0, onClick: f, sx: { p: 0, px: 8 }, children: [
|
|
58
|
-
/* @__PURE__ */ e(
|
|
59
|
-
S,
|
|
60
|
-
{
|
|
61
|
-
"aria-checked": m,
|
|
62
|
-
checked: m,
|
|
63
|
-
disableRipple: !0,
|
|
64
|
-
indeterminate: !m && b,
|
|
65
|
-
size: "small",
|
|
66
|
-
slotProps: { input: { "aria-labelledby": "label-select-all" } },
|
|
67
|
-
tabIndex: -1
|
|
68
|
-
}
|
|
69
|
-
),
|
|
70
|
-
/* @__PURE__ */ e(
|
|
71
|
-
v,
|
|
72
|
-
{
|
|
73
|
-
id: "label-select-all",
|
|
74
|
-
primary: c.select_all_accounts,
|
|
75
|
-
slotProps: { primary: { variant: "body1", fontWeight: "normal" } }
|
|
76
|
-
}
|
|
77
|
-
)
|
|
78
|
-
] })
|
|
79
|
-
}
|
|
80
|
-
),
|
|
81
|
-
Array.from(n.keys()).map((t) => {
|
|
82
|
-
const i = n.get(t), o = a ? !a.includes(t) : !1, r = y.account_type_accounts[t];
|
|
83
|
-
return (
|
|
84
|
-
// Account Type Header
|
|
85
|
-
/* @__PURE__ */ e(
|
|
86
|
-
g,
|
|
87
|
-
{
|
|
88
|
-
"aria-label": r,
|
|
89
|
-
disableGutters: !0,
|
|
90
|
-
disablePadding: !0,
|
|
91
|
-
children: /* @__PURE__ */ d(A, { sx: { pb: 8, width: "100%" }, children: [
|
|
92
|
-
/* @__PURE__ */ e(P, {}),
|
|
93
|
-
/* @__PURE__ */ e(
|
|
94
|
-
G,
|
|
95
|
-
{
|
|
96
|
-
dense: !0,
|
|
97
|
-
role: "menu",
|
|
98
|
-
subheader: /* @__PURE__ */ e(g, { "aria-label": r, role: "menu", children: /* @__PURE__ */ e(
|
|
99
|
-
_,
|
|
100
|
-
{
|
|
101
|
-
disableGutters: !0,
|
|
102
|
-
disabled: o,
|
|
103
|
-
onClick: () => h(t),
|
|
104
|
-
sx: { pl: 16, minHeight: 40, justifyContent: "left" },
|
|
105
|
-
children: /* @__PURE__ */ e(
|
|
106
|
-
v,
|
|
107
|
-
{
|
|
108
|
-
primary: r,
|
|
109
|
-
slotProps: { primary: { variant: "body1", fontWeight: "bold" } }
|
|
110
|
-
}
|
|
111
|
-
)
|
|
112
|
-
}
|
|
113
|
-
) }),
|
|
114
|
-
children: i?.map((l) => (
|
|
115
|
-
// Account Checkbox
|
|
116
|
-
/* @__PURE__ */ e(g, { "aria-label": l.displayName, role: "menuitem", children: /* @__PURE__ */ d(
|
|
117
|
-
_,
|
|
118
|
-
{
|
|
119
|
-
disableGutters: !0,
|
|
120
|
-
disabled: o,
|
|
121
|
-
onClick: () => u(l.guid, !s.get(l.guid)),
|
|
122
|
-
sx: { p: 0, minHeight: 40 },
|
|
123
|
-
children: [
|
|
124
|
-
/* @__PURE__ */ e(H, { children: /* @__PURE__ */ e(
|
|
125
|
-
S,
|
|
126
|
-
{
|
|
127
|
-
"aria-checked": s.get(l.guid),
|
|
128
|
-
checked: s.get(l.guid),
|
|
129
|
-
disableRipple: !0,
|
|
130
|
-
size: "small",
|
|
131
|
-
slotProps: { input: { "aria-labelledby": `label-${l.guid}` } },
|
|
132
|
-
tabIndex: -1
|
|
133
|
-
}
|
|
134
|
-
) }),
|
|
135
|
-
/* @__PURE__ */ e(
|
|
136
|
-
v,
|
|
137
|
-
{
|
|
138
|
-
id: `label-${l.guid}`,
|
|
139
|
-
primary: l.displayName,
|
|
140
|
-
slotProps: { primary: { variant: "body1", fontWeight: "normal" } }
|
|
141
|
-
}
|
|
142
|
-
)
|
|
143
|
-
]
|
|
144
|
-
}
|
|
145
|
-
) }, l.guid)
|
|
146
|
-
))
|
|
147
|
-
}
|
|
148
|
-
)
|
|
149
|
-
] })
|
|
150
|
-
},
|
|
151
|
-
t
|
|
152
|
-
)
|
|
153
|
-
);
|
|
154
|
-
})
|
|
155
|
-
]
|
|
156
|
-
}
|
|
157
|
-
);
|
|
158
|
-
}
|
|
159
|
-
), le = I(
|
|
160
|
-
({
|
|
161
|
-
allowedAccountTypes: a,
|
|
162
|
-
isDesktop: s,
|
|
163
|
-
onAccountFilterClick: u,
|
|
164
|
-
sx: y = {},
|
|
165
|
-
variant: x = "text"
|
|
166
|
-
}) => {
|
|
167
|
-
const { common: c } = W(), { accountFilterMap: n, resetAccountFilterMap: k } = M(), { detailedAccounts: p, updateAccountFilter: m } = z(), [b, f] = B.useState(null), h = (L) => {
|
|
168
|
-
k(), f(L.currentTarget), u?.();
|
|
169
|
-
}, t = () => {
|
|
170
|
-
f(null);
|
|
171
|
-
}, i = async () => {
|
|
172
|
-
await m(n), f(null);
|
|
173
|
-
}, o = c.account_filter, r = !!b, l = p.length === 0;
|
|
174
|
-
return /* @__PURE__ */ d(j, { sx: { ...y }, children: [
|
|
175
|
-
s ? /* @__PURE__ */ e(
|
|
176
|
-
C,
|
|
177
|
-
{
|
|
178
|
-
"aria-controls": r ? "filter_accounts" : void 0,
|
|
179
|
-
"aria-expanded": r,
|
|
180
|
-
"aria-haspopup": !0,
|
|
181
|
-
"aria-label": o.title,
|
|
182
|
-
disabled: l,
|
|
183
|
-
onClick: h,
|
|
184
|
-
startIcon: /* @__PURE__ */ e(F, { size: 24 }),
|
|
185
|
-
sx: { p: 8, whiteSpace: "nowrap", minWidth: "max-content" },
|
|
186
|
-
variant: x,
|
|
187
|
-
children: c.filter_button
|
|
188
|
-
}
|
|
189
|
-
) : /* @__PURE__ */ e(E, { id: "filter-accounts", placement: "bottom", title: o.title, children: /* @__PURE__ */ e(
|
|
190
|
-
w,
|
|
191
|
-
{
|
|
192
|
-
"aria-controls": r ? "filter_accounts" : void 0,
|
|
193
|
-
"aria-describedby": "filter-accounts",
|
|
194
|
-
"aria-expanded": r,
|
|
195
|
-
"aria-haspopup": !0,
|
|
196
|
-
"aria-label": o.title,
|
|
197
|
-
color: "primary",
|
|
198
|
-
disabled: l,
|
|
199
|
-
onClick: h,
|
|
200
|
-
sx: { p: 8 },
|
|
201
|
-
children: /* @__PURE__ */ e(F, { size: 24 })
|
|
202
|
-
}
|
|
203
|
-
) }),
|
|
204
|
-
/* @__PURE__ */ e(
|
|
205
|
-
O,
|
|
206
|
-
{
|
|
207
|
-
anchorEl: b,
|
|
208
|
-
anchorOrigin: { vertical: "bottom", horizontal: "left" },
|
|
209
|
-
onClose: t,
|
|
210
|
-
open: r,
|
|
211
|
-
transformOrigin: { vertical: "top", horizontal: "left" },
|
|
212
|
-
children: /* @__PURE__ */ d(A, { children: [
|
|
213
|
-
/* @__PURE__ */ e(N, { allowedAccountTypes: a }),
|
|
214
|
-
/* @__PURE__ */ e(P, {}),
|
|
215
|
-
/* @__PURE__ */ d(A, { direction: "row", justifyContent: "space-between", spacing: 16, sx: { p: 16 }, children: [
|
|
216
|
-
/* @__PURE__ */ e(C, { fullWidth: !0, onClick: t, variant: "text", children: c.cancel_button }),
|
|
217
|
-
/* @__PURE__ */ e(
|
|
218
|
-
C,
|
|
219
|
-
{
|
|
220
|
-
"aria-label": o.filter_button_aria,
|
|
221
|
-
color: "primary",
|
|
222
|
-
fullWidth: !0,
|
|
223
|
-
onClick: i,
|
|
224
|
-
variant: "contained",
|
|
225
|
-
children: c.filter_button
|
|
226
|
-
}
|
|
227
|
-
)
|
|
228
|
-
] })
|
|
229
|
-
] })
|
|
230
|
-
}
|
|
231
|
-
)
|
|
232
|
-
] });
|
|
233
|
-
}
|
|
234
|
-
);
|
|
235
|
-
export {
|
|
236
|
-
le as G
|
|
237
|
-
};
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
import c from "bowser";
|
|
2
|
-
import { A as a } from "./ApiEndpoints-DXwIYNUV.mjs";
|
|
3
|
-
import { g as h } from "./Localization-DnoVyBNK.mjs";
|
|
4
|
-
class o {
|
|
5
|
-
endpoint = "/";
|
|
6
|
-
headers;
|
|
7
|
-
onError;
|
|
8
|
-
constructor(e, n, t, r) {
|
|
9
|
-
this.endpoint = e;
|
|
10
|
-
const s = {
|
|
11
|
-
Accept: "application/json",
|
|
12
|
-
"Accept-Language": h(),
|
|
13
|
-
"Content-Type": "application/json",
|
|
14
|
-
"MD-Session-Token": n
|
|
15
|
-
};
|
|
16
|
-
this.headers = t || s, this.onError = r;
|
|
17
|
-
}
|
|
18
|
-
get = async (e) => {
|
|
19
|
-
const n = {
|
|
20
|
-
method: "GET",
|
|
21
|
-
headers: this.headers
|
|
22
|
-
};
|
|
23
|
-
return fetch(`${this.endpoint}${e}`, n).then((t) => {
|
|
24
|
-
if (t.ok)
|
|
25
|
-
return t.text();
|
|
26
|
-
throw t;
|
|
27
|
-
}).then((t) => t.length ? JSON.parse(t) : {}).then((t) => t).catch((t) => {
|
|
28
|
-
throw this.onError?.(t, void 0, "ApiGetRequestError"), t;
|
|
29
|
-
});
|
|
30
|
-
};
|
|
31
|
-
post = async (e, n) => {
|
|
32
|
-
const t = n ? JSON.stringify(n) : void 0, r = {
|
|
33
|
-
method: "POST",
|
|
34
|
-
headers: this.headers,
|
|
35
|
-
body: t
|
|
36
|
-
};
|
|
37
|
-
return fetch(`${this.endpoint}${e}`, r).then((s) => {
|
|
38
|
-
if (!s.ok)
|
|
39
|
-
throw s;
|
|
40
|
-
return s.text();
|
|
41
|
-
}).then((s) => s.length ? JSON.parse(s) : {}).then((s) => s).catch((s) => {
|
|
42
|
-
throw s;
|
|
43
|
-
});
|
|
44
|
-
};
|
|
45
|
-
put = async (e, n) => {
|
|
46
|
-
const t = JSON.stringify(n), r = {
|
|
47
|
-
method: "PUT",
|
|
48
|
-
headers: this.headers,
|
|
49
|
-
body: t
|
|
50
|
-
};
|
|
51
|
-
return fetch(`${this.endpoint}${e}`, r).then((s) => {
|
|
52
|
-
if (s.ok)
|
|
53
|
-
return s.text();
|
|
54
|
-
throw new Error(`${s.status}`);
|
|
55
|
-
}).then((s) => s.length ? JSON.parse(s) : {}).then((s) => s).catch((s) => {
|
|
56
|
-
throw window?.app?.config?.type === "pulse" && this.onError?.(s.message), s.message;
|
|
57
|
-
});
|
|
58
|
-
};
|
|
59
|
-
delete = async (e) => {
|
|
60
|
-
const n = {
|
|
61
|
-
method: "DELETE",
|
|
62
|
-
headers: this.headers
|
|
63
|
-
};
|
|
64
|
-
return fetch(`${this.endpoint}${e}`, n).then((t) => t.ok ? t.text() : t.text().then((r) => {
|
|
65
|
-
throw new Error(r);
|
|
66
|
-
})).then((t) => t.length ? JSON.parse(t) : {}).then((t) => t).catch((t) => {
|
|
67
|
-
throw t;
|
|
68
|
-
});
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
class f {
|
|
72
|
-
fetchInstance;
|
|
73
|
-
constructor(e, n, t) {
|
|
74
|
-
this.fetchInstance = new o(e, n, void 0, t);
|
|
75
|
-
}
|
|
76
|
-
initializeAnalyticsSession = async (e, n) => {
|
|
77
|
-
const t = c.getParser(window.navigator.userAgent), { analytics_session: r } = await this.fetchInstance.post(a.ANALYTICS_SESSION, {
|
|
78
|
-
browser_name: t.getBrowserName() || "Unknown",
|
|
79
|
-
browser_version: t.getBrowserVersion() || "0.0.0",
|
|
80
|
-
is_first_visit: !1,
|
|
81
|
-
product_name: "Individual Widget",
|
|
82
|
-
product_version: e
|
|
83
|
-
});
|
|
84
|
-
return r ? (this.fetchInstance.post(a.ANALYTICS_FEATURE_VISITS, {
|
|
85
|
-
feature_visit: {
|
|
86
|
-
analytics_session_guid: r.guid,
|
|
87
|
-
feature_name: n || "Experiences",
|
|
88
|
-
is_first_visit: r.is_first_visit
|
|
89
|
-
}
|
|
90
|
-
}), { analytics_session: r }) : { analytics_session: null };
|
|
91
|
-
};
|
|
92
|
-
sendAnalyticEvent = async (e) => this.fetchInstance.post(a.ANALYTICS_EVENTS, e).catch((n) => {
|
|
93
|
-
throw n;
|
|
94
|
-
});
|
|
95
|
-
sendAnalyticsPageview = async (e) => this.fetchInstance.post(a.ANALYTICS_PAGEVIEWS, e).catch((n) => {
|
|
96
|
-
throw n;
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
class l {
|
|
100
|
-
fetchInstance;
|
|
101
|
-
constructor(e, n, t) {
|
|
102
|
-
this.fetchInstance = new o(e, n, void 0, t);
|
|
103
|
-
}
|
|
104
|
-
getBeats = async (e, n) => {
|
|
105
|
-
const t = `page=${e || 1}&per_page=${n || 5}`;
|
|
106
|
-
return this.fetchInstance.get(`${a.BEATS}?${t}`).then((r) => r.beats);
|
|
107
|
-
};
|
|
108
|
-
getBeatsWithAssociatedTransaction = async (e) => {
|
|
109
|
-
let n = "has_associated_transaction_guid=true";
|
|
110
|
-
return n += e ? `&from_date=${e}` : "", this.fetchInstance.get(`${a.BEATS}?${n}`).then((t) => t.beats);
|
|
111
|
-
};
|
|
112
|
-
getOffers = async () => this.fetchInstance.get(`${a.OFFERS}/${a.PULSE_COMMUNICATIONS}`).then((e) => e.pulse_communications);
|
|
113
|
-
updateBeat = async (e) => this.fetchInstance.put(`${a.BEATS}/${e.guid}`, e).then((n) => n.beat);
|
|
114
|
-
updateOffer = async (e) => this.fetchInstance.put(`${a.OFFERS}/${e.guid}`, e).then((n) => n.beat);
|
|
115
|
-
}
|
|
116
|
-
class g {
|
|
117
|
-
fetchInstance;
|
|
118
|
-
constructor(e, n, t) {
|
|
119
|
-
this.fetchInstance = new o(e, n, void 0, t);
|
|
120
|
-
}
|
|
121
|
-
getGlobalCopy = async (e, n) => this.fetchInstance.post(`${a.LOCALIZED_CONTENT}/${e}`, { translation_key: n }).then((t) => t);
|
|
122
|
-
}
|
|
123
|
-
export {
|
|
124
|
-
f as A,
|
|
125
|
-
l as B,
|
|
126
|
-
o as F,
|
|
127
|
-
g as G
|
|
128
|
-
};
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import { fromUnixTime as s } from "date-fns/fromUnixTime";
|
|
2
|
-
import { addYears as C } from "date-fns/addYears";
|
|
3
|
-
import { getUnixTime as N } from "date-fns/getUnixTime";
|
|
4
|
-
import { a as g } from "./NumberFormatting--XMeeBfr.mjs";
|
|
5
|
-
import { b as r } from "./Localization-DnoVyBNK.mjs";
|
|
6
|
-
import { f as T, D as O } from "./DateFormats-HudZ3Bjs.mjs";
|
|
7
|
-
var e = /* @__PURE__ */ ((t) => (t[t.DEBT_TRACK = 1] = "DEBT_TRACK", t[t.SAVINGS_TRACK = 2] = "SAVINGS_TRACK", t[t.RETIREMENT_TRACK = 3] = "RETIREMENT_TRACK", t[t.EMERGENCY_FUND_TRACK = 4] = "EMERGENCY_FUND_TRACK", t))(e || {}), I = /* @__PURE__ */ ((t) => (t[t.SAVE_AMOUNT = 1] = "SAVE_AMOUNT", t[t.KEEP_BALANCE_BELOW = 2] = "KEEP_BALANCE_BELOW", t[t.KEEP_BALANCE_ABOVE = 3] = "KEEP_BALANCE_ABOVE", t[t.ACTION = 4] = "ACTION", t))(I || {}), n = /* @__PURE__ */ ((t) => (t[t.AUTOMOBILE = 1] = "AUTOMOBILE", t[t.COLLEGE = 2] = "COLLEGE", t[t.HOUSE = 3] = "HOUSE", t[t.RECREATIONAL_VEHICLE = 4] = "RECREATIONAL_VEHICLE", t[t.VACATION = 5] = "VACATION", t[t.ELECTRONIC = 6] = "ELECTRONIC", t[t.OTHER = 7] = "OTHER", t[t.RETIREMENT = 8] = "RETIREMENT", t[t.EMERGENCY_FUND = 9] = "EMERGENCY_FUND", t[t.SETUP_BUDGETS = 10] = "SETUP_BUDGETS", t[t.START_MONEY_MANAGEMENT = 11] = "START_MONEY_MANAGEMENT", t[t.CREDIT_CARD = 12] = "CREDIT_CARD", t[t.LINE_OF_CREDIT = 13] = "LINE_OF_CREDIT", t[t.LOANS = 14] = "LOANS", t))(n || {});
|
|
8
|
-
function h(t, E) {
|
|
9
|
-
const o = E.track_type === e.DEBT_TRACK ? E.initial_amount : E.amount;
|
|
10
|
-
let _ = E.current_amount / o;
|
|
11
|
-
_ > 1 && (_ = 1), _ = E.track_type === e.DEBT_TRACK ? 1 - _ : _, isNaN(_) && (_ = 1);
|
|
12
|
-
let i = "chart.chart1", a = "common.black";
|
|
13
|
-
E.track_type === e.DEBT_TRACK ? (a = "common.white", i = "chart.chart5") : E.track_type === e.RETIREMENT_TRACK && (i = "chart.chart6");
|
|
14
|
-
const A = {
|
|
15
|
-
style: "percent",
|
|
16
|
-
minimumFractionDigits: 0,
|
|
17
|
-
maximumFractionDigits: 0
|
|
18
|
-
}, c = E.is_complete ? E.completed_at : E.projected_to_complete_at, l = c ? s(c) : /* @__PURE__ */ new Date(), m = r(
|
|
19
|
-
t.goal_percentage,
|
|
20
|
-
g(_, A)
|
|
21
|
-
), R = r(
|
|
22
|
-
E.is_complete ? t.completed_label : t.goal_projection,
|
|
23
|
-
T(l, O.MONTH_SHORT_YEAR)
|
|
24
|
-
);
|
|
25
|
-
return {
|
|
26
|
-
backgroundColor: i,
|
|
27
|
-
color: a,
|
|
28
|
-
percentage: _,
|
|
29
|
-
percentageText: m,
|
|
30
|
-
projectedText: R
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
function K(t) {
|
|
34
|
-
return [
|
|
35
|
-
{
|
|
36
|
-
bgcolor: "chart.chart1",
|
|
37
|
-
icon: "attach_money",
|
|
38
|
-
label: t.saving_goal_label,
|
|
39
|
-
description: t.saving_goal_description,
|
|
40
|
-
subTypes: [
|
|
41
|
-
{
|
|
42
|
-
icon: "ecg_heart",
|
|
43
|
-
label: t.saving_goal_emergency_fund,
|
|
44
|
-
metaType: n.EMERGENCY_FUND
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
icon: "directions_car",
|
|
48
|
-
label: t.saving_gaol_automobile,
|
|
49
|
-
metaType: n.AUTOMOBILE
|
|
50
|
-
},
|
|
51
|
-
{ icon: "school", label: t.saving_goal_college, metaType: n.COLLEGE },
|
|
52
|
-
{ icon: "home", label: t.saving_goal_home, metaType: n.HOUSE },
|
|
53
|
-
{
|
|
54
|
-
icon: "mountain_flag",
|
|
55
|
-
label: t.saving_goal_recreational,
|
|
56
|
-
metaType: n.RECREATIONAL_VEHICLE
|
|
57
|
-
},
|
|
58
|
-
{ icon: "airplane_ticket", label: t.saving_goal_vacation, metaType: n.VACATION },
|
|
59
|
-
{
|
|
60
|
-
icon: "desktop_windows",
|
|
61
|
-
label: t.saving_goal_electronic,
|
|
62
|
-
metaType: n.ELECTRONIC
|
|
63
|
-
},
|
|
64
|
-
{ icon: "payments", label: t.saving_goal_other, metaType: n.OTHER }
|
|
65
|
-
],
|
|
66
|
-
type: e.SAVINGS_TRACK
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
bgcolor: "chart.chart5",
|
|
70
|
-
icon: "note_stack",
|
|
71
|
-
label: t.debt_goal_label,
|
|
72
|
-
description: t.debt_goal_description,
|
|
73
|
-
subTypes: [],
|
|
74
|
-
type: e.DEBT_TRACK
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
bgcolor: "chart.chart6",
|
|
78
|
-
icon: "person",
|
|
79
|
-
label: t.retirement_goal_label,
|
|
80
|
-
description: t.retirement_goal_description,
|
|
81
|
-
subTypes: [],
|
|
82
|
-
type: e.RETIREMENT_TRACK
|
|
83
|
-
}
|
|
84
|
-
];
|
|
85
|
-
}
|
|
86
|
-
const B = (t, E) => {
|
|
87
|
-
switch (t) {
|
|
88
|
-
case e.DEBT_TRACK:
|
|
89
|
-
return r(E.zero_state_ongoing, "debt");
|
|
90
|
-
case e.SAVINGS_TRACK:
|
|
91
|
-
return r(E.zero_state_ongoing, "saving");
|
|
92
|
-
default:
|
|
93
|
-
return r(E.zero_state_ongoing, "retirement");
|
|
94
|
-
}
|
|
95
|
-
}, U = (t, E) => {
|
|
96
|
-
const o = s(E), _ = C(o, t);
|
|
97
|
-
return N(_);
|
|
98
|
-
};
|
|
99
|
-
export {
|
|
100
|
-
I as G,
|
|
101
|
-
n as M,
|
|
102
|
-
e as T,
|
|
103
|
-
B as a,
|
|
104
|
-
K as b,
|
|
105
|
-
U as c,
|
|
106
|
-
h as g
|
|
107
|
-
};
|