@mx-cartographer/experiences 9.7.117 → 9.7.118

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/common/components/drawer/Drawer.d.ts +3 -0
  3. package/dist/common/components/drawer/Drawer.es.js +30 -29
  4. package/dist/common/components/drawer/Drawer.es.js.map +1 -1
  5. package/dist/common/components/drawer/Header.d.ts +3 -0
  6. package/dist/common/components/drawer/Header.es.js +51 -45
  7. package/dist/common/components/drawer/Header.es.js.map +1 -1
  8. package/dist/core/stores/InsightsV2Store.d.ts +10 -0
  9. package/dist/core/stores/InsightsV2Store.es.js +15 -7
  10. package/dist/core/stores/InsightsV2Store.es.js.map +1 -1
  11. package/dist/insights-v2/actionBlocks/ActionBlockLayer.es.js +44 -33
  12. package/dist/insights-v2/actionBlocks/ActionBlockLayer.es.js.map +1 -1
  13. package/dist/insights-v2/actionBlocks/AmountInputModalBlock/AmountInputModalBlock.d.ts +1 -9
  14. package/dist/insights-v2/actionBlocks/AmountInputModalBlock/AmountInputModalBlock.es.js +96 -83
  15. package/dist/insights-v2/actionBlocks/AmountInputModalBlock/AmountInputModalBlock.es.js.map +1 -1
  16. package/dist/insights-v2/actionBlocks/AmountInputModalBlock/CreateBudgetDialog.d.ts +5 -0
  17. package/dist/insights-v2/actionBlocks/AmountInputModalBlock/CreateBudgetDialog.es.js +62 -0
  18. package/dist/insights-v2/actionBlocks/AmountInputModalBlock/CreateBudgetDialog.es.js.map +1 -0
  19. package/dist/insights-v2/actionBlocks/AmountInputModalBlock/layout.es.js.map +1 -1
  20. package/dist/insights-v2/actionBlocks/BudgetDetailsBlock/BudgetDetailsBlock.es.js +212 -145
  21. package/dist/insights-v2/actionBlocks/BudgetDetailsBlock/BudgetDetailsBlock.es.js.map +1 -1
  22. package/dist/insights-v2/actionBlocks/BudgetDetailsBlock/BudgetSummary.d.ts +3 -1
  23. package/dist/insights-v2/actionBlocks/BudgetDetailsBlock/BudgetSummary.es.js +36 -36
  24. package/dist/insights-v2/actionBlocks/BudgetDetailsBlock/BudgetSummary.es.js.map +1 -1
  25. package/dist/insights-v2/actionBlocks/BudgetDetailsBlock/layout.d.ts +32 -2
  26. package/dist/insights-v2/actionBlocks/BudgetDetailsBlock/layout.es.js +68 -22
  27. package/dist/insights-v2/actionBlocks/BudgetDetailsBlock/layout.es.js.map +1 -1
  28. package/dist/insights-v2/actionBlocks/BudgetDetailsBlock/useBudgetDetailsPrepare.d.ts +3 -0
  29. package/dist/insights-v2/actionBlocks/BudgetDetailsBlock/useBudgetDetailsPrepare.es.js +34 -0
  30. package/dist/insights-v2/actionBlocks/BudgetDetailsBlock/useBudgetDetailsPrepare.es.js.map +1 -0
  31. package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/TransactionHistoryBlock.es.js +61 -61
  32. package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/TransactionHistoryBlock.es.js.map +1 -1
  33. package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/layout.d.ts +1 -0
  34. package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/layout.es.js +42 -40
  35. package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/layout.es.js.map +1 -1
  36. package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/useTransactionHistoryPrepare.es.js +3 -3
  37. package/dist/insights-v2/actionBlocks/util.d.ts +2 -11
  38. package/dist/insights-v2/actionBlocks/util.es.js +16 -6
  39. package/dist/insights-v2/actionBlocks/util.es.js.map +1 -1
  40. package/dist/insights-v2/analytics/analyticsEventsConfig.d.ts +16 -0
  41. package/dist/insights-v2/analytics/analyticsEventsConfig.es.js +19 -2
  42. package/dist/insights-v2/analytics/analyticsEventsConfig.es.js.map +1 -1
  43. package/dist/insights-v2/blocks/ChartBlocks/BarchartBlock/BarchartBlock.es.js +8 -8
  44. package/dist/insights-v2/blocks/ChartBlocks/BarchartBlock/BarchartBlock.es.js.map +1 -1
  45. package/dist/insights-v2/blocks/ChartBlocks/BarchartBlock/utils.d.ts +1 -1
  46. package/dist/insights-v2/blocks/ChartBlocks/BarchartBlock/utils.es.js +28 -27
  47. package/dist/insights-v2/blocks/ChartBlocks/BarchartBlock/utils.es.js.map +1 -1
  48. package/dist/insights-v2/blocks/ComponentBlocks/AccountBlock/AccountBlock.es.js +4 -4
  49. package/dist/insights-v2/blocks/ComponentBlocks/TransactionBlock/TransactionBlock.es.js +4 -4
  50. package/dist/insights-v2/blocks/ImageBlocks/SVGImageBlock/SVGImageBlock.es.js +4 -4
  51. package/dist/insights-v2/components/BaseLayout.es.js +137 -118
  52. package/dist/insights-v2/components/BaseLayout.es.js.map +1 -1
  53. package/dist/insights-v2/mappings/blocks.d.ts +1 -0
  54. package/dist/insights-v2/mappings/blocks.es.js +131 -121
  55. package/dist/insights-v2/mappings/blocks.es.js.map +1 -1
  56. package/package.json +1 -1
@@ -1,47 +1,48 @@
1
1
  import { buildDynamicCopy as u } from "../../../../core/utils/Localization.es.js";
2
- import { DATE_FORMATS_INTL as i, formatDate as c } from "../../../../core/constants/DateFormats.es.js";
3
- import { formatCurrency as m } from "../../../../core/utils/NumberFormatting.es.js";
4
- import { getCategoryColor as l } from "../../../../core/utils/CategoryUtil.es.js";
5
- import { getLayoutConfig as A } from "./layout.es.js";
6
- import { parseISO as p } from "date-fns/parseISO";
7
- var s = {
2
+ import { DATE_FORMATS_INTL as c, formatDate as l } from "../../../../core/constants/DateFormats.es.js";
3
+ import { formatCurrency as i } from "../../../../core/utils/NumberFormatting.es.js";
4
+ import { getCategoryColor as A } from "../../../../core/utils/CategoryUtil.es.js";
5
+ import { getLayoutConfig as p } from "./layout.es.js";
6
+ import { parseISO as s } from "date-fns/parseISO";
7
+ var _ = {
8
8
  CATEGORY_COLOR: "category_color",
9
9
  ACCOUNT_BALANCE: "account_balance",
10
10
  MONTHLY_SPEND_COMPARISON: "monthly_spend_comparison"
11
- }, h = "_1{month}: _2{amount}", T = (a) => a ? a.data ? a.data.map((n) => {
11
+ }, T = "_1{month}: _2{amount}", R = (a) => a ? a.data ? a.data.map((o) => {
12
12
  const e = {};
13
13
  return a.names?.map((t, r) => {
14
- e[t] = n[r];
14
+ e[t] = o[r];
15
15
  }), e;
16
- }) : [] : [], R = (a, n, e = i.MONTH_SHORT) => [...a].sort((t, r) => !t.date || !r.date ? 0 : new Date(t.date).getTime() - new Date(r.date).getTime()).map((t) => {
17
- const r = t.date ? c(p(t.date), e) : t.label ?? "", o = t.amount ?? 0;
16
+ }) : [] : [], L = (a, o, e = c.MONTH_SHORT) => [...a].sort((t, r) => !t.date || !r.date ? 0 : new Date(t.date).getTime() - new Date(r.date).getTime()).map((t) => {
17
+ const r = t.date ? l(s(t.date), e) : t.label ?? "", n = t.amount ?? 0;
18
18
  return {
19
- ariaLabel: u(n, r, m(o, "0.00")),
19
+ ariaLabel: u(o, r, i(n, "0.00")),
20
20
  date: t.date ?? null,
21
21
  label: r,
22
- value: o,
23
- formattedAmount: m(o, "0,0")
22
+ value: n,
23
+ formattedAmount: i(n, "0,0")
24
24
  };
25
- }), L = (a, n, e) => {
26
- const { variant: t } = a, r = A(e);
27
- if (t === s.CATEGORY_COLOR && n) return {
28
- color: l(n, e),
25
+ }), g = (a, o, e, t) => {
26
+ const { variant: r } = a, n = p(e);
27
+ if (r === _.CATEGORY_COLOR && o) return {
28
+ chartHeight: t === "mini" ? 94 : void 0,
29
+ color: A(o, e),
29
30
  showMonthlyAmount: !0
30
31
  };
31
- const o = r[t];
32
+ const m = n[r];
32
33
  return {
33
- chartHeight: o?.chartHeight,
34
- color: o?.color ?? e.palette.primary.main,
35
- showMonthlyAmount: o?.showMonthlyAmount ?? !0,
36
- unselectedOpacity: o?.unselectedOpacity
34
+ chartHeight: m?.chartHeight,
35
+ color: m?.color ?? e.palette.primary.main,
36
+ showMonthlyAmount: m?.showMonthlyAmount ?? !0,
37
+ unselectedOpacity: m?.unselectedOpacity
37
38
  };
38
39
  };
39
40
  export {
40
- h as BAR_ARIA_LABEL,
41
- s as BAR_CHART_VARIANTS,
42
- L as barChartVariant,
43
- R as buildChartData,
44
- T as buildDataSeries
41
+ T as BAR_ARIA_LABEL,
42
+ _ as BAR_CHART_VARIANTS,
43
+ g as barChartVariant,
44
+ L as buildChartData,
45
+ R as buildDataSeries
45
46
  };
46
47
 
47
48
  //# sourceMappingURL=utils.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.es.js","names":[],"sources":["../../../../../src/insights-v2/blocks/ChartBlocks/BarchartBlock/utils.ts"],"sourcesContent":["import { type Theme } from '@mui/material/styles'\n\nimport { parseISO } from 'date-fns/parseISO'\n\nimport { getCategoryColor } from '../../../../core/utils/CategoryUtil'\nimport { buildDynamicCopy } from '../../../../core/utils/Localization'\nimport { formatCurrency } from '../../../../core/utils/NumberFormatting'\nimport { DATE_FORMATS_INTL, formatDate } from '../../../../core/constants'\nimport type { DataSeries, InstanceSlot } from '../../../../core'\nimport { getLayoutConfig } from './layout'\n\nexport const BAR_CHART_VARIANTS = {\n CATEGORY_COLOR: 'category_color',\n ACCOUNT_BALANCE: 'account_balance',\n MONTHLY_SPEND_COMPARISON: 'monthly_spend_comparison',\n}\n\nexport interface ChartDataSeriesItem {\n date?: string\n amount?: number\n guid?: string\n label?: string\n aggregated_guids?: string[]\n localized_label?: string\n category_guid?: string\n}\n\n/** Per-bar aria label, built in the frontend: \"{month}: {amount}\" (buildDynamicCopy placeholders). */\nexport const BAR_ARIA_LABEL = '_1{month}: _2{amount}'\n\nexport const buildDataSeries = (data: DataSeries | undefined): ChartDataSeriesItem[] => {\n if (!data) {\n return []\n }\n\n if (data.data) {\n return data.data.map((d) => {\n const item: any = {}\n\n data.names?.map((name, index) => {\n item[name] = d[index]\n })\n return item\n })\n } else {\n return []\n }\n}\n\nexport const buildChartData = (\n dataSeries: ChartDataSeriesItem[],\n ariaLabel: string,\n dateFormat: Parameters<typeof formatDate>[1] = DATE_FORMATS_INTL.MONTH_SHORT,\n) => {\n const data = [...dataSeries]\n .sort((a, b) => {\n if (!a.date || !b.date) return 0\n\n return new Date(a.date).getTime() - new Date(b.date).getTime()\n })\n .map((total) => {\n const label = total.date ? formatDate(parseISO(total.date), dateFormat) : (total.label ?? '')\n const amount = total.amount ?? 0\n\n return {\n ariaLabel: buildDynamicCopy(ariaLabel, label, formatCurrency(amount, '0.00')) as string,\n date: total.date ?? null,\n label,\n value: amount,\n formattedAmount: formatCurrency(amount, '0,0'),\n }\n })\n\n return data\n}\n\n/** A bar chart variant's look: its layout entry, resolved with defaults. */\nexport interface BarChartVariantLayout {\n chartHeight?: number\n color: string\n showMonthlyAmount: boolean\n unselectedOpacity?: number\n}\n\nexport const barChartVariant = (\n instanceSlot: InstanceSlot,\n categoryGuid: string | undefined,\n theme: Theme,\n): BarChartVariantLayout => {\n const { variant } = instanceSlot\n const barChartLayout = getLayoutConfig(theme)\n if (variant === BAR_CHART_VARIANTS.CATEGORY_COLOR && categoryGuid) {\n return { color: getCategoryColor(categoryGuid, theme), showMonthlyAmount: true }\n }\n const layout: Partial<BarChartVariantLayout> | undefined =\n barChartLayout[variant as keyof typeof barChartLayout]\n return {\n chartHeight: layout?.chartHeight,\n color: layout?.color ?? theme.palette.primary.main,\n showMonthlyAmount: layout?.showMonthlyAmount ?? true,\n unselectedOpacity: layout?.unselectedOpacity,\n }\n}\n"],"mappings":";;;;;;AAWA,IAAa,IAAqB;AAAA,EAChC,gBAAgB;AAAA,EAChB,iBAAiB;AAAA,EACjB,0BAA0B;AAC5B,GAaa,IAAiB,yBAEjB,IAAA,CAAmB,MACzB,IAID,EAAK,OACA,EAAK,KAAK,IAAA,CAAK,MAAM;AAC1B,QAAM,IAAY,CAAC;AAEnB,SAAA,EAAK,OAAO,IAAA,CAAK,GAAM,MAAU;AAC/B,IAAA,EAAK,CAAA,IAAQ,EAAE,CAAA;AAAA,EACjB,CAAC,GACM;AACT,CAAC,IAEM,CAAC,IAbD,CAAC,GAiBC,IAAA,CACX,GACA,GACA,IAA+C,EAAkB,gBAEpD,CAAC,GAAG,CAAU,EACxB,KAAA,CAAM,GAAG,MACJ,CAAC,EAAE,QAAQ,CAAC,EAAE,OAAa,IAExB,IAAI,KAAK,EAAE,IAAI,EAAE,QAAQ,IAAI,IAAI,KAAK,EAAE,IAAI,EAAE,QAAQ,CAC9D,EACA,IAAA,CAAK,MAAU;AACd,QAAM,IAAQ,EAAM,OAAO,EAAW,EAAS,EAAM,IAAI,GAAG,CAAU,IAAK,EAAM,SAAS,IACpF,IAAS,EAAM,UAAU;AAE/B,SAAO;AAAA,IACL,WAAW,EAAiB,GAAW,GAAO,EAAe,GAAQ,MAAM,CAAC;AAAA,IAC5E,MAAM,EAAM,QAAQ;AAAA,IACpB,OAAA;AAAA,IACA,OAAO;AAAA,IACP,iBAAiB,EAAe,GAAQ,KAAK;AAAA,EAC/C;AACF,CAEK,GAWI,IAAA,CACX,GACA,GACA,MAC0B;AAC1B,QAAM,EAAE,SAAA,EAAA,IAAY,GACd,IAAiB,EAAgB,CAAK;AAC5C,MAAI,MAAY,EAAmB,kBAAkB,EACnD,QAAO;AAAA,IAAE,OAAO,EAAiB,GAAc,CAAK;AAAA,IAAG,mBAAmB;AAAA,EAAK;AAEjF,QAAM,IACJ,EAAe,CAAA;AACjB,SAAO;AAAA,IACL,aAAa,GAAQ;AAAA,IACrB,OAAO,GAAQ,SAAS,EAAM,QAAQ,QAAQ;AAAA,IAC9C,mBAAmB,GAAQ,qBAAqB;AAAA,IAChD,mBAAmB,GAAQ;AAAA,EAC7B;AACF"}
1
+ {"version":3,"file":"utils.es.js","names":[],"sources":["../../../../../src/insights-v2/blocks/ChartBlocks/BarchartBlock/utils.ts"],"sourcesContent":["import { type Theme } from '@mui/material/styles'\n\nimport { parseISO } from 'date-fns/parseISO'\n\nimport { getCategoryColor } from '../../../../core/utils/CategoryUtil'\nimport { buildDynamicCopy } from '../../../../core/utils/Localization'\nimport { formatCurrency } from '../../../../core/utils/NumberFormatting'\nimport { DATE_FORMATS_INTL, formatDate } from '../../../../core/constants'\nimport type { DataSeries, InstanceSlot } from '../../../../core'\nimport { getLayoutConfig } from './layout'\n\nexport const BAR_CHART_VARIANTS = {\n CATEGORY_COLOR: 'category_color',\n ACCOUNT_BALANCE: 'account_balance',\n MONTHLY_SPEND_COMPARISON: 'monthly_spend_comparison',\n}\n\nexport interface ChartDataSeriesItem {\n date?: string\n amount?: number\n guid?: string\n label?: string\n aggregated_guids?: string[]\n localized_label?: string\n category_guid?: string\n}\n\n/** Per-bar aria label, built in the frontend: \"{month}: {amount}\" (buildDynamicCopy placeholders). */\nexport const BAR_ARIA_LABEL = '_1{month}: _2{amount}'\n\nexport const buildDataSeries = (data: DataSeries | undefined): ChartDataSeriesItem[] => {\n if (!data) {\n return []\n }\n\n if (data.data) {\n return data.data.map((d) => {\n const item: any = {}\n\n data.names?.map((name, index) => {\n item[name] = d[index]\n })\n return item\n })\n } else {\n return []\n }\n}\n\nexport const buildChartData = (\n dataSeries: ChartDataSeriesItem[],\n ariaLabel: string,\n dateFormat: Parameters<typeof formatDate>[1] = DATE_FORMATS_INTL.MONTH_SHORT,\n) => {\n const data = [...dataSeries]\n .sort((a, b) => {\n if (!a.date || !b.date) return 0\n\n return new Date(a.date).getTime() - new Date(b.date).getTime()\n })\n .map((total) => {\n const label = total.date ? formatDate(parseISO(total.date), dateFormat) : (total.label ?? '')\n const amount = total.amount ?? 0\n\n return {\n ariaLabel: buildDynamicCopy(ariaLabel, label, formatCurrency(amount, '0.00')) as string,\n date: total.date ?? null,\n label,\n value: amount,\n formattedAmount: formatCurrency(amount, '0,0'),\n }\n })\n\n return data\n}\n\n/** A bar chart variant's look: its layout entry, resolved with defaults. */\nexport interface BarChartVariantLayout {\n chartHeight?: number\n color: string\n showMonthlyAmount: boolean\n unselectedOpacity?: number\n}\n\nexport const barChartVariant = (\n instanceSlot: InstanceSlot,\n categoryGuid: string | undefined,\n theme: Theme,\n widgetType?: string,\n): BarChartVariantLayout => {\n const { variant } = instanceSlot\n const barChartLayout = getLayoutConfig(theme)\n if (variant === BAR_CHART_VARIANTS.CATEGORY_COLOR && categoryGuid) {\n // Figma (Mini | Category Spending): the chart and the legend share the full chart's 122px.\n const chartHeight = widgetType === 'mini' ? 94 : undefined\n return { chartHeight, color: getCategoryColor(categoryGuid, theme), showMonthlyAmount: true }\n }\n const layout: Partial<BarChartVariantLayout> | undefined =\n barChartLayout[variant as keyof typeof barChartLayout]\n return {\n chartHeight: layout?.chartHeight,\n color: layout?.color ?? theme.palette.primary.main,\n showMonthlyAmount: layout?.showMonthlyAmount ?? true,\n unselectedOpacity: layout?.unselectedOpacity,\n }\n}\n"],"mappings":";;;;;;AAWA,IAAa,IAAqB;AAAA,EAChC,gBAAgB;AAAA,EAChB,iBAAiB;AAAA,EACjB,0BAA0B;AAC5B,GAaa,IAAiB,yBAEjB,IAAA,CAAmB,MACzB,IAID,EAAK,OACA,EAAK,KAAK,IAAA,CAAK,MAAM;AAC1B,QAAM,IAAY,CAAC;AAEnB,SAAA,EAAK,OAAO,IAAA,CAAK,GAAM,MAAU;AAC/B,IAAA,EAAK,CAAA,IAAQ,EAAE,CAAA;AAAA,EACjB,CAAC,GACM;AACT,CAAC,IAEM,CAAC,IAbD,CAAC,GAiBC,IAAA,CACX,GACA,GACA,IAA+C,EAAkB,gBAEpD,CAAC,GAAG,CAAU,EACxB,KAAA,CAAM,GAAG,MACJ,CAAC,EAAE,QAAQ,CAAC,EAAE,OAAa,IAExB,IAAI,KAAK,EAAE,IAAI,EAAE,QAAQ,IAAI,IAAI,KAAK,EAAE,IAAI,EAAE,QAAQ,CAC9D,EACA,IAAA,CAAK,MAAU;AACd,QAAM,IAAQ,EAAM,OAAO,EAAW,EAAS,EAAM,IAAI,GAAG,CAAU,IAAK,EAAM,SAAS,IACpF,IAAS,EAAM,UAAU;AAE/B,SAAO;AAAA,IACL,WAAW,EAAiB,GAAW,GAAO,EAAe,GAAQ,MAAM,CAAC;AAAA,IAC5E,MAAM,EAAM,QAAQ;AAAA,IACpB,OAAA;AAAA,IACA,OAAO;AAAA,IACP,iBAAiB,EAAe,GAAQ,KAAK;AAAA,EAC/C;AACF,CAEK,GAWI,IAAA,CACX,GACA,GACA,GACA,MAC0B;AAC1B,QAAM,EAAE,SAAA,EAAA,IAAY,GACd,IAAiB,EAAgB,CAAK;AAC5C,MAAI,MAAY,EAAmB,kBAAkB,EAGnD,QAAO;AAAA,IAAE,aADW,MAAe,SAAS,KAAK;AAAA,IAC3B,OAAO,EAAiB,GAAc,CAAK;AAAA,IAAG,mBAAmB;AAAA,EAAK;AAE9F,QAAM,IACJ,EAAe,CAAA;AACjB,SAAO;AAAA,IACL,aAAa,GAAQ;AAAA,IACrB,OAAO,GAAQ,SAAS,EAAM,QAAQ,QAAQ;AAAA,IAC9C,mBAAmB,GAAQ,qBAAqB;AAAA,IAChD,mBAAmB,GAAQ;AAAA,EAC7B;AACF"}
@@ -1,7 +1,7 @@
1
1
  import { slot as d } from "../../../../core/types/Insights.es.js";
2
2
  import { formatCurrency as I } from "../../../../core/utils/NumberFormatting.es.js";
3
- import { useContainerDimensions as P } from "../../../hooks/useContainerDimensions.es.js";
4
- import { resolveVariantConfig as H } from "../../resolveVariantConfig.es.js";
3
+ import { resolveVariantConfig as P } from "../../resolveVariantConfig.es.js";
4
+ import { useContainerDimensions as H } from "../../../hooks/useContainerDimensions.es.js";
5
5
  import N from "../../../components/LogoFromGuid.es.js";
6
6
  import { Confetti as E } from "../../../components/shared/Confetti.es.js";
7
7
  import { ReactComponent as G } from "../../../components/shared/images/PaidOffCard.es.js";
@@ -20,9 +20,9 @@ import { jsx as o, jsxs as r } from "react/jsx-runtime";
20
20
  import { useTheme as X } from "@mui/material/styles";
21
21
  import a from "@mui/material/Box";
22
22
  var vo = ({ payload: g }) => {
23
- const h = X(), b = U(null), { height: w, width: v } = P(b), { instance_slot: n } = g, { variant: p, institution_guid: D, institution_name: A, icon_name: B, merchant_name: F } = n;
23
+ const h = X(), b = U(null), { height: w, width: v } = H(b), { instance_slot: n } = g, { variant: p, institution_guid: D, institution_name: A, icon_name: B, merchant_name: F } = n;
24
24
  if (q(p)) return /* @__PURE__ */ o(J, { payload: g });
25
- const { data: i } = n, m = i !== void 0, f = d(i, "amount"), u = m ? typeof f == "number" && Number.isFinite(f) ? f : void 0 : n.amount, y = d(i, "sub_text"), R = typeof y == "string" ? y : void 0, T = m ? R : n.sub_text, L = m ? R : n.label, _ = d(i, "header_text"), s = m ? typeof _ == "string" ? _ : void 0 : n.header_text, c = d(i, "logo"), t = H(M(h), p, "default", "AccountBlock");
25
+ const { data: i } = n, m = i !== void 0, f = d(i, "amount"), u = m ? typeof f == "number" && Number.isFinite(f) ? f : void 0 : n.amount, y = d(i, "sub_text"), R = typeof y == "string" ? y : void 0, T = m ? R : n.sub_text, L = m ? R : n.label, _ = d(i, "header_text"), s = m ? typeof _ == "string" ? _ : void 0 : n.header_text, c = d(i, "logo"), t = P(M(h), p, "default", "AccountBlock");
26
26
  if (t?.isConfetti) {
27
27
  const x = W(c?.guid), V = {
28
28
  paidOffCard: /* @__PURE__ */ o(a, {
@@ -3,8 +3,8 @@ import { slot as c } from "../../../../core/types/Insights.es.js";
3
3
  import { formatCurrency as C } from "../../../../core/utils/NumberFormatting.es.js";
4
4
  import { getCategoryColor as I } from "../../../../core/utils/CategoryUtil.es.js";
5
5
  import { useBeatActions as U } from "../../../beatActions.es.js";
6
- import { USER_RESPONSE as W, repeatingTransactionOf as Y } from "../../../ctaActions/subscriptionAnswer.es.js";
7
- import { resolveVariantConfig as J } from "../../resolveVariantConfig.es.js";
6
+ import { resolveVariantConfig as W } from "../../resolveVariantConfig.es.js";
7
+ import { USER_RESPONSE as Y, repeatingTransactionOf as J } from "../../../ctaActions/subscriptionAnswer.es.js";
8
8
  import { logoFromRef as K } from "../../../components/shared/EntityLogo.es.js";
9
9
  import Q from "../../../components/LogoFromGuid.es.js";
10
10
  import { statusIconName as X, statusIconPalette as S } from "../../../components/statusIcon.es.js";
@@ -93,10 +93,10 @@ var u = 32, mo = Math.round(u * 0.625), lo = 24, T = 32, go = 20, fo = ({ icon:
93
93
  }
94
94
  }
95
95
  }, Fo = no(({ payload: a }) => {
96
- const n = uo(), { getTopLevelCategoryGuid: s } = H(), m = V(), { recurring: o } = P(), { beat: i } = U(), { data: e, variant: B } = a.instance_slot, { answeredBackground: p, background: l, cardVariant: L, creditAmounts: R, elevated: k, followsSubscription: g, headerColor: O, raised: A, showFooter: $, showFrequency: y, showHeader: z, statusMessage: F, sx: N, tintedCategoryLogo: M } = J(eo(n), B, io.NoHeader, "TransactionBlock"), _ = (y || g) && i ? Y({
96
+ const n = uo(), { getTopLevelCategoryGuid: s } = H(), m = V(), { recurring: o } = P(), { beat: i } = U(), { data: e, variant: B } = a.instance_slot, { answeredBackground: p, background: l, cardVariant: L, creditAmounts: R, elevated: k, followsSubscription: g, headerColor: O, raised: A, showFooter: $, showFrequency: y, showHeader: z, statusMessage: F, sx: N, tintedCategoryLogo: M } = W(eo(n), B, io.NoHeader, "TransactionBlock"), _ = (y || g) && i ? J({
97
97
  beat: i,
98
98
  stores: m
99
- }) : void 0, h = !!g && _?.user_response === W.CONFIRMED;
99
+ }) : void 0, h = !!g && _?.user_response === Y.CONFIRMED;
100
100
  if (F) {
101
101
  const t = c(e, "message");
102
102
  return typeof t != "string" || !t.trim() ? (console.warn("[TransactionBlock] status_message has no message — rendering nothing."), null) : /* @__PURE__ */ r(to, {
@@ -1,12 +1,12 @@
1
1
  import { ThemedSVGImage as f } from "../../../components/chartblocks/ThemedSVGImage.es.js";
2
- import { CtaStatus as p } from "../../../components/CtaStatus.es.js";
3
- import { resolveVariantConfig as d } from "../../resolveVariantConfig.es.js";
2
+ import { resolveVariantConfig as p } from "../../resolveVariantConfig.es.js";
3
+ import { CtaStatus as d } from "../../../components/CtaStatus.es.js";
4
4
  import { getLayoutConfig as v } from "./layout.es.js";
5
5
  import { EmergencySavingsAccountPicker as h } from "./EmergencySavingsAccountPicker.es.js";
6
6
  import s from "@mui/material/Stack";
7
7
  import { jsx as o, jsxs as u } from "react/jsx-runtime";
8
8
  var V = ({ payload: { instance_slot: m, instance_slot_data: n, widget_type: t }, beatGuid: c }) => {
9
- const l = t === "mini", a = t === "full", { variant: g, data: e } = m, i = d(v(n?.isCIBC), g, "savings", "SVGImageBlock"), r = typeof e?.saved_label == "string" ? e.saved_label.trim() : "";
9
+ const l = t === "mini", a = t === "full", { variant: g, data: e } = m, i = p(v(n?.isCIBC), g, "savings", "SVGImageBlock"), r = typeof e?.saved_label == "string" ? e.saved_label.trim() : "";
10
10
  return /* @__PURE__ */ u(s, {
11
11
  alignItems: "center",
12
12
  sx: { width: "100%" },
@@ -25,7 +25,7 @@ var V = ({ payload: { instance_slot: m, instance_slot_data: n, widget_type: t },
25
25
  px: 16,
26
26
  width: "100%"
27
27
  },
28
- children: /* @__PURE__ */ o(p, {
28
+ children: /* @__PURE__ */ o(d, {
29
29
  icon: "check_circle",
30
30
  label: r,
31
31
  tone: "success"
@@ -1,35 +1,36 @@
1
- import { useAppConfig as to, useGlobalCopyStore as eo, useGlobalStore as no, useInsightsV2Store as ro } from "../../common/context/hooks.es.js";
2
- import { sendClientConfiguredCta as so } from "../../common/utils/PostMessage.es.js";
3
- import { BeatActionsProvider as ao } from "../beatActions.es.js";
4
- import { isContactSupportCtaDisabled as lo } from "../actionBlocks/ContactSupportActionBlock.es.js";
5
- import { CtaStatus as co } from "./CtaStatus.es.js";
6
- import { HOST_ACTIONS as po } from "../ctaActions/hostActions.es.js";
7
- import { reportCtaClick as mo } from "../ctaActions/runCtaAction.es.js";
8
- import { useBeatCtaActions as uo } from "../ctaActions/useCtaAction.es.js";
9
- import { actionBlocksKey as fo } from "../mappings/actionBlocksKey.es.js";
10
- import { logoFromRef as Co } from "./shared/EntityLogo.es.js";
11
- import ho from "./FeedbackDialog.es.js";
12
- import { ErrorCard as go } from "./ErrorCard.es.js";
13
- import { blocks as bo } from "../mappings/blocks.es.js";
14
- import { ActionBlockLayer as _o } from "../actionBlocks/ActionBlockLayer.es.js";
15
- import ko from "./Footer.es.js";
16
- import yo from "./Header.es.js";
17
- import { FeedbackBar as vo } from "./FeedbackBar.es.js";
18
- import { DismissInsightDialog as xo } from "./DismissInsightDialog.es.js";
19
- import { HiddenConfirmationCard as So } from "./HiddenConfirmationCard.es.js";
20
- import { LoadingCard as To } from "./LoadingCard.es.js";
1
+ import { useAppConfig as no, useGlobalCopyStore as ro, useGlobalStore as so, useInsightsV2Store as ao } from "../../common/context/hooks.es.js";
2
+ import { BEAT_ACTIVE_AT_KEY as lo } from "../../core/stores/InsightsV2Store.es.js";
3
+ import { sendClientConfiguredCta as co } from "../../common/utils/PostMessage.es.js";
4
+ import { BeatActionsProvider as mo } from "../beatActions.es.js";
5
+ import { isContactSupportCtaDisabled as po } from "../actionBlocks/ContactSupportActionBlock.es.js";
6
+ import { CtaStatus as uo } from "./CtaStatus.es.js";
7
+ import { HOST_ACTIONS as fo } from "../ctaActions/hostActions.es.js";
8
+ import { reportCtaClick as Co } from "../ctaActions/runCtaAction.es.js";
9
+ import { useBeatCtaActions as go } from "../ctaActions/useCtaAction.es.js";
10
+ import { actionBlocksKey as ho } from "../mappings/actionBlocksKey.es.js";
11
+ import { logoFromRef as bo } from "./shared/EntityLogo.es.js";
12
+ import _o from "./FeedbackDialog.es.js";
13
+ import { ErrorCard as yo } from "./ErrorCard.es.js";
14
+ import { blocks as ko } from "../mappings/blocks.es.js";
15
+ import { ActionBlockLayer as vo } from "../actionBlocks/ActionBlockLayer.es.js";
16
+ import xo from "./Footer.es.js";
17
+ import So from "./Header.es.js";
18
+ import { FeedbackBar as Ao } from "./FeedbackBar.es.js";
19
+ import { DismissInsightDialog as To } from "./DismissInsightDialog.es.js";
20
+ import { HiddenConfirmationCard as wo } from "./HiddenConfirmationCard.es.js";
21
+ import { LoadingCard as Bo } from "./LoadingCard.es.js";
21
22
  import { ObsolesceBanner as Lo } from "./ObsolesceBanner.es.js";
22
- import { useBeatFeedbackFlow as wo } from "../hooks/useBeatFeedbackFlow.es.js";
23
- import { useMemo as Ao } from "react";
24
- import { observer as Bo } from "mobx-react-lite";
25
- import x from "@mui/material/Stack";
26
- import { P as Do } from "@mxenabled/mxui";
23
+ import { useBeatFeedbackFlow as Do } from "../hooks/useBeatFeedbackFlow.es.js";
24
+ import { useEffect as Oo, useMemo as Io } from "react";
25
+ import { observer as Eo } from "mobx-react-lite";
26
+ import T from "@mui/material/Stack";
27
+ import { P as Fo } from "@mxenabled/mxui";
27
28
  import f from "@mui/material/Button";
28
- import { ChevronRight as I } from "@mxenabled/mx-icons";
29
- import { Fragment as Oo, jsx as i, jsxs as C } from "react/jsx-runtime";
30
- import Io from "@mui/material/Box";
31
- import Fo from "@mui/material/Card";
32
- var Eo = {}, Ho = {
29
+ import { ChevronRight as H } from "@mxenabled/mx-icons";
30
+ import { Fragment as Ho, jsx as t, jsxs as C } from "react/jsx-runtime";
31
+ import Po from "@mui/material/Box";
32
+ import Mo from "@mui/material/Card";
33
+ var No = {}, Ro = {
33
34
  position: "absolute",
34
35
  top: 0,
35
36
  left: 0,
@@ -38,7 +39,7 @@ var Eo = {}, Ho = {
38
39
  backgroundColor: "background.default",
39
40
  opacity: 0.7,
40
41
  zIndex: 3
41
- }, S = {
42
+ }, w = {
42
43
  alignSelf: "flex-start",
43
44
  fontSize: 13,
44
45
  fontWeight: 600,
@@ -50,12 +51,12 @@ var Eo = {}, Ho = {
50
51
  px: 0,
51
52
  py: 4,
52
53
  textAlign: "left"
53
- }, Po = {
54
- ...S,
54
+ }, Go = {
55
+ ...w,
55
56
  alignItems: "center",
56
57
  display: "flex",
57
58
  textTransform: "none"
58
- }, Mo = {
59
+ }, Wo = {
59
60
  color: "text.secondary",
60
61
  fontSize: 13,
61
62
  fontWeight: 600,
@@ -65,162 +66,180 @@ var Eo = {}, Ho = {
65
66
  px: 16,
66
67
  py: 12,
67
68
  "&.Mui-disabled": { color: "text.disabled" }
68
- }, Ci = Bo(({ beat: t, beatActions: l = Eo, obsolete: g, isLoading: F = !1, isError: E = !1 }) => {
69
- const H = eo(), P = ro(), { config: M } = to(), o = wo(t, l), b = no(), { runCta: N, primary: _, secondary: T, linkPresentation: R } = uo(t, l, t.insights_payload?.primary_cta ?? void 0, t.insights_payload?.secondary_cta ?? void 0, t.insights_payload?.in_description_cta ?? void 0), c = t.insights_payload?.widget_type === "mini", W = Ao(() => ({
69
+ }, yt = Eo(({ beat: i, beatActions: c = No, obsolete: b, isLoading: P = !1, isError: M = !1 }) => {
70
+ const N = ro(), _ = ao(), { config: R } = no(), o = Do(i, c), y = so(), { runCta: G, primary: k, secondary: B, linkPresentation: W } = go(i, c, i.insights_payload?.primary_cta ?? void 0, i.insights_payload?.secondary_cta ?? void 0, i.insights_payload?.in_description_cta ?? void 0), l = i.insights_payload?.widget_type === "mini", g = i.active_at ?? i.insights_payload?.active_at;
71
+ Oo(() => {
72
+ g == null || g === "" || _.setBeatContext(i.guid, { [lo]: g });
73
+ }, [
74
+ g,
75
+ i.guid,
76
+ _
77
+ ]);
78
+ const V = Io(() => ({
70
79
  ...o.wrappedActions,
71
- beat: t
72
- }), [o.wrappedActions, t]);
73
- if (E) return /* @__PURE__ */ i(go, {});
74
- const e = t.insights_payload;
80
+ beat: i
81
+ }), [o.wrappedActions, i]);
82
+ if (M) return /* @__PURE__ */ t(yo, {});
83
+ const e = i.insights_payload;
75
84
  if (!e || o.cardState === "dismissed") return null;
76
- const { instance_slot: G, primary_cta: r, secondary_cta: d, sub_title: X, title: z, guid: L, dismissed_at: V } = e, { block: j } = G, K = X ?? (e.subtitle ? {
77
- logo: Co(e.logo),
85
+ const { instance_slot: X, primary_cta: r, secondary_cta: d, sub_title: z, title: K, guid: L, dismissed_at: j } = e, { block: U } = X, Y = z ?? (e.subtitle ? {
86
+ logo: bo(e.logo),
78
87
  text: e.subtitle
79
- } : void 0), p = (s) => lo(s, M, l.onContactSupport), w = async (s, a) => {
80
- if (!p(a.block)) {
81
- if (a.block === fo.CONTACT_SUPPORT_ACTION_BLOCK) {
82
- mo({
83
- beat: t,
84
- stores: b,
85
- hostActions: l,
88
+ } : void 0), m = (s) => po(s, R, c.onContactSupport), D = async (s, a) => {
89
+ if (!m(a.block)) {
90
+ if (a.block === ho.CONTACT_SUPPORT_ACTION_BLOCK) {
91
+ Co({
92
+ beat: i,
93
+ stores: y,
94
+ hostActions: c,
86
95
  slot: s
87
- }), l.onContactSupport?.();
96
+ }), c.onContactSupport?.();
88
97
  return;
89
98
  }
90
- await N(s, a);
99
+ await G(s, a);
91
100
  }
92
- }, A = bo[j], m = e.in_description_cta, k = !c && m?.label && m.block ? m : void 0, U = r?.label || (k ? void 0 : m?.label) || void 0, u = !c && !!r?.label, B = t.in_description_cta || t.html_in_description_cta, Y = () => {
93
- const { is_mobile_webview: s, clientConfig: a } = b.appDataStore.appConfig;
94
- so(t.template, {
101
+ }, O = ko[U], p = e.in_description_cta, v = !l && p?.label && p.block ? p : void 0, $ = r?.label || (v ? void 0 : p?.label) || void 0, u = !l && !!r?.label, I = i.in_description_cta || i.html_in_description_cta, q = () => {
102
+ const { is_mobile_webview: s, clientConfig: a } = y.appDataStore.appConfig;
103
+ co(i.template, {
95
104
  isMobileWebview: s,
96
105
  webviewScheme: a?.master?.ui_message_webview_url_scheme,
97
- userGuid: e.user_guid ?? t.user_guid
106
+ userGuid: e.user_guid ?? i.user_guid
98
107
  });
99
- }, n = u ? _.presentation : void 0, $ = n?.kind === "hidden" && !!n.hideAll, D = !c && !!d?.label && !$, h = c ? R : void 0, q = h?.kind === "status" ? h : void 0, O = h ? q?.action?.label : U, J = h?.title || z || "", Q = !!O && !u, Z = u && n?.kind !== "hidden" || D, oo = (s) => {
100
- const { onCtaAction: a } = l;
108
+ }, n = u ? k.presentation : void 0, J = n?.kind === "hidden" && !!n.hideAll, E = !l && !!d?.label && !J, h = l ? W : void 0, Q = h?.kind === "status" ? h : void 0, F = h ? Q?.action?.label : $, Z = h?.title || K || "", oo = !!F && !u, to = u && n?.kind !== "hidden" || E, io = (s) => {
109
+ const { onCtaAction: a } = c;
101
110
  a && (s.stopPropagation(), Promise.resolve().then(() => a({
102
- beatGuid: t.guid,
103
- name: po.cardClick
104
- })).catch((io) => b.captureException(io, {
111
+ beatGuid: i.guid,
112
+ name: fo.cardClick
113
+ })).catch((eo) => y.captureException(eo, {
105
114
  store: "BaseLayout",
106
- template: t.template,
115
+ template: i.template,
107
116
  handler: "cardClick"
108
117
  })));
109
- }, y = H.insights_feed?.general, v = g?.state === "not_refreshable" && !V && !!y;
110
- return /* @__PURE__ */ i(ao, {
111
- value: W,
112
- children: /* @__PURE__ */ C(x, {
118
+ }, x = l, S = N.insights_feed?.general, A = b?.state === "not_refreshable" && !j && !!S;
119
+ return /* @__PURE__ */ t(mo, {
120
+ value: V,
121
+ children: /* @__PURE__ */ C(T, {
113
122
  sx: { mb: 16 },
114
123
  children: [
115
- o.cardState === "confirming" ? /* @__PURE__ */ i(So, {
124
+ o.cardState === "confirming" ? /* @__PURE__ */ t(wo, {
116
125
  onClose: o.collapseConfirmation,
117
126
  onLeaveFeedback: o.openHideSurvey,
118
127
  onUndo: o.undoDismiss
119
- }) : /* @__PURE__ */ C(Oo, { children: [g && y && /* @__PURE__ */ i(Lo, {
120
- ...g,
121
- copy: y
122
- }), /* @__PURE__ */ C(Fo, {
123
- inert: v,
124
- sx: { ...v && {
125
- position: "relative",
126
- zIndex: 2,
127
- pointerEvents: "none"
128
- } },
128
+ }) : /* @__PURE__ */ C(Ho, { children: [b && S && /* @__PURE__ */ t(Lo, {
129
+ ...b,
130
+ copy: S
131
+ }), /* @__PURE__ */ C(Mo, {
132
+ inert: A,
133
+ sx: {
134
+ ...x && {
135
+ display: "flex",
136
+ flexDirection: "column"
137
+ },
138
+ ...A && {
139
+ position: "relative",
140
+ zIndex: 2,
141
+ pointerEvents: "none"
142
+ }
143
+ },
129
144
  children: [
130
- v && /* @__PURE__ */ i(Io, { sx: Ho }),
131
- /* @__PURE__ */ i(yo, {
132
- isMini: c,
133
- subtitle: K,
134
- title: J
145
+ A && /* @__PURE__ */ t(Po, { sx: Ro }),
146
+ /* @__PURE__ */ t(So, {
147
+ isMini: l,
148
+ subtitle: Y,
149
+ title: Z
135
150
  }),
136
- F ? /* @__PURE__ */ i(To, {}) : A && /* @__PURE__ */ i(A, {
151
+ P ? /* @__PURE__ */ t(Bo, {}) : O && /* @__PURE__ */ t(O, {
137
152
  beatGuid: L,
138
153
  payload: e
139
154
  }),
140
- /* @__PURE__ */ C(x, {
155
+ /* @__PURE__ */ C(T, {
141
156
  sx: {
142
157
  gap: 6,
143
158
  pb: 16,
144
159
  pt: 12,
145
- px: 16
160
+ px: 16,
161
+ ...x && { flexGrow: 1 }
146
162
  },
147
163
  children: [
148
- /* @__PURE__ */ i(Do, {
164
+ /* @__PURE__ */ t(Fo, {
149
165
  dangerouslySetInnerHTML: { __html: e.description.html_text },
150
166
  sx: { fontWeight: "fontWeightRegular" },
151
167
  variant: "subtitle2"
152
168
  }),
153
- k && /* @__PURE__ */ i(f, {
154
- endIcon: /* @__PURE__ */ i(I, {}),
155
- onClick: () => P.openActionDrawer({
169
+ v && /* @__PURE__ */ t(f, {
170
+ endIcon: /* @__PURE__ */ t(H, {}),
171
+ onClick: () => _.openActionDrawer({
156
172
  guid: L,
157
173
  trigger: "inDescriptionCta"
158
174
  }),
159
- sx: S,
160
- children: k.label
175
+ sx: w,
176
+ children: v.label
161
177
  }),
162
- Q && /* @__PURE__ */ i(f, {
163
- onClick: c ? oo : void 0,
164
- sx: Po,
178
+ oo && /* @__PURE__ */ t(f, {
179
+ onClick: l ? io : void 0,
180
+ sx: {
181
+ ...Go,
182
+ ...x && { mt: "auto" }
183
+ },
165
184
  variant: "text",
166
- children: O
185
+ children: F
167
186
  }),
168
- !m?.label && B && /* @__PURE__ */ i(f, {
169
- endIcon: /* @__PURE__ */ i(I, {}),
170
- onClick: Y,
171
- sx: S,
172
- children: B
187
+ !p?.label && I && /* @__PURE__ */ t(f, {
188
+ endIcon: /* @__PURE__ */ t(H, {}),
189
+ onClick: q,
190
+ sx: w,
191
+ children: I
173
192
  })
174
193
  ]
175
194
  }),
176
- Z && /* @__PURE__ */ C(x, {
195
+ to && /* @__PURE__ */ C(T, {
177
196
  sx: {
178
197
  gap: 8,
179
198
  pb: 16,
180
199
  px: 16
181
200
  },
182
201
  children: [
183
- u && r && n?.kind === "status" && /* @__PURE__ */ i(co, {
202
+ u && r && n?.kind === "status" && /* @__PURE__ */ t(uo, {
184
203
  action: n.action,
185
204
  sx: n.sx,
186
205
  icon: n.icon,
187
206
  label: n.label,
188
207
  tone: n.tone
189
208
  }),
190
- u && r && !n && /* @__PURE__ */ i(f, {
191
- "aria-disabled": p(r.block) || _.disabled,
192
- disabled: _.disabled,
193
- onClick: () => w("primary", r),
194
- sx: { ...p(r.block) && { color: "text.disabled" } },
209
+ u && r && !n && /* @__PURE__ */ t(f, {
210
+ "aria-disabled": m(r.block) || k.disabled,
211
+ disabled: k.disabled,
212
+ onClick: () => D("primary", r),
213
+ sx: { ...m(r.block) && { color: "text.disabled" } },
195
214
  variant: "outlined",
196
215
  children: r.label
197
216
  }),
198
- D && d && /* @__PURE__ */ i(f, {
199
- "aria-disabled": p(d.block) || T.disabled,
217
+ E && d && /* @__PURE__ */ t(f, {
218
+ "aria-disabled": m(d.block) || B.disabled,
200
219
  color: "inherit",
201
- disabled: T.disabled,
202
- onClick: () => w("secondary", d),
220
+ disabled: B.disabled,
221
+ onClick: () => D("secondary", d),
203
222
  sx: {
204
- ...Mo,
205
- ...p(d.block) && { color: "text.disabled" }
223
+ ...Wo,
224
+ ...m(d.block) && { color: "text.disabled" }
206
225
  },
207
226
  children: d.label
208
227
  })
209
228
  ]
210
229
  }),
211
- /* @__PURE__ */ i(vo, {
230
+ /* @__PURE__ */ t(Ao, {
212
231
  onTellUsMore: o.openRatingSurvey,
213
232
  show: o.isFeedbackBarShown
214
233
  })
215
234
  ]
216
235
  })] }),
217
- /* @__PURE__ */ i(_o, { beat: t }),
218
- /* @__PURE__ */ i(xo, {
236
+ /* @__PURE__ */ t(vo, { beat: i }),
237
+ /* @__PURE__ */ t(To, {
219
238
  isOpen: o.isDismissOpen,
220
239
  onClose: o.closeDismissDialog,
221
240
  onDismiss: o.confirmDismiss
222
241
  }),
223
- o.isSurveyOpen && /* @__PURE__ */ i(ho, {
242
+ o.isSurveyOpen && /* @__PURE__ */ t(_o, {
224
243
  characterLimitLabel: o.survey.characterLimitLabel,
225
244
  closeAriaLabel: o.survey.closeAriaLabel,
226
245
  isOpen: !0,
@@ -233,13 +252,13 @@ var Eo = {}, Ho = {
233
252
  secondaryText: o.survey.backText,
234
253
  title: o.survey.title
235
254
  }),
236
- o.cardState === "visible" && e.footer && /* @__PURE__ */ i(ko, { footer: e.footer })
255
+ o.cardState === "visible" && e.footer && /* @__PURE__ */ t(xo, { footer: e.footer })
237
256
  ]
238
257
  })
239
258
  });
240
259
  });
241
260
  export {
242
- Ci as default
261
+ yt as default
243
262
  };
244
263
 
245
264
  //# sourceMappingURL=BaseLayout.es.js.map