@mx-cartographer/experiences 7.0.32 → 7.0.34-alpha.sms1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/{Account-CK-DrCEa.mjs → Account-DeMa6XJz.mjs} +1 -1
  3. package/dist/{AccountDetailsContent-BGXM8acm.mjs → AccountDetailsContent-BwTOak3W.mjs} +8 -8
  4. package/dist/{AccountDetailsHeader-Dwk01nsY.mjs → AccountDetailsHeader-BCW4d-j4.mjs} +5 -5
  5. package/dist/{AccountFields-5i77eFJ6.mjs → AccountFields-B-igjxt-.mjs} +2 -2
  6. package/dist/{AccountListItem-BiST9IgK.mjs → AccountListItem-DAF9c7_x.mjs} +3 -3
  7. package/dist/{AccountStore-DiGbJBUT.mjs → AccountStore-Bzy6rKGo.mjs} +26 -26
  8. package/dist/{Accounts-BBkQjUmS.mjs → Accounts-DNMSlq9A.mjs} +1 -1
  9. package/dist/{BeatApi-DLu87ijw.mjs → BeatApi-DhJpgCLz.mjs} +3 -3
  10. package/dist/{BeatStore-By4aGoRM.mjs → BeatStore-IBnXd4YK.mjs} +17 -17
  11. package/dist/{BudgetUtil-D5jO0box.mjs → BudgetUtil-Iw9hUxhI.mjs} +1 -1
  12. package/dist/{CategorySelectorDrawer-joMax4Fb.mjs → CategorySelectorDrawer-CMorcKFW.mjs} +1 -1
  13. package/dist/{CategoryStore-BOyzQjQp.mjs → CategoryStore-BCcpI3oJ.mjs} +4 -4
  14. package/dist/{ConnectDrawer-D86nRDxQ.mjs → ConnectDrawer-jeSmGg38.mjs} +1 -1
  15. package/dist/{ConnectionsDrawer-BkNr5Up0.mjs → ConnectionsDrawer-hdOVHICr.mjs} +2 -2
  16. package/dist/{CurrencyInput-BkflFU_-.mjs → CurrencyInput-C0wTgNV6.mjs} +1 -1
  17. package/dist/{DebtsStore-qrqY9Abz.mjs → DebtsStore-C2OfwE0t.mjs} +1 -1
  18. package/dist/{ExportCsvAction-DRfdZis1.mjs → ExportCsvAction-BlKpQTTL.mjs} +3 -3
  19. package/dist/{Fetch-CkFKy79O.mjs → Fetch-87LIQbEA.mjs} +11 -10
  20. package/dist/{FinstrongStore-mkALvztw.mjs → FinstrongStore-F2c607dj.mjs} +4 -4
  21. package/dist/{GoalStore-BQRcowCN.mjs → GoalStore-D2A2Lqd5.mjs} +6 -6
  22. package/dist/{Help-B3dFeYi2.mjs → Help-DwKXfnqC.mjs} +1 -1
  23. package/dist/{LineChart-Dyps2sOy.mjs → LineChart-DNC5UEt4.mjs} +1 -1
  24. package/dist/{ListItemAction-BgKx_n6d.mjs → ListItemAction-Dt9A2GQk.mjs} +1 -1
  25. package/dist/{ManageIncome-Byw3lVtR.mjs → ManageIncome-C0CbczlY.mjs} +4 -4
  26. package/dist/MerchantStore-DrFvsUyy.mjs +37 -0
  27. package/dist/{MicroWidgetContainer-DPDsZIiS.mjs → MicroWidgetContainer-DVRe-MJs.mjs} +1 -1
  28. package/dist/{MiniWidgetContainer-BzW7V_04.mjs → MiniWidgetContainer-C_N1u9ad.mjs} +1 -1
  29. package/dist/{NetWorthStore-DWG9Mkuu.mjs → NetWorthStore-CD4WWdXC.mjs} +2 -2
  30. package/dist/{NotificationSettings-B9wNyWEL.mjs → NotificationSettings-CtbJFbrv.mjs} +3 -3
  31. package/dist/{NotificationStore-DHtSGySy.mjs → NotificationStore-C6PH6MKm.mjs} +8 -4
  32. package/dist/{OriginalBalanceAction-B--pIAF0.mjs → OriginalBalanceAction-CqQ5j4OW.mjs} +3 -3
  33. package/dist/{RecurringSettings-ClbdFNWX.mjs → RecurringSettings-DR9KuVEN.mjs} +3 -3
  34. package/dist/{RecurringTransactionsStore-D62XJtdL.mjs → RecurringTransactionsStore-DeLXfuC4.mjs} +20 -16
  35. package/dist/{SettingsStore-B0kRTFjD.mjs → SettingsStore-Dc34Tzx8.mjs} +33 -29
  36. package/dist/{TransactionApi-DbbcjI2L.mjs → TransactionApi-B3Tksf7L.mjs} +29 -29
  37. package/dist/{TransactionDetails-C4PW8SRL.mjs → TransactionDetails-BafSm7_T.mjs} +5 -5
  38. package/dist/{TransactionStore-CZOvxcSw.mjs → TransactionStore-C4LPHwzx.mjs} +29 -25
  39. package/dist/{TrendsStore-pvzHAX6B.mjs → TrendsStore-BM-JjAs5.mjs} +1 -1
  40. package/dist/{User-D-O9EHMb.mjs → User-BYkzrOdM.mjs} +1 -1
  41. package/dist/{ViewMoreMicroCard-DFAY0tA8.mjs → ViewMoreMicroCard-CXxtKHUM.mjs} +247 -244
  42. package/dist/{WidgetContainer-CBpf3h1Y.mjs → WidgetContainer-CPBhSP3k.mjs} +2 -2
  43. package/dist/accounts/api/AccountApi.d.ts +2 -2
  44. package/dist/accounts/index.es.js +13 -13
  45. package/dist/analytics/index.es.js +2 -2
  46. package/dist/budgets/api/BudgetsApi.d.ts +2 -2
  47. package/dist/budgets/index.es.js +10 -10
  48. package/dist/cashflow/api/CashflowApi.d.ts +3 -2
  49. package/dist/cashflow/index.es.js +10 -10
  50. package/dist/categories/index.es.js +2 -2
  51. package/dist/common/api/AnalyticsApi.d.ts +2 -2
  52. package/dist/common/api/AppDataApi.d.ts +2 -2
  53. package/dist/common/api/BeatApi.d.ts +2 -2
  54. package/dist/common/api/CategoryApi.d.ts +2 -3
  55. package/dist/common/api/GlobalCopyApi.d.ts +2 -1
  56. package/dist/common/api/LocalizedCopyApi.d.ts +2 -1
  57. package/dist/common/api/NotificationApi.d.ts +2 -2
  58. package/dist/common/api/ScheduledPaymentsApi.d.ts +3 -2
  59. package/dist/common/api/UserApi.d.ts +2 -2
  60. package/dist/common/context/GlobalDataProvider.d.ts +3 -2
  61. package/dist/common/context/hooks.d.ts +4 -1
  62. package/dist/common/context/index.d.ts +1 -1
  63. package/dist/common/index.es.js +252 -246
  64. package/dist/common/stores/GlobalStore.d.ts +3 -2
  65. package/dist/common/types/Handlers.d.ts +2 -0
  66. package/dist/common/types/index.d.ts +1 -0
  67. package/dist/common/utils/Fetch.d.ts +3 -1
  68. package/dist/dashboard/index.es.js +2 -2
  69. package/dist/debts/index.es.js +9 -9
  70. package/dist/{exportTransactionsToCSV-zyHeWfQo.mjs → exportTransactionsToCSV-21c0EV3t.mjs} +1 -1
  71. package/dist/finstrong/api/FinstrongApi.d.ts +2 -1
  72. package/dist/finstrong/index.es.js +7 -7
  73. package/dist/goals/api/GoalApi.d.ts +3 -2
  74. package/dist/goals/index.es.js +11 -11
  75. package/dist/help/api/HelpApi.d.ts +2 -2
  76. package/dist/help/index.es.js +3 -3
  77. package/dist/hooks-BhSK6dal.mjs +74 -0
  78. package/dist/insights/index.es.js +1 -1
  79. package/dist/investments/api/HoldingApi.d.ts +3 -2
  80. package/dist/investments/index.es.js +3 -3
  81. package/dist/merchants/api/MerchantApi.d.ts +2 -1
  82. package/dist/merchants/index.es.js +2 -2
  83. package/dist/microinsights/context/InsightsMicroWidgetDataProvider.d.ts +2 -1
  84. package/dist/microinsights/context/hooks.d.ts +1 -1
  85. package/dist/microinsights/index.es.js +1 -1
  86. package/dist/networth/index.es.js +7 -7
  87. package/dist/notifications/index.es.js +5 -5
  88. package/dist/recurringtransactions/api/RepeatingTransactionsApi.d.ts +2 -2
  89. package/dist/recurringtransactions/index.es.js +10 -10
  90. package/dist/settings/api/SettingsApi.d.ts +3 -2
  91. package/dist/settings/index.es.js +7 -7
  92. package/dist/spending/index.es.js +4 -4
  93. package/dist/transactions/api/TransactionApi.d.ts +3 -2
  94. package/dist/transactions/index.es.js +14 -14
  95. package/dist/trends/index.es.js +11 -11
  96. package/dist/{useCombineEvents-DaDBSR_1.mjs → useCombineEvents-BUDIR1ba.mjs} +29 -29
  97. package/dist/{useInsightsEnabled-fGr6xrSj.mjs → useInsightsEnabled-DqM4sFO1.mjs} +1 -1
  98. package/package.json +1 -1
  99. package/dist/MerchantStore-DVH-QOf0.mjs +0 -37
  100. package/dist/hooks-DlI63qSB.mjs +0 -71
@@ -1,77 +1,77 @@
1
- import { G as k } from "../useCombineEvents-DaDBSR_1.mjs";
2
- import { A as ss, a as rs, u as as, b as os } from "../useCombineEvents-DaDBSR_1.mjs";
3
- import { F as y, A as u } from "../Fetch-CkFKy79O.mjs";
4
- import { B as is } from "../BeatApi-DLu87ijw.mjs";
5
- import { C as et } from "../CategoryStore-BOyzQjQp.mjs";
6
- import { a as ls } from "../CategoryStore-BOyzQjQp.mjs";
7
- import { N as st } from "../NotificationStore-DHtSGySy.mjs";
8
- import { a as us } from "../NotificationStore-DHtSGySy.mjs";
9
- import { T as rt } from "../User-D-O9EHMb.mjs";
10
- import { C as gs, b as ps, L as ms, a as _s } from "../User-D-O9EHMb.mjs";
11
- import { H as at } from "../Help-DhcC-C05.mjs";
1
+ import { G as k } from "../useCombineEvents-BUDIR1ba.mjs";
2
+ import { A as ss, a as rs, u as os, b as as } from "../useCombineEvents-BUDIR1ba.mjs";
3
+ import { F as y, A as u } from "../Fetch-87LIQbEA.mjs";
4
+ import { B as is } from "../BeatApi-DhJpgCLz.mjs";
5
+ import { C as et } from "../CategoryStore-BCcpI3oJ.mjs";
6
+ import { a as ds } from "../CategoryStore-BCcpI3oJ.mjs";
7
+ import { N as st } from "../NotificationStore-C6PH6MKm.mjs";
8
+ import { a as us } from "../NotificationStore-C6PH6MKm.mjs";
9
+ import { T as rt } from "../User-BYkzrOdM.mjs";
10
+ import { C as gs, b as ps, L as ms, a as _s } from "../User-BYkzrOdM.mjs";
11
+ import { H as ot } from "../Help-DhcC-C05.mjs";
12
12
  import { E as ys } from "../Help-DhcC-C05.mjs";
13
- import { M as bs } from "../MicroWidgetContainer-DPDsZIiS.mjs";
14
- import { M as xs } from "../MiniWidgetContainer-BzW7V_04.mjs";
15
- import { A as Ds, D as As, W as vs } from "../WidgetContainer-CBpf3h1Y.mjs";
16
- import { i as Es, a as Bs, e as Is, l as Ns, A as Ms, f as ks, j as $s, d as Rs, k as Ps, E as Os, h as Us, N as Ls, g as Gs, P as Hs, m as Fs, S as Ws } from "../ConnectDrawer-D86nRDxQ.mjs";
17
- import { C as Ys } from "../CurrencyInput-BkflFU_-.mjs";
13
+ import { M as bs } from "../MicroWidgetContainer-DVRe-MJs.mjs";
14
+ import { M as xs } from "../MiniWidgetContainer-C_N1u9ad.mjs";
15
+ import { A as vs, D as Ds, W as Es } from "../WidgetContainer-CPBhSP3k.mjs";
16
+ import { i as Ts, a as Bs, e as Is, l as Ns, A as Ms, f as ks, j as $s, d as Rs, k as Ps, E as Os, h as Us, N as Ls, g as Gs, P as Hs, m as Fs, S as Ws } from "../ConnectDrawer-jeSmGg38.mjs";
17
+ import { C as Ys } from "../CurrencyInput-C0wTgNV6.mjs";
18
18
  import { L as zs } from "../Loader-DUaFpDGv.mjs";
19
19
  import { R as js } from "../ResponsiveButton-DZFp78fJ.mjs";
20
20
  import { S as Vs } from "../SearchBox-B2_zLv8-.mjs";
21
- import { T as ot } from "../TransactionStore-CZOvxcSw.mjs";
22
- import { S as Js } from "../TransactionStore-CZOvxcSw.mjs";
21
+ import { T as at } from "../TransactionStore-C4LPHwzx.mjs";
22
+ import { S as Js } from "../TransactionStore-C4LPHwzx.mjs";
23
23
  import { T as er } from "../TabContentContainer-j01JYR_7.mjs";
24
24
  import { I as rr } from "../IconBacking-B9oC6uL2.mjs";
25
- import { D as or, F as nr, a as ir, c as cr, R as lr, S as dr } from "../RepeatingTransaction-BW4J-jeJ.mjs";
25
+ import { D as ar, F as nr, a as ir, c as cr, R as dr, S as lr } from "../RepeatingTransaction-BW4J-jeJ.mjs";
26
26
  import { C as nt } from "../CashflowStore-D9Dpuz7X.mjs";
27
27
  import { I as hr } from "../CashflowStore-D9Dpuz7X.mjs";
28
- import { d as it } from "../GoalStore-BQRcowCN.mjs";
29
- import { C as pr, G as mr, M as _r, T as fr } from "../GoalStore-BQRcowCN.mjs";
28
+ import { d as it } from "../GoalStore-D2A2Lqd5.mjs";
29
+ import { C as pr, G as mr, M as _r, T as fr } from "../GoalStore-D2A2Lqd5.mjs";
30
30
  import { C as Sr } from "../CurrencyText-YUhH2caW.mjs";
31
31
  import { E as wr } from "../EmptyState-C0lr9E5T.mjs";
32
- import { L as Cr } from "../ListItemAction-BgKx_n6d.mjs";
33
- import { T as ct } from "../TrendsStore-pvzHAX6B.mjs";
34
- import { L as Ar, S as vr } from "../TrendsStore-pvzHAX6B.mjs";
35
- import { A as Er, B as Br, I as Ir, N as Nr, T as Mr, a as kr } from "../Notification-aGCHxikw.mjs";
32
+ import { L as Cr } from "../ListItemAction-Dt9A2GQk.mjs";
33
+ import { T as ct } from "../TrendsStore-BM-JjAs5.mjs";
34
+ import { L as Dr, S as Er } from "../TrendsStore-BM-JjAs5.mjs";
35
+ import { A as Tr, B as Br, I as Ir, N as Nr, T as Mr, a as kr } from "../Notification-aGCHxikw.mjs";
36
36
  import { jsxs as f, jsx as n } from "react/jsx-runtime";
37
- import lt, { useRef as dt, useEffect as ut } from "react";
37
+ import dt, { useRef as lt, useEffect as ut } from "react";
38
38
  import { css as w, keyframes as ht } from "@mxenabled/cssinjs";
39
39
  import { useTokens as x, Text as B } from "@mxenabled/mxui";
40
40
  import { D as Rr } from "../Donut-1UMNcG67.mjs";
41
- import { L as Or } from "../LineChart-Dyps2sOy.mjs";
41
+ import { L as Or } from "../LineChart-DNC5UEt4.mjs";
42
42
  import { S as Lr } from "../StatusBar-BK_uYHAB.mjs";
43
43
  import { D as Hr, a as Fr, O as Wr, b as qr, f as Yr } from "../Dialog-CWW597AF.mjs";
44
44
  import { D as gt, a as pt } from "../SingleSegmentDonut-BgbLgwHi.mjs";
45
45
  import { S as zr } from "../SingleSegmentDonut-BgbLgwHi.mjs";
46
46
  import { D as jr } from "../Drawer-kEE73B87.mjs";
47
- import { I as Vr, P as Zr, S as Jr } from "../Account-CK-DrCEa.mjs";
48
- import { b as T } from "../Category-CevNQ03n.mjs";
49
- import { C as ea, c as sa, a as ra, P as aa } from "../Category-CevNQ03n.mjs";
50
- import { C as na, f as ia, b as ca, a as la, g as da, i as ua } from "../NumberFormatting-CtWHhyBX.mjs";
51
- import { R as mt } from "../RecurringTransactionsStore-D62XJtdL.mjs";
52
- import { S as ga, T as pa } from "../RecurringTransactionsStore-D62XJtdL.mjs";
53
- import { G as _a, A as fa, B as ya, W as Sa, c as ba, m as wa, h as xa, t as Ca, l as Da, x as Aa, f as va, w as Ta, u as Ea, e as Ba, a as Ia, k as Na, y as Ma, s as ka, b as $a, q as Ra, n as Pa, z as Oa, i as Ua, r as La, g as Ga, v as Ha, o as Fa, p as Wa } from "../hooks-DlI63qSB.mjs";
54
- import { u as Ya } from "../useInsightsEnabled-fGr6xrSj.mjs";
55
- import { u as za } from "../useScreenSize-B6JyS_Lj.mjs";
47
+ import { I as Vr, P as Zr, S as Jr } from "../Account-DeMa6XJz.mjs";
48
+ import { b as A } from "../Category-CevNQ03n.mjs";
49
+ import { C as eo, c as so, a as ro, P as oo } from "../Category-CevNQ03n.mjs";
50
+ import { C as no, f as io, b as co, a as lo, g as uo, i as ho } from "../NumberFormatting-CtWHhyBX.mjs";
51
+ import { R as mt } from "../RecurringTransactionsStore-DeLXfuC4.mjs";
52
+ import { S as po, T as mo } from "../RecurringTransactionsStore-DeLXfuC4.mjs";
53
+ import { G as fo, B as yo, C as So, W as bo, c as wo, m as xo, h as Co, t as vo, l as Do, x as Eo, y as Ao, f as To, w as Bo, u as Io, e as No, a as Mo, k as ko, z as $o, s as Ro, b as Po, q as Oo, n as Uo, A as Lo, i as Go, r as Ho, g as Fo, v as Wo, o as qo, p as Yo } from "../hooks-BhSK6dal.mjs";
54
+ import { u as zo } from "../useInsightsEnabled-DqM4sFO1.mjs";
55
+ import { u as jo } from "../useScreenSize-B6JyS_Lj.mjs";
56
56
  import { makeAutoObservable as _, runInAction as m, reaction as _t } from "mobx";
57
- import { a as ft } from "../AccountStore-DiGbJBUT.mjs";
57
+ import { a as ft } from "../AccountStore-Bzy6rKGo.mjs";
58
58
  import yt from "posthog-js";
59
- import { B as St } from "../BeatStore-By4aGoRM.mjs";
59
+ import { B as St } from "../BeatStore-IBnXd4YK.mjs";
60
60
  import { endOfMonth as Z } from "date-fns/endOfMonth";
61
61
  import { startOfMonth as J } from "date-fns/startOfMonth";
62
62
  import { startOfToday as U } from "date-fns/startOfToday";
63
- import { f as bt, a as wt, b as L } from "../BudgetUtil-D5jO0box.mjs";
64
- import { g as ja, e as Ka, c as Va, d as Za, i as Ja } from "../BudgetUtil-D5jO0box.mjs";
65
- import { a as xt } from "../DebtsStore-qrqY9Abz.mjs";
66
- import { a as Ct } from "../FinstrongStore-mkALvztw.mjs";
67
- import { A as Dt, m as At, a as vt, b as Tt } from "../InvestmentUtil-jOyOgzIB.mjs";
68
- import { M as Et } from "../MerchantStore-DVH-QOf0.mjs";
69
- import { N as Bt } from "../NetWorthStore-DWG9Mkuu.mjs";
70
- import { a as It } from "../SettingsStore-B0kRTFjD.mjs";
63
+ import { f as bt, a as wt, b as L } from "../BudgetUtil-Iw9hUxhI.mjs";
64
+ import { g as Vo, e as Zo, c as Jo, d as ta, i as ea } from "../BudgetUtil-Iw9hUxhI.mjs";
65
+ import { a as xt } from "../DebtsStore-C2OfwE0t.mjs";
66
+ import { a as Ct } from "../FinstrongStore-F2c607dj.mjs";
67
+ import { A as vt, m as Dt, a as Et, b as At } from "../InvestmentUtil-jOyOgzIB.mjs";
68
+ import { M as Tt } from "../MerchantStore-DrFvsUyy.mjs";
69
+ import { N as Bt } from "../NetWorthStore-CD4WWdXC.mjs";
70
+ import { a as It } from "../SettingsStore-Dc34Tzx8.mjs";
71
71
  import { addMonths as Nt } from "date-fns/addMonths";
72
- import { getMonth as E } from "date-fns/getMonth";
73
- import { i as eo } from "../DateUtil-BcuH7ErC.mjs";
74
- import { b as ro, a as ao, g as oo } from "../Localization-2MODESHW.mjs";
72
+ import { getMonth as T } from "date-fns/getMonth";
73
+ import { i as ra } from "../DateUtil-BcuH7ErC.mjs";
74
+ import { b as aa, a as na, g as ia } from "../Localization-2MODESHW.mjs";
75
75
  import { alpha as Mt, lighten as G, darken as H } from "@mui/material";
76
76
  var kt = /* @__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))(kt || {});
77
77
  const Ye = [
@@ -119,36 +119,36 @@ const Pt = [
119
119
  { key: "info", light: "info_color", dark: "info_color_dark" },
120
120
  { key: "success", light: "success_color", dark: "success_color_dark" }
121
121
  ], ze = (s, t) => {
122
- const e = s.palette.mode === "dark", r = t?.system_font ?? s.typography.fontFamily, a = (l, g) => l ? {
123
- lighter: G(l, 0.5),
124
- light: G(l, 0.25),
125
- main: l,
126
- dark: H(l, 0.25),
127
- darker: H(l, 0.5)
128
- } : g, o = Object.fromEntries(
129
- Ot.map(({ key: l, light: g, dark: S }) => [
130
- l,
131
- a(
122
+ const e = s.palette.mode === "dark", r = t?.system_font ?? s.typography.fontFamily, o = (d, g) => d ? {
123
+ lighter: G(d, 0.5),
124
+ light: G(d, 0.25),
125
+ main: d,
126
+ dark: H(d, 0.25),
127
+ darker: H(d, 0.5)
128
+ } : g, a = Object.fromEntries(
129
+ Ot.map(({ key: d, light: g, dark: S }) => [
130
+ d,
131
+ o(
132
132
  t?.[e ? S : g],
133
- s.palette[l]
133
+ s.palette[d]
134
134
  )
135
135
  ])
136
- ), d = Object.fromEntries(
137
- Pt.map((l) => [
138
- l,
139
- l === "fontFamily" ? r : { fontFamily: r }
136
+ ), l = Object.fromEntries(
137
+ Pt.map((d) => [
138
+ d,
139
+ d === "fontFamily" ? r : { fontFamily: r }
140
140
  ])
141
141
  ), c = {
142
142
  MuiTabs: {
143
143
  styleOverrides: {
144
- indicator: { backgroundColor: o.primary.light }
144
+ indicator: { backgroundColor: a.primary.light }
145
145
  }
146
146
  },
147
147
  MuiPickersCalendarHeader: {
148
148
  styleOverrides: {
149
149
  switchViewButton: {
150
- color: o.primary.lighter,
151
- "&:hover": { backgroundColor: Mt(o.primary.light, 0.1) }
150
+ color: a.primary.lighter,
151
+ "&:hover": { backgroundColor: Mt(a.primary.light, 0.1) }
152
152
  }
153
153
  }
154
154
  }
@@ -184,7 +184,7 @@ const Pt = [
184
184
  }
185
185
  }
186
186
  };
187
- return { typography: d, palette: o, components: p };
187
+ return { typography: l, palette: a, components: p };
188
188
  };
189
189
  class F {
190
190
  fetchInstance;
@@ -205,16 +205,16 @@ class F {
205
205
  }
206
206
  class Xe {
207
207
  fetchInstance;
208
- constructor(t, e) {
209
- this.fetchInstance = new y(t, e);
208
+ constructor(t, e, r) {
209
+ this.fetchInstance = new y(t, e, void 0, r);
210
210
  }
211
211
  getLocalizedCopy = async (t) => this.fetchInstance.post(u.LOCALIZED_COPY, t).then((e) => e);
212
212
  getLocalizedContent = async (t) => this.fetchInstance.post(`${u.LOCALIZED_CONTENT}/${t}`).then((e) => e);
213
213
  }
214
214
  class je {
215
215
  fetchInstance;
216
- constructor(t, e) {
217
- this.fetchInstance = new y(t, e);
216
+ constructor(t, e, r) {
217
+ this.fetchInstance = new y(t, e, void 0, r);
218
218
  }
219
219
  addScheduledPayment = async (t) => this.fetchInstance.post(u.SCHEDULED_PAYMENTS, {
220
220
  ...t,
@@ -227,8 +227,8 @@ class je {
227
227
  }
228
228
  class $ {
229
229
  fetchInstance;
230
- constructor(t, e) {
231
- this.fetchInstance = new y(t, e);
230
+ constructor(t, e, r) {
231
+ this.fetchInstance = new y(t, e, void 0, r);
232
232
  }
233
233
  getUserFeatures = async () => this.fetchInstance.get(u.USER_FEATURES).then((t) => t.user_features).catch((t) => t);
234
234
  updateUser = async (t) => this.fetchInstance.put(u.USER, t).then((e) => e.user);
@@ -242,13 +242,13 @@ class W {
242
242
  requestWidgetUrl = async (t) => this.fetchInstance.post(u.WIDGET_URLS, t).then((e) => e.widget_url);
243
243
  }
244
244
  const Ke = (s) => {
245
- const t = dt();
245
+ const t = lt();
246
246
  return ut(() => {
247
247
  t.current = s;
248
248
  }, [s]), t.current;
249
249
  }, Ut = ({ color: s, labelAverage: t, labelMain: e }) => {
250
- const r = x(), a = Lt(r, s);
251
- return /* @__PURE__ */ f("div", { className: `mx-cmn-bar-chart-legend ${a}`, children: [
250
+ const r = x(), o = Lt(r, s);
251
+ return /* @__PURE__ */ f("div", { className: `mx-cmn-bar-chart-legend ${o}`, children: [
252
252
  /* @__PURE__ */ n("div", { "aria-label": e, className: "mx-cmn-color-square", role: "img" }),
253
253
  /* @__PURE__ */ n(B, { variant: "XSmall", children: e }),
254
254
  /* @__PURE__ */ f("div", { "aria-label": t, className: "mx-cmn-triple-dot", role: "img", children: [
@@ -289,23 +289,23 @@ const Ke = (s) => {
289
289
  color: t,
290
290
  height: e,
291
291
  index: r,
292
- label: a,
293
- onClick: o,
294
- selectedIndex: d,
292
+ label: o,
293
+ onClick: a,
294
+ selectedIndex: l,
295
295
  value: c
296
296
  }) => {
297
297
  const i = x(), h = Gt(i, t, e), p = (S) => {
298
- o && (S.key === " " || S.key === "Enter") && o(r);
299
- }, l = d === void 0 || d === r ? "primary" : "secondary", g = () => /* @__PURE__ */ n(
298
+ a && (S.key === " " || S.key === "Enter") && a(r);
299
+ }, d = l === void 0 || l === r ? "primary" : "secondary", g = () => /* @__PURE__ */ n(
300
300
  B,
301
301
  {
302
302
  "aria-hidden": !0,
303
- bold: d === r,
303
+ bold: l === r,
304
304
  className: "mx-cmn-bar-text",
305
- color: l,
305
+ color: d,
306
306
  component: "div",
307
307
  variant: "Small",
308
- children: a
308
+ children: o
309
309
  }
310
310
  );
311
311
  return /* @__PURE__ */ f("div", { className: `mx-cmn-bar-container ${h} ${c < 0 ? "mx-cmn-negative" : ""}`, children: [
@@ -314,8 +314,8 @@ const Ke = (s) => {
314
314
  "div",
315
315
  {
316
316
  "aria-label": s,
317
- className: `mx-cmn-bar ${o ? "mx-cmn-clickable" : ""} ${c < 0 ? "mx-cmn-bar-negative" : ""}`,
318
- onClick: o ? () => o?.(r) : void 0,
317
+ className: `mx-cmn-bar ${a ? "mx-cmn-clickable" : ""} ${c < 0 ? "mx-cmn-bar-negative" : ""}`,
318
+ onClick: a ? () => a?.(r) : void 0,
319
319
  onKeyDown: p,
320
320
  role: s ? "button" : void 0,
321
321
  tabIndex: s ? 0 : void 0
@@ -324,7 +324,7 @@ const Ke = (s) => {
324
324
  c < 0 && /* @__PURE__ */ n(g, {})
325
325
  ] });
326
326
  }, Gt = (s, t, e) => {
327
- const r = `expandBar-${Math.round(e)}`, a = ht(r, { from: { height: 0 }, to: { height: e } });
327
+ const r = `expandBar-${Math.round(e)}`, o = ht(r, { from: { height: 0 }, to: { height: e } });
328
328
  return w({
329
329
  display: "flex",
330
330
  flexDirection: "column",
@@ -337,7 +337,7 @@ const Ke = (s) => {
337
337
  animationDelay: ".5s",
338
338
  animationDuration: "1s",
339
339
  animationFillMode: "forwards",
340
- animationName: a,
340
+ animationName: o,
341
341
  animationTimingFunction: s.Easing.Default,
342
342
  backgroundColor: t,
343
343
  borderRadius: `${s.BorderRadius.Medium}px ${s.BorderRadius.Medium}px 0 0`,
@@ -361,27 +361,27 @@ const Ke = (s) => {
361
361
  averageLineHeight: t,
362
362
  bottomHeight: e,
363
363
  color: r,
364
- index: a = -1,
365
- onClick: o,
366
- range: d,
364
+ index: o = -1,
365
+ onClick: a,
366
+ range: l,
367
367
  selectedIndex: c,
368
368
  topHeight: i,
369
369
  value: h,
370
370
  valueLabel: p = "",
371
- width: l,
371
+ width: d,
372
372
  xAxisLabel: g = ""
373
373
  }) => {
374
- const S = x(), C = Ht(S, l), D = h / d * i, A = Math.abs(h) / d * e, v = c === void 0 || c === a ? "primary" : "secondary";
374
+ const S = x(), C = Ht(S, d), v = h / l * i, D = Math.abs(h) / l * e, E = c === void 0 || c === o ? "primary" : "secondary";
375
375
  return /* @__PURE__ */ f("div", { className: `mx-cmn-barchart-bar-column ${C}`, children: [
376
376
  /* @__PURE__ */ n("div", { style: { height: i }, children: h >= 0 && /* @__PURE__ */ n(
377
377
  q,
378
378
  {
379
379
  ariaLabel: s,
380
380
  color: r,
381
- height: D,
382
- index: a,
381
+ height: v,
382
+ index: o,
383
383
  label: p,
384
- onClick: o,
384
+ onClick: a,
385
385
  selectedIndex: c,
386
386
  value: h
387
387
  }
@@ -393,19 +393,19 @@ const Ke = (s) => {
393
393
  {
394
394
  ariaLabel: s,
395
395
  color: r,
396
- height: A,
397
- index: a,
396
+ height: D,
397
+ index: o,
398
398
  label: p,
399
- onClick: o,
399
+ onClick: a,
400
400
  value: h
401
401
  }
402
402
  ) }),
403
403
  /* @__PURE__ */ n(
404
404
  "div",
405
405
  {
406
- className: `mx-cmn-bar-label ${o ? "mx-cmn-clickable" : ""}`,
407
- onClick: o ? () => o(a) : void 0,
408
- children: /* @__PURE__ */ n(B, { bold: c === a, color: v, variant: "Small", children: g })
406
+ className: `mx-cmn-bar-label ${a ? "mx-cmn-clickable" : ""}`,
407
+ onClick: a ? () => a(o) : void 0,
408
+ children: /* @__PURE__ */ n(B, { bold: c === o, color: E, variant: "Small", children: g })
409
409
  }
410
410
  )
411
411
  ] });
@@ -442,29 +442,29 @@ const Ke = (s) => {
442
442
  barWidth: t = "8%",
443
443
  color: e,
444
444
  data: r,
445
- height: a,
446
- legendLabelAverage: o,
447
- legendLabelMain: d,
445
+ height: o,
446
+ legendLabelAverage: a,
447
+ legendLabelMain: l,
448
448
  onBarClick: c,
449
449
  selectedIndex: i,
450
450
  valueFormatter: h = (p) => `${p}`
451
451
  }) => {
452
- const p = x(), l = zt(p), g = r.reduce(qt, []), S = s !== void 0 ? s : g.reduce(Ft, 0) / g.length, C = Math.max(...g), D = Math.min(...g), A = g.reduce(Wt, 0), v = C >= 0, R = D < 0, I = Q(v, R, a), N = Q(R, v, a), P = Yt(S, C, D, I || N), tt = (b) => i === void 0 || b === i ? e : `${e}80`, O = () => /* @__PURE__ */ n(
452
+ const p = x(), d = zt(p), g = r.reduce(qt, []), S = s !== void 0 ? s : g.reduce(Ft, 0) / g.length, C = Math.max(...g), v = Math.min(...g), D = g.reduce(Wt, 0), E = C >= 0, R = v < 0, I = Q(E, R, o), N = Q(R, E, o), P = Yt(S, C, v, I || N), tt = (b) => i === void 0 || b === i ? e : `${e}80`, O = () => /* @__PURE__ */ n(
453
453
  Y,
454
454
  {
455
455
  averageLineHeight: P,
456
456
  bottomHeight: N,
457
457
  color: "",
458
- range: A,
458
+ range: D,
459
459
  topHeight: I,
460
460
  value: 0,
461
461
  width: void 0
462
462
  }
463
463
  );
464
- return /* @__PURE__ */ f("div", { className: `mx-cmn-bar-chart ${l}`, children: [
464
+ return /* @__PURE__ */ f("div", { className: `mx-cmn-bar-chart ${d}`, children: [
465
465
  /* @__PURE__ */ f("div", { className: "mx-cmn-chart-container", children: [
466
466
  /* @__PURE__ */ n(O, {}),
467
- r.map((b, M) => /* @__PURE__ */ f(lt.Fragment, { children: [
467
+ r.map((b, M) => /* @__PURE__ */ f(dt.Fragment, { children: [
468
468
  /* @__PURE__ */ n(
469
469
  Y,
470
470
  {
@@ -474,7 +474,7 @@ const Ke = (s) => {
474
474
  color: tt(M),
475
475
  index: M,
476
476
  onClick: c,
477
- range: A,
477
+ range: D,
478
478
  selectedIndex: i,
479
479
  topHeight: I,
480
480
  value: b.value,
@@ -486,7 +486,7 @@ const Ke = (s) => {
486
486
  /* @__PURE__ */ n(O, {})
487
487
  ] }, `column-${M}`))
488
488
  ] }),
489
- /* @__PURE__ */ n(Ut, { color: e, labelAverage: o, labelMain: d })
489
+ /* @__PURE__ */ n(Ut, { color: e, labelAverage: a, labelMain: l })
490
490
  ] });
491
491
  }, zt = (s) => w({
492
492
  "& .mx-cmn-chart-container": {
@@ -501,11 +501,11 @@ const Ke = (s) => {
501
501
  segments: t,
502
502
  size: e = gt,
503
503
  strokeWidth: r = pt,
504
- children: a
504
+ children: o
505
505
  }) => {
506
- const o = x(), d = jt(o, e), c = (e - r) / 2, i = e / 2;
506
+ const a = x(), l = jt(a, e), c = (e - r) / 2, i = e / 2;
507
507
  let h = -90 - (s ? 1 : 0), p = 0;
508
- return /* @__PURE__ */ f("div", { className: `mx-cmn-multi-segment-donut ${d}`, children: [
508
+ return /* @__PURE__ */ f("div", { className: `mx-cmn-multi-segment-donut ${l}`, children: [
509
509
  /* @__PURE__ */ f("svg", { height: e, width: e, children: [
510
510
  /* @__PURE__ */ n(
511
511
  "circle",
@@ -514,18 +514,18 @@ const Ke = (s) => {
514
514
  cy: i,
515
515
  fill: "none",
516
516
  r: c,
517
- stroke: o.Color.Neutral300,
517
+ stroke: a.Color.Neutral300,
518
518
  strokeWidth: r
519
519
  }
520
520
  ),
521
- t.map((l, g) => (h += 360 * p + (s ? 1 : 0), p = (l.percent - (s ? 0.3 : 0)) / 100, /* @__PURE__ */ n(
521
+ t.map((d, g) => (h += 360 * p + (s ? 1 : 0), p = (d.percent - (s ? 0.3 : 0)) / 100, /* @__PURE__ */ n(
522
522
  "circle",
523
523
  {
524
524
  cx: i,
525
525
  cy: i,
526
526
  fill: "none",
527
527
  r: c,
528
- stroke: l.color,
528
+ stroke: d.color,
529
529
  strokeDasharray: 2 * Math.PI * c,
530
530
  strokeDashoffset: 2 * Math.PI * c * (1 - p),
531
531
  strokeWidth: r,
@@ -534,7 +534,7 @@ const Ke = (s) => {
534
534
  g
535
535
  )))
536
536
  ] }),
537
- /* @__PURE__ */ n("div", { className: "mx-cmn-multi-segment-donut-children", children: a })
537
+ /* @__PURE__ */ n("div", { className: "mx-cmn-multi-segment-donut-children", children: o })
538
538
  ] });
539
539
  }, jt = (s, t) => w({
540
540
  height: t,
@@ -556,7 +556,11 @@ class Kt {
556
556
  featureNamespace = "experiences";
557
557
  isInitialized = !1;
558
558
  constructor(t) {
559
- this.globalStore = t, this.api = new k(t.endpoint, t.sessionToken), _(this);
559
+ this.globalStore = t, this.api = new k(
560
+ t.endpoint,
561
+ t.sessionToken,
562
+ t.onError
563
+ ), _(this);
560
564
  }
561
565
  // DEPRECATED: Initialize api in constructor and use loadCopy instead
562
566
  // TODO: Remove this function
@@ -612,7 +616,7 @@ class Vt {
612
616
  yt.getActiveMatchingSurveys((e) => {
613
617
  m(() => {
614
618
  if (e.length > 0) {
615
- const r = e.find((a) => a.id === this.surveyId);
619
+ const r = e.find((o) => o.id === this.surveyId);
616
620
  r && (this.survey = r, this.currentQuestionIndex = 0, this.question = r.questions[0], this.response = null, this.responses = {});
617
621
  }
618
622
  });
@@ -630,16 +634,16 @@ class Vt {
630
634
  }
631
635
  class z {
632
636
  fetchInstance;
633
- constructor(t, e) {
634
- this.fetchInstance = new y(t, e);
637
+ constructor(t, e, r) {
638
+ this.fetchInstance = new y(t, e, void 0, r);
635
639
  }
636
640
  addBudget = async (t, e, r = null) => this.fetchInstance.post(u.BUDGETS, {
637
641
  amount: e,
638
642
  category_guid: t.guid,
639
643
  category_name: t.name,
640
644
  parent_guid: r
641
- }).then((a) => a.budget).catch((a) => {
642
- throw a;
645
+ }).then((o) => o.budget).catch((o) => {
646
+ throw o;
643
647
  });
644
648
  deleteBudget = async (t) => this.fetchInstance.delete(`${u.BUDGETS}/${t}`).then((e) => e).catch((e) => {
645
649
  throw e;
@@ -660,7 +664,7 @@ class Zt {
660
664
  isDataLoaded = !1;
661
665
  theme = {};
662
666
  constructor(t) {
663
- this.globalStore = t, this.api = new z(t.endpoint, t.sessionToken), _(this);
667
+ this.globalStore = t, this.api = new z(t.endpoint, t.sessionToken, t.onError), _(this);
664
668
  }
665
669
  loadBudgetData = async () => {
666
670
  await this.loadBudgets(), _t(
@@ -682,7 +686,7 @@ class Zt {
682
686
  get detailedBudgets() {
683
687
  return L(
684
688
  this.budgets.filter(
685
- (t) => t.category_guid !== T.INCOME && t.category_guid !== T.TRANSFER && t.category_guid !== T.INVESTMENTS
689
+ (t) => t.category_guid !== A.INCOME && t.category_guid !== A.TRANSFER && t.category_guid !== A.INVESTMENTS
686
690
  ),
687
691
  this.globalStore.categoryStore.detailedCategories,
688
692
  this.globalStore.copyStore.copy.budgets,
@@ -696,7 +700,7 @@ class Zt {
696
700
  this.globalStore.copyStore.copy.budgets,
697
701
  this.theme
698
702
  ).reduce(
699
- (r, a) => a.category_guid !== T.INCOME ? r : !r || a.percentage > r.percentage ? a : r,
703
+ (r, o) => o.category_guid !== A.INCOME ? r : !r || o.percentage > r.percentage ? o : r,
700
704
  void 0
701
705
  )?.amount;
702
706
  }
@@ -710,12 +714,12 @@ class Zt {
710
714
  }
711
715
  addBudget = async (t, e, r = null) => {
712
716
  try {
713
- const a = await this.api.addBudget(t, e, r);
717
+ const o = await this.api.addBudget(t, e, r);
714
718
  m(() => {
715
- this.budgets.push(a);
719
+ this.budgets.push(o);
716
720
  });
717
- } catch (a) {
718
- console.error(`Error adding budget: ${a}`);
721
+ } catch (o) {
722
+ console.error(`Error adding budget: ${o}`);
719
723
  }
720
724
  };
721
725
  deleteBudget = async (t) => {
@@ -750,14 +754,14 @@ class Zt {
750
754
  recalculateBudgets = async (t) => {
751
755
  try {
752
756
  for (const r of t) {
753
- const a = this.budgets.find((o) => o.category_guid === r.guid);
754
- a ? await this.api.updateBudget({
755
- ...a,
757
+ const o = this.budgets.find((a) => a.category_guid === r.guid);
758
+ o ? await this.api.updateBudget({
759
+ ...o,
756
760
  amount: r.totalAverageAmount
757
761
  }) : await this.api.addBudget(r, r.totalAverageAmount);
758
762
  }
759
763
  const e = this.budgets.filter(
760
- (r) => !t.find((a) => a.guid === r.category_guid)
764
+ (r) => !t.find((o) => o.guid === r.category_guid)
761
765
  );
762
766
  for (const r of e)
763
767
  await this.api.deleteBudget(r.guid);
@@ -770,7 +774,7 @@ class Zt {
770
774
  try {
771
775
  const e = await this.api.updateBudget(t);
772
776
  m(() => {
773
- const r = this.budgets.findIndex((a) => a.guid === t.guid);
777
+ const r = this.budgets.findIndex((o) => o.guid === t.guid);
774
778
  r >= 0 && (this.budgets[r] = e);
775
779
  });
776
780
  } catch (e) {
@@ -781,36 +785,36 @@ class Zt {
781
785
  var Jt = /* @__PURE__ */ ((s) => (s[s.UNKNOWN = 0] = "UNKNOWN", s[s.CORRECT = 1] = "CORRECT", s[s.INCORRECT = 2] = "INCORRECT", s))(Jt || {}), te = /* @__PURE__ */ ((s) => (s.Missed = "Missed", s.Paid = "Paid", s.Upcoming = "Upcoming expense", s.Income = "Income", s))(te || {}), ee = /* @__PURE__ */ ((s) => (s[s.Unknown = 0] = "Unknown", s[s.Subscription = 1] = "Subscription", s[s.Bill = 2] = "Bill", s))(ee || {}), se = /* @__PURE__ */ ((s) => (s.Desktop = "Desktop", s.Mobile = "Mobile", s))(se || {});
782
786
  class X {
783
787
  fetchInstance;
784
- constructor(t, e) {
785
- this.fetchInstance = new y(t, e);
788
+ constructor(t, e, r) {
789
+ this.fetchInstance = new y(t, e, void 0, r);
786
790
  }
787
791
  createSupportTicket = async (t) => this.fetchInstance.post(u.SUPPORT_TICKETS, t).then((e) => e);
788
792
  }
789
- const re = (s, t) => s.guid === "general" || s.guid === "insights" ? !0 : s.flags ? s.flags.every((e) => t[e]) : !1, ae = (s, t) => {
793
+ const re = (s, t) => s.guid === "general" || s.guid === "insights" ? !0 : s.flags ? s.flags.every((e) => t[e]) : !1, oe = (s, t) => {
790
794
  const e = [];
791
- for (const r of at) {
792
- const a = t[r.guid];
793
- if (!a) continue;
794
- const o = {
795
+ for (const r of ot) {
796
+ const o = t[r.guid];
797
+ if (!o) continue;
798
+ const a = {
795
799
  ...r,
796
- title: a.label,
797
- topics: r.topics.map(({ topicKey: d }, c) => ({
798
- topicKey: d,
799
- label: a.topics[c]
800
+ title: o.label,
801
+ topics: r.topics.map(({ topicKey: l }, c) => ({
802
+ topicKey: l,
803
+ label: o.topics[c]
800
804
  }))
801
805
  };
802
- re(o, s) && e.push(o);
806
+ re(a, s) && e.push(a);
803
807
  }
804
808
  return e;
805
809
  };
806
- class oe {
810
+ class ae {
807
811
  alert = { message: "", severity: void 0 };
808
812
  api = new X("/", "");
809
813
  appConfig;
810
814
  globalStore;
811
815
  isLoading = !1;
812
816
  constructor(t) {
813
- this.globalStore = t, this.api = new X(t.endpoint, t.sessionToken), _(this);
817
+ this.globalStore = t, this.api = new X(t.endpoint, t.sessionToken, t.onError), _(this);
814
818
  }
815
819
  createSupportTicket = async (t) => {
816
820
  try {
@@ -829,7 +833,7 @@ class oe {
829
833
  const { client_communication_profile: t, client_profile: e } = this.globalStore.appDataStore.appData, {
830
834
  help: { category_list: r }
831
835
  } = this.globalStore.copyStore.copy;
832
- return ae(
836
+ return oe(
833
837
  {
834
838
  ...t,
835
839
  ...e,
@@ -841,27 +845,27 @@ class oe {
841
845
  }
842
846
  class j {
843
847
  fetchInstance;
844
- constructor(t, e) {
845
- this.fetchInstance = new y(t, e);
848
+ constructor(t, e, r) {
849
+ this.fetchInstance = new y(t, e, void 0, r);
846
850
  }
847
851
  getHoldings = async () => this.fetchInstance.get(u.HOLDINGS).then((t) => t.holdings);
848
852
  updateHoldings = async (t) => this.fetchInstance.put(`${u.HOLDINGS}/${t.guid}`, t).then((e) => e.holding);
849
853
  }
850
854
  class ne {
851
- analysisType = Dt.Stocks;
855
+ analysisType = vt.Stocks;
852
856
  api = new j("/", "");
853
857
  holdings = [];
854
858
  holdingsLoaded = !1;
855
859
  globalStore;
856
860
  showConnectionsWidget = !1;
857
861
  constructor(t) {
858
- this.globalStore = t, this.api = new j(t.endpoint, t.sessionToken), _(this);
862
+ this.globalStore = t, this.api = new j(t.endpoint, t.sessionToken, t.onError), _(this);
859
863
  }
860
864
  get analysisChartData() {
861
- return At(vt(this.visibleHoldings), this.analysisType);
865
+ return Dt(Et(this.visibleHoldings), this.analysisType);
862
866
  }
863
867
  get analysisDetails() {
864
- return Tt(this.visibleHoldings)[this.analysisType] || {};
868
+ return At(this.visibleHoldings)[this.analysisType] || {};
865
869
  }
866
870
  get visibleHoldings() {
867
871
  return this.holdings.filter(
@@ -887,11 +891,11 @@ class ne {
887
891
  updateHoldings = async (t) => {
888
892
  this.holdingsLoaded = !1;
889
893
  try {
890
- const e = await this.api.updateHoldings(t), r = this.holdings.findIndex(({ guid: a }) => a === t.guid);
894
+ const e = await this.api.updateHoldings(t), r = this.holdings.findIndex(({ guid: o }) => o === t.guid);
891
895
  if (r >= 0) {
892
- const a = [...this.holdings];
893
- a[r] = e, m(() => {
894
- this.holdings = a, this.holdingsLoaded = !0;
896
+ const o = [...this.holdings];
897
+ o[r] = e, m(() => {
898
+ this.holdings = o, this.holdingsLoaded = !0;
895
899
  });
896
900
  }
897
901
  } catch (e) {
@@ -1003,8 +1007,8 @@ const K = {
1003
1007
  };
1004
1008
  class V {
1005
1009
  fetchInstance;
1006
- constructor(t, e) {
1007
- this.fetchInstance = new y(t, e);
1010
+ constructor(t, e, r) {
1011
+ this.fetchInstance = new y(t, e, void 0, r);
1008
1012
  }
1009
1013
  getAppData = async () => this.fetchInstance.get(u.APP_DATA).then((t) => t);
1010
1014
  }
@@ -1015,7 +1019,7 @@ class ie {
1015
1019
  appData = {};
1016
1020
  banner = {};
1017
1021
  constructor(t) {
1018
- this.globalStore = t, this.api = new V(t.endpoint, t.sessionToken), _(this);
1022
+ this.globalStore = t, this.api = new V(t.endpoint, t.sessionToken, t.onError), _(this);
1019
1023
  }
1020
1024
  get appConfig() {
1021
1025
  return this.globalStore.appConfig;
@@ -1069,7 +1073,7 @@ class ce {
1069
1073
  widget_url: { widget_type: t, color_scheme: e, ...r }
1070
1074
  });
1071
1075
  }
1072
- class le {
1076
+ class de {
1073
1077
  globalStore;
1074
1078
  isInitialized = !1;
1075
1079
  selectedAccounts = [];
@@ -1097,8 +1101,8 @@ class le {
1097
1101
  };
1098
1102
  // Sets an array of selected account guids for the AccountFilter component
1099
1103
  setSelectedAccountGuids = async (t) => {
1100
- const e = new Set(this.selectedAccountGuids), r = new Set(t), a = [...r].filter((d) => !e.has(d)), o = [...e].filter((d) => !r.has(d));
1101
- a.length > 0 && this.globalStore.accountStore.updateAccountFiltering(a, !1), o.length > 0 && this.globalStore.accountStore.updateAccountFiltering(o, !0), this.selectedAccountGuids = t;
1104
+ const e = new Set(this.selectedAccountGuids), r = new Set(t), o = [...r].filter((l) => !e.has(l)), a = [...e].filter((l) => !r.has(l));
1105
+ o.length > 0 && this.globalStore.accountStore.updateAccountFiltering(o, !1), a.length > 0 && this.globalStore.accountStore.updateAccountFiltering(a, !0), this.selectedAccountGuids = t;
1102
1106
  };
1103
1107
  setDisplayedDate = (t, e) => {
1104
1108
  this.displayedDate = e, this.displayedDateRange = {
@@ -1107,20 +1111,20 @@ class le {
1107
1111
  };
1108
1112
  };
1109
1113
  get shouldDisableNextDate() {
1110
- const t = E(this.displayedDate), e = E(Nt(/* @__PURE__ */ new Date(), 1));
1114
+ const t = T(this.displayedDate), e = T(Nt(/* @__PURE__ */ new Date(), 1));
1111
1115
  return t === e;
1112
1116
  }
1113
1117
  get shouldDisablePrevDate() {
1114
- const t = E(this.displayedDate), e = E(/* @__PURE__ */ new Date());
1118
+ const t = T(this.displayedDate), e = T(/* @__PURE__ */ new Date());
1115
1119
  return t === e;
1116
1120
  }
1117
1121
  }
1118
- class de {
1122
+ class le {
1119
1123
  globalStore;
1120
1124
  api = new $("/", "");
1121
1125
  userFeatures = [];
1122
1126
  constructor(t) {
1123
- this.globalStore = t, this.api = new $(t.endpoint, t.sessionToken), _(this);
1127
+ this.globalStore = t, this.api = new $(t.endpoint, t.sessionToken, t.onError), _(this);
1124
1128
  }
1125
1129
  // DEPRECATED: Initialize api in constructor and use loadUserFeatures instead
1126
1130
  // TODO: Remove this function
@@ -1165,6 +1169,7 @@ class Je {
1165
1169
  appConfig = K;
1166
1170
  endpoint = "/";
1167
1171
  sessionToken = "";
1172
+ onError;
1168
1173
  // Data Stores
1169
1174
  accountStore;
1170
1175
  appDataStore;
@@ -1190,8 +1195,8 @@ class Je {
1190
1195
  userStore;
1191
1196
  // UI Stores
1192
1197
  globalUiStore;
1193
- constructor(t = K, e = "/") {
1194
- this.appConfig = t, this.endpoint = e, this.sessionToken = t.options.session_token ?? "", this.accountStore = new ft(this), this.appDataStore = new ie(this), this.analyticsStore = new Vt(this), this.beatStore = new St(this), this.budgetsStore = new Zt(this), this.cashflowStore = new nt(this), this.categoryStore = new et(this), this.connectStore = new ce(this), this.copyStore = new Kt(this), this.debtsStore = new xt(this), this.finstrongStore = new Ct(this), this.goalStore = new it(this), this.helpStore = new oe(this), this.holdingStore = new ne(this), this.merchantStore = new Et(this), this.netWorthStore = new Bt(this), this.notificationStore = new st(this), this.recurringTransactionsStore = new mt(this), this.settingsStore = new It(this), this.transactionStore = new ot(this), this.trendsStore = new ct(this), this.userStore = new de(this), this.globalUiStore = new le(this), _(this);
1198
+ constructor(t = K, e = "/", r) {
1199
+ this.appConfig = t, this.endpoint = e, this.sessionToken = t.options.session_token ?? "", this.onError = r, this.accountStore = new ft(this), this.appDataStore = new ie(this), this.analyticsStore = new Vt(this), this.beatStore = new St(this), this.budgetsStore = new Zt(this), this.cashflowStore = new nt(this), this.categoryStore = new et(this), this.connectStore = new ce(this), this.copyStore = new Kt(this), this.debtsStore = new xt(this), this.finstrongStore = new Ct(this), this.goalStore = new it(this), this.helpStore = new ae(this), this.holdingStore = new ne(this), this.merchantStore = new Tt(this), this.netWorthStore = new Bt(this), this.notificationStore = new st(this), this.recurringTransactionsStore = new mt(this), this.settingsStore = new It(this), this.transactionStore = new at(this), this.trendsStore = new ct(this), this.userStore = new le(this), this.globalUiStore = new de(this), _(this);
1195
1200
  }
1196
1201
  get isInitialized() {
1197
1202
  return this.globalUiStore.isInitialized;
@@ -1200,9 +1205,9 @@ class Je {
1200
1205
  accounts: t,
1201
1206
  appData: e,
1202
1207
  associatedBeats: r,
1203
- categories: a,
1204
- institutions: o,
1205
- transactionRules: d,
1208
+ categories: o,
1209
+ institutions: a,
1210
+ transactionRules: l,
1206
1211
  transactions: c,
1207
1212
  userFeatures: i
1208
1213
  } = {}) => {
@@ -1212,22 +1217,22 @@ class Je {
1212
1217
  this.appDataStore.loadAppData(e),
1213
1218
  this.userStore.loadUserFeatures(i)
1214
1219
  ]), await Promise.all([
1215
- this.accountStore.loadAccountData({ accounts: t, institutions: o }),
1216
- this.categoryStore.loadCategories(a),
1220
+ this.accountStore.loadAccountData({ accounts: t, institutions: a }),
1221
+ this.categoryStore.loadCategories(o),
1217
1222
  this.transactionStore.loadTransactionData({
1218
1223
  associatedBeats: r,
1219
- transactionRules: d,
1224
+ transactionRules: l,
1220
1225
  transactions: c
1221
1226
  })
1222
1227
  ]), this.globalUiStore.setInitialized(!0);
1223
1228
  };
1224
1229
  }
1225
1230
  export {
1226
- Ds as ANALYTICS_EVENTS,
1227
- Es as AccountFilter,
1231
+ vs as ANALYTICS_EVENTS,
1232
+ Ts as AccountFilter,
1228
1233
  Bs as AccountIcon,
1229
1234
  Is as AccountIconVariants,
1230
- Er as AccountNotificationTypes,
1235
+ Tr as AccountNotificationTypes,
1231
1236
  Ns as AccountSubType,
1232
1237
  Ms as AccountType,
1233
1238
  ks as AccountTypeName,
@@ -1239,23 +1244,23 @@ export {
1239
1244
  Br as BudgetNotificationTypes,
1240
1245
  gs as Calendar,
1241
1246
  ps as CalendarSelectionTypes,
1242
- ls as CategoryApi,
1243
- ea as CategoryColors,
1244
- sa as CategoryGuidToName,
1245
- T as CategoryGuids,
1246
- ra as CategoryIcon,
1247
+ ds as CategoryApi,
1248
+ eo as CategoryColors,
1249
+ so as CategoryGuidToName,
1250
+ A as CategoryGuids,
1251
+ ro as CategoryIcon,
1247
1252
  pr as ConnectCard,
1248
1253
  $s as ConnectDrawer,
1249
1254
  Rs as ConnectionStatus,
1250
1255
  Ps as ConnectionStatusEnums,
1251
- na as CurrencyCodes,
1256
+ no as CurrencyCodes,
1252
1257
  Ys as CurrencyInput,
1253
1258
  Sr as CurrencyText,
1254
1259
  Hr as DATE_FORMATS_INTL,
1255
1260
  gt as DEFAULT_DONUT_SIZE,
1256
1261
  pt as DEFAULT_STROKE_WIDTH,
1257
- or as DataRow,
1258
- As as DateRangeSelector,
1262
+ ar as DataRow,
1263
+ Ds as DateRangeSelector,
1259
1264
  Fr as Dialog,
1260
1265
  Rr as Donut,
1261
1266
  jr as Drawer,
@@ -1267,8 +1272,8 @@ export {
1267
1272
  nr as Frequency,
1268
1273
  k as GlobalCopyApi,
1269
1274
  Kt as GlobalCopyStore,
1270
- _a as GlobalDataContext,
1271
- fa as GlobalDataProvider,
1275
+ fo as GlobalDataContext,
1276
+ yo as GlobalDataProvider,
1272
1277
  Je as GlobalStore,
1273
1278
  mr as GoalType,
1274
1279
  Vr as INCOME_ACCOUNT_TYPES,
@@ -1279,7 +1284,7 @@ export {
1279
1284
  Qe as LOADING_STATUS,
1280
1285
  Or as LineChart,
1281
1286
  Cr as ListItemAction,
1282
- Ar as ListItemRow,
1287
+ Dr as ListItemRow,
1283
1288
  ms as ListItemWrapper,
1284
1289
  zs as Loader,
1285
1290
  Xe as LocalizedCopyApi,
@@ -1294,7 +1299,7 @@ export {
1294
1299
  Wr as ORDINAL_DATE_FORMAT,
1295
1300
  qr as ORDINAL_MONTH_DAY_YEAR_FORMAT,
1296
1301
  Zr as PAYMENT_ACCOUNT_TYPES,
1297
- aa as PaymentCategories,
1302
+ oo as PaymentCategories,
1298
1303
  $t as PlanTypes,
1299
1304
  Gs as ProcessingStatuses,
1300
1305
  Hs as PropertyType,
@@ -1303,21 +1308,21 @@ export {
1303
1308
  ir as RecurrenceStatus,
1304
1309
  cr as RecurrenceType,
1305
1310
  kt as RecurrenceTypes,
1306
- lr as RepeatingType,
1311
+ dr as RepeatingType,
1307
1312
  js as ResponsiveButton,
1308
1313
  Jr as SPENDING_ACCOUNT_TYPES,
1309
1314
  ee as ScheduledPaymentTypes,
1310
1315
  je as ScheduledPaymentsApi,
1311
1316
  se as ScreenSize,
1312
1317
  Vs as SearchBox,
1313
- dr as Select,
1318
+ lr as Select,
1314
1319
  Js as SelectionBox,
1315
1320
  zr as SingleSegmentDonut,
1316
- ga as Sizes,
1317
- vr as StackedLineChart,
1321
+ po as Sizes,
1322
+ Er as StackedLineChart,
1318
1323
  Lr as StatusBar,
1319
1324
  Ws as StatusName,
1320
- pa as TOUCH_TARGET,
1325
+ mo as TOUCH_TARGET,
1321
1326
  er as TabContentContainer,
1322
1327
  Mr as ToggleButtonListItem,
1323
1328
  kr as ToggleListItem,
@@ -1325,56 +1330,57 @@ export {
1325
1330
  _s as TransactionStatus,
1326
1331
  rt as TransactionType,
1327
1332
  $ as UserApi,
1328
- de as UserStore,
1333
+ le as UserStore,
1329
1334
  Jt as UserVerification,
1330
1335
  W as WidgetApi,
1331
- vs as WidgetContainer,
1332
- ya as WidgetContainerContext,
1333
- Sa as WidgetContainerProvider,
1336
+ Es as WidgetContainer,
1337
+ So as WidgetContainerContext,
1338
+ bo as WidgetContainerProvider,
1334
1339
  rs as analyticsSession,
1335
- ro as buildDynamicCopy,
1336
- ao as buildPluralCopy,
1337
- ia as formatCurrency,
1340
+ aa as buildDynamicCopy,
1341
+ na as buildPluralCopy,
1342
+ io as formatCurrency,
1338
1343
  Yr as formatDate,
1339
- ca as formatOrdinal,
1340
- la as formatPercentage,
1341
- eo as fromTimestampToMonthYear,
1342
- ja as getCategory,
1343
- Ka as getCategoryTotalsByParent,
1344
+ co as formatOrdinal,
1345
+ lo as formatPercentage,
1346
+ ra as fromTimestampToMonthYear,
1347
+ Vo as getCategory,
1348
+ Zo as getCategoryTotalsByParent,
1344
1349
  ze as getClientTheme,
1345
- da as getCurrencyCodes,
1346
- Va as getDetailedCategory,
1347
- Za as getDetailedSubCategory,
1348
- oo as getLocale,
1349
- Ja as isIncome,
1350
- ua as isValidNumber,
1351
- ba as useAccountStore,
1352
- wa as useAppConfig,
1353
- xa as useBudgetsStore,
1354
- Ca as useCashflowStore,
1355
- Da as useCategoryStore,
1356
- as as useCombineEvents,
1357
- os as useCombinePageviews,
1358
- Aa as useDebtStore,
1359
- va as useEvent,
1360
- Ta as useFinstrongStore,
1361
- Ea as useGlobalCopyStore,
1362
- Ba as useGlobalStore,
1363
- Ia as useGlobalUiStore,
1364
- Na as useGoalStore,
1365
- Ma as useHelpStore,
1366
- ka as useHoldingStore,
1367
- Ya as useInsightsEnabled,
1368
- $a as useMerchantStore,
1369
- Ra as useNetWorthStore,
1370
- Pa as useNotificationStore,
1371
- Oa as usePageView,
1350
+ uo as getCurrencyCodes,
1351
+ Jo as getDetailedCategory,
1352
+ ta as getDetailedSubCategory,
1353
+ ia as getLocale,
1354
+ ea as isIncome,
1355
+ ho as isValidNumber,
1356
+ wo as useAccountStore,
1357
+ xo as useAppConfig,
1358
+ Co as useBudgetsStore,
1359
+ vo as useCashflowStore,
1360
+ Do as useCategoryStore,
1361
+ os as useCombineEvents,
1362
+ as as useCombinePageviews,
1363
+ Eo as useDebtStore,
1364
+ Ao as useError,
1365
+ To as useEvent,
1366
+ Bo as useFinstrongStore,
1367
+ Io as useGlobalCopyStore,
1368
+ No as useGlobalStore,
1369
+ Mo as useGlobalUiStore,
1370
+ ko as useGoalStore,
1371
+ $o as useHelpStore,
1372
+ Ro as useHoldingStore,
1373
+ zo as useInsightsEnabled,
1374
+ Po as useMerchantStore,
1375
+ Oo as useNetWorthStore,
1376
+ Uo as useNotificationStore,
1377
+ Lo as usePageView,
1372
1378
  Ke as usePrevious,
1373
- Ua as useRecurringTransactionsStore,
1374
- za as useScreenSize,
1375
- La as useSettingsStore,
1376
- Ga as useTransactionStore,
1377
- Ha as useTrendsStore,
1378
- Fa as useUserStore,
1379
- Wa as useWidgetContainerProvider
1379
+ Go as useRecurringTransactionsStore,
1380
+ jo as useScreenSize,
1381
+ Ho as useSettingsStore,
1382
+ Fo as useTransactionStore,
1383
+ Wo as useTrendsStore,
1384
+ qo as useUserStore,
1385
+ Yo as useWidgetContainerProvider
1380
1386
  };