@mx-cartographer/experiences 9.7.179 → 9.7.181

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 CHANGED
@@ -1,3 +1,11 @@
1
+ ## [9.7.181] - 11-17-2026
2
+
3
+ - **ADDED** - QuarterlySummaryBlock component block, copy types, mock fixtures, and contract test (WEC-2363)
4
+
5
+ ## [9.7.180] - 11-17-2026
6
+
7
+ - **ADDED** - GreenStatementFeeBlock component block, mock fixtures, and contract test (WEC-2364)
8
+
1
9
  ## [9.7.179] - 11-17-2026
2
10
 
3
11
  - **ADDED** - Contract test and mock fixture for Weekly Small Purchases Summary beat (WEC-2361)
@@ -272,6 +272,7 @@ export declare const BlockType: {
272
272
  readonly GasPurchaseBlock: "gas_purchase_block";
273
273
  readonly GoalsBlock: "goals_block";
274
274
  readonly NoSpendDaysBlock: "no_spend_days_block";
275
+ readonly QuarterlySummaryBlock: "quarterly_summary_block";
275
276
  readonly QuizBlock: "quiz_block";
276
277
  readonly RepeatingTransactionBlock: "repeating_transaction_block";
277
278
  readonly SaveExtraBlock: "save_extra_block";
@@ -283,6 +284,7 @@ export declare const BlockType: {
283
284
  readonly UpcomingSubscriptionBlock: "upcoming_subscription_block";
284
285
  readonly WeeklySmallPurchasesBlock: "weekly_small_purchases_block";
285
286
  readonly WithdrawalBlock: "withdrawal_block";
287
+ readonly GreenStatementFeeBlock: "green_statement_fee_block";
286
288
  };
287
289
  export type BlockType = (typeof BlockType)[keyof typeof BlockType];
288
290
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"Insights.es.js","names":[],"sources":["../../../src/core/types/Insights.ts"],"sourcesContent":["// ============ Core InsightsV2 Types ============\n\nimport type { DataSeries } from './Beat'\nimport { InsightsInstanceSlotData } from './InsightsInstanceSlotData'\n\nexport interface ThemedSVGImageProps {\n divProps?: React.HTMLAttributes<HTMLDivElement>\n image: React.ComponentType<React.SVGProps<SVGSVGElement>>\n isMini?: boolean\n}\n\n/**\n * Emitted by a block when the user drills into a specific datum (e.g. clicks a\n * chart bar). Named fields rather than positional args so blocks with differing\n * shapes can extend this without the call sites transposing values.\n */\nexport interface DrilldownPayload {\n chartBarIndex: number\n tabIndex?: number\n transaction_guid?: string\n block?: string\n}\n\n/**\n * Which envelope a beat was fetched with. `embedded` (the transaction-row pill + details-drawer\n * card) and `notification` are V2 additions; a surface asks for one with `widget_type=` on the fetch.\n */\nexport type WidgetType = 'full' | 'mini' | 'micro' | 'embedded' | 'notification'\n\n/**\n * V2: the transaction-row tag, its own small section of the `embedded` envelope (the same grammar\n * as `description` / `footer`, with room for a tone or an icon later). Omitted for an insight that\n * tags no transaction row. It deliberately is *not* `short_title`, which stays a per-variant\n * attribute with a second consumer (the bank-holiday sub-header).\n */\nexport interface Pill {\n text: string\n}\n\n/** A row in a drilldown list fact (e.g. the Subscriptions drawer's per-transaction schedule). */\nexport type DrilldownRow = Record<string, string | number | boolean | null>\n\n/**\n * V2: facts a drilldown shows that the card does not. On the payload: what every CTA of the card\n * shares (e.g. the account number for the Transaction Details drawer, or the guid list a list drawer\n * shows, `transaction_guids`). On a CTA: the figures that CTA's own drilldown renders (the Transaction\n * List summary header's `amount`, `start_date` / `end_date` and `count`, see `readSummary`). Scalars,\n * string lists, a `data_series` (the months a history drawer charts), or rows of scalars\n * (`transaction_frequencies`), omitted when the insight has none. Never carries copy or user actions\n * (memo, tags, hide, flag come from the transaction store). Values come from the server, so a reader\n * still checks each value's runtime shape.\n */\nexport type DrilldownData = Record<\n string,\n string | number | boolean | null | string[] | DataSeries | DrilldownRow[]\n>\n\nexport interface InsightsPayload {\n widget_type: WidgetType\n instance_slot: InstanceSlot\n /**\n * V1 only. The v2 contract carries everything a block needs on `instance_slot.data`,\n * and omits this key entirely (see the LargeTransactionV2 payload). Blocks that still require it\n * get it as a required field through `BlockProps`, which re-declares it.\n */\n instance_slot_data?: InsightsInstanceSlotData\n description: Description\n primary_cta?: PrimaryCTA\n secondary_cta?: SecondaryCTA\n title?: string\n sub_title?: Subtitle\n /**\n * V2 rename of `sub_title`: a flat string, with the logo promoted to the payload-level `logo`\n * field below. `sub_title` wins when both are present.\n */\n subtitle?: string\n /** V2: header logo paired with the flat `subtitle`: an entity guid or a status icon (`LogoRef`). */\n logo?: LogoRef\n /** V2: which design branch the backend picked (e.g. `no_merchant`). */\n variant?: string\n /** V2, `embedded` envelope only: the transaction-row pill. */\n pill?: Pill\n /**\n * V2: drilldown-only facts, e.g. `{ account_number: 'XXXXXXXX043' }`, or the guid list a list\n * drawer shows (`{ transaction_guids: [...] }`).\n */\n drilldown_data?: DrilldownData\n footer?: Footer\n /**\n * V2: the link inside the description: on the full card a drawer of its own (Low Account\n * Balance's \"Transactions ›\"); on mini and micro the card's action, sent instead of `primary_cta`.\n * Absent when the beat has no link.\n */\n in_description_cta?: InDescriptionCTA\n guid: string\n user_guid: string\n client_guid?: string\n /** Template name, e.g. `LargeTransactionV2`. */\n template?: string\n revision?: number\n /** Unix seconds. */\n created_at?: number\n /** Unix seconds. */\n updated_at?: number\n /** Unix seconds. */\n active_at?: number\n displayed_at?: number | null\n dismissed_at: number | null\n cta_clicked_at?: number | null\n has_been_displayed?: boolean\n is_dismissed: boolean\n is_deleted?: boolean\n is_hidden_by_system?: boolean\n is_obsolete?: boolean\n is_refreshable?: boolean\n is_sampled?: boolean\n is_zero_state?: boolean\n status?: string | null\n /**\n * V2 (LargeTransactionV2 onward): the entities the beat is about, carried on the payload so\n * action blocks do not have to reach back out to the beat envelope.\n */\n primary_account_guid?: string | null\n primary_transaction_guid?: string | null\n primary_category_guid?: string | null\n primary_merchant_guid?: string | null\n /**\n * V2: the repeating transaction a subscription beat is about (Upcoming Subscription, Subscription\n * Price Increase). Read by `recurring_transaction_block`, see\n * `actionBlocks/RecurringTransactionBlock/subscriptionBeats.ts`.\n */\n primary_repeating_transaction_guid?: string | null\n}\n\nexport interface Legends {\n label: string\n value: number\n additional_value?: number\n additional_value_type?: string\n value_type?: string\n}\n\nexport interface Logo {\n category_guid?: string\n category_name?: string\n institution_guid?: string\n institution_name?: string\n logo_color?: string\n /** Draw the `logo_name` icon filled (V2 `ICO-` logos). */\n logo_fill?: boolean\n logo_name?: string\n merchant_guid?: string\n merchant_name?: string\n}\n\nexport interface Subtitle {\n logo?: Logo\n text: string\n}\n\n/**\n * A V2 logo, shared by the header (`InsightsPayload.logo`) and every instance-slot row. It takes\n * one of two shapes:\n *\n * - **Entity**: `guid`, whose prefix (`INS-` / `MCH-` / `CAT-`) picks the logo component, plus an\n * optional `fallback_guid` for when that component's asset cannot load. Today that is the\n * category behind an `MCH-` guid, which `MerchantLogo` shows as a tile when the merchant image\n * is missing.\n * - **Status icon**: `icon` (an mx-icons name, e.g. `warning`) and `color` (a theme palette path,\n * e.g. `error.main`), for subheaders that show a state rather than an entity (V1's\n * `logo_name` / `logo_color`).\n *\n * `alt` is the accessible name for either shape. A logo sends one shape; if it sends both, `icon`\n * wins, as `logo_name` does in V1's `SubHeader`.\n */\nexport interface LogoRef {\n alt?: string\n color?: string\n fallback_guid?: string\n guid?: string\n icon?: string\n}\n\nexport interface CategoryLogo {\n category_guid: string\n category_name: string\n}\n\nexport interface MerchantLogo {\n merchant_guid: string\n merchant_name: string\n}\n\nexport interface InstitutionLogo {\n institution_guid: string\n institution_name: string\n}\n\nexport interface Description {\n text: string\n html_text: string\n}\n\n/**\n * Post message a CTA press sends to the host, resolved by the backend for the beat's current\n * state. Absent/null = the backend has not described one: the frontend uses the template's\n * interim `ctaPostMessages` entry if there is one, else sends no message. `payload` carries only\n * beat-specific extras; the frontend always adds `beat_guid`, `beat_template`, `user_guid` and\n * `action_string`.\n */\nexport interface CtaPostMessageMetadata {\n /** Post message event; defaults to `beat/cta`. */\n event?: string | null\n /** Operation the host should perform, e.g. `op_1`, `op_2`, `op_3`. Defaults to `op_1`. */\n action?: string | null\n /** Beat-specific fields merged into the message metadata (account ids, amounts, ...). */\n payload?: Record<string, unknown> | null\n}\n\nexport interface PrimaryCTA {\n label: string\n block: string\n variant?: string | null\n /**\n * What pressing the CTA does beyond opening its block, named by the backend (ditto\n * `primary_cta_action`, passed through by tupac). Looked up in `insights-v2/ctaActions`;\n * null / absent / unknown means the CTA only opens its block or posts its message.\n */\n action_key?: string | null\n metadata?: CtaPostMessageMetadata | null\n /** Figures this CTA's drilldown renders (e.g. a summary header's amount/dates/count). */\n drilldown_data?: DrilldownData\n}\n\nexport interface SecondaryCTA {\n label: string\n /**\n * Drawer block to open. `null` when the CTA opens nothing (ditto `secondary_cta_block: null`,\n * e.g. Fee Detected's \"Contact Support\"): the press posts its message to the host instead.\n */\n block: string | null\n variant?: string | null\n /** See `PrimaryCTA.action_key` (ditto `secondary_cta_action`). */\n action_key?: string | null\n metadata?: CtaPostMessageMetadata | null\n /** Figures this CTA's drilldown renders (e.g. a summary header's amount/dates/count). */\n drilldown_data?: DrilldownData\n}\n\n/**\n * The description link: its label, the action block it opens and, like a CTA's, the variant that\n * tells that block what to show (ditto's `in_description_cta_variant`, e.g. `low_balance`). On mini\n * and micro it words the card's action; `block` is empty when that action opens no drawer.\n */\nexport interface InDescriptionCTA {\n label: string\n block?: string\n variant?: string | null\n action_key?: string | null\n /** tupac's flat host message for the link (`action` plus fields), e.g. Switch's op_1. */\n post_message_metadata?: ({ action?: string | null } & Record<string, unknown>) | null\n /** Figures this CTA's drilldown renders (e.g. a summary header's amount/dates/count). */\n drilldown_data?: DrilldownData\n}\n\nexport interface Footer {\n /** V1: a pre-formatted date string. */\n date?: string\n /**\n * The account label, on both V1 and V2. The backend resolves the plurality: one account sends\n * its name (e.g. `Epic Bank`), several send a localized count (e.g. `2 Accounts`), none sends\n * `null` (tupac's `footer_account_label` returns nil for a beat with no accounts, as Payday Cash\n * Left Over Status does). There is deliberately no separate `accounts` key.\n */\n account?: string | null\n /**\n * V2 (LargeTransactionV2 onward): unix seconds, formatted by `Footer` for display.\n * Replaces `date`; `date` wins when a beat somehow sends both.\n */\n timestamp?: number\n}\n\n// ============ Instance Slot Types ============\n// Values are the snake_case block names the backend sends on a beat's instance slot; the PascalCase\n// keys stay as friendly references (e.g. BlockType.BarChartBlock === 'bar_chart_block').\nexport const BlockType = {\n AccountBlock: 'account_block',\n AccountSwitchBlock: 'account_switch_block',\n BarChartBlock: 'bar_chart_block',\n BudgetBlock: 'budget_block',\n DirectDepositBlock: 'direct_deposit_block',\n ImageBlock: 'image_block',\n MerchantBlock: 'merchant_block',\n TransactionBlock: 'transaction_block',\n DonutChartBlock: 'donut_chart_block',\n DoubleBarChartBlock: 'double_bar_chart_block',\n DoubleProgressBarBlock: 'double_progress_bar_block',\n DebtsBlock: 'debts_block',\n GasPurchaseBlock: 'gas_purchase_block',\n GoalsBlock: 'goals_block',\n NoSpendDaysBlock: 'no_spend_days_block',\n QuizBlock: 'quiz_block',\n RepeatingTransactionBlock: 'repeating_transaction_block',\n SaveExtraBlock: 'save_extra_block',\n SavingsAmountBlock: 'savings_amount_block',\n SavingsSummaryBlock: 'savings_summary_block',\n StepChartBlock: 'step_chart_block',\n SVGImageBlock: 'svg_image_block',\n UpcomingBillBlock: 'upcoming_bill_block',\n UpcomingSubscriptionBlock: 'upcoming_subscription_block',\n WeeklySmallPurchasesBlock: 'weekly_small_purchases_block',\n WithdrawalBlock: 'withdrawal_block',\n} as const\n\nexport type BlockType = (typeof BlockType)[keyof typeof BlockType]\n\n/**\n * A pre-localized row on a V2 instance slot. The backend resolves the copy and formatting; the\n * logo is a `LogoRef` (an entity guid or a status icon, see `logoFromRef`).\n */\nexport interface InstanceSlotRow {\n amount?: number\n logo?: LogoRef\n primary_text?: string\n secondary_text?: string\n}\n\n/**\n * V2: the slots a block's variant filled, keyed by slot name; ditto owns the names and omits any\n * slot it has no value for (`lib/ditto/blocks/<block>.yml`). Read with `slot()`, which names the\n * kind the caller expects.\n */\nexport interface InstanceSlotData {\n [slot: string]: unknown\n}\n\n/**\n * Reads one slot off a block's `data`; undefined when ditto did not fill it.\n *\n * The caller names the kind, because the slot's kind lives in the block's ditto schema and not\n * here — a block fills slots with whatever its card needs, so no fixed list of kinds would hold\n * (`account_switch_block` alone carries a boolean and `budget_block` a nested object).\n */\nexport const slot = <T = unknown>(\n data: InstanceSlotData | undefined,\n name: string,\n): T | undefined => data?.[name] as T | undefined\n\n/**\n * V2: which block renders this beat's content, and what it renders.\n *\n * `block` is optional: a beat whose template has no ditto config arrives as an empty `{}` and the\n * card renders its copy and CTAs alone, so a reader cannot assume a block is named. One interface\n * with `block` optional rather than a union with `Record<string, never>`, which TypeScript absorbs\n * — that union left `block` reading as required and typed a promise it did not keep.\n *\n * `variant` is optional for the same reason — the empty `{}` carries neither. Every ditto beat\n * file that names a block also names a variant, so a *filled* slot always has one; ditto drops a\n * nil variant rather than sending null, which is why the type is `string | null | undefined`.\n */\nexport interface InstanceSlot {\n block?: BlockType\n variant?: string | null\n /** The slots this block's variant declares in ditto. */\n data?: InstanceSlotData\n // Direct Deposit block (Set Up Direct Deposit, Switch Direct Deposit, Missing\n // Interest Rate): account facts carried flat on the slot, beside `data`.\n /** Primary line on the hero card, e.g. \"Epic Bank Checking, *1234\". */\n account_name?: string\n /** Secondary line beneath the name, e.g. \"Checking Account\" / \"Credit Card\". */\n account_type?: string\n /** Status pill label, e.g. \"Direct Deposit Not Set Up\" / \"Interest Rate: 19.99% APR\". */\n status_text?: string\n institution_guid?: string\n institution_name?: string\n // Shared across multiple V2 component blocks:\n // `amount` — UpcomingBillBlock (projected bill), UpcomingSubscriptionBlock (price per cadence).\n // (SavingsOpportunityBlock now reads `amount` off `instance_slot.data`, not this flat field.)\n // `merchant_guid` / `merchant_name` — UpcomingBillBlock (bill row logo + name),\n // UpcomingSubscriptionBlock (hero logo + name).\n /** Dollar amount (unformatted); the block formats it as currency. */\n amount?: number\n // Withdrawal block (Emergency Fund Withdrawal): one row flat on the slot - `amount` above is the\n // withdrawal, shown with its date line \"{amount_label} {withdrawal_date}\" over the balance row.\n /** Pre-localized lead-in for the date line, e.g. \"Withdrawn on\". */\n amount_label?: string\n /** The withdrawal's calendar day, `YYYY-MM-DD` (e.g. `2026-10-20`); the card formats it. */\n withdrawal_date?: string\n /** Account balance after the withdrawal (unformatted); the card formats it as currency. */\n balance?: number\n /** Pre-localized label for the balance row, e.g. \"Balance\". */\n balance_label?: string\n /** Merchant guid used to render the inline / hero logo via `LogoFromGuid` (`MCH-...`). */\n merchant_guid?: string\n /** Merchant display name — shown as logo alt text and as the merchant/hero label. */\n merchant_name?: string\n // Upcoming Bill block (Projected Bill Payment): the block derives the Sun→Sat week strip\n // around `due_date` at render time.\n /** Due date of the projected bill in ISO form (e.g. `2025-10-30`). */\n due_date?: string\n // Account block (confetti tile): V1 flat fallback for the label line when `instance_slot.data` is\n // absent — `AccountBlock` reads `data.sub_text` first, then this. (The Savings Opportunity coupon\n // now reads `primary_text`/`amount` off `data`, so it no longer reads this flat field.)\n /** Caption/label line for the confetti tile (V1 fallback). */\n label?: string\n // Upcoming Subscription block: billing cadence for the price pill (`${amount} / ${cadence}`).\n /** Billing cadence word that trails the price, e.g. `month` or `year`. */\n cadence?: string\n // Account block (status on/off-track, deposit, payoff variants): card content carried flat on\n // the slot (the V2 contract drops `instance_slot_data`). `amount`, `label`, `merchant_guid`,\n // `merchant_name`, `institution_guid`, `institution_name` are shared fields declared above.\n /** Secondary line beneath the amount on the standard card, e.g. \"Remaining after expenses\". */\n sub_text?: string\n /** Header bar text (standard card) or the colored category strip label (deposit cards). */\n header_text?: string\n /** Generic-tile icon name used when no merchant/institution logo is available. */\n icon_name?: string\n /** Category guid used to render the deposit-card logo fallback. */\n category_guid?: string\n start_date?: string\n no_spend_days?: string[]\n /** First day of the month a monthly summary covers, in ISO form (e.g. `2026-09-01`). */\n date?: string\n /** Number of gas station visits in the month. */\n total_fill_up_visits?: number\n /** Amount spent at gas stations in the month, unformatted. */\n total_spend?: number\n /** V1 name for `total_spend`, read when `total_spend` is absent. */\n total_debt_for_fill_up_visits_in_prev_month?: number\n /** Total available balance across the user's accounts, unformatted. */\n available_balance?: number\n /** Average monthly spend, unformatted. */\n avg_monthly_spend?: number\n /** How long the balance lasts, e.g. \"2 months, 11 days\". */\n time_period?: string\n /** One row per unique merchant in the period, in the order sent. */\n data_series?: InstanceSlotRow[]\n}\n"],"mappings":"AAuVA,IAAa,IAAA,CACX,GACA,MACkB,IAAO,CAAA"}
1
+ {"version":3,"file":"Insights.es.js","names":[],"sources":["../../../src/core/types/Insights.ts"],"sourcesContent":["// ============ Core InsightsV2 Types ============\n\nimport type { DataSeries } from './Beat'\nimport { InsightsInstanceSlotData } from './InsightsInstanceSlotData'\n\nexport interface ThemedSVGImageProps {\n divProps?: React.HTMLAttributes<HTMLDivElement>\n image: React.ComponentType<React.SVGProps<SVGSVGElement>>\n isMini?: boolean\n}\n\n/**\n * Emitted by a block when the user drills into a specific datum (e.g. clicks a\n * chart bar). Named fields rather than positional args so blocks with differing\n * shapes can extend this without the call sites transposing values.\n */\nexport interface DrilldownPayload {\n chartBarIndex: number\n tabIndex?: number\n transaction_guid?: string\n block?: string\n}\n\n/**\n * Which envelope a beat was fetched with. `embedded` (the transaction-row pill + details-drawer\n * card) and `notification` are V2 additions; a surface asks for one with `widget_type=` on the fetch.\n */\nexport type WidgetType = 'full' | 'mini' | 'micro' | 'embedded' | 'notification'\n\n/**\n * V2: the transaction-row tag, its own small section of the `embedded` envelope (the same grammar\n * as `description` / `footer`, with room for a tone or an icon later). Omitted for an insight that\n * tags no transaction row. It deliberately is *not* `short_title`, which stays a per-variant\n * attribute with a second consumer (the bank-holiday sub-header).\n */\nexport interface Pill {\n text: string\n}\n\n/** A row in a drilldown list fact (e.g. the Subscriptions drawer's per-transaction schedule). */\nexport type DrilldownRow = Record<string, string | number | boolean | null>\n\n/**\n * V2: facts a drilldown shows that the card does not. On the payload: what every CTA of the card\n * shares (e.g. the account number for the Transaction Details drawer, or the guid list a list drawer\n * shows, `transaction_guids`). On a CTA: the figures that CTA's own drilldown renders (the Transaction\n * List summary header's `amount`, `start_date` / `end_date` and `count`, see `readSummary`). Scalars,\n * string lists, a `data_series` (the months a history drawer charts), or rows of scalars\n * (`transaction_frequencies`), omitted when the insight has none. Never carries copy or user actions\n * (memo, tags, hide, flag come from the transaction store). Values come from the server, so a reader\n * still checks each value's runtime shape.\n */\nexport type DrilldownData = Record<\n string,\n string | number | boolean | null | string[] | DataSeries | DrilldownRow[]\n>\n\nexport interface InsightsPayload {\n widget_type: WidgetType\n instance_slot: InstanceSlot\n /**\n * V1 only. The v2 contract carries everything a block needs on `instance_slot.data`,\n * and omits this key entirely (see the LargeTransactionV2 payload). Blocks that still require it\n * get it as a required field through `BlockProps`, which re-declares it.\n */\n instance_slot_data?: InsightsInstanceSlotData\n description: Description\n primary_cta?: PrimaryCTA\n secondary_cta?: SecondaryCTA\n title?: string\n sub_title?: Subtitle\n /**\n * V2 rename of `sub_title`: a flat string, with the logo promoted to the payload-level `logo`\n * field below. `sub_title` wins when both are present.\n */\n subtitle?: string\n /** V2: header logo paired with the flat `subtitle`: an entity guid or a status icon (`LogoRef`). */\n logo?: LogoRef\n /** V2: which design branch the backend picked (e.g. `no_merchant`). */\n variant?: string\n /** V2, `embedded` envelope only: the transaction-row pill. */\n pill?: Pill\n /**\n * V2: drilldown-only facts, e.g. `{ account_number: 'XXXXXXXX043' }`, or the guid list a list\n * drawer shows (`{ transaction_guids: [...] }`).\n */\n drilldown_data?: DrilldownData\n footer?: Footer\n /**\n * V2: the link inside the description: on the full card a drawer of its own (Low Account\n * Balance's \"Transactions ›\"); on mini and micro the card's action, sent instead of `primary_cta`.\n * Absent when the beat has no link.\n */\n in_description_cta?: InDescriptionCTA\n guid: string\n user_guid: string\n client_guid?: string\n /** Template name, e.g. `LargeTransactionV2`. */\n template?: string\n revision?: number\n /** Unix seconds. */\n created_at?: number\n /** Unix seconds. */\n updated_at?: number\n /** Unix seconds. */\n active_at?: number\n displayed_at?: number | null\n dismissed_at: number | null\n cta_clicked_at?: number | null\n has_been_displayed?: boolean\n is_dismissed: boolean\n is_deleted?: boolean\n is_hidden_by_system?: boolean\n is_obsolete?: boolean\n is_refreshable?: boolean\n is_sampled?: boolean\n is_zero_state?: boolean\n status?: string | null\n /**\n * V2 (LargeTransactionV2 onward): the entities the beat is about, carried on the payload so\n * action blocks do not have to reach back out to the beat envelope.\n */\n primary_account_guid?: string | null\n primary_transaction_guid?: string | null\n primary_category_guid?: string | null\n primary_merchant_guid?: string | null\n /**\n * V2: the repeating transaction a subscription beat is about (Upcoming Subscription, Subscription\n * Price Increase). Read by `recurring_transaction_block`, see\n * `actionBlocks/RecurringTransactionBlock/subscriptionBeats.ts`.\n */\n primary_repeating_transaction_guid?: string | null\n}\n\nexport interface Legends {\n label: string\n value: number\n additional_value?: number\n additional_value_type?: string\n value_type?: string\n}\n\nexport interface Logo {\n category_guid?: string\n category_name?: string\n institution_guid?: string\n institution_name?: string\n logo_color?: string\n /** Draw the `logo_name` icon filled (V2 `ICO-` logos). */\n logo_fill?: boolean\n logo_name?: string\n merchant_guid?: string\n merchant_name?: string\n}\n\nexport interface Subtitle {\n logo?: Logo\n text: string\n}\n\n/**\n * A V2 logo, shared by the header (`InsightsPayload.logo`) and every instance-slot row. It takes\n * one of two shapes:\n *\n * - **Entity**: `guid`, whose prefix (`INS-` / `MCH-` / `CAT-`) picks the logo component, plus an\n * optional `fallback_guid` for when that component's asset cannot load. Today that is the\n * category behind an `MCH-` guid, which `MerchantLogo` shows as a tile when the merchant image\n * is missing.\n * - **Status icon**: `icon` (an mx-icons name, e.g. `warning`) and `color` (a theme palette path,\n * e.g. `error.main`), for subheaders that show a state rather than an entity (V1's\n * `logo_name` / `logo_color`).\n *\n * `alt` is the accessible name for either shape. A logo sends one shape; if it sends both, `icon`\n * wins, as `logo_name` does in V1's `SubHeader`.\n */\nexport interface LogoRef {\n alt?: string\n color?: string\n fallback_guid?: string\n guid?: string\n icon?: string\n}\n\nexport interface CategoryLogo {\n category_guid: string\n category_name: string\n}\n\nexport interface MerchantLogo {\n merchant_guid: string\n merchant_name: string\n}\n\nexport interface InstitutionLogo {\n institution_guid: string\n institution_name: string\n}\n\nexport interface Description {\n text: string\n html_text: string\n}\n\n/**\n * Post message a CTA press sends to the host, resolved by the backend for the beat's current\n * state. Absent/null = the backend has not described one: the frontend uses the template's\n * interim `ctaPostMessages` entry if there is one, else sends no message. `payload` carries only\n * beat-specific extras; the frontend always adds `beat_guid`, `beat_template`, `user_guid` and\n * `action_string`.\n */\nexport interface CtaPostMessageMetadata {\n /** Post message event; defaults to `beat/cta`. */\n event?: string | null\n /** Operation the host should perform, e.g. `op_1`, `op_2`, `op_3`. Defaults to `op_1`. */\n action?: string | null\n /** Beat-specific fields merged into the message metadata (account ids, amounts, ...). */\n payload?: Record<string, unknown> | null\n}\n\nexport interface PrimaryCTA {\n label: string\n block: string\n variant?: string | null\n /**\n * What pressing the CTA does beyond opening its block, named by the backend (ditto\n * `primary_cta_action`, passed through by tupac). Looked up in `insights-v2/ctaActions`;\n * null / absent / unknown means the CTA only opens its block or posts its message.\n */\n action_key?: string | null\n metadata?: CtaPostMessageMetadata | null\n /** Figures this CTA's drilldown renders (e.g. a summary header's amount/dates/count). */\n drilldown_data?: DrilldownData\n}\n\nexport interface SecondaryCTA {\n label: string\n /**\n * Drawer block to open. `null` when the CTA opens nothing (ditto `secondary_cta_block: null`,\n * e.g. Fee Detected's \"Contact Support\"): the press posts its message to the host instead.\n */\n block: string | null\n variant?: string | null\n /** See `PrimaryCTA.action_key` (ditto `secondary_cta_action`). */\n action_key?: string | null\n metadata?: CtaPostMessageMetadata | null\n /** Figures this CTA's drilldown renders (e.g. a summary header's amount/dates/count). */\n drilldown_data?: DrilldownData\n}\n\n/**\n * The description link: its label, the action block it opens and, like a CTA's, the variant that\n * tells that block what to show (ditto's `in_description_cta_variant`, e.g. `low_balance`). On mini\n * and micro it words the card's action; `block` is empty when that action opens no drawer.\n */\nexport interface InDescriptionCTA {\n label: string\n block?: string\n variant?: string | null\n action_key?: string | null\n /** tupac's flat host message for the link (`action` plus fields), e.g. Switch's op_1. */\n post_message_metadata?: ({ action?: string | null } & Record<string, unknown>) | null\n /** Figures this CTA's drilldown renders (e.g. a summary header's amount/dates/count). */\n drilldown_data?: DrilldownData\n}\n\nexport interface Footer {\n /** V1: a pre-formatted date string. */\n date?: string\n /**\n * The account label, on both V1 and V2. The backend resolves the plurality: one account sends\n * its name (e.g. `Epic Bank`), several send a localized count (e.g. `2 Accounts`), none sends\n * `null` (tupac's `footer_account_label` returns nil for a beat with no accounts, as Payday Cash\n * Left Over Status does). There is deliberately no separate `accounts` key.\n */\n account?: string | null\n /**\n * V2 (LargeTransactionV2 onward): unix seconds, formatted by `Footer` for display.\n * Replaces `date`; `date` wins when a beat somehow sends both.\n */\n timestamp?: number\n}\n\n// ============ Instance Slot Types ============\n// Values are the snake_case block names the backend sends on a beat's instance slot; the PascalCase\n// keys stay as friendly references (e.g. BlockType.BarChartBlock === 'bar_chart_block').\nexport const BlockType = {\n AccountBlock: 'account_block',\n AccountSwitchBlock: 'account_switch_block',\n BarChartBlock: 'bar_chart_block',\n BudgetBlock: 'budget_block',\n DirectDepositBlock: 'direct_deposit_block',\n ImageBlock: 'image_block',\n MerchantBlock: 'merchant_block',\n TransactionBlock: 'transaction_block',\n DonutChartBlock: 'donut_chart_block',\n DoubleBarChartBlock: 'double_bar_chart_block',\n DoubleProgressBarBlock: 'double_progress_bar_block',\n DebtsBlock: 'debts_block',\n GasPurchaseBlock: 'gas_purchase_block',\n GoalsBlock: 'goals_block',\n NoSpendDaysBlock: 'no_spend_days_block',\n QuarterlySummaryBlock: 'quarterly_summary_block',\n QuizBlock: 'quiz_block',\n RepeatingTransactionBlock: 'repeating_transaction_block',\n SaveExtraBlock: 'save_extra_block',\n SavingsAmountBlock: 'savings_amount_block',\n SavingsSummaryBlock: 'savings_summary_block',\n StepChartBlock: 'step_chart_block',\n SVGImageBlock: 'svg_image_block',\n UpcomingBillBlock: 'upcoming_bill_block',\n UpcomingSubscriptionBlock: 'upcoming_subscription_block',\n WeeklySmallPurchasesBlock: 'weekly_small_purchases_block',\n WithdrawalBlock: 'withdrawal_block',\n GreenStatementFeeBlock: 'green_statement_fee_block',\n} as const\n\nexport type BlockType = (typeof BlockType)[keyof typeof BlockType]\n\n/**\n * A pre-localized row on a V2 instance slot. The backend resolves the copy and formatting; the\n * logo is a `LogoRef` (an entity guid or a status icon, see `logoFromRef`).\n */\nexport interface InstanceSlotRow {\n amount?: number\n logo?: LogoRef\n primary_text?: string\n secondary_text?: string\n}\n\n/**\n * V2: the slots a block's variant filled, keyed by slot name; ditto owns the names and omits any\n * slot it has no value for (`lib/ditto/blocks/<block>.yml`). Read with `slot()`, which names the\n * kind the caller expects.\n */\nexport interface InstanceSlotData {\n [slot: string]: unknown\n}\n\n/**\n * Reads one slot off a block's `data`; undefined when ditto did not fill it.\n *\n * The caller names the kind, because the slot's kind lives in the block's ditto schema and not\n * here — a block fills slots with whatever its card needs, so no fixed list of kinds would hold\n * (`account_switch_block` alone carries a boolean and `budget_block` a nested object).\n */\nexport const slot = <T = unknown>(\n data: InstanceSlotData | undefined,\n name: string,\n): T | undefined => data?.[name] as T | undefined\n\n/**\n * V2: which block renders this beat's content, and what it renders.\n *\n * `block` is optional: a beat whose template has no ditto config arrives as an empty `{}` and the\n * card renders its copy and CTAs alone, so a reader cannot assume a block is named. One interface\n * with `block` optional rather than a union with `Record<string, never>`, which TypeScript absorbs\n * — that union left `block` reading as required and typed a promise it did not keep.\n *\n * `variant` is optional for the same reason — the empty `{}` carries neither. Every ditto beat\n * file that names a block also names a variant, so a *filled* slot always has one; ditto drops a\n * nil variant rather than sending null, which is why the type is `string | null | undefined`.\n */\nexport interface InstanceSlot {\n block?: BlockType\n variant?: string | null\n /** The slots this block's variant declares in ditto. */\n data?: InstanceSlotData\n // Direct Deposit block (Set Up Direct Deposit, Switch Direct Deposit, Missing\n // Interest Rate): account facts carried flat on the slot, beside `data`.\n /** Primary line on the hero card, e.g. \"Epic Bank Checking, *1234\". */\n account_name?: string\n /** Secondary line beneath the name, e.g. \"Checking Account\" / \"Credit Card\". */\n account_type?: string\n /** Status pill label, e.g. \"Direct Deposit Not Set Up\" / \"Interest Rate: 19.99% APR\". */\n status_text?: string\n institution_guid?: string\n institution_name?: string\n // Shared across multiple V2 component blocks:\n // `amount` — UpcomingBillBlock (projected bill), UpcomingSubscriptionBlock (price per cadence).\n // (SavingsOpportunityBlock now reads `amount` off `instance_slot.data`, not this flat field.)\n // `merchant_guid` / `merchant_name` — UpcomingBillBlock (bill row logo + name),\n // UpcomingSubscriptionBlock (hero logo + name).\n /** Dollar amount (unformatted); the block formats it as currency. */\n amount?: number\n // Withdrawal block (Emergency Fund Withdrawal): one row flat on the slot - `amount` above is the\n // withdrawal, shown with its date line \"{amount_label} {withdrawal_date}\" over the balance row.\n /** Pre-localized lead-in for the date line, e.g. \"Withdrawn on\". */\n amount_label?: string\n /** The withdrawal's calendar day, `YYYY-MM-DD` (e.g. `2026-10-20`); the card formats it. */\n withdrawal_date?: string\n /** Account balance after the withdrawal (unformatted); the card formats it as currency. */\n balance?: number\n /** Pre-localized label for the balance row, e.g. \"Balance\". */\n balance_label?: string\n /** Merchant guid used to render the inline / hero logo via `LogoFromGuid` (`MCH-...`). */\n merchant_guid?: string\n /** Merchant display name — shown as logo alt text and as the merchant/hero label. */\n merchant_name?: string\n // Upcoming Bill block (Projected Bill Payment): the block derives the Sun→Sat week strip\n // around `due_date` at render time.\n /** Due date of the projected bill in ISO form (e.g. `2025-10-30`). */\n due_date?: string\n // Account block (confetti tile): V1 flat fallback for the label line when `instance_slot.data` is\n // absent — `AccountBlock` reads `data.sub_text` first, then this. (The Savings Opportunity coupon\n // now reads `primary_text`/`amount` off `data`, so it no longer reads this flat field.)\n /** Caption/label line for the confetti tile (V1 fallback). */\n label?: string\n // Upcoming Subscription block: billing cadence for the price pill (`${amount} / ${cadence}`).\n /** Billing cadence word that trails the price, e.g. `month` or `year`. */\n cadence?: string\n // Account block (status on/off-track, deposit, payoff variants): card content carried flat on\n // the slot (the V2 contract drops `instance_slot_data`). `amount`, `label`, `merchant_guid`,\n // `merchant_name`, `institution_guid`, `institution_name` are shared fields declared above.\n /** Secondary line beneath the amount on the standard card, e.g. \"Remaining after expenses\". */\n sub_text?: string\n /** Header bar text (standard card) or the colored category strip label (deposit cards). */\n header_text?: string\n /** Generic-tile icon name used when no merchant/institution logo is available. */\n icon_name?: string\n /** Category guid used to render the deposit-card logo fallback. */\n category_guid?: string\n start_date?: string\n no_spend_days?: string[]\n /** First day of the month a monthly summary covers, in ISO form (e.g. `2026-09-01`). */\n date?: string\n /** Number of gas station visits in the month. */\n total_fill_up_visits?: number\n /** Amount spent at gas stations in the month, unformatted. */\n total_spend?: number\n /** V1 name for `total_spend`, read when `total_spend` is absent. */\n total_debt_for_fill_up_visits_in_prev_month?: number\n /** Total available balance across the user's accounts, unformatted. */\n available_balance?: number\n /** Average monthly spend, unformatted. */\n avg_monthly_spend?: number\n /** How long the balance lasts, e.g. \"2 months, 11 days\". */\n time_period?: string\n /** One row per unique merchant in the period, in the order sent. */\n data_series?: InstanceSlotRow[]\n}\n"],"mappings":"AAyVA,IAAa,IAAA,CACX,GACA,MACkB,IAAO,CAAA"}
@@ -493,6 +493,15 @@ export interface BudgetDetailsCopy {
493
493
  remaining: string;
494
494
  total_out_of_limit_aria: string;
495
495
  }
496
+ /** Labels for the Quarterly Summary component block. Optional until the service ships them. */
497
+ export interface QuarterlySummaryBlockCopy {
498
+ /** Label for the spent metric, e.g. "Spent". */
499
+ spent_label?: string;
500
+ /** Label for the saved metric, e.g. "Saved". */
501
+ saved_label?: string;
502
+ /** Label for the transactions metric, e.g. "Transactions". */
503
+ transactions_label?: string;
504
+ }
496
505
  /** Cadence words ending the Upcoming Subscription price pill; a missing word shows the price alone. */
497
506
  export interface UpcomingSubscriptionBlockCopy {
498
507
  cadence_every_week?: string;
@@ -579,6 +588,8 @@ export interface InsightsFeedCopy {
579
588
  budget_details?: BudgetDetailsCopy;
580
589
  upcoming_subscription_block?: UpcomingSubscriptionBlockCopy;
581
590
  /** Optional until the localized-content service ships the namespace. */
591
+ quarterly_summary_block?: QuarterlySummaryBlockCopy;
592
+ /** Optional until the localized-content service ships the namespace. */
582
593
  quiz_block?: QuizBlockCopy;
583
594
  }
584
595
  export {};
@@ -0,0 +1,8 @@
1
+ import { BlockProps } from '../../types';
2
+ /**
3
+ * Formats an ISO `YYYY-MM-DD` date as local midnight into a long date string (e.g. "October 15, 2026").
4
+ * A date that already arrives worded or is not in ISO format is returned as-is.
5
+ */
6
+ export declare const formatStatementDate: (value?: string) => string | undefined;
7
+ declare const GreenStatementFeeBlock: ({ payload }: BlockProps) => import("react/jsx-runtime").JSX.Element | null;
8
+ export default GreenStatementFeeBlock;
@@ -0,0 +1,88 @@
1
+ import { formatDate as x } from "../../../../core/constants/DateFormats.es.js";
2
+ import { CURRENCY_FORMAT as g, formatCurrency as b } from "../../../../core/utils/NumberFormatting.es.js";
3
+ import { asNumber as T, asText as m, slotOrFlat as n } from "../../slotReaders.es.js";
4
+ import a from "@mui/material/Stack";
5
+ import { Text as s } from "@mxenabled/mxui";
6
+ import { Icon as S } from "@mxenabled/mx-icons";
7
+ import { jsx as o, jsxs as p } from "react/jsx-runtime";
8
+ import { parseISO as _ } from "date-fns";
9
+ var y = /^\d{4}-\d{2}-\d{2}$/, N = {
10
+ month: "long",
11
+ day: "numeric",
12
+ year: "numeric"
13
+ }, w = (e) => {
14
+ if (!e || !y.test(e)) return e;
15
+ const t = _(e);
16
+ return Number.isNaN(t.getTime()) ? e : x(t, N);
17
+ }, F = ({ payload: e }) => {
18
+ const { instance_slot: t = {}, widget_type: f } = e, r = f === "mini", d = T(n(t, "amount")), h = m(n(t, "date")), l = m(n(t, "account_name")), i = m(n(t, "amount_label") ?? n(t, "label"));
19
+ if (d === void 0) return null;
20
+ const c = w(h), u = c ? i ? `${i} ${c}` : `Charged on ${c}` : i ?? "Statement Fee";
21
+ return /* @__PURE__ */ o(a, {
22
+ "data-testid": "green-statement-fee-block",
23
+ sx: {
24
+ gap: r ? 8 : 12,
25
+ px: 16,
26
+ width: "100%"
27
+ },
28
+ children: /* @__PURE__ */ p(a, {
29
+ direction: "row",
30
+ sx: {
31
+ alignItems: "center",
32
+ bgcolor: "background.default",
33
+ border: 1,
34
+ borderColor: "divider",
35
+ borderRadius: "8px",
36
+ gap: r ? 10 : 12,
37
+ p: r ? 12 : 16,
38
+ width: "100%"
39
+ },
40
+ children: [/* @__PURE__ */ o(a, {
41
+ sx: {
42
+ alignItems: "center",
43
+ bgcolor: "error.lighter",
44
+ borderRadius: "8px",
45
+ color: "error.main",
46
+ flexShrink: 0,
47
+ height: r ? 40 : 48,
48
+ justifyContent: "center",
49
+ width: r ? 40 : 48
50
+ },
51
+ children: /* @__PURE__ */ o(S, {
52
+ name: "description",
53
+ size: r ? 20 : 24
54
+ })
55
+ }), /* @__PURE__ */ p(a, {
56
+ sx: {
57
+ flex: 1,
58
+ minWidth: 0
59
+ },
60
+ children: [
61
+ /* @__PURE__ */ o(s, {
62
+ color: "text.secondary",
63
+ variant: "caption",
64
+ children: u
65
+ }),
66
+ /* @__PURE__ */ o(s, {
67
+ component: "span",
68
+ sx: { fontWeight: 600 },
69
+ variant: r ? "h4" : "h3",
70
+ children: b(d, g.cents)
71
+ }),
72
+ l && /* @__PURE__ */ o(s, {
73
+ color: "text.secondary",
74
+ truncate: !0,
75
+ variant: "caption",
76
+ children: l
77
+ })
78
+ ]
79
+ })]
80
+ })
81
+ });
82
+ };
83
+ export {
84
+ F as default,
85
+ w as formatStatementDate
86
+ };
87
+
88
+ //# sourceMappingURL=GreenStatementFeeBlock.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GreenStatementFeeBlock.es.js","names":[],"sources":["../../../../../src/insights-v2/blocks/ComponentBlocks/GreenStatementFeeBlock/GreenStatementFeeBlock.tsx"],"sourcesContent":["import Stack from '@mui/material/Stack'\n\nimport { parseISO } from 'date-fns'\n\nimport { Text } from '@mxenabled/mxui'\nimport { Icon } from '@mxenabled/mx-icons'\n\nimport { formatDate } from '../../../../core/constants'\nimport { CURRENCY_FORMAT, formatCurrency } from '../../../../core/utils/NumberFormatting'\nimport { asNumber, asText, slotOrFlat } from '../../slotReaders'\nimport type { BlockProps } from '../../types'\n\nconst ISO_DATE = /^\\d{4}-\\d{2}-\\d{2}$/\nconst STATEMENT_DATE_FORMAT = { month: 'long', day: 'numeric', year: 'numeric' }\n\n/**\n * Formats an ISO `YYYY-MM-DD` date as local midnight into a long date string (e.g. \"October 15, 2026\").\n * A date that already arrives worded or is not in ISO format is returned as-is.\n */\nexport const formatStatementDate = (value?: string): string | undefined => {\n if (!value || !ISO_DATE.test(value)) return value\n\n const parsed = parseISO(value)\n\n return Number.isNaN(parsed.getTime()) ? value : formatDate(parsed, STATEMENT_DATE_FORMAT)\n}\n\nconst GreenStatementFeeBlock = ({ payload }: BlockProps) => {\n const { instance_slot = {}, widget_type } = payload\n const isMini = widget_type === 'mini'\n\n const amount = asNumber(slotOrFlat(instance_slot, 'amount'))\n const rawDate = asText(slotOrFlat(instance_slot, 'date'))\n const accountName = asText(slotOrFlat(instance_slot, 'account_name'))\n const amountLabel = asText(\n slotOrFlat(instance_slot, 'amount_label') ?? slotOrFlat(instance_slot, 'label'),\n )\n\n if (amount === undefined) {\n return null\n }\n\n const formattedDate = formatStatementDate(rawDate)\n\n const dateLine = formattedDate\n ? amountLabel\n ? `${amountLabel} ${formattedDate}`\n : `Charged on ${formattedDate}`\n : (amountLabel ?? 'Statement Fee')\n\n return (\n <Stack\n data-testid=\"green-statement-fee-block\"\n sx={{ gap: isMini ? 8 : 12, px: 16, width: '100%' }}\n >\n <Stack\n direction=\"row\"\n sx={{\n alignItems: 'center',\n bgcolor: 'background.default',\n border: 1,\n borderColor: 'divider',\n borderRadius: '8px',\n gap: isMini ? 10 : 12,\n p: isMini ? 12 : 16,\n width: '100%',\n }}\n >\n <Stack\n sx={{\n alignItems: 'center',\n bgcolor: 'error.lighter',\n borderRadius: '8px',\n color: 'error.main',\n flexShrink: 0,\n height: isMini ? 40 : 48,\n justifyContent: 'center',\n width: isMini ? 40 : 48,\n }}\n >\n <Icon name=\"description\" size={isMini ? 20 : 24} />\n </Stack>\n <Stack sx={{ flex: 1, minWidth: 0 }}>\n <Text color=\"text.secondary\" variant=\"caption\">\n {dateLine}\n </Text>\n <Text component=\"span\" sx={{ fontWeight: 600 }} variant={isMini ? 'h4' : 'h3'}>\n {formatCurrency(amount, CURRENCY_FORMAT.cents)}\n </Text>\n {accountName && (\n <Text color=\"text.secondary\" truncate={true} variant=\"caption\">\n {accountName}\n </Text>\n )}\n </Stack>\n </Stack>\n </Stack>\n )\n}\n\nexport default GreenStatementFeeBlock\n"],"mappings":";;;;;;;;AAYA,IAAM,IAAW,uBACX,IAAwB;AAAA,EAAE,OAAO;AAAA,EAAQ,KAAK;AAAA,EAAW,MAAM;AAAU,GAMlE,IAAA,CAAuB,MAAuC;AACzE,MAAI,CAAC,KAAS,CAAC,EAAS,KAAK,CAAK,EAAG,QAAO;AAE5C,QAAM,IAAS,EAAS,CAAK;AAE7B,SAAO,OAAO,MAAM,EAAO,QAAQ,CAAC,IAAI,IAAQ,EAAW,GAAQ,CAAqB;AAC1F,GAEM,IAAA,CAA0B,EAAE,SAAA,EAAA,MAA0B;AAC1D,QAAM,EAAE,eAAA,IAAgB,CAAC,GAAG,aAAA,EAAA,IAAgB,GACtC,IAAS,MAAgB,QAEzB,IAAS,EAAS,EAAW,GAAe,QAAQ,CAAC,GACrD,IAAU,EAAO,EAAW,GAAe,MAAM,CAAC,GAClD,IAAc,EAAO,EAAW,GAAe,cAAc,CAAC,GAC9D,IAAc,EAClB,EAAW,GAAe,cAAc,KAAK,EAAW,GAAe,OAAO,CAChF;AAEA,MAAI,MAAW,OACb,QAAO;AAGT,QAAM,IAAgB,EAAoB,CAAO,GAE3C,IAAW,IACb,IACE,GAAG,CAAA,IAAe,CAAA,KAClB,cAAc,CAAA,KACf,KAAe;AAEpB,SACE,gBAAA,EAAC,GAAD;AAAA,IACE,eAAY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;AAAA,MACF,CAAA,CAAA;AAAA;EACF,CAAA;AAEX"}
@@ -0,0 +1,3 @@
1
+ import { default as GreenStatementFeeBlock } from './GreenStatementFeeBlock';
2
+ export { GreenStatementFeeBlock };
3
+ export default GreenStatementFeeBlock;
@@ -0,0 +1,3 @@
1
+ import { BlockProps } from '../../types';
2
+ declare const QuarterlySummaryBlock: ({ payload }: BlockProps) => import("react/jsx-runtime").JSX.Element | null;
3
+ export default QuarterlySummaryBlock;
@@ -0,0 +1,68 @@
1
+ import { useGlobalCopyStore as g } from "../../../../common/context/hooks.es.js";
2
+ import { slot as o } from "../../../../core/types/Insights.es.js";
3
+ import { CURRENCY_FORMAT as v, formatCurrency as x } from "../../../../core/utils/NumberFormatting.es.js";
4
+ import { asNumber as i, asText as e } from "../../slotReaders.es.js";
5
+ import d from "@mui/material/Stack";
6
+ import { Text as m } from "@mxenabled/mxui";
7
+ import { jsx as a, jsxs as p } from "react/jsx-runtime";
8
+ var c = ({ label: n, value: r }) => /* @__PURE__ */ p(d, {
9
+ sx: {
10
+ alignItems: "flex-start",
11
+ bgcolor: "background.default",
12
+ border: 1,
13
+ borderColor: "divider",
14
+ borderRadius: "8px",
15
+ flex: 1,
16
+ gap: 4,
17
+ p: 12
18
+ },
19
+ children: [/* @__PURE__ */ a(m, {
20
+ color: "text.secondary",
21
+ variant: "caption",
22
+ children: n
23
+ }), /* @__PURE__ */ a(m, {
24
+ component: "span",
25
+ sx: { fontWeight: 600 },
26
+ variant: "h4",
27
+ children: r
28
+ })]
29
+ }), A = ({ payload: n }) => {
30
+ const r = g().insights_feed?.quarterly_summary_block, { data: t } = n.instance_slot ?? {}, s = i(o(t, "spent_amount")), l = i(o(t, "saved_amount")), u = i(o(t, "transactions_count")), b = e(o(t, "quarter")), f = e(o(t, "spent_label")) ?? r?.spent_label ?? "", _ = e(o(t, "saved_label")) ?? r?.saved_label ?? "", h = e(o(t, "transactions_label")) ?? r?.transactions_label ?? "";
31
+ return s === void 0 && l === void 0 ? null : /* @__PURE__ */ p(d, {
32
+ sx: {
33
+ gap: 12,
34
+ px: 16,
35
+ width: "100%"
36
+ },
37
+ children: [b && /* @__PURE__ */ a(m, {
38
+ color: "text.secondary",
39
+ variant: "caption",
40
+ children: b
41
+ }), /* @__PURE__ */ p(d, {
42
+ direction: "row",
43
+ sx: {
44
+ gap: 12,
45
+ width: "100%"
46
+ },
47
+ children: [
48
+ s !== void 0 && /* @__PURE__ */ a(c, {
49
+ label: f,
50
+ value: x(s, v.cents)
51
+ }),
52
+ l !== void 0 && /* @__PURE__ */ a(c, {
53
+ label: _,
54
+ value: x(l, v.cents)
55
+ }),
56
+ u !== void 0 && /* @__PURE__ */ a(c, {
57
+ label: h,
58
+ value: String(u)
59
+ })
60
+ ]
61
+ })]
62
+ });
63
+ };
64
+ export {
65
+ A as default
66
+ };
67
+
68
+ //# sourceMappingURL=QuarterlySummaryBlock.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QuarterlySummaryBlock.es.js","names":[],"sources":["../../../../../src/insights-v2/blocks/ComponentBlocks/QuarterlySummaryBlock/QuarterlySummaryBlock.tsx"],"sourcesContent":["import Stack from '@mui/material/Stack'\n\nimport { Text } from '@mxenabled/mxui'\n\nimport { useGlobalCopyStore } from '../../../../common'\nimport { slot } from '../../../../core/types/Insights'\nimport { CURRENCY_FORMAT, formatCurrency } from '../../../../core/utils/NumberFormatting'\nimport { asNumber, asText } from '../../slotReaders'\nimport type { BlockProps } from '../../types'\n\nconst StatBox = ({ label, value }: { label: string; value: string }) => (\n <Stack\n sx={{\n alignItems: 'flex-start',\n bgcolor: 'background.default',\n border: 1,\n borderColor: 'divider',\n borderRadius: '8px',\n flex: 1,\n gap: 4,\n p: 12,\n }}\n >\n <Text color=\"text.secondary\" variant=\"caption\">\n {label}\n </Text>\n <Text component=\"span\" sx={{ fontWeight: 600 }} variant=\"h4\">\n {value}\n </Text>\n </Stack>\n)\n\nconst QuarterlySummaryBlock = ({ payload }: BlockProps) => {\n const copy = useGlobalCopyStore().insights_feed?.quarterly_summary_block\n\n const { data } = payload.instance_slot ?? {}\n const spentAmount = asNumber(slot(data, 'spent_amount'))\n const savedAmount = asNumber(slot(data, 'saved_amount'))\n const transactionsCount = asNumber(slot(data, 'transactions_count'))\n const quarter = asText(slot(data, 'quarter'))\n\n const spentLabel = asText(slot(data, 'spent_label')) ?? copy?.spent_label ?? ''\n const savedLabel = asText(slot(data, 'saved_label')) ?? copy?.saved_label ?? ''\n const transactionsLabel =\n asText(slot(data, 'transactions_label')) ?? copy?.transactions_label ?? ''\n\n if (spentAmount === undefined && savedAmount === undefined) {\n return null\n }\n\n return (\n <Stack sx={{ gap: 12, px: 16, width: '100%' }}>\n {quarter && (\n <Text color=\"text.secondary\" variant=\"caption\">\n {quarter}\n </Text>\n )}\n <Stack direction=\"row\" sx={{ gap: 12, width: '100%' }}>\n {spentAmount !== undefined && (\n <StatBox label={spentLabel} value={formatCurrency(spentAmount, CURRENCY_FORMAT.cents)} />\n )}\n {savedAmount !== undefined && (\n <StatBox label={savedLabel} value={formatCurrency(savedAmount, CURRENCY_FORMAT.cents)} />\n )}\n {transactionsCount !== undefined && (\n <StatBox label={transactionsLabel} value={String(transactionsCount)} />\n )}\n </Stack>\n </Stack>\n )\n}\n\nexport default QuarterlySummaryBlock\n"],"mappings":";;;;;;;AAUA,IAAM,IAAA,CAAW,EAAE,OAAA,GAAO,OAAA,EAAA,MACxB,gBAAA,EAAC,GAAD;AAAA,EACE,IAAI;AAAA,IACF,YAAY;AAAA,IACZ,SAAS;AAAA,IACT,QAAQ;AAAA,IACR,aAAa;AAAA,IACb,cAAc;AAAA,IACd,MAAM;AAAA,IACN,KAAK;AAAA,IACL,GAAG;AAAA,EACL;AAAA,EAVF,UAAA,CAYE,gBAAA,EAAC,GAAD;AAAA,IAAM,OAAM;AAAA,IAAiB,SAAQ;AAAA,IAClC,UAAA;AAAA,EACG,CAAA,GACN,gBAAA,EAAC,GAAD;AAAA,IAAM,WAAU;AAAA,IA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AEzF,MAAsB,UACrB,gBAAA,EAAC,GAAD;AAAA,UAAS,OAAO;AAAA,UAAmB,OAAO,OAAO,CAAiB;AAAA,QAAI,CAAA;AAAA,MAEnE;AAAA,IACF,CAAA,CAAA;AAAA;AAEX"}
@@ -0,0 +1 @@
1
+ export { default as QuarterlySummaryBlock } from './QuarterlySummaryBlock';
@@ -7,6 +7,7 @@ export * from './GasPurchaseBlock';
7
7
  export * from './GoalsBlock';
8
8
  export * from './MerchantBlock';
9
9
  export * from './NoSpendDaysBlock';
10
+ export * from './QuarterlySummaryBlock';
10
11
  export * from './QuizBlock';
11
12
  export * from './RepeatingTransactionBlock';
12
13
  export * from './SaveExtraBlock';
@@ -16,3 +17,4 @@ export * from './TransactionBlock';
16
17
  export * from './UpcomingSubscriptionBlock';
17
18
  export * from './WeeklySmallPurchasesBlock';
18
19
  export * from './WithdrawalBlock';
20
+ export * from './GreenStatementFeeBlock';
@@ -4,19 +4,19 @@ import { useBeatActions as a } from "./beatActions.es.js";
4
4
  import { BAR_ARIA_LABEL as e, BAR_CHART_VARIANTS as f, barChartVariant as n, buildChartData as c, buildDataSeries as l } from "./blocks/ChartBlocks/BarchartBlock/utils.es.js";
5
5
  import { HOST_ACTIONS as d } from "./ctaActions/hostActions.es.js";
6
6
  import { runInDescriptionCta as u } from "./ctaActions/runCtaAction.es.js";
7
- import { useBeatCtaActions as k, useCtaHandler as C } from "./ctaActions/useCtaAction.es.js";
7
+ import { useBeatCtaActions as g, useCtaHandler as C } from "./ctaActions/useCtaAction.es.js";
8
8
  import { BarchartBlock as D } from "./blocks/ChartBlocks/BarchartBlock/BarchartBlock.es.js";
9
9
  import { DoubleBarChartBlock as A } from "./blocks/ChartBlocks/DoubleBarChartBlock/DoubleBarChartBlock.es.js";
10
10
  import I from "./blocks/ChartBlocks/StepChartBlock/StepChartBlock.es.js";
11
11
  import T from "./blocks/ChartBlocks/DonutChartBlock/DonutChartBlock.es.js";
12
- import y from "./blocks/ChartBlocks/DoubleProgressBarBlock/DoubleProgressBarBlock.es.js";
12
+ import v from "./blocks/ChartBlocks/DoubleProgressBarBlock/DoubleProgressBarBlock.es.js";
13
13
  import R, { isLogoGuid as w } from "./components/LogoFromGuid.es.js";
14
- import M from "./components/AccountHeroCard.es.js";
15
- import V from "./components/DirectDepositCard.es.js";
16
- import { detailedAccountVariant as G, directDepositVariant as _, isDetailedAccountVariant as F } from "./blocks/ComponentBlocks/DetailedAccountBlock/layout.es.js";
14
+ import H from "./components/AccountHeroCard.es.js";
15
+ import O from "./components/DirectDepositCard.es.js";
16
+ import { detailedAccountVariant as E, directDepositVariant as F, isDetailedAccountVariant as _ } from "./blocks/ComponentBlocks/DetailedAccountBlock/layout.es.js";
17
17
  import N from "./blocks/ComponentBlocks/DetailedAccountBlock/DetailedAccountBlock.es.js";
18
18
  import W from "./blocks/ComponentBlocks/AccountBlock/AccountBlock.es.js";
19
- import Q from "./components/TransferLogoCard.es.js";
19
+ import z from "./components/TransferLogoCard.es.js";
20
20
  import q from "./blocks/ComponentBlocks/AccountSwitchBlock/AccountSwitchBlock.es.js";
21
21
  import { BudgetBlock as K } from "./blocks/ComponentBlocks/BudgetBlock/BudgetBlock.es.js";
22
22
  import Y from "./components/InsightTransactionRow.es.js";
@@ -28,127 +28,131 @@ import eo from "./components/LogoTile.es.js";
28
28
  import no from "./components/LogoClusterCard.es.js";
29
29
  import lo from "./components/AmountPill.es.js";
30
30
  import Bo from "./components/MerchantHighlightCard.es.js";
31
- import go from "./components/P2PLogoStack.es.js";
31
+ import ko from "./components/P2PLogoStack.es.js";
32
32
  import Co from "./blocks/ComponentBlocks/MerchantBlock/MerchantBlock.es.js";
33
33
  import Do from "./blocks/ComponentBlocks/NoSpendDaysBlock/NoSpendDaysBlock.es.js";
34
- import Ao from "./blocks/ComponentBlocks/QuizBlock/QuizBlock.es.js";
35
- import Io from "./components/UpcomingBillCard.es.js";
36
- import To from "./blocks/ComponentBlocks/RepeatingTransactionBlock/RepeatingTransactionBlock.es.js";
37
- import yo from "./components/SaveAnExtraCard.es.js";
38
- import Ro from "./blocks/ComponentBlocks/SaveExtraBlock/SaveExtraBlock.es.js";
39
- import Ho from "./components/SavingsOpportunityCard.es.js";
40
- import Oo from "./blocks/ComponentBlocks/SavingsOpportunityBlock/SavingsOpportunityBlock.es.js";
41
- import Eo from "./blocks/ComponentBlocks/SavingsSummaryBlock/SavingsSummaryBlock.es.js";
42
- import _o from "./components/StatusMessageCard.es.js";
43
- import xo from "./components/TransactionListCard.es.js";
44
- import { transactionBlockVariant as Uo } from "./blocks/ComponentBlocks/TransactionBlock/layout.es.js";
45
- import { TransactionBlock as zo } from "./blocks/ComponentBlocks/TransactionBlock/TransactionBlock.es.js";
46
- import jo from "./components/SubscriptionHeroCard.es.js";
47
- import Jo from "./blocks/ComponentBlocks/UpcomingSubscriptionBlock/UpcomingSubscriptionBlock.es.js";
48
- import Xo from "./blocks/ComponentBlocks/WeeklySmallPurchasesBlock/WeeklySmallPurchasesBlock.es.js";
49
- import Zo from "./components/WithdrawalCard.es.js";
50
- import or from "./blocks/ComponentBlocks/WithdrawalBlock/WithdrawalBlock.es.js";
51
- import tr from "./components/DesignateEmergencySavingsCard.es.js";
52
- import { SVGImageBlock as ir } from "./blocks/ImageBlocks/SVGImageBlock/SVGImageBlock.es.js";
53
- import pr from "./components/shared/StatusSnackbar.es.js";
54
- import fr from "./components/FeedbackDialog.es.js";
55
- import cr from "./components/FeedbackModal.es.js";
56
- import sr from "./components/ConnectionDetailDrillDown.es.js";
57
- import Br from "./components/SurveyModal.es.js";
58
- import gr from "./components/InsightErrorCard.es.js";
59
- import { ErrorCard as Cr } from "./components/ErrorCard.es.js";
60
- import Dr from "./components/AmountBreakdownCard.es.js";
61
- import Ar from "./components/BadgedTile.es.js";
62
- import { OverflowMenu as Ir } from "./components/OverflowMenu.es.js";
63
- import { InsightOptionsMenu as Tr } from "./components/InsightOptionsMenu.es.js";
64
- import yr from "./components/StatusBadge.es.js";
65
- import Rr from "./components/CompactInsightCard.es.js";
66
- import { FeedbackBar as Hr } from "./components/FeedbackBar.es.js";
67
- import { DismissInsightDialog as Or } from "./components/DismissInsightDialog.es.js";
68
- import { HiddenConfirmationCard as Er } from "./components/HiddenConfirmationCard.es.js";
69
- import { LoadingCard as _r } from "./components/LoadingCard.es.js";
70
- import { ObsolesceBanner as xr } from "./components/ObsolesceBanner.es.js";
71
- import Ur from "./components/BaseLayout.es.js";
34
+ import Ao from "./blocks/ComponentBlocks/QuarterlySummaryBlock/QuarterlySummaryBlock.es.js";
35
+ import Io from "./blocks/ComponentBlocks/QuizBlock/QuizBlock.es.js";
36
+ import To from "./components/UpcomingBillCard.es.js";
37
+ import vo from "./blocks/ComponentBlocks/RepeatingTransactionBlock/RepeatingTransactionBlock.es.js";
38
+ import Ro from "./components/SaveAnExtraCard.es.js";
39
+ import Go from "./blocks/ComponentBlocks/SaveExtraBlock/SaveExtraBlock.es.js";
40
+ import Mo from "./components/SavingsOpportunityCard.es.js";
41
+ import Vo from "./blocks/ComponentBlocks/SavingsOpportunityBlock/SavingsOpportunityBlock.es.js";
42
+ import Fo from "./blocks/ComponentBlocks/SavingsSummaryBlock/SavingsSummaryBlock.es.js";
43
+ import xo from "./components/StatusMessageCard.es.js";
44
+ import Uo from "./components/TransactionListCard.es.js";
45
+ import { transactionBlockVariant as Qo } from "./blocks/ComponentBlocks/TransactionBlock/layout.es.js";
46
+ import { TransactionBlock as jo } from "./blocks/ComponentBlocks/TransactionBlock/TransactionBlock.es.js";
47
+ import Jo from "./components/SubscriptionHeroCard.es.js";
48
+ import Xo from "./blocks/ComponentBlocks/UpcomingSubscriptionBlock/UpcomingSubscriptionBlock.es.js";
49
+ import Zo from "./blocks/ComponentBlocks/WeeklySmallPurchasesBlock/WeeklySmallPurchasesBlock.es.js";
50
+ import or from "./components/WithdrawalCard.es.js";
51
+ import tr from "./blocks/ComponentBlocks/WithdrawalBlock/WithdrawalBlock.es.js";
52
+ import ir from "./blocks/ComponentBlocks/GreenStatementFeeBlock/GreenStatementFeeBlock.es.js";
53
+ import pr from "./components/DesignateEmergencySavingsCard.es.js";
54
+ import { SVGImageBlock as fr } from "./blocks/ImageBlocks/SVGImageBlock/SVGImageBlock.es.js";
55
+ import cr from "./components/shared/StatusSnackbar.es.js";
56
+ import sr from "./components/FeedbackDialog.es.js";
57
+ import Br from "./components/FeedbackModal.es.js";
58
+ import kr from "./components/ConnectionDetailDrillDown.es.js";
59
+ import Cr from "./components/SurveyModal.es.js";
60
+ import Dr from "./components/InsightErrorCard.es.js";
61
+ import { ErrorCard as Ar } from "./components/ErrorCard.es.js";
62
+ import Ir from "./components/AmountBreakdownCard.es.js";
63
+ import Tr from "./components/BadgedTile.es.js";
64
+ import { OverflowMenu as vr } from "./components/OverflowMenu.es.js";
65
+ import { InsightOptionsMenu as Rr } from "./components/InsightOptionsMenu.es.js";
66
+ import Gr from "./components/StatusBadge.es.js";
67
+ import Mr from "./components/CompactInsightCard.es.js";
68
+ import { FeedbackBar as Vr } from "./components/FeedbackBar.es.js";
69
+ import { DismissInsightDialog as Fr } from "./components/DismissInsightDialog.es.js";
70
+ import { HiddenConfirmationCard as xr } from "./components/HiddenConfirmationCard.es.js";
71
+ import { LoadingCard as Ur } from "./components/LoadingCard.es.js";
72
+ import { ObsolesceBanner as Qr } from "./components/ObsolesceBanner.es.js";
73
+ import jr from "./components/BaseLayout.es.js";
72
74
  export {
73
75
  W as AccountBlock,
74
- M as AccountHeroCard,
76
+ H as AccountHeroCard,
75
77
  q as AccountSwitchBlock,
76
- Dr as AmountBreakdownCard,
78
+ Ir as AmountBreakdownCard,
77
79
  lo as AmountPill,
78
80
  e as BAR_ARIA_LABEL,
79
81
  f as BAR_CHART_VARIANTS,
80
- Ar as BadgedTile,
82
+ Tr as BadgedTile,
81
83
  D as BarchartBlock,
82
- Ur as BaseLayout,
84
+ jr as BaseLayout,
83
85
  K as BudgetBlock,
84
- Rr as CompactInsightCard,
85
- sr as ConnectionDetailDrillDown,
86
+ Mr as CompactInsightCard,
87
+ kr as ConnectionDetailDrillDown,
86
88
  $ as DebtsBlock,
87
- tr as DesignateEmergencySavingsCard,
89
+ pr as DesignateEmergencySavingsCard,
88
90
  N as DetailedAccountBlock,
89
91
  N as DirectDepositBlock,
90
- V as DirectDepositCard,
91
- Or as DismissInsightDialog,
92
+ O as DirectDepositCard,
93
+ Fr as DismissInsightDialog,
92
94
  T as DonutChartBlock,
93
95
  A as DoubleBarChartBlock,
94
- y as DoubleProgressBarBlock,
95
- Cr as ErrorCard,
96
- Hr as FeedbackBar,
97
- fr as FeedbackDialog,
98
- cr as FeedbackModal,
96
+ v as DoubleProgressBarBlock,
97
+ Ar as ErrorCard,
98
+ Vr as FeedbackBar,
99
+ sr as FeedbackDialog,
100
+ Br as FeedbackModal,
99
101
  ro as GasPurchaseBlock,
100
102
  mo as GoalProgressCard,
101
103
  ao as GoalsBlock,
104
+ ir as GreenStatementFeeBlock,
102
105
  d as HOST_ACTIONS,
103
- Er as HiddenConfirmationCard,
104
- gr as InsightErrorCard,
105
- Tr as InsightOptionsMenu,
106
+ xr as HiddenConfirmationCard,
107
+ Dr as InsightErrorCard,
108
+ Rr as InsightOptionsMenu,
106
109
  Y as InsightTransactionRow,
107
- _r as LoadingCard,
110
+ Ur as LoadingCard,
108
111
  no as LogoClusterCard,
109
112
  R as LogoFromGuid,
110
113
  eo as LogoTile,
111
114
  Co as MerchantBlock,
112
115
  Bo as MerchantHighlightCard,
113
116
  Do as NoSpendDaysBlock,
114
- xr as ObsolesceBanner,
115
- Ir as OverflowMenu,
116
- go as P2PLogoStack,
117
- Ao as QuizBlock,
118
- To as RepeatingTransactionBlock,
119
- ir as SVGImageBlock,
120
- yo as SaveAnExtraCard,
121
- Ro as SaveExtraBlock,
122
- Oo as SavingsOpportunityBlock,
123
- Ho as SavingsOpportunityCard,
124
- Eo as SavingsSummaryBlock,
125
- yr as StatusBadge,
126
- _o as StatusMessageCard,
117
+ Qr as ObsolesceBanner,
118
+ vr as OverflowMenu,
119
+ ko as P2PLogoStack,
120
+ Ao as QuarterlySummaryBlock,
121
+ Io as QuizBlock,
122
+ vo as RepeatingTransactionBlock,
123
+ fr as SVGImageBlock,
124
+ Ro as SaveAnExtraCard,
125
+ Go as SaveExtraBlock,
126
+ Vo as SavingsOpportunityBlock,
127
+ Mo as SavingsOpportunityCard,
128
+ Fo as SavingsSummaryBlock,
129
+ Gr as StatusBadge,
130
+ xo as StatusMessageCard,
127
131
  r as StatusPill,
128
- pr as StatusSnackbar,
132
+ cr as StatusSnackbar,
129
133
  I as StepChartBlock,
130
- jo as SubscriptionHeroCard,
131
- Br as SurveyModal,
132
- zo as TransactionBlock,
133
- xo as TransactionListCard,
134
- Q as TransferLogoCard,
135
- To as UpcomingBillBlock,
136
- Io as UpcomingBillCard,
137
- Jo as UpcomingSubscriptionBlock,
138
- Xo as WeeklySmallPurchasesBlock,
139
- or as WithdrawalBlock,
140
- Zo as WithdrawalCard,
134
+ Jo as SubscriptionHeroCard,
135
+ Cr as SurveyModal,
136
+ jo as TransactionBlock,
137
+ Uo as TransactionListCard,
138
+ z as TransferLogoCard,
139
+ vo as UpcomingBillBlock,
140
+ To as UpcomingBillCard,
141
+ Xo as UpcomingSubscriptionBlock,
142
+ Zo as WeeklySmallPurchasesBlock,
143
+ tr as WithdrawalBlock,
144
+ or as WithdrawalCard,
141
145
  n as barChartVariant,
142
146
  c as buildChartData,
143
147
  l as buildDataSeries,
144
- G as detailedAccountVariant,
145
- _ as directDepositVariant,
146
- F as isDetailedAccountVariant,
148
+ E as detailedAccountVariant,
149
+ F as directDepositVariant,
150
+ _ as isDetailedAccountVariant,
147
151
  w as isLogoGuid,
148
152
  m as resolveInsightRender,
149
153
  u as runInDescriptionCta,
150
- Uo as transactionBlockVariant,
154
+ Qo as transactionBlockVariant,
151
155
  a as useBeatActions,
152
- k as useBeatCtaActions,
156
+ g as useBeatCtaActions,
153
157
  C as useCtaHandler
154
158
  };
@@ -1,68 +1,70 @@
1
- import { ContactSupportActionBlock as k } from "../actionBlocks/ContactSupportActionBlock.es.js";
1
+ import { ContactSupportActionBlock as T } from "../actionBlocks/ContactSupportActionBlock.es.js";
2
2
  import { getBudgetDetailsDrawerTitle as A } from "../actionBlocks/BudgetDetailsBlock/layout.es.js";
3
- import { hasDrawerBlock as Ko } from "./hasDrawerBlock.es.js";
3
+ import { hasDrawerBlock as vo } from "./hasDrawerBlock.es.js";
4
4
  import { actionBlocksKey as o } from "./actionBlocksKey.es.js";
5
5
  import { BarchartBlock as O } from "../blocks/ChartBlocks/BarchartBlock/BarchartBlock.es.js";
6
6
  import { DoubleBarChartBlock as d } from "../blocks/ChartBlocks/DoubleBarChartBlock/DoubleBarChartBlock.es.js";
7
7
  import L from "../blocks/ChartBlocks/StepChartBlock/StepChartBlock.es.js";
8
8
  import P from "../blocks/ChartBlocks/DonutChartBlock/DonutChartBlock.es.js";
9
9
  import N from "../blocks/ChartBlocks/DoubleProgressBarBlock/DoubleProgressBarBlock.es.js";
10
- import I from "../blocks/ComponentBlocks/DetailedAccountBlock/DetailedAccountBlock.es.js";
11
- import g from "../blocks/ComponentBlocks/AccountBlock/AccountBlock.es.js";
12
- import S from "../blocks/ComponentBlocks/AccountSwitchBlock/AccountSwitchBlock.es.js";
13
- import { BudgetBlock as y } from "../blocks/ComponentBlocks/BudgetBlock/BudgetBlock.es.js";
10
+ import g from "../blocks/ComponentBlocks/DetailedAccountBlock/DetailedAccountBlock.es.js";
11
+ import y from "../blocks/ComponentBlocks/AccountBlock/AccountBlock.es.js";
12
+ import I from "../blocks/ComponentBlocks/AccountSwitchBlock/AccountSwitchBlock.es.js";
13
+ import { BudgetBlock as S } from "../blocks/ComponentBlocks/BudgetBlock/BudgetBlock.es.js";
14
14
  import b from "../blocks/ComponentBlocks/DebtsBlock/DebtsBlock.es.js";
15
15
  import D from "../blocks/ComponentBlocks/GasPurchaseBlock/GasPurchaseBlock.es.js";
16
16
  import h from "../blocks/ComponentBlocks/GoalsBlock/GoalsBlock.es.js";
17
17
  import E from "../blocks/ComponentBlocks/MerchantBlock/MerchantBlock.es.js";
18
18
  import K from "../blocks/ComponentBlocks/NoSpendDaysBlock/NoSpendDaysBlock.es.js";
19
- import R from "../blocks/ComponentBlocks/QuizBlock/QuizBlock.es.js";
19
+ import R from "../blocks/ComponentBlocks/QuarterlySummaryBlock/QuarterlySummaryBlock.es.js";
20
+ import v from "../blocks/ComponentBlocks/QuizBlock/QuizBlock.es.js";
20
21
  import c from "../blocks/ComponentBlocks/RepeatingTransactionBlock/RepeatingTransactionBlock.es.js";
21
- import v from "../blocks/ComponentBlocks/SaveExtraBlock/SaveExtraBlock.es.js";
22
- import M from "../blocks/ComponentBlocks/SavingsOpportunityBlock/SavingsOpportunityBlock.es.js";
23
- import U from "../blocks/ComponentBlocks/SavingsSummaryBlock/SavingsSummaryBlock.es.js";
24
- import { TransactionBlock as w } from "../blocks/ComponentBlocks/TransactionBlock/TransactionBlock.es.js";
22
+ import M from "../blocks/ComponentBlocks/SaveExtraBlock/SaveExtraBlock.es.js";
23
+ import U from "../blocks/ComponentBlocks/SavingsOpportunityBlock/SavingsOpportunityBlock.es.js";
24
+ import w from "../blocks/ComponentBlocks/SavingsSummaryBlock/SavingsSummaryBlock.es.js";
25
+ import { TransactionBlock as G } from "../blocks/ComponentBlocks/TransactionBlock/TransactionBlock.es.js";
25
26
  import H from "../blocks/ComponentBlocks/UpcomingSubscriptionBlock/UpcomingSubscriptionBlock.es.js";
26
- import G from "../blocks/ComponentBlocks/WeeklySmallPurchasesBlock/WeeklySmallPurchasesBlock.es.js";
27
- import F from "../blocks/ComponentBlocks/WithdrawalBlock/WithdrawalBlock.es.js";
28
- import z from "../blocks/ImageBlocks/ImageBlock.es.js";
29
- import { SVGImageBlock as Y } from "../blocks/ImageBlocks/SVGImageBlock/SVGImageBlock.es.js";
30
- import { FeedbackModalActionBlock as x } from "../actionBlocks/FeedbackModalActionBlock.es.js";
27
+ import F from "../blocks/ComponentBlocks/WeeklySmallPurchasesBlock/WeeklySmallPurchasesBlock.es.js";
28
+ import z from "../blocks/ComponentBlocks/WithdrawalBlock/WithdrawalBlock.es.js";
29
+ import Y from "../blocks/ComponentBlocks/GreenStatementFeeBlock/GreenStatementFeeBlock.es.js";
30
+ import q from "../blocks/ImageBlocks/ImageBlock.es.js";
31
+ import { SVGImageBlock as x } from "../blocks/ImageBlocks/SVGImageBlock/SVGImageBlock.es.js";
32
+ import { FeedbackModalActionBlock as Q } from "../actionBlocks/FeedbackModalActionBlock.es.js";
31
33
  import { ConnectionDetailActionBlock as V } from "../actionBlocks/ConnectionDetailActionBlock.es.js";
32
34
  import { ConnectWidgetActionBlock as W } from "../actionBlocks/ConnectWidgetActionBlock.es.js";
33
- import { getDrawerHeaderTitle as q } from "../actionBlocks/TransactionHistoryBlock/utils.es.js";
34
- import { SurveyModalActionBlock as Q } from "../actionBlocks/SurveyModalActionBlock.es.js";
35
- import { SubscriptionStatusModalBlock as Z } from "../actionBlocks/SubscriptionStatusModalBlock.es.js";
36
- import { PlaceholderActionBlock as j } from "../actionBlocks/PlaceholderActionBlock.es.js";
37
- import { getMakeTransferDrawerTitle as J } from "../actionBlocks/MakeTransferActionBlock/layout.es.js";
38
- import { MakeTransferActionBlockLayer as X } from "../actionBlocks/MakeTransferActionBlock/MakeTransferActionBlockLayer.es.js";
39
- import { TransactionDetailsBlock as $ } from "../actionBlocks/TransactionDetailsBlock/TransactionDetailsBlock.es.js";
35
+ import { getDrawerHeaderTitle as Z } from "../actionBlocks/TransactionHistoryBlock/utils.es.js";
36
+ import { SurveyModalActionBlock as j } from "../actionBlocks/SurveyModalActionBlock.es.js";
37
+ import { SubscriptionStatusModalBlock as J } from "../actionBlocks/SubscriptionStatusModalBlock.es.js";
38
+ import { PlaceholderActionBlock as X } from "../actionBlocks/PlaceholderActionBlock.es.js";
39
+ import { getMakeTransferDrawerTitle as $ } from "../actionBlocks/MakeTransferActionBlock/layout.es.js";
40
+ import { MakeTransferActionBlockLayer as oo } from "../actionBlocks/MakeTransferActionBlock/MakeTransferActionBlockLayer.es.js";
41
+ import { TransactionDetailsBlock as to } from "../actionBlocks/TransactionDetailsBlock/TransactionDetailsBlock.es.js";
40
42
  import { useTransactionDetailsPrepare as n } from "../actionBlocks/TransactionDetailsBlock/useTransactionDetailsPrepare.es.js";
41
- import { TransactionHistoryBlock as oo, selectTransactionHistoryCopy as to } from "../actionBlocks/TransactionHistoryBlock/TransactionHistoryBlock.es.js";
43
+ import { TransactionHistoryBlock as eo, selectTransactionHistoryCopy as ro } from "../actionBlocks/TransactionHistoryBlock/TransactionHistoryBlock.es.js";
42
44
  import { useTransactionHistoryPrepare as p } from "../actionBlocks/TransactionHistoryBlock/useTransactionHistoryPrepare.es.js";
43
45
  import { useRecurringTransactionPrepare as m } from "../actionBlocks/RecurringTransactionBlock/useRecurringTransactionPrepare.es.js";
44
- import { RecurringTransactionBlock as eo } from "../actionBlocks/RecurringTransactionBlock/RecurringTransactionBlock.es.js";
45
- import { HelpBlock as ro } from "../actionBlocks/HelpBlock/HelpBlock.es.js";
46
- import { getTransactionListDrawerTitle as ao } from "../actionBlocks/TransactionListBlock/layout.es.js";
47
- import { TransactionListBlock as io } from "../actionBlocks/TransactionListBlock/TransactionListBlock.es.js";
48
- import { RemainingCashBlock as no, selectRemainingCashCopy as l, useRemainingCashLoadState as co } from "../actionBlocks/RemainingCashBlock/RemainingCashBlock.es.js";
46
+ import { RecurringTransactionBlock as ao } from "../actionBlocks/RecurringTransactionBlock/RecurringTransactionBlock.es.js";
47
+ import { HelpBlock as io } from "../actionBlocks/HelpBlock/HelpBlock.es.js";
48
+ import { getTransactionListDrawerTitle as no } from "../actionBlocks/TransactionListBlock/layout.es.js";
49
+ import { TransactionListBlock as co } from "../actionBlocks/TransactionListBlock/TransactionListBlock.es.js";
50
+ import { RemainingCashBlock as po, selectRemainingCashCopy as l, useRemainingCashLoadState as mo } from "../actionBlocks/RemainingCashBlock/RemainingCashBlock.es.js";
49
51
  import { AmountInputModalBlock as s } from "../actionBlocks/AmountInputModalBlock/AmountInputModalBlock.es.js";
50
- import { OverdraftBlock as po, selectOverdraftCopy as mo, useOverdraftPrepare as lo } from "../actionBlocks/OverdraftBlock/OverdraftBlock.es.js";
51
- import { AccountDetailsBlock as so } from "../actionBlocks/AccountDetailsBlock/AccountDetailsBlock.es.js";
52
- import { useAccountDetailsPrepare as _o } from "../actionBlocks/AccountDetailsBlock/useAccountDetailsPrepare.es.js";
53
- import { AccountListBlock as Co, selectAccountListCopy as _ } from "../actionBlocks/AccountListBlock/AccountListBlock.es.js";
54
- import { useAccountListPrepare as uo } from "../actionBlocks/AccountListBlock/useAccountListPrepare.es.js";
55
- import { EmergencySavingsBlock as Bo, selectEmergencySavingsCopy as fo } from "../actionBlocks/EmergencySavingsBlock/EmergencySavingsBlock.es.js";
56
- import { CreditUtilizationBlock as To, selectCreditUtilizationCopy as C } from "../actionBlocks/CreditUtilizationBlock/CreditUtilizationBlock.es.js";
57
- import { useCreditUtilizationPrepare as ko } from "../actionBlocks/CreditUtilizationBlock/useCreditUtilizationPrepare.es.js";
58
- import { PayoffCalculatorBlock as Ao, selectPayoffCalculatorCopy as u, usePayoffCalculatorLoadState as Oo, usePayoffCalculatorPrepare as Lo } from "../actionBlocks/PayoffCalculatorBlock/PayoffCalculatorBlock.es.js";
59
- import { BudgetDetailsBlock as Po, selectBudgetDetailsCopy as No } from "../actionBlocks/BudgetDetailsBlock/BudgetDetailsBlock.es.js";
52
+ import { OverdraftBlock as lo, selectOverdraftCopy as so, useOverdraftPrepare as _o } from "../actionBlocks/OverdraftBlock/OverdraftBlock.es.js";
53
+ import { AccountDetailsBlock as Co } from "../actionBlocks/AccountDetailsBlock/AccountDetailsBlock.es.js";
54
+ import { useAccountDetailsPrepare as uo } from "../actionBlocks/AccountDetailsBlock/useAccountDetailsPrepare.es.js";
55
+ import { AccountListBlock as Bo, selectAccountListCopy as _ } from "../actionBlocks/AccountListBlock/AccountListBlock.es.js";
56
+ import { useAccountListPrepare as fo } from "../actionBlocks/AccountListBlock/useAccountListPrepare.es.js";
57
+ import { EmergencySavingsBlock as ko, selectEmergencySavingsCopy as To } from "../actionBlocks/EmergencySavingsBlock/EmergencySavingsBlock.es.js";
58
+ import { CreditUtilizationBlock as Ao, selectCreditUtilizationCopy as C } from "../actionBlocks/CreditUtilizationBlock/CreditUtilizationBlock.es.js";
59
+ import { useCreditUtilizationPrepare as Oo } from "../actionBlocks/CreditUtilizationBlock/useCreditUtilizationPrepare.es.js";
60
+ import { PayoffCalculatorBlock as Lo, selectPayoffCalculatorCopy as u, usePayoffCalculatorLoadState as Po, usePayoffCalculatorPrepare as No } from "../actionBlocks/PayoffCalculatorBlock/PayoffCalculatorBlock.es.js";
61
+ import { BudgetDetailsBlock as go, selectBudgetDetailsCopy as yo } from "../actionBlocks/BudgetDetailsBlock/BudgetDetailsBlock.es.js";
60
62
  import { TopMerchantsBlock as Io, selectTopMerchantsCopy as B } from "../actionBlocks/TopMerchantsBlock/TopMerchantsBlock.es.js";
61
- import { useBudgetDetailsPrepare as go } from "../actionBlocks/BudgetDetailsBlock/useBudgetDetailsPrepare.es.js";
62
- import { PayoffStrategiesBlock as So, selectPayoffStrategiesCopy as f } from "../actionBlocks/PayoffStrategiesBlock/PayoffStrategiesBlock.es.js";
63
- import { usePayoffStrategiesPrepare as yo } from "../actionBlocks/PayoffStrategiesBlock/usePayoffStrategiesPrepare.es.js";
64
- import { QuizMerchantBlock as bo } from "../actionBlocks/QuizMerchantBlock/QuizMerchantBlock.es.js";
65
- import { useAccountsLoadState as T } from "../actionBlocks/useAccountsLoadState.es.js";
63
+ import { useBudgetDetailsPrepare as So } from "../actionBlocks/BudgetDetailsBlock/useBudgetDetailsPrepare.es.js";
64
+ import { PayoffStrategiesBlock as bo, selectPayoffStrategiesCopy as f } from "../actionBlocks/PayoffStrategiesBlock/PayoffStrategiesBlock.es.js";
65
+ import { usePayoffStrategiesPrepare as Do } from "../actionBlocks/PayoffStrategiesBlock/usePayoffStrategiesPrepare.es.js";
66
+ import { QuizMerchantBlock as ho } from "../actionBlocks/QuizMerchantBlock/QuizMerchantBlock.es.js";
67
+ import { useAccountsLoadState as k } from "../actionBlocks/useAccountsLoadState.es.js";
66
68
  var a = (r) => {
67
69
  }, t = (r) => ({
68
70
  get Component() {
@@ -86,47 +88,47 @@ var a = (r) => {
86
88
  get headerAction() {
87
89
  return r().headerAction;
88
90
  }
89
- }), zt = {
91
+ }), Qt = {
90
92
  [o.PLACEHOLDER_ACTION_BLOCK]: t(() => ({
91
- Component: j,
93
+ Component: X,
92
94
  usePrepare: a,
93
95
  title: () => "Action Block Layer Drilldown"
94
96
  })),
95
97
  [o.MAKE_TRANSFER_ACTION_BLOCK]: t(() => ({
96
- Component: X,
98
+ Component: oo,
97
99
  usePrepare: a,
98
- title: J
100
+ title: $
99
101
  })),
100
102
  [o.TRANSCATION_HISTORY_ACTION_BLOCK]: t(() => ({
101
- Component: oo,
102
- copy: to,
103
+ Component: eo,
104
+ copy: ro,
103
105
  usePrepare: p,
104
- title: q
106
+ title: Z
105
107
  })),
106
108
  [o.TRANSACTION_DETAILS_ACTION_BLOCK]: t(() => ({
107
- Component: $,
109
+ Component: to,
108
110
  usePrepare: n,
109
111
  title: () => "Transaction Details"
110
112
  })),
111
113
  [o.RECURRING_TRANSACTION_ACTION_BLOCK]: t(() => ({
112
- Component: eo,
114
+ Component: ao,
113
115
  usePrepare: m,
114
116
  title: (r, e) => e.recurring?.expense_details ?? ""
115
117
  })),
116
118
  [o.REMAINING_CASH_ACTION_BLOCK]: t(() => ({
117
- Component: no,
119
+ Component: po,
118
120
  copy: l,
119
121
  usePrepare: m,
120
- useLoadState: co,
122
+ useLoadState: mo,
121
123
  title: (r, e) => l(e)?.title ?? ""
122
124
  })),
123
125
  [o.CONTACT_SUPPORT_ACTION_BLOCK]: t(() => ({
124
- Component: k,
126
+ Component: T,
125
127
  usePrepare: a,
126
128
  title: (r, e) => e.help?.request_support ?? ""
127
129
  })),
128
130
  [o.FEEDBACK_MODAL_ACTION_BLOCK]: t(() => ({
129
- Component: x,
131
+ Component: Q,
130
132
  usePrepare: a,
131
133
  presentation: "modal"
132
134
  })),
@@ -140,19 +142,19 @@ var a = (r) => {
140
142
  usePrepare: a
141
143
  })),
142
144
  [o.SURVEY_MODAL_ACTION_BLOCK]: t(() => ({
143
- Component: Q,
145
+ Component: j,
144
146
  usePrepare: a,
145
147
  presentation: "modal"
146
148
  })),
147
149
  [o.SUBSCRIPTION_STATUS_MODAL_ACTION_BLOCK]: t(() => ({
148
- Component: Z,
150
+ Component: J,
149
151
  usePrepare: a,
150
152
  presentation: "modal"
151
153
  })),
152
154
  [o.TRANSACTION_LIST_ACTION_BLOCK]: t(() => ({
153
- Component: io,
155
+ Component: co,
154
156
  usePrepare: n,
155
- title: ao
157
+ title: no
156
158
  })),
157
159
  [o.AMOUNT_INPUT_MODAL_ACTION_BLOCK]: t(() => ({
158
160
  Component: s,
@@ -165,28 +167,28 @@ var a = (r) => {
165
167
  usePrepare: a
166
168
  })),
167
169
  [o.OVERDRAFT_ACTION_BLOCK]: t(() => ({
168
- Component: po,
169
- copy: mo,
170
- usePrepare: lo,
170
+ Component: lo,
171
+ copy: so,
172
+ usePrepare: _o,
171
173
  title: (r, e, i) => i?.insights_payload?.title ?? ""
172
174
  })),
173
175
  [o.CREDIT_UTILIZATION_ACTION_BLOCK]: t(() => ({
174
- Component: To,
176
+ Component: Ao,
175
177
  copy: C,
176
- usePrepare: ko,
178
+ usePrepare: Oo,
177
179
  title: (r, e) => C(e)?.title ?? ""
178
180
  })),
179
181
  [o.EMERGENCY_SAVINGS_ACTION_BLOCK]: t(() => ({
180
- Component: Bo,
181
- copy: fo,
182
+ Component: ko,
183
+ copy: To,
182
184
  usePrepare: a,
183
185
  title: (r, e, i) => i?.insights_payload?.title ?? ""
184
186
  })),
185
187
  [o.PAYOFF_CALCULATOR_ACTION_BLOCK]: t(() => ({
186
- Component: Ao,
188
+ Component: Lo,
187
189
  copy: u,
188
- usePrepare: Lo,
189
- useLoadState: Oo,
190
+ usePrepare: No,
191
+ useLoadState: Po,
190
192
  title: (r, e) => u(e)?.title ?? ""
191
193
  })),
192
194
  [o.TOP_MERCHANTS_ACTION_BLOCK]: t(() => ({
@@ -197,72 +199,74 @@ var a = (r) => {
197
199
  title: (r, e) => B(e)?.title ?? ""
198
200
  })),
199
201
  [o.BUDGET_DETAILS_ACTION_BLOCK]: t(() => ({
200
- Component: Po,
201
- copy: No,
202
+ Component: go,
203
+ copy: yo,
202
204
  headerAction: "close",
203
- usePrepare: go,
205
+ usePrepare: So,
204
206
  title: A
205
207
  })),
206
208
  [o.ACCOUNT_DETAILS_ACTION_BLOCK]: t(() => ({
207
- Component: so,
208
- usePrepare: _o,
209
+ Component: Co,
210
+ usePrepare: uo,
209
211
  title: (r, e) => e.accounts?.account_details ?? ""
210
212
  })),
211
213
  [o.ACCOUNT_LIST_ACTION_BLOCK]: t(() => ({
212
- Component: Co,
214
+ Component: Bo,
213
215
  copy: _,
214
- usePrepare: uo,
215
- useLoadState: T,
216
+ usePrepare: fo,
217
+ useLoadState: k,
216
218
  title: (r, e) => _(e)?.title ?? ""
217
219
  })),
218
220
  [o.HELP_ACTION_BLOCK]: t(() => ({
219
- Component: ro,
221
+ Component: io,
220
222
  usePrepare: a
221
223
  })),
222
224
  [o.PAYOFF_STRATEGIES_ACTION_BLOCK]: t(() => ({
223
- Component: So,
225
+ Component: bo,
224
226
  copy: f,
225
- usePrepare: yo,
226
- useLoadState: T,
227
+ usePrepare: Do,
228
+ useLoadState: k,
227
229
  title: (r, e) => f(e)?.debt_payoff_strategies ?? ""
228
230
  })),
229
231
  [o.QUIZ_MERCHANT_ACTION_BLOCK]: t(() => ({
230
- Component: bo,
232
+ Component: ho,
231
233
  usePrepare: n,
232
234
  title: (r, e) => e.insights_feed?.quiz_block?.drawer_title ?? ""
233
235
  }))
234
- }, Yt = {
235
- account_block: g,
236
- account_switch_block: S,
237
- direct_deposit_block: I,
236
+ }, Vt = {
237
+ account_block: y,
238
+ account_switch_block: I,
239
+ direct_deposit_block: g,
238
240
  bar_chart_block: O,
239
- budget_block: y,
241
+ budget_block: S,
240
242
  debts_block: b,
241
243
  donut_chart_block: P,
242
244
  double_bar_chart_block: d,
243
245
  double_progress_bar_block: N,
244
246
  gas_purchase_block: D,
245
247
  goals_block: h,
246
- image_block: z,
248
+ image_block: q,
247
249
  merchant_block: E,
248
250
  no_spend_days_block: K,
249
- quiz_block: R,
251
+ quarterly_summary_block: R,
252
+ quiz_block: v,
250
253
  repeating_transaction_block: c,
251
- save_extra_block: v,
252
- savings_amount_block: M,
253
- savings_summary_block: U,
254
+ save_extra_block: M,
255
+ savings_amount_block: U,
256
+ savings_summary_block: w,
254
257
  step_chart_block: L,
255
- svg_image_block: Y,
258
+ svg_image_block: x,
256
259
  upcoming_bill_block: c,
257
260
  upcoming_subscription_block: H,
258
- weekly_small_purchases_block: G,
259
- withdrawal_block: F,
260
- transaction_block: w
261
+ weekly_small_purchases_block: F,
262
+ withdrawal_block: z,
263
+ transaction_block: G,
264
+ green_statement_fee_block: Y
261
265
  };
262
266
  export {
263
- zt as actionBlocks,
264
- Yt as blocks,
265
- Ko as hasDrawerBlock
267
+ Qt as actionBlocks,
268
+ Vt as blocks,
269
+ vo as hasDrawerBlock
266
270
  };
267
271
 
268
272
  //# 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 GasPurchaseBlock,\n GoalsBlock,\n MerchantBlock,\n DoubleBarChartBlock,\n DoubleProgressBarBlock,\n NoSpendDaysBlock,\n QuizBlock,\n RepeatingTransactionBlock,\n SaveExtraBlock,\n SavingsOpportunityBlock,\n SavingsSummaryBlock,\n SVGImageBlock,\n UpcomingSubscriptionBlock,\n WeeklySmallPurchasesBlock,\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 { SubscriptionStatusModalBlock } from '../actionBlocks/SubscriptionStatusModalBlock'\nimport { PlaceholderActionBlock } from '../actionBlocks/PlaceholderActionBlock'\nimport { MakeTransferActionBlockLayer } from '../actionBlocks/MakeTransferActionBlock/MakeTransferActionBlockLayer'\nimport { getMakeTransferDrawerTitle } from '../actionBlocks/MakeTransferActionBlock/layout'\nimport {\n selectTransactionHistoryCopy,\n TransactionHistoryBlock,\n} 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 { getTransactionListDrawerTitle } from '../actionBlocks/TransactionListBlock/layout'\nimport {\n RemainingCashBlock,\n selectRemainingCashCopy,\n useRemainingCashLoadState,\n} from '../actionBlocks/RemainingCashBlock'\nimport { AmountInputModalBlock } from '../actionBlocks/AmountInputModalBlock'\nimport {\n OverdraftBlock,\n selectOverdraftCopy,\n useOverdraftPrepare,\n} from '../actionBlocks/OverdraftBlock'\nimport {\n AccountListBlock,\n selectAccountListCopy,\n useAccountListPrepare,\n} from '../actionBlocks/AccountListBlock'\nimport {\n EmergencySavingsBlock,\n selectEmergencySavingsCopy,\n} from '../actionBlocks/EmergencySavingsBlock'\nimport {\n CreditUtilizationBlock,\n selectCreditUtilizationCopy,\n useCreditUtilizationPrepare,\n} from '../actionBlocks/CreditUtilizationBlock'\nimport {\n PayoffCalculatorBlock,\n selectPayoffCalculatorCopy,\n usePayoffCalculatorLoadState,\n usePayoffCalculatorPrepare,\n} from '../actionBlocks/PayoffCalculatorBlock'\nimport { BudgetDetailsBlock, selectBudgetDetailsCopy } from '../actionBlocks/BudgetDetailsBlock'\nimport { TopMerchantsBlock, selectTopMerchantsCopy } from '../actionBlocks/TopMerchantsBlock'\nimport { useBudgetDetailsPrepare } from '../actionBlocks/BudgetDetailsBlock/useBudgetDetailsPrepare'\nimport { getBudgetDetailsDrawerTitle } from '../actionBlocks/BudgetDetailsBlock/layout'\nimport { AccountDetailsBlock, useAccountDetailsPrepare } from '../actionBlocks/AccountDetailsBlock'\nimport { HelpBlock } from '../actionBlocks/HelpBlock'\nimport {\n PayoffStrategiesBlock,\n selectPayoffStrategiesCopy,\n usePayoffStrategiesPrepare,\n} from '../actionBlocks/PayoffStrategiesBlock'\nimport { QuizMerchantBlock } from '../actionBlocks/QuizMerchantBlock'\nimport { useAccountsLoadState } from '../actionBlocks/useAccountsLoadState'\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 BlockLoadState {\n ready: boolean\n failed?: boolean\n retry?: () => void\n}\n\nexport interface ActionBlockEntry {\n Component: React.ComponentType<ActionBlockProps>\n usePrepare: (props: ActionBlockProps) => void // required; default to noop in each entry\n // The data the block waits for: a loader until `ready`, the error card while `failed`.\n useLoadState?: (props: ActionBlockProps) => BlockLoadState\n // Drawer title from the CTA's variant and copy; falls back to the CTA label when empty.\n title?: (variant: string | null | undefined, copy: GlobalCopy, beat?: Beat) => string\n // The copy section a drawer block needs; the layer shows BlockErrorMessage without it.\n copy?: (copy: GlobalCopy) => unknown\n // 'drawer' (default) or 'modal' (component renders its own dialog, no Drawer wrapper).\n presentation?: 'drawer' | 'modal'\n // The drawer header's close control: 'back' (default, arrow on the left) or 'close' (X on the right).\n headerAction?: 'back' | 'close'\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 * Reads its imports on access, not at load: some blocks import this registry back through\n * `ActionBlockLayer`, so a value copied at load would still be `undefined`.\n */\nconst liveEntry = (resolve: () => ActionBlockEntry): ActionBlockEntry => ({\n get Component() {\n return resolve().Component\n },\n get usePrepare() {\n return resolve().usePrepare\n },\n get useLoadState() {\n return resolve().useLoadState\n },\n get title() {\n return resolve().title\n },\n get copy() {\n return resolve().copy\n },\n get presentation() {\n return resolve().presentation\n },\n get headerAction() {\n return resolve().headerAction\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 copy: selectTransactionHistoryCopy,\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 copy: selectRemainingCashCopy,\n usePrepare: useRecurringTransactionPrepare,\n useLoadState: useRemainingCashLoadState,\n title: (_variant, copy) => selectRemainingCashCopy(copy)?.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 // Unexpected Subscription Payment's Subscription Status modal.\n [actionBlocksKey.SUBSCRIPTION_STATUS_MODAL_ACTION_BLOCK]: liveEntry(() => ({\n Component: SubscriptionStatusModalBlock,\n usePrepare: noop,\n presentation: 'modal',\n })),\n [actionBlocksKey.TRANSACTION_LIST_ACTION_BLOCK]: liveEntry(() => ({\n Component: TransactionListBlock,\n usePrepare: useTransactionDetailsPrepare,\n title: getTransactionListDrawerTitle,\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 // Savings Opportunity's safety net: `safety_net_block` opens the amount-input modal.\n [actionBlocksKey.SAFETY_NET_ACTION_BLOCK]: liveEntry(() => ({\n Component: AmountInputModalBlock,\n presentation: 'modal',\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 copy: selectOverdraftCopy,\n usePrepare: useOverdraftPrepare,\n title: (_variant, _copy, beat) => beat?.insights_payload?.title ?? '',\n })),\n // Credit Utilization's \"Learn more\": the explanation, the band legend and the per-card list.\n [actionBlocksKey.CREDIT_UTILIZATION_ACTION_BLOCK]: liveEntry(() => ({\n Component: CreditUtilizationBlock,\n copy: selectCreditUtilizationCopy,\n usePrepare: useCreditUtilizationPrepare,\n title: (_variant, copy) => selectCreditUtilizationCopy(copy)?.title ?? '',\n })),\n [actionBlocksKey.EMERGENCY_SAVINGS_ACTION_BLOCK]: liveEntry(() => ({\n Component: EmergencySavingsBlock,\n copy: selectEmergencySavingsCopy,\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 copy: selectPayoffCalculatorCopy,\n usePrepare: usePayoffCalculatorPrepare,\n useLoadState: usePayoffCalculatorLoadState,\n title: (_variant, copy) => selectPayoffCalculatorCopy(copy)?.title ?? '',\n })),\n // Monthly Top Merchant Spending's Top Merchants: the month's ten ranked merchants, each opening\n // its Merchant History (Transaction History, `top_merchant` variant) in a nested drawer.\n [actionBlocksKey.TOP_MERCHANTS_ACTION_BLOCK]: liveEntry(() => ({\n Component: TopMerchantsBlock,\n copy: selectTopMerchantsCopy,\n // Figma's Top Merchants: a close X on the right, not the back arrow.\n headerAction: 'close',\n // The nested Merchant History lists the store's transactions, so load them as it would.\n usePrepare: useTransactionHistoryPrepare,\n title: (_variant, copy) => selectTopMerchantsCopy(copy)?.title ?? '',\n })),\n [actionBlocksKey.BUDGET_DETAILS_ACTION_BLOCK]: liveEntry(() => ({\n Component: BudgetDetailsBlock,\n copy: selectBudgetDetailsCopy,\n // Figma's Budget Details: a close X on the right, not the back arrow.\n headerAction: 'close',\n // Loads the budget data and points the transaction store at the budget month, as pulse did.\n usePrepare: useBudgetDetailsPrepare,\n title: getBudgetDetailsDrawerTitle,\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 copy: selectAccountListCopy,\n usePrepare: useAccountListPrepare,\n useLoadState: useAccountsLoadState,\n title: (_variant, copy) => selectAccountListCopy(copy)?.title ?? '',\n })),\n // A beat's \"Learn More\": its pre-localized help title and body from the payload's\n // `drilldown_data`. The drawer title is the CTA label.\n [actionBlocksKey.HELP_ACTION_BLOCK]: liveEntry(() => ({\n Component: HelpBlock,\n usePrepare: noop,\n })),\n // Debt Payoff Strategies' \"Learn more\": Avalanche / Snowball tabs over the beat's debt accounts.\n [actionBlocksKey.PAYOFF_STRATEGIES_ACTION_BLOCK]: liveEntry(() => ({\n Component: PayoffStrategiesBlock,\n copy: selectPayoffStrategiesCopy,\n usePrepare: usePayoffStrategiesPrepare,\n useLoadState: useAccountsLoadState,\n title: (_variant, copy) => selectPayoffStrategiesCopy(copy)?.debt_payoff_strategies ?? '',\n })),\n // A Monthly Top Transacted Merchant result row: that merchant's rank, totals and transactions.\n [actionBlocksKey.QUIZ_MERCHANT_ACTION_BLOCK]: liveEntry(() => ({\n Component: QuizMerchantBlock,\n usePrepare: useTransactionDetailsPrepare,\n title: (_variant, copy) => copy.insights_feed?.quiz_block?.drawer_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 gas_purchase_block: GasPurchaseBlock,\n goals_block: GoalsBlock,\n image_block: ImageBlock,\n merchant_block: MerchantBlock,\n no_spend_days_block: NoSpendDaysBlock,\n quiz_block: QuizBlock,\n repeating_transaction_block: RepeatingTransactionBlock,\n save_extra_block: SaveExtraBlock,\n savings_amount_block: SavingsOpportunityBlock,\n savings_summary_block: SavingsSummaryBlock,\n step_chart_block: StepChartBlock,\n svg_image_block: SVGImageBlock,\n upcoming_bill_block: RepeatingTransactionBlock,\n upcoming_subscription_block: UpcomingSubscriptionBlock,\n weekly_small_purchases_block: WeeklySmallPurchasesBlock,\n withdrawal_block: WithdrawalBlock,\n transaction_block: TransactionBlock,\n} as Record<string, React.ComponentType<{ payload: InsightsPayload; beatGuid?: string }>>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4GA,IAAM,IAAA,CAAQ,MAAwB;AAAC,GAiCjC,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,eAAe;AACjB,WAAO,EAAQ,EAAE;AAAA,EACnB;AAAA,EACA,IAAI,QAAQ;AACV,WAAO,EAAQ,EAAE;AAAA,EACnB;AAAA,EACA,IAAI,OAAO;AACT,WAAO,EAAQ,EAAE;AAAA,EACnB;AAAA,EACA,IAAI,eAAe;AACjB,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,MAAM;AAAA,IACN,YAAY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;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,oBAAoB;AAAA,EACpB,aAAa;AAAA,EACb,aAAa;AAAA,EACb,gBAAgB;AAAA,EAChB,qBAAqB;AAAA,EACrB,YAAY;AAAA,EACZ,6BAA6B;AAAA,EAC7B,kBAAkB;AAAA,EAClB,sBAAsB;AAAA,EACtB,uBAAuB;AAAA,EACvB,kBAAkB;AAAA,EAClB,iBAAiB;AAAA,EACjB,qBAAqB;AAAA,EACrB,6BAA6B;AAAA,EAC7B,8BAA8B;AAAA,EAC9B,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 GasPurchaseBlock,\n GoalsBlock,\n MerchantBlock,\n DoubleBarChartBlock,\n DoubleProgressBarBlock,\n NoSpendDaysBlock,\n QuarterlySummaryBlock,\n QuizBlock,\n RepeatingTransactionBlock,\n SaveExtraBlock,\n SavingsOpportunityBlock,\n SavingsSummaryBlock,\n SVGImageBlock,\n UpcomingSubscriptionBlock,\n WeeklySmallPurchasesBlock,\n WithdrawalBlock,\n TransactionBlock,\n GreenStatementFeeBlock,\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 { SubscriptionStatusModalBlock } from '../actionBlocks/SubscriptionStatusModalBlock'\nimport { PlaceholderActionBlock } from '../actionBlocks/PlaceholderActionBlock'\nimport { MakeTransferActionBlockLayer } from '../actionBlocks/MakeTransferActionBlock/MakeTransferActionBlockLayer'\nimport { getMakeTransferDrawerTitle } from '../actionBlocks/MakeTransferActionBlock/layout'\nimport {\n selectTransactionHistoryCopy,\n TransactionHistoryBlock,\n} 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 { getTransactionListDrawerTitle } from '../actionBlocks/TransactionListBlock/layout'\nimport {\n RemainingCashBlock,\n selectRemainingCashCopy,\n useRemainingCashLoadState,\n} from '../actionBlocks/RemainingCashBlock'\nimport { AmountInputModalBlock } from '../actionBlocks/AmountInputModalBlock'\nimport {\n OverdraftBlock,\n selectOverdraftCopy,\n useOverdraftPrepare,\n} from '../actionBlocks/OverdraftBlock'\nimport {\n AccountListBlock,\n selectAccountListCopy,\n useAccountListPrepare,\n} from '../actionBlocks/AccountListBlock'\nimport {\n EmergencySavingsBlock,\n selectEmergencySavingsCopy,\n} from '../actionBlocks/EmergencySavingsBlock'\nimport {\n CreditUtilizationBlock,\n selectCreditUtilizationCopy,\n useCreditUtilizationPrepare,\n} from '../actionBlocks/CreditUtilizationBlock'\nimport {\n PayoffCalculatorBlock,\n selectPayoffCalculatorCopy,\n usePayoffCalculatorLoadState,\n usePayoffCalculatorPrepare,\n} from '../actionBlocks/PayoffCalculatorBlock'\nimport { BudgetDetailsBlock, selectBudgetDetailsCopy } from '../actionBlocks/BudgetDetailsBlock'\nimport { TopMerchantsBlock, selectTopMerchantsCopy } from '../actionBlocks/TopMerchantsBlock'\nimport { useBudgetDetailsPrepare } from '../actionBlocks/BudgetDetailsBlock/useBudgetDetailsPrepare'\nimport { getBudgetDetailsDrawerTitle } from '../actionBlocks/BudgetDetailsBlock/layout'\nimport { AccountDetailsBlock, useAccountDetailsPrepare } from '../actionBlocks/AccountDetailsBlock'\nimport { HelpBlock } from '../actionBlocks/HelpBlock'\nimport {\n PayoffStrategiesBlock,\n selectPayoffStrategiesCopy,\n usePayoffStrategiesPrepare,\n} from '../actionBlocks/PayoffStrategiesBlock'\nimport { QuizMerchantBlock } from '../actionBlocks/QuizMerchantBlock'\nimport { useAccountsLoadState } from '../actionBlocks/useAccountsLoadState'\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 BlockLoadState {\n ready: boolean\n failed?: boolean\n retry?: () => void\n}\n\nexport interface ActionBlockEntry {\n Component: React.ComponentType<ActionBlockProps>\n usePrepare: (props: ActionBlockProps) => void // required; default to noop in each entry\n // The data the block waits for: a loader until `ready`, the error card while `failed`.\n useLoadState?: (props: ActionBlockProps) => BlockLoadState\n // Drawer title from the CTA's variant and copy; falls back to the CTA label when empty.\n title?: (variant: string | null | undefined, copy: GlobalCopy, beat?: Beat) => string\n // The copy section a drawer block needs; the layer shows BlockErrorMessage without it.\n copy?: (copy: GlobalCopy) => unknown\n // 'drawer' (default) or 'modal' (component renders its own dialog, no Drawer wrapper).\n presentation?: 'drawer' | 'modal'\n // The drawer header's close control: 'back' (default, arrow on the left) or 'close' (X on the right).\n headerAction?: 'back' | 'close'\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 * Reads its imports on access, not at load: some blocks import this registry back through\n * `ActionBlockLayer`, so a value copied at load would still be `undefined`.\n */\nconst liveEntry = (resolve: () => ActionBlockEntry): ActionBlockEntry => ({\n get Component() {\n return resolve().Component\n },\n get usePrepare() {\n return resolve().usePrepare\n },\n get useLoadState() {\n return resolve().useLoadState\n },\n get title() {\n return resolve().title\n },\n get copy() {\n return resolve().copy\n },\n get presentation() {\n return resolve().presentation\n },\n get headerAction() {\n return resolve().headerAction\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 copy: selectTransactionHistoryCopy,\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 copy: selectRemainingCashCopy,\n usePrepare: useRecurringTransactionPrepare,\n useLoadState: useRemainingCashLoadState,\n title: (_variant, copy) => selectRemainingCashCopy(copy)?.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 // Unexpected Subscription Payment's Subscription Status modal.\n [actionBlocksKey.SUBSCRIPTION_STATUS_MODAL_ACTION_BLOCK]: liveEntry(() => ({\n Component: SubscriptionStatusModalBlock,\n usePrepare: noop,\n presentation: 'modal',\n })),\n [actionBlocksKey.TRANSACTION_LIST_ACTION_BLOCK]: liveEntry(() => ({\n Component: TransactionListBlock,\n usePrepare: useTransactionDetailsPrepare,\n title: getTransactionListDrawerTitle,\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 // Savings Opportunity's safety net: `safety_net_block` opens the amount-input modal.\n [actionBlocksKey.SAFETY_NET_ACTION_BLOCK]: liveEntry(() => ({\n Component: AmountInputModalBlock,\n presentation: 'modal',\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 copy: selectOverdraftCopy,\n usePrepare: useOverdraftPrepare,\n title: (_variant, _copy, beat) => beat?.insights_payload?.title ?? '',\n })),\n // Credit Utilization's \"Learn more\": the explanation, the band legend and the per-card list.\n [actionBlocksKey.CREDIT_UTILIZATION_ACTION_BLOCK]: liveEntry(() => ({\n Component: CreditUtilizationBlock,\n copy: selectCreditUtilizationCopy,\n usePrepare: useCreditUtilizationPrepare,\n title: (_variant, copy) => selectCreditUtilizationCopy(copy)?.title ?? '',\n })),\n [actionBlocksKey.EMERGENCY_SAVINGS_ACTION_BLOCK]: liveEntry(() => ({\n Component: EmergencySavingsBlock,\n copy: selectEmergencySavingsCopy,\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 copy: selectPayoffCalculatorCopy,\n usePrepare: usePayoffCalculatorPrepare,\n useLoadState: usePayoffCalculatorLoadState,\n title: (_variant, copy) => selectPayoffCalculatorCopy(copy)?.title ?? '',\n })),\n // Monthly Top Merchant Spending's Top Merchants: the month's ten ranked merchants, each opening\n // its Merchant History (Transaction History, `top_merchant` variant) in a nested drawer.\n [actionBlocksKey.TOP_MERCHANTS_ACTION_BLOCK]: liveEntry(() => ({\n Component: TopMerchantsBlock,\n copy: selectTopMerchantsCopy,\n // Figma's Top Merchants: a close X on the right, not the back arrow.\n headerAction: 'close',\n // The nested Merchant History lists the store's transactions, so load them as it would.\n usePrepare: useTransactionHistoryPrepare,\n title: (_variant, copy) => selectTopMerchantsCopy(copy)?.title ?? '',\n })),\n [actionBlocksKey.BUDGET_DETAILS_ACTION_BLOCK]: liveEntry(() => ({\n Component: BudgetDetailsBlock,\n copy: selectBudgetDetailsCopy,\n // Figma's Budget Details: a close X on the right, not the back arrow.\n headerAction: 'close',\n // Loads the budget data and points the transaction store at the budget month, as pulse did.\n usePrepare: useBudgetDetailsPrepare,\n title: getBudgetDetailsDrawerTitle,\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 copy: selectAccountListCopy,\n usePrepare: useAccountListPrepare,\n useLoadState: useAccountsLoadState,\n title: (_variant, copy) => selectAccountListCopy(copy)?.title ?? '',\n })),\n // A beat's \"Learn More\": its pre-localized help title and body from the payload's\n // `drilldown_data`. The drawer title is the CTA label.\n [actionBlocksKey.HELP_ACTION_BLOCK]: liveEntry(() => ({\n Component: HelpBlock,\n usePrepare: noop,\n })),\n // Debt Payoff Strategies' \"Learn more\": Avalanche / Snowball tabs over the beat's debt accounts.\n [actionBlocksKey.PAYOFF_STRATEGIES_ACTION_BLOCK]: liveEntry(() => ({\n Component: PayoffStrategiesBlock,\n copy: selectPayoffStrategiesCopy,\n usePrepare: usePayoffStrategiesPrepare,\n useLoadState: useAccountsLoadState,\n title: (_variant, copy) => selectPayoffStrategiesCopy(copy)?.debt_payoff_strategies ?? '',\n })),\n // A Monthly Top Transacted Merchant result row: that merchant's rank, totals and transactions.\n [actionBlocksKey.QUIZ_MERCHANT_ACTION_BLOCK]: liveEntry(() => ({\n Component: QuizMerchantBlock,\n usePrepare: useTransactionDetailsPrepare,\n title: (_variant, copy) => copy.insights_feed?.quiz_block?.drawer_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 gas_purchase_block: GasPurchaseBlock,\n goals_block: GoalsBlock,\n image_block: ImageBlock,\n merchant_block: MerchantBlock,\n no_spend_days_block: NoSpendDaysBlock,\n quarterly_summary_block: QuarterlySummaryBlock,\n quiz_block: QuizBlock,\n repeating_transaction_block: RepeatingTransactionBlock,\n save_extra_block: SaveExtraBlock,\n savings_amount_block: SavingsOpportunityBlock,\n savings_summary_block: SavingsSummaryBlock,\n step_chart_block: StepChartBlock,\n svg_image_block: SVGImageBlock,\n upcoming_bill_block: RepeatingTransactionBlock,\n upcoming_subscription_block: UpcomingSubscriptionBlock,\n weekly_small_purchases_block: WeeklySmallPurchasesBlock,\n withdrawal_block: WithdrawalBlock,\n transaction_block: TransactionBlock,\n green_statement_fee_block: GreenStatementFeeBlock,\n} as Record<string, React.ComponentType<{ payload: InsightsPayload; beatGuid?: string }>>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8GA,IAAM,IAAA,CAAQ,MAAwB;AAAC,GAiCjC,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,eAAe;AACjB,WAAO,EAAQ,EAAE;AAAA,EACnB;AAAA,EACA,IAAI,QAAQ;AACV,WAAO,EAAQ,EAAE;AAAA,EACnB;AAAA,EACA,IAAI,OAAO;AACT,WAAO,EAAQ,EAAE;AAAA,EACnB;AAAA,EACA,IAAI,eAAe;AACjB,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,MAAM;AAAA,IACN,YAAY;AAAA,IACZ,OAAO;AAAA,EACT,EAAE;AAAA,EACD,CAAA,EAAgB,gCAAA,GAAmC,EAAA,OAAiB;AAAA,IACnE,WAAW;AAAA,IACX,YAAY;AAAA,IACZ,OAAA,MAAa;AAAA,EACf,EAAE;AAAA,EAGD,CAAA,EAAgB,kCAAA,GAAqC,E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pB,aAAa;AAAA,EACb,aAAa;AAAA,EACb,gBAAgB;AAAA,EAChB,qBAAqB;AAAA,EACrB,yBAAyB;AAAA,EACzB,YAAY;AAAA,EACZ,6BAA6B;AAAA,EAC7B,kBAAkB;AAAA,EAClB,sBAAsB;AAAA,EACtB,uBAAuB;AAAA,EACvB,kBAAkB;AAAA,EAClB,iBAAiB;AAAA,EACjB,qBAAqB;AAAA,EACrB,6BAA6B;AAAA,EAC7B,8BAA8B;AAAA,EAC9B,kBAAkB;AAAA,EAClB,mBAAmB;AAAA,EACnB,2BAA2B;AAC7B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "9.7.179",
3
+ "version": "9.7.181",
4
4
  "description": "Library containing experience widgets",
5
5
  "author": "MX",
6
6
  "license": "MIT",