@mx-cartographer/experiences 7.1.4-ram1-alpha-finstrong-credit-score-graph-check → 7.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/dist/{Account-CpRTVIHg.mjs → Account-8IUM_CLv.mjs} +1 -1
- package/dist/{AccountDetailsContent-6aPMU6Hp.mjs → AccountDetailsContent-CuZSSAEc.mjs} +10 -10
- package/dist/{AccountDetailsHeader-BkUZYoV8.mjs → AccountDetailsHeader-BZBsIKdF.mjs} +8 -8
- package/dist/{AccountFields-DOLjKu5l.mjs → AccountFields-BD_0GT68.mjs} +5 -5
- package/dist/{AccountListItem-CTT5m4qx.mjs → AccountListItem-CllIBCao.mjs} +4 -4
- package/dist/{AccountStore-DTfpr3h0.mjs → AccountStore-BL0FE1QL.mjs} +15 -26
- package/dist/{Accounts-D0BmvNxn.mjs → Accounts-Bvc9TJaO.mjs} +1 -1
- package/dist/{BudgetUtil-D2Jcp-E-.mjs → BudgetUtil-psfk-Amb.mjs} +1 -1
- package/dist/{CategorySelectorDrawer-DomNyubP.mjs → CategorySelectorDrawer-BmenK5bu.mjs} +3 -3
- package/dist/{CategoryStore-C1IfDPCE.mjs → CategoryStore-BCcpI3oJ.mjs} +1 -1
- package/dist/{CategoryUtil-DUM8NuGO.mjs → CategoryUtil-BR3H5i6n.mjs} +1 -1
- package/dist/{ConnectDrawer--gJHyp-S.mjs → ConnectDrawer-CPTXh70j.mjs} +2 -2
- package/dist/{ConnectionsDrawer-DabiwV9L.mjs → ConnectionsDrawer-Dkb4vBmt.mjs} +3 -3
- package/dist/{CurrencyInput-CC5cwVit.mjs → CurrencyInput-C4xNRL2W.mjs} +1 -1
- package/dist/{DateUtil-CBdcsyuk.mjs → DateUtil-BcuH7ErC.mjs} +3 -3
- package/dist/{DebtsStore-9aR2sTJQ.mjs → DebtsStore-D4grpB4m.mjs} +1 -1
- package/dist/{Dialog-BPTr3qHE.mjs → Dialog-CWW597AF.mjs} +2 -2
- package/dist/Drawer-kEE73B87.mjs +113 -0
- package/dist/{ExportCsvAction-Um-CDa4C.mjs → ExportCsvAction-CBJAfyAw.mjs} +3 -3
- package/dist/FinstrongStore-F2c607dj.mjs +101 -0
- package/dist/{GoalStore-CiBKZvTg.mjs → GoalStore-B5MZzPLZ.mjs} +3 -3
- package/dist/{Help-BZ8pIkkR.mjs → Help-CzBAsKA2.mjs} +2 -2
- package/dist/LineChart-B35qvXik.mjs +541 -0
- package/dist/{ListItemAction-DGaxy7oz.mjs → ListItemAction-DSrYDGAP.mjs} +10 -10
- package/dist/{ManageIncome-BaNgfwr5.mjs → ManageIncome-DUuT-yMV.mjs} +32 -34
- package/dist/{MicroWidgetContainer-C3iV1FBR.mjs → MicroWidgetContainer-C4QQHfD7.mjs} +1 -1
- package/dist/{MiniWidgetContainer-LtXXgZ6H.mjs → MiniWidgetContainer-DTQdRK-3.mjs} +1 -1
- package/dist/{NetWorthStore-MnpP5KEc.mjs → NetWorthStore-Do1Gk8Te.mjs} +2 -2
- package/dist/{NotificationSettings-Ckx8tgQj.mjs → NotificationSettings-BuShgjn6.mjs} +5 -5
- package/dist/{OriginalBalanceAction-CGZDUsCc.mjs → OriginalBalanceAction-BsxcvNEF.mjs} +3 -3
- package/dist/{RecurringSettings-DE4T4yQy.mjs → RecurringSettings-BVOt46uV.mjs} +4 -4
- package/dist/{RecurringTransactions-CngsRZ3K.mjs → RecurringTransactions-ej39mgA6.mjs} +44 -45
- package/dist/{RecurringTransactionsStore-C4RVULF8.mjs → RecurringTransactionsStore-DrzS1LmF.mjs} +1 -1
- package/dist/{SpendingData-BuJ03S9d.mjs → SpendingData-D5vsfYKo.mjs} +16 -16
- package/dist/{TransactionDetails-DRlrltGq.mjs → TransactionDetails-_cXLXTd3.mjs} +8 -11
- package/dist/{TransactionStore-D8MKYDMb.mjs → TransactionStore-B-Tq_YFE.mjs} +3 -3
- package/dist/{TrendsStore-DL3Vuh71.mjs → TrendsStore-ZZ8X36lJ.mjs} +14 -14
- package/dist/{User-BthIKO4w.mjs → User-DaJAQ09j.mjs} +2 -2
- package/dist/{ViewMoreMicroCard-DTtQNV3D.mjs → ViewMoreMicroCard-664i7l19.mjs} +487 -533
- package/dist/{WidgetContainer-DJA1bxLn.mjs → WidgetContainer-DtPnPQZY.mjs} +4 -4
- package/dist/accounts/index.es.js +14 -14
- package/dist/accounts/stores/AccountStore.d.ts +0 -2
- package/dist/analytics/index.es.js +2 -2
- package/dist/budgets/index.es.js +12 -12
- package/dist/cashflow/index.es.js +11 -11
- package/dist/categories/index.es.js +2 -2
- package/dist/common/components/Select.d.ts +2 -4
- package/dist/common/components/charts/LineChart.d.ts +0 -2
- package/dist/common/components/charts/linechart/CustomMark.d.ts +0 -2
- package/dist/common/components/drawer/Drawer.d.ts +0 -3
- package/dist/common/index.es.js +33 -33
- package/dist/common/types/Finstrong.d.ts +0 -50
- package/dist/common/types/index.d.ts +1 -1
- package/dist/common/types/localization/FinstrongCopy.d.ts +1 -57
- package/dist/dashboard/index.es.js +2 -2
- package/dist/debts/index.es.js +11 -11
- package/dist/{exportTransactionsToCSV-XqdHNe2V.mjs → exportTransactionsToCSV-D8TTNrrE.mjs} +2 -2
- package/dist/finstrong/api/FinstrongApi.d.ts +0 -5
- package/dist/finstrong/components/ConnectMoreAccountsCard.d.ts +1 -2
- package/dist/finstrong/components/KeyIndicatorsBorrowTab.d.ts +2 -2
- package/dist/finstrong/components/KeyIndicatorsDrawer.d.ts +1 -1
- package/dist/finstrong/components/KeyIndicatorsSaveTab.d.ts +2 -2
- package/dist/finstrong/components/KeyIndicatorsSpendTab.d.ts +2 -2
- package/dist/finstrong/components/KeyIndicatorsTabItem.d.ts +3 -4
- package/dist/finstrong/components/KeyIndicatorsTabsWidget.d.ts +2 -2
- package/dist/finstrong/index.es.js +1010 -2892
- package/dist/finstrong/stores/FinstrongStore.d.ts +1 -9
- package/dist/finstrong/util/finstrongUtils.d.ts +1 -65
- package/dist/finstrong/utils/Finstrong.d.ts +6 -0
- package/dist/goals/index.es.js +14 -14
- package/dist/help/index.es.js +3 -3
- package/dist/{hooks-CBST3rkm.mjs → hooks-CE2TKk4a.mjs} +3 -3
- package/dist/investments/index.es.js +4 -4
- package/dist/merchants/index.es.js +1 -1
- package/dist/microinsights/components/beaticons/BeatIcon.d.ts +0 -2
- package/dist/microinsights/components/carouselheader/CarouselHeader.d.ts +1 -2
- package/dist/microinsights/components/microBeatCarousel/CarouselControls.d.ts +0 -2
- package/dist/microinsights/index.d.ts +1 -1
- package/dist/microinsights/index.es.js +1 -1
- package/dist/microinsights/interfaces.d.ts +0 -4
- package/dist/networth/index.es.js +34 -34
- package/dist/notifications/index.es.js +4 -4
- package/dist/recurringtransactions/index.es.js +13 -13
- package/dist/settings/index.es.js +8 -8
- package/dist/spending/index.es.js +373 -222
- package/dist/transactions/index.es.js +15 -15
- package/dist/trends/index.es.js +16 -16
- package/dist/{useAccountDisplayName-DH1CuQ9R.mjs → useAccountDisplayName-BXGkZN5B.mjs} +2 -2
- package/dist/{useInsightsEnabled-jdvS1ppf.mjs → useInsightsEnabled-DSnpkUq0.mjs} +1 -1
- package/package.json +1 -1
- package/dist/Drawer-BEtCk82g.mjs +0 -163
- package/dist/FinstrongStore-CC4SrBjA.mjs +0 -436
- package/dist/LineChart-CE3oLBQ0.mjs +0 -566
- package/dist/SpendingLegend-D24CEkL3.mjs +0 -170
- package/dist/accounts/components/AccountsListCompact.d.ts +0 -10
- package/dist/common/components/drawer/Footer.d.ts +0 -17
- package/dist/finstrong/components/CreditOverTimeGraph.d.ts +0 -1
- package/dist/finstrong/components/CreditScore/CreditScoreContent.d.ts +0 -4
- package/dist/finstrong/components/CreditScore/CreditScoreHeader.d.ts +0 -4
- package/dist/finstrong/components/HaveManageableDebt/DebtPaymentTabContent.d.ts +0 -3
- package/dist/finstrong/components/HaveManageableDebt/HaveManageableDebtComponent.d.ts +0 -3
- package/dist/finstrong/components/HaveManageableDebt/HaveManageableDebtProgressBar.d.ts +0 -4
- package/dist/finstrong/components/HaveManageableDebt/IncomeTabContent.d.ts +0 -3
- package/dist/finstrong/components/KeyIndicatorsTabItemDrawer.d.ts +0 -10
- package/dist/finstrong/components/MaintainingEmergencySavings/EstimatedContributionCalculator.d.ts +0 -6
- package/dist/finstrong/components/MaintainingEmergencySavings/MaintainingEmergencySavingsContent.d.ts +0 -4
- package/dist/finstrong/components/MaintainingEmergencySavings/MaintainingEmergencySavingsSticky.d.ts +0 -4
- package/dist/finstrong/components/ProgressBar.d.ts +0 -15
- package/dist/finstrong/components/SaveEnoughToLiveOn/AvailableTabContent.d.ts +0 -3
- package/dist/finstrong/components/SaveEnoughToLiveOn/SaveEnoughToLiveOnDrawerContent.d.ts +0 -3
- package/dist/finstrong/components/SaveEnoughToLiveOn/SaveEnoughToLiveOnProgressBar.d.ts +0 -4
- package/dist/finstrong/components/SaveEnoughToLiveOn/SpendingTabContent.d.ts +0 -3
- package/dist/finstrong/components/SpendLessThanYouMake/SpendLessThanYouMakeComponent.d.ts +0 -3
- package/dist/finstrong/components/SpendLessThanYouMake/SpendLessThanYouMakeProgressBar.d.ts +0 -4
- package/dist/finstrong/components/StatusChip.d.ts +0 -5
- package/dist/finstrong/components/onboarding/Onboarding.d.ts +0 -2
- package/dist/finstrong/components/onboarding/OnboardingAddMonthlyIncome.d.ts +0 -11
- package/dist/finstrong/components/onboarding/OnboardingBirthday.d.ts +0 -8
- package/dist/finstrong/components/onboarding/OnboardingCreditScore.d.ts +0 -8
- package/dist/finstrong/components/onboarding/OnboardingStepsDrawer.d.ts +0 -14
- package/dist/finstrong/components/onboarding/OnboardingStepsHeader.d.ts +0 -8
- package/dist/finstrong/components/paybillsontime/PayBillsOnTimeDrawerComponent.d.ts +0 -4
- package/dist/finstrong/components/paybillsontime/PayBillsOnTimeStickyComponent.d.ts +0 -4
- package/dist/finstrong/components/shared/Accounts.d.ts +0 -8
- package/dist/finstrong/components/shared/CustomDoubleBarPlot.d.ts +0 -25
- package/dist/finstrong/components/shared/DoubleBarChart.d.ts +0 -28
- package/dist/finstrong/components/shared/LineGraph.d.ts +0 -7
- package/dist/finstrong/components/shared/TotalCard.d.ts +0 -8
- package/dist/finstrong/components/shared/TransactionList.d.ts +0 -15
- package/dist/finstrong/components/shared/Transactions.d.ts +0 -11
- package/dist/finstrong/constants/index.d.ts +0 -8
|
@@ -7,8 +7,8 @@ import O from "@mui/material/CardHeader";
|
|
|
7
7
|
import S from "@mui/material/Stack";
|
|
8
8
|
import { AccountBalance as w, ChevronRight as L } from "@mxenabled/mx-icons";
|
|
9
9
|
import { Text as A } from "@mxenabled/mxui";
|
|
10
|
-
import { l as b } from "./ConnectDrawer
|
|
11
|
-
import { a as y } from "./hooks-
|
|
10
|
+
import { l as b } from "./ConnectDrawer-CPTXh70j.mjs";
|
|
11
|
+
import { a as y } from "./hooks-CE2TKk4a.mjs";
|
|
12
12
|
import { makeAutoObservable as D, runInAction as c } from "mobx";
|
|
13
13
|
import { F as v, A as i } from "./Fetch-87LIQbEA.mjs";
|
|
14
14
|
import { fromUnixTime as G } from "date-fns/fromUnixTime";
|
|
@@ -16,7 +16,7 @@ import { addYears as x } from "date-fns/addYears";
|
|
|
16
16
|
import { getUnixTime as K } from "date-fns/getUnixTime";
|
|
17
17
|
import { b as E } from "./Localization-2MODESHW.mjs";
|
|
18
18
|
import { a as F } from "./NumberFormatting-Buh7u8Oi.mjs";
|
|
19
|
-
import { f as B,
|
|
19
|
+
import { f as B, D as U } from "./Dialog-CWW597AF.mjs";
|
|
20
20
|
var a = /* @__PURE__ */ ((e) => (e[e.DEBT_TRACK = 1] = "DEBT_TRACK", e[e.SAVINGS_TRACK = 2] = "SAVINGS_TRACK", e[e.RETIREMENT_TRACK = 3] = "RETIREMENT_TRACK", e[e.EMERGENCY_FUND_TRACK = 4] = "EMERGENCY_FUND_TRACK", e))(a || {}), $ = /* @__PURE__ */ ((e) => (e[e.SAVE_AMOUNT = 1] = "SAVE_AMOUNT", e[e.KEEP_BALANCE_BELOW = 2] = "KEEP_BALANCE_BELOW", e[e.KEEP_BALANCE_ABOVE = 3] = "KEEP_BALANCE_ABOVE", e[e.ACTION = 4] = "ACTION", e))($ || {}), l = /* @__PURE__ */ ((e) => (e[e.AUTOMOBILE = 1] = "AUTOMOBILE", e[e.COLLEGE = 2] = "COLLEGE", e[e.HOUSE = 3] = "HOUSE", e[e.RECREATIONAL_VEHICLE = 4] = "RECREATIONAL_VEHICLE", e[e.VACATION = 5] = "VACATION", e[e.ELECTRONIC = 6] = "ELECTRONIC", e[e.OTHER = 7] = "OTHER", e[e.RETIREMENT = 8] = "RETIREMENT", e[e.EMERGENCY_FUND = 9] = "EMERGENCY_FUND", e[e.SETUP_BUDGETS = 10] = "SETUP_BUDGETS", e[e.START_MONEY_MANAGEMENT = 11] = "START_MONEY_MANAGEMENT", e[e.CREDIT_CARD = 12] = "CREDIT_CARD", e[e.LINE_OF_CREDIT = 13] = "LINE_OF_CREDIT", e[e.LOANS = 14] = "LOANS", e))(l || {});
|
|
21
21
|
const at = ({ description: e, label: t, title: o }) => {
|
|
22
22
|
const { config: r } = y(), [n, s] = u.useState(!1);
|
|
@@ -13,7 +13,7 @@ import E from "@mui/material/Stack";
|
|
|
13
13
|
import { H3 as y, P as H, Icon as X, Text as T, H2 as _t, InstitutionLogo as bt } from "@mxenabled/mxui";
|
|
14
14
|
import { ExpandMore as ot, ChevronRight as wt } from "@mxenabled/mx-icons";
|
|
15
15
|
import xt from "@mui/material/Breadcrumbs";
|
|
16
|
-
import { u as V, z as tt, d as ft, o as St, b as It, a as Tt } from "./hooks-
|
|
16
|
+
import { u as V, z as tt, d as ft, o as St, b as It, a as Tt } from "./hooks-CE2TKk4a.mjs";
|
|
17
17
|
import { useTheme as Z } from "@mui/material/styles";
|
|
18
18
|
import { b as s } from "./Localization-2MODESHW.mjs";
|
|
19
19
|
import { E as Et, a as Ct, P as At } from "./Help-DhcC-C05.mjs";
|
|
@@ -21,7 +21,7 @@ import { observer as rt } from "mobx-react-lite";
|
|
|
21
21
|
import at from "@mui/material/Alert";
|
|
22
22
|
import ct from "@mui/material/Snackbar";
|
|
23
23
|
import lt from "@mui/material/TextField";
|
|
24
|
-
import { D as U } from "./Drawer-
|
|
24
|
+
import { D as U } from "./Drawer-kEE73B87.mjs";
|
|
25
25
|
import { L as dt } from "./Loader-DUaFpDGv.mjs";
|
|
26
26
|
import Ot from "@mui/material/ListItemAvatar";
|
|
27
27
|
import Nt from "@mui/material/ListItem";
|
|
@@ -0,0 +1,541 @@
|
|
|
1
|
+
import { jsxs as i, Fragment as B, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import nt from "@mui/material/Box";
|
|
3
|
+
import { useTheme as X } from "@mui/material/styles";
|
|
4
|
+
import { ResponsiveChartContainer as at, ChartsReferenceLine as rt, AreaPlot as it, LinePlot as ot, MarkPlot as lt, BarPlot as st, ChartsXAxis as ct, ChartsYAxis as dt, ChartsAxisHighlight as ht } from "@mui/x-charts";
|
|
5
|
+
import { f as b, c as mt } from "./NumberFormatting-Buh7u8Oi.mjs";
|
|
6
|
+
import ut from "@mui/material/useMediaQuery";
|
|
7
|
+
import { observer as xt } from "mobx-react-lite";
|
|
8
|
+
import { Stack as u, Box as N, useTheme as ft } from "@mui/material";
|
|
9
|
+
import { Text as l } from "@mxenabled/mxui";
|
|
10
|
+
import { u as gt } from "./hooks-CE2TKk4a.mjs";
|
|
11
|
+
import { ChartsTooltip as yt } from "@mui/x-charts/ChartsTooltip";
|
|
12
|
+
const pt = (t) => {
|
|
13
|
+
const r = X(), o = t.showLabel, s = t.style, y = Number(t.x), m = Number(t.y), x = t.handlers?.onMarkClick, f = t.handlers?.onMouseEnter, c = t.handlers?.onMouseLeave, d = ut(r.breakpoints.up("sm")), a = t.valueFormatterString ? b(t.yData[t.dataIndex], t.valueFormatterString) : String(t.yData[t.dataIndex]), h = d ? r.typography.Small?.fontSize : r.typography.XSmall?.fontSize, k = h ? parseFloat(h.toString()) * 0.6 : 8, D = a.length * k + 8 + 8, T = 24, $ = y - D / 2, M = m - 30;
|
|
14
|
+
return /* @__PURE__ */ i(B, { children: [
|
|
15
|
+
o && /* @__PURE__ */ i(B, { children: [
|
|
16
|
+
t.labelBackgroundColor && /* @__PURE__ */ e(
|
|
17
|
+
"rect",
|
|
18
|
+
{
|
|
19
|
+
fill: t.labelBackgroundColor,
|
|
20
|
+
height: T,
|
|
21
|
+
rx: "3",
|
|
22
|
+
width: D,
|
|
23
|
+
x: $,
|
|
24
|
+
y: M
|
|
25
|
+
}
|
|
26
|
+
),
|
|
27
|
+
/* @__PURE__ */ e(
|
|
28
|
+
"text",
|
|
29
|
+
{
|
|
30
|
+
className: "MuiLineChart-markLabel",
|
|
31
|
+
dominantBaseline: "middle",
|
|
32
|
+
fill: t.labelFontColor ? t.labelFontColor : r.palette.text.primary,
|
|
33
|
+
style: {
|
|
34
|
+
fontSize: t.labelFontSize ? t.labelFontSize : h
|
|
35
|
+
},
|
|
36
|
+
textAnchor: "middle",
|
|
37
|
+
x: y,
|
|
38
|
+
y: m - 28 + T / 2,
|
|
39
|
+
children: a
|
|
40
|
+
}
|
|
41
|
+
)
|
|
42
|
+
] }),
|
|
43
|
+
/* @__PURE__ */ e(
|
|
44
|
+
"path",
|
|
45
|
+
{
|
|
46
|
+
cursor: x ? "pointer" : "unset",
|
|
47
|
+
d: "M4.514,0A4.514,4.514,0,1,1,-4.514,0A4.514,4.514,0,1,1,4.514,0",
|
|
48
|
+
height: "20px",
|
|
49
|
+
onClick: (R) => {
|
|
50
|
+
x?.(R, t.dataIndex);
|
|
51
|
+
},
|
|
52
|
+
onMouseEnter: () => {
|
|
53
|
+
f?.(t.dataIndex);
|
|
54
|
+
},
|
|
55
|
+
onMouseLeave: () => {
|
|
56
|
+
c?.();
|
|
57
|
+
},
|
|
58
|
+
style: {
|
|
59
|
+
fill: s?.fill ? s.fill : r.palette.background.paper,
|
|
60
|
+
stroke: s?.stroke ? s.stroke : r.palette.primary.main,
|
|
61
|
+
strokeWidth: 2,
|
|
62
|
+
transform: `translate(${t.x}px, ${t.y}px)`,
|
|
63
|
+
transformOrigin: `${t.x}px, ${t.y}px`,
|
|
64
|
+
filter: s?.filter ? s.filter : "none"
|
|
65
|
+
},
|
|
66
|
+
width: "20px"
|
|
67
|
+
}
|
|
68
|
+
)
|
|
69
|
+
] });
|
|
70
|
+
}, bt = (t) => /* @__PURE__ */ i(B, { children: [
|
|
71
|
+
/* @__PURE__ */ e("clipPath", { id: t.id, children: /* @__PURE__ */ e("rect", { height: t.height, width: t.width, x: "0", y: "0" }) }),
|
|
72
|
+
/* @__PURE__ */ e("g", { children: /* @__PURE__ */ e(
|
|
73
|
+
"path",
|
|
74
|
+
{
|
|
75
|
+
cursor: "unset",
|
|
76
|
+
d: t.d,
|
|
77
|
+
style: {
|
|
78
|
+
strokeWidth: 2,
|
|
79
|
+
strokeLinejoin: "round",
|
|
80
|
+
fill: "none",
|
|
81
|
+
stroke: t.lineColor ? t.lineColor : t.stroke,
|
|
82
|
+
transition: "opacity 0.2s ease-in, stroke 0.2s ease-in",
|
|
83
|
+
opacity: 1
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
) })
|
|
87
|
+
] }), kt = ({
|
|
88
|
+
label: t,
|
|
89
|
+
customLegendVariant: r
|
|
90
|
+
}) => {
|
|
91
|
+
const o = r || "Small";
|
|
92
|
+
return typeof t == "string" ? /* @__PURE__ */ e(l, { variant: o, children: t }) : typeof t == "object" && t.amount && t.label ? /* @__PURE__ */ i(B, { children: [
|
|
93
|
+
/* @__PURE__ */ e(l, { variant: o, children: t.label }),
|
|
94
|
+
/* @__PURE__ */ e(l, { bold: !0, sx: { marginLeft: 8 }, variant: o, children: b(t.amount, "0,0") })
|
|
95
|
+
] }) : null;
|
|
96
|
+
}, Ct = ({
|
|
97
|
+
average: t,
|
|
98
|
+
customLegendVariant: r,
|
|
99
|
+
labels: o = [],
|
|
100
|
+
series: s,
|
|
101
|
+
style: y,
|
|
102
|
+
title: m,
|
|
103
|
+
valueFormatterString: x
|
|
104
|
+
}) => {
|
|
105
|
+
const { common: f } = gt(), c = r || "Small";
|
|
106
|
+
return /* @__PURE__ */ i(u, { style: { flexDirection: "row", gap: 24, ...y }, children: [
|
|
107
|
+
s.map((d, a) => {
|
|
108
|
+
const h = o[a];
|
|
109
|
+
return h ? /* @__PURE__ */ i(
|
|
110
|
+
u,
|
|
111
|
+
{
|
|
112
|
+
style: { alignItems: "center", flexDirection: "row", flexWrap: "wrap" },
|
|
113
|
+
children: [
|
|
114
|
+
/* @__PURE__ */ e(
|
|
115
|
+
N,
|
|
116
|
+
{
|
|
117
|
+
sx: {
|
|
118
|
+
width: 10,
|
|
119
|
+
height: 10,
|
|
120
|
+
backgroundColor: d.color,
|
|
121
|
+
marginRight: 8
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
),
|
|
125
|
+
/* @__PURE__ */ e(kt, { customLegendVariant: r, label: h })
|
|
126
|
+
]
|
|
127
|
+
},
|
|
128
|
+
a
|
|
129
|
+
) : null;
|
|
130
|
+
}),
|
|
131
|
+
t && /* @__PURE__ */ i(u, { sx: { alignItems: "center", flexDirection: "row" }, children: [
|
|
132
|
+
/* @__PURE__ */ e(l, { bold: !0, sx: { marginRight: 8 }, variant: c, children: "– –" }),
|
|
133
|
+
/* @__PURE__ */ i(l, { variant: c, children: [
|
|
134
|
+
m || f.average,
|
|
135
|
+
" "
|
|
136
|
+
] }),
|
|
137
|
+
/* @__PURE__ */ e(l, { bold: !0, variant: c, children: x ? b(t, x) : t })
|
|
138
|
+
] })
|
|
139
|
+
] });
|
|
140
|
+
}, Mt = xt(Ct);
|
|
141
|
+
function wt({
|
|
142
|
+
customLabels: t,
|
|
143
|
+
labels: r = [],
|
|
144
|
+
valueFormatterString: o = "0,0"
|
|
145
|
+
}) {
|
|
146
|
+
const s = ft();
|
|
147
|
+
return /* @__PURE__ */ e(
|
|
148
|
+
yt,
|
|
149
|
+
{
|
|
150
|
+
showCrosshair: !0,
|
|
151
|
+
slots: {
|
|
152
|
+
axisContent: (y) => {
|
|
153
|
+
const { axisValue: m, dataIndex: x, series: f } = y, c = x ?? 0;
|
|
154
|
+
if (t) {
|
|
155
|
+
const d = t[c]?.[0]?.header || String(m);
|
|
156
|
+
return /* @__PURE__ */ i(
|
|
157
|
+
u,
|
|
158
|
+
{
|
|
159
|
+
sx: {
|
|
160
|
+
backgroundColor: s.palette.background.paper,
|
|
161
|
+
boxShadow: "0 2px 8px 0 rgba(0, 0, 0, 0.12)",
|
|
162
|
+
flexDirection: "column",
|
|
163
|
+
alignItems: "flex-start",
|
|
164
|
+
borderRadius: "4px",
|
|
165
|
+
width: 250,
|
|
166
|
+
gap: 8,
|
|
167
|
+
px: 16,
|
|
168
|
+
py: 12
|
|
169
|
+
},
|
|
170
|
+
children: [
|
|
171
|
+
/* @__PURE__ */ i(
|
|
172
|
+
u,
|
|
173
|
+
{
|
|
174
|
+
sx: {
|
|
175
|
+
flexDirection: "row",
|
|
176
|
+
justifyContent: "space-between",
|
|
177
|
+
alignItems: "center",
|
|
178
|
+
alignSelf: "stretch",
|
|
179
|
+
gap: 8,
|
|
180
|
+
marginTop: 4
|
|
181
|
+
},
|
|
182
|
+
children: [
|
|
183
|
+
/* @__PURE__ */ e(l, { variant: "H3", children: d }),
|
|
184
|
+
/* @__PURE__ */ e(l, { bold: !0, variant: "H3", children: b(f[0]?.data[c], o) })
|
|
185
|
+
]
|
|
186
|
+
}
|
|
187
|
+
),
|
|
188
|
+
t[c]?.some((a) => (typeof a == "string" ? 0 : a.amount) !== 0) ? t[c]?.map((a) => {
|
|
189
|
+
const h = typeof a == "string" ? a : a.label, k = typeof a == "string" ? 0 : a.amount;
|
|
190
|
+
return k === 0 ? null : /* @__PURE__ */ i(
|
|
191
|
+
u,
|
|
192
|
+
{
|
|
193
|
+
sx: {
|
|
194
|
+
flexDirection: "row",
|
|
195
|
+
justifyContent: "space-between",
|
|
196
|
+
alignItems: "center",
|
|
197
|
+
alignSelf: "stretch",
|
|
198
|
+
gap: 8,
|
|
199
|
+
marginTop: 4
|
|
200
|
+
},
|
|
201
|
+
children: [
|
|
202
|
+
/* @__PURE__ */ i(
|
|
203
|
+
u,
|
|
204
|
+
{
|
|
205
|
+
sx: {
|
|
206
|
+
flexDirection: "row",
|
|
207
|
+
alignItems: "center",
|
|
208
|
+
gap: 8,
|
|
209
|
+
flex: 1,
|
|
210
|
+
minWidth: 0
|
|
211
|
+
},
|
|
212
|
+
children: [
|
|
213
|
+
/* @__PURE__ */ e(
|
|
214
|
+
N,
|
|
215
|
+
{
|
|
216
|
+
sx: {
|
|
217
|
+
width: "12px",
|
|
218
|
+
height: "12px",
|
|
219
|
+
backgroundColor: f[0]?.color,
|
|
220
|
+
borderRadius: "4px"
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
),
|
|
224
|
+
/* @__PURE__ */ e(l, { variant: "Body", children: h })
|
|
225
|
+
]
|
|
226
|
+
}
|
|
227
|
+
),
|
|
228
|
+
/* @__PURE__ */ e(l, { bold: !0, variant: "Body", children: b(Math.abs(k), o) })
|
|
229
|
+
]
|
|
230
|
+
},
|
|
231
|
+
h
|
|
232
|
+
);
|
|
233
|
+
}) : /* @__PURE__ */ e(l, { variant: "Body", children: "No data" })
|
|
234
|
+
]
|
|
235
|
+
}
|
|
236
|
+
);
|
|
237
|
+
}
|
|
238
|
+
return /* @__PURE__ */ i(
|
|
239
|
+
u,
|
|
240
|
+
{
|
|
241
|
+
sx: {
|
|
242
|
+
backgroundColor: s.palette.background.paper,
|
|
243
|
+
boxShadow: "0 2px 8px 0 rgba(0, 0, 0, 0.12)",
|
|
244
|
+
flexDirection: "column",
|
|
245
|
+
alignItems: "flex-start",
|
|
246
|
+
borderRadius: "4px",
|
|
247
|
+
width: 225,
|
|
248
|
+
gap: 8,
|
|
249
|
+
px: 16,
|
|
250
|
+
py: 12
|
|
251
|
+
},
|
|
252
|
+
children: [
|
|
253
|
+
/* @__PURE__ */ e(l, { variant: "H3", children: String(m) }),
|
|
254
|
+
f.map((d, a) => /* @__PURE__ */ i(
|
|
255
|
+
u,
|
|
256
|
+
{
|
|
257
|
+
sx: {
|
|
258
|
+
flexDirection: "row",
|
|
259
|
+
justifyContent: "space-between",
|
|
260
|
+
alignItems: "center",
|
|
261
|
+
alignSelf: "stretch",
|
|
262
|
+
gap: 8,
|
|
263
|
+
marginTop: 4
|
|
264
|
+
},
|
|
265
|
+
children: [
|
|
266
|
+
/* @__PURE__ */ i(u, { sx: { flexDirection: "row", alignItems: "center", gap: 8 }, children: [
|
|
267
|
+
/* @__PURE__ */ e(
|
|
268
|
+
N,
|
|
269
|
+
{
|
|
270
|
+
sx: {
|
|
271
|
+
width: "12px",
|
|
272
|
+
height: "12px",
|
|
273
|
+
backgroundColor: d.color,
|
|
274
|
+
borderRadius: "4px"
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
),
|
|
278
|
+
/* @__PURE__ */ e(l, { variant: "Body", children: typeof r[a] == "string" ? r[a] : r[a]?.label })
|
|
279
|
+
] }),
|
|
280
|
+
/* @__PURE__ */ e(l, { bold: !0, variant: "Body", children: b(d.data[c], o) })
|
|
281
|
+
]
|
|
282
|
+
},
|
|
283
|
+
d.id
|
|
284
|
+
))
|
|
285
|
+
]
|
|
286
|
+
}
|
|
287
|
+
);
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
trigger: "axis"
|
|
291
|
+
}
|
|
292
|
+
);
|
|
293
|
+
}
|
|
294
|
+
const zt = ({
|
|
295
|
+
axisColor: t,
|
|
296
|
+
baseline: r = "max",
|
|
297
|
+
chartFor: o,
|
|
298
|
+
chartXaxisSx: s,
|
|
299
|
+
chartYaxisSx: y,
|
|
300
|
+
colors: m,
|
|
301
|
+
curveType: x = "linear",
|
|
302
|
+
customLegendVariant: f,
|
|
303
|
+
customTooltipLabels: c,
|
|
304
|
+
datasets: d,
|
|
305
|
+
height: a,
|
|
306
|
+
isGraphClippingXAxis: h = !1,
|
|
307
|
+
labels: k,
|
|
308
|
+
labelBackgroundColor: I,
|
|
309
|
+
labelFontColor: P,
|
|
310
|
+
labelFontSize: E,
|
|
311
|
+
margin: D,
|
|
312
|
+
markHandlers: T,
|
|
313
|
+
markStyles: $,
|
|
314
|
+
onItemClick: M,
|
|
315
|
+
showArea: R = !1,
|
|
316
|
+
showAverage: H = !1,
|
|
317
|
+
showAxisHighlight: Y = !1,
|
|
318
|
+
showBars: j = !1,
|
|
319
|
+
showLegend: q = !1,
|
|
320
|
+
showMarkLabel: G = !1,
|
|
321
|
+
showTooltip: O = !1,
|
|
322
|
+
showXAxis: Q = !1,
|
|
323
|
+
showXAxisTicks: U = !1,
|
|
324
|
+
showYAxis: V = !1,
|
|
325
|
+
showYAxisTicks: J = !1,
|
|
326
|
+
title: K,
|
|
327
|
+
useCustomMark: Z = !1,
|
|
328
|
+
valueFormatterString: C,
|
|
329
|
+
width: _
|
|
330
|
+
}) => {
|
|
331
|
+
const g = X(), tt = d.flat().map((n) => n.x), w = d.flat().map((n) => n.y), F = Math.round(w.reduce((n, v) => v + n, 0) / w.length), L = Math.floor(Math.min(...w) / 100) * 100, S = Math.ceil(Math.max(...w) / 100) * 100, z = d.map((n, v) => ({
|
|
332
|
+
type: j ? "bar" : "line",
|
|
333
|
+
curve: x,
|
|
334
|
+
color: j ? g.palette.chart?.chart6 : m[v] ?? g.palette.primary.main,
|
|
335
|
+
data: n.map((p) => p.y),
|
|
336
|
+
area: R,
|
|
337
|
+
baseline: r,
|
|
338
|
+
showMark: !0,
|
|
339
|
+
valueFormatter: (p) => C ? b(p || 0, C) : String(p)
|
|
340
|
+
})), et = {
|
|
341
|
+
...{
|
|
342
|
+
top: 60,
|
|
343
|
+
right: 35,
|
|
344
|
+
bottom: 50,
|
|
345
|
+
left: 50
|
|
346
|
+
},
|
|
347
|
+
...D
|
|
348
|
+
};
|
|
349
|
+
let A = L, W = S;
|
|
350
|
+
if (o === "networthChart") {
|
|
351
|
+
const n = S - L, v = n < S * 0.05 ? 0.25 : 0.2, p = Math.max(n * v, S * 0.015);
|
|
352
|
+
A = L - p < 0 ? L : L - p, W = S + p;
|
|
353
|
+
}
|
|
354
|
+
return /* @__PURE__ */ i(
|
|
355
|
+
nt,
|
|
356
|
+
{
|
|
357
|
+
sx: {
|
|
358
|
+
position: "relative",
|
|
359
|
+
touchAction: "pan-y",
|
|
360
|
+
// Allow vertical scrolling
|
|
361
|
+
"& svg": {
|
|
362
|
+
touchAction: "pan-y",
|
|
363
|
+
// Allow vertical scrolling on SVG
|
|
364
|
+
userSelect: "none"
|
|
365
|
+
// Prevent text selection
|
|
366
|
+
},
|
|
367
|
+
"& .recharts-wrapper": {
|
|
368
|
+
touchAction: "pan-y"
|
|
369
|
+
// For Recharts library specifically
|
|
370
|
+
}
|
|
371
|
+
},
|
|
372
|
+
children: [
|
|
373
|
+
/* @__PURE__ */ i(
|
|
374
|
+
at,
|
|
375
|
+
{
|
|
376
|
+
height: a,
|
|
377
|
+
margin: et,
|
|
378
|
+
series: z,
|
|
379
|
+
sx: {
|
|
380
|
+
p: 4,
|
|
381
|
+
"& .MuiBarLabel-root": {
|
|
382
|
+
fontSize: 10,
|
|
383
|
+
fontWeight: 600
|
|
384
|
+
},
|
|
385
|
+
"& .MuiAreaElement-root": {
|
|
386
|
+
opacity: 0.15
|
|
387
|
+
},
|
|
388
|
+
"& .MuiChartsAxis-tickLabel > tspan": {
|
|
389
|
+
fontFamily: g.typography.Small.fontFamily
|
|
390
|
+
},
|
|
391
|
+
"& .MuiLineChart-markLabel": {
|
|
392
|
+
fontFamily: g.typography.Small.fontFamily
|
|
393
|
+
}
|
|
394
|
+
},
|
|
395
|
+
width: _,
|
|
396
|
+
xAxis: [{ data: tt, scaleType: j ? "band" : "point" }],
|
|
397
|
+
yAxis: [
|
|
398
|
+
{
|
|
399
|
+
tickInterval: o === "networthChart" ? mt(A, W, 5) : void 0,
|
|
400
|
+
min: h ? -22 : A,
|
|
401
|
+
max: W || 100,
|
|
402
|
+
colorMap: R && z.length < 2 ? {
|
|
403
|
+
type: "continuous",
|
|
404
|
+
min: A,
|
|
405
|
+
max: W,
|
|
406
|
+
color: [
|
|
407
|
+
g.palette.background.paper,
|
|
408
|
+
m[0] ?? g.palette.primary.main
|
|
409
|
+
]
|
|
410
|
+
} : void 0,
|
|
411
|
+
valueFormatter: (n) => C ? b(n, C) : String(n)
|
|
412
|
+
}
|
|
413
|
+
],
|
|
414
|
+
children: [
|
|
415
|
+
H && /* @__PURE__ */ e(
|
|
416
|
+
rt,
|
|
417
|
+
{
|
|
418
|
+
lineStyle: {
|
|
419
|
+
stroke: I ? g.palette.neutral.main : g.palette.neutral.dark,
|
|
420
|
+
strokeDasharray: "10, 8",
|
|
421
|
+
strokeWidth: 2
|
|
422
|
+
},
|
|
423
|
+
y: F
|
|
424
|
+
}
|
|
425
|
+
),
|
|
426
|
+
/* @__PURE__ */ e(it, { onItemClick: M }),
|
|
427
|
+
/* @__PURE__ */ e(
|
|
428
|
+
ot,
|
|
429
|
+
{
|
|
430
|
+
onItemClick: M,
|
|
431
|
+
slots: {
|
|
432
|
+
line: (n) => /* @__PURE__ */ e(
|
|
433
|
+
bt,
|
|
434
|
+
{
|
|
435
|
+
...n,
|
|
436
|
+
lineColor: n.ownerState.color ?? g.palette.primary.main
|
|
437
|
+
}
|
|
438
|
+
)
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
),
|
|
442
|
+
/* @__PURE__ */ e(
|
|
443
|
+
lt,
|
|
444
|
+
{
|
|
445
|
+
onItemClick: M,
|
|
446
|
+
slots: Z ? {
|
|
447
|
+
mark: (n) => /* @__PURE__ */ e(
|
|
448
|
+
pt,
|
|
449
|
+
{
|
|
450
|
+
handlers: T,
|
|
451
|
+
labelBackgroundColor: I,
|
|
452
|
+
labelFontColor: P,
|
|
453
|
+
labelFontSize: E,
|
|
454
|
+
showLabel: G,
|
|
455
|
+
style: $?.(n.dataIndex) ?? {},
|
|
456
|
+
valueFormatterString: C,
|
|
457
|
+
yData: w,
|
|
458
|
+
...n
|
|
459
|
+
}
|
|
460
|
+
)
|
|
461
|
+
} : void 0
|
|
462
|
+
}
|
|
463
|
+
),
|
|
464
|
+
/* @__PURE__ */ e(
|
|
465
|
+
st,
|
|
466
|
+
{
|
|
467
|
+
barLabel: (n) => Number(n.value) > 0 ? `$${n.value}` : null,
|
|
468
|
+
borderRadius: 10
|
|
469
|
+
}
|
|
470
|
+
),
|
|
471
|
+
/* @__PURE__ */ e(
|
|
472
|
+
ct,
|
|
473
|
+
{
|
|
474
|
+
disableLine: !Q,
|
|
475
|
+
disableTicks: !U,
|
|
476
|
+
slotProps: t ? {
|
|
477
|
+
axisLine: {
|
|
478
|
+
style: {
|
|
479
|
+
stroke: t
|
|
480
|
+
}
|
|
481
|
+
},
|
|
482
|
+
axisTick: {
|
|
483
|
+
style: {
|
|
484
|
+
stroke: t
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
} : {},
|
|
488
|
+
sx: { ...s }
|
|
489
|
+
}
|
|
490
|
+
),
|
|
491
|
+
/* @__PURE__ */ e(
|
|
492
|
+
dt,
|
|
493
|
+
{
|
|
494
|
+
disableLine: !V,
|
|
495
|
+
disableTicks: !J,
|
|
496
|
+
sx: { ...y },
|
|
497
|
+
slotProps: t ? {
|
|
498
|
+
axisLine: {
|
|
499
|
+
style: {
|
|
500
|
+
stroke: t
|
|
501
|
+
}
|
|
502
|
+
},
|
|
503
|
+
axisTick: {
|
|
504
|
+
style: {
|
|
505
|
+
stroke: t
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
} : {}
|
|
509
|
+
}
|
|
510
|
+
),
|
|
511
|
+
Y && /* @__PURE__ */ e(ht, { x: "line" }),
|
|
512
|
+
O && /* @__PURE__ */ e(
|
|
513
|
+
wt,
|
|
514
|
+
{
|
|
515
|
+
customLabels: c,
|
|
516
|
+
labels: k,
|
|
517
|
+
valueFormatterString: C
|
|
518
|
+
}
|
|
519
|
+
)
|
|
520
|
+
]
|
|
521
|
+
}
|
|
522
|
+
),
|
|
523
|
+
q && /* @__PURE__ */ e(
|
|
524
|
+
Mt,
|
|
525
|
+
{
|
|
526
|
+
average: H ? F : void 0,
|
|
527
|
+
customLegendVariant: f,
|
|
528
|
+
labels: k,
|
|
529
|
+
series: z,
|
|
530
|
+
style: { position: "absolute", top: 16, left: 16 },
|
|
531
|
+
title: K,
|
|
532
|
+
valueFormatterString: C
|
|
533
|
+
}
|
|
534
|
+
)
|
|
535
|
+
]
|
|
536
|
+
}
|
|
537
|
+
);
|
|
538
|
+
};
|
|
539
|
+
export {
|
|
540
|
+
zt as L
|
|
541
|
+
};
|
|
@@ -6,10 +6,10 @@ import C from "@mui/material/ListItemButton";
|
|
|
6
6
|
import I from "@mui/material/ListItemText";
|
|
7
7
|
import L from "@mui/material/Stack";
|
|
8
8
|
import { ChevronRight as g } from "@mxenabled/mx-icons";
|
|
9
|
-
import { Text as
|
|
10
|
-
import {
|
|
11
|
-
import { u as P } from "./hooks-
|
|
12
|
-
const
|
|
9
|
+
import { Text as m } from "@mxenabled/mxui";
|
|
10
|
+
import { a as j } from "./Dialog-CWW597AF.mjs";
|
|
11
|
+
import { u as P } from "./hooks-CE2TKk4a.mjs";
|
|
12
|
+
const D = v(
|
|
13
13
|
({
|
|
14
14
|
children: n,
|
|
15
15
|
isDisabled: i = !1,
|
|
@@ -21,7 +21,7 @@ const q = v(
|
|
|
21
21
|
secondaryText: y,
|
|
22
22
|
zeroStateText: o
|
|
23
23
|
}) => {
|
|
24
|
-
const { common:
|
|
24
|
+
const { common: a } = P(), [d, t] = b.useState(!1), h = () => {
|
|
25
25
|
t(!1), c?.();
|
|
26
26
|
}, u = () => {
|
|
27
27
|
t(!1), l();
|
|
@@ -32,9 +32,9 @@ const q = v(
|
|
|
32
32
|
I,
|
|
33
33
|
{
|
|
34
34
|
primary: /* @__PURE__ */ e(L, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
35
|
-
/* @__PURE__ */ r(
|
|
35
|
+
/* @__PURE__ */ r(m, { variant: "body1", children: f }),
|
|
36
36
|
/* @__PURE__ */ r(
|
|
37
|
-
|
|
37
|
+
m,
|
|
38
38
|
{
|
|
39
39
|
bold: !0,
|
|
40
40
|
color: o ? "primary.main" : "text.primary",
|
|
@@ -52,12 +52,12 @@ const q = v(
|
|
|
52
52
|
/* @__PURE__ */ r(
|
|
53
53
|
j,
|
|
54
54
|
{
|
|
55
|
-
copy: { title: p, close_aria:
|
|
55
|
+
copy: { title: p, close_aria: a.close_aria },
|
|
56
56
|
disablePrimaryButton: s,
|
|
57
57
|
isOpen: d,
|
|
58
58
|
onClose: h,
|
|
59
59
|
onPrimaryAction: u,
|
|
60
|
-
primaryText:
|
|
60
|
+
primaryText: a.save_button,
|
|
61
61
|
children: n
|
|
62
62
|
}
|
|
63
63
|
)
|
|
@@ -65,5 +65,5 @@ const q = v(
|
|
|
65
65
|
}
|
|
66
66
|
);
|
|
67
67
|
export {
|
|
68
|
-
|
|
68
|
+
D as L
|
|
69
69
|
};
|