@mx-cartographer/experiences 9.7.195 → 9.7.197

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 (46) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/common/components/Select.d.ts +1 -1
  3. package/dist/common/components/Select.es.js +27 -20
  4. package/dist/common/components/Select.es.js.map +1 -1
  5. package/dist/core/types/localization/InsightsFeedCopy.d.ts +16 -0
  6. package/dist/insights/components/shared/Charts/BarChart/CustomBarPlotV2.d.ts +3 -1
  7. package/dist/insights/components/shared/Charts/BarChart/CustomBarPlotV2.es.js +29 -21
  8. package/dist/insights/components/shared/Charts/BarChart/CustomBarPlotV2.es.js.map +1 -1
  9. package/dist/insights-v2/actionBlocks/EmergencySavingsBlock/EmergencySavingsBlock.es.js +54 -37
  10. package/dist/insights-v2/actionBlocks/EmergencySavingsBlock/EmergencySavingsBlock.es.js.map +1 -1
  11. package/dist/insights-v2/actionBlocks/EmergencySavingsBlock/EmergencySavingsV2.d.ts +23 -0
  12. package/dist/insights-v2/actionBlocks/EmergencySavingsBlock/EmergencySavingsV2.es.js +352 -0
  13. package/dist/insights-v2/actionBlocks/EmergencySavingsBlock/EmergencySavingsV2.es.js.map +1 -0
  14. package/dist/insights-v2/actionBlocks/QuizMerchantBlock/QuizMerchantBlock.es.js +4 -4
  15. package/dist/insights-v2/actionBlocks/SubscriptionStatusModalBlock.es.js +4 -4
  16. package/dist/insights-v2/actionBlocks/TopMerchantsBlock/TopMerchantsBlock.es.js +4 -4
  17. package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/TransactionDrillDown.d.ts +3 -1
  18. package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/TransactionDrillDown.es.js +68 -63
  19. package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/TransactionDrillDown.es.js.map +1 -1
  20. package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/TransactionHistoryBlock.es.js +94 -91
  21. package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/TransactionHistoryBlock.es.js.map +1 -1
  22. package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/layout.d.ts +2 -0
  23. package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/layout.es.js +7 -5
  24. package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/layout.es.js.map +1 -1
  25. package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/StepChartBlock.d.ts +1 -1
  26. package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/StepChartBlock.es.js +12 -7
  27. package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/StepChartBlock.es.js.map +1 -1
  28. package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/index.d.ts +4 -0
  29. package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/index.es.js +7 -5
  30. package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/index.es.js.map +1 -1
  31. package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/variants/MilestoneProgress.d.ts +19 -0
  32. package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/variants/MilestoneProgress.es.js +126 -0
  33. package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/variants/MilestoneProgress.es.js.map +1 -0
  34. package/dist/insights-v2/blocks/ComponentBlocks/MerchantBlock/MerchantBlock.es.js +59 -56
  35. package/dist/insights-v2/blocks/ComponentBlocks/MerchantBlock/MerchantBlock.es.js.map +1 -1
  36. package/dist/insights-v2/blocks/ComponentBlocks/MerchantBlock/layout.d.ts +1 -1
  37. package/dist/insights-v2/blocks/ComponentBlocks/MerchantBlock/layout.es.js +22 -11
  38. package/dist/insights-v2/blocks/ComponentBlocks/MerchantBlock/layout.es.js.map +1 -1
  39. package/dist/insights-v2/blocks/ComponentBlocks/QuizBlock/QuizBlock.es.js +10 -10
  40. package/dist/insights-v2/components/LogoClusterCard.es.js +9 -8
  41. package/dist/insights-v2/components/LogoClusterCard.es.js.map +1 -1
  42. package/dist/insights-v2/components/TransactionListCard.es.js +4 -4
  43. package/dist/insights-v2/components/chartblocks/BarchartV2.d.ts +9 -1
  44. package/dist/insights-v2/components/chartblocks/BarchartV2.es.js +109 -85
  45. package/dist/insights-v2/components/chartblocks/BarchartV2.es.js.map +1 -1
  46. package/package.json +1 -1
@@ -0,0 +1,352 @@
1
+ import { buildDynamicCopy as W } from "../../../core/utils/Localization.es.js";
2
+ import { CURRENCY_FORMAT as I, formatCurrency as T } from "../../../core/utils/NumberFormatting.es.js";
3
+ import { Select as S } from "../../../common/components/Select.es.js";
4
+ import { SMALL_CARD_SHADOW as H } from "../../components/shared/elevation.es.js";
5
+ import { CADENCES as V, DEADLINE_UNITS as x, calculateContribution as q } from "./layout.es.js";
6
+ import g from "react";
7
+ import { observer as F } from "mobx-react-lite";
8
+ import o from "@mui/material/Stack";
9
+ import { Text as i } from "@mxenabled/mxui";
10
+ import P from "@mui/material/Button";
11
+ import { Icon as C } from "@mxenabled/mx-icons";
12
+ import { jsx as r, jsxs as t } from "react/jsx-runtime";
13
+ import { alpha as U } from "@mui/material/styles";
14
+ import l from "@mui/material/Box";
15
+ import j from "@mui/material/TextField";
16
+ var z = [
17
+ "your_progress",
18
+ "more_to_go",
19
+ "saved_amount",
20
+ "goal_amount",
21
+ "contributed_this_month",
22
+ "increase_your_transfer",
23
+ "next_savings_goal",
24
+ "per_month",
25
+ "per_week",
26
+ "per_two_weeks",
27
+ "use_the_calculator",
28
+ "how_often_will_you_contribute",
29
+ "select_frequency",
30
+ "add_timeline",
31
+ "weekly",
32
+ "monthly"
33
+ ], xe = (n) => z.every((e) => typeof n[e] == "string"), [$, Q, Z] = V, f = [
34
+ {
35
+ cadence: $,
36
+ labelKey: "weekly",
37
+ suffixKey: "per_week"
38
+ },
39
+ {
40
+ cadence: Q,
41
+ labelKey: "every_other_week",
42
+ suffixKey: "per_two_weeks"
43
+ },
44
+ {
45
+ cadence: Z,
46
+ labelKey: "monthly",
47
+ suffixKey: "per_month"
48
+ }
49
+ ], G = f.findIndex(({ labelKey: n }) => n === "monthly"), J = x.findIndex(({ labelKey: n }) => n === "months"), X = "6", u = (n, ...e) => W(n, ...e), ee = (n) => n.replace(/[^0-9]/g, ""), m = (n) => T(n, I.whole), R = (n) => T(n, I.cents), fe = F(function({ copy: e, facts: k }) {
50
+ const { balance: s, goal: d, monthContribution: _, monthlyContribution: D, remaining: M } = k, v = s <= 0, y = d > 0 ? Math.round(Math.min(100, Math.max(0, s / d * 100))) : 0, [h, N] = g.useState(v ? "" : G), [p, K] = g.useState(v ? "" : X), [b, L] = g.useState(J), [w, O] = g.useState({
51
+ amount: D,
52
+ suffix: e.per_month
53
+ }), A = h !== "" && p !== "" && Number(p) > 0, B = (a) => {
54
+ if (a.preventDefault(), h === "") return;
55
+ const { cadence: c, suffixKey: Y } = f[h], E = q({
56
+ balance: s,
57
+ goal: d,
58
+ cadence: c,
59
+ deadline: x[b],
60
+ deadlineQuantity: Number(p)
61
+ });
62
+ E !== void 0 && O({
63
+ amount: E,
64
+ suffix: e[Y]
65
+ });
66
+ };
67
+ return /* @__PURE__ */ t(o, {
68
+ sx: { bgcolor: "background.default" },
69
+ children: [/* @__PURE__ */ r(l, {
70
+ sx: { p: 24 },
71
+ children: /* @__PURE__ */ t(o, {
72
+ "aria-label": e.your_progress,
73
+ role: "region",
74
+ sx: {
75
+ bgcolor: "background.paper",
76
+ borderRadius: "8px",
77
+ boxShadow: H,
78
+ gap: 16,
79
+ p: 16
80
+ },
81
+ children: [/* @__PURE__ */ t(o, {
82
+ sx: { gap: 12 },
83
+ children: [/* @__PURE__ */ t(o, {
84
+ sx: {
85
+ alignItems: "center",
86
+ flexDirection: "row",
87
+ gap: 8
88
+ },
89
+ children: [/* @__PURE__ */ r(l, {
90
+ "aria-hidden": !0,
91
+ sx: (a) => ({
92
+ alignItems: "center",
93
+ bgcolor: U(a.palette.primary.main, 0.15),
94
+ borderRadius: "4px",
95
+ display: "flex",
96
+ flexShrink: 0,
97
+ height: 40,
98
+ justifyContent: "center",
99
+ width: 40
100
+ }),
101
+ children: /* @__PURE__ */ r(C, {
102
+ color: "primary",
103
+ name: "savings",
104
+ size: 20
105
+ })
106
+ }), /* @__PURE__ */ t(o, { children: [/* @__PURE__ */ r(i, {
107
+ variant: "caption",
108
+ children: e.your_progress
109
+ }), /* @__PURE__ */ r(i, {
110
+ component: "p",
111
+ variant: "body2",
112
+ children: u(e.more_to_go, /* @__PURE__ */ r(i, {
113
+ component: "span",
114
+ sx: { fontWeight: "fontWeightBold" },
115
+ variant: "h2",
116
+ children: m(M)
117
+ }, "amount"))
118
+ })] })]
119
+ }), /* @__PURE__ */ t(o, {
120
+ sx: { gap: 4 },
121
+ children: [/* @__PURE__ */ r(l, {
122
+ "aria-label": W(e.saved_amount, m(s)),
123
+ "aria-valuemax": 100,
124
+ "aria-valuemin": 0,
125
+ "aria-valuenow": y,
126
+ role: "progressbar",
127
+ sx: {
128
+ bgcolor: "divider",
129
+ borderRadius: "6px",
130
+ height: 8,
131
+ overflow: "hidden"
132
+ },
133
+ children: /* @__PURE__ */ r(l, { sx: {
134
+ bgcolor: "primary.main",
135
+ borderRadius: "6px",
136
+ height: "100%",
137
+ width: `${y}%`
138
+ } })
139
+ }), /* @__PURE__ */ t(o, {
140
+ sx: {
141
+ flexDirection: "row",
142
+ justifyContent: "space-between"
143
+ },
144
+ children: [/* @__PURE__ */ r(i, {
145
+ color: "text.secondary",
146
+ variant: "caption",
147
+ children: u(e.saved_amount, m(s))
148
+ }), /* @__PURE__ */ r(i, {
149
+ color: "text.secondary",
150
+ variant: "caption",
151
+ children: u(e.goal_amount, m(d))
152
+ })]
153
+ })]
154
+ })]
155
+ }), _ > 0 && /* @__PURE__ */ t(o, {
156
+ role: "note",
157
+ sx: {
158
+ alignItems: "flex-start",
159
+ bgcolor: "primary.lighter",
160
+ borderRadius: "8px",
161
+ flexDirection: "row",
162
+ gap: 8,
163
+ p: 12
164
+ },
165
+ children: [/* @__PURE__ */ r(l, {
166
+ sx: {
167
+ pt: 2,
168
+ px: 4
169
+ },
170
+ children: /* @__PURE__ */ r(C, {
171
+ "aria-hidden": !0,
172
+ color: "primary",
173
+ name: "celebration",
174
+ size: 20
175
+ })
176
+ }), /* @__PURE__ */ t(i, {
177
+ color: "primary.dark",
178
+ component: "p",
179
+ sx: { fontWeight: "fontWeightRegular" },
180
+ variant: "subtitle2",
181
+ children: [
182
+ u(e.contributed_this_month, /* @__PURE__ */ r(i, {
183
+ component: "span",
184
+ sx: {
185
+ fontSize: "inherit",
186
+ fontWeight: "fontWeightBold"
187
+ },
188
+ children: R(_)
189
+ }, "amount")),
190
+ " ",
191
+ e.increase_your_transfer
192
+ ]
193
+ })]
194
+ })]
195
+ })
196
+ }), /* @__PURE__ */ t(o, {
197
+ component: "form",
198
+ onSubmit: B,
199
+ sx: {
200
+ bgcolor: "background.paper",
201
+ borderColor: "divider",
202
+ borderTop: "1px solid",
203
+ gap: 32,
204
+ p: 24
205
+ },
206
+ children: [/* @__PURE__ */ t(o, {
207
+ sx: { gap: 8 },
208
+ children: [/* @__PURE__ */ t(o, {
209
+ "aria-label": e.estimated_contribution,
210
+ role: "group",
211
+ sx: {
212
+ border: "1px solid",
213
+ borderColor: "divider",
214
+ borderRadius: "4px"
215
+ },
216
+ children: [/* @__PURE__ */ r(l, {
217
+ sx: {
218
+ px: 8,
219
+ py: 4
220
+ },
221
+ children: /* @__PURE__ */ r(i, {
222
+ color: "text.secondary",
223
+ sx: {
224
+ letterSpacing: "0.4px",
225
+ textTransform: "uppercase"
226
+ },
227
+ variant: "caption",
228
+ children: u(e.next_savings_goal, /* @__PURE__ */ r(i, {
229
+ bold: !0,
230
+ component: "span",
231
+ sx: {
232
+ color: "text.primary",
233
+ fontSize: "inherit"
234
+ },
235
+ children: m(d)
236
+ }, "goal"))
237
+ })
238
+ }), /* @__PURE__ */ t(o, {
239
+ sx: {
240
+ alignItems: "center",
241
+ bgcolor: "background.default",
242
+ borderColor: "divider",
243
+ borderTop: "1px solid",
244
+ p: 12
245
+ },
246
+ children: [/* @__PURE__ */ t(o, {
247
+ sx: {
248
+ alignItems: "flex-end",
249
+ flexDirection: "row",
250
+ gap: 4
251
+ },
252
+ children: [/* @__PURE__ */ r(i, {
253
+ component: "p",
254
+ sx: { fontWeight: "fontWeightBold" },
255
+ variant: "h2",
256
+ children: R(w.amount)
257
+ }), /* @__PURE__ */ r(i, {
258
+ sx: { fontWeight: "fontWeightRegular" },
259
+ variant: "subtitle2",
260
+ children: w.suffix
261
+ })]
262
+ }), /* @__PURE__ */ r(i, {
263
+ color: "text.secondary",
264
+ sx: { fontWeight: "fontWeightRegular" },
265
+ variant: "subtitle2",
266
+ children: e.estimated_contribution
267
+ })]
268
+ })]
269
+ }), /* @__PURE__ */ r(i, {
270
+ color: "text.secondary",
271
+ sx: { textAlign: "center" },
272
+ truncate: !1,
273
+ variant: "caption",
274
+ children: e.use_the_calculator
275
+ })]
276
+ }), /* @__PURE__ */ t(o, {
277
+ sx: { gap: 16 },
278
+ children: [
279
+ /* @__PURE__ */ r(S, {
280
+ label: e.how_often_will_you_contribute,
281
+ onChange: N,
282
+ options: f.map(({ labelKey: a }, c) => ({
283
+ id: c,
284
+ label: e[a]
285
+ })),
286
+ required: !0,
287
+ slotProps: {
288
+ inputLabel: { shrink: !0 },
289
+ select: {
290
+ displayEmpty: !0,
291
+ renderValue: (a) => a === "" ? e.select_frequency : e[f[a].labelKey]
292
+ }
293
+ },
294
+ value: h
295
+ }),
296
+ /* @__PURE__ */ t(o, {
297
+ "aria-label": e.meet_your_goal_within,
298
+ role: "group",
299
+ sx: { flexDirection: "row" },
300
+ children: [/* @__PURE__ */ r(j, {
301
+ fullWidth: !0,
302
+ label: e.meet_your_goal_within,
303
+ onChange: (a) => K(ee(a.target.value)),
304
+ placeholder: e.add_timeline,
305
+ slotProps: {
306
+ htmlInput: {
307
+ inputMode: "numeric",
308
+ pattern: "[0-9]*"
309
+ },
310
+ inputLabel: { shrink: !0 }
311
+ },
312
+ sx: { "& .MuiOutlinedInput-root": {
313
+ borderBottomRightRadius: 0,
314
+ borderTopRightRadius: 0
315
+ } },
316
+ value: p
317
+ }), /* @__PURE__ */ r(S, {
318
+ label: "",
319
+ onChange: L,
320
+ slotProps: { select: { SelectDisplayProps: { "aria-label": e[x[b].labelKey] } } },
321
+ options: x.map(({ labelKey: a }, c) => ({
322
+ id: c,
323
+ label: e[a]
324
+ })),
325
+ sx: {
326
+ minWidth: 120,
327
+ "& .MuiOutlinedInput-root": {
328
+ borderBottomLeftRadius: 0,
329
+ borderTopLeftRadius: 0
330
+ }
331
+ },
332
+ value: b
333
+ })]
334
+ }),
335
+ /* @__PURE__ */ r(P, {
336
+ disabled: !A,
337
+ fullWidth: !0,
338
+ type: "submit",
339
+ variant: "contained",
340
+ children: e.calculate
341
+ })
342
+ ]
343
+ })]
344
+ })]
345
+ });
346
+ });
347
+ export {
348
+ fe as EmergencySavingsV2,
349
+ xe as hasV2Copy
350
+ };
351
+
352
+ //# sourceMappingURL=EmergencySavingsV2.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EmergencySavingsV2.es.js","names":[],"sources":["../../../../src/insights-v2/actionBlocks/EmergencySavingsBlock/EmergencySavingsV2.tsx"],"sourcesContent":["import React, { type ReactNode } from 'react'\nimport { observer } from 'mobx-react-lite'\n\nimport Box from '@mui/material/Box'\nimport Button from '@mui/material/Button'\nimport Stack from '@mui/material/Stack'\nimport TextField from '@mui/material/TextField'\nimport { alpha } from '@mui/material/styles'\n\nimport { Text } from '@mxenabled/mxui'\nimport { Icon } from '@mxenabled/mx-icons'\n\nimport { Select } from '../../../common'\nimport { buildDynamicCopy } from '../../../core'\nimport type { EmergencySavingsCopy } from '../../../core'\nimport { CURRENCY_FORMAT, formatCurrency } from '../../../core/utils/NumberFormatting'\nimport { SMALL_CARD_SHADOW } from '../../components/shared/elevation'\n\nimport { CADENCES, calculateContribution, DEADLINE_UNITS } from './layout'\n\nconst V2_COPY_KEYS = [\n 'your_progress',\n 'more_to_go',\n 'saved_amount',\n 'goal_amount',\n 'contributed_this_month',\n 'increase_your_transfer',\n 'next_savings_goal',\n 'per_month',\n 'per_week',\n 'per_two_weeks',\n 'use_the_calculator',\n 'how_often_will_you_contribute',\n 'select_frequency',\n 'add_timeline',\n 'weekly',\n 'monthly',\n] as const\n\n/** The drawer's copy with every V2 key present. */\nexport type EmergencySavingsV2Copy = EmergencySavingsCopy &\n Required<Pick<EmergencySavingsCopy, (typeof V2_COPY_KEYS)[number]>>\n\n/** True once mrs_content ships the V2 drawer's words; otherwise the legacy drawer opens. */\nexport const hasV2Copy = (copy: EmergencySavingsCopy): copy is EmergencySavingsV2Copy =>\n V2_COPY_KEYS.every((key) => typeof copy[key] === 'string')\n\n/** The figures the V2 card's CTA carries (ditto monthly_emergency_savings_reminder_v2.yml). */\nexport interface EmergencySavingsFacts {\n balance: number\n goal: number\n remaining: number\n monthlyContribution: number\n monthContribution: number\n}\n\nconst [WEEKLY, EVERY_OTHER_WEEK, MONTHLY_CADENCE] = CADENCES\n\n// Figma 1152:27224: the frequency select (weekly / every other week / monthly).\nconst FREQUENCIES = [\n { cadence: WEEKLY, labelKey: 'weekly', suffixKey: 'per_week' },\n { cadence: EVERY_OTHER_WEEK, labelKey: 'every_other_week', suffixKey: 'per_two_weeks' },\n { cadence: MONTHLY_CADENCE, labelKey: 'monthly', suffixKey: 'per_month' },\n] as const\nconst MONTHLY = FREQUENCIES.findIndex(({ labelKey }) => labelKey === 'monthly')\nconst MONTHS = DEADLINE_UNITS.findIndex(({ labelKey }) => labelKey === 'months')\n// The card's monthly_contribution spreads what's left over six months, so the form starts there.\nconst DEFAULT_TIMELINE_MONTHS = '6'\n\n/** Rich copy (`_1{amount}` with an element) as a node. */\nconst rich = (copy: string, ...args: Parameters<typeof buildDynamicCopy>[1][]) =>\n buildDynamicCopy(copy, ...args) as ReactNode\n\nconst toDigits = (value: string) => value.replace(/[^0-9]/g, '')\nconst whole = (amount: number) => formatCurrency(amount, CURRENCY_FORMAT.whole)\nconst cents = (amount: number) => formatCurrency(amount, CURRENCY_FORMAT.cents)\n\ninterface Props {\n copy: EmergencySavingsV2Copy\n facts: EmergencySavingsFacts\n}\n\n/** The Build Emergency Savings drawer (Figma 1152:27224): progress, the month banner, the estimate and calculator. */\nexport const EmergencySavingsV2 = observer(function EmergencySavingsV2({ copy, facts }: Props) {\n const { balance, goal, monthContribution, monthlyContribution, remaining } = facts\n const isZeroState = balance <= 0\n const percent = goal > 0 ? Math.round(Math.min(100, Math.max(0, (balance / goal) * 100))) : 0\n\n // The zero state opens empty (Select frequency / Add timeline).\n const [frequency, setFrequency] = React.useState<number | ''>(isZeroState ? '' : MONTHLY)\n const [timeline, setTimeline] = React.useState(isZeroState ? '' : DEFAULT_TIMELINE_MONTHS)\n const [unit, setUnit] = React.useState(MONTHS)\n const [estimate, setEstimate] = React.useState({\n amount: monthlyContribution,\n suffix: copy.per_month,\n })\n\n const canCalculate = frequency !== '' && timeline !== '' && Number(timeline) > 0\n\n const handleSubmit = (event: React.FormEvent) => {\n event.preventDefault()\n if (frequency === '') return\n\n const { cadence, suffixKey } = FREQUENCIES[frequency]\n const amount = calculateContribution({\n balance,\n goal,\n cadence,\n deadline: DEADLINE_UNITS[unit],\n deadlineQuantity: Number(timeline),\n })\n if (amount !== undefined) setEstimate({ amount, suffix: copy[suffixKey] })\n }\n\n return (\n <Stack sx={{ bgcolor: 'background.default' }}>\n <Box sx={{ p: 24 }}>\n <Stack\n aria-label={copy.your_progress}\n role=\"region\"\n sx={{\n bgcolor: 'background.paper',\n borderRadius: '8px',\n boxShadow: SMALL_CARD_SHADOW,\n gap: 16,\n p: 16,\n }}\n >\n <Stack sx={{ gap: 12 }}>\n <Stack sx={{ alignItems: 'center', flexDirection: 'row', gap: 8 }}>\n <Box\n aria-hidden={true}\n sx={(theme) => ({\n alignItems: 'center',\n bgcolor: alpha(theme.palette.primary.main, 0.15),\n borderRadius: '4px',\n display: 'flex',\n flexShrink: 0,\n height: 40,\n justifyContent: 'center',\n width: 40,\n })}\n >\n <Icon color=\"primary\" name=\"savings\" size={20} />\n </Box>\n <Stack>\n <Text variant=\"caption\">{copy.your_progress}</Text>\n <Text component=\"p\" variant=\"body2\">\n {rich(\n copy.more_to_go,\n <Text\n component=\"span\"\n key=\"amount\"\n sx={{ fontWeight: 'fontWeightBold' }}\n variant=\"h2\"\n >\n {whole(remaining)}\n </Text>,\n )}\n </Text>\n </Stack>\n </Stack>\n <Stack sx={{ gap: 4 }}>\n <Box\n aria-label={buildDynamicCopy(copy.saved_amount, whole(balance)) as string}\n aria-valuemax={100}\n aria-valuemin={0}\n aria-valuenow={percent}\n role=\"progressbar\"\n sx={{ bgcolor: 'divider', borderRadius: '6px', height: 8, overflow: 'hidden' }}\n >\n <Box\n sx={{\n bgcolor: 'primary.main',\n borderRadius: '6px',\n height: '100%',\n width: `${percent}%`,\n }}\n />\n </Box>\n <Stack sx={{ flexDirection: 'row', justifyContent: 'space-between' }}>\n <Text color=\"text.secondary\" variant=\"caption\">\n {rich(copy.saved_amount, whole(balance))}\n </Text>\n <Text color=\"text.secondary\" variant=\"caption\">\n {rich(copy.goal_amount, whole(goal))}\n </Text>\n </Stack>\n </Stack>\n </Stack>\n {monthContribution > 0 && (\n <Stack\n role=\"note\"\n sx={{\n alignItems: 'flex-start',\n bgcolor: 'primary.lighter',\n borderRadius: '8px',\n flexDirection: 'row',\n gap: 8,\n p: 12,\n }}\n >\n <Box sx={{ pt: 2, px: 4 }}>\n <Icon aria-hidden={true} color=\"primary\" name=\"celebration\" size={20} />\n </Box>\n <Text\n color=\"primary.dark\"\n component=\"p\"\n sx={{ fontWeight: 'fontWeightRegular' }}\n variant=\"subtitle2\"\n >\n {rich(\n copy.contributed_this_month,\n <Text\n component=\"span\"\n key=\"amount\"\n sx={{ fontSize: 'inherit', fontWeight: 'fontWeightBold' }}\n >\n {cents(monthContribution)}\n </Text>,\n )}{' '}\n {copy.increase_your_transfer}\n </Text>\n </Stack>\n )}\n </Stack>\n </Box>\n <Stack\n component=\"form\"\n onSubmit={handleSubmit}\n sx={{\n bgcolor: 'background.paper',\n borderColor: 'divider',\n borderTop: '1px solid',\n gap: 32,\n p: 24,\n }}\n >\n <Stack sx={{ gap: 8 }}>\n <Stack\n aria-label={copy.estimated_contribution}\n role=\"group\"\n sx={{ border: '1px solid', borderColor: 'divider', borderRadius: '4px' }}\n >\n <Box sx={{ px: 8, py: 4 }}>\n <Text\n color=\"text.secondary\"\n sx={{ letterSpacing: '0.4px', textTransform: 'uppercase' }}\n variant=\"caption\"\n >\n {rich(\n copy.next_savings_goal,\n <Text\n bold={true}\n component=\"span\"\n key=\"goal\"\n sx={{ color: 'text.primary', fontSize: 'inherit' }}\n >\n {whole(goal)}\n </Text>,\n )}\n </Text>\n </Box>\n <Stack\n sx={{\n alignItems: 'center',\n bgcolor: 'background.default',\n borderColor: 'divider',\n borderTop: '1px solid',\n p: 12,\n }}\n >\n <Stack sx={{ alignItems: 'flex-end', flexDirection: 'row', gap: 4 }}>\n <Text component=\"p\" sx={{ fontWeight: 'fontWeightBold' }} variant=\"h2\">\n {cents(estimate.amount)}\n </Text>\n <Text sx={{ fontWeight: 'fontWeightRegular' }} variant=\"subtitle2\">\n {estimate.suffix}\n </Text>\n </Stack>\n <Text\n color=\"text.secondary\"\n sx={{ fontWeight: 'fontWeightRegular' }}\n variant=\"subtitle2\"\n >\n {copy.estimated_contribution}\n </Text>\n </Stack>\n </Stack>\n <Text\n color=\"text.secondary\"\n sx={{ textAlign: 'center' }}\n truncate={false}\n variant=\"caption\"\n >\n {copy.use_the_calculator}\n </Text>\n </Stack>\n <Stack sx={{ gap: 16 }}>\n <Select\n label={copy.how_often_will_you_contribute}\n onChange={setFrequency}\n options={FREQUENCIES.map(({ labelKey }, id) => ({ id, label: copy[labelKey] }))}\n required={true}\n slotProps={{\n inputLabel: { shrink: true },\n select: {\n displayEmpty: true,\n renderValue: (v: unknown) =>\n v === '' ? copy.select_frequency : copy[FREQUENCIES[v as number].labelKey],\n },\n }}\n value={frequency}\n />\n <Stack aria-label={copy.meet_your_goal_within} role=\"group\" sx={{ flexDirection: 'row' }}>\n <TextField\n fullWidth={true}\n label={copy.meet_your_goal_within}\n onChange={(event) => setTimeline(toDigits(event.target.value))}\n placeholder={copy.add_timeline}\n slotProps={{\n htmlInput: { inputMode: 'numeric', pattern: '[0-9]*' },\n inputLabel: { shrink: true },\n }}\n sx={{\n '& .MuiOutlinedInput-root': { borderBottomRightRadius: 0, borderTopRightRadius: 0 },\n }}\n value={timeline}\n />\n <Select\n label=\"\"\n onChange={setUnit}\n slotProps={{\n select: {\n SelectDisplayProps: { 'aria-label': copy[DEADLINE_UNITS[unit].labelKey] },\n },\n }}\n options={DEADLINE_UNITS.map(({ labelKey }, id) => ({ id, label: copy[labelKey] }))}\n sx={{\n minWidth: 120,\n '& .MuiOutlinedInput-root': { borderBottomLeftRadius: 0, borderTopLeftRadius: 0 },\n }}\n value={unit}\n />\n </Stack>\n <Button disabled={!canCalculate} fullWidth={true} type=\"submit\" variant=\"contained\">\n {copy.calculate}\n </Button>\n </Stack>\n </Stack>\n </Stack>\n )\n})\n"],"mappings":";;;;;;;;;;;;;;;AAoBA,IAAM,IAAe;AAAA,EACnB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAOa,KAAA,CAAa,MACxB,EAAa,MAAA,CAAO,MAAQ,OAAO,EAAK,CAAA,KAAS,QAAQ,GAWrD,CAAC,GAAQ,GAAkB,CAAA,IAAmB,GAG9C,IAAc;AAAA,EAClB;AAAA,IAAE,SAAS;AAAA,IAAQ,UAAU;AAAA,IAAU,WAAW;AAAA,EAAW;AAAA,EAC7D;AAAA,IAAE,SAAS;AAAA,IAAkB,UAAU;AAAA,IAAoB,WAAW;AAAA,EAAgB;AAAA,EACtF;AAAA,IAAE,SA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AAW;AAAA,gBACT,WAAW;AAAA,kBAAE,WAAW;AAAA,kBAAW,SAAS;AAAA,gBAAS;AAAA,gBACrD,YAAY,EAAE,QAAQ,GAAK;AAAA,cAC7B;AAAA,cACA,IAAI,EACF,4BAA4B;AAAA,gBAAE,yBAAyB;AAAA,gBAAG,sBAAsB;AAAA,cAAE,EACpF;AAAA,cACA,OAAO;AAAA,YACR,CAAA,GACD,gBAAA,EAAC,GAAD;AAAA,cACE,OAAM;AAAA,cACN,UAAU;AAAA,cACV,WAAW,EACT,QAAQ,EACN,oBAAoB,EAAE,cAAc,EAAK,EAAe,CAAA,EAAM,QAAA,EAAU,EAC1E,EACF;AAAA,cACA,SAAS,EAAe,IAAA,CAAK,EAAE,UAAA,EAAA,GAAY,OAAQ;AAAA,gBAAE,IAAA;AAAA,gBAAI,OAAO,EAAK,CAAA;AAAA,cAAU,EAAE;AAAA,cACjF,IAAI;AAAA,gBACF,UAAU;AAAA,gBACV,4BAA4B;AAAA,kBAAE,wBAAwB;AAAA,kBAAG,qBAAqB;AAAA,gBAAE;AAAA,cAClF;AAAA,cACA,OAAO;AAAA,YACR,CAAA,CACI;AAAA;UACP,gBAAA,EAAC,GAAD;AAAA,YAAQ,UAAU,CAAC;AAAA,YAAc,WAAW;AAAA,YAAM,MAAK;AAAA,YAAS,SAAQ;AAAA,YACrE,UAAA,EAAK;AAAA,UACA,CAAA;AAAA,QACH;AAAA,MACF,CAAA,CAAA;AAAA,IACF,CAAA,CAAA;AAAA;AAEX,CAAC"}
@@ -8,8 +8,8 @@ import z from "../../../common/components/drawer/Drawer.es.js";
8
8
  import M from "../../../transactions/components/shared/TransactionList.es.js";
9
9
  import { selectTransactionsByGuids as B } from "../../CommonUtils.es.js";
10
10
  import { merchantTransactions as F, quizMerchantLogo as G } from "../../blocks/ComponentBlocks/QuizBlock/quiz.es.js";
11
- import N from "../../components/LogoFromGuid.es.js";
12
- import { SMALL_CARD_SHADOW as q } from "../../components/shared/elevation.es.js";
11
+ import { SMALL_CARD_SHADOW as N } from "../../components/shared/elevation.es.js";
12
+ import q from "../../components/LogoFromGuid.es.js";
13
13
  import { calendarDateOf as E } from "../TransactionHistoryBlock/utils.es.js";
14
14
  import { TransactionDetailsBlock as W } from "../TransactionDetailsBlock/TransactionDetailsBlock.es.js";
15
15
  import $ from "react";
@@ -70,7 +70,7 @@ var V = (a) => a.reduce((r, { amount: e, transaction_type: c }) => c === R.CREDI
70
70
  sx: {
71
71
  bgcolor: "background.paper",
72
72
  borderRadius: "8px",
73
- boxShadow: q,
73
+ boxShadow: N,
74
74
  gap: 12,
75
75
  p: 16
76
76
  },
@@ -86,7 +86,7 @@ var V = (a) => a.reduce((r, { amount: e, transaction_type: c }) => c === R.CREDI
86
86
  display: "flex",
87
87
  flexShrink: 0
88
88
  },
89
- children: /* @__PURE__ */ o(N, {
89
+ children: /* @__PURE__ */ o(q, {
90
90
  logo: _,
91
91
  size: 56
92
92
  })
@@ -5,9 +5,9 @@ import D from "../../common/components/dialog/Dialog.es.js";
5
5
  import { useBeatActions as Z } from "../beatActions.es.js";
6
6
  import { asLogoRef as J } from "../blocks/slotReaders.es.js";
7
7
  import { USER_RESPONSE as d, answerSubscription as K, repeatingTransactionOf as Q, reportSubscriptionMarkedIncorrect as tt } from "../ctaActions/subscriptionAnswer.es.js";
8
- import ot from "../components/LogoFromGuid.es.js";
8
+ import { ELEVATION_SHADOW as ot } from "../components/shared/elevation.es.js";
9
+ import rt from "../components/LogoFromGuid.es.js";
9
10
  import "../components/celebrationGradients.es.js";
10
- import { ELEVATION_SHADOW as rt } from "../components/shared/elevation.es.js";
11
11
  import et from "../components/TransactionListCard.es.js";
12
12
  import { subscriptionFrequency as st } from "../components/SubscriptionStatus/subscriptionFrequency.es.js";
13
13
  import nt from "../components/shared/StatusSnackbar.es.js";
@@ -23,7 +23,7 @@ import dt from "@mui/material/ButtonBase";
23
23
  var ft = 32, B = {
24
24
  backgroundColor: "background.paper",
25
25
  borderRadius: 1,
26
- boxShadow: rt[16]
26
+ boxShadow: ot[16]
27
27
  }, L = {
28
28
  "& .MuiDialog-paper": B,
29
29
  "& .MuiDialogContent-root": { p: 0 },
@@ -98,7 +98,7 @@ var ft = 32, B = {
98
98
  rows: [{
99
99
  amount: typeof M == "number" ? Y(M, q.cents) : "",
100
100
  amountCaption: st(P, Q(v)),
101
- leading: I ? /* @__PURE__ */ r(ot, {
101
+ leading: I ? /* @__PURE__ */ r(rt, {
102
102
  logo: I,
103
103
  size: ft
104
104
  }) : void 0,
@@ -2,8 +2,8 @@ import { buildDynamicCopy as w, buildPluralCopy as B } from "../../../core/utils
2
2
  import { useGlobalCopyStore as R, useTransactionStore as A } from "../../../common/context/hooks.es.js";
3
3
  import { CURRENCY_FORMAT as _, formatCurrency as x } from "../../../core/utils/NumberFormatting.es.js";
4
4
  import E from "../../../common/components/drawer/Drawer.es.js";
5
- import F from "../../components/LogoMark.es.js";
6
- import { ELEVATION_SHADOW as N } from "../../components/shared/elevation.es.js";
5
+ import { ELEVATION_SHADOW as F } from "../../components/shared/elevation.es.js";
6
+ import N from "../../components/LogoMark.es.js";
7
7
  import { useOpenedCta as G } from "../useOpenedCta.es.js";
8
8
  import { useRequiredCopy as H } from "../useRequiredCopy.es.js";
9
9
  import { TransactionHistoryBlock as L } from "../TransactionHistoryBlock/TransactionHistoryBlock.es.js";
@@ -40,7 +40,7 @@ var $ = (c) => c.insights_feed?.top_merchants, z = "_1{count} transactions", V =
40
40
  display: "flex",
41
41
  flexShrink: 0
42
42
  },
43
- children: /* @__PURE__ */ o(F, {
43
+ children: /* @__PURE__ */ o(N, {
44
44
  logo: {
45
45
  category_guid: t.categoryGuid,
46
46
  merchant_guid: t.merchantGuid,
@@ -103,7 +103,7 @@ var $ = (c) => c.insights_feed?.top_merchants, z = "_1{count} transactions", V =
103
103
  alignItems: "center",
104
104
  bgcolor: "background.paper",
105
105
  borderRadius: "8px",
106
- boxShadow: N[1],
106
+ boxShadow: F[1],
107
107
  gap: 12,
108
108
  p: 16
109
109
  },
@@ -21,8 +21,10 @@ interface TransactionDrillDownProps {
21
21
  transactionFilter?: (selectedIndex: number) => (transaction: Transaction) => boolean;
22
22
  baseTransactions?: Transaction[];
23
23
  subTabs?: Omit<SubTabsProps, 'id'>;
24
+ showTransactionsHeader?: boolean;
25
+ listLabel?: string;
24
26
  }
25
- export declare const TransactionDrillDown: (({ ariaLabel, heading, subHeadingText, icon, logo, tabs, selectedIndex, top, onSelectionChange, transactionFilter, tipSection, onEachRowClick, baseTransactions, subTabs, }: TransactionDrillDownProps) => import("react/jsx-runtime").JSX.Element) & {
27
+ export declare const TransactionDrillDown: (({ ariaLabel, heading, subHeadingText, icon, logo, tabs, selectedIndex, top, onSelectionChange, transactionFilter, tipSection, onEachRowClick, baseTransactions, subTabs, showTransactionsHeader, listLabel, }: TransactionDrillDownProps) => import("react/jsx-runtime").JSX.Element) & {
26
28
  displayName: string;
27
29
  };
28
30
  export default TransactionDrillDown;