@mx-cartographer/experiences 9.7.0 → 9.7.2
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 +11 -0
- package/dist/core/types/InsightsInstanceSlotData.d.ts +6 -2
- package/dist/core/types/InsightsInstanceSlotData.es.js.map +1 -1
- package/dist/finstrong/components/ManageDOB.es.js +16 -16
- package/dist/goals/components/GoalList.es.js +1 -1
- package/dist/goals/components/actions/BirthdayAction.es.js +11 -11
- package/dist/insights/components/insights/BillAmountNotStandard/BillAmountNotStandard.es.js +9 -9
- package/dist/insights/components/insights/BillAmountNotStandard/BillAmountNotStandardMUI.es.js +8 -8
- package/dist/insights/components/insights/MonthlySpendingComparisonV2/MonthlySpendingComparisonV2.es.js +9 -9
- package/dist/insights-v2/actionBlocks/MakeTransferActionBlock/MakeTransferActionBlockLayer.es.js +11 -11
- package/dist/insights-v2/actionBlocks/MakeTransferActionBlock/MakeTransferActionBlockLayer.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/MakeTransferActionBlock/layout.d.ts +7 -1
- package/dist/insights-v2/actionBlocks/MakeTransferActionBlock/layout.es.js +24 -11
- package/dist/insights-v2/actionBlocks/MakeTransferActionBlock/layout.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/TransactionDetailsBlock/TransactionDetailsBlock.es.js +4 -4
- package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/TransactionHistoryBlock.es.js +58 -58
- package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/TransactionHistoryBlock.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/useTransactionHistory.d.ts +1 -3
- package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/useTransactionHistory.es.js +14 -13
- package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/useTransactionHistory.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/utils.d.ts +8 -2
- package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/utils.es.js +56 -36
- package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/utils.es.js.map +1 -1
- package/dist/insights-v2/blocks/ChartBlocks/BarchartBlock/BarchartBlock.d.ts +7 -3
- package/dist/insights-v2/blocks/ChartBlocks/BarchartBlock/BarchartBlock.es.js +30 -32
- package/dist/insights-v2/blocks/ChartBlocks/BarchartBlock/BarchartBlock.es.js.map +1 -1
- package/dist/insights-v2/blocks/ChartBlocks/BarchartBlock/utils.d.ts +3 -2
- package/dist/insights-v2/blocks/ChartBlocks/BarchartBlock/utils.es.js +16 -15
- package/dist/insights-v2/blocks/ChartBlocks/BarchartBlock/utils.es.js.map +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/AccountBlock/IconComponent.es.js +5 -5
- package/dist/insights-v2/blocks/ComponentBlocks/DebtsBlock/DebtsBlock.es.js +6 -6
- package/dist/insights-v2/blocks/ComponentBlocks/SaveExtraBlock/SaveExtraBlock.d.ts +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/SaveExtraBlock/SaveExtraBlock.es.js +24 -10
- package/dist/insights-v2/blocks/ComponentBlocks/SaveExtraBlock/SaveExtraBlock.es.js.map +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/TransactionBlock/TransactionBlock.es.js +4 -4
- package/dist/insights-v2/blocks/ComponentBlocks/UpcomingBillBlock/UpcomingBillBlock.es.js +6 -6
- package/dist/insights-v2/blocks/ComponentBlocks/UpcomingSubscriptionBlock/UpcomingSubscriptionBlock.es.js +1 -1
- package/dist/insights-v2/components/BaseLayout.es.js +24 -24
- package/dist/insights-v2/components/CompactInsightCard.d.ts +4 -2
- package/dist/insights-v2/components/CompactInsightCard.es.js +91 -59
- package/dist/insights-v2/components/CompactInsightCard.es.js.map +1 -1
- package/dist/insights-v2/components/chartblocks/EmptyBarChart.es.js +4 -4
- package/dist/insights-v2/ctaActions/ctaPostMessages.es.js +16 -15
- package/dist/insights-v2/ctaActions/ctaPostMessages.es.js.map +1 -1
- package/dist/insights-v2/index.es.js +122 -121
- package/dist/insights-v2/mappings/blocks.es.js +112 -99
- package/dist/insights-v2/mappings/blocks.es.js.map +1 -1
- package/dist/microinsights/cards/InsightCard.es.js +10 -10
- package/dist/recurringtransactions/components/PaymentSchedule.es.js +11 -11
- package/dist/recurringtransactions/components/RecurringTransactionDetails.es.js +16 -16
- package/dist/settings/components/profile/ProfileTab.es.js +33 -33
- package/dist/transactions/components/shared/TransactionDetails.es.js +5 -4
- package/dist/transactions/components/shared/TransactionDetails.es.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
## [9.7.2] - 10-19-2026
|
|
2
|
+
|
|
3
|
+
- **CHANGED** - The per-bar aria label is built in the frontend (`BAR_ARIA_LABEL`, "{month}: {amount}") for the transaction-history drawer's month tabs, which had an empty aria-label; tupac sends none. The Category Spending V2, Monthly Spend Comparison V2 and Savings Account Balances Summary bar-chart mocks carry `instance_slot.data` so their stories render, with their former `sub_title` as the V2 `subtitle` + `logo` (WEC-1834)
|
|
4
|
+
- **CHANGED** - `BarchartBlock` and the transaction-history drawer read only the Insights 2.0 slot contract, `instance_slot.data` typed as `BarChartBlockData` (`series` as the `data_series` column, `category_guid`, `average_amount`, `additional_data` as the legend rows: `[0]` monthly amount, `[1]` trend), with no `instance_slot_data`. The drawer maps it through `toDrillDownSlotData` (beat transactions are the series' rows). `average_amount` lives on `BarChartBlockData` only. Bill Amount Not Standard is the first beat sending it (WEC-1834)
|
|
5
|
+
- **CHANGED** - The transaction-history drawer's sub-heading and tip read the Insights 2.0 envelope (`subtitle` as the text, the header `logo.guid` as the merchant logo) through `resolveDrillDownSubHeader` (WEC-1834)
|
|
6
|
+
- **ADDED** - Bill Amount Not Standard's Insights 2.0 embedded card (`CompactInsightCard`, rendered by `TransactionDetails` only when `shouldShowEmbeddedCard`): a `category_color` `InsightVisual` (the latest three bars in a `TinyBarChart`, tinted by `instance_slot.data.category_guid`, Figma 222:33404 / 226:33768). Given its `beat`, the card mounts its own `ActionBlockLayer`; a per-beat `BEAT_CTA_CONFIG` names the envelope key a beat's embedded CTA rides on (Bill Amount Not Standard: `in_description_cta`, as tupac sends it) and its drawer trigger, so "View History" calls `openActionDrawer` and opens the transaction history action block, as a bar click does on the full card. Every other beat keeps `primary_cta` and the host's `onCtaClick` (WEC-1834)
|
|
7
|
+
|
|
8
|
+
## [9.7.1] - 10-19-2026
|
|
9
|
+
|
|
10
|
+
- **CHANGED** - `SaveExtraBlock` reads the Insights 2.0 envelope's `instance_slot.data` (`header_text`, `savings_amount`, `primary_text`, `amount`, `secondary_text`) for the Save an Extra $100 V2 template and renders the same `SaveAnExtraCard`; the V1 `instance_slot_data` read is removed. Without a numeric `savings_amount` the block renders nothing (no fabricated `$0.00`), and without `amount` the projected-balance footer is omitted. The Make Transfer drawer reads its facts from `drilldown_data` only (`resolveMakeTransferSlotData`), narrowing each figure to a finite number so a null or string value never reaches `formatCurrency`, and maps the ditto CTA variant `save_extra` explicitly. `ctaPostMessages` gains `SaveAnExtra100DollarsV2` (aliasing the V1 entry) so "Make a Transfer" posts the same `beat/cta` op_1 as V1. Mock payload adds the V2 envelope (WEC-1844)
|
|
11
|
+
|
|
1
12
|
## [9.7.0] - 10-17-2026
|
|
2
13
|
|
|
3
14
|
- **ADDED** - `PaydayCashLeftOverStatus` in `ctaPostMessages`: the primary CTA ("Transfer to Savings" / "Transfer Funds") posts `beat/cta` `op_1` on both variants (WEC-1916)
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { DataSeries, Legends } from '../../core';
|
|
2
|
-
export interface InsightsInstanceSlotData extends Partial<
|
|
2
|
+
export interface InsightsInstanceSlotData extends Partial<BudgetBlockData>, Partial<DonutChartBlockData>, Partial<DoubleProgressBarBlockData>, Partial<ImageBlockData>, Partial<AccountBlockData>, Partial<SaveExtraBlockData>, Partial<StepChartBlockData>, Partial<SVGImageBlockData>, Partial<AccountSwitchBlockData>, Partial<TransactionDetailsBlockData>, Partial<CommonProps> {
|
|
3
3
|
}
|
|
4
4
|
interface CommonProps {
|
|
5
5
|
amount?: number;
|
|
6
|
+
ariaLabel?: string;
|
|
6
7
|
date?: string;
|
|
7
8
|
legends?: Legends[];
|
|
8
9
|
category_guid?: string;
|
|
@@ -12,8 +13,11 @@ interface CommonProps {
|
|
|
12
13
|
primary_transaction_guid?: string;
|
|
13
14
|
}
|
|
14
15
|
export interface BarChartBlockData {
|
|
16
|
+
series?: DataSeries;
|
|
17
|
+
category_guid?: string;
|
|
15
18
|
average_amount?: number;
|
|
16
|
-
|
|
19
|
+
/** [0] monthly amount, [1] trend. */
|
|
20
|
+
additional_data?: Legends[];
|
|
17
21
|
}
|
|
18
22
|
interface Main {
|
|
19
23
|
value: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InsightsInstanceSlotData.es.js","names":[],"sources":["../../../src/core/types/InsightsInstanceSlotData.ts"],"sourcesContent":["import type { DataSeries, Legends } from '../../core'\n\nexport interface InsightsInstanceSlotData\n extends\n Partial<
|
|
1
|
+
{"version":3,"file":"InsightsInstanceSlotData.es.js","names":[],"sources":["../../../src/core/types/InsightsInstanceSlotData.ts"],"sourcesContent":["import type { DataSeries, Legends } from '../../core'\n\nexport interface InsightsInstanceSlotData\n extends\n Partial<BudgetBlockData>,\n Partial<DonutChartBlockData>,\n Partial<DoubleProgressBarBlockData>,\n Partial<ImageBlockData>,\n Partial<AccountBlockData>,\n Partial<SaveExtraBlockData>,\n Partial<StepChartBlockData>,\n Partial<SVGImageBlockData>,\n Partial<AccountSwitchBlockData>,\n Partial<TransactionDetailsBlockData>,\n Partial<CommonProps> {}\n\n//when any of the type is used more than one times, we can use the common props\ninterface CommonProps {\n amount?: number\n ariaLabel?: string\n date?: string\n legends?: Legends[]\n category_guid?: string\n data_series?: DataSeries | DataSet[]\n transaction_guids?: string[]\n account_guids?: string[]\n primary_transaction_guid?: string\n}\n\n//BarChart Block: `instance_slot.data` (Insights 2.0)\nexport interface BarChartBlockData {\n series?: DataSeries\n category_guid?: string\n average_amount?: number\n /** [0] monthly amount, [1] trend. */\n additional_data?: Legends[]\n}\n\n//DonutChart Block\ninterface Main {\n value: string\n value_type: string\n label: string\n}\nexport interface DonutChartBlockData {\n main: Main\n}\n\n//DoubleBarChart Block\n// TODO : This has to be revisited again to update the below types based on API response once we have the final shape of the data_series for double bar chart from BE\nexport interface LegendProps extends Legends {\n amount: number\n formattedAmount: string\n label: string\n color?: string\n}\n\nexport interface DataSet extends DataSeries {\n ariaLabelComparison: string\n ariaLabelMain: string\n comparison: number\n formattedComparison: string\n formattedMain: string\n label: string\n main: number\n}\n\n//DoubleProgressBar Block\n\ninterface DoubleProgressBarProps {\n label: string\n value: number\n}\nexport interface DoubleProgressBarBlockData {\n doubleProgressBar: {\n previous: DoubleProgressBarProps\n latest: DoubleProgressBarProps\n }\n}\n\n//Image Block\nexport interface ImageBlockData {\n image: string\n}\n\n//Account Block\nexport interface AccountBlockData {\n sub_text: string\n institution_guid?: string\n institution_name?: string\n icon_name?: string\n /** Header bar text (standard card), or the colored category strip label (deposit cards). */\n header_text?: string\n // Deposit variants (Unified Deposit, Unified Deposit Emergency Fund, Savings Account Deposit)\n /** Merchant guid — renders a real merchant logo in the deposit card when present. */\n merchant_guid?: string\n /** Merchant display name — logo alt text and the payer line under the amount. */\n merchant_name?: string\n /** Secondary label beside the amount, e.g. `On {date}, you saved` or `Balance as of MM/DD/YY`. */\n label?: string\n}\n\nexport interface SaveExtraBlockData {\n /** Styled segments `[lead-in, amount digits, trailing copy]`, e.g. `['Save an extra', '100', 'to help your funds grow']`. */\n primary_text?: string[]\n /** Styled segments `[projected balance, caption]`, e.g. `['$8,313.87', 'After payday & projected expenses']`. */\n secondary_text?: string[]\n /** MakeTransfer drilldown: available balance (both variants). */\n available_balance?: number\n /** SAVE_ENOUGH_TO_LIVE_ON: average monthly spend. */\n avg_monthly_spend?: number\n /** SAVE_ENOUGH_TO_LIVE_ON: how long the balance lasts, overlaid on the timeline SVG (e.g. \"2 months, 11 days\"). */\n time_period?: string\n /** SAVE_AN_EXTRA_100: upcoming expenses (the \"Expenses\" figure). */\n upcoming_expenses?: number\n /** SAVE_AN_EXTRA_100: total remaining after expenses. */\n total_remaining?: number\n /** SAVE_ENOUGH_TO_LIVE_ON: date for the \"Your available balances as of {date}\" line. */\n date?: string\n}\n\n// AccountSwitch Block. State comes from `instance_slot.variant`, not a data flag.\nexport interface AccountSwitchBlockData {\n discovered_institution_guid: string\n discovered_institution_name: string\n held_institution_guid: string\n held_institution_name: string\n}\n\n// StepChart Block\nexport interface StepChartBlockData {\n completed_steps: number\n label_1: string\n label_2?: string\n}\n\n//Budgets Blocks\nexport enum BudgetTierType {\n LOW_BUDGET_TIER = 'LOW',\n MEDIUM_BUDGET_TIER = 'MEDIUM',\n OFF_TRACK_BUDGET_TIER = 'OFF_TRACK',\n}\n\nexport type BudgetTierValue = `${BudgetTierType}`\n\nexport interface BudgetLocalizedPayload {\n primary_text?: string\n amount_left_label?: string\n spent_label?: string\n budgeted_label?: string\n}\n\nexport interface BudgetBlockData {\n budget_percent: number\n budget_tier: BudgetTierValue\n category_guid?: string\n merchant_guid?: string\n spent_amount: number\n budgeted_amount: number\n localized_payload: BudgetLocalizedPayload\n}\n\nexport interface SVGImageBlockData {\n isCIBC?: boolean\n}\n\n// TransactionDetails Action Block\n// The drawer's subject is `InsightsPayload.primary_transaction_guid`; only action configuration\n// lives here.\nexport interface TransactionDetailsBlockData {\n /** `TopActions` member names, e.g. `['Category', 'Date', 'Memo']`. Omit for the defaults. */\n top_actions?: string[]\n /** `BottomActions` member names, e.g. `['MerchantBudget', 'HideTransaction']`. Omit for defaults. */\n bottom_actions?: string[]\n}\n"],"mappings":"AAyIA,IAAY,IAAL,0BAAA,GAAA;AACL,SAAA,EAAA,kBAAA,OACA,EAAA,qBAAA,UACA,EAAA,wBAAA;AACF,GAAA,CAAA,CAAA"}
|
|
@@ -3,16 +3,16 @@ import g from "../../common/components/drawer/Drawer.es.js";
|
|
|
3
3
|
import y from "react";
|
|
4
4
|
import { observer as b } from "mobx-react-lite";
|
|
5
5
|
import v from "@mui/material/Stack";
|
|
6
|
-
import { jsx as
|
|
7
|
-
import { alpha as
|
|
6
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
7
|
+
import { alpha as e, useTheme as D } from "@mui/material/styles";
|
|
8
8
|
import { AdapterDateFns as S } from "@mui/x-date-pickers/AdapterDateFns";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
var
|
|
12
|
-
const { finstrong: l } = u(),
|
|
9
|
+
import { StaticDatePicker as x } from "@mui/x-date-pickers";
|
|
10
|
+
import { LocalizationProvider as P } from "@mui/x-date-pickers/LocalizationProvider";
|
|
11
|
+
var w = ({ isOpen: n, onClose: a }) => {
|
|
12
|
+
const { finstrong: l } = u(), o = D(), { updateUser: c, user: i } = f(), { loadPeerScore: m } = h(), [r, s] = y.useState(i.birthday), p = (d) => {
|
|
13
13
|
s(Math.floor(new Date(d).getTime() / 1e3));
|
|
14
14
|
};
|
|
15
|
-
return /* @__PURE__ */
|
|
15
|
+
return /* @__PURE__ */ t(g, {
|
|
16
16
|
footerStyles: {
|
|
17
17
|
borderTop: 1,
|
|
18
18
|
borderColor: "divider",
|
|
@@ -31,28 +31,28 @@ var B = ({ isOpen: n, onClose: a }) => {
|
|
|
31
31
|
},
|
|
32
32
|
onSecondaryAction: a,
|
|
33
33
|
title: l.date_of_birth,
|
|
34
|
-
children: /* @__PURE__ */
|
|
34
|
+
children: /* @__PURE__ */ t(v, {
|
|
35
35
|
sx: {
|
|
36
36
|
bgcolor: "background.default",
|
|
37
37
|
height: "100%"
|
|
38
38
|
},
|
|
39
|
-
children: /* @__PURE__ */
|
|
39
|
+
children: /* @__PURE__ */ t(P, {
|
|
40
40
|
dateAdapter: S,
|
|
41
|
-
children: /* @__PURE__ */
|
|
41
|
+
children: /* @__PURE__ */ t(x, {
|
|
42
42
|
disableFuture: !0,
|
|
43
43
|
onChange: p,
|
|
44
44
|
slotProps: {
|
|
45
45
|
nextIconButton: { sx: {
|
|
46
46
|
color: "primary.main",
|
|
47
|
-
"&:hover": { bgcolor: o
|
|
47
|
+
"&:hover": { bgcolor: e(o.palette.primary.light, 0.1) }
|
|
48
48
|
} },
|
|
49
49
|
previousIconButton: { sx: {
|
|
50
50
|
color: "primary.main",
|
|
51
|
-
"&:hover": { bgcolor: o
|
|
51
|
+
"&:hover": { bgcolor: e(o.palette.primary.light, 0.1) }
|
|
52
52
|
} },
|
|
53
53
|
switchViewButton: { sx: {
|
|
54
54
|
color: "primary.main",
|
|
55
|
-
"&:hover": { bgcolor: o
|
|
55
|
+
"&:hover": { bgcolor: e(o.palette.primary.light, 0.1) }
|
|
56
56
|
} }
|
|
57
57
|
},
|
|
58
58
|
slots: {
|
|
@@ -63,7 +63,7 @@ var B = ({ isOpen: n, onClose: a }) => {
|
|
|
63
63
|
width: "100%",
|
|
64
64
|
"& .MuiIconButton-edgeEnd": {
|
|
65
65
|
color: "primary.main",
|
|
66
|
-
"&:hover": { bgcolor: o
|
|
66
|
+
"&:hover": { bgcolor: e(o.palette.primary.light, 0.1) }
|
|
67
67
|
}
|
|
68
68
|
},
|
|
69
69
|
value: r ? /* @__PURE__ */ new Date(r * 1e3) : /* @__PURE__ */ new Date()
|
|
@@ -71,9 +71,9 @@ var B = ({ isOpen: n, onClose: a }) => {
|
|
|
71
71
|
})
|
|
72
72
|
})
|
|
73
73
|
});
|
|
74
|
-
},
|
|
74
|
+
}, O = b(w);
|
|
75
75
|
export {
|
|
76
|
-
|
|
76
|
+
O as default
|
|
77
77
|
};
|
|
78
78
|
|
|
79
79
|
//# sourceMappingURL=ManageDOB.es.js.map
|
|
@@ -12,8 +12,8 @@ import K from "@mui/material/Button";
|
|
|
12
12
|
import { jsx as t, jsxs as i } from "react/jsx-runtime";
|
|
13
13
|
import N from "@mui/material/Card";
|
|
14
14
|
import z from "@mui/material/CardContent";
|
|
15
|
-
import b from "@mui/material/Grid";
|
|
16
15
|
import j from "@mui/material/CardActionArea";
|
|
16
|
+
import b from "@mui/material/Grid";
|
|
17
17
|
var Y = w(({ trackType: c, onAddGoals: f }) => {
|
|
18
18
|
const { isMobile: s } = G(), { goals: n } = R(), { selectedAccountGuids: y } = x(), { orderedGoals: C, setSelectedGoal: a } = A(), d = C.filter((e) => e.track_type === c && (e.track_type !== r.RETIREMENT_TRACK && y.includes(e.account_guid) || e.track_type === r.RETIREMENT_TRACK)), l = d.filter((e) => e.track_type === r.SAVINGS_TRACK && !e.has_been_spent || e.track_type !== r.SAVINGS_TRACK && !e.is_complete), m = d.filter((e) => e.track_type === r.SAVINGS_TRACK && e.has_been_spent || e.track_type !== r.SAVINGS_TRACK && e.is_complete), S = c === r.DEBT_TRACK ? n.zero_state_complete_debt : n.zero_state_complete_savings;
|
|
19
19
|
return /* @__PURE__ */ i(o, {
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { DATE_FORMATS_INTL as b, formatDate as f } from "../../../core/constants/DateFormats.es.js";
|
|
2
2
|
import { useGlobalCopyStore as u, useGoalStore as _, useUserStore as S } from "../../../common/context/hooks.es.js";
|
|
3
|
-
import { ListItemAction as
|
|
3
|
+
import { ListItemAction as v } from "../../../common/components/ListItemAction.es.js";
|
|
4
4
|
import i from "react";
|
|
5
|
-
import { observer as
|
|
5
|
+
import { observer as A } from "mobx-react-lite";
|
|
6
6
|
import { jsx as o } from "react/jsx-runtime";
|
|
7
7
|
import { fromUnixTime as s } from "date-fns/fromUnixTime";
|
|
8
|
-
import { getUnixTime as
|
|
8
|
+
import { getUnixTime as T } from "date-fns/getUnixTime";
|
|
9
9
|
import { AdapterDateFns as x } from "@mui/x-date-pickers/AdapterDateFns";
|
|
10
|
-
import {
|
|
10
|
+
import { isValid as D } from "date-fns/isValid";
|
|
11
11
|
import { DatePicker as g } from "@mui/x-date-pickers";
|
|
12
|
-
import {
|
|
13
|
-
var
|
|
12
|
+
import { LocalizationProvider as E } from "@mui/x-date-pickers/LocalizationProvider";
|
|
13
|
+
var N = A(({ goal: a }) => {
|
|
14
14
|
const { goals: r } = u(), { user: t, updateUser: d } = S(), { setAlert: m } = _(), [e, l] = i.useState(s(t.birthday ?? 0)), [n, p] = i.useState(null), c = a.is_complete, h = async () => {
|
|
15
|
-
e &&
|
|
15
|
+
e && D(e) && (await d({
|
|
16
16
|
...t,
|
|
17
|
-
birthday:
|
|
17
|
+
birthday: T(e)
|
|
18
18
|
}), m(r.alert_goal_updated_birthday));
|
|
19
19
|
};
|
|
20
|
-
return /* @__PURE__ */ o(
|
|
20
|
+
return /* @__PURE__ */ o(v, {
|
|
21
21
|
isDisabled: c,
|
|
22
22
|
isSaveDisabled: !!n,
|
|
23
23
|
label: r.details_birthday,
|
|
@@ -25,7 +25,7 @@ var O = T(({ goal: a }) => {
|
|
|
25
25
|
primaryText: r.details_birthday,
|
|
26
26
|
secondaryText: `${f(s(t.birthday ?? 0), b.MONTH_DAY_YEAR)}`,
|
|
27
27
|
zeroStateText: !a.guid && !t.birthday ? r.add_birthday : void 0,
|
|
28
|
-
children: /* @__PURE__ */ o(
|
|
28
|
+
children: /* @__PURE__ */ o(E, {
|
|
29
29
|
dateAdapter: x,
|
|
30
30
|
children: /* @__PURE__ */ o(g, {
|
|
31
31
|
label: r.details_birthday,
|
|
@@ -38,7 +38,7 @@ var O = T(({ goal: a }) => {
|
|
|
38
38
|
});
|
|
39
39
|
});
|
|
40
40
|
export {
|
|
41
|
-
|
|
41
|
+
N as BirthdayAction
|
|
42
42
|
};
|
|
43
43
|
|
|
44
44
|
//# sourceMappingURL=BirthdayAction.es.js.map
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { ReactComponent as g } from "../../shared/images/EmptyBarChart.es.js";
|
|
2
|
+
import { BarChart as h } from "../../shared/Charts/BarChart/BarChart.es.js";
|
|
3
|
+
import { ThemedSVGImage as d } from "../../shared/ThemedSVGImage.es.js";
|
|
4
|
+
import { BeatCard as l } from "../../shared/InsightsCard/BeatCard.es.js";
|
|
5
|
+
import { InsightButton as u } from "../../shared/InsightsCard/InsightButton.es.js";
|
|
6
6
|
import "react";
|
|
7
7
|
import { jsx as r } from "react/jsx-runtime";
|
|
8
|
-
var S = ({ amounts: i, beat: t, buttonProps: n, color: e, data: o, legendLabelAvg: a, legendLabelMain: f, onBarClick: p, ...m }) => /* @__PURE__ */ r(
|
|
8
|
+
var S = ({ amounts: i, beat: t, buttonProps: n, color: e, data: o, legendLabelAvg: a, legendLabelMain: f, onBarClick: p, ...m }) => /* @__PURE__ */ r(l, {
|
|
9
9
|
...m,
|
|
10
10
|
beat: t,
|
|
11
|
-
button: /* @__PURE__ */ r(
|
|
11
|
+
button: /* @__PURE__ */ r(u, {
|
|
12
12
|
...n,
|
|
13
13
|
beat: t
|
|
14
14
|
}),
|
|
15
|
-
children: o.length > 0 ? /* @__PURE__ */ r(
|
|
15
|
+
children: o.length > 0 ? /* @__PURE__ */ r(h, {
|
|
16
16
|
amounts: i,
|
|
17
17
|
color: e,
|
|
18
18
|
data: o,
|
|
@@ -26,7 +26,7 @@ var S = ({ amounts: i, beat: t, buttonProps: n, color: e, data: o, legendLabelAv
|
|
|
26
26
|
top: 24
|
|
27
27
|
},
|
|
28
28
|
onBarClick: p
|
|
29
|
-
}) : /* @__PURE__ */ r(
|
|
29
|
+
}) : /* @__PURE__ */ r(d, { image: g })
|
|
30
30
|
});
|
|
31
31
|
export {
|
|
32
32
|
S as BillAmountNotStandard
|
package/dist/insights/components/insights/BillAmountNotStandard/BillAmountNotStandardMUI.es.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { ReactComponent as h } from "../../shared/images/EmptyBarChart.es.js";
|
|
2
|
+
import { BarChartV2 as l } from "../../shared/Charts/BarChart/BarChartV2.es.js";
|
|
3
|
+
import { ThemedSVGImage as d } from "../../shared/ThemedSVGImage.es.js";
|
|
4
|
+
import { InsightButton as s } from "../../shared/InsightsCard/InsightButton.es.js";
|
|
5
5
|
import { BeatCardMUI as u } from "../../shared/InsightsCard/BeatCardMUI.es.js";
|
|
6
6
|
import "react";
|
|
7
7
|
import { jsx as r } from "react/jsx-runtime";
|
|
8
8
|
var S = ({ amounts: m, beat: o, buttonProps: i, color: e, data: t, trendAmountLabel: n, monthlyAmountLabel: a, onBarClick: p, selectedTabIndex: f, ...g }) => /* @__PURE__ */ r(u, {
|
|
9
9
|
...g,
|
|
10
10
|
beat: o,
|
|
11
|
-
button: t?.length > 0 && /* @__PURE__ */ r(
|
|
11
|
+
button: t?.length > 0 && /* @__PURE__ */ r(s, {
|
|
12
12
|
...i,
|
|
13
13
|
beat: o
|
|
14
14
|
}),
|
|
15
|
-
children: t.length > 0 ? /* @__PURE__ */ r(
|
|
15
|
+
children: t.length > 0 ? /* @__PURE__ */ r(l, {
|
|
16
16
|
amounts: m,
|
|
17
17
|
color: e,
|
|
18
18
|
data: t,
|
|
@@ -26,12 +26,12 @@ var S = ({ amounts: m, beat: o, buttonProps: i, color: e, data: t, trendAmountLa
|
|
|
26
26
|
onBarClick: p,
|
|
27
27
|
selectedTabIndex: f,
|
|
28
28
|
trendAmountLabel: n
|
|
29
|
-
}) : /* @__PURE__ */ r(
|
|
29
|
+
}) : /* @__PURE__ */ r(d, {
|
|
30
30
|
divProps: { style: {
|
|
31
31
|
marginLeft: 2,
|
|
32
32
|
marginRight: 2
|
|
33
33
|
} },
|
|
34
|
-
image:
|
|
34
|
+
image: h
|
|
35
35
|
})
|
|
36
36
|
});
|
|
37
37
|
export {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { ReactComponent as g } from "../../shared/images/EmptyBarChart.es.js";
|
|
2
|
+
import { BarChart as h } from "../../shared/Charts/BarChart/BarChart.es.js";
|
|
3
|
+
import { ThemedSVGImage as d } from "../../shared/ThemedSVGImage.es.js";
|
|
4
|
+
import { BeatCard as l } from "../../shared/InsightsCard/BeatCard.es.js";
|
|
5
|
+
import { InsightButton as s } from "../../shared/InsightsCard/InsightButton.es.js";
|
|
6
6
|
import "react";
|
|
7
7
|
import { jsx as o } from "react/jsx-runtime";
|
|
8
|
-
var S = ({ amounts: i, beat: r, buttonProps: n, color: e, data: t, legendLabelAvg: p, legendLabelMain: a, onBarClick: f, ...m }) => /* @__PURE__ */ o(
|
|
8
|
+
var S = ({ amounts: i, beat: r, buttonProps: n, color: e, data: t, legendLabelAvg: p, legendLabelMain: a, onBarClick: f, ...m }) => /* @__PURE__ */ o(l, {
|
|
9
9
|
...m,
|
|
10
10
|
beat: r,
|
|
11
|
-
button: /* @__PURE__ */ o(
|
|
11
|
+
button: /* @__PURE__ */ o(s, {
|
|
12
12
|
...n,
|
|
13
13
|
beat: r
|
|
14
14
|
}),
|
|
15
|
-
children: t.length > 0 ? /* @__PURE__ */ o(
|
|
15
|
+
children: t.length > 0 ? /* @__PURE__ */ o(h, {
|
|
16
16
|
amounts: i,
|
|
17
17
|
color: e,
|
|
18
18
|
data: t,
|
|
@@ -26,7 +26,7 @@ var S = ({ amounts: i, beat: r, buttonProps: n, color: e, data: t, legendLabelAv
|
|
|
26
26
|
top: 24
|
|
27
27
|
},
|
|
28
28
|
onBarClick: f
|
|
29
|
-
}) : /* @__PURE__ */ o(
|
|
29
|
+
}) : /* @__PURE__ */ o(d, { image: g })
|
|
30
30
|
});
|
|
31
31
|
export {
|
|
32
32
|
S as MonthlySpendingComparisonV2
|
package/dist/insights-v2/actionBlocks/MakeTransferActionBlock/MakeTransferActionBlockLayer.es.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { useGlobalCopyStore as
|
|
2
|
-
import {
|
|
3
|
-
import { MakeTransferActionBlock as
|
|
4
|
-
import { observer as
|
|
5
|
-
import { jsx as
|
|
6
|
-
var
|
|
7
|
-
const { actionDrawer: o } =
|
|
8
|
-
return /* @__PURE__ */
|
|
1
|
+
import { useGlobalCopyStore as s, useInsightsV2Store as n } from "../../../common/context/hooks.es.js";
|
|
2
|
+
import { resolveMakeTransferSlotData as i, resolveMakeTransferVariant as c } from "./layout.es.js";
|
|
3
|
+
import { MakeTransferActionBlock as f } from "./MakeTransferActionBlock.es.js";
|
|
4
|
+
import { observer as m } from "mobx-react-lite";
|
|
5
|
+
import { jsx as p } from "react/jsx-runtime";
|
|
6
|
+
var M = m(function({ beat: a }) {
|
|
7
|
+
const { actionDrawer: o } = n(), { insights_feed: t } = s(), r = a.insights_payload, e = o.trigger === "secondaryCta" ? r?.secondary_cta : r?.primary_cta;
|
|
8
|
+
return /* @__PURE__ */ p(f, {
|
|
9
9
|
copy: t.make_transfer,
|
|
10
|
-
slotData: r
|
|
11
|
-
variant:
|
|
10
|
+
slotData: i(r),
|
|
11
|
+
variant: c(e?.variant)
|
|
12
12
|
});
|
|
13
13
|
});
|
|
14
14
|
export {
|
|
15
|
-
|
|
15
|
+
M as MakeTransferActionBlockLayer
|
|
16
16
|
};
|
|
17
17
|
|
|
18
18
|
//# sourceMappingURL=MakeTransferActionBlockLayer.es.js.map
|
package/dist/insights-v2/actionBlocks/MakeTransferActionBlock/MakeTransferActionBlockLayer.es.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MakeTransferActionBlockLayer.es.js","names":[],"sources":["../../../../src/insights-v2/actionBlocks/MakeTransferActionBlock/MakeTransferActionBlockLayer.tsx"],"sourcesContent":["import { observer } from 'mobx-react-lite'\n\nimport { useGlobalCopyStore, useInsightsV2Store } from '../../../common'\n\nimport type { Beat } from '../../../core'\
|
|
1
|
+
{"version":3,"file":"MakeTransferActionBlockLayer.es.js","names":[],"sources":["../../../../src/insights-v2/actionBlocks/MakeTransferActionBlock/MakeTransferActionBlockLayer.tsx"],"sourcesContent":["import { observer } from 'mobx-react-lite'\n\nimport { useGlobalCopyStore, useInsightsV2Store } from '../../../common'\n\nimport type { Beat } from '../../../core'\n\nimport { MakeTransferActionBlock } from './MakeTransferActionBlock'\nimport { resolveMakeTransferSlotData, resolveMakeTransferVariant } from './layout'\n\n/**\n * Adapter that plugs MakeTransfer into the ActionBlock registry.\n *\n * The variants are content-only — ActionBlockLayer owns the surrounding Drawer\n * (open/close/title). This adapter derives the variant from the clicked CTA, the\n * copy from GlobalCopyStore, and passes the slot data through; each variant reads\n * the fields it needs.\n */\nexport const MakeTransferActionBlockLayer = observer(function MakeTransferActionBlockLayer({\n beat,\n}: {\n beat: Beat\n}) {\n const { actionDrawer } = useInsightsV2Store()\n const { insights_feed: insightsFeedCopy } = useGlobalCopyStore()\n\n const payload = beat.insights_payload\n const cta =\n actionDrawer.trigger === 'secondaryCta' ? payload?.secondary_cta : payload?.primary_cta\n\n return (\n <MakeTransferActionBlock\n copy={insightsFeedCopy.make_transfer}\n slotData={resolveMakeTransferSlotData(payload)}\n variant={resolveMakeTransferVariant(cta?.variant)}\n />\n )\n})\n"],"mappings":";;;;;AAiBA,IAAa,IAA+B,EAAS,SAAsC,EACzF,MAAA,EAAA,GAGC;AACD,QAAM,EAAE,cAAA,EAAA,IAAiB,EAAmB,GACtC,EAAE,eAAe,EAAA,IAAqB,EAAmB,GAEzD,IAAU,EAAK,kBACf,IACJ,EAAa,YAAY,iBAAiB,GAAS,gBAAgB,GAAS;AAE9E,SACE,gBAAA,EAAC,GAAD;AAAA,IACE,MAAM,EAAiB;AAAA,IACvB,UAAU,EAA4B,CAAO;AAAA,IAC7C,SAAS,EAA2B,GAAK,OAAO;AAAA,EACjD,CAAA;AAEL,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GlobalCopy, MakeTransferCopy } from '../../../core';
|
|
1
|
+
import { GlobalCopy, InsightsPayload, MakeTransferCopy } from '../../../core';
|
|
2
2
|
import { SaveExtraBlockData } from '../../../core/types/InsightsInstanceSlotData';
|
|
3
3
|
/**
|
|
4
4
|
* MakeTransfer drilldown variants. The block uses the VALUE (e.g. "SaveAnExtra100"),
|
|
@@ -21,3 +21,9 @@ export declare const resolveMakeTransferVariant: (variant?: string | null) => Ma
|
|
|
21
21
|
export declare const getMakeTransferDrawerTitle: (variant: string | null | undefined, copy: GlobalCopy) => string;
|
|
22
22
|
/** Coerce a payload figure (number or numeric string) to a number, else undefined. */
|
|
23
23
|
export declare const toNumber: (value?: string | number) => number | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* The drawer's facts from a V2 envelope's `drilldown_data`. `DrilldownData` values are untyped
|
|
26
|
+
* scalars, so each field is narrowed: a null or mistyped value is dropped rather than formatted.
|
|
27
|
+
* undefined when the envelope carries none of them.
|
|
28
|
+
*/
|
|
29
|
+
export declare const resolveMakeTransferSlotData: (payload?: InsightsPayload) => SaveExtraBlockData | undefined;
|
|
@@ -1,18 +1,31 @@
|
|
|
1
|
-
var
|
|
1
|
+
var t = {
|
|
2
2
|
SAVE_ENOUGH_TO_LIVE_ON: "SaveEnoughToLiveOn",
|
|
3
3
|
SAVE_AN_EXTRA_100: "SaveAnExtra100"
|
|
4
|
-
},
|
|
5
|
-
save_enough:
|
|
6
|
-
save_extra:
|
|
7
|
-
},
|
|
4
|
+
}, o = {
|
|
5
|
+
save_enough: t.SAVE_ENOUGH_TO_LIVE_ON,
|
|
6
|
+
save_extra: t.SAVE_AN_EXTRA_100
|
|
7
|
+
}, s = (e) => o[e ?? ""] ?? t.SAVE_AN_EXTRA_100, v = (e, a) => {
|
|
8
8
|
const r = a.insights_feed?.make_transfer;
|
|
9
|
-
return r ?
|
|
10
|
-
},
|
|
9
|
+
return r ? s(e) === t.SAVE_ENOUGH_TO_LIVE_ON ? r.save_enough_title : r.save_extra_title : "";
|
|
10
|
+
}, d = (e) => e == null || e === "" ? void 0 : Number(e), _ = (e) => typeof e == "number" && Number.isFinite(e) ? e : void 0, n = (e) => typeof e == "string" && e !== "" ? e : void 0, E = (e) => {
|
|
11
|
+
const a = e?.drilldown_data;
|
|
12
|
+
if (!a) return;
|
|
13
|
+
const r = {
|
|
14
|
+
available_balance: _(a.available_balance),
|
|
15
|
+
avg_monthly_spend: _(a.avg_monthly_spend),
|
|
16
|
+
upcoming_expenses: _(a.upcoming_expenses),
|
|
17
|
+
total_remaining: _(a.total_remaining),
|
|
18
|
+
time_period: n(a.time_period),
|
|
19
|
+
date: n(a.date)
|
|
20
|
+
};
|
|
21
|
+
return Object.values(r).some((i) => i !== void 0) ? r : void 0;
|
|
22
|
+
};
|
|
11
23
|
export {
|
|
12
|
-
|
|
13
|
-
E as
|
|
14
|
-
|
|
15
|
-
|
|
24
|
+
v as getMakeTransferDrawerTitle,
|
|
25
|
+
E as resolveMakeTransferSlotData,
|
|
26
|
+
s as resolveMakeTransferVariant,
|
|
27
|
+
d as toNumber,
|
|
28
|
+
t as variants
|
|
16
29
|
};
|
|
17
30
|
|
|
18
31
|
//# sourceMappingURL=layout.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layout.es.js","names":[],"sources":["../../../../src/insights-v2/actionBlocks/MakeTransferActionBlock/layout.ts"],"sourcesContent":["import type { GlobalCopy, MakeTransferCopy } from '../../../core'\nimport type { SaveExtraBlockData } from '../../../core/types/InsightsInstanceSlotData'\n\n/**\n * MakeTransfer drilldown variants. The block uses the VALUE (e.g. \"SaveAnExtra100\"),\n * which is also the key each variant registers under (see ./index).\n */\nexport const variants = {\n SAVE_ENOUGH_TO_LIVE_ON: 'SaveEnoughToLiveOn',\n SAVE_AN_EXTRA_100: 'SaveAnExtra100',\n} as const\n\nexport type MakeTransferVariant = (typeof variants)[keyof typeof variants]\n\n// The beat payload sends the variant as a snake_case key; map it to the value. The keys are\n// behavior-named (aligning with the `save_enough_title` / `save_extra_title` copy), not beat-named.\nconst VARIANT_BY_KEY: Record<string, MakeTransferVariant> = {\n save_enough: variants.SAVE_ENOUGH_TO_LIVE_ON,\n save_extra: variants.SAVE_AN_EXTRA_100,\n}\n\n/** Props shared by every MakeTransfer variant. Each variant reads the fields it\n * needs directly off `slotData` — no per-variant key indirection. */\nexport interface MakeTransferVariantProps {\n slotData?: SaveExtraBlockData\n copy: MakeTransferCopy\n}\n\n/** Maps the payload variant key to the block's variant VALUE (defaults to save-extra). */\nexport const resolveMakeTransferVariant = (variant?: string | null): MakeTransferVariant =>\n VARIANT_BY_KEY[variant ?? ''] ?? variants.SAVE_AN_EXTRA_100\n\n/** Variant-specific, localized drawer title from `insights_feed.make_transfer`. */\nexport const getMakeTransferDrawerTitle = (\n variant: string | null | undefined,\n copy: GlobalCopy,\n): string => {\n const makeTransfer = copy.insights_feed?.make_transfer\n if (!makeTransfer) return ''\n return resolveMakeTransferVariant(variant) === variants.SAVE_ENOUGH_TO_LIVE_ON\n ? makeTransfer.save_enough_title\n : makeTransfer.save_extra_title\n}\n\n/** Coerce a payload figure (number or numeric string) to a number, else undefined. */\nexport const toNumber = (value?: string | number): number | undefined =>\n value === undefined || value === null || value === '' ? undefined : Number(value)\n"],"mappings":"AAOA,IAAa,IAAW;AAAA,EACtB,wBAAwB;AAAA,EACxB,mBAAmB;AACrB,GAMM,IAAsD;AAAA,EAC1D,aAAa,EAAS;AAAA,EACtB,YAAY,EAAS;AACvB,GAUa,IAAA,CAA8B,MACzC,EAAe,KAAW,EAAA,KAAO,EAAS,mBAG/B,IAAA,CACX,GACA,MACW;AACX,QAAM,IAAe,EAAK,eAAe;AACzC,SAAK,IACE,EAA2B,CAAO,MAAM,EAAS,yBACpD,EAAa,oBACb,EAAa,mBAHS;AAI5B,GAGa,IAAA,CAAY,MACA,KAAU,QAAQ,MAAU,KAAK,SAAY,OAAO,CAAK"}
|
|
1
|
+
{"version":3,"file":"layout.es.js","names":[],"sources":["../../../../src/insights-v2/actionBlocks/MakeTransferActionBlock/layout.ts"],"sourcesContent":["import type { GlobalCopy, InsightsPayload, MakeTransferCopy } from '../../../core'\nimport type { SaveExtraBlockData } from '../../../core/types/InsightsInstanceSlotData'\n\n/**\n * MakeTransfer drilldown variants. The block uses the VALUE (e.g. \"SaveAnExtra100\"),\n * which is also the key each variant registers under (see ./index).\n */\nexport const variants = {\n SAVE_ENOUGH_TO_LIVE_ON: 'SaveEnoughToLiveOn',\n SAVE_AN_EXTRA_100: 'SaveAnExtra100',\n} as const\n\nexport type MakeTransferVariant = (typeof variants)[keyof typeof variants]\n\n// The beat payload sends the variant as a snake_case key; map it to the value. The keys are\n// behavior-named (aligning with the `save_enough_title` / `save_extra_title` copy), not beat-named.\nconst VARIANT_BY_KEY: Record<string, MakeTransferVariant> = {\n save_enough: variants.SAVE_ENOUGH_TO_LIVE_ON,\n save_extra: variants.SAVE_AN_EXTRA_100,\n}\n\n/** Props shared by every MakeTransfer variant. Each variant reads the fields it\n * needs directly off `slotData` — no per-variant key indirection. */\nexport interface MakeTransferVariantProps {\n slotData?: SaveExtraBlockData\n copy: MakeTransferCopy\n}\n\n/** Maps the payload variant key to the block's variant VALUE (defaults to save-extra). */\nexport const resolveMakeTransferVariant = (variant?: string | null): MakeTransferVariant =>\n VARIANT_BY_KEY[variant ?? ''] ?? variants.SAVE_AN_EXTRA_100\n\n/** Variant-specific, localized drawer title from `insights_feed.make_transfer`. */\nexport const getMakeTransferDrawerTitle = (\n variant: string | null | undefined,\n copy: GlobalCopy,\n): string => {\n const makeTransfer = copy.insights_feed?.make_transfer\n if (!makeTransfer) return ''\n return resolveMakeTransferVariant(variant) === variants.SAVE_ENOUGH_TO_LIVE_ON\n ? makeTransfer.save_enough_title\n : makeTransfer.save_extra_title\n}\n\n/** Coerce a payload figure (number or numeric string) to a number, else undefined. */\nexport const toNumber = (value?: string | number): number | undefined =>\n value === undefined || value === null || value === '' ? undefined : Number(value)\n\nconst numberOf = (value: unknown): number | undefined =>\n typeof value === 'number' && Number.isFinite(value) ? value : undefined\n\nconst stringOf = (value: unknown): string | undefined =>\n typeof value === 'string' && value !== '' ? value : undefined\n\n/**\n * The drawer's facts from a V2 envelope's `drilldown_data`. `DrilldownData` values are untyped\n * scalars, so each field is narrowed: a null or mistyped value is dropped rather than formatted.\n * undefined when the envelope carries none of them.\n */\nexport const resolveMakeTransferSlotData = (\n payload?: InsightsPayload,\n): SaveExtraBlockData | undefined => {\n const data = payload?.drilldown_data\n if (!data) return undefined\n\n const facts: SaveExtraBlockData = {\n available_balance: numberOf(data.available_balance),\n avg_monthly_spend: numberOf(data.avg_monthly_spend),\n upcoming_expenses: numberOf(data.upcoming_expenses),\n total_remaining: numberOf(data.total_remaining),\n time_period: stringOf(data.time_period),\n date: stringOf(data.date),\n }\n\n return Object.values(facts).some((value) => value !== undefined) ? facts : undefined\n}\n"],"mappings":"AAOA,IAAa,IAAW;AAAA,EACtB,wBAAwB;AAAA,EACxB,mBAAmB;AACrB,GAMM,IAAsD;AAAA,EAC1D,aAAa,EAAS;AAAA,EACtB,YAAY,EAAS;AACvB,GAUa,IAAA,CAA8B,MACzC,EAAe,KAAW,EAAA,KAAO,EAAS,mBAG/B,IAAA,CACX,GACA,MACW;AACX,QAAM,IAAe,EAAK,eAAe;AACzC,SAAK,IACE,EAA2B,CAAO,MAAM,EAAS,yBACpD,EAAa,oBACb,EAAa,mBAHS;AAI5B,GAGa,IAAA,CAAY,MACA,KAAU,QAAQ,MAAU,KAAK,SAAY,OAAO,CAAK,GAE5E,IAAA,CAAY,MAChB,OAAO,KAAU,YAAY,OAAO,SAAS,CAAK,IAAI,IAAQ,QAE1D,IAAA,CAAY,MAChB,OAAO,KAAU,YAAY,MAAU,KAAK,IAAQ,QAOzC,IAAA,CACX,MACmC;AACnC,QAAM,IAAO,GAAS;AACtB,MAAI,CAAC,EAAM;AAEX,QAAM,IAA4B;AAAA,IAChC,mBAAmB,EAAS,EAAK,iBAAiB;AAAA,IAClD,mBAAmB,EAAS,EAAK,iBAAiB;AAAA,IAClD,mBAAmB,EAAS,EAAK,iBAAiB;AAAA,IAClD,iBAAiB,EAAS,EAAK,eAAe;AAAA,IAC9C,aAAa,EAAS,EAAK,WAAW;AAAA,IACtC,MAAM,EAAS,EAAK,IAAI;AAAA,EAC1B;AAEA,SAAO,OAAO,OAAO,CAAK,EAAE,KAAA,CAAM,MAAU,MAAU,MAAS,IAAI,IAAQ;AAC7E"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { useGlobalCopyStore as m } from "../../../common/context/hooks.es.js";
|
|
2
2
|
import s from "../../../common/components/Loader.es.js";
|
|
3
|
-
import c from "
|
|
4
|
-
import
|
|
3
|
+
import { useTransactionDetailsBlock as c } from "./useTransactionDetailsBlock.es.js";
|
|
4
|
+
import l from "../../../transactions/components/shared/TransactionDetails.es.js";
|
|
5
5
|
import { observer as f } from "mobx-react-lite";
|
|
6
6
|
import p from "@mui/material/Stack";
|
|
7
7
|
import { Text as d } from "@mxenabled/mxui";
|
|
8
8
|
import { jsx as o } from "react/jsx-runtime";
|
|
9
9
|
var S = f(function({ beat: t }) {
|
|
10
|
-
const { common: i } = m(), { bottomActions: e, isLoading: n, topActions: a, transaction: r } =
|
|
11
|
-
return n ? /* @__PURE__ */ o(s, {}) : r ? /* @__PURE__ */ o(
|
|
10
|
+
const { common: i } = m(), { bottomActions: e, isLoading: n, topActions: a, transaction: r } = c(t);
|
|
11
|
+
return n ? /* @__PURE__ */ o(s, {}) : r ? /* @__PURE__ */ o(l, {
|
|
12
12
|
bottomActions: e,
|
|
13
13
|
shouldShowEmbeddedCard: !1,
|
|
14
14
|
topActions: a,
|