@mx-cartographer/experiences 9.7.150 → 9.7.151

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,10 +1,15 @@
1
+ ## [9.7.151] - 11-13-2026
2
+
3
+ - Debt Payment Reminder | DebtsBlock is the payment reminder card only (WEC-2307)
4
+
1
5
  ## [9.7.150] - 11-13-2026
2
6
 
3
- - **ADDED** - `formatWholeCurrency` in core utils: whole-dollar currency that rounds first, so a small negative shows "" (WEC-2273)
7
+ - **ADDED** - `formatWholeCurrency` in core utils: whole-dollar currency that rounds first, so a small negative shows "$0" (WEC-2273)
4
8
  - **CHANGED** - `MakeTransferCopy` requires `available_balance_text` and `avg_monthly_spend_text` (WEC-2273)
5
- - **FIXED** - Save Enough to Live On and Save an Extra 00 drawers show a close button on the right, as in Figma (WEC-2273)
6
- - **FIXED** - Save Enough to Live On and Save an Extra 00 drawers show whole-dollar amounts, and the months rows match the stepper amount shown (WEC-2273)
7
- - **FIXED** - Save Enough to Live On card and drawer spacing match Figma: the card's table and c...
9
+ - **FIXED** - Save Enough to Live On and Save an Extra $100 drawers show a close button on the right, as in Figma (WEC-2273)
10
+ - **FIXED** - Save Enough to Live On and Save an Extra $100 drawers show whole-dollar amounts, and the months rows match the stepper amount shown (WEC-2273)
11
+ - **FIXED** - Save Enough to Live On card and drawer spacing match Figma: the card's table and content height, and the months rows in the Save Enough and Save an Extra $100 drawers (WEC-2273)
12
+ - **FIXED** - Save Enough to Live On card and drawer label the table "Available Balance" and "Avg. Monthly Spend"; they need firefly to serve the new copy (mrs_content !521), so pulse bumps only after that (WEC-2273)
8
13
 
9
14
  ## [9.7.149] - 11-13-2026
10
15
 
@@ -361,12 +361,6 @@ export interface InstanceSlot {
361
361
  icon_name?: string;
362
362
  /** Category guid used to render the deposit-card logo fallback. */
363
363
  category_guid?: string;
364
- /** Projected payoff date in ISO form (e.g. `2027-03-01`); the block formats it as month + year. */
365
- payoff_date?: string;
366
- /** Monthly payment toward the debt (unformatted); the block formats it as currency. */
367
- monthly_payment?: number;
368
- /** Annual interest rate as a percentage (e.g. `19.99`); the block formats it as a percent. */
369
- interest_rate?: number;
370
364
  start_date?: string;
371
365
  no_spend_days?: string[];
372
366
  /** First day of the month a monthly summary covers, in ISO form (e.g. `2026-09-01`). */
@@ -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/**\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 or a `data_series` (the months a history drawer charts), omitted when the insight has\n * none. Never carries copy or user actions (memo, tags, hide, flag come from the transaction store).\n * Values come from the server, so a reader still checks each value's runtime shape.\n */\nexport type DrilldownData = Record<string, string | number | boolean | null | string[] | DataSeries>\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 // Debts block: `amount` is the current balance; the shared account/institution fields above.\n /** Projected payoff date in ISO form (e.g. `2027-03-01`); the block formats it as month + year. */\n payoff_date?: string\n /** Monthly payment toward the debt (unformatted); the block formats it as currency. */\n monthly_payment?: number\n /** Annual interest rate as a percentage (e.g. `19.99`); the block formats it as a percent. */\n interest_rate?: number\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":"AAgVA,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/**\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 or a `data_series` (the months a history drawer charts), omitted when the insight has\n * none. Never carries copy or user actions (memo, tags, hide, flag come from the transaction store).\n * Values come from the server, so a reader still checks each value's runtime shape.\n */\nexport type DrilldownData = Record<string, string | number | boolean | null | string[] | DataSeries>\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":"AAgVA,IAAa,IAAA,CACX,GACA,MACkB,IAAO,CAAA"}
@@ -375,14 +375,14 @@ export interface EmergencySavingsCopy {
375
375
  step_two: string;
376
376
  final_step: string;
377
377
  }
378
- /** Labels for the Debts component block; the values come pre-formatted off `instance_slot`. */
378
+ /** Labels for the Debts component block (Debt Payment Reminder). Optional until the service ships them. */
379
379
  export interface DebtsBlockCopy {
380
- balance_label: string;
381
- payoff_date_label: string;
382
- monthly_payment_label: string;
383
- interest_rate_label: string;
384
- /** Footer caption for the `debt_summary` total, e.g. "Total balance". Optional until the service ships it. */
385
- total_balance_label?: string;
380
+ /** Grey footer row caption for the account balance, e.g. "Current balance". */
381
+ balance_label?: string;
382
+ /** Due-date row caption, e.g. "Payment due on". */
383
+ payment_due_label?: string;
384
+ /** Minimum payment row caption, e.g. "Minimum payment"; drawn only when the beat sends one. */
385
+ minimum_payment_label?: string;
386
386
  }
387
387
  /** Labels for the Goals component block. */
388
388
  export interface GoalsBlockCopy {
@@ -1,28 +1,9 @@
1
1
  import { InsightsPayload } from '../../../../core';
2
- export { PAYOFF_STYLE } from './layout';
3
2
  interface DebtsBlockProps {
4
3
  payload: InsightsPayload;
5
4
  beatGuid?: string;
6
5
  }
7
- /**
8
- * Debts component block — the content card for the Debt Payoff Strategies beat.
9
- * `instance_slot.variant` picks the card from `./layout.ts` through `resolveVariantConfig`, as
10
- * `AccountBlock` does:
11
- *
12
- * - `projected_payoff` — one account on the `DebtPayoffCard`. Its facts arrive flat on
13
- * `instance_slot` (the shape it shipped with): the balance (`amount`), `payoff_date`,
14
- * `monthly_payment`, `interest_rate`, plus the shared account/institution fields.
15
- * - `debt_summary` — the beat's several debt accounts on a `TransactionListCard`, read from
16
- * `instance_slot.data`: one row per account from `series` (pre-localized `logo`, `primary_text`
17
- * name, `secondary_text` rate, `amount` balance, in the order sent), an optional `header_text`,
18
- * and the total owed (`amount`) as the footer. With no rows there is nothing to summarize and the
19
- * block renders nothing.
20
- *
21
- * Captions and payoff row labels come from `insights_feed.debts_block` copy, which ships
22
- * separately. Each variant needs only its own keys: until they have shipped, the card shows what
23
- * needs no copy (the account row, the summary rows) but never an unlabelled figure, and warns once
24
- * per mount so the rollout gap is traceable. A row with no value (or an unparseable date) is
25
- * dropped rather than rendered blank.
26
- */
27
- declare const DebtsBlock: ({ payload }: DebtsBlockProps) => import("react/jsx-runtime").JSX.Element;
28
- export default DebtsBlock;
6
+ declare const _default: (({ payload }: DebtsBlockProps) => import("react/jsx-runtime").JSX.Element | null) & {
7
+ displayName: string;
8
+ };
9
+ export default _default;
@@ -1,77 +1,100 @@
1
- import { DATE_FORMATS_INTL as F, formatDate as N } from "../../../../core/constants/DateFormats.es.js";
2
- import { useGlobalCopyStore as k } from "../../../../common/context/hooks.es.js";
3
- import { slot as u } from "../../../../core/types/Insights.es.js";
4
- import { CURRENCY_FORMAT as i, formatCurrency as s, formatPercentage as P } from "../../../../core/utils/NumberFormatting.es.js";
5
- import { resolveVariantConfig as Y } from "../../resolveVariantConfig.es.js";
6
- import B from "../../../components/LogoFromGuid.es.js";
7
- import { DepositLogo as G } from "../../../components/ComponentBlocks/DepositLogo.es.js";
8
- import j from "../../../components/DebtPayoffCard.es.js";
9
- import I from "../../../components/TransactionListCard.es.js";
10
- import { parseDueDate as M } from "../RepeatingTransactionBlock/weekStrip.es.js";
11
- import { DEBTS_LAYOUT as H, debtsBlockVariant as U } from "./layout.es.js";
12
- import V from "react";
13
- import { jsx as l } from "react/jsx-runtime";
14
- import { useTheme as z } from "@mui/material/styles";
15
- var W = 32, Z = /* @__PURE__ */ new Set([
16
- "credit card",
17
- "credit_card",
18
- "creditcard"
19
- ]), $ = (t) => Z.has((t ?? "").trim().toLowerCase()) ? "credit_card" : "account_balance", q = (t) => typeof t == "object" && t !== null && typeof t.primary_text == "string", J = (t) => !!t?.balance_label && !!t.payoff_date_label && !!t.monthly_payment_label && !!t.interest_rate_label, ft = ({ payload: t }) => {
20
- const C = z(), o = k().insights_feed?.debts_block, { instance_slot: _ } = t, { data: m, variant: R } = _, p = Y(H, R, U.ProjectedPayoff, "DebtsBlock"), b = p.card === "summary", e = J(o) ? o : void 0, c = o?.total_balance_label, d = b ? !!c : !!e;
21
- if (V.useEffect(() => {
22
- d || console.warn(`debts_block: ${o ? "copy incomplete" : "copy namespace missing"}; rendering without its labelled figures`);
23
- }, [o, d]), b) {
24
- const r = u(m, "series"), x = (Array.isArray(r) ? r : []).filter(q).map((a) => ({
25
- amount: typeof a.amount == "number" ? s(a.amount, i.cents) : "",
26
- leading: /* @__PURE__ */ l(B, {
27
- logo: a.logo,
28
- size: W
29
- }),
30
- subtitle: typeof a.secondary_text == "string" ? a.secondary_text : "",
31
- title: a.primary_text
32
- })), L = u(m, "header_text"), f = u(m, "amount");
33
- return /* @__PURE__ */ l(I, {
34
- background: C.palette.primary.lighter,
35
- footer: c && typeof f == "number" && Number.isFinite(f) ? {
36
- amount: s(f, i.cents),
37
- label: c
38
- } : void 0,
39
- header: typeof L == "string" ? L : void 0,
40
- rows: x
41
- });
42
- }
43
- const { account_name: A, account_type: y, amount: g, institution_guid: E, institution_name: O, interest_rate: h, monthly_payment: v, payoff_date: T, status_text: S } = _, n = [];
44
- if (e) {
45
- const r = T ? M(T) : null;
46
- r && n.push({
47
- label: e.payoff_date_label,
48
- value: N(r, F.MONTH_SHORT_YEAR)
49
- }), v != null && n.push({
50
- label: e.monthly_payment_label,
51
- value: s(v, i.cents)
52
- }), h != null && n.push({
53
- label: e.interest_rate_label,
54
- value: P(h / 100)
55
- });
56
- }
57
- const D = e !== void 0 && g != null;
58
- return /* @__PURE__ */ l(j, {
59
- ...p.style,
60
- balance: D ? s(g, i.cents) : void 0,
61
- balanceLabel: D ? e.balance_label : void 0,
62
- logo: /* @__PURE__ */ l(G, {
63
- iconName: $(y),
64
- institutionGuid: E ?? "",
65
- institutionName: O ?? ""
66
- }),
67
- name: A,
68
- stats: n,
69
- statusLabel: S,
70
- subtitle: y
1
+ import { DATE_FORMATS_INTL as R, formatDate as k } from "../../../../core/constants/DateFormats.es.js";
2
+ import { useGlobalCopyStore as w } from "../../../../common/context/hooks.es.js";
3
+ import { slot as s } from "../../../../core/types/Insights.es.js";
4
+ import { CURRENCY_FORMAT as b, formatCurrency as f } from "../../../../core/utils/NumberFormatting.es.js";
5
+ import { asLogoRef as A, asNonEmptyText as C, asNumber as _, asText as L } from "../../slotReaders.es.js";
6
+ import F from "../../../components/LogoFromGuid.es.js";
7
+ import O from "../../../components/InsightTransactionRow.es.js";
8
+ import { parseDueDate as j } from "../RepeatingTransactionBlock/weekStrip.es.js";
9
+ import { useEffect as E } from "react";
10
+ import { observer as I } from "mobx-react-lite";
11
+ import y from "@mui/material/Stack";
12
+ import { Text as D } from "@mxenabled/mxui";
13
+ import { Fragment as N, jsx as a, jsxs as v } from "react/jsx-runtime";
14
+ import S from "@mui/material/Divider";
15
+ var B = 32, G = (r) => {
16
+ if (Array.isArray(r))
17
+ for (const o of r) {
18
+ if (typeof o != "object" || o === null) continue;
19
+ const { amount: t, logo: l, primary_text: i, secondary_text: n } = o, e = C(i);
20
+ if (e) return {
21
+ name: e,
22
+ account: L(n),
23
+ amount: _(t),
24
+ logo: A(l)
25
+ };
26
+ }
27
+ }, M = ({ grey: r, label: o, value: t }) => /* @__PURE__ */ v(N, { children: [/* @__PURE__ */ a(S, {}), /* @__PURE__ */ v(y, {
28
+ sx: {
29
+ alignItems: "center",
30
+ bgcolor: r ? "background.default" : "background.paper",
31
+ flexDirection: "row",
32
+ justifyContent: "space-between",
33
+ minHeight: 40,
34
+ px: 16,
35
+ py: 2
36
+ },
37
+ children: [/* @__PURE__ */ a(D, {
38
+ color: "text.primary",
39
+ variant: "subtitle2",
40
+ children: o
41
+ }), /* @__PURE__ */ a(D, {
42
+ bold: !0,
43
+ color: "text.primary",
44
+ variant: "caption",
45
+ children: t
46
+ })]
47
+ })] }), H = ({ payload: r }) => {
48
+ const o = w().insights_feed?.debts_block, t = o?.payment_due_label, l = o?.minimum_payment_label, i = o?.balance_label, n = r.instance_slot?.data, e = G(s(n, "series")), g = L(s(n, "due_date")), c = g ? j(g) : null, u = _(s(n, "minimum_payment")), d = _(s(n, "amount")), x = e !== void 0, p = [
49
+ c && !t && "payment_due_label",
50
+ u !== void 0 && !l && "minimum_payment_label",
51
+ d !== void 0 && !i && "balance_label"
52
+ ].filter(Boolean).join(", ");
53
+ if (E(() => {
54
+ x && p && console.warn(`debts_block: copy missing ${p}; hiding those lines`);
55
+ }, [x, p]), !e) return null;
56
+ const h = [
57
+ t && c ? {
58
+ label: t,
59
+ value: k(c, R.FULL_MONTH_DAY)
60
+ } : null,
61
+ l && u !== void 0 ? {
62
+ label: l,
63
+ value: f(u, b.cents)
64
+ } : null,
65
+ i && d !== void 0 ? {
66
+ label: i,
67
+ value: f(d, b.cents)
68
+ } : null
69
+ ].filter((m) => m !== null);
70
+ return /* @__PURE__ */ a(y, {
71
+ sx: { px: 16 },
72
+ children: /* @__PURE__ */ v(y, {
73
+ sx: {
74
+ border: "1px solid",
75
+ borderColor: "divider",
76
+ borderRadius: "8px",
77
+ overflow: "hidden",
78
+ width: "100%"
79
+ },
80
+ children: [/* @__PURE__ */ a(O, {
81
+ amount: e.amount === void 0 ? "" : f(e.amount, b.cents),
82
+ leading: /* @__PURE__ */ a(F, {
83
+ logo: e.logo,
84
+ size: B
85
+ }),
86
+ subtitle: e.account ?? "",
87
+ title: e.name
88
+ }), h.map((m, T) => /* @__PURE__ */ a(M, {
89
+ grey: T === h.length - 1,
90
+ label: m.label,
91
+ value: m.value
92
+ }, m.label))]
93
+ })
71
94
  });
72
- };
95
+ }, oe = I(H);
73
96
  export {
74
- ft as default
97
+ oe as default
75
98
  };
76
99
 
77
100
  //# sourceMappingURL=DebtsBlock.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DebtsBlock.es.js","names":[],"sources":["../../../../../src/insights-v2/blocks/ComponentBlocks/DebtsBlock/DebtsBlock.tsx"],"sourcesContent":["import React from 'react'\n\nimport { useTheme } from '@mui/material/styles'\n\nimport { useGlobalCopyStore } from '../../../../common'\nimport { slot, type InsightsPayload, type InstanceSlotRow } from '../../../../core'\nimport { DATE_FORMATS_INTL, formatDate } from '../../../../core/constants'\nimport type { DebtsBlockCopy } from '../../../../core/types/localization/InsightsFeedCopy'\nimport {\n CURRENCY_FORMAT,\n formatCurrency,\n formatPercentage,\n} from '../../../../core/utils/NumberFormatting'\n\nimport DepositLogo from '../../../components/ComponentBlocks/DepositLogo'\nimport DebtPayoffCard, { type DebtPayoffStat } from '../../../components/DebtPayoffCard'\nimport LogoFromGuid from '../../../components/LogoFromGuid'\nimport TransactionListCard from '../../../components/TransactionListCard'\nimport { resolveVariantConfig } from '../../resolveVariantConfig'\nimport { parseDueDate } from '../RepeatingTransactionBlock/weekStrip'\n\nimport { DEBTS_LAYOUT, debtsBlockVariant } from './layout'\n\n// The card story reads the block's look from here.\nexport { PAYOFF_STYLE } from './layout'\n\ninterface DebtsBlockProps {\n payload: InsightsPayload\n beatGuid?: string\n}\n\nconst ROW_LOGO_SIZE = 32\n\n/** Account types drawn with the card glyph when there is no institution logo; the rest get the bank. */\nconst CREDIT_CARD_TYPES = new Set(['credit card', 'credit_card', 'creditcard'])\n\nconst iconFor = (accountType?: string) =>\n CREDIT_CARD_TYPES.has((accountType ?? '').trim().toLowerCase())\n ? 'credit_card'\n : 'account_balance'\n\n/** A summary row ditto can draw: an object with a name. Anything else in `series` is skipped. */\nconst isNamedRow = (row: unknown): row is InstanceSlotRow & { primary_text: string } =>\n typeof row === 'object' &&\n row !== null &&\n typeof (row as InstanceSlotRow).primary_text === 'string'\n\n/** Every label the payoff card renders; a partial namespace counts as missing. */\nconst hasAllLabels = (copy?: DebtsBlockCopy): copy is DebtsBlockCopy =>\n !!copy?.balance_label &&\n !!copy.payoff_date_label &&\n !!copy.monthly_payment_label &&\n !!copy.interest_rate_label\n\n/**\n * Debts component block — the content card for the Debt Payoff Strategies beat.\n * `instance_slot.variant` picks the card from `./layout.ts` through `resolveVariantConfig`, as\n * `AccountBlock` does:\n *\n * - `projected_payoff` — one account on the `DebtPayoffCard`. Its facts arrive flat on\n * `instance_slot` (the shape it shipped with): the balance (`amount`), `payoff_date`,\n * `monthly_payment`, `interest_rate`, plus the shared account/institution fields.\n * - `debt_summary` — the beat's several debt accounts on a `TransactionListCard`, read from\n * `instance_slot.data`: one row per account from `series` (pre-localized `logo`, `primary_text`\n * name, `secondary_text` rate, `amount` balance, in the order sent), an optional `header_text`,\n * and the total owed (`amount`) as the footer. With no rows there is nothing to summarize and the\n * block renders nothing.\n *\n * Captions and payoff row labels come from `insights_feed.debts_block` copy, which ships\n * separately. Each variant needs only its own keys: until they have shipped, the card shows what\n * needs no copy (the account row, the summary rows) but never an unlabelled figure, and warns once\n * per mount so the rollout gap is traceable. A row with no value (or an unparseable date) is\n * dropped rather than rendered blank.\n */\nconst DebtsBlock = ({ payload }: DebtsBlockProps) => {\n const theme = useTheme()\n const copy = useGlobalCopyStore().insights_feed?.debts_block\n const { instance_slot } = payload\n const { data, variant } = instance_slot\n\n const layout = resolveVariantConfig(\n DEBTS_LAYOUT,\n variant,\n debtsBlockVariant.ProjectedPayoff,\n 'DebtsBlock',\n )\n const isSummary = layout.card === 'summary'\n\n const labels = hasAllLabels(copy) ? copy : undefined\n const totalLabel = copy?.total_balance_label\n const hasCopy = isSummary ? !!totalLabel : !!labels\n\n React.useEffect(() => {\n if (hasCopy) return\n console.warn(\n `debts_block: ${copy ? 'copy incomplete' : 'copy namespace missing'}; rendering without its labelled figures`,\n )\n }, [copy, hasCopy])\n\n if (isSummary) {\n // `slot()` is an unchecked cast over backend data, so every value is narrowed before use.\n const series = slot<unknown[]>(data, 'series')\n const rows = (Array.isArray(series) ? series : []).filter(isNamedRow).map((row) => ({\n amount:\n typeof row.amount === 'number' ? formatCurrency(row.amount, CURRENCY_FORMAT.cents) : '',\n leading: <LogoFromGuid logo={row.logo} size={ROW_LOGO_SIZE} />,\n subtitle: typeof row.secondary_text === 'string' ? row.secondary_text : '',\n title: row.primary_text,\n }))\n const header = slot<unknown>(data, 'header_text')\n const total = slot<unknown>(data, 'amount')\n\n return (\n <TransactionListCard\n background={theme.palette.primary.lighter}\n footer={\n totalLabel && typeof total === 'number' && Number.isFinite(total)\n ? { amount: formatCurrency(total, CURRENCY_FORMAT.cents), label: totalLabel }\n : undefined\n }\n header={typeof header === 'string' ? header : undefined}\n rows={rows}\n />\n )\n }\n\n const {\n account_name,\n account_type,\n amount,\n institution_guid,\n institution_name,\n interest_rate,\n monthly_payment,\n payoff_date,\n status_text,\n } = instance_slot\n\n const stats: DebtPayoffStat[] = []\n if (labels) {\n const payoffDate = payoff_date ? parseDueDate(payoff_date) : null\n if (payoffDate) {\n stats.push({\n label: labels.payoff_date_label,\n value: formatDate(payoffDate, DATE_FORMATS_INTL.MONTH_SHORT_YEAR),\n })\n }\n if (monthly_payment != null) {\n stats.push({\n label: labels.monthly_payment_label,\n value: formatCurrency(monthly_payment, CURRENCY_FORMAT.cents),\n })\n }\n if (interest_rate != null) {\n // `interest_rate` arrives as a percentage (19.99); Intl's percent style expects a fraction.\n stats.push({\n label: labels.interest_rate_label,\n value: formatPercentage(interest_rate / 100),\n })\n }\n }\n\n const hasBalance = labels !== undefined && amount != null\n\n return (\n <DebtPayoffCard\n {...layout.style}\n balance={hasBalance ? formatCurrency(amount, CURRENCY_FORMAT.cents) : undefined}\n balanceLabel={hasBalance ? labels.balance_label : undefined}\n logo={\n <DepositLogo\n iconName={iconFor(account_type)}\n institutionGuid={institution_guid ?? ''}\n institutionName={institution_name ?? ''}\n />\n }\n name={account_name}\n stats={stats}\n statusLabel={status_text}\n subtitle={account_type}\n />\n )\n}\n\nexport default DebtsBlock\n"],"mappings":"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"}
1
+ {"version":3,"file":"DebtsBlock.es.js","names":[],"sources":["../../../../../src/insights-v2/blocks/ComponentBlocks/DebtsBlock/DebtsBlock.tsx"],"sourcesContent":["import { useEffect } from 'react'\nimport { observer } from 'mobx-react-lite'\n\nimport Divider from '@mui/material/Divider'\nimport Stack from '@mui/material/Stack'\n\nimport { Text } from '@mxenabled/mxui'\n\nimport { useGlobalCopyStore } from '../../../../common'\nimport { slot, type InsightsPayload, type LogoRef } from '../../../../core'\nimport { DATE_FORMATS_INTL, formatDate } from '../../../../core/constants'\nimport { CURRENCY_FORMAT, formatCurrency } from '../../../../core/utils/NumberFormatting'\n\nimport InsightTransactionRow from '../../../components/InsightTransactionRow'\nimport LogoFromGuid from '../../../components/LogoFromGuid'\nimport { asLogoRef, asNonEmptyText, asNumber, asText } from '../../slotReaders'\nimport { parseDueDate } from '../RepeatingTransactionBlock/weekStrip'\n\ninterface DebtsBlockProps {\n payload: InsightsPayload\n beatGuid?: string\n}\n\nconst ROW_LOGO_SIZE = 32\n\ninterface PaymentRow {\n name: string\n account?: string\n amount?: number\n logo?: LogoRef\n}\n\n/** The first `series` row with a name, read through the shared slot readers; else undefined. */\nconst readPayment = (series: unknown): PaymentRow | undefined => {\n if (!Array.isArray(series)) return undefined\n for (const row of series) {\n if (typeof row !== 'object' || row === null) continue\n const { amount, logo, primary_text, secondary_text } = row as Record<string, unknown>\n const name = asNonEmptyText(primary_text)\n if (name) {\n return {\n name,\n account: asText(secondary_text),\n amount: asNumber(amount),\n logo: asLogoRef(logo),\n }\n }\n }\n return undefined\n}\n\n/** A label / value line under the payment row; the card's last line sits on the grey surface. */\nconst SummaryLine = ({ grey, label, value }: { grey?: boolean; label: string; value: string }) => (\n <>\n <Divider />\n <Stack\n sx={{\n alignItems: 'center',\n bgcolor: grey ? 'background.default' : 'background.paper',\n flexDirection: 'row',\n justifyContent: 'space-between',\n minHeight: 40,\n px: 16,\n py: 2,\n }}\n >\n <Text color=\"text.primary\" variant=\"subtitle2\">\n {label}\n </Text>\n <Text bold={true} color=\"text.primary\" variant=\"caption\">\n {value}\n </Text>\n </Stack>\n </>\n)\n\n/**\n * Debts component block: the Debt Payment Reminder card (Figma 1943:219556). One bordered card:\n *\n * - the upcoming payment, from `data.series[0]`: `logo`, `primary_text` (payment name),\n * `secondary_text` (account name) and `amount` (the payment);\n * - \"Payment due on\" with `data.due_date` (ISO day, shown as \"September 15\");\n * - \"Minimum payment\" with `data.minimum_payment`, only when ditto sends one (Figma \"Has Minimum\n * Payment\"; \"No Minimum Payment\" omits the line);\n * - the account balance, `data.amount`.\n *\n * The last line drawn sits on the grey surface: the balance on full, the due date on mini (whose\n * Figma draws the due date alone).\n *\n * The captions come from `insights_feed.debts_block` (`payment_due_label`, `minimum_payment_label`,\n * `balance_label`). A line whose caption has not shipped, or whose value is missing or invalid, is\n * left out rather than drawn unlabelled or blank; a missing caption for a line that has a value\n * also warns once, naming the key. With no payment row there is no card.\n */\nconst DebtsBlock = ({ payload }: DebtsBlockProps) => {\n const copy = useGlobalCopyStore().insights_feed?.debts_block\n const dueLabel = copy?.payment_due_label\n const minimumLabel = copy?.minimum_payment_label\n const balanceLabel = copy?.balance_label\n\n // Backend data is untrusted: every value goes through the shared slot readers before use.\n const data = payload.instance_slot?.data\n const payment = readPayment(slot(data, 'series'))\n const dueDateIso = asText(slot(data, 'due_date'))\n const dueDate = dueDateIso ? parseDueDate(dueDateIso) : null\n const minimum = asNumber(slot(data, 'minimum_payment'))\n const balance = asNumber(slot(data, 'amount'))\n const hasPayment = payment !== undefined\n\n // Only the captions for lines this card has a value to draw (mini sends no balance).\n const missingKeys = [\n dueDate && !dueLabel && 'payment_due_label',\n minimum !== undefined && !minimumLabel && 'minimum_payment_label',\n balance !== undefined && !balanceLabel && 'balance_label',\n ]\n .filter(Boolean)\n .join(', ')\n\n useEffect(() => {\n if (hasPayment && missingKeys) {\n console.warn(`debts_block: copy missing ${missingKeys}; hiding those lines`)\n }\n }, [hasPayment, missingKeys])\n\n if (!payment) return null\n\n // Figma's order; the last line drawn sits on the grey surface.\n const lines = [\n dueLabel && dueDate\n ? { label: dueLabel, value: formatDate(dueDate, DATE_FORMATS_INTL.FULL_MONTH_DAY) }\n : null,\n minimumLabel && minimum !== undefined\n ? { label: minimumLabel, value: formatCurrency(minimum, CURRENCY_FORMAT.cents) }\n : null,\n balanceLabel && balance !== undefined\n ? { label: balanceLabel, value: formatCurrency(balance, CURRENCY_FORMAT.cents) }\n : null,\n ].filter((line): line is { label: string; value: string } => line !== null)\n\n return (\n <Stack sx={{ px: 16 }}>\n <Stack\n sx={{\n border: '1px solid',\n borderColor: 'divider',\n borderRadius: '8px',\n overflow: 'hidden',\n width: '100%',\n }}\n >\n <InsightTransactionRow\n amount={\n payment.amount === undefined\n ? ''\n : formatCurrency(payment.amount, CURRENCY_FORMAT.cents)\n }\n leading={<LogoFromGuid logo={payment.logo} size={ROW_LOGO_SIZE} />}\n subtitle={payment.account ?? ''}\n title={payment.name}\n />\n {lines.map((line, index) => (\n <SummaryLine\n grey={index === lines.length - 1}\n key={line.label}\n label={line.label}\n value={line.value}\n />\n ))}\n </Stack>\n </Stack>\n )\n}\n\n// observer: the captions come from the copy store, which can load or change after the first render.\nexport default observer(DebtsBlock)\n"],"mappings":"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"}
@@ -4,9 +4,9 @@ import { QUIZ_CONTEXT as c, QUIZ_VARIANTS as O, isTopMerchant as K, merchantKey
4
4
  import { actionBlocksKey as F } from "../../../mappings/actionBlocksKey.es.js";
5
5
  import Z from "../../../components/LogoFromGuid.es.js";
6
6
  import { ConfettiOverlay as N } from "../../../components/shared/ConfettiOverlay.es.js";
7
- import { SMALL_CARD_SHADOW as U } from "../../../components/shared/elevation.es.js";
8
- import V from "../../../components/LogoTile.es.js";
9
- import { LinedCardZeroState as j } from "../../../../insights/components/shared/ZeroState/LinedCardZeroState.es.js";
7
+ import U from "../../../components/LogoTile.es.js";
8
+ import { LinedCardZeroState as V } from "../../../../insights/components/shared/ZeroState/LinedCardZeroState.es.js";
9
+ import { SMALL_CARD_SHADOW as j } from "../../../components/shared/elevation.es.js";
10
10
  import { useEffect as E, useState as H } from "react";
11
11
  import { observer as A } from "mobx-react-lite";
12
12
  import a from "@mui/material/Stack";
@@ -33,7 +33,7 @@ var X = 3e3, z = 32, T = {
33
33
  ...q(o, e),
34
34
  alt: ""
35
35
  };
36
- return /* @__PURE__ */ r(V, {
36
+ return /* @__PURE__ */ r(U, {
37
37
  borderColor: null,
38
38
  borderRadius: 4,
39
39
  size: z,
@@ -53,7 +53,7 @@ var X = 3e3, z = 32, T = {
53
53
  backdropFilter: o ? void 0 : "blur(6px)",
54
54
  bgcolor: (t) => o ? "success.main" : _(t.palette.common.black, 0.5),
55
55
  borderRadius: "8px",
56
- boxShadow: o ? U : void 0,
56
+ boxShadow: o ? j : void 0,
57
57
  color: o ? "success.contrastText" : "common.white",
58
58
  gap: 18,
59
59
  inset: 16,
@@ -130,7 +130,7 @@ var X = 3e3, z = 32, T = {
130
130
  s
131
131
  ]), E(() => {
132
132
  t || console.warn("quiz_block: copy namespace missing; rendering without its labels");
133
- }, [t]), !m.length) return /* @__PURE__ */ r(j, {});
133
+ }, [t]), !m.length) return /* @__PURE__ */ r(V, {});
134
134
  if (k) {
135
135
  const n = (i) => f({
136
136
  guid: o,
@@ -10,8 +10,8 @@ import K, { isKnownIcon as J } from "../../../components/LogoMark.es.js";
10
10
  import { logoFromRef as Q } from "../../../components/shared/EntityLogo.es.js";
11
11
  import X from "../../../components/LogoFromGuid.es.js";
12
12
  import { statusIconName as oo, statusIconPalette as S } from "../../../components/statusIcon.es.js";
13
- import ro from "../../../components/TransactionListCard.es.js";
14
- import to from "../../../components/StatusMessageCard.es.js";
13
+ import ro from "../../../components/StatusMessageCard.es.js";
14
+ import to from "../../../components/TransactionListCard.es.js";
15
15
  import { subscriptionFrequency as eo } from "../../../components/SubscriptionStatus/subscriptionFrequency.es.js";
16
16
  import { getLayoutConfig as no, transactionBlockVariant as io } from "./layout.es.js";
17
17
  import { observer as ao } from "mobx-react-lite";
@@ -83,7 +83,7 @@ var c = 32, mo = Math.round(c * 0.625), uo = 24, T = 32, lo = 20, go = ({ icon:
83
83
  }) : void 0, y = !!l && _?.user_response === V.CONFIRMED;
84
84
  if (M) {
85
85
  const r = a(n, "message");
86
- return typeof r != "string" || !r.trim() ? (console.warn("[TransactionBlock] status_message has no message — rendering nothing."), null) : /* @__PURE__ */ t(to, {
86
+ return typeof r != "string" || !r.trim() ? (console.warn("[TransactionBlock] status_message has no message — rendering nothing."), null) : /* @__PURE__ */ t(ro, {
87
87
  icon: /* @__PURE__ */ t(g, {
88
88
  "aria-hidden": "true",
89
89
  sx: { display: "flex" },
@@ -105,7 +105,7 @@ var c = 32, mo = Math.round(c * 0.625), uo = 24, T = 32, lo = 20, go = ({ icon:
105
105
  label: b,
106
106
  amount: C(Z, x.cents)
107
107
  } : void 0, j = p ? eo(o, _) : void 0, q = l ? /* @__PURE__ */ t(go, { icon: I(a(n, y ? "reviewed_icon" : "icon")) }) : void 0, v = (r) => !!O && typeof r == "number" && r > 0;
108
- return /* @__PURE__ */ t(ro, {
108
+ return /* @__PURE__ */ t(to, {
109
109
  background: y && f ? f : u,
110
110
  badge: q,
111
111
  elevated: A,
@@ -2,7 +2,6 @@ export * from './blocks';
2
2
  export { default as AccountHeroCard } from './components/AccountHeroCard';
3
3
  export { default as ConnectionDetailDrillDown, type ConnectionDetailContent, } from './components/ConnectionDetailDrillDown';
4
4
  export { default as DirectDepositCard, type DirectDepositCardStyleProps, type DirectDepositPillConfig, } from './components/DirectDepositCard';
5
- export { default as DebtPayoffCard, type DebtPayoffCardStyleProps, type DebtPayoffPillConfig, type DebtPayoffStat, } from './components/DebtPayoffCard';
6
5
  export { default as GoalProgressCard, type GoalProgressCardStyleProps, type GoalProgressPillConfig, type GoalProgressRow, } from './components/GoalProgressCard';
7
6
  export { default as AmountPill } from './components/AmountPill';
8
7
  export { default as AmountBreakdownCard, type AmountBreakdownCardProps, type AmountBreakdownRow, type AmountBreakdownTotal, } from './components/AmountBreakdownCard';
@@ -1,10 +1,10 @@
1
1
  import r from "./components/StatusPill.es.js";
2
2
  import { resolveInsightRender as m } from "./resolveInsightRender.es.js";
3
3
  import { useBeatActions as a } from "./beatActions.es.js";
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";
4
+ import { BAR_ARIA_LABEL as e, BAR_CHART_VARIANTS as f, barChartVariant as c, buildChartData as n, 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 g, useCtaHandler as k } 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";
@@ -19,129 +19,127 @@ import W from "./blocks/ComponentBlocks/AccountBlock/AccountBlock.es.js";
19
19
  import Q 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
- import Y from "./components/DebtPayoffCard.es.js";
23
- import $ from "./components/InsightTransactionRow.es.js";
24
- import ro from "./components/TransactionListCard.es.js";
25
- import mo from "./blocks/ComponentBlocks/DebtsBlock/DebtsBlock.es.js";
26
- import ao from "./blocks/ComponentBlocks/GasPurchaseBlock/GasPurchaseBlock.es.js";
27
- import eo from "./components/GoalProgressCard.es.js";
28
- import no from "./blocks/ComponentBlocks/GoalsBlock/GoalsBlock.es.js";
29
- import lo from "./components/LogoTile.es.js";
30
- import Bo from "./components/LogoClusterCard.es.js";
31
- import Co from "./components/AmountPill.es.js";
32
- import ko from "./components/MerchantHighlightCard.es.js";
33
- import Do from "./components/P2PLogoStack.es.js";
34
- import Ao from "./blocks/ComponentBlocks/MerchantBlock/MerchantBlock.es.js";
35
- import Io from "./blocks/ComponentBlocks/NoSpendDaysBlock/NoSpendDaysBlock.es.js";
36
- import To from "./blocks/ComponentBlocks/QuizBlock/QuizBlock.es.js";
37
- import yo from "./components/UpcomingBillCard.es.js";
38
- import Ro from "./blocks/ComponentBlocks/RepeatingTransactionBlock/RepeatingTransactionBlock.es.js";
39
- import Ho from "./components/SaveAnExtraCard.es.js";
40
- import Oo from "./blocks/ComponentBlocks/SaveExtraBlock/SaveExtraBlock.es.js";
41
- import Eo from "./components/SavingsOpportunityCard.es.js";
42
- import _o from "./blocks/ComponentBlocks/SavingsOpportunityBlock/SavingsOpportunityBlock.es.js";
43
- import xo from "./blocks/ComponentBlocks/SavingsSummaryBlock/SavingsSummaryBlock.es.js";
44
- import Uo from "./components/StatusMessageCard.es.js";
45
- import { transactionBlockVariant as zo } 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 "./components/DesignateEmergencySavingsCard.es.js";
53
- import { SVGImageBlock as pr } from "./blocks/ImageBlocks/SVGImageBlock/SVGImageBlock.es.js";
54
- import fr from "./components/shared/StatusSnackbar.es.js";
55
- import cr from "./components/FeedbackDialog.es.js";
56
- import sr from "./components/FeedbackModal.es.js";
57
- import Br from "./components/ConnectionDetailDrillDown.es.js";
58
- import Cr from "./components/SurveyModal.es.js";
22
+ import Y from "./components/InsightTransactionRow.es.js";
23
+ import $ from "./blocks/ComponentBlocks/DebtsBlock/DebtsBlock.es.js";
24
+ import ro from "./blocks/ComponentBlocks/GasPurchaseBlock/GasPurchaseBlock.es.js";
25
+ import mo from "./components/GoalProgressCard.es.js";
26
+ import ao from "./blocks/ComponentBlocks/GoalsBlock/GoalsBlock.es.js";
27
+ import eo from "./components/LogoTile.es.js";
28
+ import co from "./components/LogoClusterCard.es.js";
29
+ import lo from "./components/AmountPill.es.js";
30
+ import Bo from "./components/MerchantHighlightCard.es.js";
31
+ import ko from "./components/P2PLogoStack.es.js";
32
+ import Co from "./blocks/ComponentBlocks/MerchantBlock/MerchantBlock.es.js";
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 nr from "./components/FeedbackModal.es.js";
56
+ import sr from "./components/ConnectionDetailDrillDown.es.js";
57
+ import Br from "./components/SurveyModal.es.js";
59
58
  import kr from "./components/InsightErrorCard.es.js";
60
- import { ErrorCard as Dr } from "./components/ErrorCard.es.js";
61
- import Ar from "./components/AmountBreakdownCard.es.js";
62
- import Ir from "./components/BadgedTile.es.js";
63
- import { OverflowMenu as Tr } from "./components/OverflowMenu.es.js";
64
- import { InsightOptionsMenu as yr } from "./components/InsightOptionsMenu.es.js";
65
- import Rr from "./components/StatusBadge.es.js";
66
- import Hr from "./components/CompactInsightCard.es.js";
67
- import { FeedbackBar as Or } from "./components/FeedbackBar.es.js";
68
- import { DismissInsightDialog as Er } from "./components/DismissInsightDialog.es.js";
69
- import { HiddenConfirmationCard as _r } from "./components/HiddenConfirmationCard.es.js";
70
- import { LoadingCard as xr } from "./components/LoadingCard.es.js";
71
- import { ObsolesceBanner as Ur } from "./components/ObsolesceBanner.es.js";
72
- import zr from "./components/BaseLayout.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";
73
72
  export {
74
73
  W as AccountBlock,
75
74
  M as AccountHeroCard,
76
75
  q as AccountSwitchBlock,
77
- Ar as AmountBreakdownCard,
78
- Co as AmountPill,
76
+ Dr as AmountBreakdownCard,
77
+ lo as AmountPill,
79
78
  e as BAR_ARIA_LABEL,
80
79
  f as BAR_CHART_VARIANTS,
81
- Ir as BadgedTile,
80
+ Ar as BadgedTile,
82
81
  D as BarchartBlock,
83
- zr as BaseLayout,
82
+ Ur as BaseLayout,
84
83
  K as BudgetBlock,
85
- Hr as CompactInsightCard,
86
- Br as ConnectionDetailDrillDown,
87
- Y as DebtPayoffCard,
88
- mo as DebtsBlock,
89
- ir as DesignateEmergencySavingsCard,
84
+ Rr as CompactInsightCard,
85
+ sr as ConnectionDetailDrillDown,
86
+ $ as DebtsBlock,
87
+ tr as DesignateEmergencySavingsCard,
90
88
  N as DetailedAccountBlock,
91
89
  N as DirectDepositBlock,
92
90
  V as DirectDepositCard,
93
- Er as DismissInsightDialog,
91
+ Or as DismissInsightDialog,
94
92
  T as DonutChartBlock,
95
93
  A as DoubleBarChartBlock,
96
94
  y as DoubleProgressBarBlock,
97
- Dr as ErrorCard,
98
- Or as FeedbackBar,
99
- cr as FeedbackDialog,
100
- sr as FeedbackModal,
101
- ao as GasPurchaseBlock,
102
- eo as GoalProgressCard,
103
- no as GoalsBlock,
95
+ Cr as ErrorCard,
96
+ Hr as FeedbackBar,
97
+ fr as FeedbackDialog,
98
+ nr as FeedbackModal,
99
+ ro as GasPurchaseBlock,
100
+ mo as GoalProgressCard,
101
+ ao as GoalsBlock,
104
102
  d as HOST_ACTIONS,
105
- _r as HiddenConfirmationCard,
103
+ Er as HiddenConfirmationCard,
106
104
  kr as InsightErrorCard,
107
- yr as InsightOptionsMenu,
108
- $ as InsightTransactionRow,
109
- xr as LoadingCard,
110
- Bo as LogoClusterCard,
105
+ Tr as InsightOptionsMenu,
106
+ Y as InsightTransactionRow,
107
+ _r as LoadingCard,
108
+ co as LogoClusterCard,
111
109
  R as LogoFromGuid,
112
- lo as LogoTile,
113
- Ao as MerchantBlock,
114
- ko as MerchantHighlightCard,
115
- Io as NoSpendDaysBlock,
116
- Ur as ObsolesceBanner,
117
- Tr as OverflowMenu,
118
- Do as P2PLogoStack,
119
- To as QuizBlock,
120
- Ro as RepeatingTransactionBlock,
121
- pr as SVGImageBlock,
122
- Ho as SaveAnExtraCard,
123
- Oo as SaveExtraBlock,
124
- _o as SavingsOpportunityBlock,
125
- Eo as SavingsOpportunityCard,
126
- xo as SavingsSummaryBlock,
127
- Rr as StatusBadge,
128
- Uo as StatusMessageCard,
110
+ eo as LogoTile,
111
+ Co as MerchantBlock,
112
+ Bo as MerchantHighlightCard,
113
+ Do as NoSpendDaysBlock,
114
+ xr as ObsolesceBanner,
115
+ Ir as OverflowMenu,
116
+ ko 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,
129
127
  r as StatusPill,
130
- fr as StatusSnackbar,
128
+ pr as StatusSnackbar,
131
129
  I as StepChartBlock,
132
- Jo as SubscriptionHeroCard,
133
- Cr as SurveyModal,
134
- jo as TransactionBlock,
135
- ro as TransactionListCard,
130
+ jo as SubscriptionHeroCard,
131
+ Br as SurveyModal,
132
+ zo as TransactionBlock,
133
+ xo as TransactionListCard,
136
134
  Q as TransferLogoCard,
137
- Ro as UpcomingBillBlock,
138
- yo as UpcomingBillCard,
139
- Xo as UpcomingSubscriptionBlock,
140
- Zo as WeeklySmallPurchasesBlock,
141
- tr as WithdrawalBlock,
142
- or as WithdrawalCard,
143
- n as barChartVariant,
144
- c as buildChartData,
135
+ To as UpcomingBillBlock,
136
+ Io as UpcomingBillCard,
137
+ Jo as UpcomingSubscriptionBlock,
138
+ Xo as WeeklySmallPurchasesBlock,
139
+ or as WithdrawalBlock,
140
+ Zo as WithdrawalCard,
141
+ c as barChartVariant,
142
+ n as buildChartData,
145
143
  l as buildDataSeries,
146
144
  G as detailedAccountVariant,
147
145
  _ as directDepositVariant,
@@ -149,8 +147,8 @@ export {
149
147
  w as isLogoGuid,
150
148
  m as resolveInsightRender,
151
149
  u as runInDescriptionCta,
152
- zo as transactionBlockVariant,
150
+ Uo as transactionBlockVariant,
153
151
  a as useBeatActions,
154
152
  g as useBeatCtaActions,
155
- k as useCtaHandler
153
+ C as useCtaHandler
156
154
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "9.7.150",
3
+ "version": "9.7.151",
4
4
  "description": "Library containing experience widgets",
5
5
  "author": "MX",
6
6
  "license": "MIT",
@@ -1,17 +0,0 @@
1
- import { DebtPayoffCardStyleProps } from '../../../components/DebtPayoffCard';
2
- export declare const debtsBlockVariant: {
3
- /** Debt Payoff Strategies, one account: balance plus projected payoff / monthly payment / rate rows. */
4
- readonly ProjectedPayoff: "projected_payoff";
5
- /** Debt Payoff Strategies, several accounts: one row per debt (balance, rate) and the total owed. */
6
- readonly DebtSummary: "debt_summary";
7
- };
8
- export type DebtsBlockVariant = (typeof debtsBlockVariant)[keyof typeof debtsBlockVariant];
9
- export interface DebtsBlockLayoutConfig {
10
- /** Which card the variant draws: the single-account payoff card or the multi-account summary list. */
11
- card: 'payoff' | 'summary';
12
- /** Payoff card slot + pill tokens. */
13
- style?: DebtPayoffCardStyleProps;
14
- }
15
- /** `projected_payoff` look: primary-tinted slot and pill. The card story mirrors it from here. */
16
- export declare const PAYOFF_STYLE: DebtPayoffCardStyleProps;
17
- export declare const DEBTS_LAYOUT: Record<string, DebtsBlockLayoutConfig>;
@@ -1,24 +0,0 @@
1
- var r = {
2
- ProjectedPayoff: "projected_payoff",
3
- DebtSummary: "debt_summary"
4
- }, e = {
5
- bgcolor: "primary.lighter",
6
- pill: {
7
- bgcolor: "primary.lighter",
8
- labelColor: "text.primary"
9
- }
10
- }, a = {
11
- card: "payoff",
12
- style: e
13
- }, o = {
14
- [r.ProjectedPayoff]: a,
15
- [r.DebtSummary]: { card: "summary" },
16
- default: a
17
- };
18
- export {
19
- o as DEBTS_LAYOUT,
20
- e as PAYOFF_STYLE,
21
- r as debtsBlockVariant
22
- };
23
-
24
- //# sourceMappingURL=layout.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"layout.es.js","names":[],"sources":["../../../../../src/insights-v2/blocks/ComponentBlocks/DebtsBlock/layout.ts"],"sourcesContent":["import type { DebtPayoffCardStyleProps } from '../../../components/DebtPayoffCard'\n\nexport const debtsBlockVariant = {\n /** Debt Payoff Strategies, one account: balance plus projected payoff / monthly payment / rate rows. */\n ProjectedPayoff: 'projected_payoff',\n /** Debt Payoff Strategies, several accounts: one row per debt (balance, rate) and the total owed. */\n DebtSummary: 'debt_summary',\n} as const\n\nexport type DebtsBlockVariant = (typeof debtsBlockVariant)[keyof typeof debtsBlockVariant]\n\nexport interface DebtsBlockLayoutConfig {\n /** Which card the variant draws: the single-account payoff card or the multi-account summary list. */\n card: 'payoff' | 'summary'\n /** Payoff card slot + pill tokens. */\n style?: DebtPayoffCardStyleProps\n}\n\n/** `projected_payoff` look: primary-tinted slot and pill. The card story mirrors it from here. */\nexport const PAYOFF_STYLE: DebtPayoffCardStyleProps = {\n bgcolor: 'primary.lighter',\n pill: { bgcolor: 'primary.lighter', labelColor: 'text.primary' },\n}\n\nconst PROJECTED_PAYOFF: DebtsBlockLayoutConfig = { card: 'payoff', style: PAYOFF_STYLE }\n\nexport const DEBTS_LAYOUT: Record<string, DebtsBlockLayoutConfig> = {\n [debtsBlockVariant.ProjectedPayoff]: PROJECTED_PAYOFF,\n [debtsBlockVariant.DebtSummary]: { card: 'summary' },\n // Neutral fallback for an unknown variant: the payoff card. `resolveVariantConfig` warns first.\n default: PROJECTED_PAYOFF,\n}\n"],"mappings":"AAEA,IAAa,IAAoB;AAAA,EAE/B,iBAAiB;AAAA,EAEjB,aAAa;AACf,GAYa,IAAyC;AAAA,EACpD,SAAS;AAAA,EACT,MAAM;AAAA,IAAE,SAAS;AAAA,IAAmB,YAAY;AAAA,EAAe;AACjE,GAEM,IAA2C;AAAA,EAAE,MAAM;AAAA,EAAU,OAAO;AAAa,GAE1E,IAAuD;AAAA,EACjE,CAAA,EAAkB,eAAA,GAAkB;AAAA,EACpC,CAAA,EAAkB,WAAA,GAAc,EAAE,MAAM,UAAU;AAAA,EAEnD,SAAS;AACX"}
@@ -1,30 +0,0 @@
1
- import s from "../LogoMark.es.js";
2
- import i from "@mui/material/Stack";
3
- import { Icon as n } from "@mxenabled/mx-icons";
4
- import { jsx as o } from "react/jsx-runtime";
5
- var a = 48, m = ({ iconName: t }) => /* @__PURE__ */ o(i, {
6
- sx: {
7
- alignItems: "center",
8
- bgcolor: "success.main",
9
- height: "100%",
10
- justifyContent: "center",
11
- width: "100%"
12
- },
13
- children: /* @__PURE__ */ o(n, {
14
- name: t,
15
- size: 24,
16
- sx: { color: "success.contrastText" }
17
- })
18
- }), f = ({ iconName: t = "payments", institutionGuid: e, institutionName: r }) => e ? /* @__PURE__ */ o(s, {
19
- logo: {
20
- institution_guid: e,
21
- institution_name: r
22
- },
23
- size: a
24
- }) : /* @__PURE__ */ o(m, { iconName: t });
25
- export {
26
- f as DepositLogo,
27
- f as default
28
- };
29
-
30
- //# sourceMappingURL=DepositLogo.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DepositLogo.es.js","names":[],"sources":["../../../../src/insights-v2/components/ComponentBlocks/DepositLogo.tsx"],"sourcesContent":["import Stack from '@mui/material/Stack'\n\nimport { Icon } from '@mxenabled/mx-icons'\n\nimport LogoMark from '../LogoMark'\n\ninterface DepositLogoProps {\n /** mx-icons glyph for the generic tile when no institution guid is sent. */\n iconName?: string\n /** Renders the institution's logo when present. */\n institutionGuid?: string\n /** The institution's name, used as the logo's alt text. */\n institutionName?: string\n}\n\nconst SIZE = 48\n\n/** Themed tile standing in for the logo when no guid is sent; theme colors keep it right in dark mode. */\nconst DepositLogoTile = ({ iconName }: { iconName: string }) => (\n <Stack\n sx={{\n alignItems: 'center',\n bgcolor: 'success.main',\n height: '100%',\n justifyContent: 'center',\n width: '100%',\n }}\n >\n <Icon name={iconName} size={24} sx={{ color: 'success.contrastText' }} />\n </Stack>\n)\n\n/** Logo shown in a deposit callout: the institution's logo, or a themed generic tile without one. */\nexport const DepositLogo = ({\n iconName = 'payments',\n institutionGuid,\n institutionName,\n}: DepositLogoProps) =>\n institutionGuid ? (\n <LogoMark\n logo={{ institution_guid: institutionGuid, institution_name: institutionName }}\n size={SIZE}\n />\n ) : (\n <DepositLogoTile iconName={iconName} />\n )\n\nexport default DepositLogo\n"],"mappings":";;;;AAeA,IAAM,IAAO,IAGP,IAAA,CAAmB,EAAE,UAAA,EAAA,MACzB,gBAAA,EAAC,GAAD;AAAA,EACE,IAAI;AAAA,IACF,YAAY;AAAA,IACZ,SAAS;AAAA,IACT,QAAQ;AAAA,IACR,gBAAgB;AAAA,IAChB,OAAO;AAAA,EACT;AAAA,EAEA,UAAA,gBAAA,EAAC,GAAD;AAAA,IAAM,MAAM;AAAA,IAAU,MAAM;AAAA,IAAI,IAAI,EAAE,OAAO,uBAAuB;AAAA,EAAI,CAAA;AACnE,CAAA,GAII,IAAA,CAAe,EAC1B,UAAA,IAAW,YACX,iBAAA,GACA,iBAAA,EAAA,MAEA,IACE,gBAAA,EAAC,GAAD;AAAA,EACE,MAAM;AAAA,IAAE,kBAAkB;AAAA,IAAiB,kBAAkB;AAAA,EAAgB;AAAA,EAC7E,MAAM;AACP,CAAA,IAED,gBAAA,EAAC,GAAD,EAA2B,UAAA,EAAW,CAAA"}
@@ -1,48 +0,0 @@
1
- import { ReactNode } from 'react';
2
- export interface DebtPayoffStat {
3
- /** Row label, e.g. "Projected payoff". */
4
- label: ReactNode;
5
- /** Pre-formatted row value, e.g. "Mar 2027". */
6
- value: ReactNode;
7
- }
8
- export interface DebtPayoffPillConfig {
9
- /** Pill background color token. The pill is borderless. */
10
- bgcolor: string;
11
- /** Pill label color token. */
12
- labelColor: string;
13
- }
14
- /**
15
- * Style props for the card. The Debts block supplies them for its look; the card itself
16
- * is variant-agnostic. Only what a caller sets today is here; add a knob with its first caller.
17
- */
18
- export interface DebtPayoffCardStyleProps {
19
- /** Slot surface token behind the white card. Default `background.default`. */
20
- bgcolor?: string;
21
- /** Status pill color tokens. */
22
- pill?: DebtPayoffPillConfig;
23
- }
24
- interface DebtPayoffCardProps extends DebtPayoffCardStyleProps {
25
- /** Institution/account logo rendered beside the account name. */
26
- logo: ReactNode;
27
- /** Primary line, e.g. "Epic Bank Credit *0987". */
28
- name: ReactNode;
29
- /** Optional secondary line beneath the name, e.g. "Credit Card". */
30
- subtitle?: ReactNode;
31
- /** Caption above the balance, e.g. "Current balance". Rendered only together with `balance`. */
32
- balanceLabel?: ReactNode;
33
- /** Pre-formatted balance, e.g. "$4,500.00". Omitted (with its caption) when unknown. */
34
- balance?: ReactNode;
35
- /** Label/value rows beneath the balance (payoff date, monthly payment, rate). */
36
- stats?: DebtPayoffStat[];
37
- /** Optional status pill label beside the account, e.g. the payoff strategy name. */
38
- statusLabel?: ReactNode;
39
- }
40
- /**
41
- * A debt account card: logo + account name row (with an optional status pill), the current
42
- * balance, and a divided list of label/value payoff stats, on a tinted slot.
43
- *
44
- * Purely presentational — it knows nothing about beats or variants; the Debts block passes
45
- * the style props for its look.
46
- */
47
- declare const DebtPayoffCard: ({ balance, balanceLabel, bgcolor, logo, name, pill, stats, statusLabel, subtitle, }: DebtPayoffCardProps) => import("react/jsx-runtime").JSX.Element;
48
- export default DebtPayoffCard;
@@ -1,132 +0,0 @@
1
- import u from "./StatusPill.es.js";
2
- import e from "@mui/material/Stack";
3
- import { Text as o } from "@mxenabled/mxui";
4
- import { Fragment as v, jsx as r, jsxs as t } from "react/jsx-runtime";
5
- import x from "@mui/material/Box";
6
- import y from "@mui/material/Divider";
7
- var w = {
8
- bgcolor: "grey.200",
9
- labelColor: "text.primary"
10
- }, h = (i) => typeof i == "string" ? i : void 0, I = ({ balance: i, balanceLabel: l, bgcolor: m = "background.default", logo: s, name: d, pill: a = w, stats: c = [], statusLabel: p, subtitle: n }) => /* @__PURE__ */ r(e, {
11
- sx: {
12
- px: 16,
13
- width: "100%"
14
- },
15
- children: /* @__PURE__ */ r(x, {
16
- sx: {
17
- bgcolor: m,
18
- borderRadius: "8px",
19
- p: 16,
20
- width: "100%"
21
- },
22
- children: /* @__PURE__ */ t(e, {
23
- sx: {
24
- bgcolor: "background.paper",
25
- border: "1px solid",
26
- borderColor: "divider",
27
- borderRadius: "8px",
28
- gap: 12,
29
- p: 16,
30
- width: "100%"
31
- },
32
- children: [
33
- /* @__PURE__ */ t(e, {
34
- sx: {
35
- alignItems: "center",
36
- flexDirection: "row",
37
- gap: 12
38
- },
39
- children: [
40
- /* @__PURE__ */ r(x, {
41
- sx: {
42
- borderRadius: "4px",
43
- display: "flex",
44
- flexShrink: 0,
45
- height: 40,
46
- overflow: "hidden",
47
- width: 40
48
- },
49
- children: s
50
- }),
51
- /* @__PURE__ */ t(e, {
52
- sx: {
53
- flexGrow: 1,
54
- minWidth: 0
55
- },
56
- children: [/* @__PURE__ */ r(o, {
57
- sx: { fontWeight: 600 },
58
- title: h(d),
59
- truncate: !0,
60
- variant: "body2",
61
- children: d
62
- }), n && /* @__PURE__ */ r(o, {
63
- color: "text.secondary",
64
- title: h(n),
65
- truncate: !0,
66
- variant: "caption",
67
- children: n
68
- })]
69
- }),
70
- p && /* @__PURE__ */ r(u, {
71
- bgcolor: a.bgcolor,
72
- label: p,
73
- labelColor: a.labelColor,
74
- labelVariant: "caption",
75
- sx: {
76
- alignSelf: "center",
77
- border: "none",
78
- flexShrink: 0,
79
- px: 12
80
- }
81
- })
82
- ]
83
- }),
84
- i != null && l != null && /* @__PURE__ */ t(e, { children: [/* @__PURE__ */ r(o, {
85
- color: "text.secondary",
86
- variant: "caption",
87
- children: l
88
- }), /* @__PURE__ */ r(o, {
89
- bold: !0,
90
- color: "text.primary",
91
- component: "p",
92
- variant: "h2",
93
- children: i
94
- })] }),
95
- c.length > 0 && /* @__PURE__ */ t(v, { children: [/* @__PURE__ */ r(y, {}), /* @__PURE__ */ r(e, {
96
- component: "dl",
97
- sx: {
98
- gap: 8,
99
- m: 0
100
- },
101
- children: c.map(({ label: f, value: g }, b) => /* @__PURE__ */ t(e, {
102
- sx: {
103
- alignItems: "baseline",
104
- flexDirection: "row",
105
- gap: 12,
106
- justifyContent: "space-between"
107
- },
108
- children: [/* @__PURE__ */ r(o, {
109
- color: "text.secondary",
110
- component: "dt",
111
- variant: "caption",
112
- children: f
113
- }), /* @__PURE__ */ r(o, {
114
- component: "dd",
115
- sx: {
116
- fontWeight: 600,
117
- m: 0
118
- },
119
- variant: "body2",
120
- children: g
121
- })]
122
- }, b))
123
- })] })
124
- ]
125
- })
126
- })
127
- });
128
- export {
129
- I as default
130
- };
131
-
132
- //# sourceMappingURL=DebtPayoffCard.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DebtPayoffCard.es.js","names":[],"sources":["../../../src/insights-v2/components/DebtPayoffCard.tsx"],"sourcesContent":["import type { ReactNode } from 'react'\n\nimport Box from '@mui/material/Box'\nimport Divider from '@mui/material/Divider'\nimport Stack from '@mui/material/Stack'\n\nimport { Text } from '@mxenabled/mxui'\n\nimport StatusPill from './StatusPill'\n\nexport interface DebtPayoffStat {\n /** Row label, e.g. \"Projected payoff\". */\n label: ReactNode\n /** Pre-formatted row value, e.g. \"Mar 2027\". */\n value: ReactNode\n}\n\nexport interface DebtPayoffPillConfig {\n /** Pill background color token. The pill is borderless. */\n bgcolor: string\n /** Pill label color token. */\n labelColor: string\n}\n\n/**\n * Style props for the card. The Debts block supplies them for its look; the card itself\n * is variant-agnostic. Only what a caller sets today is here; add a knob with its first caller.\n */\nexport interface DebtPayoffCardStyleProps {\n /** Slot surface token behind the white card. Default `background.default`. */\n bgcolor?: string\n /** Status pill color tokens. */\n pill?: DebtPayoffPillConfig\n}\n\ninterface DebtPayoffCardProps extends DebtPayoffCardStyleProps {\n /** Institution/account logo rendered beside the account name. */\n logo: ReactNode\n /** Primary line, e.g. \"Epic Bank Credit *0987\". */\n name: ReactNode\n /** Optional secondary line beneath the name, e.g. \"Credit Card\". */\n subtitle?: ReactNode\n /** Caption above the balance, e.g. \"Current balance\". Rendered only together with `balance`. */\n balanceLabel?: ReactNode\n /** Pre-formatted balance, e.g. \"$4,500.00\". Omitted (with its caption) when unknown. */\n balance?: ReactNode\n /** Label/value rows beneath the balance (payoff date, monthly payment, rate). */\n stats?: DebtPayoffStat[]\n /** Optional status pill label beside the account, e.g. the payoff strategy name. */\n statusLabel?: ReactNode\n}\n\nconst NEUTRAL_PILL: DebtPayoffPillConfig = { bgcolor: 'grey.200', labelColor: 'text.primary' }\n\n/** Native tooltip with the full value for a truncated line, when the value is plain text. */\nconst titleOf = (value: ReactNode) => (typeof value === 'string' ? value : undefined)\n\n/**\n * A debt account card: logo + account name row (with an optional status pill), the current\n * balance, and a divided list of label/value payoff stats, on a tinted slot.\n *\n * Purely presentational — it knows nothing about beats or variants; the Debts block passes\n * the style props for its look.\n */\nconst DebtPayoffCard = ({\n balance,\n balanceLabel,\n bgcolor = 'background.default',\n logo,\n name,\n pill = NEUTRAL_PILL,\n stats = [],\n statusLabel,\n subtitle,\n}: DebtPayoffCardProps) => (\n <Stack sx={{ px: 16, width: '100%' }}>\n <Box sx={{ bgcolor, borderRadius: '8px', p: 16, width: '100%' }}>\n <Stack\n sx={{\n bgcolor: 'background.paper',\n border: '1px solid',\n borderColor: 'divider',\n borderRadius: '8px',\n gap: 12,\n p: 16,\n width: '100%',\n }}\n >\n <Stack sx={{ alignItems: 'center', flexDirection: 'row', gap: 12 }}>\n <Box\n sx={{\n borderRadius: '4px',\n display: 'flex',\n flexShrink: 0,\n height: 40,\n overflow: 'hidden',\n width: 40,\n }}\n >\n {logo}\n </Box>\n <Stack sx={{ flexGrow: 1, minWidth: 0 }}>\n <Text sx={{ fontWeight: 600 }} title={titleOf(name)} truncate={true} variant=\"body2\">\n {name}\n </Text>\n {subtitle && (\n <Text\n color=\"text.secondary\"\n title={titleOf(subtitle)}\n truncate={true}\n variant=\"caption\"\n >\n {subtitle}\n </Text>\n )}\n </Stack>\n {statusLabel && (\n <StatusPill\n bgcolor={pill.bgcolor}\n label={statusLabel}\n labelColor={pill.labelColor}\n labelVariant=\"caption\"\n sx={{ alignSelf: 'center', border: 'none', flexShrink: 0, px: 12 }}\n />\n )}\n </Stack>\n\n {balance != null && balanceLabel != null && (\n <Stack>\n <Text color=\"text.secondary\" variant=\"caption\">\n {balanceLabel}\n </Text>\n {/* Display-size figure, not a heading: the feed owns the heading outline. */}\n <Text bold={true} color=\"text.primary\" component=\"p\" variant=\"h2\">\n {balance}\n </Text>\n </Stack>\n )}\n\n {stats.length > 0 && (\n <>\n <Divider />\n <Stack component=\"dl\" sx={{ gap: 8, m: 0 }}>\n {stats.map(({ label, value }, index) => (\n <Stack\n key={index}\n sx={{\n alignItems: 'baseline',\n flexDirection: 'row',\n gap: 12,\n justifyContent: 'space-between',\n }}\n >\n <Text color=\"text.secondary\" component=\"dt\" variant=\"caption\">\n {label}\n </Text>\n <Text component=\"dd\" sx={{ fontWeight: 600, m: 0 }} variant=\"body2\">\n {value}\n </Text>\n </Stack>\n ))}\n </Stack>\n </>\n )}\n </Stack>\n </Box>\n </Stack>\n)\n\nexport default DebtPayoffCard\n"],"mappings":"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"}