@mx-cartographer/experiences 8.0.0-alpha.bb3 → 8.0.0-alpha.bb4
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 +128 -1
- package/dist/{Account-Bxw0_4FU.mjs → Account-B4CDD-zq.mjs} +1 -1
- package/dist/AccountDetailsContent-adZTkM52.mjs +683 -0
- package/dist/AccountDetailsHeader-DRjFuyJT.mjs +87 -0
- package/dist/{AccountFields-C9FlatNb.mjs → AccountFields-Cl4KHoSj.mjs} +14 -12
- package/dist/AccountListItem-wgmlex-_.mjs +90 -0
- package/dist/{AccountStore-BgNOyMdp.mjs → AccountStore-HbVblv86.mjs} +19 -8
- package/dist/{Accounts-BRf_YeTf.mjs → Accounts-CRUehOiy.mjs} +1 -1
- package/dist/{BeatApi-DhJpgCLz.mjs → BeatApi-De2IaqH2.mjs} +1 -1
- package/dist/{BeatStore-IBnXd4YK.mjs → BeatStore-D_NYuBSz.mjs} +1 -1
- package/dist/{BudgetUtil-B2ZXyw-g.mjs → BudgetUtil-Jv8h9H9l.mjs} +33 -33
- package/dist/{CashflowStore-D9Dpuz7X.mjs → CashflowStore-CA190BPF.mjs} +18 -25
- package/dist/{Category-CevNQ03n.mjs → Category-Ccoew_sA.mjs} +2 -2
- package/dist/{CategorySelectorDrawer-DUe4lH5-.mjs → CategorySelectorDrawer-Dl006GKy.mjs} +43 -41
- package/dist/{CategoryStore-yHI0hWmK.mjs → CategoryStore-MUwRWH9e.mjs} +13 -11
- package/dist/{CategoryUtil-pZRIYOgN.mjs → CategoryUtil-DfVKKkRf.mjs} +4 -4
- package/dist/{ConnectDrawer-BQNs-hjk.mjs → ConnectDrawer-DVp54lUH.mjs} +49 -48
- package/dist/{ConnectionsDrawer-ByGQE7D5.mjs → ConnectionsDrawer-Dsc04-4Z.mjs} +3 -3
- package/dist/CurrencyInput-D1cjbdCI.mjs +85 -0
- package/dist/{CurrencyText-kyC1aseI.mjs → CurrencyText-Dr0EZ7bp.mjs} +1 -1
- package/dist/{DateUtil-BcuH7ErC.mjs → DateUtil-CDPZw_-m.mjs} +3 -3
- package/dist/{DebtsStore-C9bblOgW.mjs → DebtsStore-pL63fmdT.mjs} +3 -3
- package/dist/{Dialog-CWW597AF.mjs → Dialog-CDV0kKxj.mjs} +24 -24
- package/dist/{Donut-oaQFlbit.mjs → Donut-Dmy3JTWd.mjs} +12 -12
- package/dist/Drawer-BF40nbsH.mjs +163 -0
- package/dist/{EmptyState-DA_lfRBv.mjs → EmptyState-DoxNUae-.mjs} +24 -22
- package/dist/{ExportCsvAction-sX8Rg4Ov.mjs → ExportCsvAction-QhQK4_FU.mjs} +4 -4
- package/dist/{Fetch-87LIQbEA.mjs → Fetch-DecPFeGU.mjs} +24 -22
- package/dist/FinstrongStore-BGf36b0z.mjs +451 -0
- package/dist/{GoalStore-D-aB35SY.mjs → GoalStore-C1-w3Y1E.mjs} +7 -7
- package/dist/HeaderCell-P8w6CmfO.mjs +6 -0
- package/dist/{Help-B6dIcujh.mjs → Help-DBfsTkAi.mjs} +125 -146
- package/dist/{Help-DhcC-C05.mjs → Help-c-zHlDbv.mjs} +8 -8
- package/dist/{IconBacking-B9oC6uL2.mjs → IconBacking-DgT8DCeh.mjs} +11 -11
- package/dist/LineChart-C1PxNf7P.mjs +581 -0
- package/dist/{ListItemAction-DHa3KJPs.mjs → ListItemAction-BNCWQAN_.mjs} +10 -10
- package/dist/Loader-Ckqi9Rx6.mjs +21 -0
- package/dist/{ManageIncome-1s_q5W4X.mjs → ManageIncome-8EsStyIQ.mjs} +195 -192
- package/dist/{MerchantStore-DrFvsUyy.mjs → MerchantStore-WvZ4gnQe.mjs} +1 -1
- package/dist/MicroWidgetContainer-BGpNl5ZS.mjs +45 -0
- package/dist/MiniWidgetContainer-CKzf_Ira.mjs +56 -0
- package/dist/{NetWorthStore-DCsTZpuS.mjs → NetWorthStore-Bti6u-d9.mjs} +4 -4
- package/dist/{NotificationSettings-DqrkNMod.mjs → NotificationSettings-B74rQVYC.mjs} +276 -273
- package/dist/{NotificationStore-BxP_P2dA.mjs → NotificationStore-Ck2KdNmT.mjs} +10 -10
- package/dist/{NumberFormatting-Buh7u8Oi.mjs → NumberFormatting-DjTD0t3W.mjs} +9 -9
- package/dist/{OriginalBalanceAction-CWuVvRq9.mjs → OriginalBalanceAction-2Y_3U_mg.mjs} +10 -10
- package/dist/{RecurringSettings-A_rAGCTP.mjs → RecurringSettings-DAncu--R.mjs} +17 -17
- package/dist/{RecurringTransactions-DK8dWldr.mjs → RecurringTransactions-CxcSL1dY.mjs} +106 -105
- package/dist/{RecurringTransactionsStore-C4YOD7_D.mjs → RecurringTransactionsStore-CNFxyGB6.mjs} +80 -73
- package/dist/{ResponsiveButton-DZFp78fJ.mjs → ResponsiveButton-Cn6-R7ue.mjs} +10 -10
- package/dist/SearchBox-B7km148n.mjs +39 -0
- package/dist/{SettingsStore-BcgS_Ohv.mjs → SettingsStore-BASMQSIp.mjs} +3 -3
- package/dist/{SingleSegmentDonut-BgbLgwHi.mjs → SingleSegmentDonut-7Uy6VEld.mjs} +6 -6
- package/dist/SkeletonLoader-BaNboJjD.mjs +38 -0
- package/dist/{SpendingData-D5vsfYKo.mjs → SpendingData-DPQ96k3x.mjs} +19 -19
- package/dist/SpendingLegend-6FqtMcBV.mjs +193 -0
- package/dist/{StatusBar-BK_uYHAB.mjs → StatusBar-CPfSXe80.mjs} +6 -6
- package/dist/{TabContentContainer-j01JYR_7.mjs → TabContentContainer-CnMXkVqr.mjs} +8 -8
- package/dist/{ToggleListItem-r0Kx56wF.mjs → ToggleListItem-ciFTiqRS.mjs} +19 -14
- package/dist/TransactionApi-CjBoLleL.mjs +86 -0
- package/dist/TransactionDetails-Bn0qY5Hw.mjs +1336 -0
- package/dist/{TransactionStore-ai3uII_r.mjs → TransactionStore-DbwAutwC.mjs} +146 -165
- package/dist/TrendsStore-_mRaFUdf.mjs +182 -0
- package/dist/{User-BQUxBeZV.mjs → User-BklmOUSd.mjs} +107 -107
- package/dist/{ViewMoreMicroCard-SCn2wt4i.mjs → ViewMoreMicroCard-DAkyNRlD.mjs} +706 -729
- package/dist/{WidgetContainer-BHWANqT4.mjs → WidgetContainer-CDh9fjpR.mjs} +36 -36
- package/dist/accounts/components/AccountsListCompact.d.ts +10 -0
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsChart.d.ts +4 -1
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsHeader.d.ts +2 -1
- package/dist/accounts/index.es.js +228 -221
- package/dist/accounts/stores/AccountStore.d.ts +2 -0
- package/dist/analytics/index.es.js +27 -27
- package/dist/budgets/index.es.js +459 -462
- package/dist/cashflow/index.es.js +419 -428
- package/dist/categories/index.es.js +2 -2
- package/dist/categories/stores/CategoryStore.d.ts +1 -1
- package/dist/common/components/ErrorBoundary.d.ts +1 -1
- package/dist/common/components/Loader.d.ts +1 -2
- package/dist/common/components/Select.d.ts +4 -2
- package/dist/common/components/accountfilter/AccountFilterOptions.d.ts +1 -1
- package/dist/common/components/charts/LineChart.d.ts +12 -2
- package/dist/common/components/charts/index.d.ts +0 -3
- package/dist/common/components/charts/linechart/CustomLegend.d.ts +3 -1
- package/dist/common/components/charts/linechart/CustomMark.d.ts +5 -1
- package/dist/common/components/drawer/Drawer.d.ts +3 -0
- package/dist/common/components/drawer/Footer.d.ts +17 -0
- package/dist/common/components/index.d.ts +0 -1
- package/dist/common/hooks/index.d.ts +0 -1
- package/dist/common/hooks/useAriaLive.d.ts +1 -1
- package/dist/common/index.es.js +402 -668
- package/dist/common/stores/GlobalStore.d.ts +7 -1
- package/dist/common/types/Finstrong.d.ts +54 -0
- package/dist/common/types/Global.d.ts +1 -0
- package/dist/common/types/Widgets.d.ts +1 -0
- package/dist/common/types/index.d.ts +1 -1
- package/dist/common/types/localization/FinstrongCopy.d.ts +105 -2
- package/dist/common/types/localization/GoalsCopy.d.ts +1 -0
- package/dist/common/utils/Theme.d.ts +1 -3
- package/dist/dashboard/index.es.js +21 -21
- package/dist/debts/components/DebtsChart.d.ts +1 -2
- package/dist/debts/index.es.js +673 -665
- package/dist/exportTransactionsToCSV-BgV_wTLT.mjs +48 -0
- package/dist/finstrong/FinstrongWidget.d.ts +1 -1
- package/dist/finstrong/api/FinstrongApi.d.ts +5 -0
- package/dist/finstrong/components/ConnectMoreAccountsCard.d.ts +3 -1
- package/dist/finstrong/components/CreditScore/CreditScoreContent.d.ts +4 -0
- package/dist/finstrong/components/CreditScore/CreditScoreHeader.d.ts +4 -0
- package/dist/finstrong/components/FinancialStrengthGraph.d.ts +7 -1
- package/dist/finstrong/components/HaveManageableDebt/DebtPaymentTabContent.d.ts +3 -0
- package/dist/finstrong/components/HaveManageableDebt/HaveManageableDebtComponent.d.ts +3 -0
- package/dist/finstrong/components/HaveManageableDebt/HaveManageableDebtProgressBar.d.ts +4 -0
- package/dist/finstrong/components/HaveManageableDebt/IncomeTabContent.d.ts +3 -0
- package/dist/finstrong/components/KeyIndicatorsBorrowTab.d.ts +2 -2
- package/dist/finstrong/components/KeyIndicatorsDrawer.d.ts +4 -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 +4 -3
- package/dist/finstrong/components/KeyIndicatorsTabItemDrawer.d.ts +10 -0
- package/dist/finstrong/components/KeyIndicatorsTabsWidget.d.ts +2 -2
- package/dist/finstrong/components/MaintainingEmergencySavings/EstimatedContributionCalculator.d.ts +6 -0
- package/dist/finstrong/components/MaintainingEmergencySavings/MaintainingEmergencySavingsContent.d.ts +4 -0
- package/dist/finstrong/components/MaintainingEmergencySavings/MaintainingEmergencySavingsSticky.d.ts +4 -0
- package/dist/finstrong/components/ProgressBar.d.ts +15 -0
- package/dist/finstrong/components/SaveEnoughToLiveOn/AvailableTabContent.d.ts +3 -0
- package/dist/finstrong/components/SaveEnoughToLiveOn/SaveEnoughToLiveOnDrawerContent.d.ts +3 -0
- package/dist/finstrong/components/SaveEnoughToLiveOn/SaveEnoughToLiveOnProgressBar.d.ts +4 -0
- package/dist/finstrong/components/SaveEnoughToLiveOn/SpendingTabContent.d.ts +3 -0
- package/dist/finstrong/components/SpendLessThanYouMake/SpendLessThanYouMakeComponent.d.ts +3 -0
- package/dist/finstrong/components/SpendLessThanYouMake/SpendLessThanYouMakeProgressBar.d.ts +4 -0
- package/dist/finstrong/components/StatusChip.d.ts +5 -0
- package/dist/finstrong/components/onboarding/Onboarding.d.ts +2 -0
- package/dist/finstrong/components/onboarding/OnboardingAddMonthlyIncome.d.ts +17 -0
- package/dist/finstrong/components/onboarding/OnboardingBirthday.d.ts +8 -0
- package/dist/finstrong/components/onboarding/OnboardingCreditScore.d.ts +8 -0
- package/dist/finstrong/components/onboarding/OnboardingStepsDrawer.d.ts +14 -0
- package/dist/finstrong/components/onboarding/OnboardingStepsHeader.d.ts +8 -0
- package/dist/finstrong/components/paybillsontime/PayBillsOnTimeDrawerComponent.d.ts +4 -0
- package/dist/finstrong/components/paybillsontime/PayBillsOnTimeStickyComponent.d.ts +4 -0
- package/dist/finstrong/components/shared/Accounts.d.ts +8 -0
- package/dist/finstrong/components/shared/CustomDoubleBarPlot.d.ts +25 -0
- package/dist/finstrong/components/shared/DialScoreCard.d.ts +7 -1
- package/dist/finstrong/components/shared/DoubleBarChart.d.ts +28 -0
- package/dist/finstrong/components/shared/LineGraph.d.ts +7 -0
- package/dist/finstrong/components/shared/TotalCard.d.ts +8 -0
- package/dist/finstrong/components/shared/Transactions.d.ts +11 -0
- package/dist/finstrong/constants/index.d.ts +9 -0
- package/dist/finstrong/index.es.js +3175 -1067
- package/dist/finstrong/stores/FinstrongStore.d.ts +25 -2
- package/dist/finstrong/util/finstrongUtils.d.ts +58 -1
- package/dist/goals/index.es.js +580 -570
- package/dist/help/components/content/BottomImageContent.d.ts +1 -1
- package/dist/help/components/content/LeftImageContent.d.ts +1 -1
- package/dist/help/components/content/RightImageContent.d.ts +1 -1
- package/dist/help/components/content/TopImageContent.d.ts +1 -1
- package/dist/help/index.es.js +6 -6
- package/dist/{hooks-D6XlXHf4.mjs → hooks-C41HAxM5.mjs} +3 -3
- package/dist/insights/index.es.js +1 -1
- package/dist/investments/index.es.js +537 -536
- package/dist/merchants/index.es.js +9 -9
- package/dist/microinsights/beaticons/BeatIcon.d.ts +2 -9
- package/dist/microinsights/beaticons/BeatMerchantLogo.d.ts +3 -2
- package/dist/microinsights/beaticons/MonthlySpendComparisonIcon.d.ts +2 -1
- package/dist/microinsights/cards/{MicroInsightCard.d.ts → BaseCard.d.ts} +1 -8
- package/dist/microinsights/cards/{BeatCard.d.ts → InsightCard.d.ts} +2 -2
- package/dist/microinsights/cards/NoRelevantInsightsCard.d.ts +2 -5
- package/dist/microinsights/cards/ZeroStateCard.d.ts +2 -5
- package/dist/microinsights/carousel/BeatList.d.ts +10 -0
- package/dist/microinsights/carousel/CarouselControls.d.ts +1 -3
- package/dist/microinsights/carousel/CarouselHeader.d.ts +1 -2
- package/dist/microinsights/constants/App.d.ts +0 -1
- package/dist/microinsights/index.d.ts +3 -3
- package/dist/microinsights/index.es.js +7 -7
- package/dist/microinsights/interfaces.d.ts +0 -6
- package/dist/networth/components/NetWorthChange.d.ts +3 -1
- package/dist/networth/index.es.js +262 -254
- package/dist/notifications/index.es.js +90 -91
- package/dist/recurringtransactions/components/MicroWidgetContent.d.ts +3 -0
- package/dist/recurringtransactions/index.es.js +586 -562
- package/dist/recurringtransactions/stores/RecurringTransactionsStore.d.ts +1 -0
- package/dist/settings/index.es.js +371 -365
- package/dist/spending/index.es.js +267 -419
- package/dist/spending/utils/SpendingData.d.ts +2 -1
- package/dist/transactions/components/shared/TransactionDetails.d.ts +1 -0
- package/dist/transactions/components/shared/TransactionList.d.ts +1 -0
- package/dist/transactions/index.es.js +231 -226
- package/dist/transactions/stores/TransactionStore.d.ts +1 -1
- package/dist/transactions/stores/UiStore.d.ts +0 -2
- package/dist/trends/index.es.js +988 -612
- package/dist/{useAccountDisplayName-BUAApBIb.mjs → useAccountDisplayName-CcIp09Xc.mjs} +2 -2
- package/dist/{useCombineEvents-BUDIR1ba.mjs → useCombineEvents-kNzLTWCp.mjs} +3 -3
- package/dist/{useInsightsEnabled-DBpwEq10.mjs → useInsightsEnabled-CNjP5cfR.mjs} +1 -1
- package/dist/{useScreenSize-B6JyS_Lj.mjs → useScreenSize-B5afALev.mjs} +1 -1
- package/package.json +51 -56
- package/dist/AccountDetailsContent-CAM9y39M.mjs +0 -679
- package/dist/AccountDetailsHeader-JtSX6Uf9.mjs +0 -120
- package/dist/AccountListItem-JFMZROh7.mjs +0 -90
- package/dist/CurrencyInput-DUsQbkXb.mjs +0 -85
- package/dist/Drawer-kEE73B87.mjs +0 -113
- package/dist/FinstrongStore-F2c607dj.mjs +0 -101
- package/dist/HeaderCell-DjuifqHJ.mjs +0 -6
- package/dist/LineChart-D4GI7nVh.mjs +0 -541
- package/dist/Loader-DUaFpDGv.mjs +0 -24
- package/dist/MicroWidgetContainer-DpeqN9n3.mjs +0 -45
- package/dist/MiniWidgetContainer-D0gfmbaF.mjs +0 -56
- package/dist/SearchBox-B2_zLv8-.mjs +0 -42
- package/dist/TransactionApi-B3Tksf7L.mjs +0 -86
- package/dist/TransactionDetails-oP1eSuiS.mjs +0 -1334
- package/dist/TrendsStore-DCYbpXPO.mjs +0 -559
- package/dist/common/components/barchart/Bar.d.ts +0 -25
- package/dist/common/components/barchart/BarChart.d.ts +0 -34
- package/dist/common/components/barchart/BarColumn.d.ts +0 -37
- package/dist/common/components/barchart/Legend.d.ts +0 -8
- package/dist/common/components/barchart/Util.d.ts +0 -42
- package/dist/common/components/barchart/index.d.ts +0 -1
- package/dist/common/hooks/usePrevious.d.ts +0 -2
- package/dist/exportTransactionsToCSV-7bVS7KXf.mjs +0 -47
- package/dist/finstrong/utils/Finstrong.d.ts +0 -6
- package/dist/transactions/components/shared/transactionlist/DateRow.d.ts +0 -7
- package/dist/useAriaLive-B3_pRUio.mjs +0 -35
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
import { jsx as e, jsxs as u } from "react/jsx-runtime";
|
|
2
|
-
import { observer as p } from "mobx-react-lite";
|
|
3
|
-
import d from "@mui/material/Stack";
|
|
4
|
-
import { H3 as w, InstitutionLogo as I, Text as m, H2 as L } from "@mxenabled/mxui";
|
|
5
|
-
import { g as v } from "./AccountFields-C9FlatNb.mjs";
|
|
6
|
-
import h from "react";
|
|
7
|
-
import { G as E, d as y, m as S, u as _, f as G } from "./hooks-D6XlXHf4.mjs";
|
|
8
|
-
import O from "@mui/material/Card";
|
|
9
|
-
import P from "@mui/material/CardContent";
|
|
10
|
-
import M from "@mui/material/CardHeader";
|
|
11
|
-
import { useTheme as B } from "@mui/material/styles";
|
|
12
|
-
import { g as H, a as U, b as j } from "./SpendingData-D5vsfYKo.mjs";
|
|
13
|
-
import { L as z } from "./LineChart-D4GI7nVh.mjs";
|
|
14
|
-
import { I as f, P as g, S as C } from "./Account-Bxw0_4FU.mjs";
|
|
15
|
-
import { A } from "./ConnectDrawer-BQNs-hjk.mjs";
|
|
16
|
-
import { L as Y } from "./Loader-DUaFpDGv.mjs";
|
|
17
|
-
import { f as R, D as $ } from "./Dialog-CWW597AF.mjs";
|
|
18
|
-
import { u as k } from "./useAccountDisplayName-BUAApBIb.mjs";
|
|
19
|
-
import { f as F } from "./NumberFormatting-Buh7u8Oi.mjs";
|
|
20
|
-
const b = () => {
|
|
21
|
-
if (!h.useContext(E))
|
|
22
|
-
throw new Error("useCategoryUiStore() must be used within the GlobalDataContext");
|
|
23
|
-
return y().uiStore;
|
|
24
|
-
}, V = (o, n) => {
|
|
25
|
-
const t = f.includes(n) ? H(o) : [], a = g.includes(n) ? U(o) : [], r = C.includes(n) ? j(o) : [];
|
|
26
|
-
return [t, a, r].filter((s) => s.length > 0);
|
|
27
|
-
}, W = (o, n, t) => {
|
|
28
|
-
const [a, r] = o, s = a, c = r ?? a, i = [];
|
|
29
|
-
if (s && c && f.includes(n)) {
|
|
30
|
-
const l = s[s.length - 1].y;
|
|
31
|
-
i.push({ label: t.income_label, amount: l });
|
|
32
|
-
} else if (g.includes(n)) {
|
|
33
|
-
const l = s[s.length - 1].y;
|
|
34
|
-
i.push({ label: t.payments_label, amount: l });
|
|
35
|
-
}
|
|
36
|
-
if (c && C.includes(n)) {
|
|
37
|
-
const l = c[c.length - 1].y;
|
|
38
|
-
i.push({ label: t.spending_label, amount: l });
|
|
39
|
-
}
|
|
40
|
-
return i;
|
|
41
|
-
}, q = () => {
|
|
42
|
-
const o = B(), { selectedAccount: n } = b(), { monthlyCategoryTotals: t } = S(), { trends: a } = _(), r = [o.palette.chart?.chart1, o.palette.chart?.chart2], s = V(t, n.account_type), c = W(s, n.account_type, a), i = [A.LOAN, A.MORTGAGE].includes(n.account_type);
|
|
43
|
-
return /* @__PURE__ */ e("div", { "data-testid": "TrendsChart", children: /* @__PURE__ */ e(
|
|
44
|
-
z,
|
|
45
|
-
{
|
|
46
|
-
colors: r,
|
|
47
|
-
datasets: s,
|
|
48
|
-
height: 185,
|
|
49
|
-
labels: c,
|
|
50
|
-
showAverage: i,
|
|
51
|
-
showBars: i,
|
|
52
|
-
showLegend: !0,
|
|
53
|
-
valueFormatterString: "0,0"
|
|
54
|
-
}
|
|
55
|
-
) });
|
|
56
|
-
}, J = p(q), K = ({ sx: o }) => {
|
|
57
|
-
const { loadMonthlyCategoryTotals: n } = S(), { isInitialized: t } = G(), { selectedAccount: a } = b(), [r, s] = h.useState(!1);
|
|
58
|
-
return h.useEffect(() => {
|
|
59
|
-
t && n([a]).finally(() => {
|
|
60
|
-
s(!0);
|
|
61
|
-
});
|
|
62
|
-
}, [t, a]), !t || !r ? /* @__PURE__ */ e(Y, {}) : /* @__PURE__ */ u(
|
|
63
|
-
O,
|
|
64
|
-
{
|
|
65
|
-
sx: {
|
|
66
|
-
"& .MuiCardContent-root:last-child": {
|
|
67
|
-
pb: 0
|
|
68
|
-
},
|
|
69
|
-
...o
|
|
70
|
-
},
|
|
71
|
-
children: [
|
|
72
|
-
/* @__PURE__ */ e(
|
|
73
|
-
M,
|
|
74
|
-
{
|
|
75
|
-
sx: { pb: 0 },
|
|
76
|
-
title: /* @__PURE__ */ e(w, { sx: { pb: 4 }, children: R(/* @__PURE__ */ new Date(), $.MONTH_LONG) })
|
|
77
|
-
}
|
|
78
|
-
),
|
|
79
|
-
/* @__PURE__ */ e(P, { sx: { p: 0 }, children: /* @__PURE__ */ e(J, {}) })
|
|
80
|
-
]
|
|
81
|
-
}
|
|
82
|
-
);
|
|
83
|
-
}, Q = p(K), X = ({ customDetailsChart: o }) => {
|
|
84
|
-
const { institutions: n } = y(), { selectedAccount: t } = b(), { accounts: a } = _(), { firstSubtitle: r, firstValue: s, hasAvailableBalance: c, secondSubtitle: i, secondValue: l } = v(t, a), T = n.find(
|
|
85
|
-
(N) => N.guid === t?.institution_guid
|
|
86
|
-
), D = [
|
|
87
|
-
...f,
|
|
88
|
-
...g,
|
|
89
|
-
...C
|
|
90
|
-
].includes(t.account_type), x = k(t);
|
|
91
|
-
return /* @__PURE__ */ u(d, { bgcolor: "background.default", p: 24, children: [
|
|
92
|
-
/* @__PURE__ */ u(d, { gap: 12, children: [
|
|
93
|
-
/* @__PURE__ */ e(
|
|
94
|
-
I,
|
|
95
|
-
{
|
|
96
|
-
alt: a.institution_logo_alt,
|
|
97
|
-
institutionGuid: t.institution_guid || "",
|
|
98
|
-
size: 64
|
|
99
|
-
}
|
|
100
|
-
),
|
|
101
|
-
/* @__PURE__ */ e(m, { variant: "Small", children: T?.name })
|
|
102
|
-
] }),
|
|
103
|
-
/* @__PURE__ */ u(d, { gap: 8, mb: 24, mt: 4, children: [
|
|
104
|
-
/* @__PURE__ */ e(L, { children: x }),
|
|
105
|
-
/* @__PURE__ */ u(d, { direction: "row", justifyContent: "space-between", children: [
|
|
106
|
-
/* @__PURE__ */ e(m, { bold: c, variant: "Body", children: r }),
|
|
107
|
-
/* @__PURE__ */ e(m, { bold: !0, variant: "Body", children: F(s, "0,0.00") })
|
|
108
|
-
] }),
|
|
109
|
-
/* @__PURE__ */ u(d, { direction: "row", justifyContent: "space-between", children: [
|
|
110
|
-
/* @__PURE__ */ e(m, { variant: "Small", children: i }),
|
|
111
|
-
/* @__PURE__ */ e(m, { variant: "Small", children: l })
|
|
112
|
-
] })
|
|
113
|
-
] }),
|
|
114
|
-
D && /* @__PURE__ */ e(d, { children: o || /* @__PURE__ */ e(Q, {}) })
|
|
115
|
-
] });
|
|
116
|
-
}, bt = p(X);
|
|
117
|
-
export {
|
|
118
|
-
bt as A,
|
|
119
|
-
b as u
|
|
120
|
-
};
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import { jsx as e, jsxs as r, Fragment as l } from "react/jsx-runtime";
|
|
2
|
-
import { observer as b } from "mobx-react-lite";
|
|
3
|
-
import I from "@mui/material/Badge";
|
|
4
|
-
import m from "@mui/material/Box";
|
|
5
|
-
import S from "@mui/material/ListItem";
|
|
6
|
-
import v from "@mui/material/ListItemAvatar";
|
|
7
|
-
import C from "@mui/material/ListItemButton";
|
|
8
|
-
import _ from "@mui/material/ListItemText";
|
|
9
|
-
import B from "@mui/material/styles/useTheme";
|
|
10
|
-
import { InstitutionLogo as L, Text as o } from "@mxenabled/mxui";
|
|
11
|
-
import { Error as A } from "@mxenabled/mx-icons";
|
|
12
|
-
import { I as j } from "./IconBacking-B9oC6uL2.mjs";
|
|
13
|
-
import { g as T } from "./AccountFields-C9FlatNb.mjs";
|
|
14
|
-
import { u as X } from "./useAccountDisplayName-BUAApBIb.mjs";
|
|
15
|
-
import { u as $ } from "./hooks-D6XlXHf4.mjs";
|
|
16
|
-
import { C as d } from "./ConnectDrawer-BQNs-hjk.mjs";
|
|
17
|
-
import { f as k } from "./NumberFormatting-Buh7u8Oi.mjs";
|
|
18
|
-
const w = {
|
|
19
|
-
gridRow: 1,
|
|
20
|
-
gridColumn: 1,
|
|
21
|
-
zIndex: 2
|
|
22
|
-
}, E = ({ size: t = 20 }) => /* @__PURE__ */ e(j, { size: t, children: /* @__PURE__ */ e(A, { color: "error", filled: !0, sx: { fontSize: t, ...w } }) }), M = ({
|
|
23
|
-
account: t,
|
|
24
|
-
onRowClick: s,
|
|
25
|
-
listItemProps: c,
|
|
26
|
-
shouldShowConnectionStatus: p = !1
|
|
27
|
-
}) => {
|
|
28
|
-
const u = B(), f = X(t), { accounts: i } = $(), { firstSubtitle: h, firstValue: g, secondSubtitle: x, secondValue: y } = T(
|
|
29
|
-
t,
|
|
30
|
-
i
|
|
31
|
-
);
|
|
32
|
-
let n;
|
|
33
|
-
(t.connectionStatus === d.Error || t.connectionStatus === d.RequiresMfa) && (n = /* @__PURE__ */ e(E, { size: 16 }));
|
|
34
|
-
const a = /* @__PURE__ */ r(l, { children: [
|
|
35
|
-
/* @__PURE__ */ e(v, { children: /* @__PURE__ */ e(
|
|
36
|
-
I,
|
|
37
|
-
{
|
|
38
|
-
badgeContent: p ? n : void 0,
|
|
39
|
-
sx: {
|
|
40
|
-
"& .MuiBadge-badge": {
|
|
41
|
-
right: -1
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
children: /* @__PURE__ */ e(L, { alt: "MX", institutionGuid: t.institution_guid || "" })
|
|
45
|
-
}
|
|
46
|
-
) }),
|
|
47
|
-
/* @__PURE__ */ e(
|
|
48
|
-
_,
|
|
49
|
-
{
|
|
50
|
-
disableTypography: !0,
|
|
51
|
-
primary: /* @__PURE__ */ r(
|
|
52
|
-
o,
|
|
53
|
-
{
|
|
54
|
-
bold: !0,
|
|
55
|
-
color: t.is_hidden ? u.palette.text.secondary : void 0,
|
|
56
|
-
sx: { whiteSpace: "normal" },
|
|
57
|
-
variant: "Body",
|
|
58
|
-
children: [
|
|
59
|
-
`${f} ${t.account_number ? `*${t.account_number}` : ""}`,
|
|
60
|
-
" ",
|
|
61
|
-
t.is_hidden && !t.is_closed && i.is_hidden,
|
|
62
|
-
t.is_closed && i.is_closed
|
|
63
|
-
]
|
|
64
|
-
}
|
|
65
|
-
),
|
|
66
|
-
secondary: /* @__PURE__ */ r(l, { children: [
|
|
67
|
-
/* @__PURE__ */ r(m, { sx: { alignItems: "center", display: "flex", justifyContent: "space-between" }, children: [
|
|
68
|
-
/* @__PURE__ */ e(o, { variant: "XSmall", children: h }),
|
|
69
|
-
/* @__PURE__ */ e(o, { bold: !0, variant: "Small", children: k(g, "0,0.00") })
|
|
70
|
-
] }),
|
|
71
|
-
/* @__PURE__ */ r(m, { sx: { alignItems: "center", display: "flex", justifyContent: "space-between" }, children: [
|
|
72
|
-
/* @__PURE__ */ e(o, { variant: "XSmall", children: x }),
|
|
73
|
-
/* @__PURE__ */ e(o, { ml: "auto", variant: "XSmall", children: y })
|
|
74
|
-
] })
|
|
75
|
-
] })
|
|
76
|
-
}
|
|
77
|
-
)
|
|
78
|
-
] });
|
|
79
|
-
return /* @__PURE__ */ e(
|
|
80
|
-
S,
|
|
81
|
-
{
|
|
82
|
-
sx: { backgroundColor: "background.paper", color: t.is_closed ? "grey.700" : "" },
|
|
83
|
-
...c,
|
|
84
|
-
children: s ? /* @__PURE__ */ e(C, { alignItems: "flex-start", onClick: s, sx: { px: 24 }, children: a }) : a
|
|
85
|
-
}
|
|
86
|
-
);
|
|
87
|
-
}, Z = b(M);
|
|
88
|
-
export {
|
|
89
|
-
Z as A
|
|
90
|
-
};
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import m from "react";
|
|
3
|
-
import { css as q } from "@mxenabled/cssinjs";
|
|
4
|
-
import { v4 as B } from "uuid";
|
|
5
|
-
import { useTokens as L, TextField as O, P as _ } from "@mxenabled/mxui";
|
|
6
|
-
import { b as y, g as C } from "./Localization-2MODESHW.mjs";
|
|
7
|
-
import { g as W, C as j, f as g, M as b } from "./NumberFormatting-Buh7u8Oi.mjs";
|
|
8
|
-
import { u as D } from "./hooks-D6XlXHf4.mjs";
|
|
9
|
-
const F = ({
|
|
10
|
-
allowDecimals: o = !0,
|
|
11
|
-
ariaLabel: h,
|
|
12
|
-
amount: c,
|
|
13
|
-
amountIsRequired: $ = !0,
|
|
14
|
-
copy: a,
|
|
15
|
-
customValidate: M = () => !0,
|
|
16
|
-
errorText: S = "",
|
|
17
|
-
label: u,
|
|
18
|
-
minAmount: f = 1,
|
|
19
|
-
setAmount: x,
|
|
20
|
-
setHasValidInput: r,
|
|
21
|
-
...N
|
|
22
|
-
}) => {
|
|
23
|
-
const [l, t] = m.useState(""), { common: T } = D(), n = a || T.currency_input, k = L(), P = G(k), R = /^[0-9]*$/, A = /^(\d)*(\,)?([0-9]{1,2})?$/, E = /^(\d)*(\.)?([0-9]{1,2})?$/;
|
|
24
|
-
let s;
|
|
25
|
-
const p = m.useRef(B());
|
|
26
|
-
if (o)
|
|
27
|
-
switch (W()) {
|
|
28
|
-
case j.CAD:
|
|
29
|
-
s = A;
|
|
30
|
-
break;
|
|
31
|
-
default:
|
|
32
|
-
s = E;
|
|
33
|
-
break;
|
|
34
|
-
}
|
|
35
|
-
else
|
|
36
|
-
s = R;
|
|
37
|
-
m.useEffect(() => {
|
|
38
|
-
d(c);
|
|
39
|
-
}, [c]);
|
|
40
|
-
const d = (e) => {
|
|
41
|
-
!$ && (e === "" || e === "." || e === ",") ? (t(""), r?.(!1)) : Number(e) < f ? (t(
|
|
42
|
-
y(
|
|
43
|
-
n.error_amount_must_be_equal_to,
|
|
44
|
-
g(f, "0")
|
|
45
|
-
)
|
|
46
|
-
), r?.(!1)) : Number(e) > b ? (t(
|
|
47
|
-
y(
|
|
48
|
-
n.error_amount_must_be_less_than_or_equal_to,
|
|
49
|
-
g(b, o ? "0,0.00" : "0,0", Math.floor)
|
|
50
|
-
)
|
|
51
|
-
), r?.(!1)) : e.toString().match(s) ? M() ? (t(""), r?.(!0)) : (t(S), r?.(!1)) : (t(n.error_amount_is_invalid), r?.(!1)), x(e.toString());
|
|
52
|
-
};
|
|
53
|
-
return /* @__PURE__ */ i(
|
|
54
|
-
O,
|
|
55
|
-
{
|
|
56
|
-
InputProps: {
|
|
57
|
-
endAdornment: C().includes("fr-ca") ? /* @__PURE__ */ i(_, { children: "$" }) : void 0,
|
|
58
|
-
startAdornment: C().includes("fr-ca") ? void 0 : /* @__PURE__ */ i(_, { children: "$" })
|
|
59
|
-
},
|
|
60
|
-
className: `mx-cmn-currency-input ${P}`,
|
|
61
|
-
error: !!l,
|
|
62
|
-
helperText: l,
|
|
63
|
-
hiddenLabel: !u,
|
|
64
|
-
id: `currency-input-${p.current}`,
|
|
65
|
-
inputMode: o ? "decimal" : "numeric",
|
|
66
|
-
inputProps: {
|
|
67
|
-
"aria-label": h || n.enter_amount,
|
|
68
|
-
noValidate: !0,
|
|
69
|
-
pattern: "[0-9]*"
|
|
70
|
-
},
|
|
71
|
-
label: u,
|
|
72
|
-
name: `currency-input-${p.current}`,
|
|
73
|
-
onChange: (e) => d(e.target.value),
|
|
74
|
-
value: c,
|
|
75
|
-
...N
|
|
76
|
-
}
|
|
77
|
-
);
|
|
78
|
-
}, G = (o) => q({
|
|
79
|
-
"& .MuiInputBase-adornedStart > .p": {
|
|
80
|
-
marginRight: o.Spacing.Tiny
|
|
81
|
-
}
|
|
82
|
-
}), Q = F;
|
|
83
|
-
export {
|
|
84
|
-
Q as C
|
|
85
|
-
};
|
package/dist/Drawer-kEE73B87.mjs
DELETED
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
import { jsxs as p, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import n from "@mui/material/Box";
|
|
3
|
-
import c from "@mui/material/Stack";
|
|
4
|
-
import { H2 as D, Drawer as S, Footer as y } from "@mxenabled/mxui";
|
|
5
|
-
import B from "@mui/material/IconButton";
|
|
6
|
-
import { ArrowBack as C } from "@mxenabled/mx-icons";
|
|
7
|
-
const j = ({
|
|
8
|
-
ariaLabelClose: o,
|
|
9
|
-
onClose: e,
|
|
10
|
-
shouldShowBorders: a,
|
|
11
|
-
shouldShowShadow: t,
|
|
12
|
-
title: i
|
|
13
|
-
}) => /* @__PURE__ */ p(
|
|
14
|
-
c,
|
|
15
|
-
{
|
|
16
|
-
"aria-level": 1,
|
|
17
|
-
direction: "row",
|
|
18
|
-
role: "heading",
|
|
19
|
-
sx: {
|
|
20
|
-
alignItems: "center",
|
|
21
|
-
backgroundColor: "background.paper",
|
|
22
|
-
...a && {
|
|
23
|
-
borderBottom: 1,
|
|
24
|
-
borderTop: 1,
|
|
25
|
-
borderColor: "border.light"
|
|
26
|
-
},
|
|
27
|
-
...t && {
|
|
28
|
-
boxShadow: "0px 2px 8px 0px #6A73811F"
|
|
29
|
-
},
|
|
30
|
-
padding: "8px 8px 8px 8px"
|
|
31
|
-
},
|
|
32
|
-
children: [
|
|
33
|
-
/* @__PURE__ */ r(B, { "aria-label": o, color: "primary", onClick: e, children: /* @__PURE__ */ r(C, { color: "primary", sx: { fontSize: 22 } }) }),
|
|
34
|
-
/* @__PURE__ */ r(
|
|
35
|
-
n,
|
|
36
|
-
{
|
|
37
|
-
sx: {
|
|
38
|
-
flexGrow: 1,
|
|
39
|
-
margin: "auto",
|
|
40
|
-
textAlign: "center"
|
|
41
|
-
},
|
|
42
|
-
children: /* @__PURE__ */ r(D, { bold: !0, variant: "Body", children: i })
|
|
43
|
-
}
|
|
44
|
-
),
|
|
45
|
-
/* @__PURE__ */ r(n, { width: "44px" })
|
|
46
|
-
]
|
|
47
|
-
}
|
|
48
|
-
), v = ({
|
|
49
|
-
ariaLabelClose: o = "Close",
|
|
50
|
-
children: e,
|
|
51
|
-
hasSecondaryAction: a = !0,
|
|
52
|
-
id: t,
|
|
53
|
-
isOpen: i,
|
|
54
|
-
isPrimaryDisabled: h,
|
|
55
|
-
onClose: d,
|
|
56
|
-
onPrimaryAction: l,
|
|
57
|
-
onSecondaryAction: u,
|
|
58
|
-
primaryColor: s = "primary",
|
|
59
|
-
primaryText: x,
|
|
60
|
-
secondaryColor: m = "secondary",
|
|
61
|
-
secondaryText: b,
|
|
62
|
-
shouldShowHeaderBorders: w = !0,
|
|
63
|
-
shouldShowHeaderShadow: g = !1,
|
|
64
|
-
title: f,
|
|
65
|
-
...k
|
|
66
|
-
}) => /* @__PURE__ */ r(
|
|
67
|
-
S,
|
|
68
|
-
{
|
|
69
|
-
id: t,
|
|
70
|
-
isOpen: i,
|
|
71
|
-
onClose: d,
|
|
72
|
-
sx: {
|
|
73
|
-
"& .MuiDrawer-paper": {
|
|
74
|
-
backgroundColor: "background.default",
|
|
75
|
-
borderRadius: 0
|
|
76
|
-
},
|
|
77
|
-
height: "100%",
|
|
78
|
-
"& .MuiToolbar-root": {
|
|
79
|
-
backgroundColor: "background.paper"
|
|
80
|
-
}
|
|
81
|
-
},
|
|
82
|
-
...k,
|
|
83
|
-
children: /* @__PURE__ */ p(c, { height: "100%", justifyContent: "space-between", children: [
|
|
84
|
-
/* @__PURE__ */ r(
|
|
85
|
-
j,
|
|
86
|
-
{
|
|
87
|
-
ariaLabelClose: o,
|
|
88
|
-
onClose: d,
|
|
89
|
-
shouldShowBorders: w,
|
|
90
|
-
shouldShowShadow: g,
|
|
91
|
-
title: f
|
|
92
|
-
}
|
|
93
|
-
),
|
|
94
|
-
/* @__PURE__ */ r(n, { height: "100%", overflow: "auto", children: e }),
|
|
95
|
-
l && /* @__PURE__ */ r(
|
|
96
|
-
y,
|
|
97
|
-
{
|
|
98
|
-
hasSecondaryAction: a,
|
|
99
|
-
isPrimaryDisabled: h,
|
|
100
|
-
onPrimaryAction: l,
|
|
101
|
-
onSecondaryAction: u ?? d,
|
|
102
|
-
primaryColor: s,
|
|
103
|
-
primaryText: x,
|
|
104
|
-
secondaryColor: m,
|
|
105
|
-
secondaryText: b
|
|
106
|
-
}
|
|
107
|
-
)
|
|
108
|
-
] })
|
|
109
|
-
}
|
|
110
|
-
), $ = v;
|
|
111
|
-
export {
|
|
112
|
-
$ as D
|
|
113
|
-
};
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { makeAutoObservable as l, runInAction as r } from "mobx";
|
|
2
|
-
import { format as i } from "date-fns/format";
|
|
3
|
-
import { fromUnixTime as g } from "date-fns/fromUnixTime";
|
|
4
|
-
import { getUnixTime as s } from "date-fns/getUnixTime";
|
|
5
|
-
import { subMonths as S } from "date-fns/subMonths";
|
|
6
|
-
import { F as m, A as o } from "./Fetch-87LIQbEA.mjs";
|
|
7
|
-
import { f as p, D as u } from "./Dialog-CWW597AF.mjs";
|
|
8
|
-
class n {
|
|
9
|
-
fetchInstance;
|
|
10
|
-
constructor(e, t, a) {
|
|
11
|
-
this.fetchInstance = new m(e, t, void 0, a);
|
|
12
|
-
}
|
|
13
|
-
calculateHealthScore = async () => this.fetchInstance.post(`${o.HEALTH_SCORES}/calculate`).then((e) => e.health_score);
|
|
14
|
-
getAverageHealthScores = async () => this.fetchInstance.get(`${o.HEALTH_SCORES}/monthly_averages`).then((e) => e);
|
|
15
|
-
getHealthScoreChangeReports = async (e, t) => this.fetchInstance.get(`${o.HEALTH_SCORES}/change_report/from/${e}/to/${t}`).then((a) => a);
|
|
16
|
-
getPeerScore = async (e) => this.fetchInstance.get(`${o.HEALTH_SCORES}/average/${e}`).then((t) => t.average_health_score);
|
|
17
|
-
}
|
|
18
|
-
const y = (h) => h?.health_scores.map((e) => {
|
|
19
|
-
const t = e.monthly_health_score_average, a = new Date(0, t.month - 1, 1);
|
|
20
|
-
return {
|
|
21
|
-
x: p(a, u.MONTH_SHORT),
|
|
22
|
-
y: t.average_health_score,
|
|
23
|
-
month: t.month
|
|
24
|
-
// Keep original month for sorting
|
|
25
|
-
};
|
|
26
|
-
}).sort((e, t) => e.month - t.month).map((e) => ({ x: e.x, y: e.y }));
|
|
27
|
-
class v {
|
|
28
|
-
api = new n("/", "");
|
|
29
|
-
augmentedChartData = [];
|
|
30
|
-
averageHealthScores = [];
|
|
31
|
-
globalStore;
|
|
32
|
-
healthScore = {};
|
|
33
|
-
healthScoreChange;
|
|
34
|
-
healthScoreChangeReports = [];
|
|
35
|
-
peerScore = null;
|
|
36
|
-
constructor(e) {
|
|
37
|
-
this.globalStore = e, this.api = new n(e.endpoint, e.sessionToken, e.onError), l(this);
|
|
38
|
-
}
|
|
39
|
-
calculateHealthScore = async () => {
|
|
40
|
-
try {
|
|
41
|
-
const e = await this.api.calculateHealthScore();
|
|
42
|
-
let t = 0;
|
|
43
|
-
await this.loadHealthScoreChangeReports();
|
|
44
|
-
const a = e?.health_score || 0, c = this.healthScoreChangeReports.at(-1)?.older_health_score || 0;
|
|
45
|
-
t = a - c, r(() => {
|
|
46
|
-
this.healthScore = e, this.healthScoreChange = t;
|
|
47
|
-
});
|
|
48
|
-
} catch (e) {
|
|
49
|
-
console.error("Error calculating health score:", e);
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
loadAverageHealthScores = async () => {
|
|
53
|
-
try {
|
|
54
|
-
const e = await this.api.getAverageHealthScores();
|
|
55
|
-
r(() => {
|
|
56
|
-
this.averageHealthScores = e;
|
|
57
|
-
});
|
|
58
|
-
} catch (e) {
|
|
59
|
-
console.error("Error loading average health scores:", e);
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
loadHealthScoreChangeReports = async () => {
|
|
63
|
-
const e = s(S(/* @__PURE__ */ new Date(), 2)), t = s(/* @__PURE__ */ new Date());
|
|
64
|
-
try {
|
|
65
|
-
const a = await this.api.getHealthScoreChangeReports(
|
|
66
|
-
e,
|
|
67
|
-
t
|
|
68
|
-
);
|
|
69
|
-
r(() => {
|
|
70
|
-
this.healthScoreChangeReports = a;
|
|
71
|
-
});
|
|
72
|
-
} catch (a) {
|
|
73
|
-
console.error("Error loading health score change reports:", a);
|
|
74
|
-
}
|
|
75
|
-
};
|
|
76
|
-
loadPeerScore = async () => {
|
|
77
|
-
const e = i(g(this.globalStore.appDataStore.user.birthday), "yyyy");
|
|
78
|
-
try {
|
|
79
|
-
const t = await this.api.getPeerScore(e);
|
|
80
|
-
r(() => {
|
|
81
|
-
this.peerScore = t;
|
|
82
|
-
});
|
|
83
|
-
} catch (t) {
|
|
84
|
-
console.error("Error loading peer score:", t);
|
|
85
|
-
}
|
|
86
|
-
};
|
|
87
|
-
loadAugmentedChartData = async () => {
|
|
88
|
-
try {
|
|
89
|
-
const e = await this.api.getAverageHealthScores();
|
|
90
|
-
r(() => {
|
|
91
|
-
this.augmentedChartData = y(e);
|
|
92
|
-
});
|
|
93
|
-
} catch (e) {
|
|
94
|
-
console.error(`Error occurred while getting augmented chart data: ${e}`);
|
|
95
|
-
}
|
|
96
|
-
};
|
|
97
|
-
}
|
|
98
|
-
export {
|
|
99
|
-
n as F,
|
|
100
|
-
v as a
|
|
101
|
-
};
|