@mx-cartographer/experiences 9.7.202 → 9.7.204
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 +9 -0
- package/dist/core/stores/AnalyticsStore.es.js +9 -8
- package/dist/core/stores/AnalyticsStore.es.js.map +1 -1
- package/dist/core/stores/InsightsV2Store.d.ts +4 -0
- package/dist/core/stores/InsightsV2Store.es.js +10 -8
- package/dist/core/stores/InsightsV2Store.es.js.map +1 -1
- package/dist/core/types/Insights.d.ts +1 -0
- package/dist/core/types/Insights.es.js.map +1 -1
- package/dist/core/utils/PostHog.d.ts +2 -0
- package/dist/core/utils/PostHog.es.js +6 -0
- package/dist/core/utils/PostHog.es.js.map +1 -0
- package/dist/insights-v2/actionBlocks/BudgetDetailsBlock/BudgetSummary.es.js +28 -28
- package/dist/insights-v2/actionBlocks/BudgetDetailsBlock/BudgetSummary.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/BudgetDetailsBlock/layout.d.ts +4 -4
- package/dist/insights-v2/actionBlocks/BudgetDetailsBlock/layout.es.js +14 -14
- package/dist/insights-v2/actionBlocks/BudgetDetailsBlock/layout.es.js.map +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/DebtsBlock/DebtsBlock.d.ts +5 -5
- package/dist/insights-v2/blocks/ComponentBlocks/DebtsBlock/DebtsBlock.es.js +26 -26
- package/dist/insights-v2/blocks/ComponentBlocks/DebtsBlock/DebtsBlock.es.js.map +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/FeedbackBlock.d.ts +14 -0
- package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/FeedbackBlock.es.js +324 -0
- package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/FeedbackBlock.es.js.map +1 -0
- package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/index.d.ts +1 -0
- package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/survey.d.ts +29 -0
- package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/survey.es.js +25 -0
- package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/survey.es.js.map +1 -0
- package/dist/insights-v2/blocks/ComponentBlocks/MerchantBlock/MerchantBlock.es.js +34 -34
- package/dist/insights-v2/blocks/ComponentBlocks/MerchantBlock/MerchantBlock.es.js.map +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/index.d.ts +1 -0
- package/dist/insights-v2/components/BaseLayout.es.js +137 -135
- package/dist/insights-v2/components/BaseLayout.es.js.map +1 -1
- package/dist/insights-v2/components/Header.d.ts +5 -1
- package/dist/insights-v2/components/Header.es.js +15 -15
- package/dist/insights-v2/components/Header.es.js.map +1 -1
- package/dist/insights-v2/components/MerchantHighlightCard.d.ts +2 -2
- package/dist/insights-v2/components/MerchantHighlightCard.es.js +5 -5
- package/dist/insights-v2/components/MerchantHighlightCard.es.js.map +1 -1
- package/dist/insights-v2/index.es.js +51 -49
- package/dist/insights-v2/mappings/blocks.es.js +96 -94
- package/dist/insights-v2/mappings/blocks.es.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import { slot as n } from "../../../../core/types/Insights.es.js";
|
|
2
|
-
import { CURRENCY_FORMAT as R, formatCurrency as
|
|
3
|
-
import
|
|
4
|
-
import { resolveVariantConfig as
|
|
5
|
-
import { asLogoRef as
|
|
6
|
-
import C, { isLogoGuid as
|
|
7
|
-
import
|
|
2
|
+
import { CURRENCY_FORMAT as R, formatCurrency as y } from "../../../../core/utils/NumberFormatting.es.js";
|
|
3
|
+
import P from "../../../components/StatusPill.es.js";
|
|
4
|
+
import { resolveVariantConfig as z } from "../../resolveVariantConfig.es.js";
|
|
5
|
+
import { asLogoRef as B, asNumber as E, asText as i, slotOrFlat as g } from "../../slotReaders.es.js";
|
|
6
|
+
import C, { isLogoGuid as M } from "../../../components/LogoFromGuid.es.js";
|
|
7
|
+
import N from "../../../components/LogoClusterCard.es.js";
|
|
8
8
|
import T from "../../../components/MerchantHighlightCard.es.js";
|
|
9
9
|
import V from "../../../components/P2PLogoStack.es.js";
|
|
10
10
|
import { MERCHANT_LAYOUT as w, merchantBlockVariant as D } from "./layout.es.js";
|
|
11
11
|
import G from "@mui/material/Stack";
|
|
12
|
-
import { Icon as
|
|
12
|
+
import { Icon as L } from "@mxenabled/mx-icons";
|
|
13
13
|
import { jsx as e } from "react/jsx-runtime";
|
|
14
|
-
var
|
|
14
|
+
var u = 72, b = 6, F = 3, I = 10, K = [
|
|
15
15
|
0,
|
|
16
16
|
10,
|
|
17
17
|
25
|
|
18
|
-
], j = (a) => a === 2 || a === 3 || a === 4, H = 32,
|
|
19
|
-
const r =
|
|
20
|
-
return r?.guid &&
|
|
18
|
+
], j = (a) => a === 2 || a === 3 || a === 4, H = 32, m = (a) => {
|
|
19
|
+
const r = B(a);
|
|
20
|
+
return r?.guid && M(r.guid) ? r : void 0;
|
|
21
21
|
}, U = (a) => {
|
|
22
22
|
if (!Array.isArray(a)) return [];
|
|
23
23
|
const r = /* @__PURE__ */ new Map();
|
|
24
|
-
for (const t of a.map(
|
|
24
|
+
for (const t of a.map(m)) t?.guid && !r.has(t.guid) && r.set(t.guid, t);
|
|
25
25
|
return [...r.values()];
|
|
26
|
-
},
|
|
26
|
+
}, O = /* @__PURE__ */ e(L, {
|
|
27
27
|
"aria-hidden": !0,
|
|
28
28
|
"data-icon": "storefront",
|
|
29
29
|
name: "storefront",
|
|
@@ -32,9 +32,9 @@ var k = 64, b = 6, I = 72, K = 3, F = 10, Z = [
|
|
|
32
32
|
}), _ = (a, r) => a.length ? a.map((t) => /* @__PURE__ */ e(C, {
|
|
33
33
|
logo: t,
|
|
34
34
|
size: r
|
|
35
|
-
}, t.guid)) : [
|
|
36
|
-
const { instance_slot: r } = a, { data: t } = r, o =
|
|
37
|
-
icon: /* @__PURE__ */ e(
|
|
35
|
+
}, t.guid)) : [O], no = ({ payload: a }) => {
|
|
36
|
+
const { instance_slot: r } = a, { data: t } = r, o = z(w, r.variant, D.SingleStandard, "MerchantBlock"), f = i(g(r, "status_text")), h = o.status && f ? /* @__PURE__ */ e(P, {
|
|
37
|
+
icon: /* @__PURE__ */ e(L, {
|
|
38
38
|
"aria-hidden": !0,
|
|
39
39
|
"data-icon": "check_circle",
|
|
40
40
|
fill: !0,
|
|
@@ -42,7 +42,7 @@ var k = 64, b = 6, I = 72, K = 3, F = 10, Z = [
|
|
|
42
42
|
size: 16,
|
|
43
43
|
sx: { color: "success.700" }
|
|
44
44
|
}),
|
|
45
|
-
label:
|
|
45
|
+
label: f,
|
|
46
46
|
sx: o.kind === "single" ? void 0 : {
|
|
47
47
|
alignSelf: "stretch",
|
|
48
48
|
justifyContent: "center"
|
|
@@ -51,17 +51,17 @@ var k = 64, b = 6, I = 72, K = 3, F = 10, Z = [
|
|
|
51
51
|
if (o.kind !== "single") {
|
|
52
52
|
const c = U(n(t, "logos"));
|
|
53
53
|
if (o.kind === "ranked" && c.length) {
|
|
54
|
-
const d = c.slice(0,
|
|
55
|
-
return /* @__PURE__ */ e(
|
|
54
|
+
const d = c.slice(0, F), A = j(d.length) && o.cascade?.offsets?.[d.length] || K;
|
|
55
|
+
return /* @__PURE__ */ e(N, {
|
|
56
56
|
background: o.background,
|
|
57
57
|
fullBleed: !0,
|
|
58
|
-
logos: _(d,
|
|
58
|
+
logos: _(d, u),
|
|
59
59
|
overlap: o.cascade?.overlap ?? b,
|
|
60
|
-
rankOffsets:
|
|
60
|
+
rankOffsets: A.map((S) => I + S),
|
|
61
61
|
ranked: !0
|
|
62
62
|
});
|
|
63
63
|
}
|
|
64
|
-
const
|
|
64
|
+
const k = o.logo?.size ?? u;
|
|
65
65
|
return /* @__PURE__ */ e(G, {
|
|
66
66
|
sx: {
|
|
67
67
|
background: o.background,
|
|
@@ -71,47 +71,47 @@ var k = 64, b = 6, I = 72, K = 3, F = 10, Z = [
|
|
|
71
71
|
},
|
|
72
72
|
children: /* @__PURE__ */ e(V, {
|
|
73
73
|
borderColor: o.logo?.borderColor ?? null,
|
|
74
|
-
logos: _(c,
|
|
74
|
+
logos: _(c, k),
|
|
75
75
|
offsets: o.cascade?.offsets,
|
|
76
76
|
overlap: o.cascade?.overlap ?? b,
|
|
77
77
|
shadow: "elevation",
|
|
78
|
-
size:
|
|
79
|
-
status:
|
|
78
|
+
size: k,
|
|
79
|
+
status: h
|
|
80
80
|
})
|
|
81
81
|
});
|
|
82
82
|
}
|
|
83
83
|
const s = i(n(t, "primary_text")) || i(g(r, "merchant_name"));
|
|
84
84
|
if (!s) return null;
|
|
85
|
-
const l =
|
|
85
|
+
const l = E(g(r, "amount")), x = i(n(t, "header_text")) || i(n(t, "date")), p = m(n(t, "logo")) ?? m({
|
|
86
86
|
alt: s,
|
|
87
87
|
fallback_guid: r.category_guid,
|
|
88
88
|
guid: r.merchant_guid
|
|
89
|
-
}), v = o.logo?.size ??
|
|
89
|
+
}), v = o.logo?.size ?? u;
|
|
90
90
|
return /* @__PURE__ */ e(T, {
|
|
91
|
-
amount: l !== void 0 && l !== 0 ?
|
|
91
|
+
amount: l !== void 0 && l !== 0 ? y(l, R.cents) : void 0,
|
|
92
92
|
amountPill: o.amountPill,
|
|
93
93
|
amountVariant: o.amountVariant,
|
|
94
94
|
background: o.background,
|
|
95
95
|
bgcolor: o.bgcolor,
|
|
96
96
|
borderColor: o.borderColor,
|
|
97
|
-
eyebrow: o.hideDate ? void 0 :
|
|
97
|
+
eyebrow: o.hideDate ? void 0 : x,
|
|
98
98
|
fullBleed: o.fullBleed,
|
|
99
99
|
gap: o.gap,
|
|
100
|
-
logo:
|
|
101
|
-
logo:
|
|
100
|
+
logo: p ? /* @__PURE__ */ e(C, {
|
|
101
|
+
logo: p,
|
|
102
102
|
size: v
|
|
103
|
-
}) :
|
|
103
|
+
}) : O,
|
|
104
104
|
logoBorderColor: o.logo?.borderColor,
|
|
105
105
|
logoRadius: o.logo?.radius,
|
|
106
106
|
logoShadow: o.logo?.shadow,
|
|
107
107
|
logoSize: v,
|
|
108
108
|
name: s,
|
|
109
109
|
nameVariant: o.nameVariant,
|
|
110
|
-
trailing:
|
|
110
|
+
trailing: h
|
|
111
111
|
});
|
|
112
112
|
};
|
|
113
113
|
export {
|
|
114
|
-
|
|
114
|
+
no as default
|
|
115
115
|
};
|
|
116
116
|
|
|
117
117
|
//# sourceMappingURL=MerchantBlock.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MerchantBlock.es.js","names":[],"sources":["../../../../../src/insights-v2/blocks/ComponentBlocks/MerchantBlock/MerchantBlock.tsx"],"sourcesContent":["import Stack from '@mui/material/Stack'\n\nimport { Icon } from '@mxenabled/mx-icons'\n\nimport { slot, type InsightsPayload, type LogoRef } from '../../../../core'\nimport type { MerchantBlockData } from '../../../../core/types/InsightsInstanceSlotData'\nimport { CURRENCY_FORMAT, formatCurrency } from '../../../../core/utils/NumberFormatting'\n\nimport LogoClusterCard from '../../../components/LogoClusterCard'\nimport LogoFromGuid, { isLogoGuid } from '../../../components/LogoFromGuid'\nimport MerchantHighlightCard from '../../../components/MerchantHighlightCard'\nimport P2PLogoStack, { type CascadeOffsets } from '../../../components/P2PLogoStack'\nimport StatusPill from '../../../components/StatusPill'\nimport { resolveVariantConfig } from '../../resolveVariantConfig'\nimport { asLogoRef, asNumber, asText, slotOrFlat } from '../../slotReaders'\n\nimport { MERCHANT_LAYOUT, merchantBlockVariant } from './layout'\n\ninterface MerchantBlockProps {\n payload: InsightsPayload\n}\n\nconst LOGO_SIZE =
|
|
1
|
+
{"version":3,"file":"MerchantBlock.es.js","names":[],"sources":["../../../../../src/insights-v2/blocks/ComponentBlocks/MerchantBlock/MerchantBlock.tsx"],"sourcesContent":["import Stack from '@mui/material/Stack'\n\nimport { Icon } from '@mxenabled/mx-icons'\n\nimport { slot, type InsightsPayload, type LogoRef } from '../../../../core'\nimport type { MerchantBlockData } from '../../../../core/types/InsightsInstanceSlotData'\nimport { CURRENCY_FORMAT, formatCurrency } from '../../../../core/utils/NumberFormatting'\n\nimport LogoClusterCard from '../../../components/LogoClusterCard'\nimport LogoFromGuid, { isLogoGuid } from '../../../components/LogoFromGuid'\nimport MerchantHighlightCard from '../../../components/MerchantHighlightCard'\nimport P2PLogoStack, { type CascadeOffsets } from '../../../components/P2PLogoStack'\nimport StatusPill from '../../../components/StatusPill'\nimport { resolveVariantConfig } from '../../resolveVariantConfig'\nimport { asLogoRef, asNumber, asText, slotOrFlat } from '../../slotReaders'\n\nimport { MERCHANT_LAYOUT, merchantBlockVariant } from './layout'\n\ninterface MerchantBlockProps {\n payload: InsightsPayload\n}\n\nconst LOGO_SIZE = 72\nconst LOGO_OVERLAP = 6\nconst RANKED_MAX = 3\n// The ranked row's room above the first tile for its badge overhang the variant's drops start below it.\nconst RANKED_TOP = 10\n// Drops for a ranked variant that sets no `cascade.offsets` for its tile count.\nconst RANKED_DROPS = [0, 10, 25] as const\n// The tile counts `cascade.offsets` can name.\nconst hasCascadeOffsets = (count: number): count is keyof CascadeOffsets =>\n count === 2 || count === 3 || count === 4\nconst FALLBACK_ICON_SIZE = 32\n\n/** A logo ref naming a known logo guid, else undefined, so an unusable one falls through. */\nconst asMerchantLogo = (value: unknown): LogoRef | undefined => {\n const ref = asLogoRef(value)\n return ref?.guid && isLogoGuid(ref.guid) ? ref : undefined\n}\n\nconst uniqueLogos = (refs: unknown): LogoRef[] => {\n if (!Array.isArray(refs)) return []\n const byGuid = new Map<string, LogoRef>()\n for (const ref of refs.map(asMerchantLogo)) {\n if (ref?.guid && !byGuid.has(ref.guid)) byGuid.set(ref.guid, ref)\n }\n return [...byGuid.values()]\n}\n\nconst storefront = (\n <Icon\n aria-hidden={true}\n data-icon=\"storefront\"\n name=\"storefront\"\n size={FALLBACK_ICON_SIZE}\n sx={{ color: 'text.secondary' }}\n />\n)\n\nconst logoTiles = (refs: LogoRef[], size: number) =>\n refs.length\n ? refs.map((ref) => <LogoFromGuid key={ref.guid} logo={ref} size={size} />)\n : [storefront]\n\nconst MerchantBlock = ({ payload }: MerchantBlockProps) => {\n const { instance_slot } = payload\n const { data } = instance_slot\n const config = resolveVariantConfig(\n MERCHANT_LAYOUT,\n instance_slot.variant,\n merchantBlockVariant.SingleStandard,\n 'MerchantBlock',\n )\n const statusText = asText(slotOrFlat(instance_slot, 'status_text'))\n const statusPill =\n config.status && statusText ? (\n <StatusPill\n icon={\n <Icon\n aria-hidden={true}\n data-icon=\"check_circle\"\n fill={true}\n name=\"check_circle\"\n size={16}\n sx={{ color: 'success.700' }}\n />\n }\n label={statusText}\n sx={\n config.kind === 'single' ? undefined : { alignSelf: 'stretch', justifyContent: 'center' }\n }\n />\n ) : undefined\n\n if (config.kind !== 'single') {\n const logos = uniqueLogos(slot<MerchantBlockData['logos']>(data, 'logos'))\n\n if (config.kind === 'ranked' && logos.length) {\n const ranked = logos.slice(0, RANKED_MAX)\n const drops =\n (hasCascadeOffsets(ranked.length) && config.cascade?.offsets?.[ranked.length]) ||\n RANKED_DROPS\n\n return (\n <LogoClusterCard\n background={config.background}\n fullBleed={true}\n logos={logoTiles(ranked, LOGO_SIZE)}\n overlap={config.cascade?.overlap ?? LOGO_OVERLAP}\n rankOffsets={drops.map((drop) => RANKED_TOP + drop)}\n ranked={true}\n />\n )\n }\n\n const cascadeSize = config.logo?.size ?? LOGO_SIZE\n\n return (\n <Stack\n sx={{\n background: config.background,\n bgcolor: config.background ? undefined : config.bgcolor,\n p: 16,\n width: '100%',\n }}\n >\n <P2PLogoStack\n borderColor={config.logo?.borderColor ?? null}\n logos={logoTiles(logos, cascadeSize)}\n offsets={config.cascade?.offsets}\n overlap={config.cascade?.overlap ?? LOGO_OVERLAP}\n shadow=\"elevation\"\n size={cascadeSize}\n status={statusPill}\n />\n </Stack>\n )\n }\n\n // ditto's slot names first.\n const merchantName =\n asText(slot(data, 'primary_text')) || asText(slotOrFlat(instance_slot, 'merchant_name'))\n if (!merchantName) return null\n\n const amount = asNumber(slotOrFlat(instance_slot, 'amount'))\n const date = asText(slot(data, 'header_text')) || asText(slot(data, 'date'))\n const logo =\n asMerchantLogo(slot<unknown>(data, 'logo')) ??\n asMerchantLogo({\n alt: merchantName,\n fallback_guid: instance_slot.category_guid,\n guid: instance_slot.merchant_guid,\n })\n const logoSize = config.logo?.size ?? LOGO_SIZE\n\n return (\n <MerchantHighlightCard\n amount={\n amount !== undefined && amount !== 0\n ? formatCurrency(amount, CURRENCY_FORMAT.cents)\n : undefined\n }\n amountPill={config.amountPill}\n amountVariant={config.amountVariant}\n background={config.background}\n bgcolor={config.bgcolor}\n borderColor={config.borderColor}\n eyebrow={config.hideDate ? undefined : date}\n fullBleed={config.fullBleed}\n gap={config.gap}\n logo={logo ? <LogoFromGuid logo={logo} size={logoSize} /> : storefront}\n logoBorderColor={config.logo?.borderColor}\n logoRadius={config.logo?.radius}\n logoShadow={config.logo?.shadow}\n logoSize={logoSize}\n name={merchantName}\n nameVariant={config.nameVariant}\n trailing={statusPill}\n />\n )\n}\n\nexport default MerchantBlock\n"],"mappings":"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"}
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { useAppConfig as
|
|
2
|
-
import { BEAT_ACTIVE_AT_KEY as
|
|
3
|
-
import { sendClientConfiguredCta as
|
|
4
|
-
import { BeatActionsProvider as
|
|
5
|
-
import { isContactSupportCtaDisabled as
|
|
6
|
-
import { CtaStatus as
|
|
7
|
-
import { HOST_ACTIONS as
|
|
8
|
-
import { reportCtaClick as
|
|
9
|
-
import { useBeatCtaActions as
|
|
10
|
-
import { actionBlocksKey as
|
|
11
|
-
import { logoFromRef as
|
|
12
|
-
import
|
|
13
|
-
import { ErrorCard as
|
|
14
|
-
import { blocks as
|
|
15
|
-
import { ActionBlockLayer as
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import { FeedbackBar as
|
|
19
|
-
import { DismissInsightDialog as
|
|
20
|
-
import { HiddenConfirmationCard as
|
|
21
|
-
import { LoadingCard as
|
|
22
|
-
import { ObsolesceBanner as
|
|
23
|
-
import { useBeatFeedbackFlow as
|
|
24
|
-
import { useEffect as
|
|
25
|
-
import { observer as
|
|
26
|
-
import
|
|
27
|
-
import { P as
|
|
1
|
+
import { useAppConfig as po, useGlobalCopyStore as mo, useGlobalStore as uo, useInsightsV2Store as fo } from "../../common/context/hooks.es.js";
|
|
2
|
+
import { BEAT_ACTIVE_AT_KEY as Co, BEAT_CARD_TITLE_KEY as ho, BEAT_KEEP_AFTER_DISMISS_KEY as go } from "../../core/stores/InsightsV2Store.es.js";
|
|
3
|
+
import { sendClientConfiguredCta as _o } from "../../common/utils/PostMessage.es.js";
|
|
4
|
+
import { BeatActionsProvider as bo } from "../beatActions.es.js";
|
|
5
|
+
import { isContactSupportCtaDisabled as yo } from "../actionBlocks/ContactSupportActionBlock.es.js";
|
|
6
|
+
import { CtaStatus as ko } from "./CtaStatus.es.js";
|
|
7
|
+
import { HOST_ACTIONS as vo } from "../ctaActions/hostActions.es.js";
|
|
8
|
+
import { reportCtaClick as xo } from "../ctaActions/runCtaAction.es.js";
|
|
9
|
+
import { useBeatCtaActions as So } from "../ctaActions/useCtaAction.es.js";
|
|
10
|
+
import { actionBlocksKey as To } from "../mappings/actionBlocksKey.es.js";
|
|
11
|
+
import { logoFromRef as Ao } from "./shared/EntityLogo.es.js";
|
|
12
|
+
import wo from "./FeedbackDialog.es.js";
|
|
13
|
+
import { ErrorCard as Do } from "./ErrorCard.es.js";
|
|
14
|
+
import { blocks as Bo } from "../mappings/blocks.es.js";
|
|
15
|
+
import { ActionBlockLayer as Lo } from "../actionBlocks/ActionBlockLayer.es.js";
|
|
16
|
+
import Eo from "./Footer.es.js";
|
|
17
|
+
import Io from "./Header.es.js";
|
|
18
|
+
import { FeedbackBar as Oo } from "./FeedbackBar.es.js";
|
|
19
|
+
import { DismissInsightDialog as Fo } from "./DismissInsightDialog.es.js";
|
|
20
|
+
import { HiddenConfirmationCard as Ho } from "./HiddenConfirmationCard.es.js";
|
|
21
|
+
import { LoadingCard as Mo } from "./LoadingCard.es.js";
|
|
22
|
+
import { ObsolesceBanner as Ro } from "./ObsolesceBanner.es.js";
|
|
23
|
+
import { useBeatFeedbackFlow as No } from "../hooks/useBeatFeedbackFlow.es.js";
|
|
24
|
+
import { useEffect as Po, useMemo as Ko } from "react";
|
|
25
|
+
import { observer as Go } from "mobx-react-lite";
|
|
26
|
+
import B from "@mui/material/Stack";
|
|
27
|
+
import { P as Wo } from "@mxenabled/mxui";
|
|
28
28
|
import f from "@mui/material/Button";
|
|
29
|
-
import { ChevronRight as
|
|
30
|
-
import { Fragment as
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
var
|
|
29
|
+
import { ChevronRight as G } from "@mxenabled/mx-icons";
|
|
30
|
+
import { Fragment as Xo, jsx as o, jsxs as C } from "react/jsx-runtime";
|
|
31
|
+
import W from "@mui/material/Box";
|
|
32
|
+
import Vo from "@mui/material/Card";
|
|
33
|
+
var Yo = {}, jo = {
|
|
34
34
|
position: "absolute",
|
|
35
35
|
top: 0,
|
|
36
36
|
left: 0,
|
|
@@ -39,7 +39,7 @@ var Mo = {}, Po = {
|
|
|
39
39
|
backgroundColor: "background.default",
|
|
40
40
|
opacity: 0.7,
|
|
41
41
|
zIndex: 3
|
|
42
|
-
},
|
|
42
|
+
}, L = {
|
|
43
43
|
alignSelf: "flex-start",
|
|
44
44
|
fontSize: 13,
|
|
45
45
|
fontWeight: 600,
|
|
@@ -51,12 +51,12 @@ var Mo = {}, Po = {
|
|
|
51
51
|
px: 0,
|
|
52
52
|
py: 4,
|
|
53
53
|
textAlign: "left"
|
|
54
|
-
},
|
|
55
|
-
...
|
|
54
|
+
}, zo = {
|
|
55
|
+
...L,
|
|
56
56
|
alignItems: "center",
|
|
57
57
|
display: "flex",
|
|
58
58
|
textTransform: "none"
|
|
59
|
-
},
|
|
59
|
+
}, Uo = {
|
|
60
60
|
flexGrow: 1,
|
|
61
61
|
minHeight: 0,
|
|
62
62
|
overflow: "clip",
|
|
@@ -66,7 +66,7 @@ var Mo = {}, Po = {
|
|
|
66
66
|
height: "100%",
|
|
67
67
|
justifyContent: "center"
|
|
68
68
|
}
|
|
69
|
-
},
|
|
69
|
+
}, $o = {
|
|
70
70
|
color: "text.secondary",
|
|
71
71
|
fontSize: 13,
|
|
72
72
|
fontWeight: 600,
|
|
@@ -76,196 +76,198 @@ var Mo = {}, Po = {
|
|
|
76
76
|
px: 16,
|
|
77
77
|
py: 12,
|
|
78
78
|
"&.Mui-disabled": { color: "text.disabled" }
|
|
79
|
-
},
|
|
80
|
-
const
|
|
81
|
-
|
|
82
|
-
|
|
79
|
+
}, Dt = Go(({ beat: t, beatActions: l = Yo, obsolete: y, isLoading: E = !1, isError: X = !1 }) => {
|
|
80
|
+
const V = mo(), h = fo(), { config: Y } = po(), i = No(t, l), k = uo(), { runCta: j, primary: v, secondary: I, linkPresentation: z } = So(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", g = t.active_at ?? t.insights_payload?.active_at;
|
|
81
|
+
Po(() => {
|
|
82
|
+
g == null || g === "" || h.setBeatContext(t.guid, { [Co]: g });
|
|
83
83
|
}, [
|
|
84
|
-
|
|
84
|
+
g,
|
|
85
85
|
t.guid,
|
|
86
|
-
|
|
86
|
+
h
|
|
87
87
|
]);
|
|
88
|
-
const
|
|
89
|
-
...
|
|
88
|
+
const U = Ko(() => ({
|
|
89
|
+
...i.wrappedActions,
|
|
90
90
|
beat: t
|
|
91
|
-
}), [
|
|
92
|
-
if (
|
|
91
|
+
}), [i.wrappedActions, t]), O = h.beatContext[t.guid], F = !!O?.[go], x = F ? "visible" : i.cardState;
|
|
92
|
+
if (X) return /* @__PURE__ */ o(Do, {});
|
|
93
93
|
const e = t.insights_payload;
|
|
94
|
-
if (!e ||
|
|
95
|
-
const { instance_slot:
|
|
96
|
-
logo:
|
|
94
|
+
if (!e || x === "dismissed") return null;
|
|
95
|
+
const { instance_slot: $, primary_cta: r, secondary_cta: d, sub_title: q, title: J, guid: H, dismissed_at: Q } = e, { block: Z } = $, oo = q ?? (e.subtitle ? {
|
|
96
|
+
logo: Ao(e.logo),
|
|
97
97
|
text: e.subtitle
|
|
98
|
-
} : void 0),
|
|
99
|
-
if (!
|
|
100
|
-
if (a.block ===
|
|
101
|
-
|
|
98
|
+
} : void 0), m = (s) => yo(s, Y, l.onContactSupport), M = async (s, a) => {
|
|
99
|
+
if (!m(a.block)) {
|
|
100
|
+
if (a.block === To.CONTACT_SUPPORT_ACTION_BLOCK) {
|
|
101
|
+
xo({
|
|
102
102
|
beat: t,
|
|
103
|
-
stores:
|
|
103
|
+
stores: k,
|
|
104
104
|
hostActions: l,
|
|
105
105
|
slot: s
|
|
106
106
|
}), l.onContactSupport?.();
|
|
107
107
|
return;
|
|
108
108
|
}
|
|
109
|
-
await
|
|
109
|
+
await j(s, a);
|
|
110
110
|
}
|
|
111
|
-
},
|
|
112
|
-
const { is_mobile_webview: s, clientConfig: a } =
|
|
113
|
-
|
|
111
|
+
}, S = Bo[Z], p = e.in_description_cta, _ = !c && p?.label && p.block ? p : void 0, to = r?.label || (_ ? void 0 : p?.label) || void 0, u = !c && !!r?.label, T = t.in_description_cta || t.html_in_description_cta, io = () => {
|
|
112
|
+
const { is_mobile_webview: s, clientConfig: a } = k.appDataStore.appConfig;
|
|
113
|
+
_o(t.template, {
|
|
114
114
|
isMobileWebview: s,
|
|
115
115
|
webviewScheme: a?.master?.ui_message_webview_url_scheme,
|
|
116
116
|
userGuid: e.user_guid ?? t.user_guid
|
|
117
117
|
});
|
|
118
|
-
}, n = u ? v.presentation : void 0,
|
|
118
|
+
}, n = u ? v.presentation : void 0, eo = n?.kind === "hidden" && !!n.hideAll, R = !c && !!d?.label && !eo, b = c ? z : void 0, no = b?.kind === "status" ? b : void 0, N = b ? no?.action?.label : to, A = O?.[ho], ro = b?.title || (typeof A == "string" ? A : "") || J || "", P = !!N && !u, K = typeof A == "string", so = !K || !!e.description.html_text || !!_ || P || !p?.label && !!T, ao = u && n?.kind !== "hidden" || R, lo = (s) => {
|
|
119
119
|
const { onCtaAction: a } = l;
|
|
120
120
|
a && (s.stopPropagation(), Promise.resolve().then(() => a({
|
|
121
121
|
beatGuid: t.guid,
|
|
122
|
-
name:
|
|
123
|
-
})).catch((
|
|
122
|
+
name: vo.cardClick
|
|
123
|
+
})).catch((co) => k.captureException(co, {
|
|
124
124
|
store: "BaseLayout",
|
|
125
125
|
template: t.template,
|
|
126
126
|
handler: "cardClick"
|
|
127
127
|
})));
|
|
128
|
-
},
|
|
129
|
-
return /* @__PURE__ */
|
|
130
|
-
value:
|
|
131
|
-
children: /* @__PURE__ */ C(
|
|
128
|
+
}, w = V.insights_feed?.general, D = y?.state === "not_refreshable" && !Q && !!w;
|
|
129
|
+
return /* @__PURE__ */ o(bo, {
|
|
130
|
+
value: U,
|
|
131
|
+
children: /* @__PURE__ */ C(B, {
|
|
132
132
|
sx: { mb: 16 },
|
|
133
133
|
children: [
|
|
134
|
-
|
|
135
|
-
onClose:
|
|
136
|
-
onLeaveFeedback:
|
|
137
|
-
onUndo:
|
|
138
|
-
}) : /* @__PURE__ */ C(
|
|
139
|
-
...
|
|
140
|
-
copy:
|
|
141
|
-
}), /* @__PURE__ */ C(
|
|
142
|
-
inert:
|
|
134
|
+
x === "confirming" ? /* @__PURE__ */ o(Ho, {
|
|
135
|
+
onClose: i.collapseConfirmation,
|
|
136
|
+
onLeaveFeedback: i.openHideSurvey,
|
|
137
|
+
onUndo: i.undoDismiss
|
|
138
|
+
}) : /* @__PURE__ */ C(Xo, { children: [y && w && /* @__PURE__ */ o(Ro, {
|
|
139
|
+
...y,
|
|
140
|
+
copy: w
|
|
141
|
+
}), /* @__PURE__ */ C(Vo, {
|
|
142
|
+
inert: D,
|
|
143
143
|
sx: {
|
|
144
144
|
display: "flex",
|
|
145
145
|
flexDirection: "column",
|
|
146
|
-
...
|
|
146
|
+
...D && {
|
|
147
147
|
position: "relative",
|
|
148
148
|
zIndex: 2,
|
|
149
149
|
pointerEvents: "none"
|
|
150
150
|
}
|
|
151
151
|
},
|
|
152
152
|
children: [
|
|
153
|
-
|
|
154
|
-
/* @__PURE__ */
|
|
153
|
+
D && /* @__PURE__ */ o(W, { sx: jo }),
|
|
154
|
+
/* @__PURE__ */ o(Io, {
|
|
155
|
+
hidesMenu: F,
|
|
155
156
|
isMini: c,
|
|
156
|
-
subtitle:
|
|
157
|
-
title:
|
|
157
|
+
subtitle: oo,
|
|
158
|
+
title: ro,
|
|
159
|
+
wrapsTitle: K
|
|
158
160
|
}),
|
|
159
|
-
/* @__PURE__ */
|
|
160
|
-
sx:
|
|
161
|
-
children:
|
|
162
|
-
beatGuid:
|
|
161
|
+
/* @__PURE__ */ o(W, {
|
|
162
|
+
sx: Uo,
|
|
163
|
+
children: E ? /* @__PURE__ */ o(Mo, {}) : S && /* @__PURE__ */ o(S, {
|
|
164
|
+
beatGuid: H,
|
|
163
165
|
payload: e
|
|
164
166
|
})
|
|
165
167
|
}),
|
|
166
|
-
/* @__PURE__ */ C(
|
|
168
|
+
so && /* @__PURE__ */ C(B, {
|
|
167
169
|
sx: {
|
|
168
170
|
gap: 6,
|
|
169
171
|
pb: 16,
|
|
170
|
-
pt:
|
|
172
|
+
pt: E || S ? 12 : 0,
|
|
171
173
|
px: 16
|
|
172
174
|
},
|
|
173
175
|
children: [
|
|
174
|
-
/* @__PURE__ */
|
|
176
|
+
/* @__PURE__ */ o(Wo, {
|
|
175
177
|
dangerouslySetInnerHTML: { __html: e.description.html_text },
|
|
176
178
|
sx: { fontWeight: "fontWeightRegular" },
|
|
177
179
|
variant: "subtitle2"
|
|
178
180
|
}),
|
|
179
|
-
|
|
180
|
-
endIcon: /* @__PURE__ */
|
|
181
|
-
onClick: () =>
|
|
182
|
-
guid:
|
|
181
|
+
_ && /* @__PURE__ */ o(f, {
|
|
182
|
+
endIcon: /* @__PURE__ */ o(G, {}),
|
|
183
|
+
onClick: () => h.openActionDrawer({
|
|
184
|
+
guid: H,
|
|
183
185
|
trigger: "inDescriptionCta"
|
|
184
186
|
}),
|
|
185
|
-
sx:
|
|
186
|
-
children:
|
|
187
|
+
sx: L,
|
|
188
|
+
children: _.label
|
|
187
189
|
}),
|
|
188
|
-
|
|
189
|
-
onClick: c ?
|
|
190
|
-
sx:
|
|
190
|
+
P && /* @__PURE__ */ o(f, {
|
|
191
|
+
onClick: c ? lo : void 0,
|
|
192
|
+
sx: zo,
|
|
191
193
|
variant: "text",
|
|
192
|
-
children:
|
|
194
|
+
children: N
|
|
193
195
|
}),
|
|
194
|
-
!
|
|
195
|
-
endIcon: /* @__PURE__ */
|
|
196
|
-
onClick:
|
|
197
|
-
sx:
|
|
198
|
-
children:
|
|
196
|
+
!p?.label && T && /* @__PURE__ */ o(f, {
|
|
197
|
+
endIcon: /* @__PURE__ */ o(G, {}),
|
|
198
|
+
onClick: io,
|
|
199
|
+
sx: L,
|
|
200
|
+
children: T
|
|
199
201
|
})
|
|
200
202
|
]
|
|
201
203
|
}),
|
|
202
|
-
|
|
204
|
+
ao && /* @__PURE__ */ C(B, {
|
|
203
205
|
sx: {
|
|
204
206
|
gap: 8,
|
|
205
207
|
pb: 16,
|
|
206
208
|
px: 16
|
|
207
209
|
},
|
|
208
210
|
children: [
|
|
209
|
-
u && r && n?.kind === "status" && /* @__PURE__ */
|
|
211
|
+
u && r && n?.kind === "status" && /* @__PURE__ */ o(ko, {
|
|
210
212
|
action: n.action,
|
|
211
213
|
sx: n.sx,
|
|
212
214
|
icon: n.icon,
|
|
213
215
|
label: n.label,
|
|
214
216
|
tone: n.tone
|
|
215
217
|
}),
|
|
216
|
-
u && r && !n && /* @__PURE__ */
|
|
217
|
-
"aria-disabled":
|
|
218
|
+
u && r && !n && /* @__PURE__ */ o(f, {
|
|
219
|
+
"aria-disabled": m(r.block) || v.disabled,
|
|
218
220
|
disabled: v.disabled,
|
|
219
|
-
onClick: () =>
|
|
220
|
-
sx: { ...
|
|
221
|
+
onClick: () => M("primary", r),
|
|
222
|
+
sx: { ...m(r.block) && { color: "text.disabled" } },
|
|
221
223
|
variant: "outlined",
|
|
222
224
|
children: r.label
|
|
223
225
|
}),
|
|
224
|
-
|
|
225
|
-
"aria-disabled":
|
|
226
|
+
R && d && /* @__PURE__ */ o(f, {
|
|
227
|
+
"aria-disabled": m(d.block) || I.disabled,
|
|
226
228
|
color: "inherit",
|
|
227
|
-
disabled:
|
|
228
|
-
onClick: () =>
|
|
229
|
+
disabled: I.disabled,
|
|
230
|
+
onClick: () => M("secondary", d),
|
|
229
231
|
sx: {
|
|
230
|
-
|
|
231
|
-
...
|
|
232
|
+
...$o,
|
|
233
|
+
...m(d.block) && { color: "text.disabled" }
|
|
232
234
|
},
|
|
233
235
|
children: d.label
|
|
234
236
|
})
|
|
235
237
|
]
|
|
236
238
|
}),
|
|
237
|
-
/* @__PURE__ */
|
|
238
|
-
onTellUsMore:
|
|
239
|
-
show:
|
|
239
|
+
/* @__PURE__ */ o(Oo, {
|
|
240
|
+
onTellUsMore: i.openRatingSurvey,
|
|
241
|
+
show: i.isFeedbackBarShown
|
|
240
242
|
})
|
|
241
243
|
]
|
|
242
244
|
})] }),
|
|
243
|
-
/* @__PURE__ */
|
|
244
|
-
/* @__PURE__ */
|
|
245
|
-
isOpen:
|
|
246
|
-
onClose:
|
|
247
|
-
onDismiss:
|
|
245
|
+
/* @__PURE__ */ o(Lo, { beat: t }),
|
|
246
|
+
/* @__PURE__ */ o(Fo, {
|
|
247
|
+
isOpen: i.isDismissOpen,
|
|
248
|
+
onClose: i.closeDismissDialog,
|
|
249
|
+
onDismiss: i.confirmDismiss
|
|
248
250
|
}),
|
|
249
|
-
|
|
250
|
-
characterLimitLabel:
|
|
251
|
-
closeAriaLabel:
|
|
251
|
+
i.isSurveyOpen && /* @__PURE__ */ o(wo, {
|
|
252
|
+
characterLimitLabel: i.survey.characterLimitLabel,
|
|
253
|
+
closeAriaLabel: i.survey.closeAriaLabel,
|
|
252
254
|
isOpen: !0,
|
|
253
|
-
onBackClick:
|
|
254
|
-
onClose:
|
|
255
|
-
onSubmit:
|
|
256
|
-
onTextInputFocus:
|
|
257
|
-
options:
|
|
258
|
-
primaryText:
|
|
259
|
-
secondaryText:
|
|
260
|
-
title:
|
|
255
|
+
onBackClick: i.feedbackDialogCallbacks.onBackClick,
|
|
256
|
+
onClose: i.closeSurvey,
|
|
257
|
+
onSubmit: i.submitSurvey,
|
|
258
|
+
onTextInputFocus: i.feedbackDialogCallbacks.onTextInputFocus,
|
|
259
|
+
options: i.survey.options,
|
|
260
|
+
primaryText: i.survey.submitText,
|
|
261
|
+
secondaryText: i.survey.backText,
|
|
262
|
+
title: i.survey.title
|
|
261
263
|
}),
|
|
262
|
-
|
|
264
|
+
x === "visible" && e.footer && /* @__PURE__ */ o(Eo, { footer: e.footer })
|
|
263
265
|
]
|
|
264
266
|
})
|
|
265
267
|
});
|
|
266
268
|
});
|
|
267
269
|
export {
|
|
268
|
-
|
|
270
|
+
Dt as default
|
|
269
271
|
};
|
|
270
272
|
|
|
271
273
|
//# sourceMappingURL=BaseLayout.es.js.map
|