@mx-cartographer/experiences 8.0.0-alpha.bb2 → 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 -199
- 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/SkeletonLoader.d.ts +7 -0
- 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 +413 -674
- package/dist/common/stores/GlobalStore.d.ts +7 -1
- package/dist/common/stores/GlobalUiStore.d.ts +3 -2
- 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/accounts/components/AccountsWidgetContent.d.ts +0 -3
- 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,42 +1,42 @@
|
|
|
1
|
-
import { A as f, B as
|
|
2
|
-
import { A as
|
|
3
|
-
import { s as
|
|
4
|
-
import { N as
|
|
5
|
-
import { jsx as t, jsxs as
|
|
6
|
-
import k, { useEffect as
|
|
1
|
+
import { A as f, B as y } from "../ToggleListItem-ciFTiqRS.mjs";
|
|
2
|
+
import { A as g } from "../Fetch-DecPFeGU.mjs";
|
|
3
|
+
import { s as v } from "../NotificationStore-Ck2KdNmT.mjs";
|
|
4
|
+
import { N as xt, f as Nt } from "../NotificationStore-Ck2KdNmT.mjs";
|
|
5
|
+
import { jsx as t, jsxs as l, Fragment as C } from "react/jsx-runtime";
|
|
6
|
+
import k, { useEffect as L } from "react";
|
|
7
7
|
import { observer as p } from "mobx-react-lite";
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { Text as m, InstitutionLogo as
|
|
12
|
-
import { h as I } from "../DateUtil-
|
|
13
|
-
import { useTheme as
|
|
14
|
-
import { d as
|
|
15
|
-
import { Icon as
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import { L as
|
|
19
|
-
import
|
|
20
|
-
import { N as
|
|
21
|
-
import { D as
|
|
22
|
-
const
|
|
8
|
+
import h from "@mui/material/Box";
|
|
9
|
+
import A from "@mui/material/Divider";
|
|
10
|
+
import D from "@mui/material/List";
|
|
11
|
+
import { Text as m, InstitutionLogo as B, CategoryIcon as T } from "@mxenabled/mxui";
|
|
12
|
+
import { h as I } from "../DateUtil-CDPZw_-m.mjs";
|
|
13
|
+
import { useTheme as R, Card as O } from "@mui/material";
|
|
14
|
+
import { d as G, i as E, u as _, o as x, b as N, a as j } from "../hooks-C41HAxM5.mjs";
|
|
15
|
+
import { Icon as z, Settings as U } from "@mxenabled/mx-icons";
|
|
16
|
+
import F from "@mui/material/Button";
|
|
17
|
+
import P from "@mui/material/Stack";
|
|
18
|
+
import { L as S } from "../Loader-Ckqi9Rx6.mjs";
|
|
19
|
+
import W from "@mui/material/IconButton";
|
|
20
|
+
import { N as $ } from "../NotificationSettings-B74rQVYC.mjs";
|
|
21
|
+
import { D as b } from "../Drawer-BF40nbsH.mjs";
|
|
22
|
+
const _t = (e) => {
|
|
23
23
|
switch (e) {
|
|
24
|
-
case
|
|
25
|
-
case
|
|
26
|
-
return
|
|
24
|
+
case y.BudgetExceeded:
|
|
25
|
+
case y.BudgetOffTarget:
|
|
26
|
+
return g.BUDGETS;
|
|
27
27
|
case f.DebtPaymentReminder:
|
|
28
28
|
case f.AccountBalanceLow:
|
|
29
29
|
case f.AccountDepositLarge:
|
|
30
|
-
return
|
|
30
|
+
return g.ACCOUNTS;
|
|
31
31
|
case f.TransactionExpenseLarge:
|
|
32
32
|
case f.TransactionFeeCharge:
|
|
33
33
|
case f.InternationalTransaction:
|
|
34
|
-
return
|
|
34
|
+
return g.TRANSACTIONS;
|
|
35
35
|
default:
|
|
36
36
|
return null;
|
|
37
37
|
}
|
|
38
|
-
}, M = ({ date: e }) => /* @__PURE__ */ t(
|
|
39
|
-
const { accounts:
|
|
38
|
+
}, M = ({ date: e }) => /* @__PURE__ */ t(h, { sx: { display: "flex", justifyContent: "center", mt: 12, py: 8 }, children: /* @__PURE__ */ t(m, { bold: !0, variant: "body2", children: I(e) }) }), V = ({ notification: e }) => {
|
|
39
|
+
const { accounts: n } = G(), { budgets: r } = E(), { accounts: s } = _(), o = n.find((i) => i.guid === e.entity_guid), a = r.find((i) => i.guid === e.entity_guid), d = e.entity_guid.includes("GOL"), u = {
|
|
40
40
|
badge: {
|
|
41
41
|
display: "flex",
|
|
42
42
|
alignItems: "center",
|
|
@@ -45,16 +45,16 @@ const yt = (e) => {
|
|
|
45
45
|
marginRight: 12
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
|
-
return
|
|
49
|
-
|
|
48
|
+
return o || d ? /* @__PURE__ */ t("div", { style: u.badge, children: /* @__PURE__ */ t(
|
|
49
|
+
B,
|
|
50
50
|
{
|
|
51
|
-
alt:
|
|
52
|
-
institutionGuid:
|
|
51
|
+
alt: o?.institutionName || s.institution_logo_alt,
|
|
52
|
+
institutionGuid: o?.institution_guid ?? "",
|
|
53
53
|
size: 33
|
|
54
54
|
}
|
|
55
|
-
) }) : /* @__PURE__ */ t("div", { style:
|
|
56
|
-
}, X = p(V), Y = ({ notification: e, onClick:
|
|
57
|
-
const { updateNotification:
|
|
55
|
+
) }) : /* @__PURE__ */ t("div", { style: u.badge, children: /* @__PURE__ */ t(T, { categoryGuid: a?.category_guid, size: 36 }) });
|
|
56
|
+
}, X = p(V), Y = ({ notification: e, onClick: n }) => {
|
|
57
|
+
const { updateNotification: r } = x(), s = R(), o = {
|
|
58
58
|
card: {
|
|
59
59
|
alignItems: "center",
|
|
60
60
|
cursor: "pointer",
|
|
@@ -79,19 +79,19 @@ const yt = (e) => {
|
|
|
79
79
|
width: 8
|
|
80
80
|
}
|
|
81
81
|
};
|
|
82
|
-
return /* @__PURE__ */
|
|
83
|
-
|
|
84
|
-
}, sx:
|
|
85
|
-
e.has_been_viewed ? null : /* @__PURE__ */ t("div", { "data-testid": "new-message-dot", style:
|
|
82
|
+
return /* @__PURE__ */ l(O, { onClick: () => {
|
|
83
|
+
n(e), r({ ...e, has_been_viewed: !0 }).finally();
|
|
84
|
+
}, sx: o.card, children: [
|
|
85
|
+
e.has_been_viewed ? null : /* @__PURE__ */ t("div", { "data-testid": "new-message-dot", style: o.dot }),
|
|
86
86
|
/* @__PURE__ */ t(X, { notification: e }),
|
|
87
|
-
/* @__PURE__ */ t(m, { bold: !e.has_been_viewed, truncate: !1, variant: "
|
|
87
|
+
/* @__PURE__ */ t(m, { bold: !e.has_been_viewed, truncate: !1, variant: "body2", children: e.content })
|
|
88
88
|
] });
|
|
89
89
|
}, q = p(
|
|
90
90
|
({ onManageNotifications: e }) => {
|
|
91
|
-
const { notifications:
|
|
92
|
-
return /* @__PURE__ */
|
|
93
|
-
/* @__PURE__ */ t(
|
|
94
|
-
/* @__PURE__ */ t(m, { sx: { pt: 32 }, variant: "
|
|
91
|
+
const { notifications: n } = _();
|
|
92
|
+
return /* @__PURE__ */ l(P, { sx: { alignItems: "center", height: "95%", justifyContent: "center" }, children: [
|
|
93
|
+
/* @__PURE__ */ t(z, { name: "notifications", size: 32 }),
|
|
94
|
+
/* @__PURE__ */ t(m, { sx: { pt: 32 }, variant: "h3", children: n.notification_empty_state.no_new_notifications }),
|
|
95
95
|
/* @__PURE__ */ t(
|
|
96
96
|
m,
|
|
97
97
|
{
|
|
@@ -103,90 +103,89 @@ const yt = (e) => {
|
|
|
103
103
|
whiteSpace: "normal"
|
|
104
104
|
},
|
|
105
105
|
variant: "subtitle1",
|
|
106
|
-
children:
|
|
106
|
+
children: n.notification_empty_state.notification_description
|
|
107
107
|
}
|
|
108
108
|
),
|
|
109
|
-
/* @__PURE__ */ t(
|
|
109
|
+
/* @__PURE__ */ t(F, { onClick: e, sx: { p: "12px 16px" }, variant: "outlined", children: n.notification_empty_state.manage_notifications })
|
|
110
110
|
] });
|
|
111
111
|
}
|
|
112
|
-
),
|
|
113
|
-
const { isLoading:
|
|
114
|
-
e?.(
|
|
112
|
+
), H = ({ onClick: e, onManageNotifications: n }) => {
|
|
113
|
+
const { isLoading: r, loadNotifications: s, newNotifications: o, markAllAsViewed: a } = x(), { isInitialized: d } = N(), u = (i) => {
|
|
114
|
+
e?.(i);
|
|
115
115
|
};
|
|
116
|
-
return
|
|
117
|
-
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
/* @__PURE__ */ t(
|
|
126
|
-
/* @__PURE__ */ t(D, {})
|
|
116
|
+
return L(() => {
|
|
117
|
+
s().then(() => a()).finally();
|
|
118
|
+
}, []), !d || r ? /* @__PURE__ */ t(S, {}) : /* @__PURE__ */ l(C, { children: [
|
|
119
|
+
o.length === 0 && /* @__PURE__ */ t(q, { onManageNotifications: n }),
|
|
120
|
+
/* @__PURE__ */ t(D, { sx: { p: 16 }, children: o.slice().sort((i, c) => c.delivered_at - i.delivered_at).map((i, c) => {
|
|
121
|
+
const w = v(c, o);
|
|
122
|
+
return /* @__PURE__ */ l(h, { sx: { mb: 12 }, children: [
|
|
123
|
+
w && /* @__PURE__ */ l(h, { sx: { mb: 12 }, children: [
|
|
124
|
+
/* @__PURE__ */ t(M, { date: i.delivered_at }),
|
|
125
|
+
/* @__PURE__ */ t(A, {})
|
|
127
126
|
] }),
|
|
128
|
-
/* @__PURE__ */ t(Y, { notification:
|
|
129
|
-
] },
|
|
127
|
+
/* @__PURE__ */ t(Y, { notification: i, onClick: u })
|
|
128
|
+
] }, i.guid);
|
|
130
129
|
}) })
|
|
131
130
|
] });
|
|
132
|
-
},
|
|
133
|
-
({ notificationTypes: e, isOpen:
|
|
134
|
-
const { config:
|
|
135
|
-
return
|
|
136
|
-
/* @__PURE__ */
|
|
137
|
-
|
|
131
|
+
}, J = p(H), yt = p(
|
|
132
|
+
({ notificationTypes: e, isOpen: n, onClose: r, onNotificationClick: s }) => {
|
|
133
|
+
const { config: o } = j(), { notifications: a, settings: d } = _(), { isCopyLoaded: u } = N(), [i, c] = k.useState(!1);
|
|
134
|
+
return u ? /* @__PURE__ */ l(C, { children: [
|
|
135
|
+
/* @__PURE__ */ l(
|
|
136
|
+
b,
|
|
138
137
|
{
|
|
139
|
-
ariaLabelClose:
|
|
140
|
-
isOpen:
|
|
141
|
-
onClose:
|
|
142
|
-
title:
|
|
138
|
+
ariaLabelClose: a.close_notifications,
|
|
139
|
+
isOpen: n,
|
|
140
|
+
onClose: r,
|
|
141
|
+
title: a.notifications_title,
|
|
143
142
|
children: [
|
|
144
143
|
/* @__PURE__ */ t(
|
|
145
|
-
|
|
144
|
+
W,
|
|
146
145
|
{
|
|
147
|
-
"aria-label":
|
|
148
|
-
onClick: () =>
|
|
146
|
+
"aria-label": d.open_notification_settings_btn_aria,
|
|
147
|
+
onClick: () => c(!0),
|
|
149
148
|
sx: {
|
|
150
149
|
position: "absolute",
|
|
151
150
|
right: 8,
|
|
152
151
|
top: 8
|
|
153
152
|
},
|
|
154
|
-
children: /* @__PURE__ */ t(
|
|
153
|
+
children: /* @__PURE__ */ t(U, { size: 24 })
|
|
155
154
|
}
|
|
156
155
|
),
|
|
157
156
|
/* @__PURE__ */ t(
|
|
158
|
-
|
|
157
|
+
J,
|
|
159
158
|
{
|
|
160
159
|
onClick: s,
|
|
161
|
-
onManageNotifications: () =>
|
|
160
|
+
onManageNotifications: () => c(!0)
|
|
162
161
|
}
|
|
163
162
|
)
|
|
164
163
|
]
|
|
165
164
|
}
|
|
166
165
|
),
|
|
167
166
|
/* @__PURE__ */ t(
|
|
168
|
-
|
|
167
|
+
b,
|
|
169
168
|
{
|
|
170
|
-
ariaLabelClose:
|
|
171
|
-
isOpen:
|
|
172
|
-
onClose: () =>
|
|
173
|
-
title:
|
|
169
|
+
ariaLabelClose: a.close_notification_settings,
|
|
170
|
+
isOpen: i,
|
|
171
|
+
onClose: () => c(!1),
|
|
172
|
+
title: d.notification_settings_title,
|
|
174
173
|
children: /* @__PURE__ */ t(
|
|
175
|
-
|
|
174
|
+
$,
|
|
176
175
|
{
|
|
177
176
|
notificationTypes: e,
|
|
178
|
-
showPersonalDetails: !
|
|
177
|
+
showPersonalDetails: !o.display_user_profile_in_settings
|
|
179
178
|
}
|
|
180
179
|
)
|
|
181
180
|
}
|
|
182
181
|
)
|
|
183
|
-
] }) : /* @__PURE__ */ t(
|
|
182
|
+
] }) : /* @__PURE__ */ t(S, {});
|
|
184
183
|
}
|
|
185
184
|
);
|
|
186
185
|
export {
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
186
|
+
yt as NotificationDrawer,
|
|
187
|
+
J as NotificationList,
|
|
188
|
+
xt as NotificationStore,
|
|
189
|
+
Nt as filterRecentNotifications,
|
|
190
|
+
_t as getNotificationDetailRoute
|
|
192
191
|
};
|