@mx-cartographer/experiences 9.7.201 → 9.7.203
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 +10 -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/blocks/ComponentBlocks/AccountBlock/AccountBlock.es.js +75 -73
- package/dist/insights-v2/blocks/ComponentBlocks/AccountBlock/AccountBlock.es.js.map +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/AccountBlock/layout.d.ts +5 -2
- package/dist/insights-v2/blocks/ComponentBlocks/AccountBlock/layout.es.js +27 -8
- package/dist/insights-v2/blocks/ComponentBlocks/AccountBlock/layout.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/QuizBlock/QuizBlock.es.js +8 -8
- 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/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
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { isProductionPostHogKey as u } from "../../../../core/utils/PostHog.es.js";
|
|
2
|
+
var v = (e) => u(e) ? "01986709-032e-0000-5496-ad8f17623225" : "0198428e-bfe6-0000-002d-1fe2e87b3821", y = (e) => {
|
|
3
|
+
const n = v(e), s = (r, o = {}) => ({ postHog: {
|
|
4
|
+
eventName: r,
|
|
5
|
+
properties: () => ({
|
|
6
|
+
$survey_id: n,
|
|
7
|
+
...o
|
|
8
|
+
})
|
|
9
|
+
} });
|
|
10
|
+
return {
|
|
11
|
+
shown: s("survey shown"),
|
|
12
|
+
dismissed: s("survey dismissed"),
|
|
13
|
+
sent: (r, o, t) => s("survey sent", {
|
|
14
|
+
$survey_response: r,
|
|
15
|
+
$survey_response_1: o,
|
|
16
|
+
$survey_response_2: t
|
|
17
|
+
})
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export {
|
|
21
|
+
y as userFeedbackSurveyEvents,
|
|
22
|
+
v as userFeedbackSurveyId
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
//# sourceMappingURL=survey.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"survey.es.js","names":[],"sources":["../../../../../src/insights-v2/blocks/ComponentBlocks/FeedbackBlock/survey.ts"],"sourcesContent":["import { isProductionPostHogKey } from '../../../../core/utils/PostHog'\nimport type { AnalyticsEventConfigEntry } from '../../../analytics/analyticsEventsConfig'\n\n/** pulse's USER_FEEDBACK_INSIGHT_SURVEY_ID: the same PostHog survey, per environment. */\nexport const userFeedbackSurveyId = (postHogPublicKey?: string) =>\n isProductionPostHogKey(postHogPublicKey)\n ? '01986709-032e-0000-5496-ad8f17623225'\n : '0198428e-bfe6-0000-002d-1fe2e87b3821'\n\n/** The PostHog survey events pulse's UserFeedback beat sends, with the same keys. */\nexport const userFeedbackSurveyEvents = (postHogPublicKey?: string) => {\n const $survey_id = userFeedbackSurveyId(postHogPublicKey)\n const event = (eventName: string, extra: Record<string, unknown> = {}) =>\n ({\n postHog: { eventName, properties: () => ({ $survey_id, ...extra }) },\n }) satisfies AnalyticsEventConfigEntry\n\n return {\n shown: event('survey shown'),\n dismissed: event('survey dismissed'),\n sent: (first?: number, second?: number, feedback?: string) =>\n event('survey sent', {\n $survey_response: first,\n $survey_response_1: second,\n $survey_response_2: feedback,\n }),\n }\n}\n"],"mappings":";AAIA,IAAa,IAAA,CAAwB,MACnC,EAAuB,CAAgB,IACnC,yCACA,wCAGO,IAAA,CAA4B,MAA8B;AACrE,QAAM,IAAa,EAAqB,CAAgB,GAClD,IAAA,CAAS,GAAmB,IAAiC,CAAC,OACjE,EACC,SAAS;AAAA,IAAE,WAAA;AAAA,IAAW,YAAA,OAAmB;AAAA,MAAE,YAAA;AAAA,MAAY,GAAG;AAAA,IAAM;AAAA,EAAG,EACrE;AAEF,SAAO;AAAA,IACL,OAAO,EAAM,cAAc;AAAA,IAC3B,WAAW,EAAM,kBAAkB;AAAA,IACnC,MAAA,CAAO,GAAgB,GAAiB,MACtC,EAAM,eAAe;AAAA,MACnB,kBAAkB;AAAA,MAClB,oBAAoB;AAAA,MACpB,oBAAoB;AAAA,IACtB,CAAC;AAAA,EACL;AACF"}
|
|
@@ -3,10 +3,10 @@ import { useGlobalCopyStore as B, useInsightsV2Store as M, useTransactionStore a
|
|
|
3
3
|
import { QUIZ_CONTEXT as c, QUIZ_VARIANTS as O, isTopMerchant as K, merchantKey as S, quizMerchantLogo as q, rankQuizMerchants as Q, readQuizMerchants as W } from "./quiz.es.js";
|
|
4
4
|
import { actionBlocksKey as F } from "../../../mappings/actionBlocksKey.es.js";
|
|
5
5
|
import { SMALL_CARD_SHADOW as Z } from "../../../components/shared/elevation.es.js";
|
|
6
|
-
import N from "
|
|
7
|
-
import
|
|
8
|
-
import V from "../../../components/
|
|
9
|
-
import
|
|
6
|
+
import { LinedCardZeroState as N } from "../../../../insights/components/shared/ZeroState/LinedCardZeroState.es.js";
|
|
7
|
+
import U from "../../../components/LogoFromGuid.es.js";
|
|
8
|
+
import { ConfettiOverlay as V } from "../../../components/shared/ConfettiOverlay.es.js";
|
|
9
|
+
import j from "../../../components/LogoTile.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(
|
|
36
|
+
return /* @__PURE__ */ r(j, {
|
|
37
37
|
borderColor: null,
|
|
38
38
|
borderRadius: 4,
|
|
39
39
|
size: z,
|
|
@@ -41,7 +41,7 @@ var X = 3e3, z = 32, T = {
|
|
|
41
41
|
position: "relative",
|
|
42
42
|
textAlign: "left"
|
|
43
43
|
},
|
|
44
|
-
children: /* @__PURE__ */ r(
|
|
44
|
+
children: /* @__PURE__ */ r(U, {
|
|
45
45
|
logo: t,
|
|
46
46
|
size: z
|
|
47
47
|
})
|
|
@@ -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(
|
|
133
|
+
}, [t]), !m.length) return /* @__PURE__ */ r(N, {});
|
|
134
134
|
if (k) {
|
|
135
135
|
const n = (i) => f({
|
|
136
136
|
guid: o,
|
|
@@ -161,7 +161,7 @@ var X = 3e3, z = 32, T = {
|
|
|
161
161
|
position: "relative"
|
|
162
162
|
},
|
|
163
163
|
children: [
|
|
164
|
-
s && C && /* @__PURE__ */ r(
|
|
164
|
+
s && C && /* @__PURE__ */ r(V, {}),
|
|
165
165
|
s && /* @__PURE__ */ r(J, {
|
|
166
166
|
copy: t,
|
|
167
167
|
correct: C
|
|
@@ -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
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseLayout.es.js","names":[],"sources":["../../../src/insights-v2/components/BaseLayout.tsx"],"sourcesContent":["import { type MouseEvent, useEffect, useMemo } from 'react'\n\nimport { observer } from 'mobx-react-lite'\n\nimport Box from '@mui/material/Box'\nimport Button from '@mui/material/Button'\nimport Card from '@mui/material/Card'\nimport Stack from '@mui/material/Stack'\n\nimport { ChevronRight } from '@mxenabled/mx-icons'\nimport { P } from '@mxenabled/mxui'\n\nimport { blocks } from '../mappings/blocks'\nimport { actionBlocksKey } from '../mappings/actionBlocksKey'\nimport { isContactSupportCtaDisabled } from '../actionBlocks/ContactSupportActionBlock'\nimport { logoFromRef } from './shared/EntityLogo'\n\nimport Footer from './Footer'\nimport Header from './Header'\nimport FeedbackBar from './FeedbackBar'\nimport FeedbackDialog from './FeedbackDialog'\nimport DismissInsightDialog from './DismissInsightDialog'\nimport HiddenConfirmationCard from './HiddenConfirmationCard'\nimport ErrorCard from './ErrorCard'\nimport LoadingCard from './LoadingCard'\nimport { ObsolesceBanner, type ObsolesceBannerState } from './ObsolesceBanner'\nimport { useAppConfig, useGlobalCopyStore, useGlobalStore, useInsightsV2Store } from '../../common'\nimport { sendClientConfiguredCta } from '../../common/utils/PostMessage'\nimport type { Beat, PrimaryCTA, SecondaryCTA } from '../../core'\nimport { BEAT_ACTIVE_AT_KEY } from '../../core/stores/InsightsV2Store'\nimport { BeatActionsProvider, type BeatActions } from '../beatActions'\nimport { ActionBlockLayer } from '../actionBlocks/ActionBlockLayer'\nimport { HOST_ACTIONS, reportCtaClick, useBeatCtaActions } from '../ctaActions'\nimport { CtaStatus } from './CtaStatus'\nimport { useBeatFeedbackFlow } from '../hooks/useBeatFeedbackFlow'\n\nexport interface ObsoleteState {\n state: ObsolesceBannerState\n onRefresh: () => void\n onDismiss: () => void\n}\n\ninterface BaseLayoutProps {\n beat: Beat\n beatActions?: BeatActions\n obsolete?: ObsoleteState\n /** Swap only the block slot for a LoadingCard (e.g. while a sampled beat loads). */\n isLoading?: boolean\n /** Replace the entire card with an ErrorCard (e.g. when the sample fails to load). */\n isError?: boolean\n}\n\nconst NO_BEAT_ACTIONS: BeatActions = {}\n\nconst OBSOLETE_OVERLAY_SX = {\n position: 'absolute',\n top: 0,\n left: 0,\n width: '100%',\n height: '100%',\n backgroundColor: 'background.default',\n opacity: 0.7,\n // Above every block's own z-index (hero card 1, AccountBlock 2), or that section shows through.\n zIndex: 3,\n} as const\n\n// Figma's 24px text link: 13/16 semibold, 16px line plus 4px above and below, its text starting at the\n// card's 16px inset. A minimum height, not the theme's fixed 44px Button height, so a long or translated\n// label wraps instead of overflowing; MUI's 64px minimum width and centring are undone for the same inset.\n// The in-description links use it as is, with the Button's 20px chevron, so they are 28px tall, as in\n// Figma's Low Account Balance full card (node 438:27877); the 24px is the mini CTA's, which has no icon.\nconst TEXT_LINK_SX = {\n alignSelf: 'flex-start',\n fontSize: 13,\n fontWeight: 600,\n height: 'auto',\n justifyContent: 'flex-start',\n lineHeight: '16px',\n minHeight: 24,\n minWidth: 0,\n px: 0,\n py: 4,\n textAlign: 'left',\n} as const\n\n// Mini CTA label, which fits Pulse's 312px mini slide as a text link.\nconst MINI_CTA_SX = {\n ...TEXT_LINK_SX,\n alignItems: 'center',\n display: 'flex',\n textTransform: 'none',\n} as const\n\n// The instance_slot grows into the height a fixed-height host leaves (Pulse's 312px mini slide; a full card leaves\n// none) and shrinks so a chart sized from its container fits. `clip` cuts a block that still cannot fit at the\n// slot's edge without making the slot a scroll container; the 4px margin keeps focus rings and edge shadows.\nconst INSTANCE_SLOT_SX = {\n flexGrow: 1,\n minHeight: 0,\n overflow: 'clip',\n overflowClipMargin: 4,\n // The block's root fills the slot, contents centred: `justifyContent` for a column, `alignContent` for a block or\n // a row. Zero specificity (`*:where(&)`), so any value the block sets wins; a row-root block must set its own\n // `justifyContent`, or this centres it sideways. `:first-of-type`, not `:first-child`: Emotion flags the latter\n // as SSR-unsafe, and a block renders one root.\n '*:where(&) > :where(:first-of-type)': {\n alignContent: 'center',\n height: '100%',\n justifyContent: 'center',\n },\n} as const\n\n// Full card's secondary CTA (e.g. Fee Detected's Contact Support): a quiet text button, 13/16\n// semibold in text.secondary, at least 40px tall with 12/16 padding, as in Figma. `color=\"inherit\"` keeps\n// hover, ripple and focus off the primary palette. An unavailable CTA (contact_support_block with no host\n// handler) is dimmed at the call site, as the primary CTA is, because it is only aria-disabled and so\n// never matches `.Mui-disabled`.\nconst SECONDARY_CTA_SX = {\n color: 'text.secondary',\n fontSize: 13,\n fontWeight: 600,\n height: 'auto',\n lineHeight: '16px',\n minHeight: 40,\n px: 16,\n py: 12,\n '&.Mui-disabled': { color: 'text.disabled' },\n} as const\n\nconst BaseLayout = observer(\n ({\n beat,\n beatActions = NO_BEAT_ACTIONS,\n obsolete,\n isLoading = false,\n isError = false,\n }: BaseLayoutProps) => {\n const copy = useGlobalCopyStore()\n const insightsV2Store = useInsightsV2Store()\n const { config } = useAppConfig()\n const flow = useBeatFeedbackFlow(beat, beatActions)\n\n const stores = useGlobalStore()\n const {\n runCta: handleCtaClick,\n primary: primaryCtaState,\n secondary: secondaryCtaState,\n linkPresentation,\n } = useBeatCtaActions(\n beat,\n beatActions,\n beat.insights_payload?.primary_cta ?? undefined,\n beat.insights_payload?.secondary_cta ?? undefined,\n beat.insights_payload?.in_description_cta ?? undefined,\n )\n\n // Guard: payload may not be loaded yet (isLoading/isError states).\n const isMini = beat.insights_payload?.widget_type === 'mini'\n\n // A sampled beat is re-read without active_at after a CTA; keep the card's for its drawers.\n const activeAt = beat.active_at ?? beat.insights_payload?.active_at\n useEffect(() => {\n if (activeAt == null || activeAt === '') return\n insightsV2Store.setBeatContext(beat.guid, { [BEAT_ACTIVE_AT_KEY]: activeAt })\n }, [activeAt, beat.guid, insightsV2Store])\n\n // Memoized: an inline object here would change identity every render, making every\n // useAnalyticsEvent() consumer's callback (and its effect deps) unstable too.\n const beatActionsValue = useMemo(\n () => ({ ...flow.wrappedActions, beat }),\n [flow.wrappedActions, beat],\n )\n\n // Error replaces the entire card; loading only swaps the block slot (below).\n if (isError) return <ErrorCard />\n\n const insights_payload = beat.insights_payload\n\n if (!insights_payload) return null\n if (flow.cardState === 'dismissed') return null\n\n const { instance_slot, primary_cta, secondary_cta, sub_title, title, guid, dismissed_at } =\n insights_payload\n const { block } = instance_slot\n\n // Rebuild V1 subtitle shape; sub_title wins if present.\n const subtitle =\n sub_title ??\n (insights_payload.subtitle\n ? {\n logo: logoFromRef(insights_payload.logo),\n text: insights_payload.subtitle,\n }\n : undefined)\n\n // CTAs run via ctaActions; contact_support_block bypasses it.\n const isCtaDisabled = (ctaBlock: string | null | undefined) =>\n isContactSupportCtaDisabled(ctaBlock, config, beatActions.onContactSupport)\n\n const onCtaClick = async (slot: 'primary' | 'secondary', cta: PrimaryCTA | SecondaryCTA) => {\n if (isCtaDisabled(cta.block)) return\n\n if (cta.block === actionBlocksKey.CONTACT_SUPPORT_ACTION_BLOCK) {\n // Bypasses the runner, but still reports the press like any other CTA: the generic\n // press event, and (on a first primary press) FIRST_TIME_PRIMARY_ACTION_SELECTED +\n // cta_clicked_at.\n reportCtaClick({ beat, stores, hostActions: beatActions, slot })\n beatActions.onContactSupport?.()\n return\n }\n\n await handleCtaClick(slot, cta)\n }\n\n const Block = blocks[block as keyof typeof blocks]\n\n const inDescriptionCta = insights_payload.in_description_cta\n // Full card: the envelope's link opens the drawer its block names. A link with no block (mini's\n // \"Make a Transfer\") is the card's action, drawn as the mini label below, never a dead link.\n const envelopeLink =\n !isMini && inDescriptionCta?.label && inDescriptionCta.block ? inDescriptionCta : undefined\n // The card's action label: the primary CTA's, else a block-less envelope link's (ditto ≥ 1.4.3\n // sends mini's action as in_description_cta). `||`, not `??`: the copy may send the primary label\n // as \"\" rather than omit it, and an empty string must fall through. It is a button only on a full\n // card with a primary CTA; otherwise a label, so a tap reaches the host's card handler.\n const ctaLabel =\n primary_cta?.label || (envelopeLink ? undefined : inDescriptionCta?.label) || undefined\n const isCtaButton = !isMini && !!primary_cta?.label\n const clientConfiguredLabel = beat.in_description_cta || beat.html_in_description_cta\n const onClientConfiguredLinkClick = () => {\n const { is_mobile_webview, clientConfig } = stores.appDataStore.appConfig\n\n sendClientConfiguredCta(beat.template, {\n isMobileWebview: is_mobile_webview,\n webviewScheme: clientConfig?.master?.ui_message_webview_url_scheme,\n userGuid: insights_payload.user_guid ?? beat.user_guid,\n })\n }\n // The primary step's presenter may draw a status or nothing instead of the button (full card only).\n const primaryPresentation = isCtaButton ? primaryCtaState.presentation : undefined\n const hidesAllCtas = primaryPresentation?.kind === 'hidden' && !!primaryPresentation.hideAll\n const showSecondaryCta = !isMini && !!secondary_cta?.label && !hidesAllCtas\n // Mini: the card's action (in_description_cta) mirrors the full card's state, as a label only.\n // Answered → the status's action word (Undo) and its answered title; hidden → no label. The tap\n // stays the host's (it opens the insight with its block), so nothing runs from mini itself.\n const miniPresentation = isMini ? linkPresentation : undefined\n const miniStatus = miniPresentation?.kind === 'status' ? miniPresentation : undefined\n const actionLabel = miniPresentation ? miniStatus?.action?.label : ctaLabel\n const cardTitle = miniPresentation?.title || title || ''\n const showActionLink = !!actionLabel && !isCtaButton\n const showCtaRow = (isCtaButton && primaryPresentation?.kind !== 'hidden') || showSecondaryCta\n const handleMiniActionClick = (event: MouseEvent) => {\n const { onCtaAction } = beatActions\n if (!onCtaAction) return\n event.stopPropagation()\n Promise.resolve()\n .then(() => onCtaAction({ beatGuid: beat.guid, name: HOST_ACTIONS.cardClick }))\n .catch((error) =>\n stores.captureException(error, {\n store: 'BaseLayout',\n template: beat.template,\n handler: 'cardClick',\n }),\n )\n }\n const obsoleteCopy = copy.insights_feed?.general\n const isObsoleteDimmed =\n obsolete?.state === 'not_refreshable' && !dismissed_at && !!obsoleteCopy\n\n return (\n <BeatActionsProvider value={beatActionsValue}>\n <Stack sx={{ mb: 16 }}>\n {flow.cardState === 'confirming' ? (\n <HiddenConfirmationCard\n onClose={flow.collapseConfirmation}\n onLeaveFeedback={flow.openHideSurvey}\n onUndo={flow.undoDismiss}\n />\n ) : (\n <>\n {obsolete && obsoleteCopy && <ObsolesceBanner {...obsolete} copy={obsoleteCopy} />}\n <Card\n inert={isObsoleteDimmed}\n sx={{\n display: 'flex',\n flexDirection: 'column',\n ...(isObsoleteDimmed && {\n position: 'relative',\n zIndex: 2,\n pointerEvents: 'none',\n }),\n }}\n >\n {isObsoleteDimmed && <Box sx={OBSOLETE_OVERLAY_SX} />}\n <Header isMini={isMini} subtitle={subtitle} title={cardTitle} />\n <Box sx={INSTANCE_SLOT_SX}>\n {isLoading ? (\n <LoadingCard />\n ) : (\n Block && <Block beatGuid={guid} payload={insights_payload} />\n )}\n </Box>\n\n {/* Figma Template/Insight Card: with an empty slot, the description follows the header's 12px. */}\n <Stack sx={{ gap: 6, pb: 16, pt: isLoading || Block ? 12 : 0, px: 16 }}>\n <P\n dangerouslySetInnerHTML={{\n __html: insights_payload.description.html_text,\n }}\n sx={{ fontWeight: 'fontWeightRegular' }}\n variant=\"subtitle2\"\n />\n {/* V2: the envelope's link opens the action block it names. */}\n {envelopeLink && (\n <Button\n endIcon={<ChevronRight />}\n onClick={() =>\n insightsV2Store.openActionDrawer({ guid, trigger: 'inDescriptionCta' })\n }\n sx={TEXT_LINK_SX}\n >\n {envelopeLink.label}\n </Button>\n )}\n {/* The card's action with no primary CTA button, never a drawer: mini hands its tap to\n the host (`cardClick`); a full card's block-less link bubbles to the host's card handler. */}\n {showActionLink && (\n <Button\n onClick={isMini ? handleMiniActionClick : undefined}\n sx={MINI_CTA_SX}\n variant=\"text\"\n >\n {actionLabel}\n </Button>\n )}\n {/* Custom-copy link when the envelope sends none; legacy mini shows it too, so no mini guard. */}\n {!inDescriptionCta?.label && clientConfiguredLabel && (\n <Button\n endIcon={<ChevronRight />}\n onClick={onClientConfiguredLinkClick}\n sx={TEXT_LINK_SX}\n >\n {clientConfiguredLabel}\n </Button>\n )}\n </Stack>\n\n {showCtaRow && (\n <Stack sx={{ gap: 8, pb: 16, px: 16 }}>\n {isCtaButton && primary_cta && primaryPresentation?.kind === 'status' && (\n <CtaStatus\n action={primaryPresentation.action}\n sx={primaryPresentation.sx}\n icon={primaryPresentation.icon}\n label={primaryPresentation.label}\n tone={primaryPresentation.tone}\n />\n )}\n {isCtaButton && primary_cta && !primaryPresentation && (\n <Button\n aria-disabled={isCtaDisabled(primary_cta.block) || primaryCtaState.disabled}\n disabled={primaryCtaState.disabled}\n onClick={() => onCtaClick('primary', primary_cta)}\n sx={{\n ...(isCtaDisabled(primary_cta.block) && { color: 'text.disabled' }),\n }}\n variant=\"outlined\"\n >\n {primary_cta.label}\n </Button>\n )}\n {/* Mini has room for one CTA. */}\n {showSecondaryCta && secondary_cta && (\n <Button\n aria-disabled={\n isCtaDisabled(secondary_cta.block) || secondaryCtaState.disabled\n }\n color=\"inherit\"\n disabled={secondaryCtaState.disabled}\n onClick={() => onCtaClick('secondary', secondary_cta)}\n sx={{\n ...SECONDARY_CTA_SX,\n ...(isCtaDisabled(secondary_cta.block) && { color: 'text.disabled' }),\n }}\n >\n {secondary_cta.label}\n </Button>\n )}\n </Stack>\n )}\n\n <FeedbackBar onTellUsMore={flow.openRatingSurvey} show={flow.isFeedbackBarShown} />\n </Card>\n </>\n )}\n\n <ActionBlockLayer beat={beat} />\n\n <DismissInsightDialog\n isOpen={flow.isDismissOpen}\n onClose={flow.closeDismissDialog}\n onDismiss={flow.confirmDismiss}\n />\n\n {flow.isSurveyOpen && (\n <FeedbackDialog\n characterLimitLabel={flow.survey.characterLimitLabel}\n closeAriaLabel={flow.survey.closeAriaLabel}\n isOpen={true}\n onBackClick={flow.feedbackDialogCallbacks.onBackClick}\n onClose={flow.closeSurvey}\n onSubmit={flow.submitSurvey}\n onTextInputFocus={flow.feedbackDialogCallbacks.onTextInputFocus}\n options={flow.survey.options}\n primaryText={flow.survey.submitText}\n secondaryText={flow.survey.backText}\n title={flow.survey.title}\n />\n )}\n\n {flow.cardState === 'visible' && insights_payload.footer && (\n <Footer footer={insights_payload.footer} />\n )}\n </Stack>\n </BeatActionsProvider>\n )\n },\n)\n\nexport default BaseLayout\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoDA,IAAM,KAA+B,CAAC,GAEhC,KAAsB;AAAA,EAC1B,UAAU;AAAA,EACV,KAAK;AAAA,EACL,MAAM;AAAA,EACN,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,iBAAiB;AAAA,EACjB,SAAS;AAAA,EAET,QAAQ;AACV,GAOM,IAAe;AAAA,EACnB,WAAW;AAAA,EACX,UAAU;AAAA,EACV,YAAY;AAAA,EACZ,QAAQ;AAAA,EACR,gBAAgB;AAAA,EAChB,YAAY;AAAA,EACZ,WAAW;AAAA,EACX,UAAU;AAAA,EACV,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,WAAW;AACb,GAGM,KAAc;AAAA,EAClB,GAAG;AAAA,EACH,YAAY;AAAA,EACZ,SAAS;AAAA,EACT,eAAe;AACjB,GAKM,KAAmB;AAAA,EACvB,UAAU;AAAA,EACV,WAAW;AAAA,EACX,UAAU;AAAA,EACV,oBAAoB;AAAA,EAKpB,uCAAuC;AAAA,IACrC,cAAc;AAAA,IACd,QAAQ;AAAA,IACR,gBAAgB;AAAA,EAClB;AACF,GAOM,KAAmB;AAAA,EACvB,OAAO;AAAA,EACP,UAAU;AAAA,EACV,YAAY;AAAA,EACZ,QAAQ;AAAA,EACR,YAAY;AAA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,EAAK;AAAA,UACd,WAAW,EAAK;AAAA,QACjB,CAAA;AAAA,QAEA,EAAK,gBACJ,gBAAA,EAAC,IAAD;AAAA,UACE,qBAAqB,EAAK,OAAO;AAAA,UACjC,gBAAgB,EAAK,OAAO;AAAA,UAC5B,QAAQ;AAAA,UACR,aAAa,EAAK,wBAAwB;AAAA,UAC1C,SAAS,EAAK;AAAA,UACd,UAAU,EAAK;AAAA,UACf,kBAAkB,EAAK,wBAAwB;AAAA,UAC/C,SAAS,EAAK,OAAO;AAAA,UACrB,aAAa,EAAK,OAAO;AAAA,UACzB,eAAe,EAAK,OAAO;AAAA,UAC3B,OAAO,EAAK,OAAO;AAAA,QACpB,CAAA;AAAA,QAGF,EAAK,cAAc,aAAa,EAAiB,UAChD,gBAAA,EAAC,IAAD,EAAQ,QAAQ,EAAiB,OAAS,CAAA;AAAA,MAEvC;AAAA;EACY,CAAA;AAEzB,CACF"}
|
|
1
|
+
{"version":3,"file":"BaseLayout.es.js","names":[],"sources":["../../../src/insights-v2/components/BaseLayout.tsx"],"sourcesContent":["import { type MouseEvent, useEffect, useMemo } from 'react'\n\nimport { observer } from 'mobx-react-lite'\n\nimport Box from '@mui/material/Box'\nimport Button from '@mui/material/Button'\nimport Card from '@mui/material/Card'\nimport Stack from '@mui/material/Stack'\n\nimport { ChevronRight } from '@mxenabled/mx-icons'\nimport { P } from '@mxenabled/mxui'\n\nimport { blocks } from '../mappings/blocks'\nimport { actionBlocksKey } from '../mappings/actionBlocksKey'\nimport { isContactSupportCtaDisabled } from '../actionBlocks/ContactSupportActionBlock'\nimport { logoFromRef } from './shared/EntityLogo'\n\nimport Footer from './Footer'\nimport Header from './Header'\nimport FeedbackBar from './FeedbackBar'\nimport FeedbackDialog from './FeedbackDialog'\nimport DismissInsightDialog from './DismissInsightDialog'\nimport HiddenConfirmationCard from './HiddenConfirmationCard'\nimport ErrorCard from './ErrorCard'\nimport LoadingCard from './LoadingCard'\nimport { ObsolesceBanner, type ObsolesceBannerState } from './ObsolesceBanner'\nimport { useAppConfig, useGlobalCopyStore, useGlobalStore, useInsightsV2Store } from '../../common'\nimport { sendClientConfiguredCta } from '../../common/utils/PostMessage'\nimport type { Beat, PrimaryCTA, SecondaryCTA } from '../../core'\nimport {\n BEAT_ACTIVE_AT_KEY,\n BEAT_CARD_TITLE_KEY,\n BEAT_KEEP_AFTER_DISMISS_KEY,\n} from '../../core/stores/InsightsV2Store'\nimport { BeatActionsProvider, type BeatActions } from '../beatActions'\nimport { ActionBlockLayer } from '../actionBlocks/ActionBlockLayer'\nimport { HOST_ACTIONS, reportCtaClick, useBeatCtaActions } from '../ctaActions'\nimport { CtaStatus } from './CtaStatus'\nimport { useBeatFeedbackFlow } from '../hooks/useBeatFeedbackFlow'\n\nexport interface ObsoleteState {\n state: ObsolesceBannerState\n onRefresh: () => void\n onDismiss: () => void\n}\n\ninterface BaseLayoutProps {\n beat: Beat\n beatActions?: BeatActions\n obsolete?: ObsoleteState\n /** Swap only the block slot for a LoadingCard (e.g. while a sampled beat loads). */\n isLoading?: boolean\n /** Replace the entire card with an ErrorCard (e.g. when the sample fails to load). */\n isError?: boolean\n}\n\nconst NO_BEAT_ACTIONS: BeatActions = {}\n\nconst OBSOLETE_OVERLAY_SX = {\n position: 'absolute',\n top: 0,\n left: 0,\n width: '100%',\n height: '100%',\n backgroundColor: 'background.default',\n opacity: 0.7,\n // Above every block's own z-index (hero card 1, AccountBlock 2), or that section shows through.\n zIndex: 3,\n} as const\n\n// Figma's 24px text link: 13/16 semibold, 16px line plus 4px above and below, its text starting at the\n// card's 16px inset. A minimum height, not the theme's fixed 44px Button height, so a long or translated\n// label wraps instead of overflowing; MUI's 64px minimum width and centring are undone for the same inset.\n// The in-description links use it as is, with the Button's 20px chevron, so they are 28px tall, as in\n// Figma's Low Account Balance full card (node 438:27877); the 24px is the mini CTA's, which has no icon.\nconst TEXT_LINK_SX = {\n alignSelf: 'flex-start',\n fontSize: 13,\n fontWeight: 600,\n height: 'auto',\n justifyContent: 'flex-start',\n lineHeight: '16px',\n minHeight: 24,\n minWidth: 0,\n px: 0,\n py: 4,\n textAlign: 'left',\n} as const\n\n// Mini CTA label, which fits Pulse's 312px mini slide as a text link.\nconst MINI_CTA_SX = {\n ...TEXT_LINK_SX,\n alignItems: 'center',\n display: 'flex',\n textTransform: 'none',\n} as const\n\n// The instance_slot grows into the height a fixed-height host leaves (Pulse's 312px mini slide; a full card leaves\n// none) and shrinks so a chart sized from its container fits. `clip` cuts a block that still cannot fit at the\n// slot's edge without making the slot a scroll container; the 4px margin keeps focus rings and edge shadows.\nconst INSTANCE_SLOT_SX = {\n flexGrow: 1,\n minHeight: 0,\n overflow: 'clip',\n overflowClipMargin: 4,\n // The block's root fills the slot, contents centred: `justifyContent` for a column, `alignContent` for a block or\n // a row. Zero specificity (`*:where(&)`), so any value the block sets wins; a row-root block must set its own\n // `justifyContent`, or this centres it sideways. `:first-of-type`, not `:first-child`: Emotion flags the latter\n // as SSR-unsafe, and a block renders one root.\n '*:where(&) > :where(:first-of-type)': {\n alignContent: 'center',\n height: '100%',\n justifyContent: 'center',\n },\n} as const\n\n// Full card's secondary CTA (e.g. Fee Detected's Contact Support): a quiet text button, 13/16\n// semibold in text.secondary, at least 40px tall with 12/16 padding, as in Figma. `color=\"inherit\"` keeps\n// hover, ripple and focus off the primary palette. An unavailable CTA (contact_support_block with no host\n// handler) is dimmed at the call site, as the primary CTA is, because it is only aria-disabled and so\n// never matches `.Mui-disabled`.\nconst SECONDARY_CTA_SX = {\n color: 'text.secondary',\n fontSize: 13,\n fontWeight: 600,\n height: 'auto',\n lineHeight: '16px',\n minHeight: 40,\n px: 16,\n py: 12,\n '&.Mui-disabled': { color: 'text.disabled' },\n} as const\n\nconst BaseLayout = observer(\n ({\n beat,\n beatActions = NO_BEAT_ACTIONS,\n obsolete,\n isLoading = false,\n isError = false,\n }: BaseLayoutProps) => {\n const copy = useGlobalCopyStore()\n const insightsV2Store = useInsightsV2Store()\n const { config } = useAppConfig()\n const flow = useBeatFeedbackFlow(beat, beatActions)\n\n const stores = useGlobalStore()\n const {\n runCta: handleCtaClick,\n primary: primaryCtaState,\n secondary: secondaryCtaState,\n linkPresentation,\n } = useBeatCtaActions(\n beat,\n beatActions,\n beat.insights_payload?.primary_cta ?? undefined,\n beat.insights_payload?.secondary_cta ?? undefined,\n beat.insights_payload?.in_description_cta ?? undefined,\n )\n\n // Guard: payload may not be loaded yet (isLoading/isError states).\n const isMini = beat.insights_payload?.widget_type === 'mini'\n\n // A sampled beat is re-read without active_at after a CTA; keep the card's for its drawers.\n const activeAt = beat.active_at ?? beat.insights_payload?.active_at\n useEffect(() => {\n if (activeAt == null || activeAt === '') return\n insightsV2Store.setBeatContext(beat.guid, { [BEAT_ACTIVE_AT_KEY]: activeAt })\n }, [activeAt, beat.guid, insightsV2Store])\n\n // Memoized: an inline object here would change identity every render, making every\n // useAnalyticsEvent() consumer's callback (and its effect deps) unstable too.\n const beatActionsValue = useMemo(\n () => ({ ...flow.wrappedActions, beat }),\n [flow.wrappedActions, beat],\n )\n\n // A block that dismissed its own beat sets keep_after_dismiss: the card stays (not the hidden\n // card) until the feed refreshes, without the overflow menu, since the beat is already gone.\n const blockContext = insightsV2Store.beatContext[beat.guid]\n const keepsAfterDismiss = !!blockContext?.[BEAT_KEEP_AFTER_DISMISS_KEY]\n const cardState = keepsAfterDismiss ? 'visible' : flow.cardState\n\n // Error replaces the entire card; loading only swaps the block slot (below).\n if (isError) return <ErrorCard />\n\n const insights_payload = beat.insights_payload\n\n if (!insights_payload) return null\n if (cardState === 'dismissed') return null\n\n const { instance_slot, primary_cta, secondary_cta, sub_title, title, guid, dismissed_at } =\n insights_payload\n const { block } = instance_slot\n\n // Rebuild V1 subtitle shape; sub_title wins if present.\n const subtitle =\n sub_title ??\n (insights_payload.subtitle\n ? {\n logo: logoFromRef(insights_payload.logo),\n text: insights_payload.subtitle,\n }\n : undefined)\n\n // CTAs run via ctaActions; contact_support_block bypasses it.\n const isCtaDisabled = (ctaBlock: string | null | undefined) =>\n isContactSupportCtaDisabled(ctaBlock, config, beatActions.onContactSupport)\n\n const onCtaClick = async (slot: 'primary' | 'secondary', cta: PrimaryCTA | SecondaryCTA) => {\n if (isCtaDisabled(cta.block)) return\n\n if (cta.block === actionBlocksKey.CONTACT_SUPPORT_ACTION_BLOCK) {\n // Bypasses the runner, but still reports the press like any other CTA: the generic\n // press event, and (on a first primary press) FIRST_TIME_PRIMARY_ACTION_SELECTED +\n // cta_clicked_at.\n reportCtaClick({ beat, stores, hostActions: beatActions, slot })\n beatActions.onContactSupport?.()\n return\n }\n\n await handleCtaClick(slot, cta)\n }\n\n const Block = blocks[block as keyof typeof blocks]\n\n const inDescriptionCta = insights_payload.in_description_cta\n // Full card: the envelope's link opens the drawer its block names. A link with no block (mini's\n // \"Make a Transfer\") is the card's action, drawn as the mini label below, never a dead link.\n const envelopeLink =\n !isMini && inDescriptionCta?.label && inDescriptionCta.block ? inDescriptionCta : undefined\n // The card's action label: the primary CTA's, else a block-less envelope link's (ditto ≥ 1.4.3\n // sends mini's action as in_description_cta). `||`, not `??`: the copy may send the primary label\n // as \"\" rather than omit it, and an empty string must fall through. It is a button only on a full\n // card with a primary CTA; otherwise a label, so a tap reaches the host's card handler.\n const ctaLabel =\n primary_cta?.label || (envelopeLink ? undefined : inDescriptionCta?.label) || undefined\n const isCtaButton = !isMini && !!primary_cta?.label\n const clientConfiguredLabel = beat.in_description_cta || beat.html_in_description_cta\n const onClientConfiguredLinkClick = () => {\n const { is_mobile_webview, clientConfig } = stores.appDataStore.appConfig\n\n sendClientConfiguredCta(beat.template, {\n isMobileWebview: is_mobile_webview,\n webviewScheme: clientConfig?.master?.ui_message_webview_url_scheme,\n userGuid: insights_payload.user_guid ?? beat.user_guid,\n })\n }\n // The primary step's presenter may draw a status or nothing instead of the button (full card only).\n const primaryPresentation = isCtaButton ? primaryCtaState.presentation : undefined\n const hidesAllCtas = primaryPresentation?.kind === 'hidden' && !!primaryPresentation.hideAll\n const showSecondaryCta = !isMini && !!secondary_cta?.label && !hidesAllCtas\n // Mini: the card's action (in_description_cta) mirrors the full card's state, as a label only.\n // Answered → the status's action word (Undo) and its answered title; hidden → no label. The tap\n // stays the host's (it opens the insight with its block), so nothing runs from mini itself.\n const miniPresentation = isMini ? linkPresentation : undefined\n const miniStatus = miniPresentation?.kind === 'status' ? miniPresentation : undefined\n const actionLabel = miniPresentation ? miniStatus?.action?.label : ctaLabel\n const blockTitle = blockContext?.[BEAT_CARD_TITLE_KEY]\n const cardTitle =\n miniPresentation?.title || (typeof blockTitle === 'string' ? blockTitle : '') || title || ''\n const showActionLink = !!actionLabel && !isCtaButton\n // A block that writes card_title owns the card's header: its title wraps, and the description row\n // drops when it has nothing to show. Every other card keeps the row, so an empty description still\n // spaces the CTAs as before.\n const blockOwnsHeader = typeof blockTitle === 'string'\n const showDescriptionRow =\n !blockOwnsHeader ||\n !!insights_payload.description.html_text ||\n !!envelopeLink ||\n showActionLink ||\n (!inDescriptionCta?.label && !!clientConfiguredLabel)\n const showCtaRow = (isCtaButton && primaryPresentation?.kind !== 'hidden') || showSecondaryCta\n const handleMiniActionClick = (event: MouseEvent) => {\n const { onCtaAction } = beatActions\n if (!onCtaAction) return\n event.stopPropagation()\n Promise.resolve()\n .then(() => onCtaAction({ beatGuid: beat.guid, name: HOST_ACTIONS.cardClick }))\n .catch((error) =>\n stores.captureException(error, {\n store: 'BaseLayout',\n template: beat.template,\n handler: 'cardClick',\n }),\n )\n }\n const obsoleteCopy = copy.insights_feed?.general\n const isObsoleteDimmed =\n obsolete?.state === 'not_refreshable' && !dismissed_at && !!obsoleteCopy\n\n return (\n <BeatActionsProvider value={beatActionsValue}>\n <Stack sx={{ mb: 16 }}>\n {cardState === 'confirming' ? (\n <HiddenConfirmationCard\n onClose={flow.collapseConfirmation}\n onLeaveFeedback={flow.openHideSurvey}\n onUndo={flow.undoDismiss}\n />\n ) : (\n <>\n {obsolete && obsoleteCopy && <ObsolesceBanner {...obsolete} copy={obsoleteCopy} />}\n <Card\n inert={isObsoleteDimmed}\n sx={{\n display: 'flex',\n flexDirection: 'column',\n ...(isObsoleteDimmed && {\n position: 'relative',\n zIndex: 2,\n pointerEvents: 'none',\n }),\n }}\n >\n {isObsoleteDimmed && <Box sx={OBSOLETE_OVERLAY_SX} />}\n <Header\n hidesMenu={keepsAfterDismiss}\n isMini={isMini}\n subtitle={subtitle}\n title={cardTitle}\n wrapsTitle={blockOwnsHeader}\n />\n <Box sx={INSTANCE_SLOT_SX}>\n {isLoading ? (\n <LoadingCard />\n ) : (\n Block && <Block beatGuid={guid} payload={insights_payload} />\n )}\n </Box>\n\n {/* Figma Template/Insight Card: with an empty slot, the description follows the header's 12px. */}\n {showDescriptionRow && (\n <Stack sx={{ gap: 6, pb: 16, pt: isLoading || Block ? 12 : 0, px: 16 }}>\n <P\n dangerouslySetInnerHTML={{\n __html: insights_payload.description.html_text,\n }}\n sx={{ fontWeight: 'fontWeightRegular' }}\n variant=\"subtitle2\"\n />\n {/* V2: the envelope's link opens the action block it names. */}\n {envelopeLink && (\n <Button\n endIcon={<ChevronRight />}\n onClick={() =>\n insightsV2Store.openActionDrawer({ guid, trigger: 'inDescriptionCta' })\n }\n sx={TEXT_LINK_SX}\n >\n {envelopeLink.label}\n </Button>\n )}\n {/* The card's action with no primary CTA button, never a drawer: mini hands its tap to\n the host (`cardClick`); a full card's block-less link bubbles to the host's card handler. */}\n {showActionLink && (\n <Button\n onClick={isMini ? handleMiniActionClick : undefined}\n sx={MINI_CTA_SX}\n variant=\"text\"\n >\n {actionLabel}\n </Button>\n )}\n {/* Custom-copy link when the envelope sends none; legacy mini shows it too, so no mini guard. */}\n {!inDescriptionCta?.label && clientConfiguredLabel && (\n <Button\n endIcon={<ChevronRight />}\n onClick={onClientConfiguredLinkClick}\n sx={TEXT_LINK_SX}\n >\n {clientConfiguredLabel}\n </Button>\n )}\n </Stack>\n )}\n\n {showCtaRow && (\n <Stack sx={{ gap: 8, pb: 16, px: 16 }}>\n {isCtaButton && primary_cta && primaryPresentation?.kind === 'status' && (\n <CtaStatus\n action={primaryPresentation.action}\n sx={primaryPresentation.sx}\n icon={primaryPresentation.icon}\n label={primaryPresentation.label}\n tone={primaryPresentation.tone}\n />\n )}\n {isCtaButton && primary_cta && !primaryPresentation && (\n <Button\n aria-disabled={isCtaDisabled(primary_cta.block) || primaryCtaState.disabled}\n disabled={primaryCtaState.disabled}\n onClick={() => onCtaClick('primary', primary_cta)}\n sx={{\n ...(isCtaDisabled(primary_cta.block) && { color: 'text.disabled' }),\n }}\n variant=\"outlined\"\n >\n {primary_cta.label}\n </Button>\n )}\n {/* Mini has room for one CTA. */}\n {showSecondaryCta && secondary_cta && (\n <Button\n aria-disabled={\n isCtaDisabled(secondary_cta.block) || secondaryCtaState.disabled\n }\n color=\"inherit\"\n disabled={secondaryCtaState.disabled}\n onClick={() => onCtaClick('secondary', secondary_cta)}\n sx={{\n ...SECONDARY_CTA_SX,\n ...(isCtaDisabled(secondary_cta.block) && { color: 'text.disabled' }),\n }}\n >\n {secondary_cta.label}\n </Button>\n )}\n </Stack>\n )}\n\n <FeedbackBar onTellUsMore={flow.openRatingSurvey} show={flow.isFeedbackBarShown} />\n </Card>\n </>\n )}\n\n <ActionBlockLayer beat={beat} />\n\n <DismissInsightDialog\n isOpen={flow.isDismissOpen}\n onClose={flow.closeDismissDialog}\n onDismiss={flow.confirmDismiss}\n />\n\n {flow.isSurveyOpen && (\n <FeedbackDialog\n characterLimitLabel={flow.survey.characterLimitLabel}\n closeAriaLabel={flow.survey.closeAriaLabel}\n isOpen={true}\n onBackClick={flow.feedbackDialogCallbacks.onBackClick}\n onClose={flow.closeSurvey}\n onSubmit={flow.submitSurvey}\n onTextInputFocus={flow.feedbackDialogCallbacks.onTextInputFocus}\n options={flow.survey.options}\n primaryText={flow.survey.submitText}\n secondaryText={flow.survey.backText}\n title={flow.survey.title}\n />\n )}\n\n {cardState === 'visible' && insights_payload.footer && (\n <Footer footer={insights_payload.footer} />\n )}\n </Stack>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