@mx-cartographer/experiences 8.0.0-alpha.bb3 → 8.0.0-alpha.sms1
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-BDXA6PWh.mjs} +1 -1
- package/dist/{AccountDetailsContent-CAM9y39M.mjs → AccountDetailsContent-CUztd3-b.mjs} +87 -83
- package/dist/AccountDetailsHeader-i3KFhNuo.mjs +87 -0
- package/dist/{AccountFields-C9FlatNb.mjs → AccountFields-QZspYAji.mjs} +6 -6
- package/dist/{AccountListItem-JFMZROh7.mjs → AccountListItem-DX5upmCS.mjs} +5 -5
- package/dist/{AccountStore-BgNOyMdp.mjs → AccountStore-BcnDpyLL.mjs} +19 -8
- package/dist/{Accounts-BRf_YeTf.mjs → Accounts-DXfZotRC.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-Df2nII9u.mjs} +2 -2
- package/dist/{CategorySelectorDrawer-DUe4lH5-.mjs → CategorySelectorDrawer-DqJK_rrL.mjs} +23 -21
- package/dist/{CategoryStore-yHI0hWmK.mjs → CategoryStore-DTgyAMM7.mjs} +12 -10
- package/dist/{CategoryUtil-pZRIYOgN.mjs → CategoryUtil-C5cR-nfQ.mjs} +1 -1
- package/dist/{ConnectDrawer-BQNs-hjk.mjs → ConnectDrawer-BIbTqYOH.mjs} +2 -2
- package/dist/{ConnectionsDrawer-ByGQE7D5.mjs → ConnectionsDrawer-BFfY3_zB.mjs} +3 -3
- package/dist/{CurrencyInput-DUsQbkXb.mjs → CurrencyInput-BFKcs-_K.mjs} +2 -2
- package/dist/{CurrencyText-kyC1aseI.mjs → CurrencyText-Dr0EZ7bp.mjs} +1 -1
- package/dist/{DateUtil-BcuH7ErC.mjs → DateUtil-CBdcsyuk.mjs} +3 -3
- package/dist/{DebtsStore-C9bblOgW.mjs → DebtsStore-BbJB0nmu.mjs} +1 -1
- package/dist/{Dialog-CWW597AF.mjs → Dialog-BPTr3qHE.mjs} +2 -2
- package/dist/{Donut-oaQFlbit.mjs → Donut-Dmy3JTWd.mjs} +12 -12
- package/dist/Drawer-BEtCk82g.mjs +163 -0
- package/dist/{EmptyState-DA_lfRBv.mjs → EmptyState-DoxNUae-.mjs} +24 -22
- package/dist/{ExportCsvAction-sX8Rg4Ov.mjs → ExportCsvAction-DzTrtPzk.mjs} +3 -3
- package/dist/{Fetch-87LIQbEA.mjs → Fetch-DecPFeGU.mjs} +24 -22
- package/dist/FinstrongStore-BIrX0Xg2.mjs +451 -0
- package/dist/{GoalStore-D-aB35SY.mjs → GoalStore-DpWY3gVb.mjs} +5 -5
- package/dist/{Help-B6dIcujh.mjs → Help-BnPXM_N2.mjs} +2 -2
- package/dist/LineChart-bc1D9xBE.mjs +581 -0
- package/dist/{ListItemAction-DHa3KJPs.mjs → ListItemAction-uobBrm_a.mjs} +10 -10
- package/dist/{ManageIncome-1s_q5W4X.mjs → ManageIncome-NpXHhO1n.mjs} +177 -174
- package/dist/{MerchantStore-DrFvsUyy.mjs → MerchantStore-WvZ4gnQe.mjs} +1 -1
- package/dist/{MicroWidgetContainer-DpeqN9n3.mjs → MicroWidgetContainer-DEiRnYVa.mjs} +1 -1
- package/dist/{MiniWidgetContainer-D0gfmbaF.mjs → MiniWidgetContainer-CmXpTylX.mjs} +1 -1
- package/dist/{NetWorthStore-DCsTZpuS.mjs → NetWorthStore-lsuhEpn6.mjs} +2 -2
- package/dist/{NotificationSettings-DqrkNMod.mjs → NotificationSettings-CNmJWVeI.mjs} +241 -238
- 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-DK8_LkPz.mjs} +4 -4
- package/dist/{RecurringSettings-A_rAGCTP.mjs → RecurringSettings-CqZh1SQa.mjs} +17 -17
- package/dist/{RecurringTransactions-DK8dWldr.mjs → RecurringTransactions-BKcYmpv3.mjs} +46 -45
- package/dist/{RecurringTransactionsStore-C4YOD7_D.mjs → RecurringTransactionsStore-Ni5tSQIO.mjs} +80 -73
- package/dist/{SettingsStore-BcgS_Ohv.mjs → SettingsStore-krIRNwHK.mjs} +3 -3
- package/dist/SkeletonLoader-BaNboJjD.mjs +38 -0
- package/dist/{SpendingData-D5vsfYKo.mjs → SpendingData-BuJ03S9d.mjs} +16 -16
- package/dist/SpendingLegend-CjX-hX2O.mjs +193 -0
- package/dist/{ToggleListItem-r0Kx56wF.mjs → ToggleListItem-ciFTiqRS.mjs} +19 -14
- package/dist/TransactionApi-CjBoLleL.mjs +86 -0
- package/dist/TransactionDetails-5M2vfr59.mjs +1379 -0
- package/dist/{TransactionStore-ai3uII_r.mjs → TransactionStore-D-Q3BU9Z.mjs} +119 -121
- package/dist/TrendsStore-BW9FGQeE.mjs +182 -0
- package/dist/{User-BQUxBeZV.mjs → User-wXzDI4M8.mjs} +2 -2
- package/dist/{ViewMoreMicroCard-SCn2wt4i.mjs → ViewMoreMicroCard-C0832BMe.mjs} +702 -723
- package/dist/{WidgetContainer-BHWANqT4.mjs → WidgetContainer-BhQ1Kx2z.mjs} +4 -4
- 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 +229 -222
- package/dist/accounts/stores/AccountStore.d.ts +2 -0
- package/dist/analytics/index.es.js +2 -2
- package/dist/budgets/index.es.js +380 -382
- package/dist/cashflow/index.es.js +405 -413
- 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/Select.d.ts +4 -2
- 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 +4 -0
- package/dist/common/components/drawer/Drawer.d.ts +3 -0
- package/dist/common/components/drawer/Footer.d.ts +17 -0
- package/dist/common/hooks/index.d.ts +0 -1
- package/dist/common/hooks/useAriaLive.d.ts +1 -1
- package/dist/common/index.es.js +320 -321
- 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/dashboard/index.es.js +2 -2
- package/dist/debts/index.es.js +506 -498
- package/dist/exportTransactionsToCSV-Cz2t0lmA.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 +3171 -1063
- package/dist/finstrong/stores/FinstrongStore.d.ts +25 -2
- package/dist/finstrong/util/finstrongUtils.d.ts +58 -1
- package/dist/goals/index.es.js +566 -562
- package/dist/help/index.es.js +3 -3
- package/dist/{hooks-D6XlXHf4.mjs → hooks-C41HAxM5.mjs} +3 -3
- package/dist/insights/index.es.js +1 -1
- package/dist/investments/index.es.js +437 -435
- package/dist/merchants/index.es.js +2 -2
- 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/index.es.js +188 -186
- package/dist/notifications/index.es.js +95 -96
- package/dist/recurringtransactions/components/MicroWidgetContent.d.ts +3 -0
- package/dist/recurringtransactions/index.es.js +584 -560
- package/dist/recurringtransactions/stores/RecurringTransactionsStore.d.ts +1 -0
- package/dist/settings/index.es.js +286 -280
- package/dist/spending/index.es.js +269 -421
- 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 +226 -220
- package/dist/transactions/stores/TransactionStore.d.ts +1 -1
- package/dist/transactions/stores/UiStore.d.ts +0 -2
- package/dist/trends/index.es.js +963 -586
- package/dist/{useAccountDisplayName-BUAApBIb.mjs → useAccountDisplayName-CFNF8766.mjs} +2 -2
- package/dist/{useCombineEvents-BUDIR1ba.mjs → useCombineEvents-CRwX-qWE.mjs} +1 -1
- package/dist/{useInsightsEnabled-DBpwEq10.mjs → useInsightsEnabled-CNjP5cfR.mjs} +1 -1
- package/package.json +7 -7
- package/dist/AccountDetailsHeader-JtSX6Uf9.mjs +0 -120
- package/dist/Drawer-kEE73B87.mjs +0 -113
- package/dist/FinstrongStore-F2c607dj.mjs +0 -101
- package/dist/LineChart-D4GI7nVh.mjs +0 -541
- package/dist/TransactionApi-B3Tksf7L.mjs +0 -86
- package/dist/TransactionDetails-oP1eSuiS.mjs +0 -1334
- package/dist/TrendsStore-DCYbpXPO.mjs +0 -559
- 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/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-CBdcsyuk.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-DUaFpDGv.mjs";
|
|
19
|
+
import W from "@mui/material/IconButton";
|
|
20
|
+
import { N as $ } from "../NotificationSettings-CNmJWVeI.mjs";
|
|
21
|
+
import { D as b } from "../Drawer-BEtCk82g.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
|
-
},
|
|
39
|
-
const { accounts:
|
|
38
|
+
}, H = ({ date: e }) => /* @__PURE__ */ t(h, { sx: { display: "flex", justifyContent: "center", mt: 12, py: 8 }, children: /* @__PURE__ */ t(m, { bold: !0, variant: "Small", children: I(e) }) }), M = ({ notification: e }) => {
|
|
39
|
+
const { accounts: n } = G(), { budgets: r } = E(), { accounts: a } = _(), o = n.find((i) => i.guid === e.entity_guid), s = 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 || a.institution_logo_alt,
|
|
52
|
+
institutionGuid: o?.institution_guid ?? "",
|
|
53
53
|
size: 33
|
|
54
54
|
}
|
|
55
|
-
) }) : /* @__PURE__ */ t("div", { style:
|
|
56
|
-
},
|
|
57
|
-
const { updateNotification:
|
|
55
|
+
) }) : /* @__PURE__ */ t("div", { style: u.badge, children: /* @__PURE__ */ t(T, { categoryGuid: s?.category_guid, size: 36 }) });
|
|
56
|
+
}, V = p(M), X = ({ notification: e, onClick: n }) => {
|
|
57
|
+
const { updateNotification: r } = x(), a = R(), o = {
|
|
58
58
|
card: {
|
|
59
59
|
alignItems: "center",
|
|
60
60
|
cursor: "pointer",
|
|
@@ -63,14 +63,14 @@ const yt = (e) => {
|
|
|
63
63
|
paddingX: 24,
|
|
64
64
|
paddingY: 12,
|
|
65
65
|
"&:focus": {
|
|
66
|
-
backgroundColor:
|
|
66
|
+
backgroundColor: a.palette.background.default
|
|
67
67
|
},
|
|
68
68
|
"&:hover": {
|
|
69
|
-
backgroundColor:
|
|
69
|
+
backgroundColor: a.palette.background.default
|
|
70
70
|
}
|
|
71
71
|
},
|
|
72
72
|
dot: {
|
|
73
|
-
backgroundColor:
|
|
73
|
+
backgroundColor: a.palette.primary.main,
|
|
74
74
|
borderRadius: "100%",
|
|
75
75
|
flex: "0 0 auto",
|
|
76
76
|
marginLeft: -8,
|
|
@@ -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:
|
|
86
|
-
/* @__PURE__ */ t(
|
|
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
|
+
/* @__PURE__ */ t(V, { notification: e }),
|
|
87
87
|
/* @__PURE__ */ t(m, { bold: !e.has_been_viewed, truncate: !1, variant: "Small", children: e.content })
|
|
88
88
|
] });
|
|
89
|
-
},
|
|
89
|
+
}, Y = p(
|
|
90
90
|
({ onManageNotifications: e }) => {
|
|
91
|
-
const { notifications:
|
|
92
|
-
return /* @__PURE__ */
|
|
93
|
-
/* @__PURE__ */ t(
|
|
94
|
-
/* @__PURE__ */ t(m, { sx: { pt: 32 }, variant: "H3", children:
|
|
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
|
+
), q = ({ onClick: e, onManageNotifications: n }) => {
|
|
113
|
+
const { isLoading: r, loadNotifications: a, newNotifications: o, markAllAsViewed: s } = 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
|
+
a().then(() => s()).finally();
|
|
118
|
+
}, []), !d || r ? /* @__PURE__ */ t(S, {}) : /* @__PURE__ */ l(C, { children: [
|
|
119
|
+
o.length === 0 && /* @__PURE__ */ t(Y, { 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(H, { date: i.delivered_at }),
|
|
125
|
+
/* @__PURE__ */ t(A, {})
|
|
127
126
|
] }),
|
|
128
|
-
/* @__PURE__ */ t(
|
|
129
|
-
] },
|
|
127
|
+
/* @__PURE__ */ t(X, { 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(q), yt = p(
|
|
132
|
+
({ notificationTypes: e, isOpen: n, onClose: r, onNotificationClick: a }) => {
|
|
133
|
+
const { config: o } = j(), { notifications: s, 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: s.close_notifications,
|
|
139
|
+
isOpen: n,
|
|
140
|
+
onClose: r,
|
|
141
|
+
title: s.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
|
-
onClick:
|
|
161
|
-
onManageNotifications: () =>
|
|
159
|
+
onClick: a,
|
|
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: s.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
|
};
|