@mx-cartographer/experiences 9.0.3 → 9.1.0-alpha.bb1
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 +0 -4
- package/dist/Analytics-BKzTPees.mjs +61 -0
- package/dist/GlobalCopyApi-BeXzaDH9.mjs +487 -0
- package/dist/HeaderCell-EhCUSjvj.mjs +10 -0
- package/dist/Loader-BlVzRtUd.mjs +73 -0
- package/dist/MiniWidgetContainer-COwnjfy7.mjs +110 -0
- package/dist/OriginalBalanceAction-sbiqaxok.mjs +110 -0
- package/dist/SpendingLegend-D15ixlQ1.mjs +222 -0
- package/dist/accounts/index.es.js +12 -1598
- package/dist/accounts-DkyAiLpg.mjs +15632 -0
- package/dist/analytics/index.es.js +155 -139
- package/dist/budgets/index.es.js +1317 -1266
- package/dist/cashflow/index.es.js +1047 -942
- package/dist/categories/index.es.js +4 -4
- package/dist/common/index.es.js +101 -310
- package/dist/core/index.es.js +80 -104
- package/dist/core-BexP5oiV.mjs +4047 -0
- package/dist/dashboard/index.es.js +185 -141
- package/dist/debts/index.es.js +1384 -1272
- package/dist/finstrong/index.es.js +3366 -3471
- package/dist/goals/index.es.js +1103 -984
- package/dist/help/index.es.js +3 -25
- package/dist/help-CctDYrAH.mjs +2308 -0
- package/dist/insights/index.es.js +93 -4843
- package/dist/investments/index.es.js +1533 -1522
- package/dist/merchants/index.es.js +75 -64
- package/dist/microinsights/index.es.js +15 -824
- package/dist/microinsights-CRf3ChsJ.mjs +1814 -0
- package/dist/networth/index.es.js +550 -503
- package/dist/notifications/index.es.js +169 -161
- package/dist/recurringtransactions/index.es.js +10 -962
- package/dist/recurringtransactions-gbJ_NA8u.mjs +1564 -0
- package/dist/settings/index.es.js +13 -880
- package/dist/settings-ZMHe439l.mjs +1526 -0
- package/dist/spending/index.es.js +400 -456
- package/dist/transactions/index.es.js +10 -603
- package/dist/trends/index.es.js +1268 -1407
- package/package.json +28 -28
- package/dist/Account-BaJmiJAG.mjs +0 -118
- package/dist/Account-BxHMlV9R.mjs +0 -30
- package/dist/AccountDetailsHeader-DIysk_4w.mjs +0 -95
- package/dist/AccountDisplayName-CO7z3v99.mjs +0 -11
- package/dist/AccountFields-mwJ8NXsX.mjs +0 -141
- package/dist/AccountListItem-BDXHs4tV.mjs +0 -94
- package/dist/AccountUtils-T5_Odvos.mjs +0 -27
- package/dist/Accounts-CseLC3lL.mjs +0 -5
- package/dist/Analytics-CkYXKvco.mjs +0 -53
- package/dist/Analytics-CzGzz_sE.mjs +0 -136
- package/dist/ApiEndpoints-DXwIYNUV.mjs +0 -49
- package/dist/BudgetUtil-Bg2AQJpQ.mjs +0 -74
- package/dist/Category-DEKZGLYe.mjs +0 -301
- package/dist/CategorySelectorDrawer-8soGrhB8.mjs +0 -430
- package/dist/Connect-Dk6GZEsA.mjs +0 -39
- package/dist/ConnectCard-CCep7Zqe.mjs +0 -54
- package/dist/ConnectDrawer-Cnjr3Ddg.mjs +0 -58
- package/dist/ConnectionsDrawer-CtfPXk0M.mjs +0 -54
- package/dist/CurrencyDialog-DumQCTPO.mjs +0 -373
- package/dist/CurrencyInput-adTIRtL3.mjs +0 -87
- package/dist/CurrencyText-CCbE6MmF.mjs +0 -20
- package/dist/DateFormats-HudZ3Bjs.mjs +0 -64
- package/dist/DateUtil-Bhq59ZVg.mjs +0 -58
- package/dist/DebtUtils-DD3186U-.mjs +0 -153
- package/dist/Dialog-Bvd2n8hz.mjs +0 -66
- package/dist/Donut-SzzfZDHF.mjs +0 -88
- package/dist/Drawer-BXqqBMxg.mjs +0 -174
- package/dist/EmbeddedCard-DPwJjqMH.mjs +0 -856
- package/dist/EmptyState-CJUDc3kD.mjs +0 -84
- package/dist/Error-Dogaw2jO.mjs +0 -84
- package/dist/ErrorBoundary-CsdOcnJ9.mjs +0 -23
- package/dist/ExportCsvAction-Bw02ZJEj.mjs +0 -24
- package/dist/GlobalAccountFilter-7Cg2-9A5.mjs +0 -237
- package/dist/GlobalCopyApi-wcnDUzMV.mjs +0 -128
- package/dist/GoalsUtil-C9EnLWvC.mjs +0 -107
- package/dist/HeaderCell-P8w6CmfO.mjs +0 -6
- package/dist/Help-CkQTjORd.mjs +0 -299
- package/dist/Help-DJ8PrVHX.mjs +0 -3209
- package/dist/IconBacking-DgT8DCeh.mjs +0 -39
- package/dist/InformationTooltip-4su8bn1e.mjs +0 -41
- package/dist/InvestmentUtil-BItV7uEs.mjs +0 -134
- package/dist/LineChart-CejWS_rh.mjs +0 -612
- package/dist/ListItemAction-CzZ8s39Z.mjs +0 -69
- package/dist/ListItemRow-kH1rn8Xu.mjs +0 -67
- package/dist/ListItemWrapper-B5r-YQQ_.mjs +0 -42
- package/dist/Loader-CxeBwuPG.mjs +0 -21
- package/dist/Localization-DnoVyBNK.mjs +0 -38
- package/dist/ManageIncome-D1yBODQi.mjs +0 -595
- package/dist/MicroWidgetContainer-CfKdQfhi.mjs +0 -45
- package/dist/MiniWidgetContainer-BdPiUU-u.mjs +0 -66
- package/dist/NetWorthUtils-DilGN1nW.mjs +0 -95
- package/dist/Notification-DTNYSd8P.mjs +0 -7
- package/dist/NotificationSettings-B4JA5IKE.mjs +0 -677
- package/dist/NotificationUtils-BRGFTePr.mjs +0 -23
- package/dist/NumberFormatting--XMeeBfr.mjs +0 -49
- package/dist/OriginalBalanceAction-BybTXDtO.mjs +0 -114
- package/dist/RecurringSettings-D2xbNb67.mjs +0 -88
- package/dist/RecurringTransactionsUtil-B3rLEx_g.mjs +0 -253
- package/dist/ResponsiveButton-CC9F_Ezk.mjs +0 -45
- package/dist/SearchBox-Cpgu_gdO.mjs +0 -50
- package/dist/Select-BFt-HD-L.mjs +0 -55
- package/dist/SelectionBox-B4xELRgp.mjs +0 -48
- package/dist/SingleSegmentDonut-7Uy6VEld.mjs +0 -69
- package/dist/Sizes-DISGrlUg.mjs +0 -6
- package/dist/SkeletonLoader-BaNboJjD.mjs +0 -38
- package/dist/SpendingData-Fii_xATx.mjs +0 -53
- package/dist/SpendingLegend-5Ct_FZ8o.mjs +0 -193
- package/dist/StatusBar-CPfSXe80.mjs +0 -30
- package/dist/TabContentContainer-CnMXkVqr.mjs +0 -21
- package/dist/ToggleListItem-Dl1lXNwj.mjs +0 -91
- package/dist/TransactionDetails-DctXr07p.mjs +0 -1714
- package/dist/TransactionUtils-BphBJBbU.mjs +0 -234
- package/dist/TrendsUtil-D9z3kIj_.mjs +0 -69
- package/dist/UserStore-CRpKQjpP.mjs +0 -3002
- package/dist/ViewMoreMicroCard-BD_MNc2z.mjs +0 -1295
- package/dist/WidgetContainer-CmbU4CBH.mjs +0 -482
- package/dist/hooks-BaO_gOI6.mjs +0 -77
- package/dist/useAccountDisplayName-CFa_MrS6.mjs +0 -15
- package/dist/useAriaLive-MkYebyUR.mjs +0 -35
- package/dist/useDimensions-CeDR9V8N.mjs +0 -36
- package/dist/useInsightsEnabled-DaNLPmUU.mjs +0 -11
- package/dist/useScreenSize-mWpmnh5w.mjs +0 -36
- package/dist/useWidgetLoadTimer-CJb-RELP.mjs +0 -19
|
@@ -1,152 +1,168 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as R, h as A, p as y, r as f, t as W } from "../Loader-BlVzRtUd.mjs";
|
|
2
|
+
import { t as j } from "../MiniWidgetContainer-COwnjfy7.mjs";
|
|
2
3
|
import c from "react";
|
|
3
|
-
import { observer as
|
|
4
|
-
import { SurveyQuestionType as C } from "posthog-js";
|
|
5
|
-
import R from "@mui/material/Alert";
|
|
6
|
-
import j from "@mui/material/Button";
|
|
4
|
+
import { observer as v } from "mobx-react-lite";
|
|
7
5
|
import s from "@mui/material/Stack";
|
|
8
|
-
import { Text as u, TextField as
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
6
|
+
import { Text as u, TextField as q } from "@mxenabled/mxui";
|
|
7
|
+
import E from "@mui/material/Button";
|
|
8
|
+
import { jsx as e, jsxs as i } from "react/jsx-runtime";
|
|
9
|
+
import { useTheme as L } from "@mui/material/styles";
|
|
10
|
+
import Q from "@mui/material/ToggleButton";
|
|
11
|
+
import B from "@mui/material/ToggleButtonGroup";
|
|
12
|
+
import { SurveyQuestionType as C } from "posthog-js";
|
|
13
|
+
import G from "@mui/material/Alert";
|
|
14
|
+
var O = () => {
|
|
15
|
+
const { question: o, response: a, setResponse: t } = f(), { analytics: r } = y(), h = L(), d = o, m = (p, n) => {
|
|
16
|
+
t(n);
|
|
18
17
|
};
|
|
19
|
-
return /* @__PURE__ */ i(c.Fragment, { children: [
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
{
|
|
35
|
-
color: "primary",
|
|
36
|
-
sx: { fontWeight: "bold", width: `${100 / d.scale}%` },
|
|
37
|
-
value: r + 1,
|
|
38
|
-
children: r + 1
|
|
39
|
-
},
|
|
40
|
-
r + 1
|
|
41
|
-
))
|
|
42
|
-
}
|
|
43
|
-
),
|
|
44
|
-
/* @__PURE__ */ i(
|
|
45
|
-
s,
|
|
46
|
-
{
|
|
47
|
-
sx: {
|
|
48
|
-
color: m.palette.secondary.light,
|
|
49
|
-
flexDirection: "row",
|
|
50
|
-
justifyContent: "space-between"
|
|
51
|
-
},
|
|
52
|
-
children: [
|
|
53
|
-
/* @__PURE__ */ e(u, { bold: !0, color: "text.secondary", variant: "caption", children: o.strongly_disagree }),
|
|
54
|
-
/* @__PURE__ */ e(u, { bold: !0, color: "text.secondary", variant: "caption", children: o.strongly_agree })
|
|
55
|
-
]
|
|
56
|
-
}
|
|
57
|
-
)
|
|
58
|
-
] });
|
|
59
|
-
}, O = h(G), z = () => {
|
|
60
|
-
const { response: n, setResponse: a } = f(), { analytics: t } = g();
|
|
61
|
-
return /* @__PURE__ */ e(
|
|
62
|
-
A,
|
|
63
|
-
{
|
|
64
|
-
label: t.feedback,
|
|
65
|
-
multiline: !0,
|
|
66
|
-
onChange: (o) => {
|
|
67
|
-
a(o.target.value);
|
|
18
|
+
return /* @__PURE__ */ i(c.Fragment, { children: [/* @__PURE__ */ e(B, {
|
|
19
|
+
exclusive: !0,
|
|
20
|
+
onChange: m,
|
|
21
|
+
sx: {
|
|
22
|
+
display: "flex",
|
|
23
|
+
height: 44,
|
|
24
|
+
justifyContent: "space-between",
|
|
25
|
+
width: "100%"
|
|
26
|
+
},
|
|
27
|
+
value: a,
|
|
28
|
+
children: Array.from({ length: d.scale }, (p, n) => /* @__PURE__ */ e(Q, {
|
|
29
|
+
color: "primary",
|
|
30
|
+
sx: {
|
|
31
|
+
fontWeight: "bold",
|
|
32
|
+
width: `${100 / d.scale}%`
|
|
68
33
|
},
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
34
|
+
value: n + 1,
|
|
35
|
+
children: n + 1
|
|
36
|
+
}, n + 1))
|
|
37
|
+
}), /* @__PURE__ */ i(s, {
|
|
38
|
+
sx: {
|
|
39
|
+
color: h.palette.secondary.light,
|
|
40
|
+
flexDirection: "row",
|
|
41
|
+
justifyContent: "space-between"
|
|
42
|
+
},
|
|
43
|
+
children: [/* @__PURE__ */ e(u, {
|
|
44
|
+
bold: !0,
|
|
45
|
+
color: "text.secondary",
|
|
46
|
+
variant: "caption",
|
|
47
|
+
children: r.strongly_disagree
|
|
48
|
+
}), /* @__PURE__ */ e(u, {
|
|
49
|
+
bold: !0,
|
|
50
|
+
color: "text.secondary",
|
|
51
|
+
variant: "caption",
|
|
52
|
+
children: r.strongly_agree
|
|
53
|
+
})]
|
|
54
|
+
})] });
|
|
55
|
+
}, $ = v(O), z = () => {
|
|
56
|
+
const { response: o, setResponse: a } = f(), { analytics: t } = y();
|
|
57
|
+
return /* @__PURE__ */ e(q, {
|
|
58
|
+
label: t.feedback,
|
|
59
|
+
multiline: !0,
|
|
60
|
+
onChange: (r) => {
|
|
61
|
+
a(r.target.value);
|
|
62
|
+
},
|
|
63
|
+
placeholder: t.improve_experience,
|
|
64
|
+
rows: 4,
|
|
65
|
+
value: o
|
|
66
|
+
});
|
|
67
|
+
}, H = v(z), I = () => {
|
|
68
|
+
const { onEvent: o } = R(), { surveyId: a, question: t, isLastQuestion: r, nextQuestion: h, loadSurvey: d, questionCount: m, response: p, responsePayload: n, resetStore: x, survey: S } = f(), { analytics: l, common: w } = y(), { isCopyLoaded: k, isInitialized: g } = A(), [b, _] = c.useState(!1);
|
|
87
69
|
c.useEffect(() => {
|
|
88
|
-
|
|
89
|
-
}, [
|
|
90
|
-
|
|
91
|
-
$survey_id: a
|
|
92
|
-
});
|
|
70
|
+
g && d();
|
|
71
|
+
}, [g]), c.useEffect(() => {
|
|
72
|
+
o("survey shown", { $survey_id: a });
|
|
93
73
|
}, [S]);
|
|
94
|
-
const
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
}, T = () => {
|
|
99
|
-
m();
|
|
74
|
+
const T = () => {
|
|
75
|
+
o("survey dismissed", { $survey_id: a }), x(), _(!1);
|
|
76
|
+
}, M = () => {
|
|
77
|
+
h();
|
|
100
78
|
}, F = () => {
|
|
101
|
-
|
|
79
|
+
o("survey sent", n), x(), _(!0);
|
|
102
80
|
};
|
|
103
|
-
return k ? !t && !b ? null : /* @__PURE__ */ i(
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
81
|
+
return k ? !t && !b ? null : /* @__PURE__ */ i(j, {
|
|
82
|
+
closeLabel: w.close_aria,
|
|
83
|
+
onClose: T,
|
|
84
|
+
sx: {
|
|
85
|
+
"& .MuiCardHeader-root": {
|
|
86
|
+
px: 24,
|
|
87
|
+
pb: 2
|
|
88
|
+
},
|
|
89
|
+
"& .MuiCardHeader-subheader": { fontSize: 13 },
|
|
90
|
+
"& .MuiCardContent-root:last-child": { pb: 0 }
|
|
91
|
+
},
|
|
92
|
+
title: l.your_feedback_matters,
|
|
93
|
+
children: [
|
|
94
|
+
/* @__PURE__ */ e(s, {
|
|
95
|
+
sx: {
|
|
96
|
+
pb: 8,
|
|
97
|
+
px: 24
|
|
98
|
+
},
|
|
99
|
+
children: /* @__PURE__ */ e(u, {
|
|
100
|
+
truncate: !1,
|
|
101
|
+
variant: "subtitle2",
|
|
102
|
+
children: l.let_us_know
|
|
103
|
+
})
|
|
104
|
+
}),
|
|
105
|
+
t && /* @__PURE__ */ i(c.Fragment, { children: [
|
|
106
|
+
/* @__PURE__ */ i(s, {
|
|
107
|
+
sx: {
|
|
108
|
+
gap: 4,
|
|
109
|
+
px: 24,
|
|
110
|
+
py: 16
|
|
111
|
+
},
|
|
112
|
+
children: [/* @__PURE__ */ e(u, {
|
|
113
|
+
bold: !0,
|
|
114
|
+
truncate: !1,
|
|
115
|
+
children: t.question
|
|
116
|
+
}), /* @__PURE__ */ e(u, {
|
|
117
|
+
variant: "caption",
|
|
118
|
+
children: m
|
|
119
|
+
})]
|
|
120
|
+
}),
|
|
121
|
+
/* @__PURE__ */ i(s, {
|
|
122
|
+
sx: {
|
|
123
|
+
gap: 6,
|
|
124
|
+
px: 24,
|
|
125
|
+
pb: 8
|
|
126
|
+
},
|
|
127
|
+
children: [t.type === C.Rating && /* @__PURE__ */ e($, {}), t.type === C.Open && /* @__PURE__ */ e(H, {})]
|
|
128
|
+
}),
|
|
129
|
+
/* @__PURE__ */ e(s, {
|
|
130
|
+
sx: {
|
|
131
|
+
px: 24,
|
|
132
|
+
py: 16
|
|
133
|
+
},
|
|
134
|
+
children: /* @__PURE__ */ e(E, {
|
|
135
|
+
disabled: !r && !p,
|
|
136
|
+
onClick: r ? F : M,
|
|
137
|
+
variant: r && p ? "contained" : "outlined",
|
|
138
|
+
children: r ? l.submit_feedback : l.continue
|
|
139
|
+
})
|
|
140
|
+
})
|
|
141
|
+
] }),
|
|
142
|
+
b && /* @__PURE__ */ i(c.Fragment, { children: [/* @__PURE__ */ e(s, {
|
|
143
|
+
sx: {
|
|
110
144
|
px: 24,
|
|
111
|
-
|
|
145
|
+
py: 24
|
|
112
146
|
},
|
|
113
|
-
|
|
114
|
-
|
|
147
|
+
children: /* @__PURE__ */ e(u, {
|
|
148
|
+
bold: !0,
|
|
149
|
+
truncate: !1,
|
|
150
|
+
children: l.thank_you
|
|
151
|
+
})
|
|
152
|
+
}), /* @__PURE__ */ e(s, {
|
|
153
|
+
sx: {
|
|
154
|
+
px: 24,
|
|
155
|
+
pb: 24
|
|
115
156
|
},
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
/* @__PURE__ */ e(u, { bold: !0, truncate: !1, children: t.question }),
|
|
126
|
-
/* @__PURE__ */ e(u, { variant: "caption", children: y })
|
|
127
|
-
] }),
|
|
128
|
-
/* @__PURE__ */ i(s, { sx: { gap: 6, px: 24, pb: 8 }, children: [
|
|
129
|
-
t.type === C.Rating && /* @__PURE__ */ e(O, {}),
|
|
130
|
-
t.type === C.Open && /* @__PURE__ */ e(H, {})
|
|
131
|
-
] }),
|
|
132
|
-
/* @__PURE__ */ e(s, { sx: { px: 24, py: 16 }, children: /* @__PURE__ */ e(
|
|
133
|
-
j,
|
|
134
|
-
{
|
|
135
|
-
disabled: !o && !p,
|
|
136
|
-
onClick: o ? F : T,
|
|
137
|
-
variant: o && p ? "contained" : "outlined",
|
|
138
|
-
children: o ? l.submit_feedback : l.continue
|
|
139
|
-
}
|
|
140
|
-
) })
|
|
141
|
-
] }),
|
|
142
|
-
b && /* @__PURE__ */ i(c.Fragment, { children: [
|
|
143
|
-
/* @__PURE__ */ e(s, { sx: { px: 24, py: 24 }, children: /* @__PURE__ */ e(u, { bold: !0, truncate: !1, children: l.thank_you }) }),
|
|
144
|
-
/* @__PURE__ */ e(s, { sx: { px: 24, pb: 24 }, children: /* @__PURE__ */ e(R, { severity: "success", variant: "filled", children: l.feedback_sent_successfully }) })
|
|
145
|
-
] })
|
|
146
|
-
]
|
|
147
|
-
}
|
|
148
|
-
) : /* @__PURE__ */ e(L, {});
|
|
149
|
-
}, se = h(I);
|
|
157
|
+
children: /* @__PURE__ */ e(G, {
|
|
158
|
+
severity: "success",
|
|
159
|
+
variant: "filled",
|
|
160
|
+
children: l.feedback_sent_successfully
|
|
161
|
+
})
|
|
162
|
+
})] })
|
|
163
|
+
]
|
|
164
|
+
}) : /* @__PURE__ */ e(W, {});
|
|
165
|
+
}, oe = v(I);
|
|
150
166
|
export {
|
|
151
|
-
|
|
167
|
+
oe as SurveyMiniWidget
|
|
152
168
|
};
|