@mx-cartographer/experiences 9.7.50 → 9.7.52

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 (45) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/core/types/Insights.d.ts +1 -0
  3. package/dist/core/types/Insights.es.js.map +1 -1
  4. package/dist/core/types/InsightsInstanceSlotData.d.ts +10 -1
  5. package/dist/core/types/InsightsInstanceSlotData.es.js.map +1 -1
  6. package/dist/core/types/localization/TransactionsCopy.d.ts +1 -0
  7. package/dist/core/utils/TransactionUtils.d.ts +1 -0
  8. package/dist/core/utils/TransactionUtils.es.js +19 -18
  9. package/dist/core/utils/TransactionUtils.es.js.map +1 -1
  10. package/dist/insights-v2/blocks/ComponentBlocks/AccountBlock/layout.es.js +9 -9
  11. package/dist/insights-v2/blocks/ComponentBlocks/AccountBlock/layout.es.js.map +1 -1
  12. package/dist/insights-v2/blocks/ComponentBlocks/MerchantBlock/MerchantBlock.d.ts +6 -0
  13. package/dist/insights-v2/blocks/ComponentBlocks/MerchantBlock/MerchantBlock.es.js +74 -0
  14. package/dist/insights-v2/blocks/ComponentBlocks/MerchantBlock/MerchantBlock.es.js.map +1 -0
  15. package/dist/insights-v2/blocks/ComponentBlocks/MerchantBlock/index.d.ts +1 -0
  16. package/dist/insights-v2/blocks/ComponentBlocks/MerchantBlock/layout.d.ts +32 -0
  17. package/dist/insights-v2/blocks/ComponentBlocks/MerchantBlock/layout.es.js +57 -0
  18. package/dist/insights-v2/blocks/ComponentBlocks/MerchantBlock/layout.es.js.map +1 -0
  19. package/dist/insights-v2/blocks/ComponentBlocks/index.d.ts +1 -0
  20. package/dist/insights-v2/components/AmountPill.es.js +9 -8
  21. package/dist/insights-v2/components/AmountPill.es.js.map +1 -1
  22. package/dist/insights-v2/components/MerchantHighlightCard.es.js +4 -4
  23. package/dist/insights-v2/components/celebrationGradients.d.ts +3 -0
  24. package/dist/insights-v2/components/celebrationGradients.es.js +5 -4
  25. package/dist/insights-v2/components/celebrationGradients.es.js.map +1 -1
  26. package/dist/insights-v2/components/statusTokens.d.ts +5 -0
  27. package/dist/insights-v2/components/statusTokens.es.js +5 -0
  28. package/dist/insights-v2/components/statusTokens.es.js.map +1 -1
  29. package/dist/insights-v2/index.es.js +88 -86
  30. package/dist/insights-v2/mappings/blocks.es.js +78 -76
  31. package/dist/insights-v2/mappings/blocks.es.js.map +1 -1
  32. package/dist/transactions/TransactionWidget.es.js +37 -36
  33. package/dist/transactions/TransactionWidget.es.js.map +1 -1
  34. package/dist/transactions/components/shared/TransactionList.d.ts +1 -0
  35. package/dist/transactions/components/shared/TransactionList.es.js +46 -45
  36. package/dist/transactions/components/shared/TransactionList.es.js.map +1 -1
  37. package/dist/transactions/components/shared/UnviewedIndicator.d.ts +6 -0
  38. package/dist/transactions/components/shared/UnviewedIndicator.es.js +21 -0
  39. package/dist/transactions/components/shared/UnviewedIndicator.es.js.map +1 -0
  40. package/dist/transactions/components/shared/transactionlist/TransactionRow.d.ts +2 -0
  41. package/dist/transactions/components/shared/transactionlist/TransactionRow.es.js +38 -37
  42. package/dist/transactions/components/shared/transactionlist/TransactionRow.es.js.map +1 -1
  43. package/dist/transactions/components/shared/transactiontable/cells/FlagCell.es.js +23 -32
  44. package/dist/transactions/components/shared/transactiontable/cells/FlagCell.es.js.map +1 -1
  45. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { ContactSupportActionBlock as p } from "../actionBlocks/ContactSupportActionBlock.es.js";
2
- import { hasDrawerBlock as io } from "./hasDrawerBlock.es.js";
2
+ import { hasDrawerBlock as ao } from "./hasDrawerBlock.es.js";
3
3
  import { actionBlocksKey as t } 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";
@@ -9,45 +9,46 @@ import u from "../blocks/ChartBlocks/DoubleProgressBarBlock/DoubleProgressBarBlo
9
9
  import B from "../blocks/ComponentBlocks/DetailedAccountBlock/DetailedAccountBlock.es.js";
10
10
  import k from "../blocks/ComponentBlocks/AccountBlock/AccountBlock.es.js";
11
11
  import A from "../blocks/ComponentBlocks/AccountSwitchBlock/AccountSwitchBlock.es.js";
12
- import { BudgetBlock as T } from "../blocks/ComponentBlocks/BudgetBlock/BudgetBlock.es.js";
13
- import f from "../blocks/ComponentBlocks/DebtsBlock/DebtsBlock.es.js";
12
+ import { BudgetBlock as f } 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
- import d from "../blocks/ComponentBlocks/NoSpendDaysBlock/NoSpendDaysBlock.es.js";
15
+ import d from "../blocks/ComponentBlocks/MerchantBlock/MerchantBlock.es.js";
16
+ import N from "../blocks/ComponentBlocks/NoSpendDaysBlock/NoSpendDaysBlock.es.js";
16
17
  import n from "../blocks/ComponentBlocks/RepeatingTransactionBlock/RepeatingTransactionBlock.es.js";
17
- import N from "../blocks/ComponentBlocks/SaveExtraBlock/SaveExtraBlock.es.js";
18
- import I from "../blocks/ComponentBlocks/SavingsOpportunityBlock/SavingsOpportunityBlock.es.js";
19
- import { TransactionBlock as g } from "../blocks/ComponentBlocks/TransactionBlock/TransactionBlock.es.js";
20
- import L from "../blocks/ComponentBlocks/UpcomingSubscriptionBlock/UpcomingSubscriptionBlock.es.js";
21
- import P from "../blocks/ComponentBlocks/WithdrawalBlock/WithdrawalBlock.es.js";
22
- import b from "../blocks/ImageBlocks/ImageBlock.es.js";
23
- import { SVGImageBlock as D } from "../blocks/ImageBlocks/SVGImageBlock/SVGImageBlock.es.js";
24
- import { FeedbackModalActionBlock as h } from "../actionBlocks/FeedbackModalActionBlock.es.js";
25
- import { ConnectionDetailActionBlock as S } from "../actionBlocks/ConnectionDetailActionBlock.es.js";
26
- import { ConnectWidgetActionBlock as E } from "../actionBlocks/ConnectWidgetActionBlock.es.js";
27
- import { SurveyModalActionBlock as v } from "../actionBlocks/SurveyModalActionBlock.es.js";
28
- import { PlaceholderActionBlock as K } from "../actionBlocks/PlaceholderActionBlock.es.js";
29
- import { getMakeTransferDrawerTitle as R } from "../actionBlocks/MakeTransferActionBlock/layout.es.js";
30
- import { MakeTransferActionBlockLayer as y } from "../actionBlocks/MakeTransferActionBlock/MakeTransferActionBlockLayer.es.js";
18
+ import I from "../blocks/ComponentBlocks/SaveExtraBlock/SaveExtraBlock.es.js";
19
+ import g from "../blocks/ComponentBlocks/SavingsOpportunityBlock/SavingsOpportunityBlock.es.js";
20
+ import { TransactionBlock as L } from "../blocks/ComponentBlocks/TransactionBlock/TransactionBlock.es.js";
21
+ import P from "../blocks/ComponentBlocks/UpcomingSubscriptionBlock/UpcomingSubscriptionBlock.es.js";
22
+ import b from "../blocks/ComponentBlocks/WithdrawalBlock/WithdrawalBlock.es.js";
23
+ import D from "../blocks/ImageBlocks/ImageBlock.es.js";
24
+ import { SVGImageBlock as h } from "../blocks/ImageBlocks/SVGImageBlock/SVGImageBlock.es.js";
25
+ import { FeedbackModalActionBlock as S } from "../actionBlocks/FeedbackModalActionBlock.es.js";
26
+ import { ConnectionDetailActionBlock as E } from "../actionBlocks/ConnectionDetailActionBlock.es.js";
27
+ import { ConnectWidgetActionBlock as v } from "../actionBlocks/ConnectWidgetActionBlock.es.js";
28
+ import { SurveyModalActionBlock as K } from "../actionBlocks/SurveyModalActionBlock.es.js";
29
+ import { PlaceholderActionBlock as R } from "../actionBlocks/PlaceholderActionBlock.es.js";
30
+ import { getMakeTransferDrawerTitle as y } from "../actionBlocks/MakeTransferActionBlock/layout.es.js";
31
+ import { MakeTransferActionBlockLayer as M } from "../actionBlocks/MakeTransferActionBlock/MakeTransferActionBlockLayer.es.js";
31
32
  import { getDrawerHeaderTitle as U } from "../actionBlocks/TransactionHistoryBlock/utils.es.js";
32
- import { TransactionDetailsBlock as M } from "../actionBlocks/TransactionDetailsBlock/TransactionDetailsBlock.es.js";
33
+ import { TransactionDetailsBlock as w } from "../actionBlocks/TransactionDetailsBlock/TransactionDetailsBlock.es.js";
33
34
  import { useTransactionDetailsPrepare as c } from "../actionBlocks/TransactionDetailsBlock/useTransactionDetailsPrepare.es.js";
34
- import { TransactionHistoryBlock as w } from "../actionBlocks/TransactionHistoryBlock/TransactionHistoryBlock.es.js";
35
- import { useTransactionHistoryPrepare as G } from "../actionBlocks/TransactionHistoryBlock/useTransactionHistoryPrepare.es.js";
35
+ import { TransactionHistoryBlock as G } from "../actionBlocks/TransactionHistoryBlock/TransactionHistoryBlock.es.js";
36
+ import { useTransactionHistoryPrepare as F } from "../actionBlocks/TransactionHistoryBlock/useTransactionHistoryPrepare.es.js";
36
37
  import { useRecurringTransactionPrepare as l } from "../actionBlocks/RecurringTransactionBlock/useRecurringTransactionPrepare.es.js";
37
- import { RecurringTransactionBlock as F } from "../actionBlocks/RecurringTransactionBlock/RecurringTransactionBlock.es.js";
38
- import { TransactionListBlock as H } from "../actionBlocks/TransactionListBlock/TransactionListBlock.es.js";
39
- import { RemainingCashBlock as x } from "../actionBlocks/RemainingCashBlock/RemainingCashBlock.es.js";
40
- import { AmountInputModalBlock as V } from "../actionBlocks/AmountInputModalBlock/AmountInputModalBlock.es.js";
41
- import { OverdraftBlock as Y, useOverdraftPrepare as z } from "../actionBlocks/OverdraftBlock/OverdraftBlock.es.js";
42
- import { AccountListBlock as W } from "../actionBlocks/AccountListBlock/AccountListBlock.es.js";
43
- import { useAccountListPrepare as q } from "../actionBlocks/AccountListBlock/useAccountListPrepare.es.js";
44
- import { EmergencySavingsBlock as Z } from "../actionBlocks/EmergencySavingsBlock/EmergencySavingsBlock.es.js";
45
- import { CreditUtilizationBlock as j } from "../actionBlocks/CreditUtilizationBlock/CreditUtilizationBlock.es.js";
46
- import { useCreditUtilizationPrepare as J } from "../actionBlocks/CreditUtilizationBlock/useCreditUtilizationPrepare.es.js";
47
- import { PayoffCalculatorBlock as Q, usePayoffCalculatorPrepare as X } from "../actionBlocks/PayoffCalculatorBlock/PayoffCalculatorBlock.es.js";
48
- import { BudgetDetailsBlock as $ } from "../actionBlocks/BudgetDetailsBlock/BudgetDetailsBlock.es.js";
49
- import { AccountDetailsBlock as oo } from "../actionBlocks/AccountDetailsBlock/AccountDetailsBlock.es.js";
50
- import { useAccountDetailsPrepare as to } from "../actionBlocks/AccountDetailsBlock/useAccountDetailsPrepare.es.js";
38
+ import { RecurringTransactionBlock as H } from "../actionBlocks/RecurringTransactionBlock/RecurringTransactionBlock.es.js";
39
+ import { TransactionListBlock as x } from "../actionBlocks/TransactionListBlock/TransactionListBlock.es.js";
40
+ import { RemainingCashBlock as V } from "../actionBlocks/RemainingCashBlock/RemainingCashBlock.es.js";
41
+ import { AmountInputModalBlock as Y } from "../actionBlocks/AmountInputModalBlock/AmountInputModalBlock.es.js";
42
+ import { OverdraftBlock as z, useOverdraftPrepare as W } from "../actionBlocks/OverdraftBlock/OverdraftBlock.es.js";
43
+ import { AccountListBlock as q } from "../actionBlocks/AccountListBlock/AccountListBlock.es.js";
44
+ import { useAccountListPrepare as Z } from "../actionBlocks/AccountListBlock/useAccountListPrepare.es.js";
45
+ import { EmergencySavingsBlock as j } from "../actionBlocks/EmergencySavingsBlock/EmergencySavingsBlock.es.js";
46
+ import { CreditUtilizationBlock as J } from "../actionBlocks/CreditUtilizationBlock/CreditUtilizationBlock.es.js";
47
+ import { useCreditUtilizationPrepare as Q } from "../actionBlocks/CreditUtilizationBlock/useCreditUtilizationPrepare.es.js";
48
+ import { PayoffCalculatorBlock as X, usePayoffCalculatorPrepare as $ } from "../actionBlocks/PayoffCalculatorBlock/PayoffCalculatorBlock.es.js";
49
+ import { BudgetDetailsBlock as oo } from "../actionBlocks/BudgetDetailsBlock/BudgetDetailsBlock.es.js";
50
+ import { AccountDetailsBlock as to } from "../actionBlocks/AccountDetailsBlock/AccountDetailsBlock.es.js";
51
+ import { useAccountDetailsPrepare as ro } from "../actionBlocks/AccountDetailsBlock/useAccountDetailsPrepare.es.js";
51
52
  var i = (e) => {
52
53
  }, r = (e) => ({
53
54
  get Component() {
@@ -62,34 +63,34 @@ var i = (e) => {
62
63
  get presentation() {
63
64
  return e().presentation;
64
65
  }
65
- }), ot = {
66
+ }), rt = {
66
67
  [t.PLACEHOLDER_ACTION_BLOCK]: r(() => ({
67
- Component: K,
68
+ Component: R,
68
69
  usePrepare: i,
69
70
  title: () => "Action Block Layer Drilldown"
70
71
  })),
71
72
  [t.MAKE_TRANSFER_ACTION_BLOCK]: r(() => ({
72
- Component: y,
73
+ Component: M,
73
74
  usePrepare: i,
74
- title: R
75
+ title: y
75
76
  })),
76
77
  [t.TRANSCATION_HISTORY_ACTION_BLOCK]: r(() => ({
77
- Component: w,
78
- usePrepare: G,
78
+ Component: G,
79
+ usePrepare: F,
79
80
  title: U
80
81
  })),
81
82
  [t.TRANSACTION_DETAILS_ACTION_BLOCK]: r(() => ({
82
- Component: M,
83
+ Component: w,
83
84
  usePrepare: c,
84
85
  title: () => "Transaction Details"
85
86
  })),
86
87
  [t.RECURRING_TRANSACTION_ACTION_BLOCK]: r(() => ({
87
- Component: F,
88
+ Component: H,
88
89
  usePrepare: l,
89
90
  title: (e, o) => o.recurring?.expense_details ?? ""
90
91
  })),
91
92
  [t.REMAINING_CASH_ACTION_BLOCK]: r(() => ({
92
- Component: x,
93
+ Component: V,
93
94
  usePrepare: l,
94
95
  title: (e, o) => o.insights_feed?.remaining_cash?.title ?? ""
95
96
  })),
@@ -99,96 +100,97 @@ var i = (e) => {
99
100
  title: (e, o) => o.help?.request_support ?? ""
100
101
  })),
101
102
  [t.FEEDBACK_MODAL_ACTION_BLOCK]: r(() => ({
102
- Component: h,
103
+ Component: S,
103
104
  usePrepare: i,
104
105
  presentation: "modal"
105
106
  })),
106
107
  [t.CONNECTION_DETAIL_ACTION_BLOCK]: r(() => ({
107
- Component: S,
108
+ Component: E,
108
109
  usePrepare: i,
109
110
  title: (e, o) => o.insights_feed?.connection_details?.connection_details_drawer_title ?? ""
110
111
  })),
111
112
  [t.CONNECT_WIDGET_ACTION_BLOCK]: r(() => ({
112
- Component: E,
113
+ Component: v,
113
114
  usePrepare: i
114
115
  })),
115
116
  [t.SURVEY_MODAL_ACTION_BLOCK]: r(() => ({
116
- Component: v,
117
+ Component: K,
117
118
  usePrepare: i,
118
119
  presentation: "modal"
119
120
  })),
120
121
  [t.TRANSACTION_LIST_ACTION_BLOCK]: r(() => ({
121
- Component: H,
122
+ Component: x,
122
123
  usePrepare: c,
123
124
  title: (e, o, a) => a?.insights_payload?.title ?? ""
124
125
  })),
125
126
  [t.AMOUNT_INPUT_MODAL_ACTION_BLOCK]: r(() => ({
126
- Component: V,
127
+ Component: Y,
127
128
  presentation: "modal",
128
129
  usePrepare: i
129
130
  })),
130
131
  [t.OVERDRAFT_ACTION_BLOCK]: r(() => ({
131
- Component: Y,
132
- usePrepare: z,
132
+ Component: z,
133
+ usePrepare: W,
133
134
  title: (e, o, a) => a?.insights_payload?.title ?? ""
134
135
  })),
135
136
  [t.CREDIT_UTILIZATION_ACTION_BLOCK]: r(() => ({
136
- Component: j,
137
- usePrepare: J,
137
+ Component: J,
138
+ usePrepare: Q,
138
139
  title: (e, o) => o.insights_feed?.credit_utilization?.title ?? ""
139
140
  })),
140
141
  [t.EMERGENCY_SAVINGS_ACTION_BLOCK]: r(() => ({
141
- Component: Z,
142
+ Component: j,
142
143
  usePrepare: i,
143
144
  title: (e, o, a) => a?.insights_payload?.title ?? ""
144
145
  })),
145
146
  [t.PAYOFF_CALCULATOR_ACTION_BLOCK]: r(() => ({
146
- Component: Q,
147
- usePrepare: X,
147
+ Component: X,
148
+ usePrepare: $,
148
149
  title: (e, o) => o.insights_feed?.payoff_calculator?.title ?? ""
149
150
  })),
150
151
  [t.BUDGET_DETAILS_ACTION_BLOCK]: r(() => ({
151
- Component: $,
152
+ Component: oo,
152
153
  usePrepare: i,
153
154
  title: (e, o, a) => a?.insights_payload?.title || o.budgets?.details_title || ""
154
155
  })),
155
156
  [t.ACCOUNT_DETAILS_ACTION_BLOCK]: r(() => ({
156
- Component: oo,
157
- usePrepare: to,
157
+ Component: to,
158
+ usePrepare: ro,
158
159
  title: (e, o) => o.accounts?.account_details ?? ""
159
160
  })),
160
161
  [t.ACCOUNT_LIST_ACTION_BLOCK]: r(() => ({
161
- Component: W,
162
- usePrepare: q,
162
+ Component: q,
163
+ usePrepare: Z,
163
164
  title: (e, o) => o.insights_feed?.account_list?.title ?? ""
164
165
  }))
165
- }, tt = {
166
+ }, et = {
166
167
  account_block: k,
167
168
  account_switch_block: A,
168
169
  direct_deposit_block: B,
169
170
  bar_chart_block: m,
170
- budget_block: T,
171
- debts_block: f,
171
+ budget_block: f,
172
+ debts_block: T,
172
173
  donut_chart_block: C,
173
174
  double_bar_chart_block: _,
174
175
  double_progress_bar_block: u,
175
176
  goals_block: O,
176
- image_block: b,
177
- no_spend_days_block: d,
177
+ image_block: D,
178
+ merchant_block: d,
179
+ no_spend_days_block: N,
178
180
  repeating_transaction_block: n,
179
- save_extra_block: N,
180
- savings_opportunity_block: I,
181
+ save_extra_block: I,
182
+ savings_opportunity_block: g,
181
183
  step_chart_block: s,
182
- svg_image_block: D,
184
+ svg_image_block: h,
183
185
  upcoming_bill_block: n,
184
- upcoming_subscription_block: L,
185
- withdrawal_block: P,
186
- transaction_block: g
186
+ upcoming_subscription_block: P,
187
+ withdrawal_block: b,
188
+ transaction_block: L
187
189
  };
188
190
  export {
189
- ot as actionBlocks,
190
- tt as blocks,
191
- io as hasDrawerBlock
191
+ rt as actionBlocks,
192
+ et as blocks,
193
+ ao as hasDrawerBlock
192
194
  };
193
195
 
194
196
  //# 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 { useTransactionHistoryPrepare } from '../actionBlocks/TransactionHistoryBlock/useTransactionHistoryPrepare'\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'\nimport { AccountDetailsBlock, useAccountDetailsPrepare } from '../actionBlocks/AccountDetailsBlock'\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: useTransactionHistoryPrepare,\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 // The accounts widget's account details (header, trend chart, tabs, connection, actions) for the\n // beat's primary account. Shared by every beat that opens an account.\n [actionBlocksKey.ACCOUNT_DETAILS_ACTION_BLOCK]: liveEntry(() => ({\n Component: AccountDetailsBlock,\n usePrepare: useAccountDetailsPrepare,\n title: (_variant, copy) => copy.accounts?.account_details ?? '',\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 }>>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqEA,IAAM,IAAA,CAAQ,MAAwB;AAAC,GA0BjC,IAAA,CAAa,OAAuD;AAAA,EACxE,IAAI,YAAY;AACd,WAAO,EAAQ,EAAE;AAAA,EACnB;AAAA,EACA,IAAI,aAAa;AACf,WAAO,EAAQ,EAAE;AAAA,EACnB;AAAA,EACA,IAAI,QAAQ;AACV,WAAO,EAAQ,EAAE;AAAA,EACnB;AAAA,EACA,IAAI,eAAe;AACjB,WAAO,EAAQ,EAAE;AAAA,EACnB;AACF,IAEa,KAAe;AAAA,EACzB,CAAA,EAAgB,wBAAA,GAA2B,EAAA,OAAiB;AAAA,IAC3D,WAAW;AAAA,IACX,YAAY;AAAA,IACZ,OAAA,MAAa;AAAA,EACf,EAAE;AAAA,EACD,CAAA,EAAgB,0BAAA,GAA6B,EAAA,OAAiB;AAAA,IAC7D,WAAW;AAAA,IACX,YAAY;AAAA,IACZ,OAAO;AAAA,EACT,EAAE;AAAA,EACD,CAAA,EAAgB,gCAAA,GAAmC,EAAA,OAAiB;AAAA,IACnE,WAAW;AAAA,IACX,YAAY;AAAA,IACZ,OAAO;A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AAU,mBAAmB;AAAA,EAC/D,EAAE;AAAA,EAED,CAAA,EAAgB,yBAAA,GAA4B,EAAA,OAAiB;AAAA,IAC5D,WAAW;AAAA,IACX,YAAY;AAAA,IACZ,OAAA,CAAQ,GAAU,MAAS,EAAK,eAAe,cAAc,SAAS;AAAA,EACxE,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 MerchantBlock,\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 { useTransactionHistoryPrepare } from '../actionBlocks/TransactionHistoryBlock/useTransactionHistoryPrepare'\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'\nimport { AccountDetailsBlock, useAccountDetailsPrepare } from '../actionBlocks/AccountDetailsBlock'\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: useTransactionHistoryPrepare,\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 // The accounts widget's account details (header, trend chart, tabs, connection, actions) for the\n // beat's primary account. Shared by every beat that opens an account.\n [actionBlocksKey.ACCOUNT_DETAILS_ACTION_BLOCK]: liveEntry(() => ({\n Component: AccountDetailsBlock,\n usePrepare: useAccountDetailsPrepare,\n title: (_variant, copy) => copy.accounts?.account_details ?? '',\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 merchant_block: MerchantBlock,\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: Insights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BAAqB;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"}
@@ -13,8 +13,8 @@ import It from "../common/components/ConnectDrawer.es.js";
13
13
  import Rt from "../common/components/SearchBox.es.js";
14
14
  import { SkeletonLoader as xt } from "../common/components/SkeletonLoader.es.js";
15
15
  import { useTransactionsUiStore as Mt } from "./context/hooks.es.js";
16
- import Wt from "./components/shared/TransactionList.es.js";
17
- import Ut from "./components/shared/TransactionTable.es.js";
16
+ import Ut from "./components/shared/TransactionList.es.js";
17
+ import Wt from "./components/shared/TransactionTable.es.js";
18
18
  import { useCategoryUiStore as Vt } from "../categories/context/hooks.es.js";
19
19
  import Bt from "./components/shared/TransactionDetails.es.js";
20
20
  import Gt from "./components/shared/transactiondetails/ManualTransactionDetails.es.js";
@@ -30,8 +30,8 @@ import { jsx as a, jsxs as I } from "react/jsx-runtime";
30
30
  import { useTheme as zt } from "@mui/material/styles";
31
31
  import S from "@mui/material/Box";
32
32
  import { getUnixTime as Xt } from "date-fns/getUnixTime";
33
- var R = 120, Yt = ({ onBackClick: x, onMenuClick: M, height: g = "100dvh", showInsights: u = !1, sx: W = {} }) => {
34
- const { manualAccounts: U, refreshAccounts: V } = At(), { is_mobile_webview: B, clientConfig: G, config: F } = ht(), { setSearchValue: K } = Vt(), { onEvent: r } = St(), { common: y, transactions: o } = gt(), { displayedDateRange: f, isInitialized: c, selectedAccountGuids: D, setDisplayedDate: b } = yt(), { isDesktop: P, isTablet: H } = wt(), l = zt(), { addTransaction: $, filter: j, isTransactionDataLoaded: p, loadTransactionData: z, setFilter: w, sortedTransactions: N, sortedTransactionsWithSplits: X, tags: Y, detailedTransactions: q, updateTransaction: J } = Dt(), { clearExpandedSplits: Q, isAmountValid: Z, manualTransaction: d, searchValue: L, setSearchValue: tt, setShowInsights: at, updateManualTransaction: ot } = Mt(), { userProfile: et } = bt(), [_, e] = i.useState(""), [O, m] = i.useState(""), [nt, C] = i.useState(!1), [it, E] = i.useState(!1), { announce: rt, ariaLive: st } = Lt(), T = G?.transactions?.selected_account_guid;
33
+ var R = 120, Yt = ({ onBackClick: x, onMenuClick: M, height: g = "100dvh", showInsights: u = !1, sx: U = {} }) => {
34
+ const { manualAccounts: W, refreshAccounts: V } = At(), { is_mobile_webview: B, clientConfig: G, config: F } = ht(), { setSearchValue: K } = Vt(), { onEvent: r } = St(), { common: y, transactions: e } = gt(), { displayedDateRange: f, isInitialized: c, selectedAccountGuids: D, setDisplayedDate: b } = yt(), { isDesktop: P, isTablet: H } = wt(), d = zt(), { addTransaction: $, filter: j, isTransactionDataLoaded: p, loadTransactionData: z, setFilter: w, sortedTransactions: N, sortedTransactionsWithSplits: X, tags: Y, detailedTransactions: q, updateTransaction: J } = Dt(), { clearExpandedSplits: Q, isAmountValid: Z, manualTransaction: l, searchValue: L, setSearchValue: tt, setShowInsights: at, updateManualTransaction: et } = Mt(), { userProfile: ot } = bt(), [_, o] = i.useState(""), [O, m] = i.useState(""), [nt, C] = i.useState(!1), [it, E] = i.useState(!1), { announce: rt, ariaLive: st } = Lt(), T = G?.transactions?.selected_account_guid;
35
35
  Nt({
36
36
  widgetName: "TransactionWidget",
37
37
  isLoaded: p
@@ -55,25 +55,25 @@ var R = 120, Yt = ({ onBackClick: x, onMenuClick: M, height: g = "100dvh", showI
55
55
  ]), i.useEffect(() => {
56
56
  at(u);
57
57
  }, [u]), i.useEffect(() => {
58
- c && rt(Tt(o.showing_transactions_count, N.length));
58
+ c && rt(Tt(e.showing_transactions_count, N.length));
59
59
  }, [c, N]);
60
- const n = O ? q.find((t) => t.guid === O) : void 0, k = Z && !!d.payee && !!d.account_guid && !!d.category_guid, ct = (t) => {
60
+ const n = O ? q.find((t) => t.guid === O) : void 0, k = Z && !!l.payee && !!l.account_guid && !!l.category_guid, ct = (t) => {
61
61
  Q(), b(t[0], t[1]);
62
- }, lt = (t) => {
62
+ }, dt = (t) => {
63
63
  tt(t), w({
64
64
  ...j,
65
65
  searchTerm: t
66
66
  }), r(s.TRANSACTIONS_CLICK_SEARCH, { search_term: t });
67
- }, dt = () => {
67
+ }, lt = () => {
68
68
  Et(X, Y), r(s.TRANSACTIONS_CLICK_EXPORT);
69
69
  }, mt = () => {
70
- U.length > 0 ? (ot({
70
+ W.length > 0 ? (et({
71
71
  ...Ot,
72
72
  date: Xt(h()),
73
- user_guid: et?.user_guid || ""
74
- }), e("addTransaction"), r(s.TRANSACTIONS_CLICK_ADD)) : (C(!0), r(s.TRANSACTIONS_ADD_MANUAL_ACCOUNT_MODAL));
73
+ user_guid: ot?.user_guid || ""
74
+ }), o("addTransaction"), r(s.TRANSACTIONS_CLICK_ADD)) : (C(!0), r(s.TRANSACTIONS_ADD_MANUAL_ACCOUNT_MODAL));
75
75
  }, ut = async () => {
76
- k && await $(d), e("");
76
+ k && await $(l), o("");
77
77
  }, ft = () => {
78
78
  C(!1), E(!0);
79
79
  }, pt = async () => {
@@ -82,17 +82,17 @@ var R = 120, Yt = ({ onBackClick: x, onMenuClick: M, height: g = "100dvh", showI
82
82
  n && !n.has_been_viewed && await J({
83
83
  ...n,
84
84
  has_been_viewed: !0
85
- }), e("");
85
+ }), o("");
86
86
  };
87
87
  if (!c) return /* @__PURE__ */ a(kt, {});
88
88
  const A = [];
89
89
  return !B && (P || H) && A.push({
90
90
  iconName: "open_in_new",
91
- label: o.export_csv_btn,
92
- onClick: dt
91
+ label: e.export_csv_btn,
92
+ onClick: lt
93
93
  }), F.show_connections_widget_in_master && A.push({
94
94
  iconName: "add",
95
- label: o.add_transaction_btn,
95
+ label: e.add_transaction_btn,
96
96
  onClick: mt
97
97
  }), /* @__PURE__ */ I(vt, {
98
98
  actions: A,
@@ -102,42 +102,43 @@ var R = 120, Yt = ({ onBackClick: x, onMenuClick: M, height: g = "100dvh", showI
102
102
  onBackClick: x,
103
103
  onMenuClick: M,
104
104
  showAccountFilter: !T,
105
- sx: W,
106
- title: o.transactions_title,
105
+ sx: U,
106
+ title: e.transactions_title,
107
107
  children: [
108
108
  p ? /* @__PURE__ */ I(Ht, { children: [
109
109
  st,
110
110
  /* @__PURE__ */ a(S, { children: /* @__PURE__ */ a(Rt, {
111
- onChange: lt,
112
- placeholder: o.action_bar_search_placeholder,
111
+ onChange: dt,
112
+ placeholder: e.action_bar_search_placeholder,
113
113
  searchValue: L
114
114
  }) }),
115
115
  /* @__PURE__ */ a(S, {
116
116
  sx: {
117
- [l.breakpoints.down("md")]: { display: "none" },
118
- [l.breakpoints.up("md")]: { display: "block" }
117
+ [d.breakpoints.down("md")]: { display: "none" },
118
+ [d.breakpoints.up("md")]: { display: "block" }
119
119
  },
120
- children: /* @__PURE__ */ a(Ut, {
120
+ children: /* @__PURE__ */ a(Wt, {
121
121
  height: `calc(${g} - ${R}px)`,
122
122
  onCategoryClick: (t) => {
123
- m(t), e("category");
123
+ m(t), o("category");
124
124
  },
125
125
  onRowClick: (t) => {
126
- m(t), e("transaction"), r(s.TRANSACTIONS_CLICK_DETAILS, { transaction_guid: t });
126
+ m(t), o("transaction"), r(s.TRANSACTIONS_CLICK_DETAILS, { transaction_guid: t });
127
127
  }
128
128
  })
129
129
  }),
130
130
  /* @__PURE__ */ a(S, {
131
131
  sx: {
132
- [l.breakpoints.down("md")]: { display: "block" },
133
- [l.breakpoints.up("md")]: { display: "none" }
132
+ [d.breakpoints.down("md")]: { display: "block" },
133
+ [d.breakpoints.up("md")]: { display: "none" }
134
134
  },
135
- children: /* @__PURE__ */ a(Wt, {
135
+ children: /* @__PURE__ */ a(Ut, {
136
136
  height: `calc(${g} - ${R}px)`,
137
137
  onClick: (t) => {
138
- m(t), e("transaction");
138
+ m(t), o("transaction");
139
139
  },
140
- showInsights: u
140
+ showInsights: u,
141
+ showUnviewedIndicator: !0
141
142
  })
142
143
  })
143
144
  ] }) : /* @__PURE__ */ a(xt, {
@@ -148,12 +149,12 @@ var R = 120, Yt = ({ onBackClick: x, onMenuClick: M, height: g = "100dvh", showI
148
149
  ariaLabelClose: y.close_aria,
149
150
  isOpen: _ === "transaction" && !!n,
150
151
  onClose: _t,
151
- title: o.details_title,
152
+ title: e.details_title,
152
153
  children: n && /* @__PURE__ */ a(Bt, { transaction: n })
153
154
  }),
154
155
  n && _ === "category" && /* @__PURE__ */ a(Kt, {
155
156
  onClose: () => {
156
- K(""), e(""), m("");
157
+ K(""), o(""), m("");
157
158
  },
158
159
  transaction: n
159
160
  }),
@@ -161,13 +162,13 @@ var R = 120, Yt = ({ onBackClick: x, onMenuClick: M, height: g = "100dvh", showI
161
162
  ariaLabelClose: y.close_aria,
162
163
  isOpen: _ === "addTransaction",
163
164
  isPrimaryDisabled: !k,
164
- onClose: () => e(""),
165
+ onClose: () => o(""),
165
166
  onPrimaryAction: ut,
166
- title: o.add_transaction_title,
167
+ title: e.add_transaction_title,
167
168
  children: /* @__PURE__ */ a(Gt, {})
168
169
  }),
169
170
  /* @__PURE__ */ a(Ft, {
170
- copy: { title: o.add_manual_account },
171
+ copy: { title: e.add_manual_account },
171
172
  isOpen: nt,
172
173
  onClose: () => {
173
174
  C(!1);
@@ -177,7 +178,7 @@ var R = 120, Yt = ({ onBackClick: x, onMenuClick: M, height: g = "100dvh", showI
177
178
  /* @__PURE__ */ a(It, {
178
179
  onClose: pt,
179
180
  showConnectWidget: it,
180
- title: o.add_manual_account
181
+ title: e.add_manual_account
181
182
  })
182
183
  ]
183
184
  });
@@ -1 +1 @@
1
- {"version":3,"file":"TransactionWidget.es.js","names":[],"sources":["../../src/transactions/TransactionWidget.tsx"],"sourcesContent":["import React from 'react'\nimport { observer } from 'mobx-react-lite'\nimport { endOfMonth } from 'date-fns/endOfMonth'\nimport { getUnixTime } from 'date-fns/getUnixTime'\nimport { startOfMonth } from 'date-fns/startOfMonth'\nimport { startOfToday } from 'date-fns/startOfToday'\n\nimport Box from '@mui/material/Box'\nimport Stack from '@mui/material/Stack'\nimport { useTheme } from '@mui/material/styles'\n\nimport type { DateRange } from '@mui/x-date-pickers-pro'\n\nimport {\n ANALYTICS_EVENTS,\n Drawer,\n Loader,\n SearchBox,\n useAccountStore,\n useAppConfig,\n useEvent,\n useGlobalCopyStore,\n useGlobalUiStore,\n useScreenSize,\n useTransactionStore,\n useUserStore,\n useWidgetLoadTimer,\n WidgetContainer,\n} from '../common'\nimport { WidgetProps } from '../core'\n\nimport { useTransactionsUiStore } from './context/hooks'\nimport { DEFAULT_TRANSACTION } from '../core/constants/Transaction'\nimport { exportTransactionsToCSV } from '../core/utils/TransactionUtils'\nimport ConnectDrawer from '../common/components/ConnectDrawer'\nimport ManualTransactionDetails from './components/shared/transactiondetails/ManualTransactionDetails'\nimport TransactionDetails from './components/shared/TransactionDetails'\nimport TransactionList from './components/shared/TransactionList'\nimport TransactionTable from './components/shared/TransactionTable'\nimport AddAccountModal from './components/transactionwidget/AddAccountModal'\nimport EditCategoryAction from './components/transactionwidget/actions/EditCategoryAction'\n\nimport { useCategoryUiStore } from '../categories'\nimport { useAriaLive } from '../common/hooks/useAriaLive'\nimport { SkeletonLoader } from '../common/components/SkeletonLoader'\nimport { buildDynamicCopy } from '../core/utils/Localization'\n\nconst HEADER_HEIGHT = 120\n\nenum Drawers {\n AddTransaction = 'addTransaction',\n Category = 'category',\n Transaction = 'transaction',\n}\n\ninterface TransactionWidgetProps extends WidgetProps {\n height?: string | number\n showInsights?: boolean\n}\n\nconst TransactionWidget: React.FC<TransactionWidgetProps> = ({\n onBackClick,\n onMenuClick,\n height = '100dvh',\n showInsights = false,\n sx = {},\n}) => {\n const { manualAccounts, refreshAccounts } = useAccountStore()\n const { is_mobile_webview, clientConfig, config } = useAppConfig()\n const { setSearchValue: setCategorySearchValue } = useCategoryUiStore()\n const { onEvent } = useEvent()\n const { common: commonCopy, transactions: copy } = useGlobalCopyStore()\n const { displayedDateRange, isInitialized, selectedAccountGuids, setDisplayedDate } =\n useGlobalUiStore()\n const { isDesktop, isTablet } = useScreenSize()\n const theme = useTheme()\n const {\n addTransaction,\n filter,\n isTransactionDataLoaded,\n loadTransactionData,\n setFilter,\n sortedTransactions,\n sortedTransactionsWithSplits,\n tags,\n detailedTransactions: transactions,\n updateTransaction,\n } = useTransactionStore()\n const {\n clearExpandedSplits,\n isAmountValid,\n manualTransaction,\n searchValue,\n setSearchValue,\n setShowInsights,\n updateManualTransaction,\n } = useTransactionsUiStore()\n const { userProfile } = useUserStore()\n\n const [drawerOpen, setDrawerOpen] = React.useState('')\n const [transactionGuid, setTransactionGuid] = React.useState('')\n\n const [addManualAccountModalOpen, setAddManualAccountModalOpen] = React.useState(false)\n const [showConnectWidget, setShowConnectWidget] = React.useState(false)\n\n const { announce, ariaLive } = useAriaLive()\n\n const selected_account_guid = clientConfig?.transactions?.selected_account_guid\n\n useWidgetLoadTimer({\n widgetName: 'TransactionWidget',\n isLoaded: isTransactionDataLoaded,\n })\n\n React.useEffect(() => {\n if (!isTransactionDataLoaded) {\n loadTransactionData().finally()\n }\n\n // Set the displayed date to the current month\n const startDate = startOfMonth(startOfToday())\n const endDate = endOfMonth(startOfToday())\n setDisplayedDate(startDate, endDate)\n\n onEvent(ANALYTICS_EVENTS.TRANSACTIONS_VIEW)\n }, [])\n\n React.useEffect(() => {\n if (isInitialized) {\n // Update the filter whenever the display date or account filter changes\n setFilter({\n accounts: selected_account_guid ? [selected_account_guid] : selectedAccountGuids,\n dateRange: { start: displayedDateRange.start, end: displayedDateRange.end },\n searchTerm: searchValue,\n })\n }\n }, [isInitialized, displayedDateRange, selectedAccountGuids])\n\n React.useEffect(() => {\n setShowInsights(showInsights)\n }, [showInsights])\n\n React.useEffect(() => {\n if (isInitialized) {\n announce(\n buildDynamicCopy(copy.showing_transactions_count, sortedTransactions.length) as string,\n )\n }\n }, [isInitialized, sortedTransactions])\n\n const transaction = transactionGuid\n ? transactions.find((transaction) => transaction.guid === transactionGuid)\n : undefined\n\n const isTransactionValid =\n isAmountValid &&\n Boolean(manualTransaction.payee) &&\n Boolean(manualTransaction.account_guid) &&\n Boolean(manualTransaction.category_guid)\n\n const handleDateChanged = (range: DateRange<Date>) => {\n clearExpandedSplits()\n setDisplayedDate(range[0] as Date, range[1] as Date)\n }\n\n const handleSearch = (searchTerm: string) => {\n setSearchValue(searchTerm)\n setFilter({\n ...filter,\n searchTerm,\n })\n onEvent(ANALYTICS_EVENTS.TRANSACTIONS_CLICK_SEARCH, { search_term: searchTerm })\n }\n\n const handleExportCsvClick = () => {\n exportTransactionsToCSV(sortedTransactionsWithSplits, tags)\n onEvent(ANALYTICS_EVENTS.TRANSACTIONS_CLICK_EXPORT)\n }\n\n const handleAddTransactionClick = () => {\n if (manualAccounts.length > 0) {\n updateManualTransaction({\n ...DEFAULT_TRANSACTION,\n date: getUnixTime(startOfToday()),\n user_guid: userProfile?.user_guid || '',\n })\n\n setDrawerOpen(Drawers.AddTransaction)\n onEvent(ANALYTICS_EVENTS.TRANSACTIONS_CLICK_ADD)\n } else {\n setAddManualAccountModalOpen(true)\n onEvent(ANALYTICS_EVENTS.TRANSACTIONS_ADD_MANUAL_ACCOUNT_MODAL)\n }\n }\n\n const handleAddTransaction = async () => {\n if (isTransactionValid) {\n await addTransaction(manualTransaction)\n }\n\n setDrawerOpen('')\n }\n\n const handleAddManualAccountClick = () => {\n setAddManualAccountModalOpen(false)\n setShowConnectWidget(true)\n }\n\n const handleConnectWidgetClose = async () => {\n setShowConnectWidget(false)\n await refreshAccounts()\n }\n\n const handleTransactionDrawerClose = async () => {\n // mark transaction as viewed\n if (transaction && !transaction.has_been_viewed) {\n await updateTransaction({ ...transaction, has_been_viewed: true })\n }\n setDrawerOpen('')\n }\n\n if (!isInitialized) {\n return <Loader />\n }\n\n const actions = []\n\n if (!is_mobile_webview && (isDesktop || isTablet)) {\n actions.push({\n iconName: 'open_in_new',\n label: copy.export_csv_btn,\n onClick: handleExportCsvClick,\n })\n }\n\n if (config.show_connections_widget_in_master) {\n actions.push({\n iconName: 'add',\n label: copy.add_transaction_btn,\n onClick: handleAddTransactionClick,\n })\n }\n\n return (\n <WidgetContainer\n actions={actions}\n calendarActions={{\n onRangeChanged: handleDateChanged,\n }}\n hasDivider={true}\n onAccountsFilterClick={() => onEvent(ANALYTICS_EVENTS.ACCOUNTS_CLICK_FILTER)}\n onBackClick={onBackClick}\n onMenuClick={onMenuClick}\n showAccountFilter={!selected_account_guid}\n sx={sx}\n title={copy.transactions_title}\n >\n {!isTransactionDataLoaded ? (\n <SkeletonLoader sx={{ m: 48 }} variant=\"list\" />\n ) : (\n <Stack>\n {ariaLive}\n <Box>\n <SearchBox\n onChange={handleSearch}\n placeholder={copy.action_bar_search_placeholder}\n searchValue={searchValue}\n />\n </Box>\n\n <Box\n sx={{\n [theme.breakpoints.down('md')]: { display: 'none' },\n [theme.breakpoints.up('md')]: { display: 'block' },\n }}\n >\n <TransactionTable\n height={`calc(${height} - ${HEADER_HEIGHT}px)`}\n onCategoryClick={(guid: string) => {\n setTransactionGuid(guid)\n setDrawerOpen(Drawers.Category)\n }}\n onRowClick={(guid: string) => {\n setTransactionGuid(guid)\n setDrawerOpen(Drawers.Transaction)\n onEvent(ANALYTICS_EVENTS.TRANSACTIONS_CLICK_DETAILS, { transaction_guid: guid })\n }}\n />\n </Box>\n <Box\n sx={{\n [theme.breakpoints.down('md')]: { display: 'block' },\n [theme.breakpoints.up('md')]: { display: 'none' },\n }}\n >\n <TransactionList\n height={`calc(${height} - ${HEADER_HEIGHT}px)`}\n onClick={(guid: string) => {\n setTransactionGuid(guid)\n setDrawerOpen(Drawers.Transaction)\n }}\n showInsights={showInsights}\n />\n </Box>\n </Stack>\n )}\n\n <Drawer\n ariaLabelClose={commonCopy.close_aria}\n isOpen={drawerOpen === Drawers.Transaction && Boolean(transaction)}\n onClose={handleTransactionDrawerClose}\n title={copy.details_title}\n >\n {transaction && <TransactionDetails transaction={transaction} />}\n </Drawer>\n {transaction && drawerOpen === Drawers.Category && (\n <EditCategoryAction\n onClose={() => {\n setCategorySearchValue('')\n setDrawerOpen('')\n setTransactionGuid('')\n }}\n transaction={transaction}\n />\n )}\n <Drawer\n ariaLabelClose={commonCopy.close_aria}\n isOpen={drawerOpen === Drawers.AddTransaction}\n isPrimaryDisabled={!isTransactionValid}\n onClose={() => setDrawerOpen('')}\n onPrimaryAction={handleAddTransaction}\n title={copy.add_transaction_title}\n >\n <ManualTransactionDetails />\n </Drawer>\n <AddAccountModal\n copy={{ title: copy.add_manual_account }}\n isOpen={addManualAccountModalOpen}\n onClose={() => {\n setAddManualAccountModalOpen(false)\n }}\n onPrimaryAction={handleAddManualAccountClick}\n />\n <ConnectDrawer\n onClose={handleConnectWidgetClose}\n showConnectWidget={showConnectWidget}\n title={copy.add_manual_account}\n />\n </WidgetContainer>\n )\n}\n\nexport default observer(TransactionWidget)\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+CA,IAAM,IAAgB,KAahB,KAAA,CAAuD,EAC3D,aAAA,GACA,aAAA,GACA,QAAA,IAAS,UACT,cAAA,IAAe,IACf,IAAA,IAAK,CAAC,EAAA,MACF;AACJ,QAAM,EAAE,gBAAA,GAAgB,iBAAA,EAAA,IAAoB,GAAgB,GACtD,EAAE,mBAAA,GAAmB,cAAA,GAAc,QAAA,EAAA,IAAW,GAAa,GAC3D,EAAE,gBAAgB,EAAA,IAA2B,GAAmB,GAChE,EAAE,SAAA,EAAA,IAAY,GAAS,GACvB,EAAE,QAAQ,GAAY,cAAc,EAAA,IAAS,GAAmB,GAChE,EAAE,oBAAA,GAAoB,eAAA,GAAe,sBAAA,GAAsB,kBAAA,EAAA,IAC/D,GAAiB,GACb,EAAE,WAAA,GAAW,UAAA,EAAA,IAAa,GAAc,GACxC,IAAQ,GAAS,GACjB,EACJ,gBAAA,GACA,QAAA,GACA,yBAAA,GACA,qBAAA,GACA,WAAA,GACA,oBAAA,GACA,8BAAA,GACA,MAAA,GACA,sBAAsB,GACtB,mBAAA,EAAA,IACE,G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QAEZ,UAAA,gBAAA,EAAC,IAAD,CAA2B,CAAA;AAAA,MACrB,CAAA;AAAA,MACR,gBAAA,EAAC,IAAD;AAAA,QACE,MAAM,EAAE,OAAO,EAAK,mBAAmB;AAAA,QACvC,QAAQ;AAAA,QACR,SAAA,MAAe;AACb,UAAA,EAA6B,EAAK;AAAA,QACpC;AAAA,QACA,iBAAiB;AAAA,MAClB,CAAA;AAAA,MACD,gBAAA,EAAC,IAAD;AAAA,QACE,SAAS;AAAA,QACU,mBAAA;AAAA,QACnB,OAAO,EAAK;AAAA,MACb,CAAA;AAAA,IACc;AAAA;AAErB,GAEA,KAAe,GAAS,EAAiB"}
1
+ {"version":3,"file":"TransactionWidget.es.js","names":[],"sources":["../../src/transactions/TransactionWidget.tsx"],"sourcesContent":["import React from 'react'\nimport { observer } from 'mobx-react-lite'\nimport { endOfMonth } from 'date-fns/endOfMonth'\nimport { getUnixTime } from 'date-fns/getUnixTime'\nimport { startOfMonth } from 'date-fns/startOfMonth'\nimport { startOfToday } from 'date-fns/startOfToday'\n\nimport Box from '@mui/material/Box'\nimport Stack from '@mui/material/Stack'\nimport { useTheme } from '@mui/material/styles'\n\nimport type { DateRange } from '@mui/x-date-pickers-pro'\n\nimport {\n ANALYTICS_EVENTS,\n Drawer,\n Loader,\n SearchBox,\n useAccountStore,\n useAppConfig,\n useEvent,\n useGlobalCopyStore,\n useGlobalUiStore,\n useScreenSize,\n useTransactionStore,\n useUserStore,\n useWidgetLoadTimer,\n WidgetContainer,\n} from '../common'\nimport { WidgetProps } from '../core'\n\nimport { useTransactionsUiStore } from './context/hooks'\nimport { DEFAULT_TRANSACTION } from '../core/constants/Transaction'\nimport { exportTransactionsToCSV } from '../core/utils/TransactionUtils'\nimport ConnectDrawer from '../common/components/ConnectDrawer'\nimport ManualTransactionDetails from './components/shared/transactiondetails/ManualTransactionDetails'\nimport TransactionDetails from './components/shared/TransactionDetails'\nimport TransactionList from './components/shared/TransactionList'\nimport TransactionTable from './components/shared/TransactionTable'\nimport AddAccountModal from './components/transactionwidget/AddAccountModal'\nimport EditCategoryAction from './components/transactionwidget/actions/EditCategoryAction'\n\nimport { useCategoryUiStore } from '../categories'\nimport { useAriaLive } from '../common/hooks/useAriaLive'\nimport { SkeletonLoader } from '../common/components/SkeletonLoader'\nimport { buildDynamicCopy } from '../core/utils/Localization'\n\nconst HEADER_HEIGHT = 120\n\nenum Drawers {\n AddTransaction = 'addTransaction',\n Category = 'category',\n Transaction = 'transaction',\n}\n\ninterface TransactionWidgetProps extends WidgetProps {\n height?: string | number\n showInsights?: boolean\n}\n\nconst TransactionWidget: React.FC<TransactionWidgetProps> = ({\n onBackClick,\n onMenuClick,\n height = '100dvh',\n showInsights = false,\n sx = {},\n}) => {\n const { manualAccounts, refreshAccounts } = useAccountStore()\n const { is_mobile_webview, clientConfig, config } = useAppConfig()\n const { setSearchValue: setCategorySearchValue } = useCategoryUiStore()\n const { onEvent } = useEvent()\n const { common: commonCopy, transactions: copy } = useGlobalCopyStore()\n const { displayedDateRange, isInitialized, selectedAccountGuids, setDisplayedDate } =\n useGlobalUiStore()\n const { isDesktop, isTablet } = useScreenSize()\n const theme = useTheme()\n const {\n addTransaction,\n filter,\n isTransactionDataLoaded,\n loadTransactionData,\n setFilter,\n sortedTransactions,\n sortedTransactionsWithSplits,\n tags,\n detailedTransactions: transactions,\n updateTransaction,\n } = useTransactionStore()\n const {\n clearExpandedSplits,\n isAmountValid,\n manualTransaction,\n searchValue,\n setSearchValue,\n setShowInsights,\n updateManualTransaction,\n } = useTransactionsUiStore()\n const { userProfile } = useUserStore()\n\n const [drawerOpen, setDrawerOpen] = React.useState('')\n const [transactionGuid, setTransactionGuid] = React.useState('')\n\n const [addManualAccountModalOpen, setAddManualAccountModalOpen] = React.useState(false)\n const [showConnectWidget, setShowConnectWidget] = React.useState(false)\n\n const { announce, ariaLive } = useAriaLive()\n\n const selected_account_guid = clientConfig?.transactions?.selected_account_guid\n\n useWidgetLoadTimer({\n widgetName: 'TransactionWidget',\n isLoaded: isTransactionDataLoaded,\n })\n\n React.useEffect(() => {\n if (!isTransactionDataLoaded) {\n loadTransactionData().finally()\n }\n\n // Set the displayed date to the current month\n const startDate = startOfMonth(startOfToday())\n const endDate = endOfMonth(startOfToday())\n setDisplayedDate(startDate, endDate)\n\n onEvent(ANALYTICS_EVENTS.TRANSACTIONS_VIEW)\n }, [])\n\n React.useEffect(() => {\n if (isInitialized) {\n // Update the filter whenever the display date or account filter changes\n setFilter({\n accounts: selected_account_guid ? [selected_account_guid] : selectedAccountGuids,\n dateRange: { start: displayedDateRange.start, end: displayedDateRange.end },\n searchTerm: searchValue,\n })\n }\n }, [isInitialized, displayedDateRange, selectedAccountGuids])\n\n React.useEffect(() => {\n setShowInsights(showInsights)\n }, [showInsights])\n\n React.useEffect(() => {\n if (isInitialized) {\n announce(\n buildDynamicCopy(copy.showing_transactions_count, sortedTransactions.length) as string,\n )\n }\n }, [isInitialized, sortedTransactions])\n\n const transaction = transactionGuid\n ? transactions.find((transaction) => transaction.guid === transactionGuid)\n : undefined\n\n const isTransactionValid =\n isAmountValid &&\n Boolean(manualTransaction.payee) &&\n Boolean(manualTransaction.account_guid) &&\n Boolean(manualTransaction.category_guid)\n\n const handleDateChanged = (range: DateRange<Date>) => {\n clearExpandedSplits()\n setDisplayedDate(range[0] as Date, range[1] as Date)\n }\n\n const handleSearch = (searchTerm: string) => {\n setSearchValue(searchTerm)\n setFilter({\n ...filter,\n searchTerm,\n })\n onEvent(ANALYTICS_EVENTS.TRANSACTIONS_CLICK_SEARCH, { search_term: searchTerm })\n }\n\n const handleExportCsvClick = () => {\n exportTransactionsToCSV(sortedTransactionsWithSplits, tags)\n onEvent(ANALYTICS_EVENTS.TRANSACTIONS_CLICK_EXPORT)\n }\n\n const handleAddTransactionClick = () => {\n if (manualAccounts.length > 0) {\n updateManualTransaction({\n ...DEFAULT_TRANSACTION,\n date: getUnixTime(startOfToday()),\n user_guid: userProfile?.user_guid || '',\n })\n\n setDrawerOpen(Drawers.AddTransaction)\n onEvent(ANALYTICS_EVENTS.TRANSACTIONS_CLICK_ADD)\n } else {\n setAddManualAccountModalOpen(true)\n onEvent(ANALYTICS_EVENTS.TRANSACTIONS_ADD_MANUAL_ACCOUNT_MODAL)\n }\n }\n\n const handleAddTransaction = async () => {\n if (isTransactionValid) {\n await addTransaction(manualTransaction)\n }\n\n setDrawerOpen('')\n }\n\n const handleAddManualAccountClick = () => {\n setAddManualAccountModalOpen(false)\n setShowConnectWidget(true)\n }\n\n const handleConnectWidgetClose = async () => {\n setShowConnectWidget(false)\n await refreshAccounts()\n }\n\n const handleTransactionDrawerClose = async () => {\n // mark transaction as viewed\n if (transaction && !transaction.has_been_viewed) {\n await updateTransaction({ ...transaction, has_been_viewed: true })\n }\n setDrawerOpen('')\n }\n\n if (!isInitialized) {\n return <Loader />\n }\n\n const actions = []\n\n if (!is_mobile_webview && (isDesktop || isTablet)) {\n actions.push({\n iconName: 'open_in_new',\n label: copy.export_csv_btn,\n onClick: handleExportCsvClick,\n })\n }\n\n if (config.show_connections_widget_in_master) {\n actions.push({\n iconName: 'add',\n label: copy.add_transaction_btn,\n onClick: handleAddTransactionClick,\n })\n }\n\n return (\n <WidgetContainer\n actions={actions}\n calendarActions={{\n onRangeChanged: handleDateChanged,\n }}\n hasDivider={true}\n onAccountsFilterClick={() => onEvent(ANALYTICS_EVENTS.ACCOUNTS_CLICK_FILTER)}\n onBackClick={onBackClick}\n onMenuClick={onMenuClick}\n showAccountFilter={!selected_account_guid}\n sx={sx}\n title={copy.transactions_title}\n >\n {!isTransactionDataLoaded ? (\n <SkeletonLoader sx={{ m: 48 }} variant=\"list\" />\n ) : (\n <Stack>\n {ariaLive}\n <Box>\n <SearchBox\n onChange={handleSearch}\n placeholder={copy.action_bar_search_placeholder}\n searchValue={searchValue}\n />\n </Box>\n\n <Box\n sx={{\n [theme.breakpoints.down('md')]: { display: 'none' },\n [theme.breakpoints.up('md')]: { display: 'block' },\n }}\n >\n <TransactionTable\n height={`calc(${height} - ${HEADER_HEIGHT}px)`}\n onCategoryClick={(guid: string) => {\n setTransactionGuid(guid)\n setDrawerOpen(Drawers.Category)\n }}\n onRowClick={(guid: string) => {\n setTransactionGuid(guid)\n setDrawerOpen(Drawers.Transaction)\n onEvent(ANALYTICS_EVENTS.TRANSACTIONS_CLICK_DETAILS, { transaction_guid: guid })\n }}\n />\n </Box>\n <Box\n sx={{\n [theme.breakpoints.down('md')]: { display: 'block' },\n [theme.breakpoints.up('md')]: { display: 'none' },\n }}\n >\n <TransactionList\n height={`calc(${height} - ${HEADER_HEIGHT}px)`}\n onClick={(guid: string) => {\n setTransactionGuid(guid)\n setDrawerOpen(Drawers.Transaction)\n }}\n showInsights={showInsights}\n showUnviewedIndicator={true}\n />\n </Box>\n </Stack>\n )}\n\n <Drawer\n ariaLabelClose={commonCopy.close_aria}\n isOpen={drawerOpen === Drawers.Transaction && Boolean(transaction)}\n onClose={handleTransactionDrawerClose}\n title={copy.details_title}\n >\n {transaction && <TransactionDetails transaction={transaction} />}\n </Drawer>\n {transaction && drawerOpen === Drawers.Category && (\n <EditCategoryAction\n onClose={() => {\n setCategorySearchValue('')\n setDrawerOpen('')\n setTransactionGuid('')\n }}\n transaction={transaction}\n />\n )}\n <Drawer\n ariaLabelClose={commonCopy.close_aria}\n isOpen={drawerOpen === Drawers.AddTransaction}\n isPrimaryDisabled={!isTransactionValid}\n onClose={() => setDrawerOpen('')}\n onPrimaryAction={handleAddTransaction}\n title={copy.add_transaction_title}\n >\n <ManualTransactionDetails />\n </Drawer>\n <AddAccountModal\n copy={{ title: copy.add_manual_account }}\n isOpen={addManualAccountModalOpen}\n onClose={() => {\n setAddManualAccountModalOpen(false)\n }}\n onPrimaryAction={handleAddManualAccountClick}\n />\n <ConnectDrawer\n onClose={handleConnectWidgetClose}\n showConnectWidget={showConnectWidget}\n title={copy.add_manual_account}\n />\n </WidgetContainer>\n )\n}\n\nexport default observer(TransactionWidget)\n"],"mappings":";;;;;;;;;;;;;;;;;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A,IA/CP,gBAAA,EAAC,IAAD;AAAA,QAAgB,IAAI,EAAE,GAAG,GAAG;AAAA,QAAG,SAAQ;AAAA,MAAQ,CAAA;AAAA,MAkDjD,gBAAA,EAAC,GAAD;AAAA,QACE,gBAAgB,EAAW;AAAA,QAC3B,QAAQ,MAAA,iBAAsC,EAAQ;AAAA,QACtD,SAAS;AAAA,QACT,OAAO,EAAK;AAAA,QAEX,UAAA,KAAe,gBAAA,EAAC,IAAD,EAAiC,aAAA,EAAc,CAAA;AAAA,MACzD,CAAA;AAAA,MACP,KAAe,MAAA,cACd,gBAAA,EAAC,IAAD;AAAA,QACE,SAAA,MAAe;AACb,UAAA,EAAuB,EAAE,GACzB,EAAc,EAAE,GAChB,EAAmB,EAAE;AAAA,QACvB;AAAA,QACa,aAAA;AAAA,MACd,CAAA;AAAA,MAEH,gBAAA,EAAC,GAAD;AAAA,QACE,gBAAgB,EAAW;AAAA,QAC3B,QAAQ,MAAA;AAAA,QACR,mBAAmB,CAAC;AAAA,QACpB,SAAA,MAAe,EAAc,EAAE;AAAA,QAC/B,iBAAiB;AAAA,QACjB,OAAO,EAAK;AAAA,QAEZ,UAAA,gBAAA,EAAC,IAAD,CAA2B,CAAA;AAAA,MACrB,CAAA;AAAA,MACR,gBAAA,EAAC,IAAD;AAAA,QACE,MAAM,EAAE,OAAO,EAAK,mBAAmB;AAAA,QACvC,QAAQ;AAAA,QACR,SAAA,MAAe;AACb,UAAA,EAA6B,EAAK;AAAA,QACpC;AAAA,QACA,iBAAiB;AAAA,MAClB,CAAA;AAAA,MACD,gBAAA,EAAC,IAAD;AAAA,QACE,SAAS;AAAA,QACU,mBAAA;AAAA,QACnB,OAAO,EAAK;AAAA,MACb,CAAA;AAAA,IACc;AAAA;AAErB,GAEA,KAAe,GAAS,EAAiB"}
@@ -17,6 +17,7 @@ export interface TransactionListProps {
17
17
  stickyHeader?: React.ReactNode;
18
18
  showInsights?: boolean;
19
19
  showLoader?: boolean;
20
+ showUnviewedIndicator?: boolean;
20
21
  transaction?: Transaction[];
21
22
  width?: number | string;
22
23
  zeroState?: React.JSX.Element;