@mx-cartographer/experiences 7.11.5 → 7.11.7

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 (84) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/{AccountApi-DgZ8ILj1.mjs → AccountApi-JlrX0MwM.mjs} +1 -1
  3. package/dist/{AccountDetailsHeader-hDo7gojQ.mjs → AccountDetailsHeader-BCi1WwkM.mjs} +2 -2
  4. package/dist/{AccountListItem-CjeAlrPC.mjs → AccountListItem-Ceuh5WKe.mjs} +2 -2
  5. package/dist/{AccountStore-DdGz1ig2.mjs → AccountStore-CSLinWGm.mjs} +2 -2
  6. package/dist/{BeatApi-De2IaqH2.mjs → BeatApi-B7yMnwRX.mjs} +1 -1
  7. package/dist/{BeatStore-D_NYuBSz.mjs → BeatStore-C3njaxFy.mjs} +1 -1
  8. package/dist/BudgetUtil-CTpLz9lw.mjs +101 -0
  9. package/dist/{CategorySelectorDrawer-DpC8T96X.mjs → CategorySelectorDrawer-BMmxw2oY.mjs} +2 -2
  10. package/dist/{CategoryStore-Cg6hsxza.mjs → CategoryStore-BC1Dbefp.mjs} +1 -1
  11. package/dist/{Connect-Dg9HlAWv.mjs → Connect-Df7iVTcV.mjs} +1 -1
  12. package/dist/{ConnectDrawer-BLwcW0Oe.mjs → ConnectDrawer-CVt-8rPJ.mjs} +2 -2
  13. package/dist/{ConnectionsDrawer-UQTh9UEc.mjs → ConnectionsDrawer-c7HaKeRj.mjs} +2 -2
  14. package/dist/{CurrencyInput-PMOAH5R3.mjs → CurrencyInput-CDY0awYV.mjs} +1 -1
  15. package/dist/Dialog-DdCwLgrl.mjs +60 -0
  16. package/dist/{ExportCsvAction-B5Ra5duE.mjs → ExportCsvAction-BSK-EZ4D.mjs} +3 -3
  17. package/dist/{Fetch-DecPFeGU.mjs → Fetch-C67go-m2.mjs} +1 -0
  18. package/dist/{FinstrongStore-DBSoLGSE.mjs → FinstrongStore-93XvOWQr.mjs} +1 -1
  19. package/dist/{GlobalAccountFilter-C8mpfudV.mjs → GlobalAccountFilter-B3v8E_rC.mjs} +1 -1
  20. package/dist/{GoalStore-DzOZ0je_.mjs → GoalStore-XHAvX1lP.mjs} +2 -2
  21. package/dist/{Help-HjHBZzI9.mjs → Help-BBxespai.mjs} +1 -1
  22. package/dist/{LineChart-Dlp9RAJz.mjs → LineChart-Pu3pKqtQ.mjs} +1 -1
  23. package/dist/{ListItemAction-Dq1lMdxh.mjs → ListItemAction-5YhgdUZW.mjs} +2 -2
  24. package/dist/{ManageIncome-nsPkRmtW.mjs → ManageIncome-C389-HAc.mjs} +11 -11
  25. package/dist/{MerchantStore-WvZ4gnQe.mjs → MerchantStore-DeeJLKfx.mjs} +1 -1
  26. package/dist/{MicroWidgetContainer-jvYZ5bb6.mjs → MicroWidgetContainer-CMES42I1.mjs} +1 -1
  27. package/dist/{MiniWidgetContainer-B4gbUTJ2.mjs → MiniWidgetContainer-DhEx4qKi.mjs} +1 -1
  28. package/dist/{NetWorthStore-yV43kJro.mjs → NetWorthStore-iebGdvTb.mjs} +1 -1
  29. package/dist/{NotificationSettings-Bw4fdVRU.mjs → NotificationSettings-BSaCGB8x.mjs} +5 -5
  30. package/dist/{NotificationStore-DBs11ZBH.mjs → NotificationStore-CUhig4c1.mjs} +1 -1
  31. package/dist/{OriginalBalanceAction-CBZ_YHmB.mjs → OriginalBalanceAction-Bq4utJ1f.mjs} +3 -3
  32. package/dist/{RecurringSettings-DPNluP-k.mjs → RecurringSettings-CLtfXCFT.mjs} +2 -2
  33. package/dist/{RecurringTransactionsStore-DAX5ozGz.mjs → RecurringTransactionsStore-Ce7p6L0E.mjs} +1 -1
  34. package/dist/{SettingsStore-BqPjOIWk.mjs → SettingsStore-tK6INBFP.mjs} +2 -2
  35. package/dist/{SpendingLegend-D91UDDIu.mjs → SpendingLegend-bMrPWOGJ.mjs} +1 -1
  36. package/dist/{Transaction-BNO5Yz-B.mjs → Transaction-BR682Yj5.mjs} +1 -1
  37. package/dist/{TransactionApi-CjBoLleL.mjs → TransactionApi-BnjVP2x2.mjs} +1 -1
  38. package/dist/TransactionDetails-Cedp4OOg.mjs +1260 -0
  39. package/dist/{TransactionList-DrtItQUk.mjs → TransactionList-BibbhhS9.mjs} +2 -2
  40. package/dist/{TransactionStore-DYXYuq5s.mjs → TransactionStore-Cv-7GLPT.mjs} +4 -4
  41. package/dist/User-CCSM9p05.mjs +368 -0
  42. package/dist/{ViewMoreMicroCard-BCYgXtiG.mjs → ViewMoreMicroCard-C4QiAZz4.mjs} +3 -3
  43. package/dist/{WidgetContainer-B5jzz8M1.mjs → WidgetContainer-sC5KLXHI.mjs} +3 -3
  44. package/dist/accounts/index.es.js +16 -15
  45. package/dist/analytics/index.es.js +11 -11
  46. package/dist/budgets/api/BudgetsApi.d.ts +1 -0
  47. package/dist/budgets/index.es.js +26 -25
  48. package/dist/budgets/store/BudgetsStore.d.ts +7 -0
  49. package/dist/cashflow/index.es.js +9 -9
  50. package/dist/categories/index.es.js +2 -2
  51. package/dist/common/constants/ApiEndpoints.d.ts +1 -0
  52. package/dist/common/index.es.js +277 -253
  53. package/dist/common/stores/GlobalStore.d.ts +3 -1
  54. package/dist/common/types/Budget.d.ts +8 -0
  55. package/dist/common/types/localization/BudgetsCopy.d.ts +5 -0
  56. package/dist/common/types/localization/CommonCopy.d.ts +2 -0
  57. package/dist/dashboard/index.es.js +4 -4
  58. package/dist/debts/index.es.js +8 -8
  59. package/dist/{exportTransactionsToCSV-DC2YMFft.mjs → exportTransactionsToCSV-YXwmzmUp.mjs} +1 -1
  60. package/dist/finstrong/index.es.js +13 -13
  61. package/dist/goals/index.es.js +11 -11
  62. package/dist/help/index.es.js +4 -4
  63. package/dist/{hooks-0kWPTHNb.mjs → hooks-zu7yblbi.mjs} +3 -3
  64. package/dist/insights/index.es.js +4 -4
  65. package/dist/investments/index.es.js +4 -4
  66. package/dist/merchants/index.es.js +2 -2
  67. package/dist/microinsights/index.es.js +1 -1
  68. package/dist/networth/index.es.js +8 -8
  69. package/dist/notifications/index.es.js +11 -11
  70. package/dist/recurringtransactions/index.es.js +102 -102
  71. package/dist/settings/index.es.js +9 -9
  72. package/dist/spending/index.es.js +8 -8
  73. package/dist/transactions/components/shared/transactiondetails/actions/AddMerchantBudgetAction.d.ts +3 -1
  74. package/dist/transactions/index.es.js +18 -18
  75. package/dist/trends/index.es.js +12 -12
  76. package/dist/{useAccountDisplayName-BQfelpG3.mjs → useAccountDisplayName-CxYB0Wpw.mjs} +1 -1
  77. package/dist/{useCombineEvents-ARuNN9Xh.mjs → useCombineEvents-C6fkIgHW.mjs} +1 -1
  78. package/dist/{useInsightsEnabled-bDCTNOJS.mjs → useInsightsEnabled-CYLDtNYt.mjs} +1 -1
  79. package/dist/{useWidgetLoadTimer-yzSfT9dS.mjs → useWidgetLoadTimer-Bmgv_UeH.mjs} +1 -1
  80. package/package.json +1 -1
  81. package/dist/BudgetUtil-C71e-szt.mjs +0 -236
  82. package/dist/Dialog-BqUCsQvo.mjs +0 -58
  83. package/dist/TransactionDetails-CurpH7lH.mjs +0 -1181
  84. package/dist/User-C8w4H0cj.mjs +0 -237
@@ -5,12 +5,12 @@ import { useVirtualizer as $ } from "@tanstack/react-virtual";
5
5
  import T from "@mui/material/Box";
6
6
  import j from "@mui/material/Divider";
7
7
  import H from "@mui/material/List";
8
- import { G as X, h as C, u as z, g as K } from "./hooks-0kWPTHNb.mjs";
8
+ import { G as X, h as C, u as z, g as K } from "./hooks-zu7yblbi.mjs";
9
9
  import { MerchantLogo as P, Icon as I, Text as d } from "@mxenabled/mxui";
10
10
  import Y from "@mui/material/ListItemAvatar";
11
11
  import Z from "@mui/material/ListItemText";
12
12
  import S from "@mui/material/Stack";
13
- import { T as F, L as q, O as J } from "./Transaction-BNO5Yz-B.mjs";
13
+ import { T as F, L as q, O as J } from "./Transaction-BR682Yj5.mjs";
14
14
  import { f as Q } from "./NumberFormatting-DjTD0t3W.mjs";
15
15
  import { Receipt as ee } from "@mxenabled/mx-icons";
16
16
  import { fromUnixTime as x } from "date-fns/fromUnixTime";
@@ -12,16 +12,16 @@ import { isBefore as V } from "date-fns/isBefore";
12
12
  import { startOfMonth as h } from "date-fns/startOfMonth";
13
13
  import { startOfToday as m } from "date-fns/startOfToday";
14
14
  import { subDays as v } from "date-fns/subDays";
15
- import { O as n, a as y, T as b } from "./Transaction-BNO5Yz-B.mjs";
16
- import { T as D } from "./TransactionApi-CjBoLleL.mjs";
15
+ import { O as n, a as y, T as b } from "./Transaction-BR682Yj5.mjs";
16
+ import { T as D } from "./TransactionApi-BnjVP2x2.mjs";
17
17
  import { b as Y } from "./Category-CevNQ03n.mjs";
18
- import { f as F } from "./exportTransactionsToCSV-DC2YMFft.mjs";
18
+ import { f as F } from "./exportTransactionsToCSV-YXwmzmUp.mjs";
19
19
  import { format as W } from "date-fns/format";
20
20
  import { fromUnixTime as $ } from "date-fns/fromUnixTime";
21
21
  import { f as C, D as I, O as k } from "./DateFormats-Cs-NbEZ7.mjs";
22
22
  import { f as z } from "./NumberFormatting-DjTD0t3W.mjs";
23
23
  import { endOfMonth as X } from "date-fns/endOfMonth";
24
- import { B as u } from "./BeatApi-De2IaqH2.mjs";
24
+ import { B as u } from "./BeatApi-B7yMnwRX.mjs";
25
25
  const j = ({
26
26
  checked: l = !1,
27
27
  label: t,
@@ -0,0 +1,368 @@
1
+ import { jsxs as p, jsx as n } from "react/jsx-runtime";
2
+ import b from "react";
3
+ import { css as M } from "@mxenabled/cssinjs";
4
+ import { addDays as H } from "date-fns/addDays";
5
+ import { addMonths as O } from "date-fns/addMonths";
6
+ import { eachDayOfInterval as W } from "date-fns/eachDayOfInterval";
7
+ import { eachWeekOfInterval as F } from "date-fns/eachWeekOfInterval";
8
+ import { endOfMonth as L } from "date-fns/endOfMonth";
9
+ import { format as j } from "date-fns/format";
10
+ import { isBefore as z } from "date-fns/isBefore";
11
+ import { isSameMonth as G } from "date-fns/isSameMonth";
12
+ import { startOfMonth as Y } from "date-fns/startOfMonth";
13
+ import { startOfToday as $ } from "date-fns/startOfToday";
14
+ import { subMonths as Z } from "date-fns/subMonths";
15
+ import C from "@mui/material/Button";
16
+ import q from "@mui/material/Paper";
17
+ import { H2 as D, Text as _, H3 as J, P as K } from "@mxenabled/mxui";
18
+ import { ChevronLeft as P, ChevronRight as Q, Icon as U } from "@mxenabled/mx-icons";
19
+ import { f as V, D as X } from "./DateFormats-Cs-NbEZ7.mjs";
20
+ import { isSameDay as d } from "date-fns/isSameDay";
21
+ import { isWithinInterval as tt } from "date-fns/isWithinInterval";
22
+ import nt from "@mui/material/styles/useTheme";
23
+ import et from "@mui/material/Dialog";
24
+ import ot from "@mui/material/DialogActions";
25
+ import rt from "@mui/material/DialogContent";
26
+ import at from "@mui/material/IconButton";
27
+ import it from "@mui/material/InputAdornment";
28
+ import B from "@mui/material/Stack";
29
+ import lt from "@mui/material/TextField";
30
+ const ct = ({ copy: t, date: o, onNextClick: e, onPreviousClick: l }) => {
31
+ const m = mt();
32
+ return /* @__PURE__ */ p("div", { className: `mx-cmn-calendar-header ${m}`, children: [
33
+ /* @__PURE__ */ n(D, { className: "mx-cmn-calendar-header-title", variant: "H3", children: V(o, X.MONTH_YEAR) }),
34
+ /* @__PURE__ */ p("div", { className: "mx-cmn-calendar-header-button-container", children: [
35
+ /* @__PURE__ */ n(C, { "aria-label": t.prevAria, onClick: l, children: /* @__PURE__ */ n(P, { size: 24 }) }),
36
+ /* @__PURE__ */ n(C, { "aria-label": t.nextAria, onClick: e, children: /* @__PURE__ */ n(Q, { size: 24 }) })
37
+ ] })
38
+ ] });
39
+ }, mt = () => M({
40
+ alignItems: "center",
41
+ display: "flex",
42
+ marginBottom: 16,
43
+ marginRight: -16,
44
+ paddingLeft: 8,
45
+ "& .mx-cmn-calendar-header-title": {
46
+ flexGrow: 1
47
+ },
48
+ "& .mx-cmn-calendar-header-button-container": {
49
+ display: "flex",
50
+ gap: 4
51
+ }
52
+ }), st = ({ beginDate: t, date: o, endDate: e, isInMonth: l, onClick: m }) => {
53
+ const h = nt(), x = dt(h), a = t && e && tt(o, { start: t, end: e }) && !d(o, t) && !d(o, e), f = t && e && d(t, o) && !d(t, e), c = e && t && d(e, o) && !d(t, e), i = t && d(t, o) || e && d(e, o), u = d(o, $());
54
+ return /* @__PURE__ */ n(
55
+ "div",
56
+ {
57
+ className: `
58
+ mx-cmn-calendar-day
59
+ ${x}
60
+ ${l ? "" : "mx-cmn-out-of-month"}
61
+ ${a ? "mx-cmn-date-interval" : ""}
62
+ `,
63
+ children: /* @__PURE__ */ n(
64
+ C,
65
+ {
66
+ className: `
67
+ mx-cmn-calendar-day-button
68
+ ${f ? "mx-cmn-range-start" : ""}
69
+ ${c ? "mx-cmn-range-end" : ""}
70
+ `,
71
+ color: i ? "primary" : "secondary",
72
+ onClick: () => m(o),
73
+ variant: i ? "contained" : "text",
74
+ children: /* @__PURE__ */ n(
75
+ _,
76
+ {
77
+ className: `
78
+ mx-cmn-calendar-day-text
79
+ ${i ? "mx-cmn-day-selected" : ""}
80
+ ${u ? "mx-cmn-today" : ""}`,
81
+ variant: "Small",
82
+ children: j(o, "d")
83
+ }
84
+ )
85
+ }
86
+ )
87
+ }
88
+ );
89
+ }, dt = (t) => M({
90
+ height: w,
91
+ width: w,
92
+ display: "flex",
93
+ justifyContent: "center",
94
+ "&.mx-cmn-out-of-month": {
95
+ backgroundColor: t.palette.background.default
96
+ },
97
+ "&.mx-cmn-date-interval": {
98
+ backgroundColor: t.palette.secondary.light
99
+ },
100
+ "& .MuiButton-root": {
101
+ maxWidth: 44,
102
+ minWidth: 44,
103
+ height: 44,
104
+ padding: 0,
105
+ width: 44,
106
+ "&.mx-cmn-range-start": {
107
+ borderTopRightRadius: 0,
108
+ borderBottomRightRadius: 0,
109
+ "&:focus": {
110
+ boxShadow: "none"
111
+ }
112
+ },
113
+ "&.mx-cmn-range-end": {
114
+ borderTopLeftRadius: 0,
115
+ borderBottomLeftRadius: 0,
116
+ "&:focus": {
117
+ boxShadow: "none"
118
+ }
119
+ }
120
+ },
121
+ "& .mx-cmn-calendar-day-text": {
122
+ "&.mx-cmn-day-selected": {
123
+ color: t.palette.primary,
124
+ "&.mx-cmn-day-selected": {
125
+ borderColor: t.palette.common.white
126
+ }
127
+ },
128
+ "&.mx-cmn-today": {
129
+ borderBottom: `solid 2px ${t.palette.primary.main}`,
130
+ marginBottom: -6,
131
+ paddingBottom: 5
132
+ }
133
+ }
134
+ }), ht = 340, w = 44;
135
+ var ft = /* @__PURE__ */ ((t) => (t.None = "None", t.Single = "Single", t.Range = "Range", t))(ft || {});
136
+ const pt = ({
137
+ copy: t,
138
+ beginDate: o = void 0,
139
+ endDate: e = void 0,
140
+ onDateSelected: l,
141
+ onRangeSelected: m,
142
+ selectionType: h = "Single"
143
+ /* Single */
144
+ }) => {
145
+ const x = xt(), [a, f] = b.useState($), [c, i] = b.useState(o), [u, s] = b.useState(e);
146
+ b.useEffect(() => {
147
+ i(o), s(e), o && f(o);
148
+ }, [o, e]);
149
+ const k = b.useMemo(() => {
150
+ const r = F({ start: Y(a), end: L(a) }), y = [];
151
+ for (let v = 0; v < r.length; v++) {
152
+ const N = r[v], E = W({ start: N, end: H(N, 6) }), A = [];
153
+ for (let R = 0; R < E.length; R++)
154
+ A.push(E[R]);
155
+ y.push(A);
156
+ }
157
+ return y;
158
+ }, [a]), S = (r) => {
159
+ if (h !== "None") {
160
+ if (h === "Single") {
161
+ i(r), l?.(r);
162
+ return;
163
+ }
164
+ !c || u ? (i(r), s(void 0)) : z(r, c) ? (s(c), i(r), m?.(r, c)) : (s(r), m?.(c, r));
165
+ }
166
+ }, I = () => {
167
+ const r = $();
168
+ f(r), h !== "None" && (i(r), h === "Single" ? l?.(r) : (s(r), m?.(r, r)));
169
+ }, g = () => {
170
+ f(O(a, 1));
171
+ }, T = () => {
172
+ f(Z(a, 1));
173
+ };
174
+ return /* @__PURE__ */ n("div", { className: `mx-cmn-calendar ${x}`, children: /* @__PURE__ */ p(q, { sx: { boxShadow: "none" }, children: [
175
+ /* @__PURE__ */ n(
176
+ ct,
177
+ {
178
+ copy: t,
179
+ date: a,
180
+ onNextClick: g,
181
+ onPreviousClick: T
182
+ }
183
+ ),
184
+ /* @__PURE__ */ n("div", { className: "mx-cmn-calendar-header-row", children: k[0].map((r, y) => /* @__PURE__ */ n("div", { className: "mx-cmn-calendar-header-cell", children: /* @__PURE__ */ n(_, { bold: !0, variant: "Small", children: j(r, "EEEEE") }) }, y)) }),
185
+ k.map((r, y) => /* @__PURE__ */ n("div", { className: "mx-cmn-calendar-week", children: r.map((v, N) => /* @__PURE__ */ n(
186
+ st,
187
+ {
188
+ beginDate: c,
189
+ date: v,
190
+ endDate: u,
191
+ isInMonth: G(v, a),
192
+ onClick: S
193
+ },
194
+ N
195
+ )) }, `w-${y}`)),
196
+ /* @__PURE__ */ n("div", { className: "mx-cmn-calendar-today-container", children: /* @__PURE__ */ n(C, { onClick: I, size: "small", variant: "text", children: t.today }) })
197
+ ] }) });
198
+ }, xt = () => M({
199
+ width: ht,
200
+ "& .MuiPaper-root": {
201
+ paddingLeft: 24,
202
+ paddingRight: 24,
203
+ paddingTop: 4,
204
+ paddingBottom: 4
205
+ },
206
+ "& .mx-cmn-calendar-header-row": {
207
+ display: "flex",
208
+ justifyContent: "center",
209
+ textAlign: "center",
210
+ "& .mx-cmn-calendar-header-cell": {
211
+ height: w,
212
+ width: w,
213
+ minWidth: w,
214
+ "& .kmui-text": {
215
+ alignItems: "center",
216
+ display: "flex",
217
+ height: "100%",
218
+ justifyContent: "center",
219
+ width: "100%"
220
+ }
221
+ }
222
+ },
223
+ "& .mx-cmn-calendar-week": {
224
+ display: "flex",
225
+ justifyContent: "center",
226
+ textAlign: "center"
227
+ },
228
+ "& .mx-cmn-calendar-today-container": {
229
+ display: "block",
230
+ marginTop: 16,
231
+ textAlign: "center",
232
+ width: "100%",
233
+ "& > .MuiButton-root": {
234
+ display: "inline-block",
235
+ marginLeft: "auto",
236
+ marginRight: "auto"
237
+ }
238
+ }
239
+ }), Dt = pt, ut = ({
240
+ closeAriaLabel: t,
241
+ content: o,
242
+ inputLabel: e,
243
+ inputValue: l,
244
+ isOpen: m,
245
+ handleInputChange: h,
246
+ handleModalClose: x,
247
+ handlePrimaryAction: a,
248
+ handleSecondaryAction: f,
249
+ primaryColor: c = "primary",
250
+ primaryText: i,
251
+ secondaryColor: u = "primary",
252
+ secondaryText: s,
253
+ title: k
254
+ }) => {
255
+ const S = parseFloat(l ?? "0"), I = l !== "" && l !== "0" && !isNaN(S);
256
+ return /* @__PURE__ */ n(
257
+ et,
258
+ {
259
+ "aria-label": k,
260
+ "aria-labelledby": "modal-title",
261
+ maxWidth: "xs",
262
+ onClose: x,
263
+ open: m,
264
+ role: "dialog",
265
+ sx: { "& .MuiDialogContent-root": { p: 0 } },
266
+ children: /* @__PURE__ */ n(rt, { children: /* @__PURE__ */ p(
267
+ "form",
268
+ {
269
+ onSubmit: (g) => {
270
+ g.preventDefault(), a();
271
+ },
272
+ children: [
273
+ /* @__PURE__ */ p(
274
+ B,
275
+ {
276
+ sx: {
277
+ alignItems: "center",
278
+ flexDirection: "row",
279
+ justifyContent: "space-between",
280
+ pb: 12,
281
+ pl: 24,
282
+ position: "relative",
283
+ pr: 16,
284
+ pt: 24
285
+ },
286
+ children: [
287
+ /* @__PURE__ */ n(J, { id: "modal-title", children: k }),
288
+ /* @__PURE__ */ n(
289
+ at,
290
+ {
291
+ "aria-label": t,
292
+ onClick: x,
293
+ sx: { minHeight: 24, position: "absolute", right: 8, top: 18 },
294
+ children: /* @__PURE__ */ n(U, { name: "close", sx: { color: "action.active" } })
295
+ }
296
+ )
297
+ ]
298
+ }
299
+ ),
300
+ /* @__PURE__ */ p(B, { sx: { gap: 24, px: 24 }, children: [
301
+ /* @__PURE__ */ n(K, { variant: "subtitle1", children: o }),
302
+ e && /* @__PURE__ */ n(
303
+ lt,
304
+ {
305
+ InputProps: {
306
+ startAdornment: /* @__PURE__ */ n(it, { position: "start", children: "$" })
307
+ },
308
+ autoFocus: !0,
309
+ inputMode: "decimal",
310
+ inputProps: {
311
+ "aria-label": e,
312
+ noValidate: !0,
313
+ pattern: "[0-9]*\\.?[0-9]*"
314
+ },
315
+ label: e,
316
+ onChange: ({ target: { value: g } }) => {
317
+ /^\d*\.?\d*$/.test(g) && h?.(g);
318
+ },
319
+ type: "text",
320
+ value: l
321
+ }
322
+ )
323
+ ] }),
324
+ /* @__PURE__ */ p(
325
+ ot,
326
+ {
327
+ sx: {
328
+ justifyContent: "flex-end",
329
+ gap: 16,
330
+ p: 24,
331
+ ">:not(style)~:not(style)": { ml: 0 }
332
+ },
333
+ children: [
334
+ s && /* @__PURE__ */ n(
335
+ C,
336
+ {
337
+ "aria-label": s,
338
+ color: u,
339
+ onClick: f,
340
+ children: s
341
+ }
342
+ ),
343
+ /* @__PURE__ */ n(
344
+ C,
345
+ {
346
+ "aria-label": i,
347
+ color: c,
348
+ disabled: e ? !I : !1,
349
+ onClick: a,
350
+ variant: "contained",
351
+ children: i
352
+ }
353
+ )
354
+ ]
355
+ }
356
+ )
357
+ ]
358
+ }
359
+ ) })
360
+ }
361
+ );
362
+ }, Jt = ut, Kt = (t, o) => !!t.find((e) => e.feature_name === o)?.is_enabled;
363
+ export {
364
+ Dt as C,
365
+ ft as a,
366
+ Jt as b,
367
+ Kt as i
368
+ };
@@ -15,9 +15,9 @@ import Ke from "@mui/material/styles/useTheme";
15
15
  import { b as Fe } from "./Localization-2MODESHW.mjs";
16
16
  import He from "@mui/material/CircularProgress";
17
17
  import { makeAutoObservable as se, runInAction as Oe } from "mobx";
18
- import { G as he, a as $e, u as je, b as Ye } from "./useCombineEvents-ARuNN9Xh.mjs";
19
- import { B as me } from "./BeatApi-De2IaqH2.mjs";
20
- import { u as Xe } from "./useWidgetLoadTimer-yzSfT9dS.mjs";
18
+ import { G as he, a as $e, u as je, b as Ye } from "./useCombineEvents-C6fkIgHW.mjs";
19
+ import { B as me } from "./BeatApi-B7yMnwRX.mjs";
20
+ import { u as Xe } from "./useWidgetLoadTimer-Bmgv_UeH.mjs";
21
21
  import Ze from "@mui/material/Card";
22
22
  import Qe from "@mui/material/CardActionArea";
23
23
  import qe from "@mui/material/Avatar";
@@ -12,9 +12,9 @@ import F from "@mui/material/Stack";
12
12
  import { ChevronLeft as ie } from "@mxenabled/mx-icons";
13
13
  import { Icon as f, Text as $, DateRangePicker as q, H2 as se, H3 as le } from "@mxenabled/mxui";
14
14
  import { u as de } from "./useDimensions-CeDR9V8N.mjs";
15
- import { G as me } from "./GlobalAccountFilter-C8mpfudV.mjs";
15
+ import { G as me } from "./GlobalAccountFilter-B3v8E_rC.mjs";
16
16
  import { L as ce } from "./Loader-D3rjKx72.mjs";
17
- import { g as pe, b as ue, u as ge, a as he, W as fe } from "./hooks-0kWPTHNb.mjs";
17
+ import { g as pe, b as ue, u as ge, a as he, W as fe } from "./hooks-zu7yblbi.mjs";
18
18
  import { u as te } from "./useScreenSize-B6JyS_Lj.mjs";
19
19
  import { addMonths as J } from "date-fns/addMonths";
20
20
  import { addDays as be } from "date-fns/addDays";
@@ -37,7 +37,7 @@ import Pe from "@mui/material/ToggleButton";
37
37
  import Ye from "@mui/material/ToggleButtonGroup";
38
38
  import Se from "@mui/material/styles/useTheme";
39
39
  import { u as Le } from "./useAriaLive-MkYebyUR.mjs";
40
- import { D as Ee } from "./Dialog-BqUCsQvo.mjs";
40
+ import { D as Ee } from "./Dialog-DdCwLgrl.mjs";
41
41
  import { D as Ae } from "./Drawer-DV4NTsFg.mjs";
42
42
  import { f as C, D } from "./DateFormats-Cs-NbEZ7.mjs";
43
43
  import { A as Oe } from "./Analytics-i5h6BxR1.mjs";
@@ -10,15 +10,15 @@ import E from "@mui/material/List";
10
10
  import B from "@mui/material/ListSubheader";
11
11
  import W from "@mui/system/Stack";
12
12
  import { useTheme as M1, alpha as y1 } from "@mui/material/styles";
13
- import { u as R, A as x1 } from "../AccountDetailsHeader-hDo7gojQ.mjs";
14
- import { L as w1 } from "../LineChart-Dlp9RAJz.mjs";
13
+ import { u as R, A as x1 } from "../AccountDetailsHeader-BCi1WwkM.mjs";
14
+ import { L as w1 } from "../LineChart-Pu3pKqtQ.mjs";
15
15
  import { g as b1, a as S1, b as R1 } from "../SpendingData-C3bN-37j.mjs";
16
- import { m as T1, u as y, d as k, g as Z, h as m1, b as G, a as E1 } from "../hooks-0kWPTHNb.mjs";
16
+ import { m as T1, u as y, d as k, g as Z, h as m1, b as G, a as E1 } from "../hooks-zu7yblbi.mjs";
17
17
  import { A as N, g as L, N as p1 } from "../Account-BiB1F8lL.mjs";
18
18
  import { I as _1, P as L1, S as f1 } from "../Account-DuOz1a27.mjs";
19
19
  import { a as D1, b as k1 } from "../AccountFields-C-sby5mF.mjs";
20
20
  import { g as i2 } from "../AccountFields-C-sby5mF.mjs";
21
- import { A as U } from "../AccountListItem-CjeAlrPC.mjs";
21
+ import { A as U } from "../AccountListItem-Ceuh5WKe.mjs";
22
22
  import a1 from "@mui/material/Tab";
23
23
  import Z1 from "@mui/material/Tabs";
24
24
  import I1 from "@mui/material/Switch";
@@ -26,13 +26,13 @@ import D from "@mui/material/ListItem";
26
26
  import $ from "@mui/material/ListItemButton";
27
27
  import O from "@mui/material/ListItemText";
28
28
  import { A as S } from "../Analytics-i5h6BxR1.mjs";
29
- import { D as Q } from "../Dialog-BqUCsQvo.mjs";
29
+ import { D as Q } from "../Dialog-DdCwLgrl.mjs";
30
30
  import { b as f } from "../Localization-2MODESHW.mjs";
31
31
  import { D as t1 } from "../Drawer-DV4NTsFg.mjs";
32
32
  import Y from "@mui/material/ListItemAvatar";
33
33
  import N1 from "@mui/material/styles/useTheme";
34
34
  import { Error as g1, CheckCircle as O1, Language as F1 } from "@mxenabled/mx-icons";
35
- import { C as z } from "../ConnectDrawer-BLwcW0Oe.mjs";
35
+ import { C as z } from "../ConnectDrawer-CVt-8rPJ.mjs";
36
36
  import { fromUnixTime as P1 } from "date-fns/fromUnixTime";
37
37
  import { isToday as W1 } from "date-fns/isToday";
38
38
  import { isYesterday as B1 } from "date-fns/isYesterday";
@@ -49,24 +49,24 @@ import X1 from "@mui/material/Select";
49
49
  import J1 from "@mui/material/TextField";
50
50
  import { F as X } from "../Accounts-CseLC3lL.mjs";
51
51
  import { M as a2 } from "../Accounts-CseLC3lL.mjs";
52
- import { C as q1 } from "../CurrencyInput-PMOAH5R3.mjs";
52
+ import { C as q1 } from "../CurrencyInput-CDY0awYV.mjs";
53
53
  import Q1 from "@mui/material/Alert";
54
54
  import e3 from "@mui/material/AlertTitle";
55
55
  import t3 from "@mui/material/Link";
56
56
  import n3 from "@mui/material/Paper";
57
57
  import { subDays as o3, startOfToday as i3, endOfToday as c3 } from "date-fns";
58
- import { T as a3 } from "../TransactionList-DrtItQUk.mjs";
59
- import { T as s3 } from "../TransactionDetails-CurpH7lH.mjs";
58
+ import { T as a3 } from "../TransactionList-BibbhhS9.mjs";
59
+ import { T as s3 } from "../TransactionDetails-Cedp4OOg.mjs";
60
60
  import { T as r1 } from "../TabContentContainer-j01JYR_7.mjs";
61
61
  import { f as d1 } from "../NumberFormatting-DjTD0t3W.mjs";
62
- import { C as l3 } from "../ConnectionsDrawer-UQTh9UEc.mjs";
62
+ import { C as l3 } from "../ConnectionsDrawer-c7HaKeRj.mjs";
63
63
  import { u as H1 } from "../useScreenSize-B6JyS_Lj.mjs";
64
- import { u as n1 } from "../useWidgetLoadTimer-yzSfT9dS.mjs";
64
+ import { u as n1 } from "../useWidgetLoadTimer-Bmgv_UeH.mjs";
65
65
  import { L as o1 } from "../Loader-D3rjKx72.mjs";
66
- import { W as r3 } from "../WidgetContainer-B5jzz8M1.mjs";
67
- import { M as A1 } from "../MiniWidgetContainer-B4gbUTJ2.mjs";
68
- import { A as l2 } from "../AccountApi-DgZ8ILj1.mjs";
69
- import { A as d2 } from "../AccountStore-DdGz1ig2.mjs";
66
+ import { W as r3 } from "../WidgetContainer-sC5KLXHI.mjs";
67
+ import { M as A1 } from "../MiniWidgetContainer-DhEx4qKi.mjs";
68
+ import { A as l2 } from "../AccountApi-JlrX0MwM.mjs";
69
+ import { A as d2 } from "../AccountStore-CSLinWGm.mjs";
70
70
  const d3 = (t, o) => {
71
71
  const n = _1.includes(o) ? b1(t) : [], i = L1.includes(o) ? S1(t) : [], c = f1.includes(o) ? R1(t) : [];
72
72
  return [n, i, c].filter((l) => l.length > 0);
@@ -642,6 +642,7 @@ const d3 = (t, o) => {
642
642
  Q1,
643
643
  {
644
644
  icon: /* @__PURE__ */ e(g1, { filled: !0 }),
645
+ role: "none",
645
646
  severity: "error",
646
647
  sx: {
647
648
  borderLeft: 5,
@@ -2,14 +2,14 @@ import { jsxs as l, jsx as e } from "react/jsx-runtime";
2
2
  import d from "react";
3
3
  import { observer as y } from "mobx-react-lite";
4
4
  import { SurveyQuestionType as S } from "posthog-js";
5
- import j from "@mui/material/Alert";
6
- import A from "@mui/material/Button";
5
+ import A from "@mui/material/Alert";
6
+ import B from "@mui/material/Button";
7
7
  import a from "@mui/material/Stack";
8
8
  import _ from "@mui/material/styles/useTheme";
9
- import { Text as u, TextField as B } from "@mxenabled/mxui";
10
- import { L } from "../Loader-D3rjKx72.mjs";
11
- import { M as W } from "../MiniWidgetContainer-B4gbUTJ2.mjs";
12
- import { j as f, u as b, g as q, b as E } from "../hooks-0kWPTHNb.mjs";
9
+ import { Text as u, TextField as L } from "@mxenabled/mxui";
10
+ import { L as W } from "../Loader-D3rjKx72.mjs";
11
+ import { M as j } from "../MiniWidgetContainer-DhEx4qKi.mjs";
12
+ import { k as f, u as b, g as q, b as E } from "../hooks-zu7yblbi.mjs";
13
13
  import Q from "@mui/material/ToggleButton";
14
14
  import G from "@mui/material/ToggleButtonGroup";
15
15
  const O = () => {
@@ -70,7 +70,7 @@ const O = () => {
70
70
  }, X = y(O), z = () => {
71
71
  const { response: s, setResponse: o } = f(), { analytics: i } = b();
72
72
  return /* @__PURE__ */ e(
73
- B,
73
+ L,
74
74
  {
75
75
  label: i.feedback,
76
76
  multiline: !0,
@@ -112,7 +112,7 @@ const O = () => {
112
112
  s("survey sent", k), g(), C(!0);
113
113
  };
114
114
  return T ? !r && !x ? null : /* @__PURE__ */ l(
115
- W,
115
+ j,
116
116
  {
117
117
  closeLabel: M.close_aria,
118
118
  onClose: $,
@@ -141,7 +141,7 @@ const O = () => {
141
141
  r.type === S.Open && /* @__PURE__ */ e(H, {})
142
142
  ] }),
143
143
  /* @__PURE__ */ e(a, { sx: { px: 24, py: 16 }, children: /* @__PURE__ */ e(
144
- A,
144
+ B,
145
145
  {
146
146
  disabled: !t && !n,
147
147
  onClick: t ? R : F,
@@ -160,11 +160,11 @@ const O = () => {
160
160
  ] }),
161
161
  x && /* @__PURE__ */ l(d.Fragment, { children: [
162
162
  /* @__PURE__ */ e(a, { sx: { px: 24, py: 24 }, children: /* @__PURE__ */ e(u, { bold: !0, truncate: !1, children: c.thank_you }) }),
163
- /* @__PURE__ */ e(a, { sx: { px: 24, pb: 24 }, children: /* @__PURE__ */ e(j, { severity: "success", variant: "filled", children: c.feedback_sent_successfully }) })
163
+ /* @__PURE__ */ e(a, { sx: { px: 24, pb: 24 }, children: /* @__PURE__ */ e(A, { severity: "success", variant: "filled", children: c.feedback_sent_successfully }) })
164
164
  ] })
165
165
  ]
166
166
  }
167
- ) : /* @__PURE__ */ e(L, {});
167
+ ) : /* @__PURE__ */ e(W, {});
168
168
  }, ie = y(I);
169
169
  export {
170
170
  ie as SurveyMiniWidget
@@ -6,4 +6,5 @@ export declare class BudgetsApi {
6
6
  deleteBudget: (guid: string) => Promise<any>;
7
7
  getBudgets: () => Promise<any>;
8
8
  updateBudget: (budget: Budget) => Promise<any>;
9
+ addMerchantBudget: (merchantGuid: string, amount: number) => Promise<any>;
9
10
  }