@mx-cartographer/experiences 7.0.20-alpha.mm8 → 7.0.20-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 +4 -0
  2. package/dist/{Account-BvW3Ycme.mjs → Account-BW3-oYEs.mjs} +1 -1
  3. package/dist/{AccountDetailsContent-CzAZmV4F.mjs → AccountDetailsContent-BzD6CDIm.mjs} +8 -8
  4. package/dist/{AccountDetailsHeader-D9Mgz1Qp.mjs → AccountDetailsHeader-Eb3WvBGm.mjs} +5 -5
  5. package/dist/{AccountFields-BHlGVh0O.mjs → AccountFields-CIz-r3gP.mjs} +2 -2
  6. package/dist/{AccountListItem-CshJH22g.mjs → AccountListItem-B-ZjJ4Gp.mjs} +3 -3
  7. package/dist/{AccountStore-n9WNXu-u.mjs → AccountStore-BaMynkQT.mjs} +26 -26
  8. package/dist/{Accounts-C4WherF9.mjs → Accounts-CA-nqAjT.mjs} +1 -1
  9. package/dist/{BeatApi-D-IyXMLm.mjs → BeatApi-DLu87ijw.mjs} +3 -3
  10. package/dist/{BeatStore-B5LfcbWW.mjs → BeatStore-By4aGoRM.mjs} +17 -17
  11. package/dist/{BudgetUtil-CtWXckgv.mjs → BudgetUtil-CeSLAcsl.mjs} +1 -1
  12. package/dist/{CategorySelectorDrawer-CqlMqp5V.mjs → CategorySelectorDrawer-BJ9jlCyt.mjs} +1 -1
  13. package/dist/{CategoryStore-dxrHWf6L.mjs → CategoryStore-BOyzQjQp.mjs} +4 -4
  14. package/dist/{ConnectDrawer-BKTWEqme.mjs → ConnectDrawer-phFH6OHt.mjs} +1 -1
  15. package/dist/{ConnectionsDrawer-Dv4pKmmN.mjs → ConnectionsDrawer-ihxkAi1P.mjs} +2 -2
  16. package/dist/{CurrencyInput-tMqXd3KG.mjs → CurrencyInput-bEx2Mbd0.mjs} +1 -1
  17. package/dist/{DebtsStore-BteGAanL.mjs → DebtsStore-VkyMADzd.mjs} +1 -1
  18. package/dist/{ExportCsvAction-yq7827zP.mjs → ExportCsvAction-CbMfQ2Wa.mjs} +3 -3
  19. package/dist/{Fetch-AyEhkuBw.mjs → Fetch-CkFKy79O.mjs} +12 -13
  20. package/dist/{FinstrongStore-CwtJyBp-.mjs → FinstrongStore-mkALvztw.mjs} +4 -4
  21. package/dist/{GoalStore-2CTdC10J.mjs → GoalStore-eSOkI6uE.mjs} +14 -14
  22. package/dist/{Help-V93oYnnm.mjs → Help-KAAMEubC.mjs} +1 -1
  23. package/dist/{LineChart-CV-RbcPq.mjs → LineChart-BWWmmJxV.mjs} +1 -1
  24. package/dist/{ListItemAction-CdgLl2l2.mjs → ListItemAction-DNZZ5fSa.mjs} +1 -1
  25. package/dist/{ManageIncome-BFghLkAG.mjs → ManageIncome-DcKHpJ9V.mjs} +4 -4
  26. package/dist/MerchantStore-DVH-QOf0.mjs +37 -0
  27. package/dist/{MicroWidgetContainer-DVbtJbSQ.mjs → MicroWidgetContainer-Dxz8uBN9.mjs} +1 -1
  28. package/dist/{MiniWidgetContainer-DrGaNvh9.mjs → MiniWidgetContainer-CTyjmE1h.mjs} +1 -1
  29. package/dist/{NetWorthStore-DlsAqRCg.mjs → NetWorthStore-B6xF9eGH.mjs} +2 -2
  30. package/dist/{NotificationSettings-BBmACMxQ.mjs → NotificationSettings-Dhf_u5o-.mjs} +2 -2
  31. package/dist/{NotificationStore-C-RiE463.mjs → NotificationStore-DHtSGySy.mjs} +4 -8
  32. package/dist/{OriginalBalanceAction-1RKXElTw.mjs → OriginalBalanceAction-DepsKiJz.mjs} +3 -3
  33. package/dist/{RecurringSettings-CuGrgfJG.mjs → RecurringSettings-C9r4s1Cz.mjs} +3 -3
  34. package/dist/{RecurringTransactionsStore-BMqPhzmZ.mjs → RecurringTransactionsStore-D62XJtdL.mjs} +16 -20
  35. package/dist/{SettingsStore-SO5fm8No.mjs → SettingsStore-B4gi6oOw.mjs} +29 -33
  36. package/dist/{TransactionApi-CbEEBmn8.mjs → TransactionApi-DbbcjI2L.mjs} +29 -29
  37. package/dist/{TransactionDetails-CswefxMb.mjs → TransactionDetails-bja6hKJk.mjs} +5 -5
  38. package/dist/{TransactionStore-CFZc8iKO.mjs → TransactionStore-0tLtBEIC.mjs} +25 -29
  39. package/dist/{TrendsStore-B7tM8VCn.mjs → TrendsStore-WrHxzdbQ.mjs} +1 -1
  40. package/dist/{User-JlyoCg9o.mjs → User-Dq9Qj764.mjs} +1 -1
  41. package/dist/{ViewMoreMicroCard-Snfei5xo.mjs → ViewMoreMicroCard-BFZShKxm.mjs} +234 -229
  42. package/dist/{WidgetContainer-DJ34Wj6k.mjs → WidgetContainer-CdBs9WOZ.mjs} +2 -2
  43. package/dist/accounts/api/AccountApi.d.ts +2 -2
  44. package/dist/accounts/index.es.js +12 -12
  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 +2 -3
  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 +3 -2
  55. package/dist/common/api/GlobalCopyApi.d.ts +1 -2
  56. package/dist/common/api/LocalizedCopyApi.d.ts +1 -2
  57. package/dist/common/api/NotificationApi.d.ts +2 -2
  58. package/dist/common/api/ScheduledPaymentsApi.d.ts +2 -3
  59. package/dist/common/api/UserApi.d.ts +2 -2
  60. package/dist/common/context/GlobalDataProvider.d.ts +2 -3
  61. package/dist/common/context/hooks.d.ts +1 -4
  62. package/dist/common/context/index.d.ts +1 -1
  63. package/dist/common/index.es.js +259 -262
  64. package/dist/common/stores/GlobalStore.d.ts +2 -3
  65. package/dist/common/types/index.d.ts +0 -1
  66. package/dist/common/utils/Fetch.d.ts +1 -3
  67. package/dist/common/utils/Theme.d.ts +22 -22
  68. package/dist/dashboard/index.es.js +2 -2
  69. package/dist/debts/index.es.js +9 -9
  70. package/dist/{exportTransactionsToCSV-Dcgs4YaS.mjs → exportTransactionsToCSV-BDlt8u0n.mjs} +1 -1
  71. package/dist/finstrong/api/FinstrongApi.d.ts +1 -2
  72. package/dist/finstrong/index.es.js +7 -7
  73. package/dist/goals/api/GoalApi.d.ts +2 -3
  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-DkUqN6JE.mjs +71 -0
  78. package/dist/insights/index.es.js +1 -1
  79. package/dist/investments/api/HoldingApi.d.ts +2 -3
  80. package/dist/investments/index.es.js +3 -3
  81. package/dist/merchants/api/MerchantApi.d.ts +1 -2
  82. package/dist/merchants/index.es.js +2 -2
  83. package/dist/microinsights/context/InsightsMicroWidgetDataProvider.d.ts +1 -2
  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 +2 -3
  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 +2 -3
  94. package/dist/transactions/index.es.js +14 -14
  95. package/dist/trends/index.es.js +10 -10
  96. package/dist/{useCombineEvents-DvFN8RkU.mjs → useCombineEvents-DaDBSR_1.mjs} +29 -29
  97. package/package.json +1 -1
  98. package/dist/MerchantStore-C9c7IGVH.mjs +0 -37
  99. package/dist/common/types/Handlers.d.ts +0 -2
  100. package/dist/hooks-DgdCFkB7.mjs +0 -74
@@ -1,77 +1,77 @@
1
- import { G as M } from "../useCombineEvents-DvFN8RkU.mjs";
2
- import { A as ts, a as es, u as ss, b as rs } from "../useCombineEvents-DvFN8RkU.mjs";
3
- import { F as y, A as u } from "../Fetch-AyEhkuBw.mjs";
4
- import { B as os } from "../BeatApi-D-IyXMLm.mjs";
5
- import { C as et } from "../CategoryStore-dxrHWf6L.mjs";
6
- import { a as is } from "../CategoryStore-dxrHWf6L.mjs";
7
- import { N as st } from "../NotificationStore-C-RiE463.mjs";
8
- import { a as ds } from "../NotificationStore-C-RiE463.mjs";
9
- import { T as rt } from "../User-JlyoCg9o.mjs";
10
- import { C as ls, b as hs, L as gs, a as ps } from "../User-JlyoCg9o.mjs";
1
+ import { G as M } from "../useCombineEvents-DaDBSR_1.mjs";
2
+ import { A as ts, a as es, u as ss, b as rs } from "../useCombineEvents-DaDBSR_1.mjs";
3
+ import { F as y, A as u } from "../Fetch-CkFKy79O.mjs";
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 ls } from "../NotificationStore-DHtSGySy.mjs";
9
+ import { T as rt } from "../User-Dq9Qj764.mjs";
10
+ import { C as us, b as hs, L as gs, a as ps } from "../User-Dq9Qj764.mjs";
11
11
  import { H as at } from "../Help-DhcC-C05.mjs";
12
12
  import { E as _s } from "../Help-DhcC-C05.mjs";
13
- import { M as fs } from "../MicroWidgetContainer-DVbtJbSQ.mjs";
14
- import { M as bs } from "../MiniWidgetContainer-DrGaNvh9.mjs";
15
- import { A as xs, D as Cs, W as Ds } from "../WidgetContainer-DJ34Wj6k.mjs";
16
- import { i as Es, a as As, 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-BKTWEqme.mjs";
17
- import { C as qs } from "../CurrencyInput-tMqXd3KG.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 Ps, E as $s, h as Rs, N as Us, g as ks, P as Ls, m as Os, S as Gs } from "../ConnectDrawer-phFH6OHt.mjs";
17
+ import { C as qs } from "../CurrencyInput-bEx2Mbd0.mjs";
18
18
  import { L as Qs } from "../Loader-DUaFpDGv.mjs";
19
19
  import { R as zs } from "../ResponsiveButton-DZFp78fJ.mjs";
20
20
  import { S as Ks } from "../SearchBox-B2_zLv8-.mjs";
21
- import { T as ot } from "../TransactionStore-CFZc8iKO.mjs";
22
- import { S as Vs } from "../TransactionStore-CFZc8iKO.mjs";
21
+ import { T as ot } from "../TransactionStore-0tLtBEIC.mjs";
22
+ import { S as Vs } from "../TransactionStore-0tLtBEIC.mjs";
23
23
  import { T as Js } from "../TabContentContainer-j01JYR_7.mjs";
24
24
  import { I as er } from "../IconBacking-B9oC6uL2.mjs";
25
25
  import { D as rr, F as ar, a as or, c as nr, R as ir, S as cr } from "../RepeatingTransaction-BW4J-jeJ.mjs";
26
26
  import { C as nt } from "../CashflowStore-D9Dpuz7X.mjs";
27
- import { I as ur } from "../CashflowStore-D9Dpuz7X.mjs";
28
- import { d as it } from "../GoalStore-2CTdC10J.mjs";
29
- import { C as hr, G as gr, M as pr, T as mr } from "../GoalStore-2CTdC10J.mjs";
27
+ import { I as dr } from "../CashflowStore-D9Dpuz7X.mjs";
28
+ import { d as it } from "../GoalStore-eSOkI6uE.mjs";
29
+ import { C as hr, G as gr, M as pr, T as mr } from "../GoalStore-eSOkI6uE.mjs";
30
30
  import { C as yr } from "../CurrencyText-YUhH2caW.mjs";
31
31
  import { E as Sr } from "../EmptyState-C0lr9E5T.mjs";
32
- import { L as wr } from "../ListItemAction-CdgLl2l2.mjs";
33
- import { T as ct } from "../TrendsStore-B7tM8VCn.mjs";
34
- import { L as Cr, S as Dr, u as vr } from "../TrendsStore-B7tM8VCn.mjs";
35
- import { A as Ar, B as Tr, I as Br, N as Ir, T as Nr, a as Fr } from "../Notification-ByMBpJ5u.mjs";
36
- import { jsxs as _, jsx as c } from "react/jsx-runtime";
37
- import dt, { useRef as ut, useEffect as lt } from "react";
32
+ import { L as wr } from "../ListItemAction-DNZZ5fSa.mjs";
33
+ import { T as ct } from "../TrendsStore-WrHxzdbQ.mjs";
34
+ import { L as Cr, S as Dr, u as vr } from "../TrendsStore-WrHxzdbQ.mjs";
35
+ import { A as Er, B as Tr, I as Br, N as Ir, T as Nr, a as Fr } from "../Notification-ByMBpJ5u.mjs";
36
+ import { jsxs as _, jsx as n } from "react/jsx-runtime";
37
+ import lt, { useRef as dt, 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
- import { D as $r } from "../Donut-1UMNcG67.mjs";
41
- import { L as Ur } from "../LineChart-CV-RbcPq.mjs";
42
- import { S as Lr } from "../StatusBar-BK_uYHAB.mjs";
43
- import { D as Gr, a as Hr, O as Pr, b as qr, f as Wr } from "../Dialog-CWW597AF.mjs";
40
+ import { D as Pr } from "../Donut-1UMNcG67.mjs";
41
+ import { L as Rr } from "../LineChart-BWWmmJxV.mjs";
42
+ import { S as kr } from "../StatusBar-BK_uYHAB.mjs";
43
+ import { D as Or, a as Gr, O as Hr, b as qr, f as Wr } from "../Dialog-CWW597AF.mjs";
44
44
  import { D as gt, a as pt } from "../SingleSegmentDonut-BgbLgwHi.mjs";
45
45
  import { S as Yr } from "../SingleSegmentDonut-BgbLgwHi.mjs";
46
46
  import { D as Xr } from "../Drawer-kEE73B87.mjs";
47
- import { I as jr, P as Vr, S as Zr } from "../Account-BvW3Ycme.mjs";
48
- import { b as A } from "../Category-CevNQ03n.mjs";
47
+ import { I as jr, P as Vr, S as Zr } from "../Account-BW3-oYEs.mjs";
48
+ import { b as E } from "../Category-CevNQ03n.mjs";
49
49
  import { C as ta, c as ea, a as sa, P as ra } from "../Category-CevNQ03n.mjs";
50
- import { C as oa, f as na, b as ia, a as ca, g as da, i as ua } from "../NumberFormatting-CtWHhyBX.mjs";
51
- import { R as mt } from "../RecurringTransactionsStore-BMqPhzmZ.mjs";
52
- import { S as ha, T as ga } from "../RecurringTransactionsStore-BMqPhzmZ.mjs";
53
- import { G as ma, B as _a, C as ya, W as fa, c as Sa, m as ba, g as wa, t as xa, k as Ca, x as Da, y as va, e as Ea, w as Aa, u as Ta, l as Ba, a as Ia, j as Na, z as Fa, s as Ma, b as $a, q as Ra, n as Ua, A as ka, h as La, r as Oa, f as Ga, v as Ha, o as Pa, p as qa } from "../hooks-DgdCFkB7.mjs";
54
- import { u as Qa } from "../useScreenSize-B6JyS_Lj.mjs";
50
+ import { C as oa, f as na, b as ia, a as ca, g as la, i as da } from "../NumberFormatting-CtWHhyBX.mjs";
51
+ import { R as mt } from "../RecurringTransactionsStore-D62XJtdL.mjs";
52
+ import { S as ha, T as ga } from "../RecurringTransactionsStore-D62XJtdL.mjs";
53
+ import { G as ma, A as _a, B as ya, W as fa, c as Sa, m as ba, g as wa, t as xa, k as Ca, x as Da, e as va, w as Aa, u as Ea, l as Ta, a as Ba, j as Ia, y as Na, s as Fa, b as Ma, q as Pa, n as $a, z as Ra, h as Ua, r as ka, f as La, v as Oa, o as Ga, p as Ha } from "../hooks-DkUqN6JE.mjs";
54
+ import { u as Wa } from "../useScreenSize-B6JyS_Lj.mjs";
55
55
  import { makeAutoObservable as m, runInAction as p, reaction as _t } from "mobx";
56
- import { a as yt } from "../AccountStore-n9WNXu-u.mjs";
56
+ import { a as yt } from "../AccountStore-BaMynkQT.mjs";
57
57
  import ft from "posthog-js";
58
- import { B as St } from "../BeatStore-B5LfcbWW.mjs";
58
+ import { B as St } from "../BeatStore-By4aGoRM.mjs";
59
59
  import { endOfMonth as Z } from "date-fns/endOfMonth";
60
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-CtWXckgv.mjs";
63
- import { g as za, e as Xa, c as Ka, d as ja, i as Va } from "../BudgetUtil-CtWXckgv.mjs";
64
- import { a as xt } from "../DebtsStore-BteGAanL.mjs";
65
- import { a as Ct } from "../FinstrongStore-CwtJyBp-.mjs";
66
- import { A as Dt, m as vt, a as Et, b as At } from "../InvestmentUtil-jOyOgzIB.mjs";
67
- import { M as Tt } from "../MerchantStore-C9c7IGVH.mjs";
68
- import { N as Bt } from "../NetWorthStore-DlsAqRCg.mjs";
69
- import { a as It } from "../SettingsStore-SO5fm8No.mjs";
61
+ import { startOfToday as k } from "date-fns/startOfToday";
62
+ import { f as bt, a as wt, b as L } from "../BudgetUtil-CeSLAcsl.mjs";
63
+ import { g as Ya, e as za, c as Xa, d as Ka, i as ja } 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
70
  import { addMonths as Nt } from "date-fns/addMonths";
71
71
  import { getMonth as T } from "date-fns/getMonth";
72
- import { i as Ja } from "../DateUtil-BcuH7ErC.mjs";
73
- import { b as eo, a as so, g as ro } from "../Localization-2MODESHW.mjs";
74
- import { alpha as Ft, lighten as G, darken as H } from "@mui/material";
72
+ import { i as Za } 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 O, darken as G } from "@mui/material";
75
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
76
  const qe = [
77
77
  { id: 0, copy: "frequency_unknown" },
@@ -87,63 +87,66 @@ const qe = [
87
87
  LOADING: "LOADING",
88
88
  SUCCESS: "SUCCESS"
89
89
  };
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 || {});
90
+ var Pt = /* @__PURE__ */ ((s) => (s[s.SpendingPlan = 0] = "SpendingPlan", s[s.Budgets = 1] = "Budgets", s))(Pt || {}), $t = /* @__PURE__ */ ((s) => (s[s.RecurringExpense = 0] = "RecurringExpense", s[s.PlannedExpense = 1] = "PlannedExpense", s[s.Other = 2] = "Other", s[s.Income = 3] = "Income", s))($t || {});
91
91
  const Qe = (s, t) => {
92
- const e = s.palette.mode === "dark", r = (d, i) => {
93
- const n = t?.[d];
92
+ const e = {
93
+ ...t,
94
+ system_font: "Times New Roman"
95
+ }, r = s.palette.mode === "dark", a = (l, i) => {
96
+ const c = e?.[l];
94
97
  return {
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
98
+ lighter: c ? O(c, 0.5) : i.lighter,
99
+ light: c ? O(c, 0.25) : i.light,
100
+ main: c || i.main,
101
+ dark: c ? G(c, 0.25) : i.dark,
102
+ darker: c ? G(c, 0.5) : i.darker
100
103
  };
101
- }, a = {
102
- primary: r(e ? "primary_color_dark" : "primary_color", s.palette.primary),
103
- secondary: r(e ? "neutral_color_dark" : "neutral_color", s.palette.secondary),
104
- error: r(e ? "error_color_dark" : "error_color", s.palette.error),
105
- warning: r(e ? "warning_color_dark" : "warning_color", s.palette.warning),
106
- info: r(e ? "info_color_dark" : "info_color", s.palette.info),
107
- success: r(e ? "success_color_dark" : "success_color", s.palette.success)
108
104
  }, o = {
105
+ primary: a(r ? "primary_color_dark" : "primary_color", s.palette.primary),
106
+ secondary: a(r ? "neutral_color_dark" : "neutral_color", s.palette.secondary),
107
+ error: a(r ? "error_color_dark" : "error_color", s.palette.error),
108
+ warning: a(r ? "warning_color_dark" : "warning_color", s.palette.warning),
109
+ info: a(r ? "info_color_dark" : "info_color", s.palette.info),
110
+ success: a(r ? "success_color_dark" : "success_color", s.palette.success)
111
+ }, d = {
109
112
  MuiTabs: {
110
113
  styleOverrides: {
111
114
  indicator: {
112
- backgroundColor: a.primary.light
115
+ backgroundColor: o.primary.light
113
116
  }
114
117
  }
115
118
  },
116
119
  MuiPickersCalendarHeader: {
117
120
  styleOverrides: {
118
121
  switchViewButton: {
119
- color: a.primary.lighter,
122
+ color: o.primary.lighter,
120
123
  "&:hover": {
121
- backgroundColor: Ft(a.primary.light, 0.1)
124
+ backgroundColor: Ft(o.primary.light, 0.1)
122
125
  }
123
126
  }
124
127
  }
125
128
  },
126
- ...t?.button_corner_radius ? {
129
+ ...e?.button_corner_radius ? {
127
130
  MuiButton: {
128
131
  styleOverrides: {
129
132
  root: {
130
- borderRadius: `${t.button_corner_radius}px`
133
+ borderRadius: `${e.button_corner_radius}px`
131
134
  }
132
135
  }
133
136
  }
134
137
  } : {},
135
- ...t?.card_corner_radius ? {
138
+ ...e?.card_corner_radius ? {
136
139
  MuiCard: {
137
140
  styleOverrides: {
138
141
  root: {
139
- borderRadius: `${t.card_corner_radius}px`
142
+ borderRadius: `${e.card_corner_radius}px`
140
143
  }
141
144
  }
142
145
  },
143
146
  MuiPaper: {
144
147
  styleOverrides: {
145
148
  root: {
146
- borderRadius: `${t.card_corner_radius}px`
149
+ borderRadius: `${e.card_corner_radius}px`
147
150
  }
148
151
  }
149
152
  }
@@ -151,76 +154,76 @@ const Qe = (s, t) => {
151
154
  };
152
155
  return {
153
156
  typography: {
154
- fontFamily: t?.system_font ?? s.typography.fontFamily,
157
+ fontFamily: e?.system_font ?? s.typography.fontFamily,
155
158
  H1: {
156
- fontFamily: t?.system_font ?? s.typography.fontFamily
159
+ fontFamily: e?.system_font ?? s.typography.fontFamily
157
160
  },
158
161
  h1: {
159
- fontFamily: t?.system_font ?? s.typography.fontFamily
162
+ fontFamily: e?.system_font ?? s.typography.fontFamily
160
163
  },
161
164
  H2: {
162
- fontFamily: t?.system_font ?? s.typography.fontFamily
165
+ fontFamily: e?.system_font ?? s.typography.fontFamily
163
166
  },
164
167
  h2: {
165
- fontFamily: t?.system_font ?? s.typography.fontFamily
168
+ fontFamily: e?.system_font ?? s.typography.fontFamily
166
169
  },
167
170
  H3: {
168
- fontFamily: t?.system_font ?? s.typography.fontFamily
171
+ fontFamily: e?.system_font ?? s.typography.fontFamily
169
172
  },
170
173
  h3: {
171
- fontFamily: t?.system_font ?? s.typography.fontFamily
174
+ fontFamily: e?.system_font ?? s.typography.fontFamily
172
175
  },
173
176
  Body: {
174
- fontFamily: t?.system_font ?? s.typography.fontFamily
177
+ fontFamily: e?.system_font ?? s.typography.fontFamily
175
178
  },
176
179
  body1: {
177
- fontFamily: t?.system_font ?? s.typography.fontFamily
180
+ fontFamily: e?.system_font ?? s.typography.fontFamily
178
181
  },
179
182
  Small: {
180
- fontFamily: t?.system_font ?? s.typography.fontFamily
183
+ fontFamily: e?.system_font ?? s.typography.fontFamily
181
184
  },
182
185
  body2: {
183
- fontFamily: t?.system_font ?? s.typography.fontFamily
186
+ fontFamily: e?.system_font ?? s.typography.fontFamily
184
187
  },
185
188
  Button: {
186
- fontFamily: t?.system_font ?? s.typography.fontFamily
189
+ fontFamily: e?.system_font ?? s.typography.fontFamily
187
190
  },
188
191
  button: {
189
- fontFamily: t?.system_font ?? s.typography.fontFamily
192
+ fontFamily: e?.system_font ?? s.typography.fontFamily
190
193
  },
191
194
  XSmall: {
192
- fontFamily: t?.system_font ?? s.typography.fontFamily
195
+ fontFamily: e?.system_font ?? s.typography.fontFamily
193
196
  },
194
197
  caption: {
195
- fontFamily: t?.system_font ?? s.typography.fontFamily
198
+ fontFamily: e?.system_font ?? s.typography.fontFamily
196
199
  },
197
200
  Paragraph: {
198
- fontFamily: t?.system_font ?? s.typography.fontFamily
201
+ fontFamily: e?.system_font ?? s.typography.fontFamily
199
202
  },
200
203
  subtitle1: {
201
- fontFamily: t?.system_font ?? s.typography.fontFamily
204
+ fontFamily: e?.system_font ?? s.typography.fontFamily
202
205
  },
203
206
  ParagraphSmall: {
204
- fontFamily: t?.system_font ?? s.typography.fontFamily
207
+ fontFamily: e?.system_font ?? s.typography.fontFamily
205
208
  },
206
209
  subtitle2: {
207
- fontFamily: t?.system_font ?? s.typography.fontFamily
210
+ fontFamily: e?.system_font ?? s.typography.fontFamily
208
211
  },
209
212
  Tiny: {
210
- fontFamily: t?.system_font ?? s.typography.fontFamily
213
+ fontFamily: e?.system_font ?? s.typography.fontFamily
211
214
  },
212
215
  tiny: {
213
- fontFamily: t?.system_font ?? s.typography.fontFamily
216
+ fontFamily: e?.system_font ?? s.typography.fontFamily
214
217
  }
215
218
  },
216
- palette: a,
217
- components: o,
219
+ palette: o,
220
+ components: d,
218
221
  shape: {
219
- borderRadius: t?.button_corner_radius ?? s.shape.borderRadius
222
+ borderRadius: e?.button_corner_radius ?? s.shape.borderRadius
220
223
  }
221
224
  };
222
225
  };
223
- class P {
226
+ class H {
224
227
  fetchInstance;
225
228
  constructor(t) {
226
229
  this.fetchInstance = new y(t, "", {
@@ -239,16 +242,16 @@ class P {
239
242
  }
240
243
  class Ye {
241
244
  fetchInstance;
242
- constructor(t, e, r) {
243
- this.fetchInstance = new y(t, e, void 0, r);
245
+ constructor(t, e) {
246
+ this.fetchInstance = new y(t, e);
244
247
  }
245
248
  getLocalizedCopy = async (t) => this.fetchInstance.post(u.LOCALIZED_COPY, t).then((e) => e);
246
249
  getLocalizedContent = async (t) => this.fetchInstance.post(`${u.LOCALIZED_CONTENT}/${t}`).then((e) => e);
247
250
  }
248
251
  class ze {
249
252
  fetchInstance;
250
- constructor(t, e, r) {
251
- this.fetchInstance = new y(t, e, void 0, r);
253
+ constructor(t, e) {
254
+ this.fetchInstance = new y(t, e);
252
255
  }
253
256
  addScheduledPayment = async (t) => this.fetchInstance.post(u.SCHEDULED_PAYMENTS, {
254
257
  ...t,
@@ -259,10 +262,10 @@ class ze {
259
262
  updateScheduledPayment = async (t) => this.fetchInstance.put(`${u.SCHEDULED_PAYMENTS}/${t.guid}`, t).then((e) => e.scheduled_payment);
260
263
  deleteScheduledPayment = async (t) => this.fetchInstance.delete(`${u.SCHEDULED_PAYMENTS}/${t}`).then((e) => e);
261
264
  }
262
- class $ {
265
+ class P {
263
266
  fetchInstance;
264
- constructor(t, e, r) {
265
- this.fetchInstance = new y(t, e, void 0, r);
267
+ constructor(t, e) {
268
+ this.fetchInstance = new y(t, e);
266
269
  }
267
270
  getUserFeatures = async () => this.fetchInstance.get(u.USER_FEATURES).then((t) => t.user_features).catch((t) => t);
268
271
  updateUser = async (t) => this.fetchInstance.put(u.USER, t).then((e) => e.user);
@@ -276,23 +279,23 @@ class q {
276
279
  requestWidgetUrl = async (t) => this.fetchInstance.post(u.WIDGET_URLS, t).then((e) => e.widget_url);
277
280
  }
278
281
  const Xe = (s) => {
279
- const t = ut();
280
- return lt(() => {
282
+ const t = dt();
283
+ return ut(() => {
281
284
  t.current = s;
282
285
  }, [s]), t.current;
283
- }, Ut = ({ color: s, labelAverage: t, labelMain: e }) => {
284
- const r = x(), a = kt(r, s);
286
+ }, Rt = ({ color: s, labelAverage: t, labelMain: e }) => {
287
+ const r = x(), a = Ut(r, s);
285
288
  return /* @__PURE__ */ _("div", { className: `mx-cmn-bar-chart-legend ${a}`, children: [
286
- /* @__PURE__ */ c("div", { "aria-label": e, className: "mx-cmn-color-square", role: "img" }),
287
- /* @__PURE__ */ c(B, { variant: "XSmall", children: e }),
289
+ /* @__PURE__ */ n("div", { "aria-label": e, className: "mx-cmn-color-square", role: "img" }),
290
+ /* @__PURE__ */ n(B, { variant: "XSmall", children: e }),
288
291
  /* @__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" })
292
+ /* @__PURE__ */ n("div", { className: "mx-cmn-dot" }),
293
+ /* @__PURE__ */ n("div", { className: "mx-cmn-dot" }),
294
+ /* @__PURE__ */ n("div", { className: "mx-cmn-dot" })
292
295
  ] }),
293
- /* @__PURE__ */ c(B, { variant: "XSmall", children: t })
296
+ /* @__PURE__ */ n(B, { variant: "XSmall", children: t })
294
297
  ] });
295
- }, kt = (s, t) => w({
298
+ }, Ut = (s, t) => w({
296
299
  alignItems: "center",
297
300
  display: "flex",
298
301
  gap: s.Spacing.XSmall,
@@ -326,11 +329,11 @@ const Xe = (s) => {
326
329
  label: a,
327
330
  onClick: o,
328
331
  selectedIndex: d,
329
- value: i
332
+ value: l
330
333
  }) => {
331
- const n = x(), l = Lt(n, t, e), h = (S) => {
334
+ const i = x(), c = kt(i, t, e), h = (S) => {
332
335
  o && (S.key === " " || S.key === "Enter") && o(r);
333
- }, f = d === void 0 || d === r ? "primary" : "secondary", g = () => /* @__PURE__ */ c(
336
+ }, f = d === void 0 || d === r ? "primary" : "secondary", g = () => /* @__PURE__ */ n(
334
337
  B,
335
338
  {
336
339
  "aria-hidden": !0,
@@ -342,22 +345,22 @@ const Xe = (s) => {
342
345
  children: a
343
346
  }
344
347
  );
345
- return /* @__PURE__ */ _("div", { className: `mx-cmn-bar-container ${l} ${i < 0 ? "mx-cmn-negative" : ""}`, children: [
346
- i >= 0 && /* @__PURE__ */ c(g, {}),
347
- /* @__PURE__ */ c(
348
+ return /* @__PURE__ */ _("div", { className: `mx-cmn-bar-container ${c} ${l < 0 ? "mx-cmn-negative" : ""}`, children: [
349
+ l >= 0 && /* @__PURE__ */ n(g, {}),
350
+ /* @__PURE__ */ n(
348
351
  "div",
349
352
  {
350
353
  "aria-label": s,
351
- className: `mx-cmn-bar ${o ? "mx-cmn-clickable" : ""} ${i < 0 ? "mx-cmn-bar-negative" : ""}`,
354
+ className: `mx-cmn-bar ${o ? "mx-cmn-clickable" : ""} ${l < 0 ? "mx-cmn-bar-negative" : ""}`,
352
355
  onClick: o ? () => o?.(r) : void 0,
353
356
  onKeyDown: h,
354
357
  role: s ? "button" : void 0,
355
358
  tabIndex: s ? 0 : void 0
356
359
  }
357
360
  ),
358
- i < 0 && /* @__PURE__ */ c(g, {})
361
+ l < 0 && /* @__PURE__ */ n(g, {})
359
362
  ] });
360
- }, Lt = (s, t, e) => {
363
+ }, kt = (s, t, e) => {
361
364
  const r = `expandBar-${Math.round(e)}`, a = ht(r, { from: { height: 0 }, to: { height: e } });
362
365
  return w({
363
366
  display: "flex",
@@ -398,16 +401,16 @@ const Xe = (s) => {
398
401
  index: a = -1,
399
402
  onClick: o,
400
403
  range: d,
401
- selectedIndex: i,
402
- topHeight: n,
403
- value: l,
404
+ selectedIndex: l,
405
+ topHeight: i,
406
+ value: c,
404
407
  valueLabel: h = "",
405
408
  width: f,
406
409
  xAxisLabel: g = ""
407
410
  }) => {
408
- const S = x(), C = Ot(S, f), D = l / d * n, v = Math.abs(l) / d * e, E = i === void 0 || i === a ? "primary" : "secondary";
411
+ const S = x(), C = Lt(S, f), D = c / d * i, v = Math.abs(c) / d * e, A = l === void 0 || l === a ? "primary" : "secondary";
409
412
  return /* @__PURE__ */ _("div", { className: `mx-cmn-barchart-bar-column ${C}`, children: [
410
- /* @__PURE__ */ c("div", { style: { height: n }, children: l >= 0 && /* @__PURE__ */ c(
413
+ /* @__PURE__ */ n("div", { style: { height: i }, children: c >= 0 && /* @__PURE__ */ n(
411
414
  W,
412
415
  {
413
416
  ariaLabel: s,
@@ -416,13 +419,13 @@ const Xe = (s) => {
416
419
  index: a,
417
420
  label: h,
418
421
  onClick: o,
419
- selectedIndex: i,
420
- value: l
422
+ selectedIndex: l,
423
+ value: c
421
424
  }
422
425
  ) }),
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: l < 0 && /* @__PURE__ */ c(
426
+ /* @__PURE__ */ n("div", { className: "mx-cmn-zero-line" }),
427
+ t !== 0 && /* @__PURE__ */ n("div", { className: "mx-cmn-chart-average", style: { bottom: t } }),
428
+ /* @__PURE__ */ n("div", { style: { height: e }, children: c < 0 && /* @__PURE__ */ n(
426
429
  W,
427
430
  {
428
431
  ariaLabel: s,
@@ -431,19 +434,19 @@ const Xe = (s) => {
431
434
  index: a,
432
435
  label: h,
433
436
  onClick: o,
434
- value: l
437
+ value: c
435
438
  }
436
439
  ) }),
437
- /* @__PURE__ */ c(
440
+ /* @__PURE__ */ n(
438
441
  "div",
439
442
  {
440
443
  className: `mx-cmn-bar-label ${o ? "mx-cmn-clickable" : ""}`,
441
444
  onClick: o ? () => o(a) : void 0,
442
- children: /* @__PURE__ */ c(B, { bold: i === a, color: E, variant: "Small", children: g })
445
+ children: /* @__PURE__ */ n(B, { bold: l === a, color: A, variant: "Small", children: g })
443
446
  }
444
447
  )
445
448
  ] });
446
- }, Ot = (s, t) => w({
449
+ }, Lt = (s, t) => w({
447
450
  display: "flex",
448
451
  flexDirection: "column",
449
452
  flexGrow: t === void 0 ? 1 : 0,
@@ -468,7 +471,7 @@ const Xe = (s) => {
468
471
  "& .mx-cmn-clickable": {
469
472
  cursor: "pointer"
470
473
  }
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) => {
474
+ }), Ot = (s, t) => s + t, Gt = (s, t) => Math.abs(t) > s ? Math.abs(t) : s, Ht = (s, t) => [...s, t.value], Y = (s, t, e) => {
472
475
  const r = s && t ? e / 2 : e;
473
476
  return s ? r : 0;
474
477
  }, qt = (s, t, e, r) => s / (t < 0 ? -e : t) * r || 0, Wt = ({
@@ -479,14 +482,14 @@ const Xe = (s) => {
479
482
  height: a,
480
483
  legendLabelAverage: o,
481
484
  legendLabelMain: d,
482
- onBarClick: i,
483
- selectedIndex: n,
484
- valueFormatter: l = (h) => `${h}`
485
+ onBarClick: l,
486
+ selectedIndex: i,
487
+ valueFormatter: c = (h) => `${h}`
485
488
  }) => {
486
- const h = x(), f = Qt(h), g = r.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), E = C >= 0, R = D < 0, I = Y(E, R, a), N = Y(R, E, a), U = qt(S, C, D, I || N), tt = (b) => n === void 0 || b === n ? e : `${e}80`, k = () => /* @__PURE__ */ c(
489
+ const h = x(), f = Qt(h), g = r.reduce(Ht, []), S = s !== void 0 ? s : g.reduce(Ot, 0) / g.length, C = Math.max(...g), D = Math.min(...g), v = g.reduce(Gt, 0), A = C >= 0, $ = D < 0, I = Y(A, $, a), N = Y($, A, a), R = qt(S, C, D, I || N), tt = (b) => i === void 0 || b === i ? e : `${e}80`, U = () => /* @__PURE__ */ n(
487
490
  Q,
488
491
  {
489
- averageLineHeight: U,
492
+ averageLineHeight: R,
490
493
  bottomHeight: N,
491
494
  color: "",
492
495
  range: v,
@@ -497,30 +500,30 @@ const Xe = (s) => {
497
500
  );
498
501
  return /* @__PURE__ */ _("div", { className: `mx-cmn-bar-chart ${f}`, children: [
499
502
  /* @__PURE__ */ _("div", { className: "mx-cmn-chart-container", children: [
500
- /* @__PURE__ */ c(k, {}),
501
- r.map((b, F) => /* @__PURE__ */ _(dt.Fragment, { children: [
502
- /* @__PURE__ */ c(
503
+ /* @__PURE__ */ n(U, {}),
504
+ r.map((b, F) => /* @__PURE__ */ _(lt.Fragment, { children: [
505
+ /* @__PURE__ */ n(
503
506
  Q,
504
507
  {
505
508
  ariaLabel: b.ariaLabel,
506
- averageLineHeight: U,
509
+ averageLineHeight: R,
507
510
  bottomHeight: N,
508
511
  color: tt(F),
509
512
  index: F,
510
- onClick: i,
513
+ onClick: l,
511
514
  range: v,
512
- selectedIndex: n,
515
+ selectedIndex: i,
513
516
  topHeight: I,
514
517
  value: b.value,
515
- valueLabel: l(b.value),
518
+ valueLabel: c(b.value),
516
519
  width: t,
517
520
  xAxisLabel: b.label
518
521
  }
519
522
  ),
520
- /* @__PURE__ */ c(k, {})
523
+ /* @__PURE__ */ n(U, {})
521
524
  ] }, `column-${F}`))
522
525
  ] }),
523
- /* @__PURE__ */ c(Ut, { color: e, labelAverage: o, labelMain: d })
526
+ /* @__PURE__ */ n(Rt, { color: e, labelAverage: o, labelMain: d })
524
527
  ] });
525
528
  }, Qt = (s) => w({
526
529
  "& .mx-cmn-chart-container": {
@@ -537,38 +540,38 @@ const Xe = (s) => {
537
540
  strokeWidth: r = pt,
538
541
  children: a
539
542
  }) => {
540
- const o = x(), d = zt(o, e), i = (e - r) / 2, n = e / 2;
541
- let l = -90 - (s ? 1 : 0), h = 0;
543
+ const o = x(), d = zt(o, e), l = (e - r) / 2, i = e / 2;
544
+ let c = -90 - (s ? 1 : 0), h = 0;
542
545
  return /* @__PURE__ */ _("div", { className: `mx-cmn-multi-segment-donut ${d}`, children: [
543
546
  /* @__PURE__ */ _("svg", { height: e, width: e, children: [
544
- /* @__PURE__ */ c(
547
+ /* @__PURE__ */ n(
545
548
  "circle",
546
549
  {
547
- cx: n,
548
- cy: n,
550
+ cx: i,
551
+ cy: i,
549
552
  fill: "none",
550
- r: i,
553
+ r: l,
551
554
  stroke: o.Color.Neutral300,
552
555
  strokeWidth: r
553
556
  }
554
557
  ),
555
- t.map((f, g) => (l += 360 * h + (s ? 1 : 0), h = (f.percent - (s ? 0.3 : 0)) / 100, /* @__PURE__ */ c(
558
+ t.map((f, g) => (c += 360 * h + (s ? 1 : 0), h = (f.percent - (s ? 0.3 : 0)) / 100, /* @__PURE__ */ n(
556
559
  "circle",
557
560
  {
558
- cx: n,
559
- cy: n,
561
+ cx: i,
562
+ cy: i,
560
563
  fill: "none",
561
- r: i,
564
+ r: l,
562
565
  stroke: f.color,
563
- strokeDasharray: 2 * Math.PI * i,
564
- strokeDashoffset: 2 * Math.PI * i * (1 - h),
566
+ strokeDasharray: 2 * Math.PI * l,
567
+ strokeDashoffset: 2 * Math.PI * l * (1 - h),
565
568
  strokeWidth: r,
566
- transform: `rotate(${l}, ${n}, ${n})`
569
+ transform: `rotate(${c}, ${i}, ${i})`
567
570
  },
568
571
  g
569
572
  )))
570
573
  ] }),
571
- /* @__PURE__ */ c("div", { className: "mx-cmn-multi-segment-donut-children", children: a })
574
+ /* @__PURE__ */ n("div", { className: "mx-cmn-multi-segment-donut-children", children: a })
572
575
  ] });
573
576
  }, zt = (s, t) => w({
574
577
  height: t,
@@ -590,11 +593,7 @@ class Xt {
590
593
  featureNamespace = "experiences";
591
594
  isInitialized = !1;
592
595
  constructor(t) {
593
- this.globalStore = t, this.api = new M(
594
- t.endpoint,
595
- t.sessionToken,
596
- t.onError
597
- ), m(this);
596
+ this.globalStore = t, this.api = new M(t.endpoint, t.sessionToken), m(this);
598
597
  }
599
598
  // DEPRECATED: Initialize api in constructor and use loadCopy instead
600
599
  // TODO: Remove this function
@@ -668,8 +667,8 @@ class Kt {
668
667
  }
669
668
  class z {
670
669
  fetchInstance;
671
- constructor(t, e, r) {
672
- this.fetchInstance = new y(t, e, void 0, r);
670
+ constructor(t, e) {
671
+ this.fetchInstance = new y(t, e);
673
672
  }
674
673
  addBudget = async (t, e, r = null) => this.fetchInstance.post(u.BUDGETS, {
675
674
  amount: e,
@@ -691,14 +690,14 @@ class jt {
691
690
  api = new z("/", "");
692
691
  globalStore;
693
692
  alert = "";
694
- dateRange = { start: J(L()), end: Z(L()) };
693
+ dateRange = { start: J(k()), end: Z(k()) };
695
694
  budgets = [];
696
695
  selectedBudget;
697
696
  selectedSubBudget;
698
697
  isDataLoaded = !1;
699
698
  theme = {};
700
699
  constructor(t) {
701
- this.globalStore = t, this.api = new z(t.endpoint, t.sessionToken, t.onError), m(this);
700
+ this.globalStore = t, this.api = new z(t.endpoint, t.sessionToken), m(this);
702
701
  }
703
702
  loadBudgetData = async () => {
704
703
  await this.loadBudgets(), _t(
@@ -718,9 +717,9 @@ class jt {
718
717
  );
719
718
  };
720
719
  get detailedBudgets() {
721
- return O(
720
+ return L(
722
721
  this.budgets.filter(
723
- (t) => t.category_guid !== A.INCOME && t.category_guid !== A.TRANSFER && t.category_guid !== A.INVESTMENTS
722
+ (t) => t.category_guid !== E.INCOME && t.category_guid !== E.TRANSFER && t.category_guid !== E.INVESTMENTS
724
723
  ),
725
724
  this.globalStore.categoryStore.detailedCategories,
726
725
  this.globalStore.copyStore.copy.budgets,
@@ -728,13 +727,13 @@ class jt {
728
727
  ).sort((t, e) => t.percentage > e.percentage ? -1 : t.percentage < e.percentage ? 1 : 0);
729
728
  }
730
729
  get incomeBudget() {
731
- return O(
730
+ return L(
732
731
  this.budgets.filter((r) => !r.parent_guid),
733
732
  this.globalStore.categoryStore.detailedCategories,
734
733
  this.globalStore.copyStore.copy.budgets,
735
734
  this.theme
736
735
  ).reduce(
737
- (r, a) => a.category_guid !== A.INCOME ? r : !r || a.percentage > r.percentage ? a : r,
736
+ (r, a) => a.category_guid !== E.INCOME ? r : !r || a.percentage > r.percentage ? a : r,
738
737
  void 0
739
738
  )?.amount;
740
739
  }
@@ -819,8 +818,8 @@ class jt {
819
818
  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 || {});
820
819
  class X {
821
820
  fetchInstance;
822
- constructor(t, e, r) {
823
- this.fetchInstance = new y(t, e, void 0, r);
821
+ constructor(t, e) {
822
+ this.fetchInstance = new y(t, e);
824
823
  }
825
824
  createSupportTicket = async (t) => this.fetchInstance.post(u.SUPPORT_TICKETS, t).then((e) => e);
826
825
  }
@@ -832,9 +831,9 @@ const ee = (s, t) => s.guid === "general" || s.guid === "insights" ? !0 : s.flag
832
831
  const o = {
833
832
  ...r,
834
833
  title: a.label,
835
- topics: r.topics.map(({ topicKey: d }, i) => ({
834
+ topics: r.topics.map(({ topicKey: d }, l) => ({
836
835
  topicKey: d,
837
- label: a.topics[i]
836
+ label: a.topics[l]
838
837
  }))
839
838
  };
840
839
  ee(o, s) && e.push(o);
@@ -848,7 +847,7 @@ class re {
848
847
  globalStore;
849
848
  isLoading = !1;
850
849
  constructor(t) {
851
- this.globalStore = t, this.api = new X(t.endpoint, t.sessionToken, t.onError), m(this);
850
+ this.globalStore = t, this.api = new X(t.endpoint, t.sessionToken), m(this);
852
851
  }
853
852
  createSupportTicket = async (t) => {
854
853
  try {
@@ -879,8 +878,8 @@ class re {
879
878
  }
880
879
  class K {
881
880
  fetchInstance;
882
- constructor(t, e, r) {
883
- this.fetchInstance = new y(t, e, void 0, r);
881
+ constructor(t, e) {
882
+ this.fetchInstance = new y(t, e);
884
883
  }
885
884
  getHoldings = async () => this.fetchInstance.get(u.HOLDINGS).then((t) => t.holdings);
886
885
  updateHoldings = async (t) => this.fetchInstance.put(`${u.HOLDINGS}/${t.guid}`, t).then((e) => e.holding);
@@ -893,13 +892,13 @@ class ae {
893
892
  globalStore;
894
893
  showConnectionsWidget = !1;
895
894
  constructor(t) {
896
- this.globalStore = t, this.api = new K(t.endpoint, t.sessionToken, t.onError), m(this);
895
+ this.globalStore = t, this.api = new K(t.endpoint, t.sessionToken), m(this);
897
896
  }
898
897
  get analysisChartData() {
899
- return vt(Et(this.visibleHoldings), this.analysisType);
898
+ return vt(At(this.visibleHoldings), this.analysisType);
900
899
  }
901
900
  get analysisDetails() {
902
- return At(this.visibleHoldings)[this.analysisType] || {};
901
+ return Et(this.visibleHoldings)[this.analysisType] || {};
903
902
  }
904
903
  get visibleHoldings() {
905
904
  return this.holdings.filter(
@@ -1041,19 +1040,19 @@ const j = {
1041
1040
  };
1042
1041
  class V {
1043
1042
  fetchInstance;
1044
- constructor(t, e, r) {
1045
- this.fetchInstance = new y(t, e, void 0, r);
1043
+ constructor(t, e) {
1044
+ this.fetchInstance = new y(t, e);
1046
1045
  }
1047
1046
  getAppData = async () => this.fetchInstance.get(u.APP_DATA).then((t) => t);
1048
1047
  }
1049
1048
  class oe {
1050
1049
  globalStore;
1051
1050
  api = new V("/", "");
1052
- bannerApi = new P("/");
1051
+ bannerApi = new H("/");
1053
1052
  appData = {};
1054
1053
  banner = {};
1055
1054
  constructor(t) {
1056
- this.globalStore = t, this.api = new V(t.endpoint, t.sessionToken, t.onError), m(this);
1055
+ this.globalStore = t, this.api = new V(t.endpoint, t.sessionToken), m(this);
1057
1056
  }
1058
1057
  get appConfig() {
1059
1058
  return this.globalStore.appConfig;
@@ -1077,7 +1076,7 @@ class oe {
1077
1076
  try {
1078
1077
  const e = t || await this.api.getAppData();
1079
1078
  p(() => {
1080
- this.appData = e, this.bannerApi = new P(e.address?.bullseye || "/");
1079
+ this.appData = e, this.bannerApi = new H(e.address?.bullseye || "/");
1081
1080
  });
1082
1081
  } catch (e) {
1083
1082
  console.error(`Error loading app data: ${e}`);
@@ -1155,15 +1154,15 @@ class ie {
1155
1154
  }
1156
1155
  class ce {
1157
1156
  globalStore;
1158
- api = new $("/", "");
1157
+ api = new P("/", "");
1159
1158
  userFeatures = [];
1160
1159
  constructor(t) {
1161
- this.globalStore = t, this.api = new $(t.endpoint, t.sessionToken, t.onError), m(this);
1160
+ this.globalStore = t, this.api = new P(t.endpoint, t.sessionToken), m(this);
1162
1161
  }
1163
1162
  // DEPRECATED: Initialize api in constructor and use loadUserFeatures instead
1164
1163
  // TODO: Remove this function
1165
1164
  initialize = async (t, e) => {
1166
- this.api = new $(t, e), await this.loadUserFeatures();
1165
+ this.api = new P(t, e), await this.loadUserFeatures();
1167
1166
  };
1168
1167
  get userProfile() {
1169
1168
  return this.globalStore.appDataStore.userProfile;
@@ -1203,7 +1202,6 @@ class Ve {
1203
1202
  appConfig = j;
1204
1203
  endpoint = "/";
1205
1204
  sessionToken = "";
1206
- onError;
1207
1205
  // Data Stores
1208
1206
  accountStore;
1209
1207
  appDataStore;
@@ -1229,8 +1227,8 @@ class Ve {
1229
1227
  userStore;
1230
1228
  // UI Stores
1231
1229
  globalUiStore;
1232
- constructor(t = j, e = "/", r) {
1233
- this.appConfig = t, this.endpoint = e, this.sessionToken = t.options.session_token ?? "", this.onError = r, 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 re(this), this.holdingStore = new ae(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);
1230
+ constructor(t = j, e = "/") {
1231
+ 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 re(this), this.holdingStore = new ae(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);
1234
1232
  }
1235
1233
  get isInitialized() {
1236
1234
  return this.globalUiStore.isInitialized;
@@ -1242,65 +1240,65 @@ class Ve {
1242
1240
  categories: a,
1243
1241
  institutions: o,
1244
1242
  transactionRules: d,
1245
- transactions: i,
1246
- userFeatures: n
1243
+ transactions: l,
1244
+ userFeatures: i
1247
1245
  } = {}) => {
1248
1246
  await Promise.all([
1249
1247
  // Load copy, config and quser data
1250
1248
  this.copyStore.loadCopy(),
1251
1249
  this.appDataStore.loadAppData(e),
1252
- this.userStore.loadUserFeatures(n)
1250
+ this.userStore.loadUserFeatures(i)
1253
1251
  ]), await Promise.all([
1254
1252
  this.accountStore.loadAccountData({ accounts: t, institutions: o }),
1255
1253
  this.categoryStore.loadCategories(a),
1256
1254
  this.transactionStore.loadTransactionData({
1257
1255
  associatedBeats: r,
1258
1256
  transactionRules: d,
1259
- transactions: i
1257
+ transactions: l
1260
1258
  })
1261
1259
  ]), this.globalUiStore.setInitialized(!0);
1262
1260
  };
1263
1261
  }
1264
1262
  export {
1265
1263
  xs as ANALYTICS_EVENTS,
1266
- Es as AccountFilter,
1267
- As as AccountIcon,
1264
+ As as AccountFilter,
1265
+ Es as AccountIcon,
1268
1266
  Ts as AccountIconVariants,
1269
- Ar as AccountNotificationTypes,
1267
+ Er as AccountNotificationTypes,
1270
1268
  Bs as AccountSubType,
1271
1269
  Is as AccountType,
1272
1270
  Ns as AccountTypeName,
1273
1271
  ts as AnalyticsApi,
1274
1272
  u as ApiEndpoints,
1275
- P as BannerApi,
1273
+ H as BannerApi,
1276
1274
  Ke as BarChart,
1277
1275
  os as BeatApi,
1278
1276
  Tr as BudgetNotificationTypes,
1279
- ls as Calendar,
1277
+ us as Calendar,
1280
1278
  hs as CalendarSelectionTypes,
1281
1279
  is as CategoryApi,
1282
1280
  ta as CategoryColors,
1283
1281
  ea as CategoryGuidToName,
1284
- A as CategoryGuids,
1282
+ E as CategoryGuids,
1285
1283
  sa as CategoryIcon,
1286
1284
  hr as ConnectCard,
1287
1285
  Fs as ConnectDrawer,
1288
1286
  Ms as ConnectionStatus,
1289
- $s as ConnectionStatusEnums,
1287
+ Ps as ConnectionStatusEnums,
1290
1288
  oa as CurrencyCodes,
1291
1289
  qs as CurrencyInput,
1292
1290
  yr as CurrencyText,
1293
- Gr as DATE_FORMATS_INTL,
1291
+ Or as DATE_FORMATS_INTL,
1294
1292
  gt as DEFAULT_DONUT_SIZE,
1295
1293
  pt as DEFAULT_STROKE_WIDTH,
1296
1294
  rr as DataRow,
1297
1295
  Cs as DateRangeSelector,
1298
- Hr as Dialog,
1299
- $r as Donut,
1296
+ Gr as Dialog,
1297
+ Pr as Donut,
1300
1298
  Xr as Drawer,
1301
1299
  Sr as EmptyState,
1302
1300
  _s as ErrorBoundary,
1303
- Rs as ErrorStatuses,
1301
+ $s as ErrorStatuses,
1304
1302
  Zt as ExpenseStatus,
1305
1303
  y as Fetch,
1306
1304
  ar as Frequency,
@@ -1312,32 +1310,32 @@ export {
1312
1310
  gr as GoalType,
1313
1311
  jr as INCOME_ACCOUNT_TYPES,
1314
1312
  er as IconBacking,
1315
- ur as InformationTooltip,
1313
+ dr as InformationTooltip,
1316
1314
  Br as InsightNotificationTypes,
1317
- Rt as IterationItemTypes,
1315
+ $t as IterationItemTypes,
1318
1316
  We as LOADING_STATUS,
1319
- Ur as LineChart,
1317
+ Rr as LineChart,
1320
1318
  wr as ListItemAction,
1321
1319
  Cr as ListItemRow,
1322
1320
  gs as ListItemWrapper,
1323
1321
  Qs as Loader,
1324
1322
  Ye as LocalizedCopyApi,
1325
1323
  pr as MetaType,
1326
- Us as MfaStatuses,
1324
+ Rs as MfaStatuses,
1327
1325
  fs as MicroWidgetContainer,
1328
1326
  bs as MiniWidgetContainer,
1329
1327
  je as MultiSegmentDonut,
1330
- ks as NonConnectedStatuses,
1331
- ds as NotificationApi,
1328
+ Us as NonConnectedStatuses,
1329
+ ls as NotificationApi,
1332
1330
  Ir as NotificationTypes,
1333
- Pr as ORDINAL_DATE_FORMAT,
1331
+ Hr as ORDINAL_DATE_FORMAT,
1334
1332
  qr as ORDINAL_MONTH_DAY_YEAR_FORMAT,
1335
1333
  Vr as PAYMENT_ACCOUNT_TYPES,
1336
1334
  ra as PaymentCategories,
1337
- $t as PlanTypes,
1338
- Ls as ProcessingStatuses,
1339
- Os as PropertyType,
1340
- Gs as PropertyTypeName,
1335
+ Pt as PlanTypes,
1336
+ ks as ProcessingStatuses,
1337
+ Ls as PropertyType,
1338
+ Os as PropertyTypeName,
1341
1339
  qe as RECURRENCE_COPY,
1342
1340
  or as RecurrenceStatus,
1343
1341
  nr as RecurrenceType,
@@ -1354,8 +1352,8 @@ export {
1354
1352
  Yr as SingleSegmentDonut,
1355
1353
  ha as Sizes,
1356
1354
  Dr as StackedLineChart,
1357
- Lr as StatusBar,
1358
- Hs as StatusName,
1355
+ kr as StatusBar,
1356
+ Gs as StatusName,
1359
1357
  ga as TOUCH_TARGET,
1360
1358
  Js as TabContentContainer,
1361
1359
  Nr as ToggleButtonListItem,
@@ -1363,7 +1361,7 @@ export {
1363
1361
  mr as TrackType,
1364
1362
  ps as TransactionStatus,
1365
1363
  rt as TransactionType,
1366
- $ as UserApi,
1364
+ P as UserApi,
1367
1365
  ce as UserStore,
1368
1366
  Vt as UserVerification,
1369
1367
  q as WidgetApi,
@@ -1371,22 +1369,22 @@ export {
1371
1369
  ya as WidgetContainerContext,
1372
1370
  fa as WidgetContainerProvider,
1373
1371
  es as analyticsSession,
1374
- eo as buildDynamicCopy,
1375
- so as buildPluralCopy,
1372
+ to as buildDynamicCopy,
1373
+ eo as buildPluralCopy,
1376
1374
  na as formatCurrency,
1377
1375
  Wr as formatDate,
1378
1376
  ia as formatOrdinal,
1379
1377
  ca as formatPercentage,
1380
- Ja as fromTimestampToMonthYear,
1381
- za as getCategory,
1382
- Xa as getCategoryTotalsByParent,
1378
+ Za as fromTimestampToMonthYear,
1379
+ Ya as getCategory,
1380
+ za as getCategoryTotalsByParent,
1383
1381
  Qe as getClientTheme,
1384
- da as getCurrencyCodes,
1385
- Ka as getDetailedCategory,
1386
- ja as getDetailedSubCategory,
1387
- ro as getLocale,
1388
- Va as isIncome,
1389
- ua as isValidNumber,
1382
+ la as getCurrencyCodes,
1383
+ Xa as getDetailedCategory,
1384
+ Ka as getDetailedSubCategory,
1385
+ so as getLocale,
1386
+ ja as isIncome,
1387
+ da as isValidNumber,
1390
1388
  Sa as useAccountStore,
1391
1389
  ba as useAppConfig,
1392
1390
  wa as useBudgetsStore,
@@ -1395,26 +1393,25 @@ export {
1395
1393
  ss as useCombineEvents,
1396
1394
  rs as useCombinePageviews,
1397
1395
  Da as useDebtStore,
1398
- va as useError,
1399
- Ea as useEvent,
1396
+ va as useEvent,
1400
1397
  Aa as useFinstrongStore,
1401
- Ta as useGlobalCopyStore,
1402
- Ba as useGlobalStore,
1403
- Ia as useGlobalUiStore,
1404
- Na as useGoalStore,
1405
- Fa as useHelpStore,
1406
- Ma as useHoldingStore,
1398
+ Ea as useGlobalCopyStore,
1399
+ Ta as useGlobalStore,
1400
+ Ba as useGlobalUiStore,
1401
+ Ia as useGoalStore,
1402
+ Na as useHelpStore,
1403
+ Fa as useHoldingStore,
1407
1404
  vr as useInsightsEnabled,
1408
- $a as useMerchantStore,
1409
- Ra as useNetWorthStore,
1410
- Ua as useNotificationStore,
1411
- ka as usePageView,
1405
+ Ma as useMerchantStore,
1406
+ Pa as useNetWorthStore,
1407
+ $a as useNotificationStore,
1408
+ Ra as usePageView,
1412
1409
  Xe as usePrevious,
1413
- La as useRecurringTransactionsStore,
1414
- Qa as useScreenSize,
1415
- Oa as useSettingsStore,
1416
- Ga as useTransactionStore,
1417
- Ha as useTrendsStore,
1418
- Pa as useUserStore,
1419
- qa as useWidgetContainerProvider
1410
+ Ua as useRecurringTransactionsStore,
1411
+ Wa as useScreenSize,
1412
+ ka as useSettingsStore,
1413
+ La as useTransactionStore,
1414
+ Oa as useTrendsStore,
1415
+ Ga as useUserStore,
1416
+ Ha as useWidgetContainerProvider
1420
1417
  };