@mx-cartographer/experiences 9.1.4-alpha.al6 → 9.1.4

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 (110) hide show
  1. package/CHANGELOG.md +2 -1
  2. package/dist/{AccountDetailsDrawer-Dae8eUXt.mjs → AccountDetailsDrawer-Cq4kiiKD.mjs} +10 -10
  3. package/dist/{AccountDetailsDrawer-Dae8eUXt.mjs.map → AccountDetailsDrawer-Cq4kiiKD.mjs.map} +1 -1
  4. package/dist/{AccountDetailsHeader-D_UjMD99.mjs → AccountDetailsHeader-BliEZhz7.mjs} +4 -4
  5. package/dist/{AccountDetailsHeader-D_UjMD99.mjs.map → AccountDetailsHeader-BliEZhz7.mjs.map} +1 -1
  6. package/dist/{Analytics-fWQ36-fb.mjs → Analytics-CkYXKvco.mjs} +2 -2
  7. package/dist/{Analytics-fWQ36-fb.mjs.map → Analytics-CkYXKvco.mjs.map} +1 -1
  8. package/dist/{CategorySelectorDrawer-k8AZYC8I.mjs → CategorySelectorDrawer-NJsFsKP1.mjs} +2 -2
  9. package/dist/{CategorySelectorDrawer-k8AZYC8I.mjs.map → CategorySelectorDrawer-NJsFsKP1.mjs.map} +1 -1
  10. package/dist/{Connect-tID_S_5e.mjs → Connect-BH0Pt6zc.mjs} +2 -2
  11. package/dist/{Connect-tID_S_5e.mjs.map → Connect-BH0Pt6zc.mjs.map} +1 -1
  12. package/dist/{ConnectCard-DcM6tUOX.mjs → ConnectCard-D7uxoH5Y.mjs} +2 -2
  13. package/dist/{ConnectCard-DcM6tUOX.mjs.map → ConnectCard-D7uxoH5Y.mjs.map} +1 -1
  14. package/dist/{ConnectDrawer-BQy4YYuc.mjs → ConnectDrawer-CW4LA3H3.mjs} +3 -3
  15. package/dist/{ConnectDrawer-BQy4YYuc.mjs.map → ConnectDrawer-CW4LA3H3.mjs.map} +1 -1
  16. package/dist/{ConnectionsDrawer-C73ASLMj.mjs → ConnectionsDrawer-CZU9ku-k.mjs} +3 -3
  17. package/dist/{ConnectionsDrawer-C73ASLMj.mjs.map → ConnectionsDrawer-CZU9ku-k.mjs.map} +1 -1
  18. package/dist/{CurrencyInput-CABYmqBh.mjs → CurrencyInput-DaGEQaLW.mjs} +2 -2
  19. package/dist/{CurrencyInput-CABYmqBh.mjs.map → CurrencyInput-DaGEQaLW.mjs.map} +1 -1
  20. package/dist/{EmbeddedCard-BwfkCsUN.mjs → EmbeddedCard-DCOQnTz-.mjs} +3 -3
  21. package/dist/{EmbeddedCard-BwfkCsUN.mjs.map → EmbeddedCard-DCOQnTz-.mjs.map} +1 -1
  22. package/dist/{Error-BFJ3BnfS.mjs → Error-Dtw6yxkf.mjs} +2 -2
  23. package/dist/{Error-BFJ3BnfS.mjs.map → Error-Dtw6yxkf.mjs.map} +1 -1
  24. package/dist/ErrorBoundary-CsdOcnJ9.mjs +24 -0
  25. package/dist/ErrorBoundary-CsdOcnJ9.mjs.map +1 -0
  26. package/dist/{ExportCsvAction-B1257a3M.mjs → ExportCsvAction-C-IisDcv.mjs} +3 -3
  27. package/dist/{ExportCsvAction-B1257a3M.mjs.map → ExportCsvAction-C-IisDcv.mjs.map} +1 -1
  28. package/dist/{GlobalAccountFilter-DEEc3Bc5.mjs → GlobalAccountFilter-BhzR5Vb1.mjs} +2 -2
  29. package/dist/{GlobalAccountFilter-DEEc3Bc5.mjs.map → GlobalAccountFilter-BhzR5Vb1.mjs.map} +1 -1
  30. package/dist/{GlobalCopyApi-DoJLovk7.mjs → GlobalCopyApi-wcnDUzMV.mjs} +56 -54
  31. package/dist/GlobalCopyApi-wcnDUzMV.mjs.map +1 -0
  32. package/dist/{Help-C3rQ0Cyu.mjs → Help-zVZdcmlk.mjs} +3 -3
  33. package/dist/{Help-C3rQ0Cyu.mjs.map → Help-zVZdcmlk.mjs.map} +1 -1
  34. package/dist/{LineChart-BxEIZHht.mjs → LineChart-CUfiH86G.mjs} +2 -2
  35. package/dist/{LineChart-BxEIZHht.mjs.map → LineChart-CUfiH86G.mjs.map} +1 -1
  36. package/dist/{ListItemAction-GDU5z4BN.mjs → ListItemAction-BqUCLj_w.mjs} +2 -2
  37. package/dist/{ListItemAction-GDU5z4BN.mjs.map → ListItemAction-BqUCLj_w.mjs.map} +1 -1
  38. package/dist/{ListItemWrapper-D6b-6m4t.mjs → ListItemWrapper-DRse79Iu.mjs} +2 -2
  39. package/dist/{ListItemWrapper-D6b-6m4t.mjs.map → ListItemWrapper-DRse79Iu.mjs.map} +1 -1
  40. package/dist/{ManageIncome-BJWVPAly.mjs → ManageIncome-B_8i71mE.mjs} +32 -32
  41. package/dist/{ManageIncome-BJWVPAly.mjs.map → ManageIncome-B_8i71mE.mjs.map} +1 -1
  42. package/dist/{MicroWidgetContainer-IUZQlml1.mjs → MicroWidgetContainer-B2NnKBgW.mjs} +2 -2
  43. package/dist/{MicroWidgetContainer-IUZQlml1.mjs.map → MicroWidgetContainer-B2NnKBgW.mjs.map} +1 -1
  44. package/dist/{MiniWidgetContainer-CIswJui8.mjs → MiniWidgetContainer-Bmv_WeUd.mjs} +2 -2
  45. package/dist/{MiniWidgetContainer-CIswJui8.mjs.map → MiniWidgetContainer-Bmv_WeUd.mjs.map} +1 -1
  46. package/dist/{NotificationSettings-DltXMrnb.mjs → NotificationSettings-CW7okUrk.mjs} +33 -33
  47. package/dist/{NotificationSettings-DltXMrnb.mjs.map → NotificationSettings-CW7okUrk.mjs.map} +1 -1
  48. package/dist/{OriginalBalanceAction-KuJSsZCA.mjs → OriginalBalanceAction-YrvxBYAl.mjs} +4 -4
  49. package/dist/{OriginalBalanceAction-KuJSsZCA.mjs.map → OriginalBalanceAction-YrvxBYAl.mjs.map} +1 -1
  50. package/dist/{RecurringSettings-D2Aaqz7d.mjs → RecurringSettings-hs0YUp83.mjs} +3 -3
  51. package/dist/{RecurringSettings-D2Aaqz7d.mjs.map → RecurringSettings-hs0YUp83.mjs.map} +1 -1
  52. package/dist/{SpendingLegend-C_dMdqbe.mjs → SpendingLegend-CxvNOg3c.mjs} +2 -2
  53. package/dist/{SpendingLegend-C_dMdqbe.mjs.map → SpendingLegend-CxvNOg3c.mjs.map} +1 -1
  54. package/dist/{TransactionDetails-CDZNsKv7.mjs → TransactionDetails-DT-MQqOB.mjs} +5 -5
  55. package/dist/{TransactionDetails-CDZNsKv7.mjs.map → TransactionDetails-DT-MQqOB.mjs.map} +1 -1
  56. package/dist/{UserStore-B__9hQOS.mjs → UserStore-_QQpkbw9.mjs} +67 -69
  57. package/dist/UserStore-_QQpkbw9.mjs.map +1 -0
  58. package/dist/{ViewMoreMicroCard-CxGhzbRP.mjs → ViewMoreMicroCard-fnwE0hqd.mjs} +4 -4
  59. package/dist/{ViewMoreMicroCard-CxGhzbRP.mjs.map → ViewMoreMicroCard-fnwE0hqd.mjs.map} +1 -1
  60. package/dist/{WidgetContainer-5O6N88mr.mjs → WidgetContainer-CjdCY4sj.mjs} +3 -3
  61. package/dist/{WidgetContainer-5O6N88mr.mjs.map → WidgetContainer-CjdCY4sj.mjs.map} +1 -1
  62. package/dist/accounts/index.es.js +11 -11
  63. package/dist/analytics/index.es.js +2 -2
  64. package/dist/budgets/index.es.js +10 -10
  65. package/dist/cashflow/index.es.js +70 -70
  66. package/dist/categories/index.es.js +1 -1
  67. package/dist/common/components/ErrorBoundary.d.ts +0 -2
  68. package/dist/common/components/index.d.ts +0 -1
  69. package/dist/common/context/GlobalDataProvider.d.ts +1 -2
  70. package/dist/common/context/hooks.d.ts +0 -3
  71. package/dist/common/context/index.d.ts +1 -1
  72. package/dist/common/index.es.js +219 -275
  73. package/dist/common/index.es.js.map +1 -1
  74. package/dist/core/index.es.js +3 -3
  75. package/dist/core/stores/GlobalStore.d.ts +2 -4
  76. package/dist/core/types/Handlers.d.ts +0 -1
  77. package/dist/core/types/index.d.ts +1 -1
  78. package/dist/dashboard/index.es.js +4 -4
  79. package/dist/debts/index.es.js +8 -8
  80. package/dist/finstrong/index.es.js +12 -12
  81. package/dist/goals/index.es.js +9 -9
  82. package/dist/help/index.es.js +4 -4
  83. package/dist/hooks-97sNJ_lf.mjs +78 -0
  84. package/dist/hooks-97sNJ_lf.mjs.map +1 -0
  85. package/dist/insights/index.es.js +4 -4
  86. package/dist/investments/index.es.js +4 -4
  87. package/dist/merchants/index.es.js +1 -1
  88. package/dist/microinsights/index.es.js +1 -1
  89. package/dist/networth/index.es.js +6 -6
  90. package/dist/notifications/index.es.js +8 -8
  91. package/dist/recurringtransactions/index.es.js +38 -38
  92. package/dist/settings/index.es.js +27 -27
  93. package/dist/spending/index.es.js +33 -33
  94. package/dist/spending/index.es.js.map +1 -1
  95. package/dist/transactions/index.es.js +11 -11
  96. package/dist/trends/index.es.js +12 -12
  97. package/dist/{useAccountDisplayName-DHXXCFYZ.mjs → useAccountDisplayName-BsiXA0qf.mjs} +2 -2
  98. package/dist/{useAccountDisplayName-DHXXCFYZ.mjs.map → useAccountDisplayName-BsiXA0qf.mjs.map} +1 -1
  99. package/dist/{useInsightsEnabled-B_UpjpE6.mjs → useInsightsEnabled-D5Sdm0TJ.mjs} +2 -2
  100. package/dist/{useInsightsEnabled-B_UpjpE6.mjs.map → useInsightsEnabled-D5Sdm0TJ.mjs.map} +1 -1
  101. package/dist/{useWidgetLoadTimer-C0Mr0eRf.mjs → useWidgetLoadTimer-B0tB-yzL.mjs} +2 -2
  102. package/dist/{useWidgetLoadTimer-C0Mr0eRf.mjs.map → useWidgetLoadTimer-B0tB-yzL.mjs.map} +1 -1
  103. package/package.json +1 -1
  104. package/dist/ErrorBoundary-C7BlHx04.mjs +0 -27
  105. package/dist/ErrorBoundary-C7BlHx04.mjs.map +0 -1
  106. package/dist/GlobalCopyApi-DoJLovk7.mjs.map +0 -1
  107. package/dist/UserStore-B__9hQOS.mjs.map +0 -1
  108. package/dist/common/components/ErrorTestButtons.d.ts +0 -7
  109. package/dist/hooks-DWOrMnfZ.mjs +0 -83
  110. package/dist/hooks-DWOrMnfZ.mjs.map +0 -1
@@ -1,109 +1,108 @@
1
- import { l as Q } from "../UserStore-B__9hQOS.mjs";
2
- import { b as K, a as Z } from "../Localization-DnoVyBNK.mjs";
3
- import { f as X, b as rr, a as er, c as tr, g as or, d as ar } from "../NumberFormatting--XMeeBfr.mjs";
4
- import { C as nr, a as ir, b as lr } from "../CurrencyDialog-DumQCTPO.mjs";
5
- import { C as cr } from "../CurrencyInput-CABYmqBh.mjs";
6
- import { D as pr, S as mr } from "../Select-CSpkK5cR.mjs";
7
- import { D as Er, W as fr, u as yr } from "../WidgetContainer-5O6N88mr.mjs";
8
- import { D as Sr } from "../Dialog-Bvd2n8hz.mjs";
9
- import { D as Cr } from "../Donut-SzzfZDHF.mjs";
10
- import { D as _r } from "../Drawer-DsnW2o0v.mjs";
11
- import { E as Ur } from "../ErrorBoundary-C7BlHx04.mjs";
12
- import { jsxs as y, jsx as n } from "react/jsx-runtime";
13
- import { Stack as v, Typography as _, Button as c, alpha as k, darken as h, lighten as S } from "@mui/material";
14
- import { e as U } from "../hooks-DWOrMnfZ.mjs";
15
- import { G as wr, m as Dr, n as Or, W as Tr, c as Pr, i as Ar, o as Ir, p as Mr, q as Nr, l as Rr, r as Lr, s as Br, f as Wr, t as Fr, u as qr, a as Gr, k as jr, v as Yr, w as $r, x as Hr, b as zr, y as Qr, z as Vr, A as Kr, h as Zr, B as Jr, g as Xr, C as re, D as ee, E as te } from "../hooks-DWOrMnfZ.mjs";
16
- import { I as ae } from "../IconBacking-DgT8DCeh.mjs";
17
- import { I as ne } from "../InformationTooltip-4su8bn1e.mjs";
18
- import { L as le } from "../Loader-CxeBwuPG.mjs";
19
- import { M as ce } from "../MicroWidgetContainer-IUZQlml1.mjs";
20
- import { M as pe } from "../MiniWidgetContainer-CIswJui8.mjs";
21
- import { css as b } from "@mxenabled/cssinjs";
22
- import { D as w, a as D } from "../SingleSegmentDonut-7Uy6VEld.mjs";
23
- import { S as ge } from "../SingleSegmentDonut-7Uy6VEld.mjs";
24
- import { R as fe } from "../ResponsiveButton-CC9F_Ezk.mjs";
25
- import { S as he } from "../SelectionBox-B4xELRgp.mjs";
26
- import { S as xe } from "../StatusBar-CPfSXe80.mjs";
27
- import { I as ve, P as _e, S as ke, T as Ue } from "../TabContentContainer-B0eYJP5p.mjs";
28
- import { A as we } from "../Analytics-D-jdcL72.mjs";
29
- import { C as Oe } from "../ConnectCard-DcM6tUOX.mjs";
30
- import { C as Pe } from "../ConnectDrawer-BQy4YYuc.mjs";
31
- import { C as Ie } from "../CurrencyText-CCbE6MmF.mjs";
32
- import { E as Ne } from "../EmptyState-CJUDc3kD.mjs";
33
- import { E as Le } from "../Error-BFJ3BnfS.mjs";
34
- import { G as We } from "../GlobalAccountFilter-DEEc3Bc5.mjs";
35
- import { L as qe } from "../ListItemAction-GDU5z4BN.mjs";
36
- import { L as je } from "../ListItemRow-kH1rn8Xu.mjs";
37
- import { L as $e } from "../ListItemWrapper-D6b-6m4t.mjs";
38
- import { S as ze } from "../SearchBox-Cpgu_gdO.mjs";
39
- import { S as Ve, T as Ke } from "../Sizes-DISGrlUg.mjs";
40
- import { T as Je, a as Xe } from "../ToggleListItem-Dl1lXNwj.mjs";
41
- import { a as et, u as tt, b as ot } from "../Analytics-fWQ36-fb.mjs";
42
- import { u as st } from "../useAccountDisplayName-DHXXCFYZ.mjs";
43
- import { u as it } from "../useInsightsEnabled-B_UpjpE6.mjs";
44
- import { useRef as O, useEffect as T } from "react";
45
- import { u as ut } from "../useScreenSize-mWpmnh5w.mjs";
46
- import { u as dt } from "../useWidgetLoadTimer-C0Mr0eRf.mjs";
47
- var u = /* @__PURE__ */ ((r) => (r[r.Unknown = 0] = "Unknown", r[r.EveryWeek = 1] = "EveryWeek", r[r.EveryOtherWeek = 2] = "EveryOtherWeek", r[r.EveryMonth = 3] = "EveryMonth", r[r.EveryOtherMonth = 4] = "EveryOtherMonth", r[r.EveryQuarter = 5] = "EveryQuarter", r[r.EveryOtherQuarter = 6] = "EveryOtherQuarter", r[r.EveryYear = 7] = "EveryYear", r))(u || {});
48
- const W = (r) => {
49
- const t = O(null);
50
- return T(() => {
51
- t.current = r;
52
- }, [r]), t.current;
53
- }, F = [
54
- { id: u.Unknown, copy: "frequency_unknown" },
55
- { id: u.EveryWeek, copy: "frequency_every_week" },
56
- { id: u.EveryOtherWeek, copy: "frequency_every_other_week" },
57
- { id: u.EveryMonth, copy: "frequency_every_month" },
58
- { id: u.EveryOtherMonth, copy: "frequency_every_other_month" },
59
- { id: u.EveryQuarter, copy: "frequency_every_quarter" },
60
- { id: u.EveryOtherQuarter, copy: "frequency_every_other_quarter" },
61
- { id: u.EveryYear, copy: "frequency_every_year" }
62
- ], q = {
1
+ import { l as Y } from "../UserStore-_QQpkbw9.mjs";
2
+ import { b as $, a as H } from "../Localization-DnoVyBNK.mjs";
3
+ import { f as j, b as V, a as K, c as Z, g as J, d as X } from "../NumberFormatting--XMeeBfr.mjs";
4
+ import { C as rr, a as er, b as or } from "../CurrencyDialog-DumQCTPO.mjs";
5
+ import { C as ar } from "../CurrencyInput-DaGEQaLW.mjs";
6
+ import { D as nr, S as ir } from "../Select-CSpkK5cR.mjs";
7
+ import { D as lr, W as mr, u as dr } from "../WidgetContainer-CjdCY4sj.mjs";
8
+ import { D as fr } from "../Dialog-Bvd2n8hz.mjs";
9
+ import { D as yr } from "../Donut-SzzfZDHF.mjs";
10
+ import { D as xr } from "../Drawer-DsnW2o0v.mjs";
11
+ import { E as hr } from "../ErrorBoundary-CsdOcnJ9.mjs";
12
+ import { I as Cr } from "../IconBacking-DgT8DCeh.mjs";
13
+ import { I as vr } from "../InformationTooltip-4su8bn1e.mjs";
14
+ import { L as br } from "../Loader-CxeBwuPG.mjs";
15
+ import { M as Dr } from "../MicroWidgetContainer-B2NnKBgW.mjs";
16
+ import { M as Ir } from "../MiniWidgetContainer-Bmv_WeUd.mjs";
17
+ import { jsxs as g, jsx as y } from "react/jsx-runtime";
18
+ import { css as C } from "@mxenabled/cssinjs";
19
+ import { D as _, a as v } from "../SingleSegmentDonut-7Uy6VEld.mjs";
20
+ import { S as Mr } from "../SingleSegmentDonut-7Uy6VEld.mjs";
21
+ import { R as wr } from "../ResponsiveButton-CC9F_Ezk.mjs";
22
+ import { S as Lr } from "../SelectionBox-B4xELRgp.mjs";
23
+ import { S as Ur } from "../StatusBar-CPfSXe80.mjs";
24
+ import { I as Br, P as Rr, S as qr, T as Yr } from "../TabContentContainer-B0eYJP5p.mjs";
25
+ import { A as $r } from "../Analytics-D-jdcL72.mjs";
26
+ import { C as Qr } from "../ConnectCard-D7uxoH5Y.mjs";
27
+ import { C as Vr } from "../ConnectDrawer-CW4LA3H3.mjs";
28
+ import { C as Zr } from "../CurrencyText-CCbE6MmF.mjs";
29
+ import { E as Xr } from "../EmptyState-CJUDc3kD.mjs";
30
+ import { E as re } from "../Error-Dtw6yxkf.mjs";
31
+ import { G as oe } from "../GlobalAccountFilter-BhzR5Vb1.mjs";
32
+ import { G as ae, m as se, n as ne, W as ie, c as ue, i as le, o as me, p as de, l as ce, q as fe, r as pe, f as ye, s as ge, u as xe, e as Ee, a as he, k as Se, t as Ce, v as _e, w as ve, b as ke, x as be, y as Oe, z as De, h as Te, A as Ie, g as Ae, B as Me, C as Pe, D as we } from "../hooks-97sNJ_lf.mjs";
33
+ import { L as Le } from "../ListItemAction-BqUCLj_w.mjs";
34
+ import { L as Ue } from "../ListItemRow-kH1rn8Xu.mjs";
35
+ import { L as Be } from "../ListItemWrapper-DRse79Iu.mjs";
36
+ import { S as qe } from "../SearchBox-Cpgu_gdO.mjs";
37
+ import { S as Fe, T as $e } from "../Sizes-DISGrlUg.mjs";
38
+ import { T as Qe, a as je } from "../ToggleListItem-Dl1lXNwj.mjs";
39
+ import { a as Ke, u as Ze, b as Je } from "../Analytics-CkYXKvco.mjs";
40
+ import { alpha as k, darken as x, lighten as E } from "@mui/material";
41
+ import { u as ze } from "../useAccountDisplayName-BsiXA0qf.mjs";
42
+ import { u as eo } from "../useInsightsEnabled-D5Sdm0TJ.mjs";
43
+ import { useRef as b, useEffect as O } from "react";
44
+ import { u as to } from "../useScreenSize-mWpmnh5w.mjs";
45
+ import { u as so } from "../useWidgetLoadTimer-B0tB-yzL.mjs";
46
+ var i = /* @__PURE__ */ ((r) => (r[r.Unknown = 0] = "Unknown", r[r.EveryWeek = 1] = "EveryWeek", r[r.EveryOtherWeek = 2] = "EveryOtherWeek", r[r.EveryMonth = 3] = "EveryMonth", r[r.EveryOtherMonth = 4] = "EveryOtherMonth", r[r.EveryQuarter = 5] = "EveryQuarter", r[r.EveryOtherQuarter = 6] = "EveryOtherQuarter", r[r.EveryYear = 7] = "EveryYear", r))(i || {});
47
+ const N = (r) => {
48
+ const o = b(null);
49
+ return O(() => {
50
+ o.current = r;
51
+ }, [r]), o.current;
52
+ }, L = [
53
+ { id: i.Unknown, copy: "frequency_unknown" },
54
+ { id: i.EveryWeek, copy: "frequency_every_week" },
55
+ { id: i.EveryOtherWeek, copy: "frequency_every_other_week" },
56
+ { id: i.EveryMonth, copy: "frequency_every_month" },
57
+ { id: i.EveryOtherMonth, copy: "frequency_every_other_month" },
58
+ { id: i.EveryQuarter, copy: "frequency_every_quarter" },
59
+ { id: i.EveryOtherQuarter, copy: "frequency_every_other_quarter" },
60
+ { id: i.EveryYear, copy: "frequency_every_year" }
61
+ ], W = {
63
62
  ERROR: "ERROR",
64
63
  LOADING: "LOADING",
65
64
  SUCCESS: "SUCCESS"
66
- }, G = ({
65
+ }, U = ({
67
66
  hasGap: r = !1,
68
- segments: t,
69
- size: i = w,
70
- strokeWidth: l = D,
71
- children: d
67
+ segments: o,
68
+ size: n = _,
69
+ strokeWidth: u = v,
70
+ children: m
72
71
  }) => {
73
- const m = P(i), o = (i - l) / 2, a = i / 2;
74
- let g = -90 - (r ? 1 : 0), e = 0;
75
- return /* @__PURE__ */ y("div", { className: `mx-cmn-multi-segment-donut ${m}`, children: [
76
- /* @__PURE__ */ y("svg", { height: i, width: i, children: [
77
- /* @__PURE__ */ n(
72
+ const d = D(n), t = (n - u) / 2, a = n / 2;
73
+ let c = -90 - (r ? 1 : 0), s = 0;
74
+ return /* @__PURE__ */ g("div", { className: `mx-cmn-multi-segment-donut ${d}`, children: [
75
+ /* @__PURE__ */ g("svg", { height: n, width: n, children: [
76
+ /* @__PURE__ */ y(
78
77
  "circle",
79
78
  {
80
79
  cx: a,
81
80
  cy: a,
82
81
  fill: "none",
83
- r: o,
82
+ r: t,
84
83
  stroke: "#E4E8EE",
85
- strokeWidth: l
84
+ strokeWidth: u
86
85
  }
87
86
  ),
88
- t.map((p, E) => (g += 360 * e + (r ? 1 : 0), e = (p.percent - (r ? 0.3 : 0)) / 100, /* @__PURE__ */ n(
87
+ o.map((l, f) => (c += 360 * s + (r ? 1 : 0), s = (l.percent - (r ? 0.3 : 0)) / 100, /* @__PURE__ */ y(
89
88
  "circle",
90
89
  {
91
90
  cx: a,
92
91
  cy: a,
93
92
  fill: "none",
94
- r: o,
95
- stroke: p.color,
96
- strokeDasharray: 2 * Math.PI * o,
97
- strokeDashoffset: 2 * Math.PI * o * (1 - e),
98
- strokeWidth: l,
99
- transform: `rotate(${g}, ${a}, ${a})`
93
+ r: t,
94
+ stroke: l.color,
95
+ strokeDasharray: 2 * Math.PI * t,
96
+ strokeDashoffset: 2 * Math.PI * t * (1 - s),
97
+ strokeWidth: u,
98
+ transform: `rotate(${c}, ${a}, ${a})`
100
99
  },
101
- E
100
+ f
102
101
  )))
103
102
  ] }),
104
- /* @__PURE__ */ n("div", { className: "mx-cmn-multi-segment-donut-children", children: d })
103
+ /* @__PURE__ */ y("div", { className: "mx-cmn-multi-segment-donut-children", children: m })
105
104
  ] });
106
- }, P = (r) => b({
105
+ }, D = (r) => C({
107
106
  height: r,
108
107
  marginTop: "-8px",
109
108
  position: "relative",
@@ -115,60 +114,7 @@ const W = (r) => {
115
114
  top: "50%",
116
115
  transform: "translate(-50%, -50%)"
117
116
  }
118
- }), j = () => {
119
- const r = U();
120
- return /* @__PURE__ */ y(v, { spacing: 1, sx: { p: 2, border: "2px dashed red", borderRadius: 2, m: 2 }, children: [
121
- /* @__PURE__ */ n(_, { variant: "subtitle2", color: "error", children: "⚠️ Error Test Panel — REMOVE BEFORE PROD" }),
122
- /* @__PURE__ */ n(c, { variant: "outlined", color: "warning", size: "small", onClick: async () => {
123
- const e = r.userStore.api.getUserFeatures;
124
- r.userStore.api.getUserFeatures = async () => {
125
- throw new Error("ApiGetRequestError: 500 Internal Server Error");
126
- }, await r.userStore.loadUserFeatures(), r.userStore.api.getUserFeatures = e;
127
- }, children: "1. UserStore.loadUserFeatures failure" }),
128
- /* @__PURE__ */ n(c, { variant: "outlined", color: "warning", size: "small", onClick: async () => {
129
- const e = r.userStore.api.updateUser;
130
- r.userStore.api.updateUser = async () => {
131
- throw new Error("ApiPutRequestError: 422 Unprocessable Entity");
132
- }, await r.userStore.updateUser({}), r.userStore.api.updateUser = e;
133
- }, children: "2. UserStore.updateUser failure" }),
134
- /* @__PURE__ */ n(c, { variant: "outlined", color: "warning", size: "small", onClick: async () => {
135
- const e = r.userStore.api.updateUserProfile;
136
- r.userStore.api.updateUserProfile = async () => {
137
- throw new Error("ApiPutRequestError: 500 Internal Server Error");
138
- }, await r.userStore.updateUserProfile({ guid: "test" }), r.userStore.api.updateUserProfile = e;
139
- }, children: "3. UserStore.updateUserProfile failure" }),
140
- /* @__PURE__ */ n(c, { variant: "outlined", color: "warning", size: "small", onClick: () => {
141
- r.captureException(
142
- new Error("[ErrorTest] Direct captureException call"),
143
- { store: "ErrorTestButtons" }
144
- );
145
- }, children: "4. Direct captureException" }),
146
- /* @__PURE__ */ n(c, { variant: "outlined", color: "error", size: "small", onClick: () => {
147
- try {
148
- null.nonExistentMethod();
149
- } catch (e) {
150
- r.captureException(e, { store: "ErrorTestButtons" });
151
- }
152
- }, children: "5. TypeError (null reference)" }),
153
- /* @__PURE__ */ n(c, { variant: "outlined", color: "warning", size: "small", onClick: () => {
154
- Promise.reject(new Error("[ErrorTest] Unhandled promise rejection"));
155
- }, children: "6. Unhandled promise rejection" }),
156
- /* @__PURE__ */ n(c, { variant: "outlined", color: "warning", size: "small", onClick: async () => {
157
- try {
158
- await fetch("https://localhost:1/nonexistent");
159
- } catch (e) {
160
- r.captureException(e, { store: "ErrorTestButtons" });
161
- }
162
- }, children: "7. Network error (failed fetch)" }),
163
- /* @__PURE__ */ n(c, { variant: "outlined", color: "error", size: "small", onClick: () => {
164
- try {
165
- document.querySelector("");
166
- } catch (e) {
167
- r.captureException(e, { store: "ErrorTestButtons" });
168
- }
169
- }, children: "8. DOMException" })
170
- ] });
171
- }, A = [
117
+ }), T = [
172
118
  "fontFamily",
173
119
  "h1",
174
120
  "h2",
@@ -180,189 +126,187 @@ const W = (r) => {
180
126
  "subtitle1",
181
127
  "subtitle2",
182
128
  "tiny"
183
- ], x = [
129
+ ], h = [
184
130
  { key: "primary", light: "primary_color", dark: "primary_color_dark" },
185
131
  { key: "secondary", light: "neutral_color", dark: "neutral_color_dark" },
186
132
  { key: "error", light: "error_color", dark: "error_color_dark" },
187
133
  { key: "warning", light: "warning_color", dark: "warning_color_dark" },
188
134
  { key: "info", light: "info_color", dark: "info_color_dark" },
189
135
  { key: "success", light: "success_color", dark: "success_color_dark" }
190
- ], Y = (r, t) => {
191
- const i = t === "dark", l = {};
192
- for (const { key: d, light: m, dark: o } of x) {
193
- const a = r?.[i ? o : m];
194
- a && (l[d] = a);
136
+ ], G = (r, o) => {
137
+ const n = o === "dark", u = {};
138
+ for (const { key: m, light: d, dark: t } of h) {
139
+ const a = r?.[n ? t : d];
140
+ a && (u[m] = a);
195
141
  }
196
- return l;
197
- }, $ = (r, t, i) => {
198
- const l = r.palette.mode === "dark", d = (i?.master?.style?.font_name || t?.system_font) ?? r.typography.fontFamily, m = (s, f) => s ? {
199
- lighter: S(s, 0.5),
200
- light: S(s, 0.25),
201
- main: s,
202
- dark: h(s, 0.25),
203
- darker: h(s, 0.5)
204
- } : f, o = Object.fromEntries(
205
- x.map(({ key: s, light: f, dark: C }) => [
206
- s,
207
- m(
208
- t?.[l ? C : f],
209
- r.palette[s]
142
+ return u;
143
+ }, B = (r, o, n) => {
144
+ const u = r.palette.mode === "dark", m = (n?.master?.style?.font_name || o?.system_font) ?? r.typography.fontFamily, d = (e, p) => e ? {
145
+ lighter: E(e, 0.5),
146
+ light: E(e, 0.25),
147
+ main: e,
148
+ dark: x(e, 0.25),
149
+ darker: x(e, 0.5)
150
+ } : p, t = Object.fromEntries(
151
+ h.map(({ key: e, light: p, dark: S }) => [
152
+ e,
153
+ d(
154
+ o?.[u ? S : p],
155
+ r.palette[e]
210
156
  )
211
157
  ])
212
158
  ), a = Object.fromEntries(
213
- A.map((s) => [
214
- s,
215
- s === "fontFamily" ? d : { fontFamily: d }
159
+ T.map((e) => [
160
+ e,
161
+ e === "fontFamily" ? m : { fontFamily: m }
216
162
  ])
217
- ), g = {
163
+ ), c = {
218
164
  MuiTabs: {
219
165
  styleOverrides: {
220
- indicator: { backgroundColor: o.primary.light }
166
+ indicator: { backgroundColor: t.primary.light }
221
167
  }
222
168
  },
223
169
  MuiPickersCalendarHeader: {
224
170
  styleOverrides: {
225
171
  switchViewButton: {
226
- color: o.primary.lighter,
227
- "&:hover": { backgroundColor: k(o.primary.light, 0.1) }
172
+ color: t.primary.lighter,
173
+ "&:hover": { backgroundColor: k(t.primary.light, 0.1) }
228
174
  }
229
175
  }
230
176
  }
231
- }, e = t?.button_corner_radius, p = t?.card_corner_radius, E = {
232
- ...g,
233
- ...e && {
177
+ }, s = o?.button_corner_radius, l = o?.card_corner_radius, f = {
178
+ ...c,
179
+ ...s && {
234
180
  MuiButton: {
235
181
  styleOverrides: {
236
- root: { borderRadius: `${e}px`, textTransform: "none" }
182
+ root: { borderRadius: `${s}px`, textTransform: "none" }
237
183
  }
238
184
  },
239
185
  MuiIconButton: {
240
186
  styleOverrides: {
241
187
  root: {
242
- borderRadius: `${e}px`,
243
- minWidth: e,
244
- minHeight: e
188
+ borderRadius: `${s}px`,
189
+ minWidth: s,
190
+ minHeight: s
245
191
  }
246
192
  }
247
193
  },
248
194
  MuiToggleButton: {
249
195
  styleOverrides: {
250
- root: { borderRadius: `${e}px`, textTransform: "none" }
196
+ root: { borderRadius: `${s}px`, textTransform: "none" }
251
197
  }
252
198
  }
253
199
  },
254
- ...p && {
200
+ ...l && {
255
201
  MuiCard: {
256
- styleOverrides: { root: { borderRadius: `${p}px` } }
202
+ styleOverrides: { root: { borderRadius: `${l}px` } }
257
203
  }
258
204
  },
259
- ...p && {
205
+ ...l && {
260
206
  MuiPaper: {
261
207
  styleOverrides: {
262
- rounded: { borderRadius: `${p}px` }
208
+ rounded: { borderRadius: `${l}px` }
263
209
  }
264
210
  }
265
211
  }
266
212
  };
267
- return { typography: a, palette: o, components: E };
213
+ return { typography: a, palette: t, components: f };
268
214
  };
269
215
  export {
270
- we as ANALYTICS_EVENTS,
271
- nr as Calendar,
272
- ir as CalendarSelectionTypes,
273
- Oe as ConnectCard,
274
- Pe as ConnectDrawer,
275
- lr as CurrencyDialog,
276
- cr as CurrencyInput,
277
- Ie as CurrencyText,
278
- w as DEFAULT_DONUT_SIZE,
279
- D as DEFAULT_STROKE_WIDTH,
280
- pr as DataRow,
281
- Er as DateRangeSelector,
282
- Sr as Dialog,
283
- Cr as Donut,
284
- _r as Drawer,
285
- Ne as EmptyState,
286
- Le as Error,
287
- Ur as ErrorBoundary,
288
- j as ErrorTestButtons,
289
- We as GlobalAccountFilter,
290
- wr as GlobalDataContext,
291
- Dr as GlobalDataProvider,
292
- Q as GlobalStore,
293
- ve as INCOME_ACCOUNT_TYPES,
294
- ae as IconBacking,
295
- ne as InformationTooltip,
296
- q as LOADING_STATUS,
297
- qe as ListItemAction,
298
- je as ListItemRow,
299
- $e as ListItemWrapper,
300
- le as Loader,
301
- ce as MicroWidgetContainer,
302
- pe as MiniWidgetContainer,
303
- G as MultiSegmentDonut,
304
- _e as PAYMENT_ACCOUNT_TYPES,
305
- F as RECURRENCE_COPY,
306
- fe as ResponsiveButton,
307
- ke as SPENDING_ACCOUNT_TYPES,
308
- ze as SearchBox,
309
- mr as Select,
310
- he as SelectionBox,
311
- ge as SingleSegmentDonut,
312
- Ve as Sizes,
313
- xe as StatusBar,
314
- Ke as TOUCH_TARGET,
315
- Ue as TabContentContainer,
316
- Je as ToggleButtonListItem,
317
- Xe as ToggleListItem,
318
- fr as WidgetContainer,
319
- Or as WidgetContainerContext,
320
- Tr as WidgetContainerProvider,
321
- et as analyticsSession,
322
- K as buildDynamicCopy,
323
- Z as buildPluralCopy,
324
- X as formatCurrency,
325
- rr as formatOrdinal,
326
- er as formatPercentage,
327
- tr as generateEqualIntervals,
328
- Y as getClientPaletteOptions,
329
- $ as getClientTheme,
330
- or as getCurrencyCodes,
331
- ar as getPluralRules,
332
- st as useAccountDisplayName,
333
- Pr as useAccountStore,
334
- Ar as useAppConfig,
335
- Ir as useBudgetsStore,
336
- Mr as useCaptureException,
337
- Nr as useCashflowStore,
338
- Rr as useCategoryStore,
339
- tt as useCombineEvents,
340
- ot as useCombinePageviews,
341
- Lr as useDebtStore,
342
- Br as useError,
343
- Wr as useEvent,
344
- Fr as useFinstrongStore,
345
- qr as useGlobalCopyStore,
346
- U as useGlobalStore,
347
- Gr as useGlobalUiStore,
348
- jr as useGoalStore,
349
- Yr as useHelpStore,
350
- $r as useHoldingStore,
351
- it as useInsightsEnabled,
352
- Hr as useLoad,
353
- zr as useMerchantStore,
354
- Qr as useNetWorthStore,
355
- Vr as useNotificationStore,
356
- Kr as usePageView,
357
- W as usePrevious,
358
- Zr as useRecurringTransactionsStore,
359
- ut as useScreenSize,
360
- Jr as useSettingsStore,
361
- Xr as useTransactionStore,
362
- re as useTrendsStore,
363
- ee as useUserStore,
364
- te as useWidgetContainerProvider,
365
- yr as useWidgetHeaderStyles,
366
- dt as useWidgetLoadTimer
216
+ $r as ANALYTICS_EVENTS,
217
+ rr as Calendar,
218
+ er as CalendarSelectionTypes,
219
+ Qr as ConnectCard,
220
+ Vr as ConnectDrawer,
221
+ or as CurrencyDialog,
222
+ ar as CurrencyInput,
223
+ Zr as CurrencyText,
224
+ _ as DEFAULT_DONUT_SIZE,
225
+ v as DEFAULT_STROKE_WIDTH,
226
+ nr as DataRow,
227
+ lr as DateRangeSelector,
228
+ fr as Dialog,
229
+ yr as Donut,
230
+ xr as Drawer,
231
+ Xr as EmptyState,
232
+ re as Error,
233
+ hr as ErrorBoundary,
234
+ oe as GlobalAccountFilter,
235
+ ae as GlobalDataContext,
236
+ se as GlobalDataProvider,
237
+ Y as GlobalStore,
238
+ Br as INCOME_ACCOUNT_TYPES,
239
+ Cr as IconBacking,
240
+ vr as InformationTooltip,
241
+ W as LOADING_STATUS,
242
+ Le as ListItemAction,
243
+ Ue as ListItemRow,
244
+ Be as ListItemWrapper,
245
+ br as Loader,
246
+ Dr as MicroWidgetContainer,
247
+ Ir as MiniWidgetContainer,
248
+ U as MultiSegmentDonut,
249
+ Rr as PAYMENT_ACCOUNT_TYPES,
250
+ L as RECURRENCE_COPY,
251
+ wr as ResponsiveButton,
252
+ qr as SPENDING_ACCOUNT_TYPES,
253
+ qe as SearchBox,
254
+ ir as Select,
255
+ Lr as SelectionBox,
256
+ Mr as SingleSegmentDonut,
257
+ Fe as Sizes,
258
+ Ur as StatusBar,
259
+ $e as TOUCH_TARGET,
260
+ Yr as TabContentContainer,
261
+ Qe as ToggleButtonListItem,
262
+ je as ToggleListItem,
263
+ mr as WidgetContainer,
264
+ ne as WidgetContainerContext,
265
+ ie as WidgetContainerProvider,
266
+ Ke as analyticsSession,
267
+ $ as buildDynamicCopy,
268
+ H as buildPluralCopy,
269
+ j as formatCurrency,
270
+ V as formatOrdinal,
271
+ K as formatPercentage,
272
+ Z as generateEqualIntervals,
273
+ G as getClientPaletteOptions,
274
+ B as getClientTheme,
275
+ J as getCurrencyCodes,
276
+ X as getPluralRules,
277
+ ze as useAccountDisplayName,
278
+ ue as useAccountStore,
279
+ le as useAppConfig,
280
+ me as useBudgetsStore,
281
+ de as useCashflowStore,
282
+ ce as useCategoryStore,
283
+ Ze as useCombineEvents,
284
+ Je as useCombinePageviews,
285
+ fe as useDebtStore,
286
+ pe as useError,
287
+ ye as useEvent,
288
+ ge as useFinstrongStore,
289
+ xe as useGlobalCopyStore,
290
+ Ee as useGlobalStore,
291
+ he as useGlobalUiStore,
292
+ Se as useGoalStore,
293
+ Ce as useHelpStore,
294
+ _e as useHoldingStore,
295
+ eo as useInsightsEnabled,
296
+ ve as useLoad,
297
+ ke as useMerchantStore,
298
+ be as useNetWorthStore,
299
+ Oe as useNotificationStore,
300
+ De as usePageView,
301
+ N as usePrevious,
302
+ Te as useRecurringTransactionsStore,
303
+ to as useScreenSize,
304
+ Ie as useSettingsStore,
305
+ Ae as useTransactionStore,
306
+ Me as useTrendsStore,
307
+ Pe as useUserStore,
308
+ we as useWidgetContainerProvider,
309
+ dr as useWidgetHeaderStyles,
310
+ so as useWidgetLoadTimer
367
311
  };
368
312
  //# sourceMappingURL=index.es.js.map