@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.
- package/CHANGELOG.md +2 -1
- package/dist/{AccountDetailsDrawer-Dae8eUXt.mjs → AccountDetailsDrawer-Cq4kiiKD.mjs} +10 -10
- package/dist/{AccountDetailsDrawer-Dae8eUXt.mjs.map → AccountDetailsDrawer-Cq4kiiKD.mjs.map} +1 -1
- package/dist/{AccountDetailsHeader-D_UjMD99.mjs → AccountDetailsHeader-BliEZhz7.mjs} +4 -4
- package/dist/{AccountDetailsHeader-D_UjMD99.mjs.map → AccountDetailsHeader-BliEZhz7.mjs.map} +1 -1
- package/dist/{Analytics-fWQ36-fb.mjs → Analytics-CkYXKvco.mjs} +2 -2
- package/dist/{Analytics-fWQ36-fb.mjs.map → Analytics-CkYXKvco.mjs.map} +1 -1
- package/dist/{CategorySelectorDrawer-k8AZYC8I.mjs → CategorySelectorDrawer-NJsFsKP1.mjs} +2 -2
- package/dist/{CategorySelectorDrawer-k8AZYC8I.mjs.map → CategorySelectorDrawer-NJsFsKP1.mjs.map} +1 -1
- package/dist/{Connect-tID_S_5e.mjs → Connect-BH0Pt6zc.mjs} +2 -2
- package/dist/{Connect-tID_S_5e.mjs.map → Connect-BH0Pt6zc.mjs.map} +1 -1
- package/dist/{ConnectCard-DcM6tUOX.mjs → ConnectCard-D7uxoH5Y.mjs} +2 -2
- package/dist/{ConnectCard-DcM6tUOX.mjs.map → ConnectCard-D7uxoH5Y.mjs.map} +1 -1
- package/dist/{ConnectDrawer-BQy4YYuc.mjs → ConnectDrawer-CW4LA3H3.mjs} +3 -3
- package/dist/{ConnectDrawer-BQy4YYuc.mjs.map → ConnectDrawer-CW4LA3H3.mjs.map} +1 -1
- package/dist/{ConnectionsDrawer-C73ASLMj.mjs → ConnectionsDrawer-CZU9ku-k.mjs} +3 -3
- package/dist/{ConnectionsDrawer-C73ASLMj.mjs.map → ConnectionsDrawer-CZU9ku-k.mjs.map} +1 -1
- package/dist/{CurrencyInput-CABYmqBh.mjs → CurrencyInput-DaGEQaLW.mjs} +2 -2
- package/dist/{CurrencyInput-CABYmqBh.mjs.map → CurrencyInput-DaGEQaLW.mjs.map} +1 -1
- package/dist/{EmbeddedCard-BwfkCsUN.mjs → EmbeddedCard-DCOQnTz-.mjs} +3 -3
- package/dist/{EmbeddedCard-BwfkCsUN.mjs.map → EmbeddedCard-DCOQnTz-.mjs.map} +1 -1
- package/dist/{Error-BFJ3BnfS.mjs → Error-Dtw6yxkf.mjs} +2 -2
- package/dist/{Error-BFJ3BnfS.mjs.map → Error-Dtw6yxkf.mjs.map} +1 -1
- package/dist/ErrorBoundary-CsdOcnJ9.mjs +24 -0
- package/dist/ErrorBoundary-CsdOcnJ9.mjs.map +1 -0
- package/dist/{ExportCsvAction-B1257a3M.mjs → ExportCsvAction-C-IisDcv.mjs} +3 -3
- package/dist/{ExportCsvAction-B1257a3M.mjs.map → ExportCsvAction-C-IisDcv.mjs.map} +1 -1
- package/dist/{GlobalAccountFilter-DEEc3Bc5.mjs → GlobalAccountFilter-BhzR5Vb1.mjs} +2 -2
- package/dist/{GlobalAccountFilter-DEEc3Bc5.mjs.map → GlobalAccountFilter-BhzR5Vb1.mjs.map} +1 -1
- package/dist/{GlobalCopyApi-DoJLovk7.mjs → GlobalCopyApi-wcnDUzMV.mjs} +56 -54
- package/dist/GlobalCopyApi-wcnDUzMV.mjs.map +1 -0
- package/dist/{Help-C3rQ0Cyu.mjs → Help-zVZdcmlk.mjs} +3 -3
- package/dist/{Help-C3rQ0Cyu.mjs.map → Help-zVZdcmlk.mjs.map} +1 -1
- package/dist/{LineChart-BxEIZHht.mjs → LineChart-CUfiH86G.mjs} +2 -2
- package/dist/{LineChart-BxEIZHht.mjs.map → LineChart-CUfiH86G.mjs.map} +1 -1
- package/dist/{ListItemAction-GDU5z4BN.mjs → ListItemAction-BqUCLj_w.mjs} +2 -2
- package/dist/{ListItemAction-GDU5z4BN.mjs.map → ListItemAction-BqUCLj_w.mjs.map} +1 -1
- package/dist/{ListItemWrapper-D6b-6m4t.mjs → ListItemWrapper-DRse79Iu.mjs} +2 -2
- package/dist/{ListItemWrapper-D6b-6m4t.mjs.map → ListItemWrapper-DRse79Iu.mjs.map} +1 -1
- package/dist/{ManageIncome-BJWVPAly.mjs → ManageIncome-B_8i71mE.mjs} +32 -32
- package/dist/{ManageIncome-BJWVPAly.mjs.map → ManageIncome-B_8i71mE.mjs.map} +1 -1
- package/dist/{MicroWidgetContainer-IUZQlml1.mjs → MicroWidgetContainer-B2NnKBgW.mjs} +2 -2
- package/dist/{MicroWidgetContainer-IUZQlml1.mjs.map → MicroWidgetContainer-B2NnKBgW.mjs.map} +1 -1
- package/dist/{MiniWidgetContainer-CIswJui8.mjs → MiniWidgetContainer-Bmv_WeUd.mjs} +2 -2
- package/dist/{MiniWidgetContainer-CIswJui8.mjs.map → MiniWidgetContainer-Bmv_WeUd.mjs.map} +1 -1
- package/dist/{NotificationSettings-DltXMrnb.mjs → NotificationSettings-CW7okUrk.mjs} +33 -33
- package/dist/{NotificationSettings-DltXMrnb.mjs.map → NotificationSettings-CW7okUrk.mjs.map} +1 -1
- package/dist/{OriginalBalanceAction-KuJSsZCA.mjs → OriginalBalanceAction-YrvxBYAl.mjs} +4 -4
- package/dist/{OriginalBalanceAction-KuJSsZCA.mjs.map → OriginalBalanceAction-YrvxBYAl.mjs.map} +1 -1
- package/dist/{RecurringSettings-D2Aaqz7d.mjs → RecurringSettings-hs0YUp83.mjs} +3 -3
- package/dist/{RecurringSettings-D2Aaqz7d.mjs.map → RecurringSettings-hs0YUp83.mjs.map} +1 -1
- package/dist/{SpendingLegend-C_dMdqbe.mjs → SpendingLegend-CxvNOg3c.mjs} +2 -2
- package/dist/{SpendingLegend-C_dMdqbe.mjs.map → SpendingLegend-CxvNOg3c.mjs.map} +1 -1
- package/dist/{TransactionDetails-CDZNsKv7.mjs → TransactionDetails-DT-MQqOB.mjs} +5 -5
- package/dist/{TransactionDetails-CDZNsKv7.mjs.map → TransactionDetails-DT-MQqOB.mjs.map} +1 -1
- package/dist/{UserStore-B__9hQOS.mjs → UserStore-_QQpkbw9.mjs} +67 -69
- package/dist/UserStore-_QQpkbw9.mjs.map +1 -0
- package/dist/{ViewMoreMicroCard-CxGhzbRP.mjs → ViewMoreMicroCard-fnwE0hqd.mjs} +4 -4
- package/dist/{ViewMoreMicroCard-CxGhzbRP.mjs.map → ViewMoreMicroCard-fnwE0hqd.mjs.map} +1 -1
- package/dist/{WidgetContainer-5O6N88mr.mjs → WidgetContainer-CjdCY4sj.mjs} +3 -3
- package/dist/{WidgetContainer-5O6N88mr.mjs.map → WidgetContainer-CjdCY4sj.mjs.map} +1 -1
- package/dist/accounts/index.es.js +11 -11
- package/dist/analytics/index.es.js +2 -2
- package/dist/budgets/index.es.js +10 -10
- package/dist/cashflow/index.es.js +70 -70
- package/dist/categories/index.es.js +1 -1
- package/dist/common/components/ErrorBoundary.d.ts +0 -2
- package/dist/common/components/index.d.ts +0 -1
- package/dist/common/context/GlobalDataProvider.d.ts +1 -2
- package/dist/common/context/hooks.d.ts +0 -3
- package/dist/common/context/index.d.ts +1 -1
- package/dist/common/index.es.js +219 -275
- package/dist/common/index.es.js.map +1 -1
- package/dist/core/index.es.js +3 -3
- package/dist/core/stores/GlobalStore.d.ts +2 -4
- package/dist/core/types/Handlers.d.ts +0 -1
- package/dist/core/types/index.d.ts +1 -1
- package/dist/dashboard/index.es.js +4 -4
- package/dist/debts/index.es.js +8 -8
- package/dist/finstrong/index.es.js +12 -12
- package/dist/goals/index.es.js +9 -9
- package/dist/help/index.es.js +4 -4
- package/dist/hooks-97sNJ_lf.mjs +78 -0
- package/dist/hooks-97sNJ_lf.mjs.map +1 -0
- package/dist/insights/index.es.js +4 -4
- package/dist/investments/index.es.js +4 -4
- package/dist/merchants/index.es.js +1 -1
- package/dist/microinsights/index.es.js +1 -1
- package/dist/networth/index.es.js +6 -6
- package/dist/notifications/index.es.js +8 -8
- package/dist/recurringtransactions/index.es.js +38 -38
- package/dist/settings/index.es.js +27 -27
- package/dist/spending/index.es.js +33 -33
- package/dist/spending/index.es.js.map +1 -1
- package/dist/transactions/index.es.js +11 -11
- package/dist/trends/index.es.js +12 -12
- package/dist/{useAccountDisplayName-DHXXCFYZ.mjs → useAccountDisplayName-BsiXA0qf.mjs} +2 -2
- package/dist/{useAccountDisplayName-DHXXCFYZ.mjs.map → useAccountDisplayName-BsiXA0qf.mjs.map} +1 -1
- package/dist/{useInsightsEnabled-B_UpjpE6.mjs → useInsightsEnabled-D5Sdm0TJ.mjs} +2 -2
- package/dist/{useInsightsEnabled-B_UpjpE6.mjs.map → useInsightsEnabled-D5Sdm0TJ.mjs.map} +1 -1
- package/dist/{useWidgetLoadTimer-C0Mr0eRf.mjs → useWidgetLoadTimer-B0tB-yzL.mjs} +2 -2
- package/dist/{useWidgetLoadTimer-C0Mr0eRf.mjs.map → useWidgetLoadTimer-B0tB-yzL.mjs.map} +1 -1
- package/package.json +1 -1
- package/dist/ErrorBoundary-C7BlHx04.mjs +0 -27
- package/dist/ErrorBoundary-C7BlHx04.mjs.map +0 -1
- package/dist/GlobalCopyApi-DoJLovk7.mjs.map +0 -1
- package/dist/UserStore-B__9hQOS.mjs.map +0 -1
- package/dist/common/components/ErrorTestButtons.d.ts +0 -7
- package/dist/hooks-DWOrMnfZ.mjs +0 -83
- package/dist/hooks-DWOrMnfZ.mjs.map +0 -1
package/dist/common/index.es.js
CHANGED
|
@@ -1,109 +1,108 @@
|
|
|
1
|
-
import { l as
|
|
2
|
-
import { b as
|
|
3
|
-
import { f as
|
|
4
|
-
import { C as
|
|
5
|
-
import { C as
|
|
6
|
-
import { D as
|
|
7
|
-
import { D as
|
|
8
|
-
import { D as
|
|
9
|
-
import { D as
|
|
10
|
-
import { D as
|
|
11
|
-
import { E as
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import { S as
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import { L as
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import { u as
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import { u as
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
const
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
{ id:
|
|
55
|
-
{ id:
|
|
56
|
-
{ id:
|
|
57
|
-
{ id:
|
|
58
|
-
{ id:
|
|
59
|
-
{ id:
|
|
60
|
-
{ id:
|
|
61
|
-
|
|
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
|
-
},
|
|
65
|
+
}, U = ({
|
|
67
66
|
hasGap: r = !1,
|
|
68
|
-
segments:
|
|
69
|
-
size:
|
|
70
|
-
strokeWidth:
|
|
71
|
-
children:
|
|
67
|
+
segments: o,
|
|
68
|
+
size: n = _,
|
|
69
|
+
strokeWidth: u = v,
|
|
70
|
+
children: m
|
|
72
71
|
}) => {
|
|
73
|
-
const
|
|
74
|
-
let
|
|
75
|
-
return /* @__PURE__ */
|
|
76
|
-
/* @__PURE__ */
|
|
77
|
-
/* @__PURE__ */
|
|
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:
|
|
82
|
+
r: t,
|
|
84
83
|
stroke: "#E4E8EE",
|
|
85
|
-
strokeWidth:
|
|
84
|
+
strokeWidth: u
|
|
86
85
|
}
|
|
87
86
|
),
|
|
88
|
-
|
|
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:
|
|
95
|
-
stroke:
|
|
96
|
-
strokeDasharray: 2 * Math.PI *
|
|
97
|
-
strokeDashoffset: 2 * Math.PI *
|
|
98
|
-
strokeWidth:
|
|
99
|
-
transform: `rotate(${
|
|
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
|
-
|
|
100
|
+
f
|
|
102
101
|
)))
|
|
103
102
|
] }),
|
|
104
|
-
/* @__PURE__ */
|
|
103
|
+
/* @__PURE__ */ y("div", { className: "mx-cmn-multi-segment-donut-children", children: m })
|
|
105
104
|
] });
|
|
106
|
-
},
|
|
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
|
-
}),
|
|
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
|
-
],
|
|
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
|
-
],
|
|
191
|
-
const
|
|
192
|
-
for (const { key:
|
|
193
|
-
const a = r?.[
|
|
194
|
-
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
|
|
197
|
-
},
|
|
198
|
-
const
|
|
199
|
-
lighter:
|
|
200
|
-
light:
|
|
201
|
-
main:
|
|
202
|
-
dark:
|
|
203
|
-
darker:
|
|
204
|
-
} :
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
r.palette[
|
|
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
|
-
|
|
214
|
-
|
|
215
|
-
|
|
159
|
+
T.map((e) => [
|
|
160
|
+
e,
|
|
161
|
+
e === "fontFamily" ? m : { fontFamily: m }
|
|
216
162
|
])
|
|
217
|
-
),
|
|
163
|
+
), c = {
|
|
218
164
|
MuiTabs: {
|
|
219
165
|
styleOverrides: {
|
|
220
|
-
indicator: { backgroundColor:
|
|
166
|
+
indicator: { backgroundColor: t.primary.light }
|
|
221
167
|
}
|
|
222
168
|
},
|
|
223
169
|
MuiPickersCalendarHeader: {
|
|
224
170
|
styleOverrides: {
|
|
225
171
|
switchViewButton: {
|
|
226
|
-
color:
|
|
227
|
-
"&:hover": { backgroundColor: k(
|
|
172
|
+
color: t.primary.lighter,
|
|
173
|
+
"&:hover": { backgroundColor: k(t.primary.light, 0.1) }
|
|
228
174
|
}
|
|
229
175
|
}
|
|
230
176
|
}
|
|
231
|
-
},
|
|
232
|
-
...
|
|
233
|
-
...
|
|
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: `${
|
|
182
|
+
root: { borderRadius: `${s}px`, textTransform: "none" }
|
|
237
183
|
}
|
|
238
184
|
},
|
|
239
185
|
MuiIconButton: {
|
|
240
186
|
styleOverrides: {
|
|
241
187
|
root: {
|
|
242
|
-
borderRadius: `${
|
|
243
|
-
minWidth:
|
|
244
|
-
minHeight:
|
|
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: `${
|
|
196
|
+
root: { borderRadius: `${s}px`, textTransform: "none" }
|
|
251
197
|
}
|
|
252
198
|
}
|
|
253
199
|
},
|
|
254
|
-
...
|
|
200
|
+
...l && {
|
|
255
201
|
MuiCard: {
|
|
256
|
-
styleOverrides: { root: { borderRadius: `${
|
|
202
|
+
styleOverrides: { root: { borderRadius: `${l}px` } }
|
|
257
203
|
}
|
|
258
204
|
},
|
|
259
|
-
...
|
|
205
|
+
...l && {
|
|
260
206
|
MuiPaper: {
|
|
261
207
|
styleOverrides: {
|
|
262
|
-
rounded: { borderRadius: `${
|
|
208
|
+
rounded: { borderRadius: `${l}px` }
|
|
263
209
|
}
|
|
264
210
|
}
|
|
265
211
|
}
|
|
266
212
|
};
|
|
267
|
-
return { typography: a, palette:
|
|
213
|
+
return { typography: a, palette: t, components: f };
|
|
268
214
|
};
|
|
269
215
|
export {
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
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
|