@mx-cartographer/experiences 8.0.0-alpha.bb4 → 8.0.0-alpha.mega2
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 +50 -0
- package/dist/{Account-B4CDD-zq.mjs → Account-CvR2-dSR.mjs} +1 -1
- package/dist/AccountDetailsContent-CitErkuS.mjs +686 -0
- package/dist/{AccountDetailsHeader-DRjFuyJT.mjs → AccountDetailsHeader-BkG3MNYo.mjs} +19 -19
- package/dist/{AccountFields-Cl4KHoSj.mjs → AccountFields-zCMqet85.mjs} +10 -12
- package/dist/AccountListItem-DHrz8Mml.mjs +90 -0
- package/dist/{AccountStore-HbVblv86.mjs → AccountStore-LgfBcYMe.mjs} +101 -75
- package/dist/Accounts-Bzy1_REQ.mjs +9 -0
- package/dist/{BudgetUtil-Jv8h9H9l.mjs → BudgetUtil-BmZXkL0C.mjs} +32 -32
- package/dist/{CashflowStore-CA190BPF.mjs → CashflowStore-D9Dpuz7X.mjs} +25 -18
- package/dist/{Category-Ccoew_sA.mjs → Category-CevNQ03n.mjs} +2 -2
- package/dist/{CategorySelectorDrawer-Dl006GKy.mjs → CategorySelectorDrawer-B-I3kajA.mjs} +27 -27
- package/dist/CategoryStore-CA3tS1BO.mjs +186 -0
- package/dist/CategoryUtil-DUM8NuGO.mjs +78 -0
- package/dist/{ConnectDrawer-DVp54lUH.mjs → ConnectDrawer-BkvlItWx.mjs} +55 -56
- package/dist/{ConnectionsDrawer-Dsc04-4Z.mjs → ConnectionsDrawer-VmuVFHbL.mjs} +5 -5
- package/dist/CurrencyInput-itK0R3wV.mjs +85 -0
- package/dist/{DateUtil-CDPZw_-m.mjs → DateUtil-CBdcsyuk.mjs} +1 -1
- package/dist/{DebtsStore-pL63fmdT.mjs → DebtsStore-Bq-aPy-5.mjs} +3 -3
- package/dist/{Dialog-CDV0kKxj.mjs → Dialog-BPTr3qHE.mjs} +24 -24
- package/dist/Drawer-By9V-B5L.mjs +178 -0
- package/dist/{ExportCsvAction-QhQK4_FU.mjs → ExportCsvAction-Cglo8Mca.mjs} +4 -4
- package/dist/{FinstrongStore-BGf36b0z.mjs → FinstrongStore-BIrX0Xg2.mjs} +56 -56
- package/dist/{GoalStore-C1-w3Y1E.mjs → GoalStore-1P19goZ7.mjs} +111 -151
- package/dist/HeaderCell-DjuifqHJ.mjs +6 -0
- package/dist/{Help-c-zHlDbv.mjs → Help-DhcC-C05.mjs} +8 -8
- package/dist/{Help-DBfsTkAi.mjs → Help-Ea3BlXQp.mjs} +146 -125
- package/dist/{IconBacking-DgT8DCeh.mjs → IconBacking-B9oC6uL2.mjs} +11 -11
- package/dist/LineChart-BF4QA-Lx.mjs +580 -0
- package/dist/{ListItemAction-BNCWQAN_.mjs → ListItemAction-BxTkF6Tz.mjs} +2 -2
- package/dist/Loader-DUaFpDGv.mjs +24 -0
- package/dist/{ManageIncome-8EsStyIQ.mjs → ManageIncome-CaoQl609.mjs} +142 -142
- package/dist/MicroWidgetContainer-r6mtxRer.mjs +52 -0
- package/dist/MiniWidgetContainer-Bg02sF1Y.mjs +71 -0
- package/dist/{NetWorthStore-Bti6u-d9.mjs → NetWorthStore-rC0q7P7t.mjs} +4 -4
- package/dist/NotificationSettings-uzM8tCoH.mjs +674 -0
- package/dist/{NotificationStore-Ck2KdNmT.mjs → NotificationStore-CDX_kqHa.mjs} +14 -22
- package/dist/{OriginalBalanceAction-2Y_3U_mg.mjs → OriginalBalanceAction-C6jdS4ws.mjs} +9 -9
- package/dist/{RecurringSettings-DAncu--R.mjs → RecurringSettings-B4ybrS0B.mjs} +17 -17
- package/dist/{RecurringTransactions-CxcSL1dY.mjs → RecurringTransactions-BqijW_8S.mjs} +79 -79
- package/dist/{RecurringTransactionsStore-CNFxyGB6.mjs → RecurringTransactionsStore-BhBUVm9a.mjs} +81 -91
- package/dist/{ResponsiveButton-Cn6-R7ue.mjs → ResponsiveButton-DZFp78fJ.mjs} +10 -10
- package/dist/SearchBox-B2_zLv8-.mjs +42 -0
- package/dist/{SettingsStore-BASMQSIp.mjs → SettingsStore-krIRNwHK.mjs} +1 -1
- package/dist/{SingleSegmentDonut-7Uy6VEld.mjs → SingleSegmentDonut-BgbLgwHi.mjs} +6 -6
- package/dist/SpendingData-DQ1b9uqq.mjs +53 -0
- package/dist/{SpendingLegend-6FqtMcBV.mjs → SpendingLegend-CDO060GT.mjs} +65 -65
- package/dist/{StatusBar-CPfSXe80.mjs → StatusBar-BK_uYHAB.mjs} +6 -6
- package/dist/{TabContentContainer-CnMXkVqr.mjs → TabContentContainer-j01JYR_7.mjs} +8 -8
- package/dist/TransactionDetails-m5PddMQn.mjs +1380 -0
- package/dist/TransactionStore-PRlwE-TF.mjs +677 -0
- package/dist/TrendsStore-yO7qYv97.mjs +186 -0
- package/dist/{User-BklmOUSd.mjs → User-Cnlegl1N.mjs} +107 -107
- package/dist/{ViewMoreMicroCard-DAkyNRlD.mjs → ViewMoreMicroCard-DwR0v_ll.mjs} +211 -205
- package/dist/{WidgetContainer-CDh9fjpR.mjs → WidgetContainer-CoFDmQRE.mjs} +36 -36
- package/dist/accounts/index.es.js +200 -197
- package/dist/accounts/stores/AccountStore.d.ts +22 -25
- package/dist/accounts/utils/Accounts.d.ts +1 -2
- package/dist/analytics/index.es.js +27 -27
- package/dist/budgets/components/AddBudgets.d.ts +2 -1
- package/dist/budgets/index.es.js +703 -669
- package/dist/budgets/store/BudgetsStore.d.ts +0 -1
- package/dist/cashflow/index.es.js +420 -404
- package/dist/categories/index.es.js +2 -2
- package/dist/categories/stores/CategoryStore.d.ts +3 -6
- package/dist/categories/util/CategoryUtil.d.ts +2 -3
- package/dist/common/components/ErrorBoundary.d.ts +1 -1
- package/dist/common/components/Loader.d.ts +2 -1
- package/dist/common/components/accountfilter/AccountFilterOptions.d.ts +1 -1
- package/dist/common/components/barchart/Bar.d.ts +25 -0
- package/dist/common/components/barchart/BarChart.d.ts +34 -0
- package/dist/common/components/barchart/BarColumn.d.ts +37 -0
- package/dist/common/components/barchart/Legend.d.ts +8 -0
- package/dist/common/components/barchart/Util.d.ts +42 -0
- package/dist/common/components/barchart/index.d.ts +1 -0
- package/dist/common/components/charts/linechart/CustomMark.d.ts +1 -1
- package/dist/common/components/charts/linechart/CustomTooltip.d.ts +6 -1
- package/dist/common/components/charts/stackedlinechart/CustomPointTooltip.d.ts +5 -2
- package/dist/common/components/index.d.ts +1 -0
- package/dist/common/hooks/index.d.ts +2 -0
- package/dist/common/hooks/useAriaLive.d.ts +1 -1
- package/dist/common/hooks/usePrevious.d.ts +2 -0
- package/dist/common/hooks/useWidgetLoadTimer.d.ts +6 -0
- package/dist/common/index.es.js +712 -436
- package/dist/common/stores/AppDataStore.d.ts +1 -3
- package/dist/common/stores/GlobalCopyStore.d.ts +1 -0
- package/dist/common/stores/GlobalStore.d.ts +3 -3
- package/dist/common/stores/GlobalUiStore.d.ts +2 -3
- package/dist/common/stores/UserStore.d.ts +2 -3
- package/dist/common/types/Account.d.ts +6 -9
- package/dist/common/types/localization/TransactionsCopy.d.ts +1 -0
- package/dist/common/utils/Theme.d.ts +3 -1
- package/dist/dashboard/index.es.js +93 -91
- package/dist/debts/components/DebtsChart.d.ts +2 -1
- package/dist/debts/index.es.js +529 -527
- package/dist/{exportTransactionsToCSV-BgV_wTLT.mjs → exportTransactionsToCSV-DuAaI5XA.mjs} +3 -3
- package/dist/finstrong/components/shared/CustomDoubleBarPlot.d.ts +4 -5
- package/dist/finstrong/index.es.js +876 -867
- package/dist/goals/index.es.js +526 -525
- package/dist/goals/stores/GoalStore.d.ts +4 -17
- 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 +13 -9
- package/dist/{hooks-C41HAxM5.mjs → hooks-ZMp65DFz.mjs} +11 -11
- package/dist/investments/index.es.js +534 -531
- package/dist/investments/stores/HoldingStore.d.ts +0 -1
- package/dist/merchants/index.es.js +8 -8
- package/dist/microinsights/MicroCardTemplate.d.ts +16 -0
- package/dist/microinsights/index.d.ts +1 -0
- package/dist/microinsights/index.es.js +101 -14
- package/dist/networth/components/NetWorthChange.d.ts +1 -3
- package/dist/networth/index.es.js +284 -285
- package/dist/notifications/index.es.js +95 -94
- package/dist/notifications/stores/NotificationStore.d.ts +1 -3
- package/dist/recurringtransactions/index.es.js +582 -562
- package/dist/recurringtransactions/stores/RecurringTransactionsStore.d.ts +2 -4
- package/dist/settings/index.es.js +340 -337
- package/dist/spending/index.es.js +281 -268
- package/dist/transactions/components/shared/transactionlist/DateRow.d.ts +7 -0
- package/dist/transactions/index.es.js +253 -255
- package/dist/transactions/stores/TransactionStore.d.ts +77 -21
- package/dist/transactions/stores/UiStore.d.ts +2 -0
- package/dist/trends/components/TrendsTable.d.ts +0 -2
- package/dist/trends/index.es.js +838 -793
- package/dist/trends/utils/TrendsData.d.ts +1 -0
- package/dist/{useAccountDisplayName-CcIp09Xc.mjs → useAccountDisplayName-B7iXTNM8.mjs} +2 -2
- package/dist/{useCombineEvents-kNzLTWCp.mjs → useCombineEvents-CRwX-qWE.mjs} +2 -2
- package/dist/{useInsightsEnabled-CNjP5cfR.mjs → useInsightsEnabled-B7dxpDrX.mjs} +1 -1
- package/dist/{useScreenSize-B5afALev.mjs → useScreenSize-B6JyS_Lj.mjs} +1 -1
- package/dist/useWidgetLoadTimer-hIOioiKx.mjs +19 -0
- package/package.json +57 -52
- package/dist/AccountDetailsContent-adZTkM52.mjs +0 -683
- package/dist/AccountListItem-wgmlex-_.mjs +0 -90
- package/dist/Accounts-CRUehOiy.mjs +0 -27
- package/dist/CategoryStore-MUwRWH9e.mjs +0 -176
- package/dist/CategoryUtil-DfVKKkRf.mjs +0 -80
- package/dist/CurrencyInput-D1cjbdCI.mjs +0 -85
- package/dist/Drawer-BF40nbsH.mjs +0 -163
- package/dist/HeaderCell-P8w6CmfO.mjs +0 -6
- package/dist/LineChart-C1PxNf7P.mjs +0 -581
- package/dist/Loader-Ckqi9Rx6.mjs +0 -21
- package/dist/MicroWidgetContainer-BGpNl5ZS.mjs +0 -45
- package/dist/MiniWidgetContainer-CKzf_Ira.mjs +0 -56
- package/dist/NotificationSettings-B74rQVYC.mjs +0 -672
- package/dist/SearchBox-B7km148n.mjs +0 -39
- package/dist/SkeletonLoader-BaNboJjD.mjs +0 -38
- package/dist/SpendingData-DPQ96k3x.mjs +0 -55
- package/dist/TransactionDetails-Bn0qY5Hw.mjs +0 -1336
- package/dist/TransactionStore-DbwAutwC.mjs +0 -671
- package/dist/TrendsStore-_mRaFUdf.mjs +0 -182
- package/dist/common/components/SkeletonLoader.d.ts +0 -7
- package/dist/recurringtransactions/components/MicroWidgetContent.d.ts +0 -3
|
@@ -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 b } from "../ToggleListItem-ciFTiqRS.mjs";
|
|
2
|
+
import { A as _ } from "../Fetch-DecPFeGU.mjs";
|
|
3
|
+
import { s as L } from "../NotificationStore-CDX_kqHa.mjs";
|
|
4
|
+
import { N as Nt, f as St } from "../NotificationStore-CDX_kqHa.mjs";
|
|
5
|
+
import { jsx as t, jsxs as d, Fragment as x } from "react/jsx-runtime";
|
|
6
|
+
import k, { useEffect as A } 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 y from "@mui/material/Box";
|
|
9
|
+
import D from "@mui/material/Divider";
|
|
10
|
+
import B from "@mui/material/List";
|
|
11
|
+
import { Text as m, InstitutionLogo as T, CategoryIcon as R } from "@mxenabled/mxui";
|
|
12
|
+
import { h as I } from "../DateUtil-CBdcsyuk.mjs";
|
|
13
|
+
import { useTheme as O, Card as G } from "@mui/material";
|
|
14
|
+
import { d as E, i as j, u as g, n as N, b as S, a as z } from "../hooks-ZMp65DFz.mjs";
|
|
15
|
+
import { Icon as U, Settings as F } from "@mxenabled/mx-icons";
|
|
16
|
+
import P from "@mui/material/Button";
|
|
17
|
+
import W from "@mui/material/Stack";
|
|
18
|
+
import { L as w } from "../Loader-DUaFpDGv.mjs";
|
|
19
|
+
import $ from "@mui/material/IconButton";
|
|
20
|
+
import { N as H } from "../NotificationSettings-uzM8tCoH.mjs";
|
|
21
|
+
import { D as C } from "../Drawer-By9V-B5L.mjs";
|
|
22
|
+
const yt = (e) => {
|
|
23
23
|
switch (e) {
|
|
24
|
-
case
|
|
25
|
-
case
|
|
26
|
-
return
|
|
24
|
+
case b.BudgetExceeded:
|
|
25
|
+
case b.BudgetOffTarget:
|
|
26
|
+
return _.BUDGETS;
|
|
27
27
|
case f.DebtPaymentReminder:
|
|
28
28
|
case f.AccountBalanceLow:
|
|
29
29
|
case f.AccountDepositLarge:
|
|
30
|
-
return
|
|
30
|
+
return _.ACCOUNTS;
|
|
31
31
|
case f.TransactionExpenseLarge:
|
|
32
32
|
case f.TransactionFeeCharge:
|
|
33
33
|
case f.InternationalTransaction:
|
|
34
|
-
return
|
|
34
|
+
return _.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(y, { sx: { display: "flex", justifyContent: "center", mt: 12, py: 8 }, children: /* @__PURE__ */ t(m, { bold: !0, variant: "Small", children: I(e) }) }), V = ({ notification: e }) => {
|
|
39
|
+
const { accounts: o } = E(), { budgets: s } = j(), { accounts: a } = g(), i = o.find((l) => l.guid === e.entity_guid), r = s.find((l) => l.guid === e.entity_guid), u = e.entity_guid.includes("GOL"), c = {
|
|
40
40
|
badge: {
|
|
41
41
|
display: "flex",
|
|
42
42
|
alignItems: "center",
|
|
@@ -45,16 +45,16 @@ const _t = (e) => {
|
|
|
45
45
|
marginRight: 12
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
|
-
return
|
|
49
|
-
|
|
48
|
+
return i || u ? /* @__PURE__ */ t("div", { style: c.badge, children: /* @__PURE__ */ t(
|
|
49
|
+
T,
|
|
50
50
|
{
|
|
51
|
-
alt:
|
|
52
|
-
institutionGuid:
|
|
51
|
+
alt: i?.institutionName || a.institution_logo_alt,
|
|
52
|
+
institutionGuid: i?.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: c.badge, children: /* @__PURE__ */ t(R, { categoryGuid: r?.category_guid, size: 36 }) });
|
|
56
|
+
}, X = p(V), Y = ({ notification: e, onClick: o }) => {
|
|
57
|
+
const { updateNotification: s } = N(), a = O(), i = {
|
|
58
58
|
card: {
|
|
59
59
|
alignItems: "center",
|
|
60
60
|
cursor: "pointer",
|
|
@@ -63,14 +63,14 @@ const _t = (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 _t = (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__ */ d(G, { onClick: () => {
|
|
83
|
+
o(e), s({ ...e, has_been_viewed: !0 }).finally();
|
|
84
|
+
}, sx: i.card, children: [
|
|
85
|
+
e.has_been_viewed ? null : /* @__PURE__ */ t("div", { "data-testid": "new-message-dot", style: i.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: "Small", 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: o } = g();
|
|
92
|
+
return /* @__PURE__ */ d(W, { sx: { alignItems: "center", height: "95%", justifyContent: "center" }, children: [
|
|
93
|
+
/* @__PURE__ */ t(U, { name: "notifications", size: 32 }),
|
|
94
|
+
/* @__PURE__ */ t(m, { sx: { pt: 32 }, variant: "H3", children: o.notification_empty_state.no_new_notifications }),
|
|
95
95
|
/* @__PURE__ */ t(
|
|
96
96
|
m,
|
|
97
97
|
{
|
|
@@ -103,89 +103,90 @@ const _t = (e) => {
|
|
|
103
103
|
whiteSpace: "normal"
|
|
104
104
|
},
|
|
105
105
|
variant: "subtitle1",
|
|
106
|
-
children:
|
|
106
|
+
children: o.notification_empty_state.notification_description
|
|
107
107
|
}
|
|
108
108
|
),
|
|
109
|
-
/* @__PURE__ */ t(
|
|
109
|
+
/* @__PURE__ */ t(P, { onClick: e, sx: { p: "12px 16px" }, variant: "outlined", children: o.notification_empty_state.manage_notifications })
|
|
110
110
|
] });
|
|
111
111
|
}
|
|
112
|
-
),
|
|
113
|
-
const { isLoading:
|
|
114
|
-
e?.(
|
|
112
|
+
), J = ({ onClick: e, onManageNotifications: o }) => {
|
|
113
|
+
const { isLoading: s, loadNotifications: a, newNotifications: i, markAllAsViewed: r } = N(), { notifications: u } = g(), { isCopyLoaded: c } = S(), l = (n) => {
|
|
114
|
+
e?.(n);
|
|
115
115
|
};
|
|
116
|
-
return
|
|
117
|
-
|
|
118
|
-
}, [
|
|
119
|
-
|
|
120
|
-
/* @__PURE__ */ t(
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
/* @__PURE__ */ t(
|
|
116
|
+
return A(() => {
|
|
117
|
+
a().then(() => r()).finally();
|
|
118
|
+
}, [a, r]), /* @__PURE__ */ d(x, { children: [
|
|
119
|
+
(!c || s) && /* @__PURE__ */ t(w, { label: u?.loading, size: 40 }),
|
|
120
|
+
c && !s && i.length === 0 && /* @__PURE__ */ t(q, { onManageNotifications: o }),
|
|
121
|
+
/* @__PURE__ */ t(B, { sx: { p: 16 }, children: c && !s && i.slice().sort((n, h) => h.delivered_at - n.delivered_at).map((n, h) => {
|
|
122
|
+
const v = L(h, i);
|
|
123
|
+
return /* @__PURE__ */ d(y, { sx: { mb: 12 }, children: [
|
|
124
|
+
v && /* @__PURE__ */ d(y, { sx: { mb: 12 }, children: [
|
|
125
|
+
/* @__PURE__ */ t(M, { date: n.delivered_at }),
|
|
126
|
+
/* @__PURE__ */ t(D, {})
|
|
126
127
|
] }),
|
|
127
|
-
/* @__PURE__ */ t(Y, { notification:
|
|
128
|
-
] },
|
|
128
|
+
/* @__PURE__ */ t(Y, { notification: n, onClick: l })
|
|
129
|
+
] }, n.guid);
|
|
129
130
|
}) })
|
|
130
131
|
] });
|
|
131
|
-
},
|
|
132
|
-
({ notificationTypes: e, isOpen:
|
|
133
|
-
const { config:
|
|
134
|
-
return
|
|
135
|
-
/* @__PURE__ */
|
|
136
|
-
|
|
132
|
+
}, K = p(J), bt = p(
|
|
133
|
+
({ notificationTypes: e, isOpen: o, onClose: s, onNotificationClick: a }) => {
|
|
134
|
+
const { config: i } = z(), { notifications: r, settings: u } = g(), { isCopyLoaded: c } = S(), [l, n] = k.useState(!1);
|
|
135
|
+
return c ? /* @__PURE__ */ d(x, { children: [
|
|
136
|
+
/* @__PURE__ */ d(
|
|
137
|
+
C,
|
|
137
138
|
{
|
|
138
|
-
ariaLabelClose:
|
|
139
|
-
isOpen:
|
|
140
|
-
onClose:
|
|
141
|
-
title:
|
|
139
|
+
ariaLabelClose: r.close_notifications,
|
|
140
|
+
isOpen: o,
|
|
141
|
+
onClose: s,
|
|
142
|
+
title: r.notifications_title,
|
|
142
143
|
children: [
|
|
143
144
|
/* @__PURE__ */ t(
|
|
144
|
-
|
|
145
|
+
$,
|
|
145
146
|
{
|
|
146
|
-
"aria-label":
|
|
147
|
-
onClick: () =>
|
|
147
|
+
"aria-label": u.open_notification_settings_btn_aria,
|
|
148
|
+
onClick: () => n(!0),
|
|
148
149
|
sx: {
|
|
149
150
|
position: "absolute",
|
|
150
151
|
right: 8,
|
|
151
152
|
top: 8
|
|
152
153
|
},
|
|
153
|
-
children: /* @__PURE__ */ t(
|
|
154
|
+
children: /* @__PURE__ */ t(F, { size: 24 })
|
|
154
155
|
}
|
|
155
156
|
),
|
|
156
157
|
/* @__PURE__ */ t(
|
|
157
|
-
|
|
158
|
+
K,
|
|
158
159
|
{
|
|
159
|
-
onClick:
|
|
160
|
-
onManageNotifications: () =>
|
|
160
|
+
onClick: a,
|
|
161
|
+
onManageNotifications: () => n(!0)
|
|
161
162
|
}
|
|
162
163
|
)
|
|
163
164
|
]
|
|
164
165
|
}
|
|
165
166
|
),
|
|
166
167
|
/* @__PURE__ */ t(
|
|
167
|
-
|
|
168
|
+
C,
|
|
168
169
|
{
|
|
169
|
-
ariaLabelClose:
|
|
170
|
-
isOpen:
|
|
171
|
-
onClose: () =>
|
|
172
|
-
title:
|
|
170
|
+
ariaLabelClose: r.close_notification_settings,
|
|
171
|
+
isOpen: l,
|
|
172
|
+
onClose: () => n(!1),
|
|
173
|
+
title: u.notification_settings_title,
|
|
173
174
|
children: /* @__PURE__ */ t(
|
|
174
|
-
|
|
175
|
+
H,
|
|
175
176
|
{
|
|
176
177
|
notificationTypes: e,
|
|
177
|
-
showPersonalDetails: !
|
|
178
|
+
showPersonalDetails: !i.display_user_profile_in_settings
|
|
178
179
|
}
|
|
179
180
|
)
|
|
180
181
|
}
|
|
181
182
|
)
|
|
182
|
-
] }) : /* @__PURE__ */ t(
|
|
183
|
+
] }) : /* @__PURE__ */ t(w, {});
|
|
183
184
|
}
|
|
184
185
|
);
|
|
185
186
|
export {
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
187
|
+
bt as NotificationDrawer,
|
|
188
|
+
K as NotificationList,
|
|
189
|
+
Nt as NotificationStore,
|
|
190
|
+
St as filterRecentNotifications,
|
|
191
|
+
yt as getNotificationDetailRoute
|
|
191
192
|
};
|
|
@@ -4,11 +4,9 @@ export declare class NotificationStore {
|
|
|
4
4
|
api: NotificationApi;
|
|
5
5
|
isLoading: boolean;
|
|
6
6
|
notifications: Notification[];
|
|
7
|
-
|
|
7
|
+
recentNotifications: Notification[];
|
|
8
8
|
constructor(globalStore: GlobalStore);
|
|
9
9
|
get newNotifications(): Notification[];
|
|
10
|
-
get recentNotifications(): Notification[];
|
|
11
|
-
setNotifications: (notifications: Notification[]) => void;
|
|
12
10
|
loadNotifications: () => Promise<void>;
|
|
13
11
|
markAllAsViewed: () => Promise<void>;
|
|
14
12
|
updateNotification: (notification: Notification) => Promise<void>;
|