@mx-cartographer/experiences 9.7.37 → 9.7.39
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 +14 -0
- package/dist/core/types/localization/InsightsFeedCopy.d.ts +30 -0
- package/dist/core/types/localization/index.d.ts +1 -1
- package/dist/core/utils/NumberFormatting.d.ts +5 -0
- package/dist/core/utils/NumberFormatting.es.js +19 -15
- package/dist/core/utils/NumberFormatting.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/AccountListBlock/AccountListBlock.d.ts +10 -0
- package/dist/insights-v2/actionBlocks/AccountListBlock/AccountListBlock.es.js +36 -0
- package/dist/insights-v2/actionBlocks/AccountListBlock/AccountListBlock.es.js.map +1 -0
- package/dist/insights-v2/actionBlocks/AccountListBlock/AccountListContent.d.ts +22 -0
- package/dist/insights-v2/actionBlocks/AccountListBlock/AccountListContent.es.js +176 -0
- package/dist/insights-v2/actionBlocks/AccountListBlock/AccountListContent.es.js.map +1 -0
- package/dist/insights-v2/actionBlocks/AccountListBlock/index.d.ts +2 -0
- package/dist/insights-v2/actionBlocks/AccountListBlock/layout.d.ts +20 -0
- package/dist/insights-v2/actionBlocks/AccountListBlock/layout.es.js +24 -0
- package/dist/insights-v2/actionBlocks/AccountListBlock/layout.es.js.map +1 -0
- package/dist/insights-v2/actionBlocks/AccountListBlock/useAccountListPrepare.d.ts +1 -0
- package/dist/insights-v2/actionBlocks/AccountListBlock/useAccountListPrepare.es.js +13 -0
- package/dist/insights-v2/actionBlocks/AccountListBlock/useAccountListPrepare.es.js.map +1 -0
- package/dist/insights-v2/actionBlocks/RemainingCashBlock/RemainingCashContent.es.js +1 -1
- package/dist/insights-v2/actionBlocks/RemainingCashBlock/RemainingCashContent.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/RemainingCashBlock/layout.d.ts +0 -5
- package/dist/insights-v2/actionBlocks/RemainingCashBlock/layout.es.js +5 -10
- package/dist/insights-v2/actionBlocks/RemainingCashBlock/layout.es.js.map +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/UpcomingSubscriptionBlock/UpcomingSubscriptionBlock.d.ts +3 -4
- package/dist/insights-v2/blocks/ComponentBlocks/UpcomingSubscriptionBlock/UpcomingSubscriptionBlock.es.js +49 -35
- package/dist/insights-v2/blocks/ComponentBlocks/UpcomingSubscriptionBlock/UpcomingSubscriptionBlock.es.js.map +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/UpcomingSubscriptionBlock/layout.d.ts +12 -0
- package/dist/insights-v2/blocks/ComponentBlocks/UpcomingSubscriptionBlock/layout.es.js +37 -2
- package/dist/insights-v2/blocks/ComponentBlocks/UpcomingSubscriptionBlock/layout.es.js.map +1 -1
- package/dist/insights-v2/components/SubscriptionHeroCard.d.ts +5 -1
- package/dist/insights-v2/components/SubscriptionHeroCard.es.js +22 -21
- package/dist/insights-v2/components/SubscriptionHeroCard.es.js.map +1 -1
- package/dist/insights-v2/mappings/actionBlocksKey.d.ts +1 -0
- package/dist/insights-v2/mappings/actionBlocksKey.es.js +2 -1
- package/dist/insights-v2/mappings/actionBlocksKey.es.js.map +1 -1
- package/dist/insights-v2/mappings/blocks.es.js +54 -47
- package/dist/insights-v2/mappings/blocks.es.js.map +1 -1
- package/dist/recurringtransactions/components/RecurringTransactionDetails.es.js +105 -105
- package/dist/recurringtransactions/components/RecurringTransactionDetails.es.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,48 +1,50 @@
|
|
|
1
1
|
import { ContactSupportActionBlock as p } from "../actionBlocks/ContactSupportActionBlock.es.js";
|
|
2
|
-
import { hasDrawerBlock as
|
|
2
|
+
import { hasDrawerBlock as to } from "./hasDrawerBlock.es.js";
|
|
3
3
|
import { actionBlocksKey as o } from "./actionBlocksKey.es.js";
|
|
4
4
|
import { BarchartBlock as m } from "../blocks/ChartBlocks/BarchartBlock/BarchartBlock.es.js";
|
|
5
5
|
import { DoubleBarChartBlock as _ } from "../blocks/ChartBlocks/DoubleBarChartBlock/DoubleBarChartBlock.es.js";
|
|
6
6
|
import s from "../blocks/ChartBlocks/StepChartBlock/StepChartBlock.es.js";
|
|
7
7
|
import C from "../blocks/ChartBlocks/DonutChartBlock/DonutChartBlock.es.js";
|
|
8
|
-
import
|
|
9
|
-
import
|
|
8
|
+
import B from "../blocks/ChartBlocks/DoubleProgressBarBlock/DoubleProgressBarBlock.es.js";
|
|
9
|
+
import k from "../blocks/ComponentBlocks/DetailedAccountBlock/DetailedAccountBlock.es.js";
|
|
10
10
|
import u from "../blocks/ComponentBlocks/AccountBlock/AccountBlock.es.js";
|
|
11
11
|
import f from "../blocks/ComponentBlocks/AccountSwitchBlock/AccountSwitchBlock.es.js";
|
|
12
|
-
import { BudgetBlock as
|
|
13
|
-
import
|
|
12
|
+
import { BudgetBlock as A } from "../blocks/ComponentBlocks/BudgetBlock/BudgetBlock.es.js";
|
|
13
|
+
import T from "../blocks/ComponentBlocks/DebtsBlock/DebtsBlock.es.js";
|
|
14
14
|
import O from "../blocks/ComponentBlocks/GoalsBlock/GoalsBlock.es.js";
|
|
15
15
|
import d from "../blocks/ComponentBlocks/NoSpendDaysBlock/NoSpendDaysBlock.es.js";
|
|
16
16
|
import n from "../blocks/ComponentBlocks/RepeatingTransactionBlock/RepeatingTransactionBlock.es.js";
|
|
17
17
|
import N from "../blocks/ComponentBlocks/SaveExtraBlock/SaveExtraBlock.es.js";
|
|
18
|
-
import
|
|
19
|
-
import { TransactionBlock as
|
|
18
|
+
import I from "../blocks/ComponentBlocks/SavingsOpportunityBlock/SavingsOpportunityBlock.es.js";
|
|
19
|
+
import { TransactionBlock as g } from "../blocks/ComponentBlocks/TransactionBlock/TransactionBlock.es.js";
|
|
20
20
|
import b from "../blocks/ComponentBlocks/UpcomingSubscriptionBlock/UpcomingSubscriptionBlock.es.js";
|
|
21
|
-
import
|
|
22
|
-
import
|
|
21
|
+
import L from "../blocks/ComponentBlocks/WithdrawalBlock/WithdrawalBlock.es.js";
|
|
22
|
+
import P from "../blocks/ImageBlocks/ImageBlock.es.js";
|
|
23
23
|
import { SVGImageBlock as D } from "../blocks/ImageBlocks/SVGImageBlock/SVGImageBlock.es.js";
|
|
24
24
|
import { FeedbackModalActionBlock as h } from "../actionBlocks/FeedbackModalActionBlock.es.js";
|
|
25
|
-
import { ConnectionDetailActionBlock as
|
|
26
|
-
import { ConnectWidgetActionBlock as
|
|
25
|
+
import { ConnectionDetailActionBlock as S } from "../actionBlocks/ConnectionDetailActionBlock.es.js";
|
|
26
|
+
import { ConnectWidgetActionBlock as E } from "../actionBlocks/ConnectWidgetActionBlock.es.js";
|
|
27
27
|
import { SurveyModalActionBlock as R } from "../actionBlocks/SurveyModalActionBlock.es.js";
|
|
28
28
|
import { PlaceholderActionBlock as v } from "../actionBlocks/PlaceholderActionBlock.es.js";
|
|
29
|
-
import { getMakeTransferDrawerTitle as
|
|
30
|
-
import { MakeTransferActionBlockLayer as
|
|
29
|
+
import { getMakeTransferDrawerTitle as K } from "../actionBlocks/MakeTransferActionBlock/layout.es.js";
|
|
30
|
+
import { MakeTransferActionBlockLayer as y } from "../actionBlocks/MakeTransferActionBlock/MakeTransferActionBlockLayer.es.js";
|
|
31
31
|
import { getDrawerHeaderTitle as M } from "../actionBlocks/TransactionHistoryBlock/utils.es.js";
|
|
32
32
|
import { TransactionDetailsBlock as U } from "../actionBlocks/TransactionDetailsBlock/TransactionDetailsBlock.es.js";
|
|
33
|
-
import { useTransactionDetailsPrepare as
|
|
33
|
+
import { useTransactionDetailsPrepare as c } from "../actionBlocks/TransactionDetailsBlock/useTransactionDetailsPrepare.es.js";
|
|
34
34
|
import { TransactionHistoryBlock as w } from "../actionBlocks/TransactionHistoryBlock/TransactionHistoryBlock.es.js";
|
|
35
|
-
import { useRecurringTransactionPrepare as
|
|
35
|
+
import { useRecurringTransactionPrepare as l } from "../actionBlocks/RecurringTransactionBlock/useRecurringTransactionPrepare.es.js";
|
|
36
36
|
import { RecurringTransactionBlock as G } from "../actionBlocks/RecurringTransactionBlock/RecurringTransactionBlock.es.js";
|
|
37
37
|
import { TransactionListBlock as F } from "../actionBlocks/TransactionListBlock/TransactionListBlock.es.js";
|
|
38
38
|
import { RemainingCashBlock as H } from "../actionBlocks/RemainingCashBlock/RemainingCashBlock.es.js";
|
|
39
39
|
import { AmountInputModalBlock as x } from "../actionBlocks/AmountInputModalBlock/AmountInputModalBlock.es.js";
|
|
40
40
|
import { OverdraftBlock as V, useOverdraftPrepare as Y } from "../actionBlocks/OverdraftBlock/OverdraftBlock.es.js";
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
41
|
+
import { AccountListBlock as z } from "../actionBlocks/AccountListBlock/AccountListBlock.es.js";
|
|
42
|
+
import { useAccountListPrepare as W } from "../actionBlocks/AccountListBlock/useAccountListPrepare.es.js";
|
|
43
|
+
import { EmergencySavingsBlock as q } from "../actionBlocks/EmergencySavingsBlock/EmergencySavingsBlock.es.js";
|
|
44
|
+
import { CreditUtilizationBlock as Z } from "../actionBlocks/CreditUtilizationBlock/CreditUtilizationBlock.es.js";
|
|
45
|
+
import { useCreditUtilizationPrepare as j } from "../actionBlocks/CreditUtilizationBlock/useCreditUtilizationPrepare.es.js";
|
|
46
|
+
import { PayoffCalculatorBlock as J, usePayoffCalculatorPrepare as Q } from "../actionBlocks/PayoffCalculatorBlock/PayoffCalculatorBlock.es.js";
|
|
47
|
+
import { BudgetDetailsBlock as X } from "../actionBlocks/BudgetDetailsBlock/BudgetDetailsBlock.es.js";
|
|
46
48
|
var i = (e) => {
|
|
47
49
|
}, t = (e) => ({
|
|
48
50
|
get Component() {
|
|
@@ -57,16 +59,16 @@ var i = (e) => {
|
|
|
57
59
|
get presentation() {
|
|
58
60
|
return e().presentation;
|
|
59
61
|
}
|
|
60
|
-
}),
|
|
62
|
+
}), Zo = {
|
|
61
63
|
[o.PLACEHOLDER_ACTION_BLOCK]: t(() => ({
|
|
62
64
|
Component: v,
|
|
63
65
|
usePrepare: i,
|
|
64
66
|
title: () => "Action Block Layer Drilldown"
|
|
65
67
|
})),
|
|
66
68
|
[o.MAKE_TRANSFER_ACTION_BLOCK]: t(() => ({
|
|
67
|
-
Component:
|
|
69
|
+
Component: y,
|
|
68
70
|
usePrepare: i,
|
|
69
|
-
title:
|
|
71
|
+
title: K
|
|
70
72
|
})),
|
|
71
73
|
[o.TRANSCATION_HISTORY_ACTION_BLOCK]: t(() => ({
|
|
72
74
|
Component: w,
|
|
@@ -75,17 +77,17 @@ var i = (e) => {
|
|
|
75
77
|
})),
|
|
76
78
|
[o.TRANSACTION_DETAILS_ACTION_BLOCK]: t(() => ({
|
|
77
79
|
Component: U,
|
|
78
|
-
usePrepare:
|
|
80
|
+
usePrepare: c,
|
|
79
81
|
title: () => "Transaction Details"
|
|
80
82
|
})),
|
|
81
83
|
[o.RECURRING_TRANSACTION_ACTION_BLOCK]: t(() => ({
|
|
82
84
|
Component: G,
|
|
83
|
-
usePrepare:
|
|
85
|
+
usePrepare: l,
|
|
84
86
|
title: (e, r) => r.recurring?.expense_details ?? ""
|
|
85
87
|
})),
|
|
86
88
|
[o.REMAINING_CASH_ACTION_BLOCK]: t(() => ({
|
|
87
89
|
Component: H,
|
|
88
|
-
usePrepare:
|
|
90
|
+
usePrepare: l,
|
|
89
91
|
title: (e, r) => r.insights_feed?.remaining_cash?.title ?? ""
|
|
90
92
|
})),
|
|
91
93
|
[o.CONTACT_SUPPORT_ACTION_BLOCK]: t(() => ({
|
|
@@ -99,12 +101,12 @@ var i = (e) => {
|
|
|
99
101
|
presentation: "modal"
|
|
100
102
|
})),
|
|
101
103
|
[o.CONNECTION_DETAIL_ACTION_BLOCK]: t(() => ({
|
|
102
|
-
Component:
|
|
104
|
+
Component: S,
|
|
103
105
|
usePrepare: i,
|
|
104
106
|
title: (e, r) => r.insights_feed?.connection_details?.connection_details_drawer_title ?? ""
|
|
105
107
|
})),
|
|
106
108
|
[o.CONNECT_WIDGET_ACTION_BLOCK]: t(() => ({
|
|
107
|
-
Component:
|
|
109
|
+
Component: E,
|
|
108
110
|
usePrepare: i
|
|
109
111
|
})),
|
|
110
112
|
[o.SURVEY_MODAL_ACTION_BLOCK]: t(() => ({
|
|
@@ -114,7 +116,7 @@ var i = (e) => {
|
|
|
114
116
|
})),
|
|
115
117
|
[o.TRANSACTION_LIST_ACTION_BLOCK]: t(() => ({
|
|
116
118
|
Component: F,
|
|
117
|
-
usePrepare:
|
|
119
|
+
usePrepare: c,
|
|
118
120
|
title: (e, r, a) => a?.insights_payload?.title ?? ""
|
|
119
121
|
})),
|
|
120
122
|
[o.AMOUNT_INPUT_MODAL_ACTION_BLOCK]: t(() => ({
|
|
@@ -128,52 +130,57 @@ var i = (e) => {
|
|
|
128
130
|
title: (e, r, a) => a?.insights_payload?.title ?? ""
|
|
129
131
|
})),
|
|
130
132
|
[o.CREDIT_UTILIZATION_ACTION_BLOCK]: t(() => ({
|
|
131
|
-
Component:
|
|
132
|
-
usePrepare:
|
|
133
|
+
Component: Z,
|
|
134
|
+
usePrepare: j,
|
|
133
135
|
title: (e, r) => r.insights_feed?.credit_utilization?.title ?? ""
|
|
134
136
|
})),
|
|
135
137
|
[o.EMERGENCY_SAVINGS_ACTION_BLOCK]: t(() => ({
|
|
136
|
-
Component:
|
|
138
|
+
Component: q,
|
|
137
139
|
usePrepare: i,
|
|
138
140
|
title: (e, r, a) => a?.insights_payload?.title ?? ""
|
|
139
141
|
})),
|
|
140
142
|
[o.PAYOFF_CALCULATOR_ACTION_BLOCK]: t(() => ({
|
|
141
|
-
Component:
|
|
142
|
-
usePrepare:
|
|
143
|
+
Component: J,
|
|
144
|
+
usePrepare: Q,
|
|
143
145
|
title: (e, r) => r.insights_feed?.payoff_calculator?.title ?? ""
|
|
144
146
|
})),
|
|
145
147
|
[o.BUDGET_DETAILS_ACTION_BLOCK]: t(() => ({
|
|
146
|
-
Component:
|
|
148
|
+
Component: X,
|
|
147
149
|
usePrepare: i,
|
|
148
150
|
title: (e, r, a) => a?.insights_payload?.title || r.budgets?.details_title || ""
|
|
151
|
+
})),
|
|
152
|
+
[o.ACCOUNT_LIST_ACTION_BLOCK]: t(() => ({
|
|
153
|
+
Component: z,
|
|
154
|
+
usePrepare: W,
|
|
155
|
+
title: (e, r) => r.insights_feed?.account_list?.title ?? ""
|
|
149
156
|
}))
|
|
150
|
-
},
|
|
157
|
+
}, jo = {
|
|
151
158
|
account_block: u,
|
|
152
159
|
account_switch_block: f,
|
|
153
|
-
direct_deposit_block:
|
|
160
|
+
direct_deposit_block: k,
|
|
154
161
|
bar_chart_block: m,
|
|
155
|
-
budget_block:
|
|
156
|
-
debts_block:
|
|
162
|
+
budget_block: A,
|
|
163
|
+
debts_block: T,
|
|
157
164
|
donut_chart_block: C,
|
|
158
165
|
double_bar_chart_block: _,
|
|
159
|
-
double_progress_bar_block:
|
|
166
|
+
double_progress_bar_block: B,
|
|
160
167
|
goals_block: O,
|
|
161
|
-
image_block:
|
|
168
|
+
image_block: P,
|
|
162
169
|
no_spend_days_block: d,
|
|
163
170
|
repeating_transaction_block: n,
|
|
164
171
|
save_extra_block: N,
|
|
165
|
-
savings_opportunity_block:
|
|
172
|
+
savings_opportunity_block: I,
|
|
166
173
|
step_chart_block: s,
|
|
167
174
|
svg_image_block: D,
|
|
168
175
|
upcoming_bill_block: n,
|
|
169
176
|
upcoming_subscription_block: b,
|
|
170
|
-
withdrawal_block:
|
|
171
|
-
transaction_block:
|
|
177
|
+
withdrawal_block: L,
|
|
178
|
+
transaction_block: g
|
|
172
179
|
};
|
|
173
180
|
export {
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
181
|
+
Zo as actionBlocks,
|
|
182
|
+
jo as blocks,
|
|
183
|
+
to as hasDrawerBlock
|
|
177
184
|
};
|
|
178
185
|
|
|
179
186
|
//# sourceMappingURL=blocks.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blocks.es.js","names":[],"sources":["../../../src/insights-v2/mappings/blocks.ts"],"sourcesContent":["import {\n AccountBlock,\n AccountSwitchBlock,\n BarchartBlock,\n BudgetBlock,\n DebtsBlock,\n DetailedAccountBlock,\n DonutChartBlock,\n GoalsBlock,\n DoubleBarChartBlock,\n DoubleProgressBarBlock,\n NoSpendDaysBlock,\n RepeatingTransactionBlock,\n SaveExtraBlock,\n SavingsOpportunityBlock,\n SVGImageBlock,\n UpcomingSubscriptionBlock,\n WithdrawalBlock,\n TransactionBlock,\n} from '../blocks'\nimport StepChartBlock from '../blocks/ChartBlocks/StepChartBlock'\nimport ImageBlock from '../blocks/ImageBlocks/ImageBlock'\n\nimport type { Beat, GlobalCopy, InsightsPayload } from '../../core'\nimport { ContactSupportActionBlock } from '../actionBlocks/ContactSupportActionBlock'\nimport { FeedbackModalActionBlock } from '../actionBlocks/FeedbackModalActionBlock'\nimport { ConnectionDetailActionBlock } from '../actionBlocks/ConnectionDetailActionBlock'\nimport { ConnectWidgetActionBlock } from '../actionBlocks/ConnectWidgetActionBlock'\nimport { SurveyModalActionBlock } from '../actionBlocks/SurveyModalActionBlock'\nimport { PlaceholderActionBlock } from '../actionBlocks/PlaceholderActionBlock'\nimport { MakeTransferActionBlockLayer } from '../actionBlocks/MakeTransferActionBlock/MakeTransferActionBlockLayer'\nimport { getMakeTransferDrawerTitle } from '../actionBlocks/MakeTransferActionBlock/layout'\nimport { TransactionHistoryBlock } from '../actionBlocks/TransactionHistoryBlock/TransactionHistoryBlock'\nimport { getDrawerHeaderTitle } from '../actionBlocks/TransactionHistoryBlock/utils'\nimport {\n TransactionDetailsBlock,\n useTransactionDetailsPrepare,\n} from '../actionBlocks/TransactionDetailsBlock'\nimport {\n RecurringTransactionBlock,\n useRecurringTransactionPrepare,\n} from '../actionBlocks/RecurringTransactionBlock'\nimport { TransactionListBlock } from '../actionBlocks/TransactionListBlock'\nimport { RemainingCashBlock } from '../actionBlocks/RemainingCashBlock'\nimport { AmountInputModalBlock } from '../actionBlocks/AmountInputModalBlock'\nimport { OverdraftBlock, useOverdraftPrepare } from '../actionBlocks/OverdraftBlock'\nimport { EmergencySavingsBlock } from '../actionBlocks/EmergencySavingsBlock'\nimport {\n CreditUtilizationBlock,\n useCreditUtilizationPrepare,\n} from '../actionBlocks/CreditUtilizationBlock'\nimport {\n PayoffCalculatorBlock,\n usePayoffCalculatorPrepare,\n} from '../actionBlocks/PayoffCalculatorBlock'\nimport { BudgetDetailsBlock } from '../actionBlocks/BudgetDetailsBlock'\n// Keys live in ./actionBlocksKey (imported directly by chart blocks/tests too) to avoid a\n// circular import between this module and the chart blocks — see that file for details.\nimport { actionBlocksKey } from './actionBlocksKey'\n\n// Drilldown indexes are not passed down: action blocks read them from\n// InsightsV2Store (useInsightsV2Store().actionDrawer).\nexport interface ActionBlockProps {\n beat: Beat\n}\n\nconst noop = (_: ActionBlockProps) => {}\n\n// Re-exported so existing `hasDrawerBlock` imports from this module keep working.\nexport { hasDrawerBlock } from './hasDrawerBlock'\n\nexport interface ActionBlockEntry {\n Component: React.ComponentType<ActionBlockProps>\n usePrepare: (props: ActionBlockProps) => void // required; default to noop in each entry\n // Resolves the drawer title from the clicked CTA's variant + copy, with the beat available\n // for blocks that title from beat fields (e.g. transaction-list reads insights_payload.title).\n // Falls back to the CTA label when the resolver returns an empty string / is absent.\n title?: (variant: string | null | undefined, copy: GlobalCopy, beat?: Beat) => string\n // 'drawer' (default) or 'modal' (component renders its own dialog, no Drawer wrapper).\n presentation?: 'drawer' | 'modal'\n}\n\n// Registry of drawer drilldowns, keyed by the `block` name the backend sends Add\n// `usePrepare` when the block needs to load data before rendering.\n\n/**\n * A registry entry whose fields read their imports when used, not when this module loads. Some\n * registered blocks render `TransactionDetails`, whose embedded card mounts `ActionBlockLayer`,\n * which imports this registry: when one of those blocks loads first, its own import is not\n * initialised yet while this module evaluates, so a value copied at load would be `undefined`\n * (or throw under native ES modules). Reading on access sees the finished import.\n */\nconst liveEntry = (resolve: () => ActionBlockEntry): ActionBlockEntry => ({\n get Component() {\n return resolve().Component\n },\n get usePrepare() {\n return resolve().usePrepare\n },\n get title() {\n return resolve().title\n },\n get presentation() {\n return resolve().presentation\n },\n})\n\nexport const actionBlocks = {\n [actionBlocksKey.PLACEHOLDER_ACTION_BLOCK]: liveEntry(() => ({\n Component: PlaceholderActionBlock,\n usePrepare: noop,\n title: () => 'Action Block Layer Drilldown',\n })),\n [actionBlocksKey.MAKE_TRANSFER_ACTION_BLOCK]: liveEntry(() => ({\n Component: MakeTransferActionBlockLayer,\n usePrepare: noop,\n title: getMakeTransferDrawerTitle,\n })),\n [actionBlocksKey.TRANSCATION_HISTORY_ACTION_BLOCK]: liveEntry(() => ({\n Component: TransactionHistoryBlock,\n usePrepare: noop,\n title: getDrawerHeaderTitle,\n })),\n [actionBlocksKey.TRANSACTION_DETAILS_ACTION_BLOCK]: liveEntry(() => ({\n Component: TransactionDetailsBlock,\n usePrepare: useTransactionDetailsPrepare,\n title: () => 'Transaction Details',\n })),\n // Expense Details for one recurring subscription. Which subscription a beat names is resolved in\n // `RecurringTransactionBlock/subscriptionBeats.ts`, not through this registry.\n [actionBlocksKey.RECURRING_TRANSACTION_ACTION_BLOCK]: liveEntry(() => ({\n Component: RecurringTransactionBlock,\n usePrepare: useRecurringTransactionPrepare,\n title: (_variant, copy) => copy.recurring?.expense_details ?? '',\n })),\n // Remaining Cash for the Payday Cash Left Over Status beat. Store-driven: reuses the recurring\n // loader, which also loads accounts and categories, so CashflowStore's computeds are ready.\n [actionBlocksKey.REMAINING_CASH_ACTION_BLOCK]: liveEntry(() => ({\n Component: RemainingCashBlock,\n usePrepare: useRecurringTransactionPrepare,\n title: (_variant, copy) => copy.insights_feed?.remaining_cash?.title ?? '',\n })),\n // The block renders its own drawer (the help module's RequestSupport) on top of the action\n // drawer, so the action drawer's title is the CTA label.\n [actionBlocksKey.CONTACT_SUPPORT_ACTION_BLOCK]: liveEntry(() => ({\n Component: ContactSupportActionBlock,\n usePrepare: noop,\n title: (_variant, copy) => copy.help?.request_support ?? '',\n })),\n [actionBlocksKey.FEEDBACK_MODAL_ACTION_BLOCK]: liveEntry(() => ({\n Component: FeedbackModalActionBlock,\n usePrepare: noop,\n presentation: 'modal',\n })),\n [actionBlocksKey.CONNECTION_DETAIL_ACTION_BLOCK]: liveEntry(() => ({\n Component: ConnectionDetailActionBlock,\n usePrepare: noop,\n title: (_variant, copy) =>\n copy.insights_feed?.connection_details?.connection_details_drawer_title ?? '',\n })),\n // Boots MX's Connect widget (web-widget-sdk iframe) inside the action\n // drawer; the drawer title falls back to the CTA label.\n [actionBlocksKey.CONNECT_WIDGET_ACTION_BLOCK]: liveEntry(() => ({\n Component: ConnectWidgetActionBlock,\n usePrepare: noop,\n })),\n [actionBlocksKey.SURVEY_MODAL_ACTION_BLOCK]: liveEntry(() => ({\n Component: SurveyModalActionBlock,\n usePrepare: noop,\n presentation: 'modal',\n })),\n [actionBlocksKey.TRANSACTION_LIST_ACTION_BLOCK]: liveEntry(() => ({\n Component: TransactionListBlock,\n usePrepare: useTransactionDetailsPrepare,\n title: (_variant, _copy, beat) => beat?.insights_payload?.title ?? '',\n })),\n // One whole-dollar setting in a dialog; the CTA variant picks which (low-balance threshold or\n // safety net). A modal: no drawer, so no drawer title.\n [actionBlocksKey.AMOUNT_INPUT_MODAL_ACTION_BLOCK]: liveEntry(() => ({\n Component: AmountInputModalBlock,\n presentation: 'modal',\n // Loads inside the block: it mounts only while open, so mounting is the open-time load.\n usePrepare: noop,\n })),\n // Transparent Overdraft's \"Learn more\": the projected overdraft, its account and the confidence\n // meter. Titled from the beat, as the pulse drawer was.\n [actionBlocksKey.OVERDRAFT_ACTION_BLOCK]: liveEntry(() => ({\n Component: OverdraftBlock,\n usePrepare: useOverdraftPrepare,\n title: (_variant, _copy, beat) => beat?.insights_payload?.title ?? '',\n })),\n // Credit Utilization's \"Learn more\": donut summary, legend and the per-card list. Loads accounts\n // for the institution logos; the rows themselves ride on the beat.\n [actionBlocksKey.CREDIT_UTILIZATION_ACTION_BLOCK]: liveEntry(() => ({\n Component: CreditUtilizationBlock,\n usePrepare: useCreditUtilizationPrepare,\n title: (_variant, copy) => copy.insights_feed?.credit_utilization?.title ?? '',\n })),\n [actionBlocksKey.EMERGENCY_SAVINGS_ACTION_BLOCK]: liveEntry(() => ({\n Component: EmergencySavingsBlock,\n usePrepare: noop,\n title: (_variant, _copy, beat) => beat?.insights_payload?.title ?? '',\n })),\n // Monthly Credit Card Interest Summary's \"Learn how to save\": the credit card payoff calculator.\n [actionBlocksKey.PAYOFF_CALCULATOR_ACTION_BLOCK]: liveEntry(() => ({\n Component: PayoffCalculatorBlock,\n usePrepare: usePayoffCalculatorPrepare,\n title: (_variant, copy) => copy.insights_feed?.payoff_calculator?.title ?? '',\n })),\n [actionBlocksKey.BUDGET_DETAILS_ACTION_BLOCK]: liveEntry(() => ({\n Component: BudgetDetailsBlock,\n usePrepare: noop,\n title: (_variant, copy, beat) =>\n beat?.insights_payload?.title || copy.budgets?.details_title || '',\n })),\n} as Record<string, ActionBlockEntry>\n\nexport const blocks = {\n account_block: AccountBlock,\n account_switch_block: AccountSwitchBlock,\n direct_deposit_block: DetailedAccountBlock,\n bar_chart_block: BarchartBlock,\n budget_block: BudgetBlock,\n debts_block: DebtsBlock,\n donut_chart_block: DonutChartBlock,\n double_bar_chart_block: DoubleBarChartBlock,\n double_progress_bar_block: DoubleProgressBarBlock,\n goals_block: GoalsBlock,\n image_block: ImageBlock,\n no_spend_days_block: NoSpendDaysBlock,\n repeating_transaction_block: RepeatingTransactionBlock,\n save_extra_block: SaveExtraBlock,\n savings_opportunity_block: SavingsOpportunityBlock,\n step_chart_block: StepChartBlock,\n svg_image_block: SVGImageBlock,\n upcoming_bill_block: RepeatingTransactionBlock,\n upcoming_subscription_block: UpcomingSubscriptionBlock,\n withdrawal_block: WithdrawalBlock,\n transaction_block: TransactionBlock,\n} as Record<string, React.ComponentType<{ payload: InsightsPayload; beatGuid?: string }>>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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SAAS;AAAA,EAC9E,EAAE;AAAA,EACD,CAAA,EAAgB,8BAAA,GAAiC,EAAA,OAAiB;AAAA,IACjE,WAAW;AAAA,IACX,YAAY;AAAA,IACZ,OAAA,CAAQ,GAAU,GAAO,MAAS,GAAM,kBAAkB,SAAS;AAAA,EACrE,EAAE;AAAA,EAED,CAAA,EAAgB,8BAAA,GAAiC,EAAA,OAAiB;AAAA,IACjE,WAAW;AAAA,IACX,YAAY;AAAA,IACZ,OAAA,CAAQ,GAAU,MAAS,EAAK,eAAe,mBAAmB,SAAS;AAAA,EAC7E,EAAE;AAAA,EACD,CAAA,EAAgB,2BAAA,GAA8B,EAAA,OAAiB;AAAA,IAC9D,WAAW;AAAA,IACX,YAAY;AAAA,IACZ,OAAA,CAAQ,GAAU,GAAM,MACtB,GAAM,kBAAkB,SAAS,EAAK,SAAS,iBAAiB;AAAA,EACpE,EAAE;AACJ,GAEa,KAAS;AAAA,EACpB,eAAe;AAAA,EACf,sBAAsB;AAAA,EACtB,sBAAsB;AAAA,EACtB,iBAAiB;AAAA,EACjB,cAAc;AAAA,EACd,aAAa;AAAA,EACb,mBAAmB;AAAA,EACnB,wBAAwB;AAAA,EACxB,2BAA2B;AAAA,EAC3B,aAAa;AAAA,EACb,aAAa;AAAA,EACb,qBAAqB;AAAA,EACrB,6BAA6B;AAAA,EAC7B,kBAAkB;AAAA,EAClB,2BAA2B;AAAA,EAC3B,kBAAkB;AAAA,EAClB,iBAAiB;AAAA,EACjB,qBAAqB;AAAA,EACrB,6BAA6B;AAAA,EAC7B,kBAAkB;AAAA,EAClB,mBAAmB;AACrB"}
|
|
1
|
+
{"version":3,"file":"blocks.es.js","names":[],"sources":["../../../src/insights-v2/mappings/blocks.ts"],"sourcesContent":["import {\n AccountBlock,\n AccountSwitchBlock,\n BarchartBlock,\n BudgetBlock,\n DebtsBlock,\n DetailedAccountBlock,\n DonutChartBlock,\n GoalsBlock,\n DoubleBarChartBlock,\n DoubleProgressBarBlock,\n NoSpendDaysBlock,\n RepeatingTransactionBlock,\n SaveExtraBlock,\n SavingsOpportunityBlock,\n SVGImageBlock,\n UpcomingSubscriptionBlock,\n WithdrawalBlock,\n TransactionBlock,\n} from '../blocks'\nimport StepChartBlock from '../blocks/ChartBlocks/StepChartBlock'\nimport ImageBlock from '../blocks/ImageBlocks/ImageBlock'\n\nimport type { Beat, GlobalCopy, InsightsPayload } from '../../core'\nimport { ContactSupportActionBlock } from '../actionBlocks/ContactSupportActionBlock'\nimport { FeedbackModalActionBlock } from '../actionBlocks/FeedbackModalActionBlock'\nimport { ConnectionDetailActionBlock } from '../actionBlocks/ConnectionDetailActionBlock'\nimport { ConnectWidgetActionBlock } from '../actionBlocks/ConnectWidgetActionBlock'\nimport { SurveyModalActionBlock } from '../actionBlocks/SurveyModalActionBlock'\nimport { PlaceholderActionBlock } from '../actionBlocks/PlaceholderActionBlock'\nimport { MakeTransferActionBlockLayer } from '../actionBlocks/MakeTransferActionBlock/MakeTransferActionBlockLayer'\nimport { getMakeTransferDrawerTitle } from '../actionBlocks/MakeTransferActionBlock/layout'\nimport { TransactionHistoryBlock } from '../actionBlocks/TransactionHistoryBlock/TransactionHistoryBlock'\nimport { getDrawerHeaderTitle } from '../actionBlocks/TransactionHistoryBlock/utils'\nimport {\n TransactionDetailsBlock,\n useTransactionDetailsPrepare,\n} from '../actionBlocks/TransactionDetailsBlock'\nimport {\n RecurringTransactionBlock,\n useRecurringTransactionPrepare,\n} from '../actionBlocks/RecurringTransactionBlock'\nimport { TransactionListBlock } from '../actionBlocks/TransactionListBlock'\nimport { RemainingCashBlock } from '../actionBlocks/RemainingCashBlock'\nimport { AmountInputModalBlock } from '../actionBlocks/AmountInputModalBlock'\nimport { OverdraftBlock, useOverdraftPrepare } from '../actionBlocks/OverdraftBlock'\nimport { AccountListBlock, useAccountListPrepare } from '../actionBlocks/AccountListBlock'\nimport { EmergencySavingsBlock } from '../actionBlocks/EmergencySavingsBlock'\nimport {\n CreditUtilizationBlock,\n useCreditUtilizationPrepare,\n} from '../actionBlocks/CreditUtilizationBlock'\nimport {\n PayoffCalculatorBlock,\n usePayoffCalculatorPrepare,\n} from '../actionBlocks/PayoffCalculatorBlock'\nimport { BudgetDetailsBlock } from '../actionBlocks/BudgetDetailsBlock'\n// Keys live in ./actionBlocksKey (imported directly by chart blocks/tests too) to avoid a\n// circular import between this module and the chart blocks — see that file for details.\nimport { actionBlocksKey } from './actionBlocksKey'\n\n// Drilldown indexes are not passed down: action blocks read them from\n// InsightsV2Store (useInsightsV2Store().actionDrawer).\nexport interface ActionBlockProps {\n beat: Beat\n}\n\nconst noop = (_: ActionBlockProps) => {}\n\n// Re-exported so existing `hasDrawerBlock` imports from this module keep working.\nexport { hasDrawerBlock } from './hasDrawerBlock'\n\nexport interface ActionBlockEntry {\n Component: React.ComponentType<ActionBlockProps>\n usePrepare: (props: ActionBlockProps) => void // required; default to noop in each entry\n // Resolves the drawer title from the clicked CTA's variant + copy, with the beat available\n // for blocks that title from beat fields (e.g. transaction-list reads insights_payload.title).\n // Falls back to the CTA label when the resolver returns an empty string / is absent.\n title?: (variant: string | null | undefined, copy: GlobalCopy, beat?: Beat) => string\n // 'drawer' (default) or 'modal' (component renders its own dialog, no Drawer wrapper).\n presentation?: 'drawer' | 'modal'\n}\n\n// Registry of drawer drilldowns, keyed by the `block` name the backend sends Add\n// `usePrepare` when the block needs to load data before rendering.\n\n/**\n * A registry entry whose fields read their imports when used, not when this module loads. Some\n * registered blocks render `TransactionDetails`, whose embedded card mounts `ActionBlockLayer`,\n * which imports this registry: when one of those blocks loads first, its own import is not\n * initialised yet while this module evaluates, so a value copied at load would be `undefined`\n * (or throw under native ES modules). Reading on access sees the finished import.\n */\nconst liveEntry = (resolve: () => ActionBlockEntry): ActionBlockEntry => ({\n get Component() {\n return resolve().Component\n },\n get usePrepare() {\n return resolve().usePrepare\n },\n get title() {\n return resolve().title\n },\n get presentation() {\n return resolve().presentation\n },\n})\n\nexport const actionBlocks = {\n [actionBlocksKey.PLACEHOLDER_ACTION_BLOCK]: liveEntry(() => ({\n Component: PlaceholderActionBlock,\n usePrepare: noop,\n title: () => 'Action Block Layer Drilldown',\n })),\n [actionBlocksKey.MAKE_TRANSFER_ACTION_BLOCK]: liveEntry(() => ({\n Component: MakeTransferActionBlockLayer,\n usePrepare: noop,\n title: getMakeTransferDrawerTitle,\n })),\n [actionBlocksKey.TRANSCATION_HISTORY_ACTION_BLOCK]: liveEntry(() => ({\n Component: TransactionHistoryBlock,\n usePrepare: noop,\n title: getDrawerHeaderTitle,\n })),\n [actionBlocksKey.TRANSACTION_DETAILS_ACTION_BLOCK]: liveEntry(() => ({\n Component: TransactionDetailsBlock,\n usePrepare: useTransactionDetailsPrepare,\n title: () => 'Transaction Details',\n })),\n // Expense Details for one recurring subscription. Which subscription a beat names is resolved in\n // `RecurringTransactionBlock/subscriptionBeats.ts`, not through this registry.\n [actionBlocksKey.RECURRING_TRANSACTION_ACTION_BLOCK]: liveEntry(() => ({\n Component: RecurringTransactionBlock,\n usePrepare: useRecurringTransactionPrepare,\n title: (_variant, copy) => copy.recurring?.expense_details ?? '',\n })),\n // Remaining Cash for the Payday Cash Left Over Status beat. Store-driven: reuses the recurring\n // loader, which also loads accounts and categories, so CashflowStore's computeds are ready.\n [actionBlocksKey.REMAINING_CASH_ACTION_BLOCK]: liveEntry(() => ({\n Component: RemainingCashBlock,\n usePrepare: useRecurringTransactionPrepare,\n title: (_variant, copy) => copy.insights_feed?.remaining_cash?.title ?? '',\n })),\n // The block renders its own drawer (the help module's RequestSupport) on top of the action\n // drawer, so the action drawer's title is the CTA label.\n [actionBlocksKey.CONTACT_SUPPORT_ACTION_BLOCK]: liveEntry(() => ({\n Component: ContactSupportActionBlock,\n usePrepare: noop,\n title: (_variant, copy) => copy.help?.request_support ?? '',\n })),\n [actionBlocksKey.FEEDBACK_MODAL_ACTION_BLOCK]: liveEntry(() => ({\n Component: FeedbackModalActionBlock,\n usePrepare: noop,\n presentation: 'modal',\n })),\n [actionBlocksKey.CONNECTION_DETAIL_ACTION_BLOCK]: liveEntry(() => ({\n Component: ConnectionDetailActionBlock,\n usePrepare: noop,\n title: (_variant, copy) =>\n copy.insights_feed?.connection_details?.connection_details_drawer_title ?? '',\n })),\n // Boots MX's Connect widget (web-widget-sdk iframe) inside the action\n // drawer; the drawer title falls back to the CTA label.\n [actionBlocksKey.CONNECT_WIDGET_ACTION_BLOCK]: liveEntry(() => ({\n Component: ConnectWidgetActionBlock,\n usePrepare: noop,\n })),\n [actionBlocksKey.SURVEY_MODAL_ACTION_BLOCK]: liveEntry(() => ({\n Component: SurveyModalActionBlock,\n usePrepare: noop,\n presentation: 'modal',\n })),\n [actionBlocksKey.TRANSACTION_LIST_ACTION_BLOCK]: liveEntry(() => ({\n Component: TransactionListBlock,\n usePrepare: useTransactionDetailsPrepare,\n title: (_variant, _copy, beat) => beat?.insights_payload?.title ?? '',\n })),\n // One whole-dollar setting in a dialog; the CTA variant picks which (low-balance threshold or\n // safety net). A modal: no drawer, so no drawer title.\n [actionBlocksKey.AMOUNT_INPUT_MODAL_ACTION_BLOCK]: liveEntry(() => ({\n Component: AmountInputModalBlock,\n presentation: 'modal',\n // Loads inside the block: it mounts only while open, so mounting is the open-time load.\n usePrepare: noop,\n })),\n // Transparent Overdraft's \"Learn more\": the projected overdraft, its account and the confidence\n // meter. Titled from the beat, as the pulse drawer was.\n [actionBlocksKey.OVERDRAFT_ACTION_BLOCK]: liveEntry(() => ({\n Component: OverdraftBlock,\n usePrepare: useOverdraftPrepare,\n title: (_variant, _copy, beat) => beat?.insights_payload?.title ?? '',\n })),\n // Credit Utilization's \"Learn more\": donut summary, legend and the per-card list. Loads accounts\n // for the institution logos; the rows themselves ride on the beat.\n [actionBlocksKey.CREDIT_UTILIZATION_ACTION_BLOCK]: liveEntry(() => ({\n Component: CreditUtilizationBlock,\n usePrepare: useCreditUtilizationPrepare,\n title: (_variant, copy) => copy.insights_feed?.credit_utilization?.title ?? '',\n })),\n [actionBlocksKey.EMERGENCY_SAVINGS_ACTION_BLOCK]: liveEntry(() => ({\n Component: EmergencySavingsBlock,\n usePrepare: noop,\n title: (_variant, _copy, beat) => beat?.insights_payload?.title ?? '',\n })),\n // Monthly Credit Card Interest Summary's \"Learn how to save\": the credit card payoff calculator.\n [actionBlocksKey.PAYOFF_CALCULATOR_ACTION_BLOCK]: liveEntry(() => ({\n Component: PayoffCalculatorBlock,\n usePrepare: usePayoffCalculatorPrepare,\n title: (_variant, copy) => copy.insights_feed?.payoff_calculator?.title ?? '',\n })),\n [actionBlocksKey.BUDGET_DETAILS_ACTION_BLOCK]: liveEntry(() => ({\n Component: BudgetDetailsBlock,\n usePrepare: noop,\n title: (_variant, copy, beat) =>\n beat?.insights_payload?.title || copy.budgets?.details_title || '',\n })),\n // Monthly Obligations Status's account list: the beat's calculation and the accounts behind it.\n [actionBlocksKey.ACCOUNT_LIST_ACTION_BLOCK]: liveEntry(() => ({\n Component: AccountListBlock,\n usePrepare: useAccountListPrepare,\n title: (_variant, copy) => copy.insights_feed?.account_list?.title ?? '',\n })),\n} as Record<string, ActionBlockEntry>\n\nexport const blocks = {\n account_block: AccountBlock,\n account_switch_block: AccountSwitchBlock,\n direct_deposit_block: DetailedAccountBlock,\n bar_chart_block: BarchartBlock,\n budget_block: BudgetBlock,\n debts_block: DebtsBlock,\n donut_chart_block: DonutChartBlock,\n double_bar_chart_block: DoubleBarChartBlock,\n double_progress_bar_block: DoubleProgressBarBlock,\n goals_block: GoalsBlock,\n image_block: ImageBlock,\n no_spend_days_block: NoSpendDaysBlock,\n repeating_transaction_block: RepeatingTransactionBlock,\n save_extra_block: SaveExtraBlock,\n savings_opportunity_block: SavingsOpportunityBlock,\n step_chart_block: StepChartBlock,\n svg_image_block: SVGImageBlock,\n upcoming_bill_block: RepeatingTransactionBlock,\n upcoming_subscription_block: UpcomingSubscriptionBlock,\n withdrawal_block: WithdrawalBlock,\n transaction_block: TransactionBlock,\n} as Record<string, React.ComponentType<{ payload: InsightsPayload; beatGuid?: string }>>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@ -1,123 +1,123 @@
|
|
|
1
|
-
import { useAccountStore as
|
|
2
|
-
import { RecurrenceStatus as
|
|
3
|
-
import { formatCurrency as
|
|
4
|
-
import { getNextUpcomingDate as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { ANALYTICS_EVENTS as
|
|
8
|
-
import
|
|
9
|
-
import { useAccountUiStore as
|
|
10
|
-
import { LinkTransactionDrawer as
|
|
11
|
-
import { MarkAsPaidDialog as
|
|
12
|
-
import { MarkAsUnpaidDialog as
|
|
13
|
-
import { PaymentScheduleAction as
|
|
14
|
-
import { RecurringTransactionList as
|
|
15
|
-
import { UpcomingRecurrenceCard as
|
|
16
|
-
import
|
|
17
|
-
import
|
|
1
|
+
import { useAccountStore as it, useCategoryStore as st, useEvent as rt, useGlobalCopyStore as ct, useGlobalUiStore as lt, useRecurringTransactionsStore as mt, useTransactionStore as dt } from "../../common/context/hooks.es.js";
|
|
2
|
+
import { RecurrenceStatus as ut, RepeatingType as pt } from "../../core/types/RepeatingTransaction.es.js";
|
|
3
|
+
import { formatCurrency as ft } from "../../core/utils/NumberFormatting.es.js";
|
|
4
|
+
import { getNextUpcomingDate as _t } from "../../core/utils/RecurringTransactionsUtil.es.js";
|
|
5
|
+
import ht from "../../common/components/dialog/Dialog.es.js";
|
|
6
|
+
import Ct from "../../common/components/drawer/Drawer.es.js";
|
|
7
|
+
import { ANALYTICS_EVENTS as g } from "../../common/constants/Analytics.es.js";
|
|
8
|
+
import x from "../../common/components/DataRow.es.js";
|
|
9
|
+
import { useAccountUiStore as gt } from "../../accounts/hooks/useUiStore.es.js";
|
|
10
|
+
import { LinkTransactionDrawer as kt } from "./actions/LinkTransactionDrawer.es.js";
|
|
11
|
+
import { MarkAsPaidDialog as At } from "./actions/MarkAsPaidDialog.es.js";
|
|
12
|
+
import { MarkAsUnpaidDialog as St } from "./actions/MarkAsUnpaidDialog.es.js";
|
|
13
|
+
import { PaymentScheduleAction as Dt } from "./actions/PaymentScheduleAction.es.js";
|
|
14
|
+
import { RecurringTransactionList as yt } from "./RecurringTransactionList.es.js";
|
|
15
|
+
import { UpcomingRecurrenceCard as wt } from "./UpcomingRecurrenceCard.es.js";
|
|
16
|
+
import Rt from "../../transactions/components/shared/TransactionDetails.es.js";
|
|
17
|
+
import Tt from "../../accounts/components/detailsdrawer/Accounts/AccountDetailsDrawer.es.js";
|
|
18
18
|
import n from "react";
|
|
19
|
-
import { observer as
|
|
20
|
-
import
|
|
21
|
-
import { MerchantLogo as
|
|
22
|
-
import { endOfMonth as
|
|
23
|
-
import { startOfToday as
|
|
24
|
-
import
|
|
25
|
-
import { Delete as
|
|
26
|
-
import { Fragment as
|
|
27
|
-
import { subDays as
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
var
|
|
31
|
-
const { recurring: a } =
|
|
19
|
+
import { observer as bt } from "mobx-react-lite";
|
|
20
|
+
import M from "@mui/material/Stack";
|
|
21
|
+
import { MerchantLogo as xt, P as Mt, Text as I } from "@mxenabled/mxui";
|
|
22
|
+
import { endOfMonth as It } from "date-fns/endOfMonth";
|
|
23
|
+
import { startOfToday as L } from "date-fns/startOfToday";
|
|
24
|
+
import Lt from "@mui/material/Button";
|
|
25
|
+
import { Delete as Nt } from "@mxenabled/mx-icons";
|
|
26
|
+
import { Fragment as N, jsx as t, jsxs as c } from "react/jsx-runtime";
|
|
27
|
+
import { subDays as Ut } from "date-fns/subDays";
|
|
28
|
+
import k from "@mui/material/Divider";
|
|
29
|
+
import vt from "@mui/material/List";
|
|
30
|
+
var me = bt(({ onDeleted: U, recurringTransaction: e, selectedRecurrence: s }) => {
|
|
31
|
+
const { recurring: a } = ct(), { selectedAccountGuids: v } = lt(), { onEvent: m } = rt(), { deleteRepeatingTransaction: E, markRecurrenceAsUnpaid: G, recurrences: O } = mt(), { detailedTransactions: A, setFilter: P, transactions: d } = dt(), { setSelectedAccount: K, setSelectedMember: B } = gt(), { members: F } = it(), { getCategoryName: j } = st(), { amount: z, description: $, merchant_guid: V } = e, [Y, S] = n.useState(!1), [q, D] = n.useState(!1), [H, u] = n.useState(!1), [J, p] = n.useState(!1), [Q, f] = n.useState(""), [W, y] = n.useState(!1), [_, w] = n.useState("");
|
|
32
32
|
n.useEffect(() => {
|
|
33
|
-
|
|
34
|
-
accounts:
|
|
33
|
+
P({
|
|
34
|
+
accounts: v,
|
|
35
35
|
dateRange: {
|
|
36
|
-
start:
|
|
37
|
-
end:
|
|
36
|
+
start: Ut(L(), 90),
|
|
37
|
+
end: It(L())
|
|
38
38
|
},
|
|
39
39
|
custom: (o) => o.repeating_transaction_guid === e.guid
|
|
40
40
|
});
|
|
41
41
|
}, [e.guid]);
|
|
42
|
-
const
|
|
42
|
+
const i = n.useMemo(() => A.find((o) => o.guid === _), [_, A]), r = e.repeating_transaction_type === pt.Income, h = n.useMemo(() => d.filter((o) => o.repeating_transaction_guid === e.guid), [d, e.guid]), X = n.useMemo(() => [...h].sort((o, l) => l.date - o.date)[0], [h]), C = i ? i.category_guid ?? "" : X?.category_guid ?? "", R = i ? i.category : C ? j(C) : void 0, Z = _t(e, O), tt = () => {
|
|
43
43
|
if (e.account) {
|
|
44
|
-
|
|
45
|
-
const o =
|
|
46
|
-
o &&
|
|
44
|
+
K(e.account);
|
|
45
|
+
const o = F.find((l) => l.guid === e.account?.member_guid) || {};
|
|
46
|
+
o && B(o), S(!0);
|
|
47
47
|
}
|
|
48
|
-
},
|
|
49
|
-
await
|
|
50
|
-
},
|
|
51
|
-
|
|
52
|
-
},
|
|
53
|
-
|
|
54
|
-
},
|
|
55
|
-
|
|
56
|
-
},
|
|
57
|
-
|
|
58
|
-
},
|
|
59
|
-
const o =
|
|
60
|
-
o && await
|
|
48
|
+
}, et = async () => {
|
|
49
|
+
await E(e.guid), U();
|
|
50
|
+
}, ot = () => {
|
|
51
|
+
D(!0), m(g.RECURRING_TRANSACTIONS_DETAILS_CLICK_DELETE);
|
|
52
|
+
}, T = () => {
|
|
53
|
+
u(!0), m(g.RECURRING_TRANSACTIONS_LIST_CLICK_MARK_AS_PAID);
|
|
54
|
+
}, at = () => {
|
|
55
|
+
u(!1), y(!0);
|
|
56
|
+
}, b = (o) => {
|
|
57
|
+
f(o), p(!0), m(g.RECURRING_TRANSACTIONS_LIST_CLICK_MARK_AS_UNPAID);
|
|
58
|
+
}, nt = async () => {
|
|
59
|
+
const o = d.find((l) => l.guid === Q);
|
|
60
|
+
o && await G(o), p(!1), f("");
|
|
61
61
|
};
|
|
62
|
-
return /* @__PURE__ */ c(
|
|
62
|
+
return /* @__PURE__ */ c(M, {
|
|
63
63
|
bgcolor: "background.default",
|
|
64
64
|
direction: "column",
|
|
65
65
|
height: "100%",
|
|
66
66
|
children: [
|
|
67
|
-
/* @__PURE__ */ c(
|
|
67
|
+
/* @__PURE__ */ c(M, {
|
|
68
68
|
direction: "column",
|
|
69
69
|
m: 24,
|
|
70
70
|
children: [
|
|
71
|
-
/* @__PURE__ */ t(
|
|
72
|
-
categoryGuid:
|
|
73
|
-
merchantGuid:
|
|
71
|
+
/* @__PURE__ */ t(xt, {
|
|
72
|
+
categoryGuid: C,
|
|
73
|
+
merchantGuid: V || "",
|
|
74
74
|
size: 64,
|
|
75
75
|
sx: { mb: 12 }
|
|
76
76
|
}),
|
|
77
|
-
/* @__PURE__ */ t(
|
|
77
|
+
/* @__PURE__ */ t(I, {
|
|
78
78
|
bold: !0,
|
|
79
79
|
variant: "body1",
|
|
80
|
-
children:
|
|
80
|
+
children: $
|
|
81
81
|
}),
|
|
82
|
-
/* @__PURE__ */ c(
|
|
82
|
+
/* @__PURE__ */ c(Mt, {
|
|
83
83
|
color: r ? "success.main" : "text.primary",
|
|
84
84
|
sx: {
|
|
85
85
|
mt: 4,
|
|
86
86
|
mb: 16
|
|
87
87
|
},
|
|
88
88
|
variant: "h1",
|
|
89
|
-
children: [r ? "+" : "",
|
|
89
|
+
children: [r ? "+" : "", ft(z, "0,0.00")]
|
|
90
90
|
}),
|
|
91
|
-
/* @__PURE__ */ t(
|
|
92
|
-
expectedDate:
|
|
93
|
-
onMarkAsPaidClick:
|
|
94
|
-
status:
|
|
91
|
+
/* @__PURE__ */ t(wt, {
|
|
92
|
+
expectedDate: s?.occurredOnDate || s?.expectedDate || Z,
|
|
93
|
+
onMarkAsPaidClick: s?.status === ut.Paid && s.transaction?.guid ? () => b(s.transaction.guid) : T,
|
|
94
|
+
status: s?.status
|
|
95
95
|
})
|
|
96
96
|
]
|
|
97
97
|
}),
|
|
98
|
-
/* @__PURE__ */ c(
|
|
98
|
+
/* @__PURE__ */ c(vt, {
|
|
99
99
|
sx: { bgcolor: "background.paper" },
|
|
100
100
|
children: [
|
|
101
|
-
e.account && /* @__PURE__ */ c(
|
|
101
|
+
e.account && /* @__PURE__ */ c(N, { children: [/* @__PURE__ */ t(x, {
|
|
102
102
|
iconName: "checkbook",
|
|
103
103
|
label: a.account,
|
|
104
|
-
onClick:
|
|
104
|
+
onClick: tt,
|
|
105
105
|
showChevron: !1,
|
|
106
106
|
value: e.account.displayName || ""
|
|
107
|
-
}), /* @__PURE__ */ t(
|
|
108
|
-
|
|
107
|
+
}), /* @__PURE__ */ t(k, { variant: "inset" })] }),
|
|
108
|
+
R && /* @__PURE__ */ c(N, { children: [/* @__PURE__ */ t(x, {
|
|
109
109
|
iconName: "monetization_on",
|
|
110
110
|
label: a.category,
|
|
111
|
-
value:
|
|
112
|
-
}), /* @__PURE__ */ t(
|
|
113
|
-
/* @__PURE__ */ t(
|
|
114
|
-
/* @__PURE__ */ t(
|
|
111
|
+
value: R
|
|
112
|
+
}), /* @__PURE__ */ t(k, { variant: "inset" })] }),
|
|
113
|
+
/* @__PURE__ */ t(Dt, { repeatingTransaction: e }),
|
|
114
|
+
/* @__PURE__ */ t(k, {})
|
|
115
115
|
]
|
|
116
116
|
}),
|
|
117
|
-
/* @__PURE__ */ t(
|
|
117
|
+
/* @__PURE__ */ t(Lt, {
|
|
118
118
|
color: "error",
|
|
119
|
-
onClick:
|
|
120
|
-
startIcon: /* @__PURE__ */ t(
|
|
119
|
+
onClick: ot,
|
|
120
|
+
startIcon: /* @__PURE__ */ t(Nt, {}),
|
|
121
121
|
sx: {
|
|
122
122
|
mx: 24,
|
|
123
123
|
my: 16
|
|
@@ -125,57 +125,57 @@ var ie = Dt(({ onDeleted: M, recurringTransaction: e, selectedRecurrence: i }) =
|
|
|
125
125
|
variant: "text",
|
|
126
126
|
children: r ? a.delete_income_title : a.delete_expense_title
|
|
127
127
|
}),
|
|
128
|
-
/* @__PURE__ */ t(
|
|
128
|
+
/* @__PURE__ */ t(yt, {
|
|
129
129
|
isIncome: r,
|
|
130
|
-
onMarkAsPaidClick:
|
|
131
|
-
onMarkAsUnpaidClick:
|
|
132
|
-
onTransactionClick:
|
|
130
|
+
onMarkAsPaidClick: T,
|
|
131
|
+
onMarkAsUnpaidClick: b,
|
|
132
|
+
onTransactionClick: w,
|
|
133
133
|
recurringTransaction: e,
|
|
134
|
-
transactions:
|
|
134
|
+
transactions: h
|
|
135
135
|
}),
|
|
136
|
-
/* @__PURE__ */ t(
|
|
136
|
+
/* @__PURE__ */ t(Ct, {
|
|
137
137
|
ariaLabelClose: a.close_drawer_aria,
|
|
138
|
-
isOpen: !!
|
|
139
|
-
onClose: () =>
|
|
138
|
+
isOpen: !!_ && !!i,
|
|
139
|
+
onClose: () => w(""),
|
|
140
140
|
title: a.transaction_details_drawer_title,
|
|
141
|
-
children:
|
|
141
|
+
children: i && /* @__PURE__ */ t(Rt, { transaction: i })
|
|
142
142
|
}),
|
|
143
|
-
/* @__PURE__ */ t(
|
|
143
|
+
/* @__PURE__ */ t(ht, {
|
|
144
144
|
copy: {
|
|
145
145
|
title: r ? a.delete_income_title : a.delete_expense_title,
|
|
146
146
|
close_aria: a.close_drawer_aria
|
|
147
147
|
},
|
|
148
|
-
isOpen:
|
|
149
|
-
onClose: () =>
|
|
150
|
-
onPrimaryAction:
|
|
151
|
-
children: /* @__PURE__ */ t(
|
|
148
|
+
isOpen: q,
|
|
149
|
+
onClose: () => D(!1),
|
|
150
|
+
onPrimaryAction: et,
|
|
151
|
+
children: /* @__PURE__ */ t(I, { children: r ? a.delete_income_description : a.delete_expense_description })
|
|
152
152
|
}),
|
|
153
|
-
/* @__PURE__ */ t(
|
|
154
|
-
isOpen:
|
|
155
|
-
onClose: () =>
|
|
156
|
-
onLinkTransaction:
|
|
153
|
+
/* @__PURE__ */ t(At, {
|
|
154
|
+
isOpen: H,
|
|
155
|
+
onClose: () => u(!1),
|
|
156
|
+
onLinkTransaction: at
|
|
157
157
|
}),
|
|
158
|
-
/* @__PURE__ */ t(
|
|
159
|
-
isOpen:
|
|
158
|
+
/* @__PURE__ */ t(St, {
|
|
159
|
+
isOpen: J,
|
|
160
160
|
onClose: () => {
|
|
161
|
-
|
|
161
|
+
p(!1), f("");
|
|
162
162
|
},
|
|
163
|
-
onUnlinkTransaction:
|
|
163
|
+
onUnlinkTransaction: nt
|
|
164
164
|
}),
|
|
165
|
-
/* @__PURE__ */ t(
|
|
166
|
-
isOpen:
|
|
167
|
-
onClose: () =>
|
|
165
|
+
/* @__PURE__ */ t(kt, {
|
|
166
|
+
isOpen: W,
|
|
167
|
+
onClose: () => y(!1),
|
|
168
168
|
recurringTransaction: e
|
|
169
169
|
}),
|
|
170
|
-
/* @__PURE__ */ t(
|
|
171
|
-
isOpen:
|
|
172
|
-
onClose: () =>
|
|
170
|
+
/* @__PURE__ */ t(Tt, {
|
|
171
|
+
isOpen: Y,
|
|
172
|
+
onClose: () => S(!1)
|
|
173
173
|
})
|
|
174
174
|
]
|
|
175
175
|
});
|
|
176
176
|
});
|
|
177
177
|
export {
|
|
178
|
-
|
|
178
|
+
me as RecurringTransactionDetails
|
|
179
179
|
};
|
|
180
180
|
|
|
181
181
|
//# sourceMappingURL=RecurringTransactionDetails.es.js.map
|