@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.
Files changed (154) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/dist/{Account-B4CDD-zq.mjs → Account-CvR2-dSR.mjs} +1 -1
  3. package/dist/AccountDetailsContent-CitErkuS.mjs +686 -0
  4. package/dist/{AccountDetailsHeader-DRjFuyJT.mjs → AccountDetailsHeader-BkG3MNYo.mjs} +19 -19
  5. package/dist/{AccountFields-Cl4KHoSj.mjs → AccountFields-zCMqet85.mjs} +10 -12
  6. package/dist/AccountListItem-DHrz8Mml.mjs +90 -0
  7. package/dist/{AccountStore-HbVblv86.mjs → AccountStore-LgfBcYMe.mjs} +101 -75
  8. package/dist/Accounts-Bzy1_REQ.mjs +9 -0
  9. package/dist/{BudgetUtil-Jv8h9H9l.mjs → BudgetUtil-BmZXkL0C.mjs} +32 -32
  10. package/dist/{CashflowStore-CA190BPF.mjs → CashflowStore-D9Dpuz7X.mjs} +25 -18
  11. package/dist/{Category-Ccoew_sA.mjs → Category-CevNQ03n.mjs} +2 -2
  12. package/dist/{CategorySelectorDrawer-Dl006GKy.mjs → CategorySelectorDrawer-B-I3kajA.mjs} +27 -27
  13. package/dist/CategoryStore-CA3tS1BO.mjs +186 -0
  14. package/dist/CategoryUtil-DUM8NuGO.mjs +78 -0
  15. package/dist/{ConnectDrawer-DVp54lUH.mjs → ConnectDrawer-BkvlItWx.mjs} +55 -56
  16. package/dist/{ConnectionsDrawer-Dsc04-4Z.mjs → ConnectionsDrawer-VmuVFHbL.mjs} +5 -5
  17. package/dist/CurrencyInput-itK0R3wV.mjs +85 -0
  18. package/dist/{DateUtil-CDPZw_-m.mjs → DateUtil-CBdcsyuk.mjs} +1 -1
  19. package/dist/{DebtsStore-pL63fmdT.mjs → DebtsStore-Bq-aPy-5.mjs} +3 -3
  20. package/dist/{Dialog-CDV0kKxj.mjs → Dialog-BPTr3qHE.mjs} +24 -24
  21. package/dist/Drawer-By9V-B5L.mjs +178 -0
  22. package/dist/{ExportCsvAction-QhQK4_FU.mjs → ExportCsvAction-Cglo8Mca.mjs} +4 -4
  23. package/dist/{FinstrongStore-BGf36b0z.mjs → FinstrongStore-BIrX0Xg2.mjs} +56 -56
  24. package/dist/{GoalStore-C1-w3Y1E.mjs → GoalStore-1P19goZ7.mjs} +111 -151
  25. package/dist/HeaderCell-DjuifqHJ.mjs +6 -0
  26. package/dist/{Help-c-zHlDbv.mjs → Help-DhcC-C05.mjs} +8 -8
  27. package/dist/{Help-DBfsTkAi.mjs → Help-Ea3BlXQp.mjs} +146 -125
  28. package/dist/{IconBacking-DgT8DCeh.mjs → IconBacking-B9oC6uL2.mjs} +11 -11
  29. package/dist/LineChart-BF4QA-Lx.mjs +580 -0
  30. package/dist/{ListItemAction-BNCWQAN_.mjs → ListItemAction-BxTkF6Tz.mjs} +2 -2
  31. package/dist/Loader-DUaFpDGv.mjs +24 -0
  32. package/dist/{ManageIncome-8EsStyIQ.mjs → ManageIncome-CaoQl609.mjs} +142 -142
  33. package/dist/MicroWidgetContainer-r6mtxRer.mjs +52 -0
  34. package/dist/MiniWidgetContainer-Bg02sF1Y.mjs +71 -0
  35. package/dist/{NetWorthStore-Bti6u-d9.mjs → NetWorthStore-rC0q7P7t.mjs} +4 -4
  36. package/dist/NotificationSettings-uzM8tCoH.mjs +674 -0
  37. package/dist/{NotificationStore-Ck2KdNmT.mjs → NotificationStore-CDX_kqHa.mjs} +14 -22
  38. package/dist/{OriginalBalanceAction-2Y_3U_mg.mjs → OriginalBalanceAction-C6jdS4ws.mjs} +9 -9
  39. package/dist/{RecurringSettings-DAncu--R.mjs → RecurringSettings-B4ybrS0B.mjs} +17 -17
  40. package/dist/{RecurringTransactions-CxcSL1dY.mjs → RecurringTransactions-BqijW_8S.mjs} +79 -79
  41. package/dist/{RecurringTransactionsStore-CNFxyGB6.mjs → RecurringTransactionsStore-BhBUVm9a.mjs} +81 -91
  42. package/dist/{ResponsiveButton-Cn6-R7ue.mjs → ResponsiveButton-DZFp78fJ.mjs} +10 -10
  43. package/dist/SearchBox-B2_zLv8-.mjs +42 -0
  44. package/dist/{SettingsStore-BASMQSIp.mjs → SettingsStore-krIRNwHK.mjs} +1 -1
  45. package/dist/{SingleSegmentDonut-7Uy6VEld.mjs → SingleSegmentDonut-BgbLgwHi.mjs} +6 -6
  46. package/dist/SpendingData-DQ1b9uqq.mjs +53 -0
  47. package/dist/{SpendingLegend-6FqtMcBV.mjs → SpendingLegend-CDO060GT.mjs} +65 -65
  48. package/dist/{StatusBar-CPfSXe80.mjs → StatusBar-BK_uYHAB.mjs} +6 -6
  49. package/dist/{TabContentContainer-CnMXkVqr.mjs → TabContentContainer-j01JYR_7.mjs} +8 -8
  50. package/dist/TransactionDetails-m5PddMQn.mjs +1380 -0
  51. package/dist/TransactionStore-PRlwE-TF.mjs +677 -0
  52. package/dist/TrendsStore-yO7qYv97.mjs +186 -0
  53. package/dist/{User-BklmOUSd.mjs → User-Cnlegl1N.mjs} +107 -107
  54. package/dist/{ViewMoreMicroCard-DAkyNRlD.mjs → ViewMoreMicroCard-DwR0v_ll.mjs} +211 -205
  55. package/dist/{WidgetContainer-CDh9fjpR.mjs → WidgetContainer-CoFDmQRE.mjs} +36 -36
  56. package/dist/accounts/index.es.js +200 -197
  57. package/dist/accounts/stores/AccountStore.d.ts +22 -25
  58. package/dist/accounts/utils/Accounts.d.ts +1 -2
  59. package/dist/analytics/index.es.js +27 -27
  60. package/dist/budgets/components/AddBudgets.d.ts +2 -1
  61. package/dist/budgets/index.es.js +703 -669
  62. package/dist/budgets/store/BudgetsStore.d.ts +0 -1
  63. package/dist/cashflow/index.es.js +420 -404
  64. package/dist/categories/index.es.js +2 -2
  65. package/dist/categories/stores/CategoryStore.d.ts +3 -6
  66. package/dist/categories/util/CategoryUtil.d.ts +2 -3
  67. package/dist/common/components/ErrorBoundary.d.ts +1 -1
  68. package/dist/common/components/Loader.d.ts +2 -1
  69. package/dist/common/components/accountfilter/AccountFilterOptions.d.ts +1 -1
  70. package/dist/common/components/barchart/Bar.d.ts +25 -0
  71. package/dist/common/components/barchart/BarChart.d.ts +34 -0
  72. package/dist/common/components/barchart/BarColumn.d.ts +37 -0
  73. package/dist/common/components/barchart/Legend.d.ts +8 -0
  74. package/dist/common/components/barchart/Util.d.ts +42 -0
  75. package/dist/common/components/barchart/index.d.ts +1 -0
  76. package/dist/common/components/charts/linechart/CustomMark.d.ts +1 -1
  77. package/dist/common/components/charts/linechart/CustomTooltip.d.ts +6 -1
  78. package/dist/common/components/charts/stackedlinechart/CustomPointTooltip.d.ts +5 -2
  79. package/dist/common/components/index.d.ts +1 -0
  80. package/dist/common/hooks/index.d.ts +2 -0
  81. package/dist/common/hooks/useAriaLive.d.ts +1 -1
  82. package/dist/common/hooks/usePrevious.d.ts +2 -0
  83. package/dist/common/hooks/useWidgetLoadTimer.d.ts +6 -0
  84. package/dist/common/index.es.js +712 -436
  85. package/dist/common/stores/AppDataStore.d.ts +1 -3
  86. package/dist/common/stores/GlobalCopyStore.d.ts +1 -0
  87. package/dist/common/stores/GlobalStore.d.ts +3 -3
  88. package/dist/common/stores/GlobalUiStore.d.ts +2 -3
  89. package/dist/common/stores/UserStore.d.ts +2 -3
  90. package/dist/common/types/Account.d.ts +6 -9
  91. package/dist/common/types/localization/TransactionsCopy.d.ts +1 -0
  92. package/dist/common/utils/Theme.d.ts +3 -1
  93. package/dist/dashboard/index.es.js +93 -91
  94. package/dist/debts/components/DebtsChart.d.ts +2 -1
  95. package/dist/debts/index.es.js +529 -527
  96. package/dist/{exportTransactionsToCSV-BgV_wTLT.mjs → exportTransactionsToCSV-DuAaI5XA.mjs} +3 -3
  97. package/dist/finstrong/components/shared/CustomDoubleBarPlot.d.ts +4 -5
  98. package/dist/finstrong/index.es.js +876 -867
  99. package/dist/goals/index.es.js +526 -525
  100. package/dist/goals/stores/GoalStore.d.ts +4 -17
  101. package/dist/help/components/content/BottomImageContent.d.ts +1 -1
  102. package/dist/help/components/content/LeftImageContent.d.ts +1 -1
  103. package/dist/help/components/content/RightImageContent.d.ts +1 -1
  104. package/dist/help/components/content/TopImageContent.d.ts +1 -1
  105. package/dist/help/index.es.js +13 -9
  106. package/dist/{hooks-C41HAxM5.mjs → hooks-ZMp65DFz.mjs} +11 -11
  107. package/dist/investments/index.es.js +534 -531
  108. package/dist/investments/stores/HoldingStore.d.ts +0 -1
  109. package/dist/merchants/index.es.js +8 -8
  110. package/dist/microinsights/MicroCardTemplate.d.ts +16 -0
  111. package/dist/microinsights/index.d.ts +1 -0
  112. package/dist/microinsights/index.es.js +101 -14
  113. package/dist/networth/components/NetWorthChange.d.ts +1 -3
  114. package/dist/networth/index.es.js +284 -285
  115. package/dist/notifications/index.es.js +95 -94
  116. package/dist/notifications/stores/NotificationStore.d.ts +1 -3
  117. package/dist/recurringtransactions/index.es.js +582 -562
  118. package/dist/recurringtransactions/stores/RecurringTransactionsStore.d.ts +2 -4
  119. package/dist/settings/index.es.js +340 -337
  120. package/dist/spending/index.es.js +281 -268
  121. package/dist/transactions/components/shared/transactionlist/DateRow.d.ts +7 -0
  122. package/dist/transactions/index.es.js +253 -255
  123. package/dist/transactions/stores/TransactionStore.d.ts +77 -21
  124. package/dist/transactions/stores/UiStore.d.ts +2 -0
  125. package/dist/trends/components/TrendsTable.d.ts +0 -2
  126. package/dist/trends/index.es.js +838 -793
  127. package/dist/trends/utils/TrendsData.d.ts +1 -0
  128. package/dist/{useAccountDisplayName-CcIp09Xc.mjs → useAccountDisplayName-B7iXTNM8.mjs} +2 -2
  129. package/dist/{useCombineEvents-kNzLTWCp.mjs → useCombineEvents-CRwX-qWE.mjs} +2 -2
  130. package/dist/{useInsightsEnabled-CNjP5cfR.mjs → useInsightsEnabled-B7dxpDrX.mjs} +1 -1
  131. package/dist/{useScreenSize-B5afALev.mjs → useScreenSize-B6JyS_Lj.mjs} +1 -1
  132. package/dist/useWidgetLoadTimer-hIOioiKx.mjs +19 -0
  133. package/package.json +57 -52
  134. package/dist/AccountDetailsContent-adZTkM52.mjs +0 -683
  135. package/dist/AccountListItem-wgmlex-_.mjs +0 -90
  136. package/dist/Accounts-CRUehOiy.mjs +0 -27
  137. package/dist/CategoryStore-MUwRWH9e.mjs +0 -176
  138. package/dist/CategoryUtil-DfVKKkRf.mjs +0 -80
  139. package/dist/CurrencyInput-D1cjbdCI.mjs +0 -85
  140. package/dist/Drawer-BF40nbsH.mjs +0 -163
  141. package/dist/HeaderCell-P8w6CmfO.mjs +0 -6
  142. package/dist/LineChart-C1PxNf7P.mjs +0 -581
  143. package/dist/Loader-Ckqi9Rx6.mjs +0 -21
  144. package/dist/MicroWidgetContainer-BGpNl5ZS.mjs +0 -45
  145. package/dist/MiniWidgetContainer-CKzf_Ira.mjs +0 -56
  146. package/dist/NotificationSettings-B74rQVYC.mjs +0 -672
  147. package/dist/SearchBox-B7km148n.mjs +0 -39
  148. package/dist/SkeletonLoader-BaNboJjD.mjs +0 -38
  149. package/dist/SpendingData-DPQ96k3x.mjs +0 -55
  150. package/dist/TransactionDetails-Bn0qY5Hw.mjs +0 -1336
  151. package/dist/TransactionStore-DbwAutwC.mjs +0 -671
  152. package/dist/TrendsStore-_mRaFUdf.mjs +0 -182
  153. package/dist/common/components/SkeletonLoader.d.ts +0 -7
  154. package/dist/recurringtransactions/components/MicroWidgetContent.d.ts +0 -3
@@ -1,42 +1,42 @@
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";
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 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) => {
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 y.BudgetExceeded:
25
- case y.BudgetOffTarget:
26
- return g.BUDGETS;
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 g.ACCOUNTS;
30
+ return _.ACCOUNTS;
31
31
  case f.TransactionExpenseLarge:
32
32
  case f.TransactionFeeCharge:
33
33
  case f.InternationalTransaction:
34
- return g.TRANSACTIONS;
34
+ return _.TRANSACTIONS;
35
35
  default:
36
36
  return null;
37
37
  }
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 = {
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 o || d ? /* @__PURE__ */ t("div", { style: u.badge, children: /* @__PURE__ */ t(
49
- B,
48
+ return i || u ? /* @__PURE__ */ t("div", { style: c.badge, children: /* @__PURE__ */ t(
49
+ T,
50
50
  {
51
- alt: o?.institutionName || s.institution_logo_alt,
52
- institutionGuid: o?.institution_guid ?? "",
51
+ alt: i?.institutionName || a.institution_logo_alt,
52
+ institutionGuid: i?.institution_guid ?? "",
53
53
  size: 33
54
54
  }
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 = {
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: s.palette.background.default
66
+ backgroundColor: a.palette.background.default
67
67
  },
68
68
  "&:hover": {
69
- backgroundColor: s.palette.background.default
69
+ backgroundColor: a.palette.background.default
70
70
  }
71
71
  },
72
72
  dot: {
73
- backgroundColor: s.palette.primary.main,
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__ */ 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 }),
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: "body2", children: e.content })
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: 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 }),
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: n.notification_empty_state.notification_description
106
+ children: o.notification_empty_state.notification_description
107
107
  }
108
108
  ),
109
- /* @__PURE__ */ t(F, { onClick: e, sx: { p: "12px 16px" }, variant: "outlined", children: n.notification_empty_state.manage_notifications })
109
+ /* @__PURE__ */ t(P, { onClick: e, sx: { p: "12px 16px" }, variant: "outlined", children: o.notification_empty_state.manage_notifications })
110
110
  ] });
111
111
  }
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);
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 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, {})
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: i, onClick: u })
128
- ] }, i.guid);
128
+ /* @__PURE__ */ t(Y, { notification: n, onClick: l })
129
+ ] }, n.guid);
129
130
  }) })
130
131
  ] });
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,
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: a.close_notifications,
139
- isOpen: n,
140
- onClose: r,
141
- title: a.notifications_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
- W,
145
+ $,
145
146
  {
146
- "aria-label": d.open_notification_settings_btn_aria,
147
- onClick: () => c(!0),
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(U, { size: 24 })
154
+ children: /* @__PURE__ */ t(F, { size: 24 })
154
155
  }
155
156
  ),
156
157
  /* @__PURE__ */ t(
157
- J,
158
+ K,
158
159
  {
159
- onClick: s,
160
- onManageNotifications: () => c(!0)
160
+ onClick: a,
161
+ onManageNotifications: () => n(!0)
161
162
  }
162
163
  )
163
164
  ]
164
165
  }
165
166
  ),
166
167
  /* @__PURE__ */ t(
167
- b,
168
+ C,
168
169
  {
169
- ariaLabelClose: a.close_notification_settings,
170
- isOpen: i,
171
- onClose: () => c(!1),
172
- title: d.notification_settings_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: !o.display_user_profile_in_settings
178
+ showPersonalDetails: !i.display_user_profile_in_settings
178
179
  }
179
180
  )
180
181
  }
181
182
  )
182
- ] }) : /* @__PURE__ */ t(S, {});
183
+ ] }) : /* @__PURE__ */ t(w, {});
183
184
  }
184
185
  );
185
186
  export {
186
- yt as NotificationDrawer,
187
- J as NotificationList,
188
- xt as NotificationStore,
189
- Nt as filterRecentNotifications,
190
- _t as getNotificationDetailRoute
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
- notificationsLoaded: boolean;
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>;