@mx-cartographer/experiences 9.4.62 → 9.4.64
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 +17 -0
- package/dist/common/constants/Analytics.d.ts +2 -1
- package/dist/common/constants/Analytics.es.js +2 -1
- package/dist/common/constants/Analytics.es.js.map +1 -1
- package/dist/core/constants/Help.d.ts +5 -10
- package/dist/core/constants/Help.es.js +26 -11
- package/dist/core/constants/Help.es.js.map +1 -1
- package/dist/core/stores/TrendsStore.d.ts +14 -0
- package/dist/core/stores/TrendsStore.es.js +43 -30
- package/dist/core/stores/TrendsStore.es.js.map +1 -1
- package/dist/core/types/Help.d.ts +10 -1
- package/dist/core/types/localization/HelpCopy.d.ts +40 -2
- package/dist/core/utils/HelpUtil.es.js +19 -16
- package/dist/core/utils/HelpUtil.es.js.map +1 -1
- package/dist/help/components/Help.es.js +50 -39
- package/dist/help/components/Help.es.js.map +1 -1
- package/dist/help/components/HelpContent.es.js +41 -20
- package/dist/help/components/HelpContent.es.js.map +1 -1
- package/dist/help/components/HelpList.d.ts +2 -1
- package/dist/help/components/HelpList.es.js +167 -124
- package/dist/help/components/HelpList.es.js.map +1 -1
- package/dist/help/components/SupportPrompt.d.ts +10 -0
- package/dist/help/components/SupportPrompt.es.js +37 -0
- package/dist/help/components/SupportPrompt.es.js.map +1 -0
- package/dist/help/components/content/section/LoginIssues.d.ts +4 -0
- package/dist/help/components/content/section/LoginIssues.es.js +69 -0
- package/dist/help/components/content/section/LoginIssues.es.js.map +1 -0
- package/dist/help/components/content/section/index.d.ts +1 -0
- package/dist/help/components/content/section/index.es.js +16 -14
- package/dist/help/components/content/section/index.es.js.map +1 -1
- package/dist/help/components/requestsupport/HelpByCategoryList.d.ts +6 -1
- package/dist/help/components/requestsupport/HelpByCategoryList.es.js +108 -42
- package/dist/help/components/requestsupport/HelpByCategoryList.es.js.map +1 -1
- package/dist/help/components/requestsupport/RequestSupport.d.ts +3 -1
- package/dist/help/components/requestsupport/RequestSupport.es.js +154 -138
- package/dist/help/components/requestsupport/RequestSupport.es.js.map +1 -1
- package/dist/trends/TrendsWidget.es.js +127 -122
- package/dist/trends/TrendsWidget.es.js.map +1 -1
- package/dist/trends/components/TrendsTableContainer.es.js +0 -2
- package/dist/trends/components/TrendsTableContainer.es.js.map +1 -1
- package/dist/trends/components/trendstable/TrendsTable.d.ts +1 -3
- package/dist/trends/components/trendstable/TrendsTable.es.js +29 -22
- package/dist/trends/components/trendstable/TrendsTable.es.js.map +1 -1
- package/package.json +1 -1
- package/dist/help/components/requestsupport/RequestSupportFooter.d.ts +0 -8
- package/dist/help/components/requestsupport/RequestSupportFooter.es.js +0 -46
- package/dist/help/components/requestsupport/RequestSupportFooter.es.js.map +0 -1
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { NoImageContent as s } from "../NoImageContent.es.js";
|
|
2
|
+
import { List as c, Text as t } from "../ContentItem.es.js";
|
|
3
|
+
import i from "react";
|
|
4
|
+
import { jsx as _, jsxs as p } from "react/jsx-runtime";
|
|
5
|
+
var f = ({ topicKey: n, copy: r }) => {
|
|
6
|
+
const e = r.login_issues, o = {
|
|
7
|
+
"not-receiving-code": {
|
|
8
|
+
summary: e.not_receiving_code_summary,
|
|
9
|
+
steps: [
|
|
10
|
+
e.not_receiving_code_step_1,
|
|
11
|
+
e.not_receiving_code_step_2,
|
|
12
|
+
e.not_receiving_code_step_3,
|
|
13
|
+
e.not_receiving_code_step_4,
|
|
14
|
+
e.not_receiving_code_step_5
|
|
15
|
+
],
|
|
16
|
+
footer: e.not_receiving_code_footer
|
|
17
|
+
},
|
|
18
|
+
"wrong-phone-number": {
|
|
19
|
+
summary: e.wrong_phone_number_summary,
|
|
20
|
+
steps: [
|
|
21
|
+
e.wrong_phone_number_step_1,
|
|
22
|
+
e.wrong_phone_number_step_2,
|
|
23
|
+
e.wrong_phone_number_step_3,
|
|
24
|
+
e.wrong_phone_number_step_4
|
|
25
|
+
],
|
|
26
|
+
footer: e.wrong_phone_number_footer
|
|
27
|
+
},
|
|
28
|
+
"outdated-contact-info": {
|
|
29
|
+
summary: e.outdated_contact_info_summary,
|
|
30
|
+
steps: [
|
|
31
|
+
e.outdated_contact_info_step_1,
|
|
32
|
+
e.outdated_contact_info_step_2,
|
|
33
|
+
e.outdated_contact_info_step_3,
|
|
34
|
+
e.outdated_contact_info_step_4
|
|
35
|
+
],
|
|
36
|
+
footer: e.outdated_contact_info_footer
|
|
37
|
+
},
|
|
38
|
+
"new-code-or-token": {
|
|
39
|
+
summary: e.new_code_or_token_summary,
|
|
40
|
+
steps: [
|
|
41
|
+
e.new_code_or_token_step_1,
|
|
42
|
+
e.new_code_or_token_step_2,
|
|
43
|
+
e.new_code_or_token_step_3,
|
|
44
|
+
e.new_code_or_token_step_4,
|
|
45
|
+
e.new_code_or_token_step_5
|
|
46
|
+
],
|
|
47
|
+
footer: e.new_code_or_token_footer
|
|
48
|
+
}
|
|
49
|
+
}[n];
|
|
50
|
+
return o ? /* @__PURE__ */ _(s, {
|
|
51
|
+
hasDivider: !1,
|
|
52
|
+
content: /* @__PURE__ */ p(i.Fragment, { children: [
|
|
53
|
+
/* @__PURE__ */ _(t, { content: o.summary }),
|
|
54
|
+
/* @__PURE__ */ _(c, {
|
|
55
|
+
items: [...o.steps],
|
|
56
|
+
listType: "ol"
|
|
57
|
+
}),
|
|
58
|
+
/* @__PURE__ */ _(t, {
|
|
59
|
+
content: o.footer,
|
|
60
|
+
sx: { pt: 12 }
|
|
61
|
+
})
|
|
62
|
+
] })
|
|
63
|
+
}) : null;
|
|
64
|
+
};
|
|
65
|
+
export {
|
|
66
|
+
f as default
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
//# sourceMappingURL=LoginIssues.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LoginIssues.es.js","names":[],"sources":["../../../../../src/help/components/content/section/LoginIssues.tsx"],"sourcesContent":["import React from 'react'\n\nimport { NoImageContent } from '..'\nimport { SectionProps } from '../../../../core/types/Help'\nimport { List, Text } from '../ContentItem'\n\n// One render fun, keyed by lookup; unknown keys return null.\nconst LoginIssues: React.FC<SectionProps> = ({ topicKey, copy }) => {\n const c = copy.login_issues\n\n const articles = {\n 'not-receiving-code': {\n summary: c.not_receiving_code_summary,\n steps: [\n c.not_receiving_code_step_1,\n c.not_receiving_code_step_2,\n c.not_receiving_code_step_3,\n c.not_receiving_code_step_4,\n c.not_receiving_code_step_5,\n ],\n footer: c.not_receiving_code_footer,\n },\n 'wrong-phone-number': {\n summary: c.wrong_phone_number_summary,\n steps: [\n c.wrong_phone_number_step_1,\n c.wrong_phone_number_step_2,\n c.wrong_phone_number_step_3,\n c.wrong_phone_number_step_4,\n ],\n footer: c.wrong_phone_number_footer,\n },\n 'outdated-contact-info': {\n summary: c.outdated_contact_info_summary,\n steps: [\n c.outdated_contact_info_step_1,\n c.outdated_contact_info_step_2,\n c.outdated_contact_info_step_3,\n c.outdated_contact_info_step_4,\n ],\n footer: c.outdated_contact_info_footer,\n },\n 'new-code-or-token': {\n summary: c.new_code_or_token_summary,\n steps: [\n c.new_code_or_token_step_1,\n c.new_code_or_token_step_2,\n c.new_code_or_token_step_3,\n c.new_code_or_token_step_4,\n c.new_code_or_token_step_5,\n ],\n footer: c.new_code_or_token_footer,\n },\n } as const\n\n const entry = articles[topicKey as keyof typeof articles]\n if (!entry) return null\n\n return (\n <NoImageContent\n hasDivider={false}\n content={\n <React.Fragment>\n <Text content={entry.summary} />\n <List items={[...entry.steps]} listType=\"ol\" />\n <Text content={entry.footer} sx={{ pt: 12 }} />\n </React.Fragment>\n }\n />\n )\n}\n\nexport default LoginIssues\n"],"mappings":";;;;AAOA,IAAM,IAAA,CAAuC,EAAE,UAAA,GAAU,MAAA,EAAA,MAAW;AAClE,QAAM,IAAI,EAAK,cA+CT,IAAQ;AAAA,IA5CZ,sBAAsB;AAAA,MACpB,SAAS,EAAE;AAAA,MACX,OAAO;AAAA,QACL,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
goals: import('react').FC<import('../../../../core').SectionProps>;
|
|
9
9
|
insights: import('react').FC<import('../../../../core').SectionProps>;
|
|
10
|
+
login_issues: import('react').FC<import('../../../../core').SectionProps>;
|
|
10
11
|
investments: import('react').FC<import('../../../../core').SectionProps>;
|
|
11
12
|
mobile: import('react').FC<import('../../../../core').SectionProps>;
|
|
12
13
|
networth: import('react').FC<import('../../../../core').SectionProps>;
|
|
@@ -2,36 +2,38 @@ import o from "./Accounts.es.js";
|
|
|
2
2
|
import r from "./Budgets.es.js";
|
|
3
3
|
import t from "./CashFlow.es.js";
|
|
4
4
|
import i from "./Debts.es.js";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
5
|
+
import s from "./General.es.js";
|
|
6
|
+
import m from "./Goals.es.js";
|
|
7
|
+
import n from "./Investments.es.js";
|
|
8
8
|
import e from "./Mobile.es.js";
|
|
9
|
-
import
|
|
10
|
-
import
|
|
9
|
+
import p from "./NetWorth.es.js";
|
|
10
|
+
import a from "./Notifications.es.js";
|
|
11
11
|
import f from "./RecurringTransactions.es.js";
|
|
12
12
|
import c from "./Spending.es.js";
|
|
13
13
|
import g from "./Transactions.es.js";
|
|
14
14
|
import l from "./Trends.es.js";
|
|
15
|
-
import
|
|
16
|
-
|
|
15
|
+
import u from "./Insights.es.js";
|
|
16
|
+
import d from "./LoginIssues.es.js";
|
|
17
|
+
var L = {
|
|
17
18
|
accounts: o,
|
|
18
|
-
alerts:
|
|
19
|
+
alerts: a,
|
|
19
20
|
budgets: r,
|
|
20
21
|
cashflow: t,
|
|
21
22
|
debts: i,
|
|
22
|
-
general:
|
|
23
|
-
goals:
|
|
24
|
-
insights:
|
|
25
|
-
|
|
23
|
+
general: s,
|
|
24
|
+
goals: m,
|
|
25
|
+
insights: u,
|
|
26
|
+
login_issues: d,
|
|
27
|
+
investments: n,
|
|
26
28
|
mobile: e,
|
|
27
|
-
networth:
|
|
29
|
+
networth: p,
|
|
28
30
|
recurring_transactions: f,
|
|
29
31
|
spending: c,
|
|
30
32
|
transactions: g,
|
|
31
33
|
trends: l
|
|
32
34
|
};
|
|
33
35
|
export {
|
|
34
|
-
|
|
36
|
+
L as contentSection
|
|
35
37
|
};
|
|
36
38
|
|
|
37
39
|
//# sourceMappingURL=index.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es.js","names":[],"sources":["../../../../../src/help/components/content/section/index.ts"],"sourcesContent":["import Accounts from './Accounts'\nimport Budgets from './Budgets'\nimport CashFlow from './CashFlow'\nimport Debts from './Debts'\nimport General from './General'\nimport Goals from './Goals'\nimport Investments from './Investments'\nimport Mobile from './Mobile'\nimport NetWorth from './NetWorth'\nimport Notifications from './Notifications'\nimport RecurringTransactions from './RecurringTransactions'\nimport Spending from './Spending'\nimport Transactions from './Transactions'\nimport Trends from './Trends'\nimport Insights from './Insights'\n\nconst contentSection = {\n accounts: Accounts,\n alerts: Notifications,\n budgets: Budgets,\n cashflow: CashFlow,\n debts: Debts,\n general: General,\n goals: Goals,\n insights: Insights,\n investments: Investments,\n mobile: Mobile,\n networth: NetWorth,\n recurring_transactions: RecurringTransactions,\n spending: Spending,\n transactions: Transactions,\n trends: Trends,\n}\n\nexport { contentSection }\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.es.js","names":[],"sources":["../../../../../src/help/components/content/section/index.ts"],"sourcesContent":["import Accounts from './Accounts'\nimport Budgets from './Budgets'\nimport CashFlow from './CashFlow'\nimport Debts from './Debts'\nimport General from './General'\nimport Goals from './Goals'\nimport Investments from './Investments'\nimport Mobile from './Mobile'\nimport NetWorth from './NetWorth'\nimport Notifications from './Notifications'\nimport RecurringTransactions from './RecurringTransactions'\nimport Spending from './Spending'\nimport Transactions from './Transactions'\nimport Trends from './Trends'\nimport Insights from './Insights'\nimport LoginIssues from './LoginIssues'\n\nconst contentSection = {\n accounts: Accounts,\n alerts: Notifications,\n budgets: Budgets,\n cashflow: CashFlow,\n debts: Debts,\n general: General,\n goals: Goals,\n insights: Insights,\n login_issues: LoginIssues,\n investments: Investments,\n mobile: Mobile,\n networth: NetWorth,\n recurring_transactions: RecurringTransactions,\n spending: Spending,\n transactions: Transactions,\n trends: Trends,\n}\n\nexport { contentSection }\n"],"mappings":";;;;;;;;;;;;;;;;AAiBA,IAAM,IAAiB;AAAA,EACrB,UAAU;AAAA,EACV,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,UAAU;AAAA,EACV,OAAO;AAAA,EACP,SAAS;AAAA,EACT,OAAO;AAAA,EACP,UAAU;AAAA,EACV,cAAc;AAAA,EACd,aAAa;AAAA,EACb,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,wBAAwB;AAAA,EACxB,UAAU;AAAA,EACV,cAAc;AAAA,EACd,QAAQ;AACV"}
|
|
@@ -1,18 +1,23 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { HelpType } from '../../../core';
|
|
2
|
+
import { HelpCopy, HelpType, SelectedTopic } from '../../../core';
|
|
3
3
|
interface HelpByCategory {
|
|
4
|
+
description?: string;
|
|
4
5
|
guid: string;
|
|
5
6
|
icon: string;
|
|
6
7
|
title: string;
|
|
7
8
|
topics: Topic[];
|
|
8
9
|
}
|
|
9
10
|
interface HelpByCategoryListProps {
|
|
11
|
+
copy: HelpCopy;
|
|
10
12
|
helpByCategory: HelpByCategory[];
|
|
11
13
|
onClick: (label: string, type: HelpType) => void;
|
|
14
|
+
onOpenCase: (topic: string) => void;
|
|
15
|
+
onTopicSelect: (topic: SelectedTopic) => void;
|
|
12
16
|
}
|
|
13
17
|
interface Topic {
|
|
14
18
|
label: string;
|
|
15
19
|
type: HelpType;
|
|
20
|
+
topicKey?: string;
|
|
16
21
|
}
|
|
17
22
|
export declare const HelpByCategoryList: React.FC<HelpByCategoryListProps>;
|
|
18
23
|
export {};
|
|
@@ -1,68 +1,113 @@
|
|
|
1
|
-
import { useEvent as
|
|
2
|
-
import { ANALYTICS_EVENTS as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
1
|
+
import { useEvent as S } from "../../../common/context/hooks.es.js";
|
|
2
|
+
import { ANALYTICS_EVENTS as a } from "../../../common/constants/Analytics.es.js";
|
|
3
|
+
import { SupportPrompt as v } from "../SupportPrompt.es.js";
|
|
4
|
+
import m from "react";
|
|
5
|
+
import l from "@mui/material/Stack";
|
|
6
|
+
import { Icon as A, Text as d } from "@mxenabled/mxui";
|
|
7
|
+
import { ExpandMore as T } from "@mxenabled/mx-icons";
|
|
7
8
|
import { jsx as r, jsxs as c } from "react/jsx-runtime";
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
9
|
+
import P from "@mui/material/Divider";
|
|
10
|
+
import f from "@mui/material/List";
|
|
11
|
+
import N from "@mui/material/ListItem";
|
|
12
|
+
import O from "@mui/material/ListItemButton";
|
|
13
|
+
import B from "@mui/material/Accordion";
|
|
14
|
+
import D from "@mui/material/AccordionDetails";
|
|
15
|
+
import H from "@mui/material/AccordionSummary";
|
|
16
|
+
var Z = ({ copy: n, helpByCategory: g, onClick: y, onOpenCase: E, onTopicSelect: _ }) => {
|
|
17
|
+
const [b, C] = m.useState(null), u = m.useRef([]), { onEvent: s } = S();
|
|
18
|
+
return /* @__PURE__ */ r(l, {
|
|
17
19
|
sx: {
|
|
18
20
|
flex: 1,
|
|
19
21
|
gap: 12,
|
|
20
22
|
p: 12
|
|
21
23
|
},
|
|
22
|
-
children:
|
|
24
|
+
children: g.map(({ description: x, guid: L, icon: I, title: o, topics: t }, i) => /* @__PURE__ */ c(B, {
|
|
23
25
|
disableGutters: !0,
|
|
24
|
-
expanded: i ===
|
|
25
|
-
onChange: (
|
|
26
|
-
|
|
26
|
+
expanded: i === b,
|
|
27
|
+
onChange: (e, p) => {
|
|
28
|
+
s(a.HELP_EXPAND_CATEGORY, { category: o }), C(p ? i : null);
|
|
27
29
|
},
|
|
28
|
-
|
|
30
|
+
ref: (e) => {
|
|
31
|
+
u.current[i] = e;
|
|
32
|
+
},
|
|
33
|
+
slotProps: { transition: { onEntered: () => u.current[i]?.scrollIntoView(G) } },
|
|
34
|
+
sx: M,
|
|
29
35
|
children: [
|
|
30
|
-
/* @__PURE__ */ r(
|
|
31
|
-
expandIcon: /* @__PURE__ */ r(
|
|
36
|
+
/* @__PURE__ */ r(H, {
|
|
37
|
+
expandIcon: /* @__PURE__ */ r(T, { sx: { color: "text.primary" } }),
|
|
32
38
|
sx: {
|
|
33
39
|
p: "14px 24px",
|
|
34
40
|
height: 64
|
|
35
41
|
},
|
|
36
|
-
children: /* @__PURE__ */ c(
|
|
42
|
+
children: /* @__PURE__ */ c(l, {
|
|
37
43
|
sx: {
|
|
38
44
|
alignItems: "center",
|
|
39
45
|
flexDirection: "row",
|
|
40
46
|
gap: 12
|
|
41
47
|
},
|
|
42
|
-
children: [/* @__PURE__ */ r(
|
|
43
|
-
name:
|
|
48
|
+
children: [/* @__PURE__ */ r(A, {
|
|
49
|
+
name: I,
|
|
44
50
|
size: 24
|
|
45
|
-
}), /* @__PURE__ */ r(
|
|
51
|
+
}), /* @__PURE__ */ r(d, {
|
|
46
52
|
variant: "body1",
|
|
47
|
-
children:
|
|
53
|
+
children: o
|
|
48
54
|
})]
|
|
49
55
|
})
|
|
50
56
|
}),
|
|
51
|
-
/* @__PURE__ */ r(
|
|
52
|
-
/* @__PURE__ */ r(
|
|
57
|
+
/* @__PURE__ */ r(P, {}),
|
|
58
|
+
/* @__PURE__ */ r(D, {
|
|
53
59
|
sx: {
|
|
54
60
|
ml: 56,
|
|
55
61
|
p: 0
|
|
56
62
|
},
|
|
57
|
-
children: /* @__PURE__ */
|
|
63
|
+
children: x ? /* @__PURE__ */ c(l, {
|
|
64
|
+
sx: {
|
|
65
|
+
gap: 12,
|
|
66
|
+
py: 16,
|
|
67
|
+
pr: 24
|
|
68
|
+
},
|
|
69
|
+
children: [/* @__PURE__ */ r(d, {
|
|
70
|
+
color: "text.secondary",
|
|
71
|
+
variant: "subtitle2",
|
|
72
|
+
children: x
|
|
73
|
+
}), t.length > 0 && /* @__PURE__ */ r(f, {
|
|
74
|
+
dense: !0,
|
|
75
|
+
disablePadding: !0,
|
|
76
|
+
sx: {
|
|
77
|
+
listStyleType: "disc",
|
|
78
|
+
pl: 20
|
|
79
|
+
},
|
|
80
|
+
children: t.map(({ label: e }) => /* @__PURE__ */ r(N, {
|
|
81
|
+
disableGutters: !0,
|
|
82
|
+
sx: {
|
|
83
|
+
display: "list-item",
|
|
84
|
+
py: 2
|
|
85
|
+
},
|
|
86
|
+
children: /* @__PURE__ */ r(d, {
|
|
87
|
+
color: "text.secondary",
|
|
88
|
+
variant: "subtitle2",
|
|
89
|
+
children: e
|
|
90
|
+
})
|
|
91
|
+
}, e))
|
|
92
|
+
})]
|
|
93
|
+
}) : /* @__PURE__ */ c(m.Fragment, { children: [t.length > 0 && /* @__PURE__ */ r(f, {
|
|
58
94
|
sx: { "& .MuiListItemButton-root": { pl: 6 } },
|
|
59
|
-
children:
|
|
95
|
+
children: t.map(({ label: e, type: p, topicKey: h }, R) => /* @__PURE__ */ r(O, {
|
|
60
96
|
divider: !0,
|
|
61
97
|
onClick: () => {
|
|
62
|
-
|
|
63
|
-
category:
|
|
64
|
-
helpTopic:
|
|
65
|
-
}),
|
|
98
|
+
if (s(a.HELP_CLICK_CATEGORY, {
|
|
99
|
+
category: o,
|
|
100
|
+
helpTopic: e
|
|
101
|
+
}), h) {
|
|
102
|
+
_({
|
|
103
|
+
guid: L,
|
|
104
|
+
category: o,
|
|
105
|
+
pageTitle: e,
|
|
106
|
+
topicKey: h
|
|
107
|
+
});
|
|
108
|
+
return;
|
|
109
|
+
}
|
|
110
|
+
y(e, p);
|
|
66
111
|
},
|
|
67
112
|
sx: {
|
|
68
113
|
borderColor: "neutral.light",
|
|
@@ -71,19 +116,40 @@ var w = ({ helpByCategory: t, onClick: s }) => {
|
|
|
71
116
|
borderBottomRightRadius: 7
|
|
72
117
|
}
|
|
73
118
|
},
|
|
74
|
-
children: /* @__PURE__ */ r(
|
|
119
|
+
children: /* @__PURE__ */ r(d, {
|
|
75
120
|
color: "text.secondary",
|
|
76
121
|
variant: "body2",
|
|
77
|
-
children:
|
|
122
|
+
children: e
|
|
78
123
|
})
|
|
79
|
-
},
|
|
80
|
-
})
|
|
124
|
+
}, R))
|
|
125
|
+
}), t.every(({ topicKey: e }) => !e) && /* @__PURE__ */ r(v, {
|
|
126
|
+
actionText: n.request_support_footer_button,
|
|
127
|
+
onAction: () => {
|
|
128
|
+
s(a.HELP_CLICK_OPEN_CASE, {
|
|
129
|
+
source: "category",
|
|
130
|
+
topic: o
|
|
131
|
+
}), E(o);
|
|
132
|
+
},
|
|
133
|
+
onPrompt: () => s(a.HELP_CLICK_NEED_MORE_ASSISTANCE, {
|
|
134
|
+
source: "category",
|
|
135
|
+
topic: o
|
|
136
|
+
}),
|
|
137
|
+
promptText: n.need_more_assistance,
|
|
138
|
+
sx: {
|
|
139
|
+
alignItems: "flex-start",
|
|
140
|
+
pb: 16,
|
|
141
|
+
pt: 4
|
|
142
|
+
}
|
|
143
|
+
})] })
|
|
81
144
|
})
|
|
82
145
|
]
|
|
83
146
|
}, i))
|
|
84
147
|
});
|
|
85
|
-
},
|
|
86
|
-
|
|
148
|
+
}, G = {
|
|
149
|
+
behavior: "smooth",
|
|
150
|
+
block: "nearest"
|
|
151
|
+
}, M = (n) => ({
|
|
152
|
+
border: `1px solid ${n.palette.neutral?.light}`,
|
|
87
153
|
borderRadius: "8px",
|
|
88
154
|
"&:first-of-type": { borderRadius: "8px" },
|
|
89
155
|
"&:before": { opacity: 0 },
|
|
@@ -93,7 +159,7 @@ var w = ({ helpByCategory: t, onClick: s }) => {
|
|
|
93
159
|
}
|
|
94
160
|
});
|
|
95
161
|
export {
|
|
96
|
-
|
|
162
|
+
Z as HelpByCategoryList
|
|
97
163
|
};
|
|
98
164
|
|
|
99
165
|
//# sourceMappingURL=HelpByCategoryList.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HelpByCategoryList.es.js","names":[],"sources":["../../../../src/help/components/requestsupport/HelpByCategoryList.tsx"],"sourcesContent":["import React from 'react'\n\nimport Accordion from '@mui/material/Accordion'\nimport AccordionDetails from '@mui/material/AccordionDetails'\nimport AccordionSummary from '@mui/material/AccordionSummary'\nimport Divider from '@mui/material/Divider'\nimport List from '@mui/material/List'\nimport ListItemButton from '@mui/material/ListItemButton'\nimport Stack from '@mui/material/Stack'\n\nimport { Icon, Text } from '@mxenabled/mxui'\nimport { ExpandMore } from '@mxenabled/mx-icons'\n\nimport { ANALYTICS_EVENTS, useEvent } from '../../../common'\nimport { type HelpType } from '../../../core'\n\ninterface HelpByCategory {\n guid: string\n icon: string\n title: string\n topics: Topic[]\n}\n\ninterface HelpByCategoryListProps {\n helpByCategory: HelpByCategory[]\n onClick: (label: string, type: HelpType) => void\n}\n\ninterface Topic {\n label: string\n type: HelpType\n}\n\nexport const HelpByCategoryList: React.FC<HelpByCategoryListProps> = ({\n helpByCategory,\n onClick,\n}) => {\n const [expanded, setExpanded] = React.useState<number | null>(null)\n\n const { onEvent } = useEvent()\n\n return (\n <Stack sx={{ flex: 1, gap: 12, p: 12 }}>\n {helpByCategory.map(({ icon, topics, title }, i) => (\n <Accordion\n disableGutters={true}\n expanded={i === expanded}\n key={i}\n onChange={(_, isExpanded) => {\n onEvent(ANALYTICS_EVENTS.HELP_EXPAND_CATEGORY, {\n category: title,\n })\n\n setExpanded(isExpanded ? i : null)\n }}\n sx={accordionStyles}\n >\n <AccordionSummary\n expandIcon={<ExpandMore sx={{ color: 'text.primary' }} />}\n sx={{ p: '14px 24px', height: 64 }}\n >\n <Stack sx={{ alignItems: 'center', flexDirection: 'row', gap: 12 }}>\n <Icon name={icon} size={24} />\n <Text variant=\"body1\">{title}</Text>\n </Stack>\n </AccordionSummary>\n <Divider />\n <AccordionDetails\n sx={{\n ml: 56,\n p: 0,\n }}\n >\n <List sx={{ '& .MuiListItemButton-root': { pl: 6 } }}>\n {topics.map(({ label, type }, i) => (\n <ListItemButton\n divider={true}\n key={i}\n onClick={() => {\n onEvent(ANALYTICS_EVENTS.HELP_CLICK_CATEGORY, {\n category: title,\n helpTopic: label,\n })\n\n onClick(label, type)\n }}\n sx={{\n borderColor: 'neutral.light',\n '&:last-child': {\n border: 'none',\n borderBottomRightRadius: 7,\n },\n }}\n >\n <Text color=\"text.secondary\" variant=\"body2\">\n {label}\n </Text>\n </ListItemButton>\n ))}\n </List>\n </AccordionDetails>\n </Accordion>\n ))}\n </Stack>\n )\n}\n\nconst accordionStyles = (theme: any) => {\n return {\n border: `1px solid ${theme.palette.neutral?.light}`,\n borderRadius: '8px',\n '&:first-of-type': { borderRadius: '8px' },\n '&:before': {\n opacity: 0,\n },\n '& .MuiAccordion-region': {\n borderBottomLeftRadius: 8,\n borderBottomRightRadius: 8,\n },\n }\n}\n"],"mappings":";;;;;;;;;;;;;AAiCA,IAAa,IAAA,CAAyD,EACpE,gBAAA,GACA,SAAA,EAAA,MACI;AACJ,QAAM,CAAC,GAAU,CAAA,IAAe,EAAM,SAAwB,IAAI,GAE5D,EAAE,SAAA,EAAA,IAAY,EAAS;AAE7B,SACE,gBAAA,EAAC,GAAD;AAAA,IAAO,IAAI;AAAA,MAAE,MAAM;AAAA,MAAG,KAAK;AAAA,MAAI,GAAG;AAAA,IAAG;AAAA,IAClC,UAAA,EAAe,IAAA,CAAK,EAAE,MAAA,GAAM,QAAA,GAAQ,OAAA,EAAA,GAAS,MAC5C,gBAAA,EAAC,GAAD;AAAA,MACE,gBAAgB;AAAA,MAChB,UAAU,MAAM;AAAA,MAEhB,UAAA,CAAW,GAAG,MAAe;AAC3B,QAAA,EAAQ,EAAiB,sBAAsB,EAC7C,UAAU,EACZ,CAAC,GAED,EAAY,IAAa,IAAI,IAAI;AAAA,MACnC;AAAA,MACA,IAAI;AAAA,MAXN,UAAA;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A;AAAA,YACQ,GApBT,CAoBS,CACjB;AAAA,UACG,CAAA;AAAA,QACU,CAAA;AAAA,MACT;AAAA,IAtDJ,GAAA,CAsDI,CACZ;AAAA,EACI,CAAA;AAEX,GAEM,IAAA,CAAmB,OAChB;AAAA,EACL,QAAQ,aAAa,EAAM,QAAQ,SAAS,KAAA;AAAA,EAC5C,cAAc;AAAA,EACd,mBAAmB,EAAE,cAAc,MAAM;AAAA,EACzC,YAAY,EACV,SAAS,EACX;AAAA,EACA,0BAA0B;AAAA,IACxB,wBAAwB;AAAA,IACxB,yBAAyB;AAAA,EAC3B;AACF"}
|
|
1
|
+
{"version":3,"file":"HelpByCategoryList.es.js","names":[],"sources":["../../../../src/help/components/requestsupport/HelpByCategoryList.tsx"],"sourcesContent":["import React from 'react'\n\nimport Accordion from '@mui/material/Accordion'\nimport AccordionDetails from '@mui/material/AccordionDetails'\nimport AccordionSummary from '@mui/material/AccordionSummary'\nimport Divider from '@mui/material/Divider'\nimport List from '@mui/material/List'\nimport ListItem from '@mui/material/ListItem'\nimport ListItemButton from '@mui/material/ListItemButton'\nimport Stack from '@mui/material/Stack'\n\nimport { Icon, Text } from '@mxenabled/mxui'\nimport { ExpandMore } from '@mxenabled/mx-icons'\n\nimport { ANALYTICS_EVENTS, useEvent } from '../../../common'\nimport type { HelpCopy, HelpType, SelectedTopic } from '../../../core'\nimport { SupportPrompt } from '../SupportPrompt'\n\ninterface HelpByCategory {\n description?: string\n guid: string\n icon: string\n title: string\n topics: Topic[]\n}\n\ninterface HelpByCategoryListProps {\n copy: HelpCopy\n helpByCategory: HelpByCategory[]\n onClick: (label: string, type: HelpType) => void\n onOpenCase: (topic: string) => void\n onTopicSelect: (topic: SelectedTopic) => void\n}\n\ninterface Topic {\n label: string\n type: HelpType\n topicKey?: string\n}\n\nexport const HelpByCategoryList: React.FC<HelpByCategoryListProps> = ({\n copy,\n helpByCategory,\n onClick,\n onOpenCase,\n onTopicSelect,\n}) => {\n const [expanded, setExpanded] = React.useState<number | null>(null)\n const accordionRefs = React.useRef<(HTMLDivElement | null)[]>([])\n\n const { onEvent } = useEvent()\n\n return (\n <Stack sx={{ flex: 1, gap: 12, p: 12 }}>\n {helpByCategory.map(({ description, guid, icon, title, topics }, i) => (\n <Accordion\n disableGutters={true}\n expanded={i === expanded}\n key={i}\n onChange={(_, isExpanded) => {\n onEvent(ANALYTICS_EVENTS.HELP_EXPAND_CATEGORY, {\n category: title,\n })\n\n setExpanded(isExpanded ? i : null)\n }}\n ref={(el: HTMLDivElement | null) => {\n accordionRefs.current[i] = el\n }}\n slotProps={{\n // Bring the newly expanded card fully into view once it has opened,\n // so content near the bottom of the drawer isn't cropped.\n transition: {\n onEntered: () => accordionRefs.current[i]?.scrollIntoView(SCROLL_OPTIONS),\n },\n }}\n sx={accordionStyles}\n >\n <AccordionSummary\n expandIcon={<ExpandMore sx={{ color: 'text.primary' }} />}\n sx={{ p: '14px 24px', height: 64 }}\n >\n <Stack sx={{ alignItems: 'center', flexDirection: 'row', gap: 12 }}>\n <Icon name={icon} size={24} />\n <Text variant=\"body1\">{title}</Text>\n </Stack>\n </AccordionSummary>\n <Divider />\n <AccordionDetails\n sx={{\n ml: 56,\n p: 0,\n }}\n >\n {description ? (\n <Stack sx={{ gap: 12, py: 16, pr: 24 }}>\n <Text color=\"text.secondary\" variant=\"subtitle2\">\n {description}\n </Text>\n {topics.length > 0 && (\n <List dense={true} disablePadding={true} sx={{ listStyleType: 'disc', pl: 20 }}>\n {topics.map(({ label }) => (\n <ListItem\n disableGutters={true}\n key={label}\n sx={{ display: 'list-item', py: 2 }}\n >\n <Text color=\"text.secondary\" variant=\"subtitle2\">\n {label}\n </Text>\n </ListItem>\n ))}\n </List>\n )}\n </Stack>\n ) : (\n <React.Fragment>\n {topics.length > 0 && (\n <List sx={{ '& .MuiListItemButton-root': { pl: 6 } }}>\n {topics.map(({ label, type, topicKey }, i) => (\n <ListItemButton\n divider={true}\n key={i}\n onClick={() => {\n onEvent(ANALYTICS_EVENTS.HELP_CLICK_CATEGORY, {\n category: title,\n helpTopic: label,\n })\n\n if (topicKey) {\n onTopicSelect({\n guid,\n category: title,\n pageTitle: label,\n topicKey,\n })\n return\n }\n onClick(label, type)\n }}\n sx={{\n borderColor: 'neutral.light',\n '&:last-child': {\n border: 'none',\n borderBottomRightRadius: 7,\n },\n }}\n >\n <Text color=\"text.secondary\" variant=\"body2\">\n {label}\n </Text>\n </ListItemButton>\n ))}\n </List>\n )}\n {topics.every(({ topicKey }) => !topicKey) && (\n <SupportPrompt\n actionText={copy.request_support_footer_button}\n onAction={() => {\n onEvent(ANALYTICS_EVENTS.HELP_CLICK_OPEN_CASE, {\n source: 'category',\n topic: title,\n })\n\n onOpenCase(title)\n }}\n onPrompt={() =>\n onEvent(ANALYTICS_EVENTS.HELP_CLICK_NEED_MORE_ASSISTANCE, {\n source: 'category',\n topic: title,\n })\n }\n promptText={copy.need_more_assistance}\n sx={{ alignItems: 'flex-start', pb: 16, pt: 4 }}\n />\n )}\n </React.Fragment>\n )}\n </AccordionDetails>\n </Accordion>\n ))}\n </Stack>\n )\n}\n\nconst SCROLL_OPTIONS: ScrollIntoViewOptions = { behavior: 'smooth', block: 'nearest' }\n\nconst accordionStyles = (theme: any) => {\n return {\n border: `1px solid ${theme.palette.neutral?.light}`,\n borderRadius: '8px',\n '&:first-of-type': { borderRadius: '8px' },\n '&:before': {\n opacity: 0,\n },\n '& .MuiAccordion-region': {\n borderBottomLeftRadius: 8,\n borderBottomRightRadius: 8,\n },\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;AAwCA,IAAa,IAAA,CAAyD,EACpE,MAAA,GACA,gBAAA,GACA,SAAA,GACA,YAAA,GACA,eAAA,EAAA,MACI;AACJ,QAAM,CAAC,GAAU,CAAA,IAAe,EAAM,SAAwB,IAAI,GAC5D,IAAgB,EAAM,OAAkC,CAAC,CAAC,GAE1D,EAAE,SAAA,EAAA,IAAY,EAAS;AAE7B,SACE,gBAAA,EAAC,GAAD;AAAA,IA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yBAAyB;AAAA,EAC3B;AACF"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { HelpCopy } from '../../../core';
|
|
2
|
+
import { HelpCopy, SelectedTopic } from '../../../core';
|
|
3
3
|
interface RequestSupportProps {
|
|
4
|
+
caseTopic?: string;
|
|
4
5
|
copy: HelpCopy;
|
|
5
6
|
isOpen: boolean;
|
|
7
|
+
onTopicSelect: (topic: SelectedTopic) => void;
|
|
6
8
|
onClose: () => void;
|
|
7
9
|
}
|
|
8
10
|
export declare const RequestSupport: React.FC<RequestSupportProps>;
|