@mx-cartographer/experiences 8.0.0-alpha.sms2 → 9.0.0-alpha.mega1

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 (139) hide show
  1. package/CHANGELOG.md +217 -0
  2. package/dist/{Account-Cp30A3ad.mjs → Account-BIKn4XEZ.mjs} +1 -1
  3. package/dist/Account-CMjOp7S2.mjs +118 -0
  4. package/dist/AccountApi-DgZ8ILj1.mjs +19 -0
  5. package/dist/AccountDetailsHeader-BOV91g1o.mjs +95 -0
  6. package/dist/AccountDisplayName-CO7z3v99.mjs +11 -0
  7. package/dist/{AccountFields-CW6cIthP.mjs → AccountFields-BRRH37K1.mjs} +10 -11
  8. package/dist/{AccountListItem-DxmAs98Z.mjs → AccountListItem-Ds5C0mOT.mjs} +4 -4
  9. package/dist/{AccountStore-hIs-yA6W.mjs → AccountStore-BFKvXJSD.mjs} +79 -69
  10. package/dist/{Accounts-DUHkUyK4.mjs → Accounts-CuE8aSZN.mjs} +1 -1
  11. package/dist/{BudgetUtil-CIDAPPPT.mjs → BudgetUtil-CDSOZXem.mjs} +4 -4
  12. package/dist/CategorySelectorDrawer-C4aZYP4N.mjs +418 -0
  13. package/dist/CategoryStore-DEqAnHbi.mjs +186 -0
  14. package/dist/{CategoryUtil-DfVKKkRf.mjs → CategoryUtil-CFHBvaV4.mjs} +1 -1
  15. package/dist/{ConnectionsDrawer-CSo6AFkG.mjs → ConnectionsDrawer-BExzgE16.mjs} +5 -5
  16. package/dist/{CurrencyInput-BrGvhgVK.mjs → CurrencyInput-DDQ4DBrE.mjs} +1 -1
  17. package/dist/{CurrencyText-Dr0EZ7bp.mjs → CurrencyText-C-85TnUF.mjs} +3 -3
  18. package/dist/{DateUtil-CDPZw_-m.mjs → DateUtil-CVsMhbZU.mjs} +3 -3
  19. package/dist/{DebtsStore-hi1cqrRk.mjs → DebtsStore-Dv_T7Dts.mjs} +12 -12
  20. package/dist/{Dialog-CDV0kKxj.mjs → Dialog-CWymUiuO.mjs} +32 -35
  21. package/dist/Drawer-Bet2ZPJo.mjs +176 -0
  22. package/dist/{ExportCsvAction-CQ1grpwo.mjs → ExportCsvAction-oG_Mn66T.mjs} +3 -3
  23. package/dist/{FinstrongStore-dKZOZ2hM.mjs → FinstrongStore-BjFkMTIL.mjs} +6 -6
  24. package/dist/GlobalAccountFilter-BpWlPAl5.mjs +316 -0
  25. package/dist/{GoalStore-CFeAJloA.mjs → GoalStore-Dbjgft2i.mjs} +155 -137
  26. package/dist/{Help-i4OasOO-.mjs → Help-BW_ar-4B.mjs} +2 -2
  27. package/dist/LineChart-DHj-Bufi.mjs +580 -0
  28. package/dist/{ListItemAction-BNCWQAN_.mjs → ListItemAction-Cbr3417C.mjs} +10 -10
  29. package/dist/{ManageIncome-D_qVX5dN.mjs → ManageIncome-DIIyqDTp.mjs} +85 -85
  30. package/dist/{MicroWidgetContainer-BGpNl5ZS.mjs → MicroWidgetContainer-DSyYwRCU.mjs} +2 -2
  31. package/dist/{MiniWidgetContainer-D7MkHG15.mjs → MiniWidgetContainer-DKn7ndO6.mjs} +1 -1
  32. package/dist/NetWorthStore-B6ziBtaH.mjs +168 -0
  33. package/dist/NotificationSettings-e789PcRb.mjs +676 -0
  34. package/dist/{OriginalBalanceAction-62e0mU_3.mjs → OriginalBalanceAction-DFoG79Ba.mjs} +3 -3
  35. package/dist/{RecurringSettings-RfZ8Wuhh.mjs → RecurringSettings-BpCUcE8w.mjs} +4 -4
  36. package/dist/{RecurringTransactionsStore-D3EOKZ2B.mjs → RecurringTransactionsStore-D_--5PWH.mjs} +1 -1
  37. package/dist/{RecurringTransactions-Bhx56aA3.mjs → RepeatingTransaction-C2txVA9O.mjs} +3 -3
  38. package/dist/{SettingsStore-BASMQSIp.mjs → SettingsStore-CInvh-rQ.mjs} +1 -1
  39. package/dist/SpendingData-B7NuTQ9s.mjs +53 -0
  40. package/dist/SpendingLegend-BxefXiQd.mjs +193 -0
  41. package/dist/TransactionDetails-CPwv9xtZ.mjs +1374 -0
  42. package/dist/{TransactionStore-DgLrYW4C.mjs → TransactionStore-D2aMUClq.mjs} +128 -111
  43. package/dist/TrendsStore-BdsYfCc7.mjs +183 -0
  44. package/dist/{User-DqNX2GAK.mjs → User-CulNdZUr.mjs} +21 -20
  45. package/dist/ViewMoreMicroCard-CDWR16_h.mjs +1147 -0
  46. package/dist/WidgetContainer-mzejMmz2.mjs +555 -0
  47. package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsChart.d.ts +1 -0
  48. package/dist/accounts/index.es.js +933 -232
  49. package/dist/accounts/stores/AccountStore.d.ts +6 -2
  50. package/dist/accounts/utils/AccountDetails.d.ts +5 -0
  51. package/dist/analytics/index.es.js +2 -2
  52. package/dist/budgets/components/AddBudgets.d.ts +2 -1
  53. package/dist/budgets/index.es.js +561 -522
  54. package/dist/cashflow/index.es.js +397 -396
  55. package/dist/categories/components/CustomCategories/AddSubcategory.d.ts +1 -0
  56. package/dist/categories/components/CustomCategories/DeleteSubcategory.d.ts +1 -0
  57. package/dist/categories/components/CustomCategories/RenameSubcategory.d.ts +1 -0
  58. package/dist/categories/components/SubcategoryRow.d.ts +1 -0
  59. package/dist/categories/index.es.js +2 -2
  60. package/dist/categories/stores/CategoryStore.d.ts +5 -3
  61. package/dist/common/components/GlobalAccountFilter.d.ts +11 -0
  62. package/dist/common/components/WidgetContainer.d.ts +7 -6
  63. package/dist/common/components/charts/linechart/CustomTooltip.d.ts +6 -1
  64. package/dist/common/components/charts/stackedlinechart/CustomPointTooltip.d.ts +5 -2
  65. package/dist/common/components/globalaccountfilter/GlobalAccountFilterList.d.ts +7 -0
  66. package/dist/common/components/index.d.ts +2 -2
  67. package/dist/common/hooks/index.d.ts +1 -0
  68. package/dist/common/hooks/useWidgetLoadTimer.d.ts +6 -0
  69. package/dist/common/index.es.js +325 -306
  70. package/dist/common/stores/GlobalUiStore.d.ts +7 -4
  71. package/dist/common/types/localization/AccountsCopy.d.ts +6 -0
  72. package/dist/common/types/localization/CategoryCopy.d.ts +3 -0
  73. package/dist/common/types/localization/CommonCopy.d.ts +3 -0
  74. package/dist/common/types/localization/GoalsCopy.d.ts +3 -1
  75. package/dist/common/types/localization/MicroInsightsCopy.d.ts +1 -0
  76. package/dist/common/types/localization/TransactionsCopy.d.ts +4 -0
  77. package/dist/common/types/localization/TrendsCopy.d.ts +4 -0
  78. package/dist/dashboard/index.es.js +95 -125
  79. package/dist/debts/index.es.js +466 -460
  80. package/dist/{exportTransactionsToCSV-BFpuIAXW.mjs → exportTransactionsToCSV-BU1jTY0Q.mjs} +4 -4
  81. package/dist/finstrong/components/shared/CustomDoubleBarPlot.d.ts +4 -5
  82. package/dist/finstrong/index.es.js +1660 -1553
  83. package/dist/goals/index.es.js +716 -677
  84. package/dist/goals/stores/GoalStore.d.ts +2 -0
  85. package/dist/help/index.es.js +14 -10
  86. package/dist/{hooks-C41HAxM5.mjs → hooks-fY_n74f7.mjs} +16 -16
  87. package/dist/investments/index.es.js +464 -457
  88. package/dist/merchants/index.es.js +1 -1
  89. package/dist/microinsights/MicroCardTemplate.d.ts +23 -0
  90. package/dist/microinsights/beaticons/BeatMaterialIcon.d.ts +8 -0
  91. package/dist/microinsights/beaticons/MonthlySpendComparisonIcon.d.ts +1 -2
  92. package/dist/microinsights/beaticons/index.d.ts +1 -0
  93. package/dist/microinsights/cards/InsightCard.d.ts +0 -2
  94. package/dist/microinsights/cards/ViewMoreMicroCard.d.ts +2 -5
  95. package/dist/microinsights/index.d.ts +2 -2
  96. package/dist/microinsights/index.es.js +824 -14
  97. package/dist/networth/components/NetWorthChart.d.ts +3 -2
  98. package/dist/networth/components/NetWorthList.d.ts +3 -3
  99. package/dist/networth/index.es.js +433 -438
  100. package/dist/networth/stores/NetWorthStore.d.ts +20 -9
  101. package/dist/networth/utils/NetWorthUtils.d.ts +2 -2
  102. package/dist/notifications/index.es.js +5 -5
  103. package/dist/recurringtransactions/index.es.js +331 -325
  104. package/dist/settings/index.es.js +293 -285
  105. package/dist/spending/components/SpendingChart.d.ts +1 -1
  106. package/dist/spending/components/SpendingList.d.ts +1 -1
  107. package/dist/spending/components/SpendingTabLabel.d.ts +1 -0
  108. package/dist/spending/index.es.js +250 -235
  109. package/dist/transactions/index.es.js +288 -281
  110. package/dist/transactions/stores/TransactionStore.d.ts +5 -0
  111. package/dist/trends/components/TrendsTable.d.ts +0 -2
  112. package/dist/trends/index.es.js +876 -802
  113. package/dist/trends/utils/TrendsData.d.ts +1 -0
  114. package/dist/trends/utils/TrendsTable.d.ts +12 -0
  115. package/dist/{useAccountDisplayName-usSZCQ7I.mjs → useAccountDisplayName-DbkgGLdg.mjs} +2 -2
  116. package/dist/useAriaLive-B3_pRUio.mjs +35 -0
  117. package/dist/{useInsightsEnabled-CNjP5cfR.mjs → useInsightsEnabled-dhmXeSyF.mjs} +1 -1
  118. package/dist/useWidgetLoadTimer-CrUzxN-P.mjs +19 -0
  119. package/package.json +26 -21
  120. package/dist/AccountDetailsContent-C1HumFnW.mjs +0 -683
  121. package/dist/AccountDetailsHeader-NMx79DGs.mjs +0 -87
  122. package/dist/CategorySelectorDrawer-DqDAA_5I.mjs +0 -399
  123. package/dist/CategoryStore-MUwRWH9e.mjs +0 -176
  124. package/dist/ConnectDrawer-Dn1MlqLz.mjs +0 -545
  125. package/dist/Drawer-Dqe5EqvA.mjs +0 -163
  126. package/dist/LineChart-bc1D9xBE.mjs +0 -581
  127. package/dist/NetWorthStore-8FFC1Bs0.mjs +0 -150
  128. package/dist/NotificationSettings-BsWiYD94.mjs +0 -672
  129. package/dist/SpendingData-DPQ96k3x.mjs +0 -55
  130. package/dist/SpendingLegend-CZzDb-7d.mjs +0 -193
  131. package/dist/TransactionDetails-Duv1X9ec.mjs +0 -1379
  132. package/dist/TrendsStore-_mRaFUdf.mjs +0 -182
  133. package/dist/ViewMoreMicroCard-CH9E-jOx.mjs +0 -1930
  134. package/dist/WidgetContainer-B1Jzb4XA.mjs +0 -565
  135. package/dist/common/components/accountfilter/AccountFilter.d.ts +0 -20
  136. package/dist/common/components/accountfilter/AccountFilterOptions.d.ts +0 -31
  137. package/dist/common/components/accountfilter/index.d.ts +0 -1
  138. package/dist/microinsights/cards/BaseCard.d.ts +0 -13
  139. package/dist/{ToggleListItem-ciFTiqRS.mjs → Notification-Bs1fdbzI.mjs} +1 -1
@@ -1,79 +1,81 @@
1
- import { H as et } from "../Help-c-zHlDbv.mjs";
2
- import { E as Ze } from "../Help-c-zHlDbv.mjs";
3
- import { M as ts } from "../MicroWidgetContainer-BGpNl5ZS.mjs";
4
- import { M as ss } from "../MiniWidgetContainer-D7MkHG15.mjs";
5
- import { C as os } from "../CurrencyInput-BrGvhgVK.mjs";
6
- import { L as is } from "../Loader-BSWSYqvn.mjs";
7
- import { R as cs } from "../ResponsiveButton-C6KH8JH4.mjs";
8
- import { T as st } from "../TransactionStore-DgLrYW4C.mjs";
9
- import { S as ls } from "../TransactionStore-DgLrYW4C.mjs";
10
- import { T as hs } from "../TabContentContainer-CnMXkVqr.mjs";
11
- import { I as ps } from "../IconBacking-DgT8DCeh.mjs";
12
- import { D as _s, F as fs, c as ys, d as Ss, R as bs, S as ws } from "../RecurringTransactions-Bhx56aA3.mjs";
13
- import { C as rt } from "../CashflowStore-naOtJcwo.mjs";
14
- import { I as Cs } from "../CashflowStore-naOtJcwo.mjs";
15
- import { k as As, a as vs, i as Es, j as Ts, A as Bs, h as Is, l as Ns, C as Ms, n as Ls, E as Us, M as ks, N as Rs, c as $s, P as Os, o as Ps, S as Hs } from "../ConnectDrawer-Dn1MlqLz.mjs";
16
1
  import { jsxs as f, jsx as i } from "react/jsx-runtime";
17
- import ot from "react";
18
- import { css as x, keyframes as at } from "@mxenabled/cssinjs";
19
- import { useTokens as C, Text as B } from "@mxenabled/mxui";
20
- import { T as it } from "../User-DqNX2GAK.mjs";
21
- import { C as Fs, b as Ws, L as qs, a as Ys } from "../User-DqNX2GAK.mjs";
22
- import { S as Xs } from "../StatusBar-CPfSXe80.mjs";
23
- import { A as Ks, D as zs, W as Vs } from "../WidgetContainer-B1Jzb4XA.mjs";
24
- import { a as Js, D as tr, O as er, b as sr, f as rr } from "../Dialog-CDV0kKxj.mjs";
2
+ import st from "react";
3
+ import { css as C, keyframes as rt } from "@mxenabled/cssinjs";
4
+ import { useTokens as x, Text as B } from "@mxenabled/mxui";
5
+ import { T as ot } from "../User-CulNdZUr.mjs";
6
+ import { C as Ze, b as Je, L as ts, a as es } from "../User-CulNdZUr.mjs";
7
+ import { C as rs } from "../CurrencyInput-DDQ4DBrE.mjs";
8
+ import { D as as, F as is, c as ns, d as cs, R as ds, S as ls } from "../RepeatingTransaction-C2txVA9O.mjs";
9
+ import { A as hs, D as gs, W as ps } from "../WidgetContainer-mzejMmz2.mjs";
10
+ import { D as _s, a as fs, O as ys, b as Ss, f as bs } from "../Dialog-CWymUiuO.mjs";
11
+ import { D as Cs } from "../Drawer-Bet2ZPJo.mjs";
12
+ import { H as at } from "../Help-c-zHlDbv.mjs";
13
+ import { E as As } from "../Help-c-zHlDbv.mjs";
14
+ import { I as vs } from "../IconBacking-DgT8DCeh.mjs";
15
+ import { C as it } from "../CashflowStore-naOtJcwo.mjs";
16
+ import { I as Ts } from "../CashflowStore-naOtJcwo.mjs";
17
+ import { L as Is } from "../Loader-BSWSYqvn.mjs";
18
+ import { M as Ms } from "../MicroWidgetContainer-DSyYwRCU.mjs";
19
+ import { M as Us } from "../MiniWidgetContainer-DKn7ndO6.mjs";
25
20
  import { D as nt, a as ct } from "../SingleSegmentDonut-PsRQPkmV.mjs";
26
- import { S as ar } from "../SingleSegmentDonut-PsRQPkmV.mjs";
27
- import { D as nr } from "../Drawer-Dqe5EqvA.mjs";
21
+ import { S as Rs } from "../SingleSegmentDonut-PsRQPkmV.mjs";
22
+ import { R as Os } from "../ResponsiveButton-C6KH8JH4.mjs";
23
+ import { T as dt } from "../TransactionStore-D2aMUClq.mjs";
24
+ import { S as Fs } from "../TransactionStore-D2aMUClq.mjs";
25
+ import { S as Gs } from "../StatusBar-CPfSXe80.mjs";
26
+ import { T as qs } from "../TabContentContainer-CnMXkVqr.mjs";
27
+ import { a as Qs, f as Xs, d as js, A as Ks, e as zs, C as Vs, g as Zs, E as Js, M as tr, N as er, c as sr, P as rr, h as or, S as ar } from "../Account-CMjOp7S2.mjs";
28
+ import { A as nr, B as cr, I as dr, N as lr, T as ur, a as hr } from "../Notification-Bs1fdbzI.mjs";
28
29
  import { G as R } from "../useCombineEvents-CRwX-qWE.mjs";
29
- import { A as dr, a as lr, u as ur, b as hr } from "../useCombineEvents-CRwX-qWE.mjs";
30
+ import { A as pr, a as mr, u as _r, b as fr } from "../useCombineEvents-CRwX-qWE.mjs";
30
31
  import { F as y, A as h } from "../Fetch-DecPFeGU.mjs";
31
- import { B as pr } from "../BeatApi-De2IaqH2.mjs";
32
- import { C as dt } from "../CategoryStore-MUwRWH9e.mjs";
33
- import { a as _r } from "../CategoryStore-MUwRWH9e.mjs";
34
- import { N as lt } from "../NotificationStore-Ck2KdNmT.mjs";
35
- import { a as yr } from "../NotificationStore-Ck2KdNmT.mjs";
36
- import { S as br } from "../SearchBox-B2_zLv8-.mjs";
37
- import { d as ut } from "../GoalStore-CFeAJloA.mjs";
38
- import { C as xr, G as Cr, M as Dr, T as Ar } from "../GoalStore-CFeAJloA.mjs";
39
- import { C as Er } from "../CurrencyText-Dr0EZ7bp.mjs";
40
- import { E as Br } from "../EmptyState-DoxNUae-.mjs";
41
- import { L as Nr } from "../ListItemAction-BNCWQAN_.mjs";
42
- import { T as ht } from "../TrendsStore-_mRaFUdf.mjs";
43
- import { L as Lr } from "../TrendsStore-_mRaFUdf.mjs";
44
- import { A as kr, B as Rr, I as $r, N as Or, T as Pr, a as Hr } from "../ToggleListItem-ciFTiqRS.mjs";
45
- import { I as Fr, P as Wr, S as qr } from "../Account-Cp30A3ad.mjs";
32
+ import { B as Sr } from "../BeatApi-De2IaqH2.mjs";
33
+ import { C as lt } from "../CategoryStore-DEqAnHbi.mjs";
34
+ import { a as wr } from "../CategoryStore-DEqAnHbi.mjs";
46
35
  import { b as E } from "../Category-Ccoew_sA.mjs";
47
- import { a as Qr, c as Xr, C as jr, P as Kr } from "../Category-Ccoew_sA.mjs";
48
- import { C as Vr, f as Zr, b as Jr, a as to, g as eo, i as so } from "../NumberFormatting-DjTD0t3W.mjs";
49
- import { R as gt } from "../RecurringTransactionsStore-D3EOKZ2B.mjs";
50
- import { S as oo, T as ao } from "../RecurringTransactionsStore-D3EOKZ2B.mjs";
51
- import { G as no, C as co, D as lo, W as uo, d as ho, a as go, i as po, v as mo, m as _o, x as fo, y as yo, g as So, z as bo, u as wo, f as xo, b as Co, l as Do, A as Ao, t as vo, n as Eo, c as To, r as Bo, o as Io, B as No, j as Mo, s as Lo, h as Uo, w as ko, p as Ro, q as $o } from "../hooks-C41HAxM5.mjs";
52
- import { u as Po } from "../useAccountDisplayName-usSZCQ7I.mjs";
53
- import { u as Go } from "../useInsightsEnabled-CNjP5cfR.mjs";
54
- import { u as Wo } from "../useScreenSize-B6JyS_Lj.mjs";
55
- import { makeAutoObservable as _, runInAction as S, reaction as pt, autorun as mt } from "mobx";
56
- import { a as _t } from "../AccountStore-hIs-yA6W.mjs";
57
- import ft from "posthog-js";
58
- import { B as yt } from "../BeatStore-D_NYuBSz.mjs";
59
- import { endOfMonth as Z } from "date-fns/endOfMonth";
60
- import { startOfMonth as J } from "date-fns/startOfMonth";
36
+ import { a as xr, c as Ar, C as Dr, P as vr } from "../Category-Ccoew_sA.mjs";
37
+ import { d as ut } from "../GoalStore-Dbjgft2i.mjs";
38
+ import { C as Tr, G as Br, M as Ir, T as Nr } from "../GoalStore-Dbjgft2i.mjs";
39
+ import { b as Lr, G as Ur } from "../GlobalAccountFilter-BpWlPAl5.mjs";
40
+ import { C as Rr, f as $r, b as Or, a as Pr, g as Fr, i as Hr } from "../NumberFormatting-DjTD0t3W.mjs";
41
+ import { C as Wr } from "../CurrencyText-C-85TnUF.mjs";
42
+ import { E as Yr } from "../EmptyState-DoxNUae-.mjs";
43
+ import { makeAutoObservable as _, runInAction as S, reaction as Z, autorun as ht } from "mobx";
44
+ import { G as Xr, x as jr, y as Kr, W as zr, d as Vr, a as Zr, i as Jr, t as to, m as eo, w as so, z as ro, g as oo, A as ao, u as io, f as no, b as co, l as lo, B as uo, s as ho, C as go, c as po, q as mo, n as _o, D as fo, j as yo, r as So, h as bo, v as wo, o as Co, p as xo } from "../hooks-fY_n74f7.mjs";
45
+ import { A as gt } from "../AccountStore-BFKvXJSD.mjs";
46
+ import pt from "posthog-js";
47
+ import { B as mt } from "../BeatStore-D_NYuBSz.mjs";
48
+ import { endOfMonth as J } from "date-fns/endOfMonth";
49
+ import { startOfMonth as tt } from "date-fns/startOfMonth";
61
50
  import { startOfToday as $ } from "date-fns/startOfToday";
62
- import { f as St, a as bt, b as O } from "../BudgetUtil-CIDAPPPT.mjs";
63
- import { g as Yo, e as Qo, c as Xo, d as jo, i as Ko } from "../BudgetUtil-CIDAPPPT.mjs";
64
- import { a as wt } from "../DebtsStore-hi1cqrRk.mjs";
65
- import { F as xt } from "../FinstrongStore-dKZOZ2hM.mjs";
66
- import { A as Ct, m as Dt, a as At, b as vt } from "../InvestmentUtil-jOyOgzIB.mjs";
67
- import { M as Et } from "../MerchantStore-WvZ4gnQe.mjs";
68
- import { N as Tt } from "../NetWorthStore-8FFC1Bs0.mjs";
69
- import { a as Bt } from "../SettingsStore-BASMQSIp.mjs";
51
+ import { f as _t, a as ft, b as O } from "../BudgetUtil-CDSOZXem.mjs";
52
+ import { g as Do, c as vo, d as Eo, e as To, i as Bo } from "../BudgetUtil-CDSOZXem.mjs";
53
+ import { a as yt } from "../DebtsStore-Dv_T7Dts.mjs";
54
+ import { F as St } from "../FinstrongStore-BjFkMTIL.mjs";
55
+ import { A as bt, m as wt, a as Ct, b as xt } from "../InvestmentUtil-jOyOgzIB.mjs";
56
+ import { M as At } from "../MerchantStore-WvZ4gnQe.mjs";
57
+ import { N as Dt } from "../NetWorthStore-B6ziBtaH.mjs";
58
+ import { N as vt } from "../NotificationStore-Ck2KdNmT.mjs";
59
+ import { a as No } from "../NotificationStore-Ck2KdNmT.mjs";
60
+ import { a as Et } from "../SettingsStore-CInvh-rQ.mjs";
61
+ import { R as Tt } from "../RecurringTransactionsStore-D_--5PWH.mjs";
62
+ import { S as Lo, T as Uo } from "../RecurringTransactionsStore-D_--5PWH.mjs";
63
+ import { T as Bt } from "../TrendsStore-BdsYfCc7.mjs";
64
+ import { L as Ro } from "../TrendsStore-BdsYfCc7.mjs";
70
65
  import { addMonths as It } from "date-fns/addMonths";
71
66
  import { getMonth as T } from "date-fns/getMonth";
72
- import { i as Vo } from "../DateUtil-CDPZw_-m.mjs";
73
- import { b as Jo, a as ta, g as ea } from "../Localization-2MODESHW.mjs";
74
- import { darken as P, lighten as H, alpha as Nt } from "@mui/material";
67
+ import { I as Oo, P as Po, S as Fo } from "../Account-BIKn4XEZ.mjs";
68
+ import { L as Go } from "../ListItemAction-Cbr3417C.mjs";
69
+ import { S as qo } from "../SearchBox-B2_zLv8-.mjs";
70
+ import { b as Qo, a as Xo, g as jo } from "../Localization-2MODESHW.mjs";
71
+ import { i as zo } from "../DateUtil-CVsMhbZU.mjs";
72
+ import { alpha as Nt, darken as P, lighten as F } from "@mui/material";
73
+ import { u as Zo } from "../useAccountDisplayName-DbkgGLdg.mjs";
74
+ import { u as ta } from "../useInsightsEnabled-dhmXeSyF.mjs";
75
+ import { u as sa } from "../useScreenSize-B6JyS_Lj.mjs";
76
+ import { u as oa } from "../useWidgetLoadTimer-CrUzxN-P.mjs";
75
77
  var Mt = /* @__PURE__ */ ((s) => (s[s.Unknown = 0] = "Unknown", s[s.EveryWeek = 1] = "EveryWeek", s[s.EveryOtherWeek = 2] = "EveryOtherWeek", s[s.EveryMonth = 3] = "EveryMonth", s[s.EveryOtherMonth = 4] = "EveryOtherMonth", s[s.EveryQuarter = 5] = "EveryQuarter", s[s.EveryOtherQuarter = 6] = "EveryOtherQuarter", s[s.EveryYear = 7] = "EveryYear", s))(Mt || {});
76
- const Fe = [
78
+ const Ge = [
77
79
  { id: 0, copy: "frequency_unknown" },
78
80
  { id: 1, copy: "frequency_every_week" },
79
81
  { id: 2, copy: "frequency_every_other_week" },
@@ -119,12 +121,12 @@ const kt = [
119
121
  { key: "success", light: "success_color", dark: "success_color_dark" }
120
122
  ], qe = (s, t, e) => {
121
123
  const r = s.palette.mode === "dark", o = (e?.master?.style?.font_name || t?.system_font) ?? s.typography.fontFamily, a = (n, m) => n ? {
122
- lighter: H(n, 0.5),
123
- light: H(n, 0.25),
124
+ lighter: F(n, 0.5),
125
+ light: F(n, 0.25),
124
126
  main: n,
125
127
  dark: P(n, 0.25),
126
128
  darker: P(n, 0.5)
127
- } : m, c = Object.fromEntries(
129
+ } : m, l = Object.fromEntries(
128
130
  Rt.map(({ key: n, light: m, dark: b }) => [
129
131
  n,
130
132
  a(
@@ -132,27 +134,27 @@ const kt = [
132
134
  s.palette[n]
133
135
  )
134
136
  ])
135
- ), d = Object.fromEntries(
137
+ ), c = Object.fromEntries(
136
138
  kt.map((n) => [
137
139
  n,
138
140
  n === "fontFamily" ? o : { fontFamily: o }
139
141
  ])
140
- ), l = {
142
+ ), d = {
141
143
  MuiTabs: {
142
144
  styleOverrides: {
143
- indicator: { backgroundColor: c.primary.light }
145
+ indicator: { backgroundColor: l.primary.light }
144
146
  }
145
147
  },
146
148
  MuiPickersCalendarHeader: {
147
149
  styleOverrides: {
148
150
  switchViewButton: {
149
- color: c.primary.lighter,
150
- "&:hover": { backgroundColor: Nt(c.primary.light, 0.1) }
151
+ color: l.primary.lighter,
152
+ "&:hover": { backgroundColor: Nt(l.primary.light, 0.1) }
151
153
  }
152
154
  }
153
155
  }
154
156
  }, u = t?.button_corner_radius, g = t?.card_corner_radius, p = {
155
- ...l,
157
+ ...d,
156
158
  ...u && {
157
159
  MuiButton: {
158
160
  styleOverrides: {
@@ -183,9 +185,9 @@ const kt = [
183
185
  }
184
186
  }
185
187
  };
186
- return { typography: d, palette: c, components: p };
188
+ return { typography: c, palette: l, components: p };
187
189
  };
188
- class G {
190
+ class H {
189
191
  fetchInstance;
190
192
  constructor(t) {
191
193
  this.fetchInstance = new y(t, "", {
@@ -218,13 +220,13 @@ class Qe {
218
220
  addScheduledPayment = async (t) => this.fetchInstance.post(h.SCHEDULED_PAYMENTS, {
219
221
  ...t,
220
222
  is_recurring: "true",
221
- transaction_type: it.DEBIT
223
+ transaction_type: ot.DEBIT
222
224
  }).then((e) => e.scheduled_payment);
223
225
  getScheduledPayments = async () => this.fetchInstance.get(h.SCHEDULED_PAYMENTS).then((t) => t.scheduled_payments);
224
226
  updateScheduledPayment = async (t) => this.fetchInstance.put(`${h.SCHEDULED_PAYMENTS}/${t.guid}`, t).then((e) => e.scheduled_payment);
225
227
  deleteScheduledPayment = async (t) => this.fetchInstance.delete(`${h.SCHEDULED_PAYMENTS}/${t}`).then((e) => e);
226
228
  }
227
- class F {
229
+ class G {
228
230
  fetchInstance;
229
231
  constructor(t, e, r) {
230
232
  this.fetchInstance = new y(t, e, void 0, r);
@@ -240,9 +242,8 @@ class W {
240
242
  }
241
243
  requestWidgetUrl = async (t) => this.fetchInstance.post(h.WIDGET_URLS, t).then((e) => e.widget_url);
242
244
  }
243
- var $t = /* @__PURE__ */ ((s) => (s[s.UNKNOWN = 0] = "UNKNOWN", s[s.CORRECT = 1] = "CORRECT", s[s.INCORRECT = 2] = "INCORRECT", s))($t || {}), Ot = /* @__PURE__ */ ((s) => (s.Missed = "Missed", s.Paid = "Paid", s.Upcoming = "Upcoming expense", s.Income = "Income", s))(Ot || {}), Pt = /* @__PURE__ */ ((s) => (s[s.Unknown = 0] = "Unknown", s[s.Subscription = 1] = "Subscription", s[s.Bill = 2] = "Bill", s))(Pt || {}), Ht = /* @__PURE__ */ ((s) => (s.Desktop = "Desktop", s.Mobile = "Mobile", s))(Ht || {});
244
- const Gt = ({ color: s, labelAverage: t, labelMain: e }) => {
245
- const r = C(), o = Ft(r, s);
245
+ const $t = ({ color: s, labelAverage: t, labelMain: e }) => {
246
+ const r = x(), o = Ot(r, s);
246
247
  return /* @__PURE__ */ f("div", { className: `mx-cmn-bar-chart-legend ${o}`, children: [
247
248
  /* @__PURE__ */ i("div", { "aria-label": e, className: "mx-cmn-color-square", role: "img" }),
248
249
  /* @__PURE__ */ i(B, { variant: "XSmall", children: e }),
@@ -253,7 +254,7 @@ const Gt = ({ color: s, labelAverage: t, labelMain: e }) => {
253
254
  ] }),
254
255
  /* @__PURE__ */ i(B, { variant: "XSmall", children: t })
255
256
  ] });
256
- }, Ft = (s, t) => x({
257
+ }, Ot = (s, t) => C({
257
258
  alignItems: "center",
258
259
  display: "flex",
259
260
  gap: s.Spacing.XSmall,
@@ -286,16 +287,16 @@ const Gt = ({ color: s, labelAverage: t, labelMain: e }) => {
286
287
  index: r,
287
288
  label: o,
288
289
  onClick: a,
289
- selectedIndex: c,
290
- value: d
290
+ selectedIndex: l,
291
+ value: c
291
292
  }) => {
292
- const l = C(), u = Wt(l, t, e), g = (m) => {
293
+ const d = x(), u = Pt(d, t, e), g = (m) => {
293
294
  a && (m.key === " " || m.key === "Enter") && a(r);
294
- }, p = c === void 0 || c === r ? "primary" : "secondary", n = () => /* @__PURE__ */ i(
295
+ }, p = l === void 0 || l === r ? "primary" : "secondary", n = () => /* @__PURE__ */ i(
295
296
  B,
296
297
  {
297
298
  "aria-hidden": !0,
298
- bold: c === r,
299
+ bold: l === r,
299
300
  className: "mx-cmn-bar-text",
300
301
  color: p,
301
302
  component: "div",
@@ -303,24 +304,24 @@ const Gt = ({ color: s, labelAverage: t, labelMain: e }) => {
303
304
  children: o
304
305
  }
305
306
  );
306
- return /* @__PURE__ */ f("div", { className: `mx-cmn-bar-container ${u} ${d < 0 ? "mx-cmn-negative" : ""}`, children: [
307
- d >= 0 && /* @__PURE__ */ i(n, {}),
307
+ return /* @__PURE__ */ f("div", { className: `mx-cmn-bar-container ${u} ${c < 0 ? "mx-cmn-negative" : ""}`, children: [
308
+ c >= 0 && /* @__PURE__ */ i(n, {}),
308
309
  /* @__PURE__ */ i(
309
310
  "div",
310
311
  {
311
312
  "aria-label": s,
312
- className: `mx-cmn-bar ${a ? "mx-cmn-clickable" : ""} ${d < 0 ? "mx-cmn-bar-negative" : ""}`,
313
+ className: `mx-cmn-bar ${a ? "mx-cmn-clickable" : ""} ${c < 0 ? "mx-cmn-bar-negative" : ""}`,
313
314
  onClick: a ? () => a?.(r) : void 0,
314
315
  onKeyDown: g,
315
316
  role: s ? "button" : void 0,
316
317
  tabIndex: s ? 0 : void 0
317
318
  }
318
319
  ),
319
- d < 0 && /* @__PURE__ */ i(n, {})
320
+ c < 0 && /* @__PURE__ */ i(n, {})
320
321
  ] });
321
- }, Wt = (s, t, e) => {
322
- const r = `expandBar-${Math.round(e)}`, o = at(r, { from: { height: 0 }, to: { height: e } });
323
- return x({
322
+ }, Pt = (s, t, e) => {
323
+ const r = `expandBar-${Math.round(e)}`, o = rt(r, { from: { height: 0 }, to: { height: e } });
324
+ return C({
324
325
  display: "flex",
325
326
  flexDirection: "column",
326
327
  justifyContent: "flex-end",
@@ -358,26 +359,26 @@ const Gt = ({ color: s, labelAverage: t, labelMain: e }) => {
358
359
  color: r,
359
360
  index: o = -1,
360
361
  onClick: a,
361
- range: c,
362
- selectedIndex: d,
363
- topHeight: l,
362
+ range: l,
363
+ selectedIndex: c,
364
+ topHeight: d,
364
365
  value: u,
365
366
  valueLabel: g = "",
366
367
  width: p,
367
368
  xAxisLabel: n = ""
368
369
  }) => {
369
- const m = C(), b = qt(m, p), D = u / c * l, A = Math.abs(u) / c * e, v = d === void 0 || d === o ? "primary" : "secondary";
370
+ const m = x(), b = Ft(m, p), A = u / l * d, D = Math.abs(u) / l * e, v = c === void 0 || c === o ? "primary" : "secondary";
370
371
  return /* @__PURE__ */ f("div", { className: `mx-cmn-barchart-bar-column ${b}`, children: [
371
- /* @__PURE__ */ i("div", { style: { height: l }, children: u >= 0 && /* @__PURE__ */ i(
372
+ /* @__PURE__ */ i("div", { style: { height: d }, children: u >= 0 && /* @__PURE__ */ i(
372
373
  q,
373
374
  {
374
375
  ariaLabel: s,
375
376
  color: r,
376
- height: D,
377
+ height: A,
377
378
  index: o,
378
379
  label: g,
379
380
  onClick: a,
380
- selectedIndex: d,
381
+ selectedIndex: c,
381
382
  value: u
382
383
  }
383
384
  ) }),
@@ -388,7 +389,7 @@ const Gt = ({ color: s, labelAverage: t, labelMain: e }) => {
388
389
  {
389
390
  ariaLabel: s,
390
391
  color: r,
391
- height: A,
392
+ height: D,
392
393
  index: o,
393
394
  label: g,
394
395
  onClick: a,
@@ -400,11 +401,11 @@ const Gt = ({ color: s, labelAverage: t, labelMain: e }) => {
400
401
  {
401
402
  className: `mx-cmn-bar-label ${a ? "mx-cmn-clickable" : ""}`,
402
403
  onClick: a ? () => a(o) : void 0,
403
- children: /* @__PURE__ */ i(B, { bold: d === o, color: v, variant: "Small", children: n })
404
+ children: /* @__PURE__ */ i(B, { bold: c === o, color: v, variant: "Small", children: n })
404
405
  }
405
406
  )
406
407
  ] });
407
- }, qt = (s, t) => x({
408
+ }, Ft = (s, t) => C({
408
409
  display: "flex",
409
410
  flexDirection: "column",
410
411
  flexGrow: t === void 0 ? 1 : 0,
@@ -429,28 +430,28 @@ const Gt = ({ color: s, labelAverage: t, labelMain: e }) => {
429
430
  "& .mx-cmn-clickable": {
430
431
  cursor: "pointer"
431
432
  }
432
- }), Yt = (s, t) => s + t, Qt = (s, t) => Math.abs(t) > s ? Math.abs(t) : s, Xt = (s, t) => [...s, t.value], Q = (s, t, e) => {
433
+ }), Ht = (s, t) => s + t, Gt = (s, t) => Math.abs(t) > s ? Math.abs(t) : s, Wt = (s, t) => [...s, t.value], Q = (s, t, e) => {
433
434
  const r = s && t ? e / 2 : e;
434
435
  return s ? r : 0;
435
- }, jt = (s, t, e, r) => s / (t < 0 ? -e : t) * r || 0, Xe = ({
436
+ }, qt = (s, t, e, r) => s / (t < 0 ? -e : t) * r || 0, Xe = ({
436
437
  average: s,
437
438
  barWidth: t = "8%",
438
439
  color: e,
439
440
  data: r,
440
441
  height: o,
441
442
  legendLabelAverage: a,
442
- legendLabelMain: c,
443
- onBarClick: d,
444
- selectedIndex: l,
443
+ legendLabelMain: l,
444
+ onBarClick: c,
445
+ selectedIndex: d,
445
446
  valueFormatter: u = (g) => `${g}`
446
447
  }) => {
447
- const g = C(), p = Kt(g), n = r.reduce(Xt, []), m = s !== void 0 ? s : n.reduce(Yt, 0) / n.length, b = Math.max(...n), D = Math.min(...n), A = n.reduce(Qt, 0), v = b >= 0, L = D < 0, I = Q(v, L, o), N = Q(L, v, o), U = jt(m, b, D, I || N), tt = (w) => l === void 0 || w === l ? e : `${e}80`, k = () => /* @__PURE__ */ i(
448
+ const g = x(), p = Yt(g), n = r.reduce(Wt, []), m = s !== void 0 ? s : n.reduce(Ht, 0) / n.length, b = Math.max(...n), A = Math.min(...n), D = n.reduce(Gt, 0), v = b >= 0, L = A < 0, I = Q(v, L, o), N = Q(L, v, o), U = qt(m, b, A, I || N), et = (w) => d === void 0 || w === d ? e : `${e}80`, k = () => /* @__PURE__ */ i(
448
449
  Y,
449
450
  {
450
451
  averageLineHeight: U,
451
452
  bottomHeight: N,
452
453
  color: "",
453
- range: A,
454
+ range: D,
454
455
  topHeight: I,
455
456
  value: 0,
456
457
  width: void 0
@@ -459,18 +460,18 @@ const Gt = ({ color: s, labelAverage: t, labelMain: e }) => {
459
460
  return /* @__PURE__ */ f("div", { className: `mx-cmn-bar-chart ${p}`, children: [
460
461
  /* @__PURE__ */ f("div", { className: "mx-cmn-chart-container", children: [
461
462
  /* @__PURE__ */ i(k, {}),
462
- r.map((w, M) => /* @__PURE__ */ f(ot.Fragment, { children: [
463
+ r.map((w, M) => /* @__PURE__ */ f(st.Fragment, { children: [
463
464
  /* @__PURE__ */ i(
464
465
  Y,
465
466
  {
466
467
  ariaLabel: w.ariaLabel,
467
468
  averageLineHeight: U,
468
469
  bottomHeight: N,
469
- color: tt(M),
470
+ color: et(M),
470
471
  index: M,
471
- onClick: d,
472
- range: A,
473
- selectedIndex: l,
472
+ onClick: c,
473
+ range: D,
474
+ selectedIndex: d,
474
475
  topHeight: I,
475
476
  value: w.value,
476
477
  valueLabel: u(w.value),
@@ -481,9 +482,9 @@ const Gt = ({ color: s, labelAverage: t, labelMain: e }) => {
481
482
  /* @__PURE__ */ i(k, {})
482
483
  ] }, `column-${M}`))
483
484
  ] }),
484
- /* @__PURE__ */ i(Gt, { color: e, labelAverage: a, labelMain: c })
485
+ /* @__PURE__ */ i($t, { color: e, labelAverage: a, labelMain: l })
485
486
  ] });
486
- }, Kt = (s) => x({
487
+ }, Yt = (s) => C({
487
488
  "& .mx-cmn-chart-container": {
488
489
  alignItems: "flex-end",
489
490
  display: "flex",
@@ -498,17 +499,17 @@ const Gt = ({ color: s, labelAverage: t, labelMain: e }) => {
498
499
  strokeWidth: r = ct,
499
500
  children: o
500
501
  }) => {
501
- const a = C(), c = zt(a, e), d = (e - r) / 2, l = e / 2;
502
+ const a = x(), l = Qt(a, e), c = (e - r) / 2, d = e / 2;
502
503
  let u = -90 - (s ? 1 : 0), g = 0;
503
- return /* @__PURE__ */ f("div", { className: `mx-cmn-multi-segment-donut ${c}`, children: [
504
+ return /* @__PURE__ */ f("div", { className: `mx-cmn-multi-segment-donut ${l}`, children: [
504
505
  /* @__PURE__ */ f("svg", { height: e, width: e, children: [
505
506
  /* @__PURE__ */ i(
506
507
  "circle",
507
508
  {
508
- cx: l,
509
- cy: l,
509
+ cx: d,
510
+ cy: d,
510
511
  fill: "none",
511
- r: d,
512
+ r: c,
512
513
  stroke: a.Color.Neutral300,
513
514
  strokeWidth: r
514
515
  }
@@ -516,22 +517,22 @@ const Gt = ({ color: s, labelAverage: t, labelMain: e }) => {
516
517
  t.map((p, n) => (u += 360 * g + (s ? 1 : 0), g = (p.percent - (s ? 0.3 : 0)) / 100, /* @__PURE__ */ i(
517
518
  "circle",
518
519
  {
519
- cx: l,
520
- cy: l,
520
+ cx: d,
521
+ cy: d,
521
522
  fill: "none",
522
- r: d,
523
+ r: c,
523
524
  stroke: p.color,
524
- strokeDasharray: 2 * Math.PI * d,
525
- strokeDashoffset: 2 * Math.PI * d * (1 - g),
525
+ strokeDasharray: 2 * Math.PI * c,
526
+ strokeDashoffset: 2 * Math.PI * c * (1 - g),
526
527
  strokeWidth: r,
527
- transform: `rotate(${u}, ${l}, ${l})`
528
+ transform: `rotate(${u}, ${d}, ${d})`
528
529
  },
529
530
  n
530
531
  )))
531
532
  ] }),
532
533
  /* @__PURE__ */ i("div", { className: "mx-cmn-multi-segment-donut-children", children: o })
533
534
  ] });
534
- }, zt = (s, t) => x({
535
+ }, Qt = (s, t) => C({
535
536
  height: t,
536
537
  marginTop: `-${s.Spacing.XSmall}px`,
537
538
  position: "relative",
@@ -544,7 +545,7 @@ const Gt = ({ color: s, labelAverage: t, labelMain: e }) => {
544
545
  transform: "translate(-50%, -50%)"
545
546
  }
546
547
  });
547
- class Vt {
548
+ class Xt {
548
549
  globalStore;
549
550
  api = new R("/", "");
550
551
  copy = {};
@@ -573,7 +574,7 @@ class Vt {
573
574
  }
574
575
  };
575
576
  }
576
- class Zt {
577
+ class jt {
577
578
  globalStore;
578
579
  survey = null;
579
580
  currentQuestionIndex = 0;
@@ -603,7 +604,7 @@ class Zt {
603
604
  return this.survey ? this.survey.questions : [];
604
605
  }
605
606
  loadSurvey = (t = !1) => {
606
- ft.getActiveMatchingSurveys((e) => {
607
+ pt.getActiveMatchingSurveys((e) => {
607
608
  S(() => {
608
609
  if (e.length > 0) {
609
610
  const r = e.find((o) => o.id === this.surveyId);
@@ -643,11 +644,11 @@ class X {
643
644
  throw e;
644
645
  });
645
646
  }
646
- class Jt {
647
+ class Kt {
647
648
  api = new X("/", "");
648
649
  globalStore;
649
650
  alert = "";
650
- dateRange = { start: J($()), end: Z($()) };
651
+ dateRange = { start: tt($()), end: J($()) };
651
652
  budgets = [];
652
653
  selectedBudget;
653
654
  selectedSubBudget;
@@ -657,14 +658,14 @@ class Jt {
657
658
  this.globalStore = t, this.api = new X(t.endpoint, t.sessionToken, t.onError), _(this);
658
659
  }
659
660
  loadBudgetData = async () => {
660
- this.globalStore.recurringTransactionsStore.isDataLoaded || await this.globalStore.recurringTransactionsStore.loadRepeatingTransactionData(), await this.loadBudgets(), pt(
661
+ this.globalStore.recurringTransactionsStore.isDataLoaded || await this.globalStore.recurringTransactionsStore.loadRepeatingTransactionData(), await this.loadBudgets(), Z(
661
662
  () => this.detailedBudgets,
662
663
  (t) => {
663
664
  if (t) {
664
665
  const e = this.selectedBudget;
665
- e && (this.selectedBudget = St(t, e.guid));
666
+ e && (this.selectedBudget = _t(t, e.guid));
666
667
  const r = this.selectedSubBudget;
667
- r && r.parent_guid && (this.selectedSubBudget = bt(
668
+ r && r.parent_guid && (this.selectedSubBudget = ft(
668
669
  t,
669
670
  r.guid,
670
671
  r.parent_guid
@@ -774,6 +775,7 @@ class Jt {
774
775
  }
775
776
  };
776
777
  }
778
+ var zt = /* @__PURE__ */ ((s) => (s[s.UNKNOWN = 0] = "UNKNOWN", s[s.CORRECT = 1] = "CORRECT", s[s.INCORRECT = 2] = "INCORRECT", s))(zt || {}), Vt = /* @__PURE__ */ ((s) => (s.Missed = "Missed", s.Paid = "Paid", s.Upcoming = "Upcoming expense", s.Income = "Income", s))(Vt || {}), Zt = /* @__PURE__ */ ((s) => (s[s.Unknown = 0] = "Unknown", s[s.Subscription = 1] = "Subscription", s[s.Bill = 2] = "Bill", s))(Zt || {}), Jt = /* @__PURE__ */ ((s) => (s.Desktop = "Desktop", s.Mobile = "Mobile", s))(Jt || {});
777
779
  class j {
778
780
  fetchInstance;
779
781
  constructor(t, e, r) {
@@ -783,15 +785,15 @@ class j {
783
785
  }
784
786
  const te = (s, t) => s.guid === "general" || s.guid === "insights" ? !0 : s.flags ? s.flags.every((e) => t[e]) : !1, ee = (s, t) => {
785
787
  const e = [];
786
- for (const r of et) {
788
+ for (const r of at) {
787
789
  const o = t[r.guid];
788
790
  if (!o) continue;
789
791
  const a = {
790
792
  ...r,
791
793
  title: o.label,
792
- topics: r.topics.map(({ topicKey: c }, d) => ({
793
- topicKey: c,
794
- label: o.topics[d]
794
+ topics: r.topics.map(({ topicKey: l }, c) => ({
795
+ topicKey: l,
796
+ label: o.topics[c]
795
797
  }))
796
798
  };
797
799
  te(a, s) && e.push(a);
@@ -843,7 +845,7 @@ class K {
843
845
  updateHoldings = async (t) => this.fetchInstance.put(`${h.HOLDINGS}/${t.guid}`, t).then((e) => e.holding);
844
846
  }
845
847
  class re {
846
- analysisType = Ct.Stocks;
848
+ analysisType = bt.Stocks;
847
849
  api = new K("/", "");
848
850
  holdings = [];
849
851
  holdingsLoaded = !1;
@@ -853,10 +855,10 @@ class re {
853
855
  this.globalStore = t, this.api = new K(t.endpoint, t.sessionToken, t.onError), _(this);
854
856
  }
855
857
  get analysisChartData() {
856
- return Dt(At(this.visibleHoldings), this.analysisType);
858
+ return wt(Ct(this.visibleHoldings), this.analysisType);
857
859
  }
858
860
  get analysisDetails() {
859
- return vt(this.visibleHoldings)[this.analysisType] || {};
861
+ return xt(this.visibleHoldings)[this.analysisType] || {};
860
862
  }
861
863
  get visibleHoldings() {
862
864
  return this.holdings.filter(
@@ -1009,7 +1011,7 @@ class V {
1009
1011
  class oe {
1010
1012
  globalStore;
1011
1013
  api = new V("/", "");
1012
- bannerApi = new G("/");
1014
+ bannerApi = new H("/");
1013
1015
  appData = {};
1014
1016
  isAppDataLoaded = !1;
1015
1017
  banner = {};
@@ -1035,7 +1037,7 @@ class oe {
1035
1037
  return this.appData.user_profile;
1036
1038
  }
1037
1039
  setAppData = (t) => {
1038
- this.appData = t, this.bannerApi = new G(t.address?.bullseye || "/"), this.isAppDataLoaded = !0;
1040
+ this.appData = t, this.bannerApi = new H(t.address?.bullseye || "/"), this.isAppDataLoaded = !0;
1039
1041
  };
1040
1042
  loadAppData = async () => {
1041
1043
  try {
@@ -1071,15 +1073,32 @@ class ae {
1071
1073
  }
1072
1074
  class ie {
1073
1075
  globalStore;
1074
- selectedAccounts = [];
1075
- selectedAccountGuids = this.selectedAccounts.map((t) => t.guid);
1076
+ accountFilterMap = /* @__PURE__ */ new Map();
1076
1077
  displayedDate = /* @__PURE__ */ new Date();
1077
1078
  displayedDateRange = {
1078
- start: J(this.displayedDate),
1079
- end: Z(this.displayedDate)
1079
+ start: tt(this.displayedDate),
1080
+ end: J(this.displayedDate)
1080
1081
  };
1081
1082
  constructor(t) {
1082
- _(this), this.globalStore = t;
1083
+ _(this), this.globalStore = t, Z(
1084
+ () => this.globalStore.accountStore.visibleAccounts,
1085
+ (e) => {
1086
+ this.populateAccountFilterMap(e);
1087
+ }
1088
+ );
1089
+ }
1090
+ get allSelectedAccounts() {
1091
+ return this.globalStore.accountStore.detailedAccounts.filter(
1092
+ (t) => !t.is_excluded_from_accounts
1093
+ );
1094
+ }
1095
+ get selectedAccounts() {
1096
+ return this.globalStore.accountStore.visibleAccounts.filter(
1097
+ (t) => !t.is_excluded_from_accounts
1098
+ );
1099
+ }
1100
+ get selectedAccountGuids() {
1101
+ return this.selectedAccounts.map((t) => t.guid);
1083
1102
  }
1084
1103
  get isCopyLoaded() {
1085
1104
  return this.globalStore.copyStore.isInitialized;
@@ -1093,17 +1112,16 @@ class ie {
1093
1112
  get isInitialized() {
1094
1113
  return this.isCopyLoaded && this.isConfigLoaded && this.areUserFeaturesLoaded;
1095
1114
  }
1096
- // for the global account filter
1097
- // if excluded from 1 widget, excluded from all
1098
- setSelectedAccounts = (t) => {
1099
- this.selectedAccounts = t.filter(
1100
- (e) => !(e.is_excluded_from_accounts || e.is_excluded_from_budgets || e.is_excluded_from_cash_flow || e.is_excluded_from_debts || e.is_excluded_from_goals || e.is_excluded_from_investments || e.is_excluded_from_net_worth || e.is_excluded_from_spending || e.is_excluded_from_transactions || e.is_excluded_from_trends)
1101
- ), this.selectedAccountGuids = this.selectedAccounts.map((e) => e.guid);
1115
+ populateAccountFilterMap = (t) => {
1116
+ t && t.forEach((e) => {
1117
+ this.accountFilterMap.set(e.guid, !e.is_excluded_from_accounts);
1118
+ });
1119
+ };
1120
+ resetAccountFilterMap = () => {
1121
+ this.accountFilterMap.clear(), this.populateAccountFilterMap(this.globalStore.accountStore.visibleAccounts);
1102
1122
  };
1103
- // Sets an array of selected account guids for the AccountFilter component
1104
- setSelectedAccountGuids = async (t) => {
1105
- const e = new Set(this.selectedAccountGuids), r = new Set(t), o = [...r].filter((c) => !e.has(c)), a = [...e].filter((c) => !r.has(c));
1106
- o.length > 0 && this.globalStore.accountStore.updateAccountFiltering(o, !1), a.length > 0 && this.globalStore.accountStore.updateAccountFiltering(a, !0), this.selectedAccountGuids = t;
1123
+ updateAccountFilterMap = (t, e) => {
1124
+ this.accountFilterMap.set(t, e);
1107
1125
  };
1108
1126
  setDisplayedDate = (t, e) => {
1109
1127
  this.displayedDate = e, this.displayedDateRange = {
@@ -1122,11 +1140,11 @@ class ie {
1122
1140
  }
1123
1141
  class ne {
1124
1142
  globalStore;
1125
- api = new F("/", "");
1143
+ api = new G("/", "");
1126
1144
  userFeatures = [];
1127
1145
  userFeaturesLoaded = !1;
1128
1146
  constructor(t) {
1129
- this.globalStore = t, this.api = new F(t.endpoint, t.sessionToken, t.onError), _(this);
1147
+ this.globalStore = t, this.api = new G(t.endpoint, t.sessionToken, t.onError), _(this);
1130
1148
  }
1131
1149
  get userProfile() {
1132
1150
  return this.globalStore.appDataStore.userProfile;
@@ -1195,7 +1213,7 @@ class Ke {
1195
1213
  // UI Stores
1196
1214
  globalUiStore;
1197
1215
  constructor(t = z, e = "/", r, o) {
1198
- this.appConfig = t, this.endpoint = e, this.sessionToken = t.options.session_token ?? "", this.onError = r, this.onStoreUpdate = o, this.accountStore = new _t(this), this.appDataStore = new oe(this), this.analyticsStore = new Zt(this), this.beatStore = new yt(this), this.budgetsStore = new Jt(this), this.cashflowStore = new rt(this), this.categoryStore = new dt(this), this.connectStore = new ae(this), this.copyStore = new Vt(this), this.debtsStore = new wt(this), this.finstrongStore = new xt(this), this.goalStore = new ut(this), this.helpStore = new se(this), this.holdingStore = new re(this), this.merchantStore = new Et(this), this.netWorthStore = new Tt(this), this.notificationStore = new lt(this), this.recurringTransactionsStore = new gt(this), this.settingsStore = new Bt(this), this.transactionStore = new st(this), this.trendsStore = new ht(this), this.userStore = new ne(this), this.globalUiStore = new ie(this), _(this), mt(() => {
1216
+ this.appConfig = t, this.endpoint = e, this.sessionToken = t.options.session_token ?? "", this.onError = r, this.onStoreUpdate = o, this.accountStore = new gt(this), this.appDataStore = new oe(this), this.analyticsStore = new jt(this), this.beatStore = new mt(this), this.budgetsStore = new Kt(this), this.cashflowStore = new it(this), this.categoryStore = new lt(this), this.connectStore = new ae(this), this.copyStore = new Xt(this), this.debtsStore = new yt(this), this.finstrongStore = new St(this), this.goalStore = new ut(this), this.helpStore = new se(this), this.holdingStore = new re(this), this.merchantStore = new At(this), this.netWorthStore = new Dt(this), this.notificationStore = new vt(this), this.recurringTransactionsStore = new Tt(this), this.settingsStore = new Et(this), this.transactionStore = new dt(this), this.trendsStore = new Bt(this), this.userStore = new ne(this), this.globalUiStore = new ie(this), _(this), ht(() => {
1199
1217
  const { transactions: a } = this.transactionStore;
1200
1218
  this.emitUpdate({
1201
1219
  transactions: a
@@ -1223,165 +1241,166 @@ class Ke {
1223
1241
  associatedBeats: r,
1224
1242
  categories: o,
1225
1243
  institutions: a,
1226
- transactionRules: c,
1227
- transactions: d,
1228
- userFeatures: l
1244
+ transactionRules: l,
1245
+ transactions: c,
1246
+ userFeatures: d
1229
1247
  } = {}) => {
1230
- (!e || !l) && await this.loadConfigData(), e && this.appDataStore.setAppData(e), l && this.userStore.setUserFeatures(l), t && (await this.accountStore.loadMembers(), a && this.accountStore.setInstitutions(a), this.accountStore.setAccounts(t)), r && this.transactionStore.setAssociatedBeats(r), o && this.categoryStore.setCategories(o), d && this.transactionStore.setTransactions(d), c && this.transactionStore.setTransactionRules(c);
1248
+ (!e || !d) && await this.loadConfigData(), e && this.appDataStore.setAppData(e), d && this.userStore.setUserFeatures(d), t && (await this.accountStore.loadMembers(), a && this.accountStore.setInstitutions(a), this.accountStore.setAccounts(t)), r && this.transactionStore.setAssociatedBeats(r), o && this.categoryStore.setCategories(o), c && this.transactionStore.setTransactions(c), l && this.transactionStore.setTransactionRules(l);
1231
1249
  };
1232
1250
  }
1233
1251
  export {
1234
- Ks as ANALYTICS_EVENTS,
1235
- As as AccountFilter,
1236
- vs as AccountIcon,
1237
- Es as AccountIconVariants,
1238
- kr as AccountNotificationTypes,
1239
- Ts as AccountSubType,
1240
- Bs as AccountType,
1241
- Is as AccountTypeName,
1242
- dr as AnalyticsApi,
1252
+ hs as ANALYTICS_EVENTS,
1253
+ Qs as AccountIcon,
1254
+ Xs as AccountIconVariants,
1255
+ nr as AccountNotificationTypes,
1256
+ js as AccountSubType,
1257
+ Ks as AccountType,
1258
+ zs as AccountTypeName,
1259
+ pr as AnalyticsApi,
1243
1260
  h as ApiEndpoints,
1244
- G as BannerApi,
1261
+ H as BannerApi,
1245
1262
  Xe as BarChart,
1246
- pr as BeatApi,
1247
- Rr as BudgetNotificationTypes,
1248
- Fs as Calendar,
1249
- Ws as CalendarSelectionTypes,
1250
- _r as CategoryApi,
1251
- Qr as CategoryColors,
1252
- Xr as CategoryGuidToName,
1263
+ Sr as BeatApi,
1264
+ cr as BudgetNotificationTypes,
1265
+ Ze as Calendar,
1266
+ Je as CalendarSelectionTypes,
1267
+ wr as CategoryApi,
1268
+ xr as CategoryColors,
1269
+ Ar as CategoryGuidToName,
1253
1270
  E as CategoryGuids,
1254
- jr as CategoryIcon,
1255
- xr as ConnectCard,
1256
- Ns as ConnectDrawer,
1257
- Ms as ConnectionStatus,
1258
- Ls as ConnectionStatusEnums,
1259
- Vr as CurrencyCodes,
1260
- os as CurrencyInput,
1261
- Er as CurrencyText,
1262
- Js as DATE_FORMATS_INTL,
1271
+ Dr as CategoryIcon,
1272
+ Tr as ConnectCard,
1273
+ Lr as ConnectDrawer,
1274
+ Vs as ConnectionStatus,
1275
+ Zs as ConnectionStatusEnums,
1276
+ Rr as CurrencyCodes,
1277
+ rs as CurrencyInput,
1278
+ Wr as CurrencyText,
1279
+ _s as DATE_FORMATS_INTL,
1263
1280
  nt as DEFAULT_DONUT_SIZE,
1264
1281
  ct as DEFAULT_STROKE_WIDTH,
1265
- _s as DataRow,
1266
- zs as DateRangeSelector,
1267
- tr as Dialog,
1268
- nr as Drawer,
1269
- Br as EmptyState,
1270
- Ze as ErrorBoundary,
1271
- Us as ErrorStatuses,
1272
- Ot as ExpenseStatus,
1282
+ as as DataRow,
1283
+ gs as DateRangeSelector,
1284
+ fs as Dialog,
1285
+ Cs as Drawer,
1286
+ Yr as EmptyState,
1287
+ As as ErrorBoundary,
1288
+ Js as ErrorStatuses,
1289
+ Vt as ExpenseStatus,
1273
1290
  y as Fetch,
1274
- fs as Frequency,
1291
+ is as Frequency,
1292
+ Ur as GlobalAccountFilter,
1275
1293
  R as GlobalCopyApi,
1276
- Vt as GlobalCopyStore,
1277
- no as GlobalDataContext,
1278
- co as GlobalDataProvider,
1294
+ Xt as GlobalCopyStore,
1295
+ Xr as GlobalDataContext,
1296
+ jr as GlobalDataProvider,
1279
1297
  Ke as GlobalStore,
1280
- Cr as GoalType,
1281
- Fr as INCOME_ACCOUNT_TYPES,
1282
- ps as IconBacking,
1283
- Cs as InformationTooltip,
1284
- $r as InsightNotificationTypes,
1298
+ Br as GoalType,
1299
+ Oo as INCOME_ACCOUNT_TYPES,
1300
+ vs as IconBacking,
1301
+ Ts as InformationTooltip,
1302
+ dr as InsightNotificationTypes,
1285
1303
  Ut as IterationItemTypes,
1286
1304
  We as LOADING_STATUS,
1287
- Nr as ListItemAction,
1288
- Lr as ListItemRow,
1289
- qs as ListItemWrapper,
1290
- is as Loader,
1305
+ Go as ListItemAction,
1306
+ Ro as ListItemRow,
1307
+ ts as ListItemWrapper,
1308
+ Is as Loader,
1291
1309
  Ye as LocalizedCopyApi,
1292
- Dr as MetaType,
1293
- ks as MfaStatuses,
1294
- ts as MicroWidgetContainer,
1295
- ss as MiniWidgetContainer,
1310
+ Ir as MetaType,
1311
+ tr as MfaStatuses,
1312
+ Ms as MicroWidgetContainer,
1313
+ Us as MiniWidgetContainer,
1296
1314
  je as MultiSegmentDonut,
1297
- Rs as NonConnectedStatuses,
1298
- yr as NotificationApi,
1299
- Or as NotificationTypes,
1300
- er as ORDINAL_DATE_FORMAT,
1301
- sr as ORDINAL_MONTH_DAY_YEAR_FORMAT,
1302
- Wr as PAYMENT_ACCOUNT_TYPES,
1303
- Kr as PaymentCategories,
1315
+ er as NonConnectedStatuses,
1316
+ No as NotificationApi,
1317
+ lr as NotificationTypes,
1318
+ ys as ORDINAL_DATE_FORMAT,
1319
+ Ss as ORDINAL_MONTH_DAY_YEAR_FORMAT,
1320
+ Po as PAYMENT_ACCOUNT_TYPES,
1321
+ vr as PaymentCategories,
1304
1322
  Lt as PlanTypes,
1305
- $s as ProcessingStatuses,
1306
- Os as PropertyType,
1307
- Ps as PropertyTypeName,
1308
- Fe as RECURRENCE_COPY,
1309
- ys as RecurrenceStatus,
1310
- Ss as RecurrenceType,
1323
+ sr as ProcessingStatuses,
1324
+ rr as PropertyType,
1325
+ or as PropertyTypeName,
1326
+ Ge as RECURRENCE_COPY,
1327
+ ns as RecurrenceStatus,
1328
+ cs as RecurrenceType,
1311
1329
  Mt as RecurrenceTypes,
1312
- bs as RepeatingType,
1313
- cs as ResponsiveButton,
1314
- qr as SPENDING_ACCOUNT_TYPES,
1315
- Pt as ScheduledPaymentTypes,
1330
+ ds as RepeatingType,
1331
+ Os as ResponsiveButton,
1332
+ Fo as SPENDING_ACCOUNT_TYPES,
1333
+ Zt as ScheduledPaymentTypes,
1316
1334
  Qe as ScheduledPaymentsApi,
1317
- Ht as ScreenSize,
1318
- br as SearchBox,
1319
- ws as Select,
1320
- ls as SelectionBox,
1321
- ar as SingleSegmentDonut,
1322
- oo as Sizes,
1323
- Xs as StatusBar,
1324
- Hs as StatusName,
1325
- ao as TOUCH_TARGET,
1326
- hs as TabContentContainer,
1327
- Pr as ToggleButtonListItem,
1328
- Hr as ToggleListItem,
1329
- Ar as TrackType,
1330
- Ys as TransactionStatus,
1331
- it as TransactionType,
1332
- F as UserApi,
1335
+ Jt as ScreenSize,
1336
+ qo as SearchBox,
1337
+ ls as Select,
1338
+ Fs as SelectionBox,
1339
+ Rs as SingleSegmentDonut,
1340
+ Lo as Sizes,
1341
+ Gs as StatusBar,
1342
+ ar as StatusName,
1343
+ Uo as TOUCH_TARGET,
1344
+ qs as TabContentContainer,
1345
+ ur as ToggleButtonListItem,
1346
+ hr as ToggleListItem,
1347
+ Nr as TrackType,
1348
+ es as TransactionStatus,
1349
+ ot as TransactionType,
1350
+ G as UserApi,
1333
1351
  ne as UserStore,
1334
- $t as UserVerification,
1352
+ zt as UserVerification,
1335
1353
  W as WidgetApi,
1336
- Vs as WidgetContainer,
1337
- lo as WidgetContainerContext,
1338
- uo as WidgetContainerProvider,
1339
- lr as analyticsSession,
1340
- Jo as buildDynamicCopy,
1341
- ta as buildPluralCopy,
1342
- Zr as formatCurrency,
1343
- rr as formatDate,
1344
- Jr as formatOrdinal,
1345
- to as formatPercentage,
1346
- Vo as fromTimestampToMonthYear,
1347
- Yo as getCategory,
1348
- Qo as getCategoryTotalsByParent,
1354
+ ps as WidgetContainer,
1355
+ Kr as WidgetContainerContext,
1356
+ zr as WidgetContainerProvider,
1357
+ mr as analyticsSession,
1358
+ Qo as buildDynamicCopy,
1359
+ Xo as buildPluralCopy,
1360
+ $r as formatCurrency,
1361
+ bs as formatDate,
1362
+ Or as formatOrdinal,
1363
+ Pr as formatPercentage,
1364
+ zo as fromTimestampToMonthYear,
1365
+ Do as getCategory,
1366
+ vo as getCategoryTotalsByParent,
1349
1367
  qe as getClientTheme,
1350
- eo as getCurrencyCodes,
1351
- Xo as getDetailedCategory,
1352
- jo as getDetailedSubCategory,
1353
- ea as getLocale,
1354
- Ko as isIncome,
1355
- so as isValidNumber,
1356
- Po as useAccountDisplayName,
1357
- ho as useAccountStore,
1358
- go as useAppConfig,
1359
- po as useBudgetsStore,
1360
- mo as useCashflowStore,
1361
- _o as useCategoryStore,
1362
- ur as useCombineEvents,
1363
- hr as useCombinePageviews,
1364
- fo as useDebtStore,
1365
- yo as useError,
1366
- So as useEvent,
1367
- bo as useFinstrongStore,
1368
- wo as useGlobalCopyStore,
1369
- xo as useGlobalStore,
1370
- Co as useGlobalUiStore,
1371
- Do as useGoalStore,
1372
- Ao as useHelpStore,
1373
- vo as useHoldingStore,
1374
- Go as useInsightsEnabled,
1375
- Eo as useLoad,
1376
- To as useMerchantStore,
1377
- Bo as useNetWorthStore,
1378
- Io as useNotificationStore,
1379
- No as usePageView,
1380
- Mo as useRecurringTransactionsStore,
1381
- Wo as useScreenSize,
1382
- Lo as useSettingsStore,
1383
- Uo as useTransactionStore,
1384
- ko as useTrendsStore,
1385
- Ro as useUserStore,
1386
- $o as useWidgetContainerProvider
1368
+ Fr as getCurrencyCodes,
1369
+ Eo as getDetailedCategory,
1370
+ To as getDetailedSubCategory,
1371
+ jo as getLocale,
1372
+ Bo as isIncome,
1373
+ Hr as isValidNumber,
1374
+ Zo as useAccountDisplayName,
1375
+ Vr as useAccountStore,
1376
+ Zr as useAppConfig,
1377
+ Jr as useBudgetsStore,
1378
+ to as useCashflowStore,
1379
+ eo as useCategoryStore,
1380
+ _r as useCombineEvents,
1381
+ fr as useCombinePageviews,
1382
+ so as useDebtStore,
1383
+ ro as useError,
1384
+ oo as useEvent,
1385
+ ao as useFinstrongStore,
1386
+ io as useGlobalCopyStore,
1387
+ no as useGlobalStore,
1388
+ co as useGlobalUiStore,
1389
+ lo as useGoalStore,
1390
+ uo as useHelpStore,
1391
+ ho as useHoldingStore,
1392
+ ta as useInsightsEnabled,
1393
+ go as useLoad,
1394
+ po as useMerchantStore,
1395
+ mo as useNetWorthStore,
1396
+ _o as useNotificationStore,
1397
+ fo as usePageView,
1398
+ yo as useRecurringTransactionsStore,
1399
+ sa as useScreenSize,
1400
+ So as useSettingsStore,
1401
+ bo as useTransactionStore,
1402
+ wo as useTrendsStore,
1403
+ Co as useUserStore,
1404
+ xo as useWidgetContainerProvider,
1405
+ oa as useWidgetLoadTimer
1387
1406
  };