@mx-cartographer/experiences 7.0.23-alpha.al10 → 7.0.23-alpha.al11

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 (58) hide show
  1. package/dist/{Account-CVVDlNDC.mjs → Account-BW3-oYEs.mjs} +1 -1
  2. package/dist/{AccountDetailsContent-bQKVSCZF.mjs → AccountDetailsContent-UxSEMBo_.mjs} +8 -8
  3. package/dist/{AccountDetailsHeader-BGQAu0Xm.mjs → AccountDetailsHeader-Eb3WvBGm.mjs} +8 -8
  4. package/dist/{AccountFields-CC7kzfPK.mjs → AccountFields-CIz-r3gP.mjs} +2 -2
  5. package/dist/{AccountListItem-wgvQjLxW.mjs → AccountListItem-B-ZjJ4Gp.mjs} +3 -3
  6. package/dist/{AccountStore-DpglOysH.mjs → AccountStore-DCDmxODy.mjs} +5 -5
  7. package/dist/{Accounts-ByViymVi.mjs → Accounts-CA-nqAjT.mjs} +1 -1
  8. package/dist/{BudgetUtil-gzgNEDE7.mjs → BudgetUtil-CeSLAcsl.mjs} +1 -1
  9. package/dist/{CategorySelectorDrawer-LpZcwQPa.mjs → CategorySelectorDrawer-BJ9jlCyt.mjs} +4 -4
  10. package/dist/{ConnectDrawer-C2minBK_.mjs → ConnectDrawer-phFH6OHt.mjs} +1 -1
  11. package/dist/{ConnectionsDrawer-Cd4dZuWL.mjs → ConnectionsDrawer-ihxkAi1P.mjs} +2 -2
  12. package/dist/{CurrencyInput-Dz4r9Rfe.mjs → CurrencyInput-bEx2Mbd0.mjs} +1 -1
  13. package/dist/{DebtsStore-B51DTXVj.mjs → DebtsStore-VkyMADzd.mjs} +1 -1
  14. package/dist/ExportCsvAction-CbMfQ2Wa.mjs +24 -0
  15. package/dist/{GoalStore-DqQ2FMx5.mjs → GoalStore-eSOkI6uE.mjs} +2 -2
  16. package/dist/{Help-DVPbIxMM.mjs → Help-KAAMEubC.mjs} +1 -1
  17. package/dist/{LineChart-DLk-bww5.mjs → LineChart-BWWmmJxV.mjs} +1 -1
  18. package/dist/{ListItemAction-DE6S0N5o.mjs → ListItemAction-DNZZ5fSa.mjs} +1 -1
  19. package/dist/{ManageIncome-BokhnWOn.mjs → ManageIncome-DbsiKUoO.mjs} +4 -4
  20. package/dist/{MicroWidgetContainer-5YscP1xa.mjs → MicroWidgetContainer-Dxz8uBN9.mjs} +1 -1
  21. package/dist/{MiniWidgetContainer-BlsgwNew.mjs → MiniWidgetContainer-CTyjmE1h.mjs} +1 -1
  22. package/dist/{NetWorthStore-C0hQSRzt.mjs → NetWorthStore-B6xF9eGH.mjs} +2 -2
  23. package/dist/{NotificationSettings-CWx6H-2z.mjs → NotificationSettings-BJFyyZYE.mjs} +2 -2
  24. package/dist/{OriginalBalanceAction-BKsSQVnI.mjs → OriginalBalanceAction-DepsKiJz.mjs} +3 -3
  25. package/dist/{RecurringSettings-CICRt51C.mjs → RecurringSettings-Dj29piAQ.mjs} +3 -3
  26. package/dist/ResponsiveButton-DZFp78fJ.mjs +45 -0
  27. package/dist/{TransactionDetails-BXl0m15s.mjs → TransactionDetails-C-z3HGTT.mjs} +37 -37
  28. package/dist/{TransactionStore-BElBVYfk.mjs → TransactionStore-0tLtBEIC.mjs} +209 -248
  29. package/dist/TrendsStore-WrHxzdbQ.mjs +565 -0
  30. package/dist/{User-DtwqVm3K.mjs → User-Dq9Qj764.mjs} +1 -1
  31. package/dist/ViewMoreMicroCard-DFAY0tA8.mjs +1974 -0
  32. package/dist/{WidgetContainer-DK8aZO5l.mjs → WidgetContainer-CdBs9WOZ.mjs} +2 -2
  33. package/dist/accounts/index.es.js +12 -12
  34. package/dist/analytics/index.es.js +8 -8
  35. package/dist/budgets/index.es.js +10 -10
  36. package/dist/cashflow/index.es.js +7 -7
  37. package/dist/categories/index.es.js +1 -1
  38. package/dist/common/index.es.js +518 -577
  39. package/dist/dashboard/index.es.js +9 -9
  40. package/dist/debts/index.es.js +9 -9
  41. package/dist/{exportTransactionsToCSV-Cf5VRYVr.mjs → exportTransactionsToCSV-BDlt8u0n.mjs} +1 -1
  42. package/dist/finstrong/index.es.js +6 -6
  43. package/dist/goals/index.es.js +11 -11
  44. package/dist/help/index.es.js +3 -3
  45. package/dist/{hooks-DUeXom8C.mjs → hooks-DkUqN6JE.mjs} +13 -13
  46. package/dist/investments/index.es.js +3 -3
  47. package/dist/merchants/index.es.js +1 -1
  48. package/dist/microinsights/index.es.js +14 -1969
  49. package/dist/networth/index.es.js +7 -7
  50. package/dist/notifications/index.es.js +2 -2
  51. package/dist/recurringtransactions/index.es.js +8 -8
  52. package/dist/settings/index.es.js +24 -24
  53. package/dist/spending/index.es.js +21 -21
  54. package/dist/transactions/index.es.js +259 -270
  55. package/dist/trends/index.es.js +789 -413
  56. package/package.json +1 -1
  57. package/dist/TrendsStore-DRuzsVVE.mjs +0 -505
  58. package/dist/TrendsWidget-CRi8EO04.mjs +0 -6
@@ -1,83 +1,79 @@
1
- import { G as $ } from "../useCombineEvents-DaDBSR_1.mjs";
2
- import { A as us, a as hs, u as gs, b as ps } from "../useCombineEvents-DaDBSR_1.mjs";
1
+ import { G as M } from "../useCombineEvents-DaDBSR_1.mjs";
2
+ import { A as ts, a as es, u as ss, b as as } from "../useCombineEvents-DaDBSR_1.mjs";
3
3
  import { F as y, A as l } from "../Fetch-CkFKy79O.mjs";
4
- import { B as _s } from "../BeatApi-DLu87ijw.mjs";
5
- import { C as at } from "../CategoryStore-BOyzQjQp.mjs";
6
- import { a as fs } from "../CategoryStore-BOyzQjQp.mjs";
7
- import { N as ot } from "../NotificationStore-DHtSGySy.mjs";
8
- import { a as bs } from "../NotificationStore-DHtSGySy.mjs";
9
- import { T as nt } from "../User-DtwqVm3K.mjs";
10
- import { C as xs, b as Cs, L as Ds, a as vs } from "../User-DtwqVm3K.mjs";
11
- import { H as it } from "../Help-DhcC-C05.mjs";
12
- import { E as Es } from "../Help-DhcC-C05.mjs";
13
- import { M as Is } from "../MicroWidgetContainer-5YscP1xa.mjs";
14
- import { M as Ns } from "../MiniWidgetContainer-BlsgwNew.mjs";
15
- import { A as Ms, D as $s, W as Ls } from "../WidgetContainer-DK8aZO5l.mjs";
16
- import { i as ks, a as Us, e as Os, l as Gs, A as Hs, f as Ps, j as Ws, d as qs, k as Qs, E as Ys, h as zs, N as Xs, g as Ks, P as js, m as Vs, S as Zs } from "../ConnectDrawer-C2minBK_.mjs";
17
- import { C as tr } from "../CurrencyInput-Dz4r9Rfe.mjs";
18
- import { L as sr } from "../Loader-DUaFpDGv.mjs";
19
- import { T as ct } from "../TransactionStore-BElBVYfk.mjs";
20
- import { R as ar, S as or } from "../TransactionStore-BElBVYfk.mjs";
21
- import { S as ir } from "../SearchBox-B2_zLv8-.mjs";
22
- import { T as dr } from "../TabContentContainer-j01JYR_7.mjs";
23
- import { I as ur } from "../IconBacking-B9oC6uL2.mjs";
24
- import { D as gr, F as pr, a as mr, c as _r, R as yr, S as fr } from "../RepeatingTransaction-BW4J-jeJ.mjs";
25
- import { C as dt } from "../CashflowStore-D9Dpuz7X.mjs";
26
- import { I as br } from "../CashflowStore-D9Dpuz7X.mjs";
27
- import { d as lt } from "../GoalStore-DqQ2FMx5.mjs";
28
- import { C as xr, G as Cr, M as Dr, T as vr } from "../GoalStore-DqQ2FMx5.mjs";
29
- import { C as Er } from "../CurrencyText-YUhH2caW.mjs";
30
- import { E as Ir } from "../EmptyState-C0lr9E5T.mjs";
31
- import { L as Nr } from "../ListItemAction-DE6S0N5o.mjs";
32
- import { jsxs as h, jsx as o } from "react/jsx-runtime";
33
- import tt, { useRef as ut, useEffect as ht } from "react";
34
- import gt from "@mui/material/ListItem";
35
- import pt from "@mui/material/ListItemButton";
36
- import O from "@mui/material/ListItemIcon";
37
- import mt from "@mui/material/ListItemText";
38
- import T from "@mui/material/Stack";
39
- import { useTokens as x, Text as S } from "@mxenabled/mxui";
40
- import { A as Mr, B as $r, I as Lr, N as Rr, T as kr, a as Ur } from "../Notification-ByMBpJ5u.mjs";
41
- import { css as C, keyframes as _t } from "@mxenabled/cssinjs";
42
- import { D as Gr } from "../Donut-1UMNcG67.mjs";
43
- import { L as Pr } from "../LineChart-DLk-bww5.mjs";
44
- import { T as yt } from "../TrendsStore-DRuzsVVE.mjs";
45
- import { S as qr, u as Qr } from "../TrendsStore-DRuzsVVE.mjs";
46
- import { S as zr } from "../StatusBar-BK_uYHAB.mjs";
47
- import { D as Kr, a as jr, O as Vr, b as Zr, f as Jr } from "../Dialog-CWW597AF.mjs";
48
- import { D as ft, a as St } from "../SingleSegmentDonut-BgbLgwHi.mjs";
49
- import { S as ea } from "../SingleSegmentDonut-BgbLgwHi.mjs";
50
- import { D as ra } from "../Drawer-kEE73B87.mjs";
51
- import { I as oa, P as na, S as ia } from "../Account-CVVDlNDC.mjs";
52
- import { b as I } from "../Category-CevNQ03n.mjs";
53
- import { C as da, c as la, a as ua, P as ha } from "../Category-CevNQ03n.mjs";
54
- import { C as pa, f as ma, b as _a, a as ya, g as fa, i as Sa } from "../NumberFormatting-CtWHhyBX.mjs";
55
- import { R as bt } from "../RecurringTransactionsStore-D62XJtdL.mjs";
56
- import { S as wa, T as xa } from "../RecurringTransactionsStore-D62XJtdL.mjs";
57
- import { G as Da, A as va, B as Aa, W as Ea, c as Ta, l as Ia, e as Ba, v as Na, j as Fa, x as Ma, g as $a, w as La, u as Ra, k as ka, a as Ua, i as Oa, y as Ga, t as Ha, b as Pa, q as Wa, m as qa, z as Qa, f as Ya, r as za, n as Xa, s as Ka, o as ja, p as Va } from "../hooks-DUeXom8C.mjs";
58
- import { u as Ja } from "../useScreenSize-B6JyS_Lj.mjs";
59
- import { makeAutoObservable as _, runInAction as m, reaction as wt } from "mobx";
60
- import { a as xt } from "../AccountStore-DpglOysH.mjs";
61
- import Ct from "posthog-js";
62
- import { B as Dt } from "../BeatStore-By4aGoRM.mjs";
63
- import { endOfMonth as et } from "date-fns/endOfMonth";
64
- import { startOfMonth as st } from "date-fns/startOfMonth";
65
- import { startOfToday as G } from "date-fns/startOfToday";
66
- import { f as vt, a as At, b as H } from "../BudgetUtil-gzgNEDE7.mjs";
67
- import { g as eo, e as so, c as ro, d as ao, i as oo } from "../BudgetUtil-gzgNEDE7.mjs";
68
- import { a as Et } from "../DebtsStore-B51DTXVj.mjs";
69
- import { a as Tt } from "../FinstrongStore-mkALvztw.mjs";
70
- import { A as It, m as Bt, a as Nt, b as Ft } from "../InvestmentUtil-jOyOgzIB.mjs";
71
- import { M as Mt } from "../MerchantStore-DVH-QOf0.mjs";
72
- import { N as $t } from "../NetWorthStore-C0hQSRzt.mjs";
73
- import { a as Lt } from "../SettingsStore-B4gi6oOw.mjs";
74
- import { addMonths as Rt } from "date-fns/addMonths";
75
- import { getMonth as B } from "date-fns/getMonth";
76
- import { i as io } from "../DateUtil-BcuH7ErC.mjs";
77
- import { b as lo, a as uo, g as ho } from "../Localization-2MODESHW.mjs";
78
- import { alpha as kt, lighten as P, darken as W } from "@mui/material";
79
- var Ut = /* @__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))(Ut || {});
80
- const Je = [
4
+ import { B as os } from "../BeatApi-DLu87ijw.mjs";
5
+ import { C as et } from "../CategoryStore-BOyzQjQp.mjs";
6
+ import { a as is } from "../CategoryStore-BOyzQjQp.mjs";
7
+ import { N as st } from "../NotificationStore-DHtSGySy.mjs";
8
+ import { a as ds } from "../NotificationStore-DHtSGySy.mjs";
9
+ import { T as at } from "../User-Dq9Qj764.mjs";
10
+ import { C as us, b as hs, L as gs, a as ps } from "../User-Dq9Qj764.mjs";
11
+ import { H as rt } from "../Help-DhcC-C05.mjs";
12
+ import { E as _s } from "../Help-DhcC-C05.mjs";
13
+ import { M as fs } from "../MicroWidgetContainer-Dxz8uBN9.mjs";
14
+ import { M as bs } from "../MiniWidgetContainer-CTyjmE1h.mjs";
15
+ import { A as xs, D as Cs, W as Ds } from "../WidgetContainer-CdBs9WOZ.mjs";
16
+ import { i as As, a as Es, e as Ts, l as Bs, A as Is, f as Ns, j as Fs, d as Ms, k as $s, E as Rs, h as Us, N as ks, g as Ls, P as Os, m as Gs, S as Hs } from "../ConnectDrawer-phFH6OHt.mjs";
17
+ import { C as qs } from "../CurrencyInput-bEx2Mbd0.mjs";
18
+ import { L as Qs } from "../Loader-DUaFpDGv.mjs";
19
+ import { R as zs } from "../ResponsiveButton-DZFp78fJ.mjs";
20
+ import { S as Ks } from "../SearchBox-B2_zLv8-.mjs";
21
+ import { T as ot } from "../TransactionStore-0tLtBEIC.mjs";
22
+ import { S as Vs } from "../TransactionStore-0tLtBEIC.mjs";
23
+ import { T as Js } from "../TabContentContainer-j01JYR_7.mjs";
24
+ import { I as ea } from "../IconBacking-B9oC6uL2.mjs";
25
+ import { D as aa, F as ra, a as oa, c as na, R as ia, S as ca } from "../RepeatingTransaction-BW4J-jeJ.mjs";
26
+ import { C as nt } from "../CashflowStore-D9Dpuz7X.mjs";
27
+ import { I as la } from "../CashflowStore-D9Dpuz7X.mjs";
28
+ import { d as it } from "../GoalStore-eSOkI6uE.mjs";
29
+ import { C as ha, G as ga, M as pa, T as ma } from "../GoalStore-eSOkI6uE.mjs";
30
+ import { C as ya } from "../CurrencyText-YUhH2caW.mjs";
31
+ import { E as Sa } from "../EmptyState-C0lr9E5T.mjs";
32
+ import { L as wa } from "../ListItemAction-DNZZ5fSa.mjs";
33
+ import { T as ct } from "../TrendsStore-WrHxzdbQ.mjs";
34
+ import { L as Ca, S as Da, u as va } from "../TrendsStore-WrHxzdbQ.mjs";
35
+ import { A as Ea, B as Ta, I as Ba, N as Ia, T as Na, a as Fa } from "../Notification-ByMBpJ5u.mjs";
36
+ import { jsxs as _, jsx as c } from "react/jsx-runtime";
37
+ import dt, { useRef as lt, useEffect as ut } from "react";
38
+ import { css as w, keyframes as ht } from "@mxenabled/cssinjs";
39
+ import { useTokens as x, Text as B } from "@mxenabled/mxui";
40
+ import { D as $a } from "../Donut-1UMNcG67.mjs";
41
+ import { L as Ua } from "../LineChart-BWWmmJxV.mjs";
42
+ import { S as La } from "../StatusBar-BK_uYHAB.mjs";
43
+ import { D as Ga, a as Ha, O as Pa, b as qa, f as Wa } from "../Dialog-CWW597AF.mjs";
44
+ import { D as gt, a as pt } from "../SingleSegmentDonut-BgbLgwHi.mjs";
45
+ import { S as Ya } from "../SingleSegmentDonut-BgbLgwHi.mjs";
46
+ import { D as Xa } from "../Drawer-kEE73B87.mjs";
47
+ import { I as ja, P as Va, S as Za } from "../Account-BW3-oYEs.mjs";
48
+ import { b as E } from "../Category-CevNQ03n.mjs";
49
+ import { C as tr, c as er, a as sr, P as ar } from "../Category-CevNQ03n.mjs";
50
+ import { C as or, f as nr, b as ir, a as cr, g as dr, i as lr } from "../NumberFormatting-CtWHhyBX.mjs";
51
+ import { R as mt } from "../RecurringTransactionsStore-D62XJtdL.mjs";
52
+ import { S as hr, T as gr } from "../RecurringTransactionsStore-D62XJtdL.mjs";
53
+ import { G as mr, A as _r, B as yr, W as fr, c as Sr, m as br, g as wr, t as xr, k as Cr, x as Dr, e as vr, w as Ar, u as Er, l as Tr, a as Br, j as Ir, y as Nr, s as Fr, b as Mr, q as $r, n as Rr, z as Ur, h as kr, r as Lr, f as Or, v as Gr, o as Hr, p as Pr } from "../hooks-DkUqN6JE.mjs";
54
+ import { u as Wr } from "../useScreenSize-B6JyS_Lj.mjs";
55
+ import { makeAutoObservable as m, runInAction as p, reaction as _t } from "mobx";
56
+ import { a as yt } from "../AccountStore-DCDmxODy.mjs";
57
+ import ft from "posthog-js";
58
+ import { B as St } from "../BeatStore-By4aGoRM.mjs";
59
+ import { endOfMonth as Z } from "date-fns/endOfMonth";
60
+ import { startOfMonth as J } from "date-fns/startOfMonth";
61
+ import { startOfToday as L } from "date-fns/startOfToday";
62
+ import { f as bt, a as wt, b as O } from "../BudgetUtil-CeSLAcsl.mjs";
63
+ import { g as Yr, e as zr, c as Xr, d as Kr, i as jr } from "../BudgetUtil-CeSLAcsl.mjs";
64
+ import { a as xt } from "../DebtsStore-VkyMADzd.mjs";
65
+ import { a as Ct } from "../FinstrongStore-mkALvztw.mjs";
66
+ import { A as Dt, m as vt, a as At, b as Et } from "../InvestmentUtil-jOyOgzIB.mjs";
67
+ import { M as Tt } from "../MerchantStore-DVH-QOf0.mjs";
68
+ import { N as Bt } from "../NetWorthStore-B6xF9eGH.mjs";
69
+ import { a as It } from "../SettingsStore-B4gi6oOw.mjs";
70
+ import { addMonths as Nt } from "date-fns/addMonths";
71
+ import { getMonth as T } from "date-fns/getMonth";
72
+ import { i as Zr } from "../DateUtil-BcuH7ErC.mjs";
73
+ import { b as to, a as eo, g as so } from "../Localization-2MODESHW.mjs";
74
+ import { alpha as Ft, lighten as G, darken as H } from "@mui/material";
75
+ 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 qe = [
81
77
  { id: 0, copy: "frequency_unknown" },
82
78
  { id: 1, copy: "frequency_every_week" },
83
79
  { id: 2, copy: "frequency_every_other_week" },
@@ -86,43 +82,43 @@ const Je = [
86
82
  { id: 5, copy: "frequency_every_quarter" },
87
83
  { id: 6, copy: "frequency_every_other_quarter" },
88
84
  { id: 7, copy: "frequency_every_year" }
89
- ], ts = {
85
+ ], We = {
90
86
  ERROR: "ERROR",
91
87
  LOADING: "LOADING",
92
88
  SUCCESS: "SUCCESS"
93
89
  };
94
- var Ot = /* @__PURE__ */ ((s) => (s[s.SpendingPlan = 0] = "SpendingPlan", s[s.Budgets = 1] = "Budgets", s))(Ot || {}), Gt = /* @__PURE__ */ ((s) => (s[s.RecurringExpense = 0] = "RecurringExpense", s[s.PlannedExpense = 1] = "PlannedExpense", s[s.Other = 2] = "Other", s[s.Income = 3] = "Income", s))(Gt || {});
95
- const es = (s, t) => {
96
- const e = s.palette.mode === "dark", r = (d, c) => {
97
- const i = t?.[d];
90
+ var $t = /* @__PURE__ */ ((s) => (s[s.SpendingPlan = 0] = "SpendingPlan", s[s.Budgets = 1] = "Budgets", s))($t || {}), Rt = /* @__PURE__ */ ((s) => (s[s.RecurringExpense = 0] = "RecurringExpense", s[s.PlannedExpense = 1] = "PlannedExpense", s[s.Other = 2] = "Other", s[s.Income = 3] = "Income", s))(Rt || {});
91
+ const Qe = (s, t) => {
92
+ const e = s.palette.mode === "dark", a = (d, i) => {
93
+ const n = t?.[d];
98
94
  return {
99
- lighter: i ? P(i, 0.5) : c.lighter,
100
- light: i ? P(i, 0.25) : c.light,
101
- main: i || c.main,
102
- dark: i ? W(i, 0.25) : c.dark,
103
- darker: i ? W(i, 0.5) : c.darker
95
+ lighter: n ? G(n, 0.5) : i.lighter,
96
+ light: n ? G(n, 0.25) : i.light,
97
+ main: n || i.main,
98
+ dark: n ? H(n, 0.25) : i.dark,
99
+ darker: n ? H(n, 0.5) : i.darker
104
100
  };
105
- }, a = {
106
- primary: r(e ? "primary_color_dark" : "primary_color", s.palette.primary),
107
- secondary: r(e ? "neutral_color_dark" : "neutral_color", s.palette.secondary),
108
- error: r(e ? "error_color_dark" : "error_color", s.palette.error),
109
- warning: r(e ? "warning_color_dark" : "warning_color", s.palette.warning),
110
- info: r(e ? "info_color_dark" : "info_color", s.palette.info),
111
- success: r(e ? "success_color_dark" : "success_color", s.palette.success)
112
- }, n = {
101
+ }, r = {
102
+ primary: a(e ? "primary_color_dark" : "primary_color", s.palette.primary),
103
+ secondary: a(e ? "neutral_color_dark" : "neutral_color", s.palette.secondary),
104
+ error: a(e ? "error_color_dark" : "error_color", s.palette.error),
105
+ warning: a(e ? "warning_color_dark" : "warning_color", s.palette.warning),
106
+ info: a(e ? "info_color_dark" : "info_color", s.palette.info),
107
+ success: a(e ? "success_color_dark" : "success_color", s.palette.success)
108
+ }, o = {
113
109
  MuiTabs: {
114
110
  styleOverrides: {
115
111
  indicator: {
116
- backgroundColor: a.primary.light
112
+ backgroundColor: r.primary.light
117
113
  }
118
114
  }
119
115
  },
120
116
  MuiPickersCalendarHeader: {
121
117
  styleOverrides: {
122
118
  switchViewButton: {
123
- color: a.primary.lighter,
119
+ color: r.primary.lighter,
124
120
  "&:hover": {
125
- backgroundColor: kt(a.primary.light, 0.1)
121
+ backgroundColor: Ft(r.primary.light, 0.1)
126
122
  }
127
123
  }
128
124
  }
@@ -217,14 +213,14 @@ const es = (s, t) => {
217
213
  fontFamily: t?.system_font ?? s.typography.fontFamily
218
214
  }
219
215
  },
220
- palette: a,
221
- components: n,
216
+ palette: r,
217
+ components: o,
222
218
  shape: {
223
219
  borderRadius: t?.button_corner_radius ?? s.shape.borderRadius
224
220
  }
225
221
  };
226
222
  };
227
- class q {
223
+ class P {
228
224
  fetchInstance;
229
225
  constructor(t) {
230
226
  this.fetchInstance = new y(t, "", {
@@ -235,13 +231,13 @@ class q {
235
231
  getBanner = async (t) => {
236
232
  try {
237
233
  const e = `/banner/${t}/account_widget_banner`;
238
- return this.fetchInstance?.get(e).then((r) => r.banner) ?? {};
234
+ return this.fetchInstance?.get(e).then((a) => a.banner) ?? {};
239
235
  } catch (e) {
240
236
  return console.error("Error fetching banner:", e), null;
241
237
  }
242
238
  };
243
239
  }
244
- class ss {
240
+ class Ye {
245
241
  fetchInstance;
246
242
  constructor(t, e) {
247
243
  this.fetchInstance = new y(t, e);
@@ -249,7 +245,7 @@ class ss {
249
245
  getLocalizedCopy = async (t) => this.fetchInstance.post(l.LOCALIZED_COPY, t).then((e) => e);
250
246
  getLocalizedContent = async (t) => this.fetchInstance.post(`${l.LOCALIZED_CONTENT}/${t}`).then((e) => e);
251
247
  }
252
- class rs {
248
+ class ze {
253
249
  fetchInstance;
254
250
  constructor(t, e) {
255
251
  this.fetchInstance = new y(t, e);
@@ -257,13 +253,13 @@ class rs {
257
253
  addScheduledPayment = async (t) => this.fetchInstance.post(l.SCHEDULED_PAYMENTS, {
258
254
  ...t,
259
255
  is_recurring: "true",
260
- transaction_type: nt.DEBIT
256
+ transaction_type: at.DEBIT
261
257
  }).then((e) => e.scheduled_payment);
262
258
  getScheduledPayments = async () => this.fetchInstance.get(l.SCHEDULED_PAYMENTS).then((t) => t.scheduled_payments);
263
259
  updateScheduledPayment = async (t) => this.fetchInstance.put(`${l.SCHEDULED_PAYMENTS}/${t.guid}`, t).then((e) => e.scheduled_payment);
264
260
  deleteScheduledPayment = async (t) => this.fetchInstance.delete(`${l.SCHEDULED_PAYMENTS}/${t}`).then((e) => e);
265
261
  }
266
- class L {
262
+ class $ {
267
263
  fetchInstance;
268
264
  constructor(t, e) {
269
265
  this.fetchInstance = new y(t, e);
@@ -272,31 +268,31 @@ class L {
272
268
  updateUser = async (t) => this.fetchInstance.put(l.USER, t).then((e) => e.user);
273
269
  updateUserProfile = async (t) => this.fetchInstance.put(`${l.USER_PROFILES}/${t.guid}`, t).then((e) => e.user_profile);
274
270
  }
275
- class Q {
271
+ class q {
276
272
  fetchInstance;
277
273
  constructor(t, e) {
278
274
  this.fetchInstance = new y(t, e);
279
275
  }
280
276
  requestWidgetUrl = async (t) => this.fetchInstance.post(l.WIDGET_URLS, t).then((e) => e.widget_url);
281
277
  }
282
- const as = (s) => {
283
- const t = ut();
284
- return ht(() => {
278
+ const Xe = (s) => {
279
+ const t = lt();
280
+ return ut(() => {
285
281
  t.current = s;
286
282
  }, [s]), t.current;
287
- }, Ht = ({ color: s, labelAverage: t, labelMain: e }) => {
288
- const r = x(), a = Pt(r, s);
289
- return /* @__PURE__ */ h("div", { className: `mx-cmn-bar-chart-legend ${a}`, children: [
290
- /* @__PURE__ */ o("div", { "aria-label": e, className: "mx-cmn-color-square", role: "img" }),
291
- /* @__PURE__ */ o(S, { variant: "XSmall", children: e }),
292
- /* @__PURE__ */ h("div", { "aria-label": t, className: "mx-cmn-triple-dot", role: "img", children: [
293
- /* @__PURE__ */ o("div", { className: "mx-cmn-dot" }),
294
- /* @__PURE__ */ o("div", { className: "mx-cmn-dot" }),
295
- /* @__PURE__ */ o("div", { className: "mx-cmn-dot" })
283
+ }, Ut = ({ color: s, labelAverage: t, labelMain: e }) => {
284
+ const a = x(), r = kt(a, s);
285
+ return /* @__PURE__ */ _("div", { className: `mx-cmn-bar-chart-legend ${r}`, children: [
286
+ /* @__PURE__ */ c("div", { "aria-label": e, className: "mx-cmn-color-square", role: "img" }),
287
+ /* @__PURE__ */ c(B, { variant: "XSmall", children: e }),
288
+ /* @__PURE__ */ _("div", { "aria-label": t, className: "mx-cmn-triple-dot", role: "img", children: [
289
+ /* @__PURE__ */ c("div", { className: "mx-cmn-dot" }),
290
+ /* @__PURE__ */ c("div", { className: "mx-cmn-dot" }),
291
+ /* @__PURE__ */ c("div", { className: "mx-cmn-dot" })
296
292
  ] }),
297
- /* @__PURE__ */ o(S, { variant: "XSmall", children: t })
293
+ /* @__PURE__ */ c(B, { variant: "XSmall", children: t })
298
294
  ] });
299
- }, Pt = (s, t) => C({
295
+ }, kt = (s, t) => w({
300
296
  alignItems: "center",
301
297
  display: "flex",
302
298
  gap: s.Spacing.XSmall,
@@ -322,48 +318,48 @@ const as = (s) => {
322
318
  "& > .kyper-text": {
323
319
  marginRight: s.Spacing.XSmall
324
320
  }
325
- }), Y = ({
321
+ }), W = ({
326
322
  ariaLabel: s,
327
323
  color: t,
328
324
  height: e,
329
- index: r,
330
- label: a,
331
- onClick: n,
325
+ index: a,
326
+ label: r,
327
+ onClick: o,
332
328
  selectedIndex: d,
333
- value: c
329
+ value: i
334
330
  }) => {
335
- const i = x(), u = Wt(i, t, e), g = (b) => {
336
- n && (b.key === " " || b.key === "Enter") && n(r);
337
- }, f = d === void 0 || d === r ? "primary" : "secondary", p = () => /* @__PURE__ */ o(
338
- S,
331
+ const n = x(), u = Lt(n, t, e), h = (S) => {
332
+ o && (S.key === " " || S.key === "Enter") && o(a);
333
+ }, f = d === void 0 || d === a ? "primary" : "secondary", g = () => /* @__PURE__ */ c(
334
+ B,
339
335
  {
340
336
  "aria-hidden": !0,
341
- bold: d === r,
337
+ bold: d === a,
342
338
  className: "mx-cmn-bar-text",
343
339
  color: f,
344
340
  component: "div",
345
341
  variant: "Small",
346
- children: a
342
+ children: r
347
343
  }
348
344
  );
349
- return /* @__PURE__ */ h("div", { className: `mx-cmn-bar-container ${u} ${c < 0 ? "mx-cmn-negative" : ""}`, children: [
350
- c >= 0 && /* @__PURE__ */ o(p, {}),
351
- /* @__PURE__ */ o(
345
+ return /* @__PURE__ */ _("div", { className: `mx-cmn-bar-container ${u} ${i < 0 ? "mx-cmn-negative" : ""}`, children: [
346
+ i >= 0 && /* @__PURE__ */ c(g, {}),
347
+ /* @__PURE__ */ c(
352
348
  "div",
353
349
  {
354
350
  "aria-label": s,
355
- className: `mx-cmn-bar ${n ? "mx-cmn-clickable" : ""} ${c < 0 ? "mx-cmn-bar-negative" : ""}`,
356
- onClick: n ? () => n?.(r) : void 0,
357
- onKeyDown: g,
351
+ className: `mx-cmn-bar ${o ? "mx-cmn-clickable" : ""} ${i < 0 ? "mx-cmn-bar-negative" : ""}`,
352
+ onClick: o ? () => o?.(a) : void 0,
353
+ onKeyDown: h,
358
354
  role: s ? "button" : void 0,
359
355
  tabIndex: s ? 0 : void 0
360
356
  }
361
357
  ),
362
- c < 0 && /* @__PURE__ */ o(p, {})
358
+ i < 0 && /* @__PURE__ */ c(g, {})
363
359
  ] });
364
- }, Wt = (s, t, e) => {
365
- const r = `expandBar-${Math.round(e)}`, a = _t(r, { from: { height: 0 }, to: { height: e } });
366
- return C({
360
+ }, Lt = (s, t, e) => {
361
+ const a = `expandBar-${Math.round(e)}`, r = ht(a, { from: { height: 0 }, to: { height: e } });
362
+ return w({
367
363
  display: "flex",
368
364
  flexDirection: "column",
369
365
  justifyContent: "flex-end",
@@ -375,7 +371,7 @@ const as = (s) => {
375
371
  animationDelay: ".5s",
376
372
  animationDuration: "1s",
377
373
  animationFillMode: "forwards",
378
- animationName: a,
374
+ animationName: r,
379
375
  animationTimingFunction: s.Easing.Default,
380
376
  backgroundColor: t,
381
377
  borderRadius: `${s.BorderRadius.Medium}px ${s.BorderRadius.Medium}px 0 0`,
@@ -394,60 +390,60 @@ const as = (s) => {
394
390
  width: "100%"
395
391
  }
396
392
  });
397
- }, z = ({
393
+ }, Q = ({
398
394
  ariaLabel: s,
399
395
  averageLineHeight: t,
400
396
  bottomHeight: e,
401
- color: r,
402
- index: a = -1,
403
- onClick: n,
397
+ color: a,
398
+ index: r = -1,
399
+ onClick: o,
404
400
  range: d,
405
- selectedIndex: c,
406
- topHeight: i,
401
+ selectedIndex: i,
402
+ topHeight: n,
407
403
  value: u,
408
- valueLabel: g = "",
404
+ valueLabel: h = "",
409
405
  width: f,
410
- xAxisLabel: p = ""
406
+ xAxisLabel: g = ""
411
407
  }) => {
412
- const b = x(), D = qt(b, f), v = u / d * i, A = Math.abs(u) / d * e, E = c === void 0 || c === a ? "primary" : "secondary";
413
- return /* @__PURE__ */ h("div", { className: `mx-cmn-barchart-bar-column ${D}`, children: [
414
- /* @__PURE__ */ o("div", { style: { height: i }, children: u >= 0 && /* @__PURE__ */ o(
415
- Y,
408
+ const S = x(), C = Ot(S, f), D = u / d * n, v = Math.abs(u) / d * e, A = i === void 0 || i === r ? "primary" : "secondary";
409
+ return /* @__PURE__ */ _("div", { className: `mx-cmn-barchart-bar-column ${C}`, children: [
410
+ /* @__PURE__ */ c("div", { style: { height: n }, children: u >= 0 && /* @__PURE__ */ c(
411
+ W,
416
412
  {
417
413
  ariaLabel: s,
418
- color: r,
419
- height: v,
420
- index: a,
421
- label: g,
422
- onClick: n,
423
- selectedIndex: c,
414
+ color: a,
415
+ height: D,
416
+ index: r,
417
+ label: h,
418
+ onClick: o,
419
+ selectedIndex: i,
424
420
  value: u
425
421
  }
426
422
  ) }),
427
- /* @__PURE__ */ o("div", { className: "mx-cmn-zero-line" }),
428
- t !== 0 && /* @__PURE__ */ o("div", { className: "mx-cmn-chart-average", style: { bottom: t } }),
429
- /* @__PURE__ */ o("div", { style: { height: e }, children: u < 0 && /* @__PURE__ */ o(
430
- Y,
423
+ /* @__PURE__ */ c("div", { className: "mx-cmn-zero-line" }),
424
+ t !== 0 && /* @__PURE__ */ c("div", { className: "mx-cmn-chart-average", style: { bottom: t } }),
425
+ /* @__PURE__ */ c("div", { style: { height: e }, children: u < 0 && /* @__PURE__ */ c(
426
+ W,
431
427
  {
432
428
  ariaLabel: s,
433
- color: r,
434
- height: A,
435
- index: a,
436
- label: g,
437
- onClick: n,
429
+ color: a,
430
+ height: v,
431
+ index: r,
432
+ label: h,
433
+ onClick: o,
438
434
  value: u
439
435
  }
440
436
  ) }),
441
- /* @__PURE__ */ o(
437
+ /* @__PURE__ */ c(
442
438
  "div",
443
439
  {
444
- className: `mx-cmn-bar-label ${n ? "mx-cmn-clickable" : ""}`,
445
- onClick: n ? () => n(a) : void 0,
446
- children: /* @__PURE__ */ o(S, { bold: c === a, color: E, variant: "Small", children: p })
440
+ className: `mx-cmn-bar-label ${o ? "mx-cmn-clickable" : ""}`,
441
+ onClick: o ? () => o(r) : void 0,
442
+ children: /* @__PURE__ */ c(B, { bold: i === r, color: A, variant: "Small", children: g })
447
443
  }
448
444
  )
449
445
  ] });
450
- }, qt = (s, t) => C({
446
+ }, Ot = (s, t) => w({
451
447
  display: "flex",
452
448
  flexDirection: "column",
453
449
  flexGrow: t === void 0 ? 1 : 0,
@@ -472,61 +468,61 @@ const as = (s) => {
472
468
  "& .mx-cmn-clickable": {
473
469
  cursor: "pointer"
474
470
  }
475
- }), Qt = (s, t) => s + t, Yt = (s, t) => Math.abs(t) > s ? Math.abs(t) : s, zt = (s, t) => [...s, t.value], X = (s, t, e) => {
476
- const r = s && t ? e / 2 : e;
477
- return s ? r : 0;
478
- }, Xt = (s, t, e, r) => s / (t < 0 ? -e : t) * r || 0, Kt = ({
471
+ }), Gt = (s, t) => s + t, Ht = (s, t) => Math.abs(t) > s ? Math.abs(t) : s, Pt = (s, t) => [...s, t.value], Y = (s, t, e) => {
472
+ const a = s && t ? e / 2 : e;
473
+ return s ? a : 0;
474
+ }, qt = (s, t, e, a) => s / (t < 0 ? -e : t) * a || 0, Wt = ({
479
475
  average: s,
480
476
  barWidth: t = "8%",
481
477
  color: e,
482
- data: r,
483
- height: a,
484
- legendLabelAverage: n,
478
+ data: a,
479
+ height: r,
480
+ legendLabelAverage: o,
485
481
  legendLabelMain: d,
486
- onBarClick: c,
487
- selectedIndex: i,
488
- valueFormatter: u = (g) => `${g}`
482
+ onBarClick: i,
483
+ selectedIndex: n,
484
+ valueFormatter: u = (h) => `${h}`
489
485
  }) => {
490
- const g = x(), f = jt(g), p = r.reduce(zt, []), b = s !== void 0 ? s : p.reduce(Qt, 0) / p.length, D = Math.max(...p), v = Math.min(...p), A = p.reduce(Yt, 0), E = D >= 0, R = v < 0, N = X(E, R, a), F = X(R, E, a), k = Xt(b, D, v, N || F), rt = (w) => i === void 0 || w === i ? e : `${e}80`, U = () => /* @__PURE__ */ o(
491
- z,
486
+ const h = x(), f = Qt(h), g = a.reduce(Pt, []), S = s !== void 0 ? s : g.reduce(Gt, 0) / g.length, C = Math.max(...g), D = Math.min(...g), v = g.reduce(Ht, 0), A = C >= 0, R = D < 0, I = Y(A, R, r), N = Y(R, A, r), U = qt(S, C, D, I || N), tt = (b) => n === void 0 || b === n ? e : `${e}80`, k = () => /* @__PURE__ */ c(
487
+ Q,
492
488
  {
493
- averageLineHeight: k,
494
- bottomHeight: F,
489
+ averageLineHeight: U,
490
+ bottomHeight: N,
495
491
  color: "",
496
- range: A,
497
- topHeight: N,
492
+ range: v,
493
+ topHeight: I,
498
494
  value: 0,
499
495
  width: void 0
500
496
  }
501
497
  );
502
- return /* @__PURE__ */ h("div", { className: `mx-cmn-bar-chart ${f}`, children: [
503
- /* @__PURE__ */ h("div", { className: "mx-cmn-chart-container", children: [
504
- /* @__PURE__ */ o(U, {}),
505
- r.map((w, M) => /* @__PURE__ */ h(tt.Fragment, { children: [
506
- /* @__PURE__ */ o(
507
- z,
498
+ return /* @__PURE__ */ _("div", { className: `mx-cmn-bar-chart ${f}`, children: [
499
+ /* @__PURE__ */ _("div", { className: "mx-cmn-chart-container", children: [
500
+ /* @__PURE__ */ c(k, {}),
501
+ a.map((b, F) => /* @__PURE__ */ _(dt.Fragment, { children: [
502
+ /* @__PURE__ */ c(
503
+ Q,
508
504
  {
509
- ariaLabel: w.ariaLabel,
510
- averageLineHeight: k,
511
- bottomHeight: F,
512
- color: rt(M),
513
- index: M,
514
- onClick: c,
515
- range: A,
516
- selectedIndex: i,
517
- topHeight: N,
518
- value: w.value,
519
- valueLabel: u(w.value),
505
+ ariaLabel: b.ariaLabel,
506
+ averageLineHeight: U,
507
+ bottomHeight: N,
508
+ color: tt(F),
509
+ index: F,
510
+ onClick: i,
511
+ range: v,
512
+ selectedIndex: n,
513
+ topHeight: I,
514
+ value: b.value,
515
+ valueLabel: u(b.value),
520
516
  width: t,
521
- xAxisLabel: w.label
517
+ xAxisLabel: b.label
522
518
  }
523
519
  ),
524
- /* @__PURE__ */ o(U, {})
525
- ] }, `column-${M}`))
520
+ /* @__PURE__ */ c(k, {})
521
+ ] }, `column-${F}`))
526
522
  ] }),
527
- /* @__PURE__ */ o(Ht, { color: e, labelAverage: n, labelMain: d })
523
+ /* @__PURE__ */ c(Ut, { color: e, labelAverage: o, labelMain: d })
528
524
  ] });
529
- }, jt = (s) => C({
525
+ }, Qt = (s) => w({
530
526
  "& .mx-cmn-chart-container": {
531
527
  alignItems: "flex-end",
532
528
  display: "flex",
@@ -534,47 +530,47 @@ const as = (s) => {
534
530
  marginTop: s.Spacing.Large,
535
531
  marginBottom: s.Spacing.Medium
536
532
  }
537
- }), os = Kt, Vt = ({
533
+ }), Ke = Wt, Yt = ({
538
534
  hasGap: s = !1,
539
535
  segments: t,
540
- size: e = ft,
541
- strokeWidth: r = St,
542
- children: a
536
+ size: e = gt,
537
+ strokeWidth: a = pt,
538
+ children: r
543
539
  }) => {
544
- const n = x(), d = Zt(n, e), c = (e - r) / 2, i = e / 2;
545
- let u = -90 - (s ? 1 : 0), g = 0;
546
- return /* @__PURE__ */ h("div", { className: `mx-cmn-multi-segment-donut ${d}`, children: [
547
- /* @__PURE__ */ h("svg", { height: e, width: e, children: [
548
- /* @__PURE__ */ o(
540
+ const o = x(), d = zt(o, e), i = (e - a) / 2, n = e / 2;
541
+ let u = -90 - (s ? 1 : 0), h = 0;
542
+ return /* @__PURE__ */ _("div", { className: `mx-cmn-multi-segment-donut ${d}`, children: [
543
+ /* @__PURE__ */ _("svg", { height: e, width: e, children: [
544
+ /* @__PURE__ */ c(
549
545
  "circle",
550
546
  {
551
- cx: i,
552
- cy: i,
547
+ cx: n,
548
+ cy: n,
553
549
  fill: "none",
554
- r: c,
555
- stroke: n.Color.Neutral300,
556
- strokeWidth: r
550
+ r: i,
551
+ stroke: o.Color.Neutral300,
552
+ strokeWidth: a
557
553
  }
558
554
  ),
559
- t.map((f, p) => (u += 360 * g + (s ? 1 : 0), g = (f.percent - (s ? 0.3 : 0)) / 100, /* @__PURE__ */ o(
555
+ t.map((f, g) => (u += 360 * h + (s ? 1 : 0), h = (f.percent - (s ? 0.3 : 0)) / 100, /* @__PURE__ */ c(
560
556
  "circle",
561
557
  {
562
- cx: i,
563
- cy: i,
558
+ cx: n,
559
+ cy: n,
564
560
  fill: "none",
565
- r: c,
561
+ r: i,
566
562
  stroke: f.color,
567
- strokeDasharray: 2 * Math.PI * c,
568
- strokeDashoffset: 2 * Math.PI * c * (1 - g),
569
- strokeWidth: r,
570
- transform: `rotate(${u}, ${i}, ${i})`
563
+ strokeDasharray: 2 * Math.PI * i,
564
+ strokeDashoffset: 2 * Math.PI * i * (1 - h),
565
+ strokeWidth: a,
566
+ transform: `rotate(${u}, ${n}, ${n})`
571
567
  },
572
- p
568
+ g
573
569
  )))
574
570
  ] }),
575
- /* @__PURE__ */ o("div", { className: "mx-cmn-multi-segment-donut-children", children: a })
571
+ /* @__PURE__ */ c("div", { className: "mx-cmn-multi-segment-donut-children", children: r })
576
572
  ] });
577
- }, Zt = (s, t) => C({
573
+ }, zt = (s, t) => w({
578
574
  height: t,
579
575
  marginTop: `-${s.Spacing.XSmall}px`,
580
576
  position: "relative",
@@ -586,93 +582,38 @@ const as = (s) => {
586
582
  top: "50%",
587
583
  transform: "translate(-50%, -50%)"
588
584
  }
589
- }), ns = Vt, is = ({
590
- onClick: s,
591
- leftIcon: t,
592
- rightIcon: e,
593
- title: r,
594
- subtitle: a,
595
- rightContent: n,
596
- titleBold: d = !0,
597
- rightContentBold: c = !0
598
- }) => {
599
- const i = /* @__PURE__ */ h(tt.Fragment, { children: [
600
- t && /* @__PURE__ */ o(O, { sx: { ml: 0 }, children: t }),
601
- /* @__PURE__ */ o(mt, { children: /* @__PURE__ */ h(
602
- T,
603
- {
604
- sx: {
605
- alignItems: "center",
606
- flexDirection: "row",
607
- marginLeft: 12
608
- },
609
- children: [
610
- /* @__PURE__ */ h(T, { sx: { flex: 1, minWidth: 0 }, children: [
611
- /* @__PURE__ */ o(S, { bold: d, variant: "body1", children: r }),
612
- a && /* @__PURE__ */ o(S, { variant: "caption", children: a })
613
- ] }),
614
- /* @__PURE__ */ h(T, { sx: { flexDirection: "row", alignItems: "center", gap: 1 }, children: [
615
- n && /* @__PURE__ */ o(S, { bold: c, display: "flex", variant: "body1", children: n }),
616
- e && /* @__PURE__ */ o(O, { children: e })
617
- ] })
618
- ]
619
- }
620
- ) })
621
- ] });
622
- return /* @__PURE__ */ o(gt, { sx: { bgcolor: "background.paper" }, children: s ? /* @__PURE__ */ o(
623
- pt,
624
- {
625
- onClick: s,
626
- sx: {
627
- py: 14
628
- },
629
- children: i
630
- }
631
- ) : /* @__PURE__ */ o(
632
- T,
633
- {
634
- sx: {
635
- py: 14,
636
- px: 24,
637
- width: "100%",
638
- flexDirection: "row",
639
- alignItems: "center"
640
- },
641
- children: i
642
- }
643
- ) });
644
- };
645
- class Jt {
585
+ }), je = Yt;
586
+ class Xt {
646
587
  globalStore;
647
- api = new $("/", "");
588
+ api = new M("/", "");
648
589
  copy = {};
649
590
  featureNamespace = "experiences";
650
591
  isInitialized = !1;
651
592
  constructor(t) {
652
- this.globalStore = t, this.api = new $(t.endpoint, t.sessionToken), _(this);
593
+ this.globalStore = t, this.api = new M(t.endpoint, t.sessionToken), m(this);
653
594
  }
654
595
  // DEPRECATED: Initialize api in constructor and use loadCopy instead
655
596
  // TODO: Remove this function
656
597
  initialize = async (t, e) => {
657
- this.api = new $(t, e), await this.loadCopy();
598
+ this.api = new M(t, e), await this.loadCopy();
658
599
  };
659
600
  loadCopy = async () => {
660
- await this.getCopy(this.featureNamespace), m(() => {
601
+ await this.getCopy(this.featureNamespace), p(() => {
661
602
  this.isInitialized = !0;
662
603
  });
663
604
  };
664
605
  getCopy = async (t, e = "") => {
665
606
  try {
666
- const r = await this.api.getGlobalCopy(t, e);
667
- m(() => {
668
- this.copy = r[t];
607
+ const a = await this.api.getGlobalCopy(t, e);
608
+ p(() => {
609
+ this.copy = a[t];
669
610
  });
670
- } catch (r) {
671
- console.error(`Error occurred while fetching ${this.featureNamespace} copy: ${r}`);
611
+ } catch (a) {
612
+ console.error(`Error occurred while fetching ${this.featureNamespace} copy: ${a}`);
672
613
  }
673
614
  };
674
615
  }
675
- class te {
616
+ class Kt {
676
617
  globalStore;
677
618
  survey = null;
678
619
  currentQuestionIndex = 0;
@@ -680,7 +621,7 @@ class te {
680
621
  response = null;
681
622
  responses = {};
682
623
  constructor(t) {
683
- this.globalStore = t, _(this);
624
+ this.globalStore = t, m(this);
684
625
  }
685
626
  get isLastQuestion() {
686
627
  return this.currentQuestionIndex === this.surveyQuestions.length - 1;
@@ -702,11 +643,11 @@ class te {
702
643
  return this.survey ? this.survey.questions : [];
703
644
  }
704
645
  loadSurvey = (t = !1) => {
705
- Ct.getActiveMatchingSurveys((e) => {
706
- m(() => {
646
+ ft.getActiveMatchingSurveys((e) => {
647
+ p(() => {
707
648
  if (e.length > 0) {
708
- const r = e.find((a) => a.id === this.surveyId);
709
- r && (this.survey = r, this.currentQuestionIndex = 0, this.question = r.questions[0], this.response = null, this.responses = {});
649
+ const a = e.find((r) => r.id === this.surveyId);
650
+ a && (this.survey = a, this.currentQuestionIndex = 0, this.question = a.questions[0], this.response = null, this.responses = {});
710
651
  }
711
652
  });
712
653
  }, t);
@@ -721,18 +662,18 @@ class te {
721
662
  this.response = t, this.question && (this.responses[`$survey_response_${this.question.id}`] = t);
722
663
  };
723
664
  }
724
- class K {
665
+ class z {
725
666
  fetchInstance;
726
667
  constructor(t, e) {
727
668
  this.fetchInstance = new y(t, e);
728
669
  }
729
- addBudget = async (t, e, r = null) => this.fetchInstance.post(l.BUDGETS, {
670
+ addBudget = async (t, e, a = null) => this.fetchInstance.post(l.BUDGETS, {
730
671
  amount: e,
731
672
  category_guid: t.guid,
732
673
  category_name: t.name,
733
- parent_guid: r
734
- }).then((a) => a.budget).catch((a) => {
735
- throw a;
674
+ parent_guid: a
675
+ }).then((r) => r.budget).catch((r) => {
676
+ throw r;
736
677
  });
737
678
  deleteBudget = async (t) => this.fetchInstance.delete(`${l.BUDGETS}/${t}`).then((e) => e).catch((e) => {
738
679
  throw e;
@@ -742,40 +683,40 @@ class K {
742
683
  throw e;
743
684
  });
744
685
  }
745
- class ee {
746
- api = new K("/", "");
686
+ class jt {
687
+ api = new z("/", "");
747
688
  globalStore;
748
689
  alert = "";
749
- dateRange = { start: st(G()), end: et(G()) };
690
+ dateRange = { start: J(L()), end: Z(L()) };
750
691
  budgets = [];
751
692
  selectedBudget;
752
693
  selectedSubBudget;
753
694
  isDataLoaded = !1;
754
695
  theme = {};
755
696
  constructor(t) {
756
- this.globalStore = t, this.api = new K(t.endpoint, t.sessionToken), _(this);
697
+ this.globalStore = t, this.api = new z(t.endpoint, t.sessionToken), m(this);
757
698
  }
758
699
  loadBudgetData = async () => {
759
- await this.loadBudgets(), wt(
700
+ await this.loadBudgets(), _t(
760
701
  () => this.detailedBudgets,
761
702
  (t) => {
762
703
  if (t) {
763
704
  const e = this.selectedBudget;
764
- e && (this.selectedBudget = vt(t, e.guid));
765
- const r = this.selectedSubBudget;
766
- r && r.parent_guid && (this.selectedSubBudget = At(
705
+ e && (this.selectedBudget = bt(t, e.guid));
706
+ const a = this.selectedSubBudget;
707
+ a && a.parent_guid && (this.selectedSubBudget = wt(
767
708
  t,
768
- r.guid,
769
- r.parent_guid
709
+ a.guid,
710
+ a.parent_guid
770
711
  ));
771
712
  }
772
713
  }
773
714
  );
774
715
  };
775
716
  get detailedBudgets() {
776
- return H(
717
+ return O(
777
718
  this.budgets.filter(
778
- (t) => t.category_guid !== I.INCOME && t.category_guid !== I.TRANSFER && t.category_guid !== I.INVESTMENTS
719
+ (t) => t.category_guid !== E.INCOME && t.category_guid !== E.TRANSFER && t.category_guid !== E.INVESTMENTS
779
720
  ),
780
721
  this.globalStore.categoryStore.detailedCategories,
781
722
  this.globalStore.copyStore.copy.budgets,
@@ -783,13 +724,13 @@ class ee {
783
724
  ).sort((t, e) => t.percentage > e.percentage ? -1 : t.percentage < e.percentage ? 1 : 0);
784
725
  }
785
726
  get incomeBudget() {
786
- return H(
787
- this.budgets.filter((r) => !r.parent_guid),
727
+ return O(
728
+ this.budgets.filter((a) => !a.parent_guid),
788
729
  this.globalStore.categoryStore.detailedCategories,
789
730
  this.globalStore.copyStore.copy.budgets,
790
731
  this.theme
791
732
  ).reduce(
792
- (r, a) => a.category_guid !== I.INCOME ? r : !r || a.percentage > r.percentage ? a : r,
733
+ (a, r) => r.category_guid !== E.INCOME ? a : !a || r.percentage > a.percentage ? r : a,
793
734
  void 0
794
735
  )?.amount;
795
736
  }
@@ -801,20 +742,20 @@ class ee {
801
742
  get totalBudgeted() {
802
743
  return this.detailedBudgets.reduce((t, e) => t + e.amount, 0);
803
744
  }
804
- addBudget = async (t, e, r = null) => {
745
+ addBudget = async (t, e, a = null) => {
805
746
  try {
806
- const a = await this.api.addBudget(t, e, r);
807
- m(() => {
808
- this.budgets.push(a);
747
+ const r = await this.api.addBudget(t, e, a);
748
+ p(() => {
749
+ this.budgets.push(r);
809
750
  });
810
- } catch (a) {
811
- console.error(`Error adding budget: ${a}`);
751
+ } catch (r) {
752
+ console.error(`Error adding budget: ${r}`);
812
753
  }
813
754
  };
814
755
  deleteBudget = async (t) => {
815
756
  try {
816
- await this.api.deleteBudget(t), m(() => {
817
- const e = this.budgets.findIndex((r) => r.guid === t);
757
+ await this.api.deleteBudget(t), p(() => {
758
+ const e = this.budgets.findIndex((a) => a.guid === t);
818
759
  e >= 0 && this.budgets.splice(e, 1);
819
760
  });
820
761
  } catch (e) {
@@ -824,7 +765,7 @@ class ee {
824
765
  loadBudgets = async () => {
825
766
  try {
826
767
  const t = await this.api.getBudgets();
827
- m(() => {
768
+ p(() => {
828
769
  this.budgets = t, this.isDataLoaded = !0;
829
770
  });
830
771
  } catch (t) {
@@ -842,18 +783,18 @@ class ee {
842
783
  */
843
784
  recalculateBudgets = async (t) => {
844
785
  try {
845
- for (const r of t) {
846
- const a = this.budgets.find((n) => n.category_guid === r.guid);
847
- a ? await this.api.updateBudget({
848
- ...a,
849
- amount: r.totalAverageAmount
850
- }) : await this.api.addBudget(r, r.totalAverageAmount);
786
+ for (const a of t) {
787
+ const r = this.budgets.find((o) => o.category_guid === a.guid);
788
+ r ? await this.api.updateBudget({
789
+ ...r,
790
+ amount: a.totalAverageAmount
791
+ }) : await this.api.addBudget(a, a.totalAverageAmount);
851
792
  }
852
793
  const e = this.budgets.filter(
853
- (r) => !t.find((a) => a.guid === r.category_guid)
794
+ (a) => !t.find((r) => r.guid === a.category_guid)
854
795
  );
855
- for (const r of e)
856
- await this.api.deleteBudget(r.guid);
796
+ for (const a of e)
797
+ await this.api.deleteBudget(a.guid);
857
798
  return await this.loadBudgets(), { data: this.budgets, isSuccess: !0 };
858
799
  } catch (e) {
859
800
  return console.error("error recalculating budgets", e), { data: [], isSuccess: !1 };
@@ -862,48 +803,48 @@ class ee {
862
803
  updateBudget = async (t) => {
863
804
  try {
864
805
  const e = await this.api.updateBudget(t);
865
- m(() => {
866
- const r = this.budgets.findIndex((a) => a.guid === t.guid);
867
- r >= 0 && (this.budgets[r] = e);
806
+ p(() => {
807
+ const a = this.budgets.findIndex((r) => r.guid === t.guid);
808
+ a >= 0 && (this.budgets[a] = e);
868
809
  });
869
810
  } catch (e) {
870
811
  console.error(`Error updating budget: ${e}`);
871
812
  }
872
813
  };
873
814
  }
874
- var se = /* @__PURE__ */ ((s) => (s[s.UNKNOWN = 0] = "UNKNOWN", s[s.CORRECT = 1] = "CORRECT", s[s.INCORRECT = 2] = "INCORRECT", s))(se || {}), re = /* @__PURE__ */ ((s) => (s.Missed = "Missed", s.Paid = "Paid", s.Upcoming = "Upcoming expense", s.Income = "Income", s))(re || {}), ae = /* @__PURE__ */ ((s) => (s[s.Unknown = 0] = "Unknown", s[s.Subscription = 1] = "Subscription", s[s.Bill = 2] = "Bill", s))(ae || {}), oe = /* @__PURE__ */ ((s) => (s.Desktop = "Desktop", s.Mobile = "Mobile", s))(oe || {});
875
- class j {
815
+ var Vt = /* @__PURE__ */ ((s) => (s[s.UNKNOWN = 0] = "UNKNOWN", s[s.CORRECT = 1] = "CORRECT", s[s.INCORRECT = 2] = "INCORRECT", s))(Vt || {}), Zt = /* @__PURE__ */ ((s) => (s.Missed = "Missed", s.Paid = "Paid", s.Upcoming = "Upcoming expense", s.Income = "Income", s))(Zt || {}), Jt = /* @__PURE__ */ ((s) => (s[s.Unknown = 0] = "Unknown", s[s.Subscription = 1] = "Subscription", s[s.Bill = 2] = "Bill", s))(Jt || {}), te = /* @__PURE__ */ ((s) => (s.Desktop = "Desktop", s.Mobile = "Mobile", s))(te || {});
816
+ class X {
876
817
  fetchInstance;
877
818
  constructor(t, e) {
878
819
  this.fetchInstance = new y(t, e);
879
820
  }
880
821
  createSupportTicket = async (t) => this.fetchInstance.post(l.SUPPORT_TICKETS, t).then((e) => e);
881
822
  }
882
- const ne = (s, t) => s.guid === "general" || s.guid === "insights" ? !0 : s.flags ? s.flags.every((e) => t[e]) : !1, ie = (s, t) => {
823
+ const ee = (s, t) => s.guid === "general" || s.guid === "insights" ? !0 : s.flags ? s.flags.every((e) => t[e]) : !1, se = (s, t) => {
883
824
  const e = [];
884
- for (const r of it) {
885
- const a = t[r.guid];
886
- if (!a) continue;
887
- const n = {
888
- ...r,
889
- title: a.label,
890
- topics: r.topics.map(({ topicKey: d }, c) => ({
825
+ for (const a of rt) {
826
+ const r = t[a.guid];
827
+ if (!r) continue;
828
+ const o = {
829
+ ...a,
830
+ title: r.label,
831
+ topics: a.topics.map(({ topicKey: d }, i) => ({
891
832
  topicKey: d,
892
- label: a.topics[c]
833
+ label: r.topics[i]
893
834
  }))
894
835
  };
895
- ne(n, s) && e.push(n);
836
+ ee(o, s) && e.push(o);
896
837
  }
897
838
  return e;
898
839
  };
899
- class ce {
840
+ class ae {
900
841
  alert = { message: "", severity: void 0 };
901
- api = new j("/", "");
842
+ api = new X("/", "");
902
843
  appConfig;
903
844
  globalStore;
904
845
  isLoading = !1;
905
846
  constructor(t) {
906
- this.globalStore = t, this.api = new j(t.endpoint, t.sessionToken), _(this);
847
+ this.globalStore = t, this.api = new X(t.endpoint, t.sessionToken), m(this);
907
848
  }
908
849
  createSupportTicket = async (t) => {
909
850
  try {
@@ -920,19 +861,19 @@ class ce {
920
861
  }
921
862
  get helpCategories() {
922
863
  const { client_communication_profile: t, client_profile: e } = this.globalStore.appDataStore.appData, {
923
- help: { category_list: r }
864
+ help: { category_list: a }
924
865
  } = this.globalStore.copyStore.copy;
925
- return ie(
866
+ return se(
926
867
  {
927
868
  ...t,
928
869
  ...e,
929
870
  ...this.globalStore.appConfig.config
930
871
  },
931
- r
872
+ a
932
873
  );
933
874
  }
934
875
  }
935
- class V {
876
+ class K {
936
877
  fetchInstance;
937
878
  constructor(t, e) {
938
879
  this.fetchInstance = new y(t, e);
@@ -940,21 +881,21 @@ class V {
940
881
  getHoldings = async () => this.fetchInstance.get(l.HOLDINGS).then((t) => t.holdings);
941
882
  updateHoldings = async (t) => this.fetchInstance.put(`${l.HOLDINGS}/${t.guid}`, t).then((e) => e.holding);
942
883
  }
943
- class de {
944
- analysisType = It.Stocks;
945
- api = new V("/", "");
884
+ class re {
885
+ analysisType = Dt.Stocks;
886
+ api = new K("/", "");
946
887
  holdings = [];
947
888
  holdingsLoaded = !1;
948
889
  globalStore;
949
890
  showConnectionsWidget = !1;
950
891
  constructor(t) {
951
- this.globalStore = t, this.api = new V(t.endpoint, t.sessionToken), _(this);
892
+ this.globalStore = t, this.api = new K(t.endpoint, t.sessionToken), m(this);
952
893
  }
953
894
  get analysisChartData() {
954
- return Bt(Nt(this.visibleHoldings), this.analysisType);
895
+ return vt(At(this.visibleHoldings), this.analysisType);
955
896
  }
956
897
  get analysisDetails() {
957
- return Ft(this.visibleHoldings)[this.analysisType] || {};
898
+ return Et(this.visibleHoldings)[this.analysisType] || {};
958
899
  }
959
900
  get visibleHoldings() {
960
901
  return this.holdings.filter(
@@ -967,7 +908,7 @@ class de {
967
908
  loadHoldings = async () => {
968
909
  try {
969
910
  const t = await this.api.getHoldings();
970
- m(() => {
911
+ p(() => {
971
912
  this.holdings = [...t], this.holdingsLoaded = !0;
972
913
  });
973
914
  } catch (t) {
@@ -980,11 +921,11 @@ class de {
980
921
  updateHoldings = async (t) => {
981
922
  this.holdingsLoaded = !1;
982
923
  try {
983
- const e = await this.api.updateHoldings(t), r = this.holdings.findIndex(({ guid: a }) => a === t.guid);
984
- if (r >= 0) {
985
- const a = [...this.holdings];
986
- a[r] = e, m(() => {
987
- this.holdings = a, this.holdingsLoaded = !0;
924
+ const e = await this.api.updateHoldings(t), a = this.holdings.findIndex(({ guid: r }) => r === t.guid);
925
+ if (a >= 0) {
926
+ const r = [...this.holdings];
927
+ r[a] = e, p(() => {
928
+ this.holdings = r, this.holdingsLoaded = !0;
988
929
  });
989
930
  }
990
931
  } catch (e) {
@@ -992,7 +933,7 @@ class de {
992
933
  }
993
934
  };
994
935
  }
995
- const Z = {
936
+ const j = {
996
937
  clientConfig: {},
997
938
  clientStyleProfile: {},
998
939
  config: {
@@ -1094,21 +1035,21 @@ const Z = {
1094
1035
  postHogPublicKey: "phc_1fVYJICC69TpW4wagp9o2XqQ8E7X98cAmcR5psSpfkE",
1095
1036
  userFeatures: []
1096
1037
  };
1097
- class J {
1038
+ class V {
1098
1039
  fetchInstance;
1099
1040
  constructor(t, e) {
1100
1041
  this.fetchInstance = new y(t, e);
1101
1042
  }
1102
1043
  getAppData = async () => this.fetchInstance.get(l.APP_DATA).then((t) => t);
1103
1044
  }
1104
- class le {
1045
+ class oe {
1105
1046
  globalStore;
1106
- api = new J("/", "");
1107
- bannerApi = new q("/");
1047
+ api = new V("/", "");
1048
+ bannerApi = new P("/");
1108
1049
  appData = {};
1109
1050
  banner = {};
1110
1051
  constructor(t) {
1111
- this.globalStore = t, this.api = new J(t.endpoint, t.sessionToken), _(this);
1052
+ this.globalStore = t, this.api = new V(t.endpoint, t.sessionToken), m(this);
1112
1053
  }
1113
1054
  get appConfig() {
1114
1055
  return this.globalStore.appConfig;
@@ -1131,8 +1072,8 @@ class le {
1131
1072
  loadAppData = async (t) => {
1132
1073
  try {
1133
1074
  const e = t || await this.api.getAppData();
1134
- m(() => {
1135
- this.appData = e, this.bannerApi = new q(e.address?.bullseye || "/");
1075
+ p(() => {
1076
+ this.appData = e, this.bannerApi = new P(e.address?.bullseye || "/");
1136
1077
  });
1137
1078
  } catch (e) {
1138
1079
  console.error(`Error loading app data: ${e}`);
@@ -1141,7 +1082,7 @@ class le {
1141
1082
  loadBanner = async () => {
1142
1083
  try {
1143
1084
  const t = this.user?.guid ?? null, e = t ? await this.bannerApi.getBanner(t) : {};
1144
- m(() => {
1085
+ p(() => {
1145
1086
  this.banner = e;
1146
1087
  });
1147
1088
  } catch (t) {
@@ -1152,28 +1093,28 @@ class le {
1152
1093
  setUserCommunicationProfile = (t) => this.appData.user_communication_profile = t;
1153
1094
  setUserProfile = (t) => this.appData.user_profile = t;
1154
1095
  }
1155
- class ue {
1096
+ class ne {
1156
1097
  globalStore;
1157
- widgetApi = new Q("/", "");
1098
+ widgetApi = new q("/", "");
1158
1099
  constructor(t) {
1159
- this.globalStore = t, this.widgetApi = new Q(t.endpoint, t.sessionToken), _(this);
1100
+ this.globalStore = t, this.widgetApi = new q(t.endpoint, t.sessionToken), m(this);
1160
1101
  }
1161
- loadWidget = async ({ widget: t = "connect_widget", mode: e = "light", ...r }) => await this.widgetApi.requestWidgetUrl({
1162
- widget_url: { widget_type: t, color_scheme: e, ...r }
1102
+ loadWidget = async ({ widget: t = "connect_widget", mode: e = "light", ...a }) => await this.widgetApi.requestWidgetUrl({
1103
+ widget_url: { widget_type: t, color_scheme: e, ...a }
1163
1104
  });
1164
1105
  }
1165
- class he {
1106
+ class ie {
1166
1107
  globalStore;
1167
1108
  isInitialized = !1;
1168
1109
  selectedAccounts = [];
1169
1110
  selectedAccountGuids = this.selectedAccounts.map((t) => t.guid);
1170
1111
  displayedDate = /* @__PURE__ */ new Date();
1171
1112
  displayedDateRange = {
1172
- start: st(this.displayedDate),
1173
- end: et(this.displayedDate)
1113
+ start: J(this.displayedDate),
1114
+ end: Z(this.displayedDate)
1174
1115
  };
1175
1116
  constructor(t) {
1176
- _(this), this.globalStore = t;
1117
+ m(this), this.globalStore = t;
1177
1118
  }
1178
1119
  get isCopyLoaded() {
1179
1120
  return this.globalStore.copyStore.isInitialized;
@@ -1190,8 +1131,8 @@ class he {
1190
1131
  };
1191
1132
  // Sets an array of selected account guids for the AccountFilter component
1192
1133
  setSelectedAccountGuids = async (t) => {
1193
- const e = new Set(this.selectedAccountGuids), r = new Set(t), a = [...r].filter((d) => !e.has(d)), n = [...e].filter((d) => !r.has(d));
1194
- a.length > 0 && this.globalStore.accountStore.updateAccountFiltering(a, !1), n.length > 0 && this.globalStore.accountStore.updateAccountFiltering(n, !0), this.selectedAccountGuids = t;
1134
+ const e = new Set(this.selectedAccountGuids), a = new Set(t), r = [...a].filter((d) => !e.has(d)), o = [...e].filter((d) => !a.has(d));
1135
+ r.length > 0 && this.globalStore.accountStore.updateAccountFiltering(r, !1), o.length > 0 && this.globalStore.accountStore.updateAccountFiltering(o, !0), this.selectedAccountGuids = t;
1195
1136
  };
1196
1137
  setDisplayedDate = (t, e) => {
1197
1138
  this.displayedDate = e, this.displayedDateRange = {
@@ -1200,25 +1141,25 @@ class he {
1200
1141
  };
1201
1142
  };
1202
1143
  get shouldDisableNextDate() {
1203
- const t = B(this.displayedDate), e = B(Rt(/* @__PURE__ */ new Date(), 1));
1144
+ const t = T(this.displayedDate), e = T(Nt(/* @__PURE__ */ new Date(), 1));
1204
1145
  return t === e;
1205
1146
  }
1206
1147
  get shouldDisablePrevDate() {
1207
- const t = B(this.displayedDate), e = B(/* @__PURE__ */ new Date());
1148
+ const t = T(this.displayedDate), e = T(/* @__PURE__ */ new Date());
1208
1149
  return t === e;
1209
1150
  }
1210
1151
  }
1211
- class ge {
1152
+ class ce {
1212
1153
  globalStore;
1213
- api = new L("/", "");
1154
+ api = new $("/", "");
1214
1155
  userFeatures = [];
1215
1156
  constructor(t) {
1216
- this.globalStore = t, this.api = new L(t.endpoint, t.sessionToken), _(this);
1157
+ this.globalStore = t, this.api = new $(t.endpoint, t.sessionToken), m(this);
1217
1158
  }
1218
1159
  // DEPRECATED: Initialize api in constructor and use loadUserFeatures instead
1219
1160
  // TODO: Remove this function
1220
1161
  initialize = async (t, e) => {
1221
- this.api = new L(t, e), await this.loadUserFeatures();
1162
+ this.api = new $(t, e), await this.loadUserFeatures();
1222
1163
  };
1223
1164
  get userProfile() {
1224
1165
  return this.globalStore.appDataStore.userProfile;
@@ -1229,7 +1170,7 @@ class ge {
1229
1170
  loadUserFeatures = async (t) => {
1230
1171
  try {
1231
1172
  const e = t || await this.api.getUserFeatures();
1232
- m(() => {
1173
+ p(() => {
1233
1174
  this.userFeatures = e;
1234
1175
  });
1235
1176
  } catch (e) {
@@ -1253,9 +1194,9 @@ class ge {
1253
1194
  }
1254
1195
  };
1255
1196
  }
1256
- class cs {
1197
+ class Ve {
1257
1198
  // Global properties
1258
- appConfig = Z;
1199
+ appConfig = j;
1259
1200
  endpoint = "/";
1260
1201
  sessionToken = "";
1261
1202
  // Data Stores
@@ -1283,8 +1224,8 @@ class cs {
1283
1224
  userStore;
1284
1225
  // UI Stores
1285
1226
  globalUiStore;
1286
- constructor(t = Z, e = "/") {
1287
- this.appConfig = t, this.endpoint = e, this.sessionToken = t.options.session_token ?? "", this.accountStore = new xt(this), this.appDataStore = new le(this), this.analyticsStore = new te(this), this.beatStore = new Dt(this), this.budgetsStore = new ee(this), this.cashflowStore = new dt(this), this.categoryStore = new at(this), this.connectStore = new ue(this), this.copyStore = new Jt(this), this.debtsStore = new Et(this), this.finstrongStore = new Tt(this), this.goalStore = new lt(this), this.helpStore = new ce(this), this.holdingStore = new de(this), this.merchantStore = new Mt(this), this.netWorthStore = new $t(this), this.notificationStore = new ot(this), this.recurringTransactionsStore = new bt(this), this.settingsStore = new Lt(this), this.transactionStore = new ct(this), this.trendsStore = new yt(this), this.userStore = new ge(this), this.globalUiStore = new he(this), _(this);
1227
+ constructor(t = j, e = "/") {
1228
+ this.appConfig = t, this.endpoint = e, this.sessionToken = t.options.session_token ?? "", this.accountStore = new yt(this), this.appDataStore = new oe(this), this.analyticsStore = new Kt(this), this.beatStore = new St(this), this.budgetsStore = new jt(this), this.cashflowStore = new nt(this), this.categoryStore = new et(this), this.connectStore = new ne(this), this.copyStore = new Xt(this), this.debtsStore = new xt(this), this.finstrongStore = new Ct(this), this.goalStore = new it(this), this.helpStore = new ae(this), this.holdingStore = new re(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 ot(this), this.trendsStore = new ct(this), this.userStore = new ce(this), this.globalUiStore = new ie(this), m(this);
1288
1229
  }
1289
1230
  get isInitialized() {
1290
1231
  return this.globalUiStore.isInitialized;
@@ -1292,182 +1233,182 @@ class cs {
1292
1233
  loadData = async ({
1293
1234
  accounts: t,
1294
1235
  appData: e,
1295
- associatedBeats: r,
1296
- categories: a,
1297
- institutions: n,
1236
+ associatedBeats: a,
1237
+ categories: r,
1238
+ institutions: o,
1298
1239
  transactionRules: d,
1299
- transactions: c,
1300
- userFeatures: i
1240
+ transactions: i,
1241
+ userFeatures: n
1301
1242
  } = {}) => {
1302
1243
  await Promise.all([
1303
1244
  // Load copy, config and quser data
1304
1245
  this.copyStore.loadCopy(),
1305
1246
  this.appDataStore.loadAppData(e),
1306
- this.userStore.loadUserFeatures(i)
1247
+ this.userStore.loadUserFeatures(n)
1307
1248
  ]), await Promise.all([
1308
- this.accountStore.loadAccountData({ accounts: t, institutions: n }),
1309
- this.categoryStore.loadCategories(a),
1249
+ this.accountStore.loadAccountData({ accounts: t, institutions: o }),
1250
+ this.categoryStore.loadCategories(r),
1310
1251
  this.transactionStore.loadTransactionData({
1311
- associatedBeats: r,
1252
+ associatedBeats: a,
1312
1253
  transactionRules: d,
1313
- transactions: c
1254
+ transactions: i
1314
1255
  })
1315
1256
  ]), this.globalUiStore.setInitialized(!0);
1316
1257
  };
1317
1258
  }
1318
1259
  export {
1319
- Ms as ANALYTICS_EVENTS,
1320
- ks as AccountFilter,
1321
- Us as AccountIcon,
1322
- Os as AccountIconVariants,
1323
- Mr as AccountNotificationTypes,
1324
- Gs as AccountSubType,
1325
- Hs as AccountType,
1326
- Ps as AccountTypeName,
1327
- us as AnalyticsApi,
1260
+ xs as ANALYTICS_EVENTS,
1261
+ As as AccountFilter,
1262
+ Es as AccountIcon,
1263
+ Ts as AccountIconVariants,
1264
+ Ea as AccountNotificationTypes,
1265
+ Bs as AccountSubType,
1266
+ Is as AccountType,
1267
+ Ns as AccountTypeName,
1268
+ ts as AnalyticsApi,
1328
1269
  l as ApiEndpoints,
1329
- q as BannerApi,
1330
- os as BarChart,
1331
- _s as BeatApi,
1332
- $r as BudgetNotificationTypes,
1333
- xs as Calendar,
1334
- Cs as CalendarSelectionTypes,
1335
- fs as CategoryApi,
1336
- da as CategoryColors,
1337
- la as CategoryGuidToName,
1338
- I as CategoryGuids,
1339
- ua as CategoryIcon,
1340
- xr as ConnectCard,
1341
- Ws as ConnectDrawer,
1342
- qs as ConnectionStatus,
1343
- Qs as ConnectionStatusEnums,
1344
- pa as CurrencyCodes,
1345
- tr as CurrencyInput,
1346
- Er as CurrencyText,
1347
- Kr as DATE_FORMATS_INTL,
1348
- ft as DEFAULT_DONUT_SIZE,
1349
- St as DEFAULT_STROKE_WIDTH,
1350
- gr as DataRow,
1351
- $s as DateRangeSelector,
1352
- jr as Dialog,
1353
- Gr as Donut,
1354
- ra as Drawer,
1355
- Ir as EmptyState,
1356
- Es as ErrorBoundary,
1357
- Ys as ErrorStatuses,
1358
- re as ExpenseStatus,
1270
+ P as BannerApi,
1271
+ Ke as BarChart,
1272
+ os as BeatApi,
1273
+ Ta as BudgetNotificationTypes,
1274
+ us as Calendar,
1275
+ hs as CalendarSelectionTypes,
1276
+ is as CategoryApi,
1277
+ tr as CategoryColors,
1278
+ er as CategoryGuidToName,
1279
+ E as CategoryGuids,
1280
+ sr as CategoryIcon,
1281
+ ha as ConnectCard,
1282
+ Fs as ConnectDrawer,
1283
+ Ms as ConnectionStatus,
1284
+ $s as ConnectionStatusEnums,
1285
+ or as CurrencyCodes,
1286
+ qs as CurrencyInput,
1287
+ ya as CurrencyText,
1288
+ Ga as DATE_FORMATS_INTL,
1289
+ gt as DEFAULT_DONUT_SIZE,
1290
+ pt as DEFAULT_STROKE_WIDTH,
1291
+ aa as DataRow,
1292
+ Cs as DateRangeSelector,
1293
+ Ha as Dialog,
1294
+ $a as Donut,
1295
+ Xa as Drawer,
1296
+ Sa as EmptyState,
1297
+ _s as ErrorBoundary,
1298
+ Rs as ErrorStatuses,
1299
+ Zt as ExpenseStatus,
1359
1300
  y as Fetch,
1360
- pr as Frequency,
1361
- $ as GlobalCopyApi,
1362
- Jt as GlobalCopyStore,
1363
- Da as GlobalDataContext,
1364
- va as GlobalDataProvider,
1365
- cs as GlobalStore,
1366
- Cr as GoalType,
1367
- oa as INCOME_ACCOUNT_TYPES,
1368
- ur as IconBacking,
1369
- br as InformationTooltip,
1370
- Lr as InsightNotificationTypes,
1371
- Gt as IterationItemTypes,
1372
- ts as LOADING_STATUS,
1373
- Pr as LineChart,
1374
- Nr as ListItemAction,
1375
- is as ListItemRow,
1376
- Ds as ListItemWrapper,
1377
- sr as Loader,
1378
- ss as LocalizedCopyApi,
1379
- Dr as MetaType,
1380
- zs as MfaStatuses,
1381
- Is as MicroWidgetContainer,
1382
- Ns as MiniWidgetContainer,
1383
- ns as MultiSegmentDonut,
1384
- Xs as NonConnectedStatuses,
1385
- bs as NotificationApi,
1386
- Rr as NotificationTypes,
1387
- Vr as ORDINAL_DATE_FORMAT,
1388
- Zr as ORDINAL_MONTH_DAY_YEAR_FORMAT,
1389
- na as PAYMENT_ACCOUNT_TYPES,
1390
- ha as PaymentCategories,
1391
- Ot as PlanTypes,
1392
- Ks as ProcessingStatuses,
1393
- js as PropertyType,
1394
- Vs as PropertyTypeName,
1395
- Je as RECURRENCE_COPY,
1396
- mr as RecurrenceStatus,
1397
- _r as RecurrenceType,
1398
- Ut as RecurrenceTypes,
1399
- yr as RepeatingType,
1400
- ar as ResponsiveButton,
1401
- ia as SPENDING_ACCOUNT_TYPES,
1402
- ae as ScheduledPaymentTypes,
1403
- rs as ScheduledPaymentsApi,
1404
- oe as ScreenSize,
1405
- ir as SearchBox,
1406
- fr as Select,
1407
- or as SelectionBox,
1408
- ea as SingleSegmentDonut,
1409
- wa as Sizes,
1410
- qr as StackedLineChart,
1411
- zr as StatusBar,
1412
- Zs as StatusName,
1413
- xa as TOUCH_TARGET,
1414
- dr as TabContentContainer,
1415
- kr as ToggleButtonListItem,
1416
- Ur as ToggleListItem,
1417
- vr as TrackType,
1418
- vs as TransactionStatus,
1419
- nt as TransactionType,
1420
- L as UserApi,
1421
- ge as UserStore,
1422
- se as UserVerification,
1423
- Q as WidgetApi,
1424
- Ls as WidgetContainer,
1425
- Aa as WidgetContainerContext,
1426
- Ea as WidgetContainerProvider,
1427
- hs as analyticsSession,
1428
- lo as buildDynamicCopy,
1429
- uo as buildPluralCopy,
1430
- ma as formatCurrency,
1431
- Jr as formatDate,
1432
- _a as formatOrdinal,
1433
- ya as formatPercentage,
1434
- io as fromTimestampToMonthYear,
1435
- eo as getCategory,
1436
- so as getCategoryTotalsByParent,
1437
- es as getClientTheme,
1438
- fa as getCurrencyCodes,
1439
- ro as getDetailedCategory,
1440
- ao as getDetailedSubCategory,
1441
- ho as getLocale,
1442
- oo as isIncome,
1443
- Sa as isValidNumber,
1444
- Ta as useAccountStore,
1445
- Ia as useAppConfig,
1446
- Ba as useBudgetsStore,
1447
- Na as useCashflowStore,
1448
- Fa as useCategoryStore,
1449
- gs as useCombineEvents,
1450
- ps as useCombinePageviews,
1451
- Ma as useDebtStore,
1452
- $a as useEvent,
1453
- La as useFinstrongStore,
1454
- Ra as useGlobalCopyStore,
1455
- ka as useGlobalStore,
1456
- Ua as useGlobalUiStore,
1457
- Oa as useGoalStore,
1458
- Ga as useHelpStore,
1459
- Ha as useHoldingStore,
1460
- Qr as useInsightsEnabled,
1461
- Pa as useMerchantStore,
1462
- Wa as useNetWorthStore,
1463
- qa as useNotificationStore,
1464
- Qa as usePageView,
1465
- as as usePrevious,
1466
- Ya as useRecurringTransactionsStore,
1467
- Ja as useScreenSize,
1468
- za as useSettingsStore,
1469
- Xa as useTransactionStore,
1470
- Ka as useTrendsStore,
1471
- ja as useUserStore,
1472
- Va as useWidgetContainerProvider
1301
+ ra as Frequency,
1302
+ M as GlobalCopyApi,
1303
+ Xt as GlobalCopyStore,
1304
+ mr as GlobalDataContext,
1305
+ _r as GlobalDataProvider,
1306
+ Ve as GlobalStore,
1307
+ ga as GoalType,
1308
+ ja as INCOME_ACCOUNT_TYPES,
1309
+ ea as IconBacking,
1310
+ la as InformationTooltip,
1311
+ Ba as InsightNotificationTypes,
1312
+ Rt as IterationItemTypes,
1313
+ We as LOADING_STATUS,
1314
+ Ua as LineChart,
1315
+ wa as ListItemAction,
1316
+ Ca as ListItemRow,
1317
+ gs as ListItemWrapper,
1318
+ Qs as Loader,
1319
+ Ye as LocalizedCopyApi,
1320
+ pa as MetaType,
1321
+ Us as MfaStatuses,
1322
+ fs as MicroWidgetContainer,
1323
+ bs as MiniWidgetContainer,
1324
+ je as MultiSegmentDonut,
1325
+ ks as NonConnectedStatuses,
1326
+ ds as NotificationApi,
1327
+ Ia as NotificationTypes,
1328
+ Pa as ORDINAL_DATE_FORMAT,
1329
+ qa as ORDINAL_MONTH_DAY_YEAR_FORMAT,
1330
+ Va as PAYMENT_ACCOUNT_TYPES,
1331
+ ar as PaymentCategories,
1332
+ $t as PlanTypes,
1333
+ Ls as ProcessingStatuses,
1334
+ Os as PropertyType,
1335
+ Gs as PropertyTypeName,
1336
+ qe as RECURRENCE_COPY,
1337
+ oa as RecurrenceStatus,
1338
+ na as RecurrenceType,
1339
+ Mt as RecurrenceTypes,
1340
+ ia as RepeatingType,
1341
+ zs as ResponsiveButton,
1342
+ Za as SPENDING_ACCOUNT_TYPES,
1343
+ Jt as ScheduledPaymentTypes,
1344
+ ze as ScheduledPaymentsApi,
1345
+ te as ScreenSize,
1346
+ Ks as SearchBox,
1347
+ ca as Select,
1348
+ Vs as SelectionBox,
1349
+ Ya as SingleSegmentDonut,
1350
+ hr as Sizes,
1351
+ Da as StackedLineChart,
1352
+ La as StatusBar,
1353
+ Hs as StatusName,
1354
+ gr as TOUCH_TARGET,
1355
+ Js as TabContentContainer,
1356
+ Na as ToggleButtonListItem,
1357
+ Fa as ToggleListItem,
1358
+ ma as TrackType,
1359
+ ps as TransactionStatus,
1360
+ at as TransactionType,
1361
+ $ as UserApi,
1362
+ ce as UserStore,
1363
+ Vt as UserVerification,
1364
+ q as WidgetApi,
1365
+ Ds as WidgetContainer,
1366
+ yr as WidgetContainerContext,
1367
+ fr as WidgetContainerProvider,
1368
+ es as analyticsSession,
1369
+ to as buildDynamicCopy,
1370
+ eo as buildPluralCopy,
1371
+ nr as formatCurrency,
1372
+ Wa as formatDate,
1373
+ ir as formatOrdinal,
1374
+ cr as formatPercentage,
1375
+ Zr as fromTimestampToMonthYear,
1376
+ Yr as getCategory,
1377
+ zr as getCategoryTotalsByParent,
1378
+ Qe as getClientTheme,
1379
+ dr as getCurrencyCodes,
1380
+ Xr as getDetailedCategory,
1381
+ Kr as getDetailedSubCategory,
1382
+ so as getLocale,
1383
+ jr as isIncome,
1384
+ lr as isValidNumber,
1385
+ Sr as useAccountStore,
1386
+ br as useAppConfig,
1387
+ wr as useBudgetsStore,
1388
+ xr as useCashflowStore,
1389
+ Cr as useCategoryStore,
1390
+ ss as useCombineEvents,
1391
+ as as useCombinePageviews,
1392
+ Dr as useDebtStore,
1393
+ vr as useEvent,
1394
+ Ar as useFinstrongStore,
1395
+ Er as useGlobalCopyStore,
1396
+ Tr as useGlobalStore,
1397
+ Br as useGlobalUiStore,
1398
+ Ir as useGoalStore,
1399
+ Nr as useHelpStore,
1400
+ Fr as useHoldingStore,
1401
+ va as useInsightsEnabled,
1402
+ Mr as useMerchantStore,
1403
+ $r as useNetWorthStore,
1404
+ Rr as useNotificationStore,
1405
+ Ur as usePageView,
1406
+ Xe as usePrevious,
1407
+ kr as useRecurringTransactionsStore,
1408
+ Wr as useScreenSize,
1409
+ Lr as useSettingsStore,
1410
+ Or as useTransactionStore,
1411
+ Gr as useTrendsStore,
1412
+ Hr as useUserStore,
1413
+ Pr as useWidgetContainerProvider
1473
1414
  };