@mx-cartographer/experiences 9.7.49 → 9.7.51
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 +11 -0
- package/dist/core/constants/Help.d.ts +4 -27
- package/dist/core/constants/Help.es.js +46 -15
- package/dist/core/constants/Help.es.js.map +1 -1
- package/dist/core/types/Help.d.ts +13 -0
- package/dist/core/types/localization/TransactionsCopy.d.ts +1 -0
- package/dist/core/utils/HelpUtil.es.js +7 -7
- package/dist/core/utils/HelpUtil.es.js.map +1 -1
- package/dist/core/utils/TransactionUtils.d.ts +1 -0
- package/dist/core/utils/TransactionUtils.es.js +19 -18
- package/dist/core/utils/TransactionUtils.es.js.map +1 -1
- package/dist/help/components/Help.es.js +30 -29
- package/dist/help/components/Help.es.js.map +1 -1
- package/dist/help/components/content/ContentItem.es.js +24 -23
- package/dist/help/components/content/ContentItem.es.js.map +1 -1
- package/dist/help/components/content/section/General.es.js +37 -32
- package/dist/help/components/content/section/General.es.js.map +1 -1
- package/dist/help/components/content/section/LoginIssues.es.js +10 -7
- package/dist/help/components/content/section/LoginIssues.es.js.map +1 -1
- package/dist/help/components/content/section/index.es.js +24 -24
- package/dist/help/components/requestsupport/HelpByCategoryList.es.js +24 -20
- package/dist/help/components/requestsupport/HelpByCategoryList.es.js.map +1 -1
- package/dist/transactions/TransactionWidget.es.js +37 -36
- package/dist/transactions/TransactionWidget.es.js.map +1 -1
- package/dist/transactions/components/shared/TransactionList.d.ts +1 -0
- package/dist/transactions/components/shared/TransactionList.es.js +46 -45
- package/dist/transactions/components/shared/TransactionList.es.js.map +1 -1
- package/dist/transactions/components/shared/UnviewedIndicator.d.ts +6 -0
- package/dist/transactions/components/shared/UnviewedIndicator.es.js +21 -0
- package/dist/transactions/components/shared/UnviewedIndicator.es.js.map +1 -0
- package/dist/transactions/components/shared/transactionlist/TransactionRow.d.ts +2 -0
- package/dist/transactions/components/shared/transactionlist/TransactionRow.es.js +38 -37
- package/dist/transactions/components/shared/transactionlist/TransactionRow.es.js.map +1 -1
- package/dist/transactions/components/shared/transactiontable/cells/FlagCell.es.js +23 -32
- package/dist/transactions/components/shared/transactiontable/cells/FlagCell.es.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Help.es.js","names":[],"sources":["../../../src/help/components/Help.tsx"],"sourcesContent":["import React from 'react'\n\nimport Box from '@mui/material/Box'\n\nimport {\n ANALYTICS_EVENTS,\n ErrorBoundary,\n useAppConfig,\n useEvent,\n useGlobalCopyStore,\n useHelpStore,\n useScreenSize,\n} from '../../common'\nimport { type SelectedTopic } from '../../core'\n\nimport { HelpList } from './HelpList'\nimport { HelpContent } from './HelpContent'\nimport { RequestSupport } from './requestsupport'\nimport type { SxProps } from '@mui/material/styles'\n\ninterface HelpProps {\n sx?: SxProps\n}\n\nexport const Help = ({ sx = {} }: HelpProps) => {\n const { config } = useAppConfig()\n const { onEvent } = useEvent()\n const { help: helpCopy } = useGlobalCopyStore()\n const { helpCategories } = useHelpStore()\n const { isMobile } = useScreenSize()\n\n const [isRequestSupportOpen, setIsRequestSupportOpen] = React.useState(false)\n const [selectedTopic, setSelectedTopic] = React.useState<SelectedTopic | null>(null)\n const [caseTopic, setCaseTopic] = React.useState('')\n\n const handleTopicSelect = (topic: SelectedTopic) => {\n onEvent(ANALYTICS_EVENTS.HELP_CLICK_TOPIC, {\n feature: topic.category,\n helpTopic: topic.pageTitle,\n })\n\n setSelectedTopic(topic)\n }\n const handleRequestHelp = () => setIsRequestSupportOpen(true)\n\n const handleOpenCase = (topic: string) => {\n setCaseTopic(topic)\n setIsRequestSupportOpen(true)\n }\n\n const handleCloseRequestSupport = () => {\n setIsRequestSupportOpen(false)\n setCaseTopic('')\n }\n\n return (\n <Box sx={{ pt: 24, px: isMobile ? 24 : 0, ...sx }}>\n {!selectedTopic ? (\n <HelpList\n buttonText={helpCopy.request_support}\n copy={helpCopy}\n hasRequestButton={config.enable_support_requests}\n helpCategories={helpCategories}\n helpContent={helpCopy.list_short_content}\n helpTitle={helpCopy.list_title}\n onRequestHelp={handleRequestHelp}\n onTopicSelect={handleTopicSelect}\n />\n ) : (\n <HelpContent\n copy={helpCopy}\n hasRequestButton={config.enable_support_requests}\n onNavigateToList={() => setSelectedTopic(null)}\n onOpenCase={handleOpenCase}\n onRequestSupport={handleRequestHelp}\n topicInfo={selectedTopic}\n />\n )}\n <ErrorBoundary>\n <RequestSupport\n caseTopic={caseTopic}\n copy={helpCopy}\n isOpen={isRequestSupportOpen}\n onTopicSelect={(topic) => {\n handleTopicSelect(topic)\n setIsRequestSupportOpen(false)\n }}\n onClose={handleCloseRequestSupport}\n />\n </ErrorBoundary>\n </Box>\n )\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"Help.es.js","names":[],"sources":["../../../src/help/components/Help.tsx"],"sourcesContent":["import React from 'react'\n\nimport Box from '@mui/material/Box'\n\nimport {\n ANALYTICS_EVENTS,\n ErrorBoundary,\n useAppConfig,\n useEvent,\n useGlobalCopyStore,\n useHelpStore,\n useScreenSize,\n} from '../../common'\nimport { type SelectedTopic } from '../../core'\nimport { isLoginIssueTopic } from '../../core/constants/Help'\n\nimport { HelpList } from './HelpList'\nimport { HelpContent } from './HelpContent'\nimport { RequestSupport } from './requestsupport'\nimport type { SxProps } from '@mui/material/styles'\n\ninterface HelpProps {\n sx?: SxProps\n}\n\nexport const Help = ({ sx = {} }: HelpProps) => {\n const { config } = useAppConfig()\n const { onEvent } = useEvent()\n const { help: helpCopy } = useGlobalCopyStore()\n const { helpCategories } = useHelpStore()\n const { isMobile } = useScreenSize()\n\n const [isRequestSupportOpen, setIsRequestSupportOpen] = React.useState(false)\n const [selectedTopic, setSelectedTopic] = React.useState<SelectedTopic | null>(null)\n const [caseTopic, setCaseTopic] = React.useState('')\n\n const handleTopicSelect = (topic: SelectedTopic) => {\n onEvent(ANALYTICS_EVENTS.HELP_CLICK_TOPIC, {\n // A Login Issues article reports under Login Issues whether it was opened from that card or\n // from General FAQs, so its clicks are counted together.\n feature: isLoginIssueTopic(topic.topicKey)\n ? (helpCopy.help_by_category_list?.login_issues?.label ?? topic.category)\n : topic.category,\n helpTopic: topic.pageTitle,\n })\n\n setSelectedTopic(topic)\n }\n const handleRequestHelp = () => setIsRequestSupportOpen(true)\n\n const handleOpenCase = (topic: string) => {\n setCaseTopic(topic)\n setIsRequestSupportOpen(true)\n }\n\n const handleCloseRequestSupport = () => {\n setIsRequestSupportOpen(false)\n setCaseTopic('')\n }\n\n return (\n <Box sx={{ pt: 24, px: isMobile ? 24 : 0, ...sx }}>\n {!selectedTopic ? (\n <HelpList\n buttonText={helpCopy.request_support}\n copy={helpCopy}\n hasRequestButton={config.enable_support_requests}\n helpCategories={helpCategories}\n helpContent={helpCopy.list_short_content}\n helpTitle={helpCopy.list_title}\n onRequestHelp={handleRequestHelp}\n onTopicSelect={handleTopicSelect}\n />\n ) : (\n <HelpContent\n copy={helpCopy}\n hasRequestButton={config.enable_support_requests}\n onNavigateToList={() => setSelectedTopic(null)}\n onOpenCase={handleOpenCase}\n onRequestSupport={handleRequestHelp}\n topicInfo={selectedTopic}\n />\n )}\n <ErrorBoundary>\n <RequestSupport\n caseTopic={caseTopic}\n copy={helpCopy}\n isOpen={isRequestSupportOpen}\n onTopicSelect={(topic) => {\n handleTopicSelect(topic)\n setIsRequestSupportOpen(false)\n }}\n onClose={handleCloseRequestSupport}\n />\n </ErrorBoundary>\n </Box>\n )\n}\n"],"mappings":";;;;;;;;;;;AAyBA,IAAa,IAAA,CAAQ,EAAE,IAAA,IAAK,CAAC,EAAA,MAAmB;AAC9C,QAAM,EAAE,QAAA,EAAA,IAAW,EAAa,GAC1B,EAAE,SAAA,EAAA,IAAY,EAAS,GACvB,EAAE,MAAM,EAAA,IAAa,EAAmB,GACxC,EAAE,gBAAA,EAAA,IAAmB,EAAa,GAClC,EAAE,UAAA,EAAA,IAAa,EAAc,GAE7B,CAAC,GAAsB,CAAA,IA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A,EAAkB,CAAK,GACvB,EAAwB,EAAK;AAAA,MAC/B;AAAA,MACA,SAAS;AAAA,IACV,CAAA,EACY,CAAA,CACZ;AAAA;AAET"}
|
|
@@ -1,45 +1,46 @@
|
|
|
1
|
-
import { H3 as
|
|
2
|
-
import { jsx as
|
|
1
|
+
import { H3 as d, P as f } from "@mxenabled/mxui";
|
|
2
|
+
import { jsx as r, jsxs as u } from "react/jsx-runtime";
|
|
3
3
|
import y from "@mui/material/Box";
|
|
4
|
-
var o = ({ content:
|
|
4
|
+
var o = ({ content: e, sx: l }) => /* @__PURE__ */ r(f, {
|
|
5
5
|
sx: {
|
|
6
6
|
lineHeight: "24px",
|
|
7
7
|
py: 6,
|
|
8
|
-
...
|
|
8
|
+
...l
|
|
9
9
|
},
|
|
10
|
-
children:
|
|
11
|
-
}),
|
|
10
|
+
children: e
|
|
11
|
+
}), w = ({ content: e, sx: l }) => /* @__PURE__ */ r(d, {
|
|
12
12
|
color: "text.primary",
|
|
13
13
|
sx: {
|
|
14
14
|
py: 12,
|
|
15
15
|
whiteSpace: { sm: "nowrap" },
|
|
16
|
-
...
|
|
16
|
+
...l
|
|
17
17
|
},
|
|
18
|
-
children:
|
|
19
|
-
}),
|
|
20
|
-
const
|
|
21
|
-
return /* @__PURE__ */
|
|
22
|
-
sx: { [
|
|
18
|
+
children: e
|
|
19
|
+
}), E = ({ itemGap: e, items: l, listType: n = "ul", subItemPlacement: c, subItems: m = [], subListType: t = "ol" }) => {
|
|
20
|
+
const p = n, x = t;
|
|
21
|
+
return /* @__PURE__ */ r(y, {
|
|
22
|
+
sx: { [n]: {
|
|
23
23
|
m: 0,
|
|
24
24
|
p: 0,
|
|
25
25
|
pl: 16,
|
|
26
|
-
"& li::marker": { fontSize: 15 }
|
|
26
|
+
"& li::marker": { fontSize: 15 },
|
|
27
|
+
...e != null && { "& > li + li": { mt: e } }
|
|
27
28
|
} },
|
|
28
|
-
children: /* @__PURE__ */
|
|
29
|
-
content:
|
|
29
|
+
children: /* @__PURE__ */ r(p, { children: l.map((a, i) => /* @__PURE__ */ u("li", { children: [/* @__PURE__ */ r(o, {
|
|
30
|
+
content: a,
|
|
30
31
|
sx: { py: 1 }
|
|
31
|
-
}),
|
|
32
|
-
...
|
|
33
|
-
children:
|
|
34
|
-
content:
|
|
32
|
+
}), c === i ? /* @__PURE__ */ r(x, {
|
|
33
|
+
...t === "ol" && { type: "a" },
|
|
34
|
+
children: m.map((s, h) => /* @__PURE__ */ r("li", { children: /* @__PURE__ */ r(o, {
|
|
35
|
+
content: s,
|
|
35
36
|
sx: { py: 1 }
|
|
36
|
-
}) },
|
|
37
|
-
}) : null] },
|
|
37
|
+
}) }, h))
|
|
38
|
+
}) : null] }, i)) })
|
|
38
39
|
});
|
|
39
40
|
};
|
|
40
41
|
export {
|
|
41
|
-
|
|
42
|
-
|
|
42
|
+
E as List,
|
|
43
|
+
w as SectionTitle,
|
|
43
44
|
o as Text
|
|
44
45
|
};
|
|
45
46
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentItem.es.js","names":[],"sources":["../../../../src/help/components/content/ContentItem.tsx"],"sourcesContent":["import Box from '@mui/material/Box'\nimport { H3, P } from '@mxenabled/mxui'\n\nimport { ListProps, SectionTitleProps, TextProps } from '../../../core/types/Help'\n\nexport const Text: React.FC<TextProps> = ({ content, sx }) => (\n <P sx={{ lineHeight: '24px', py: 6, ...sx }}>{content}</P>\n)\n\nexport const SectionTitle: React.FC<SectionTitleProps> = ({ content, sx }) => (\n <H3 color=\"text.primary\" sx={{ py: 12, whiteSpace: { sm: 'nowrap' }, ...sx }}>\n {content}\n </H3>\n)\n\nexport const List: React.FC<ListProps> = ({\n items,\n listType = 'ul',\n subItemPlacement,\n subItems = [],\n subListType = 'ol',\n}) => {\n const Element = listType\n const SubElement = subListType\n\n return (\n <Box
|
|
1
|
+
{"version":3,"file":"ContentItem.es.js","names":[],"sources":["../../../../src/help/components/content/ContentItem.tsx"],"sourcesContent":["import Box from '@mui/material/Box'\nimport { H3, P } from '@mxenabled/mxui'\n\nimport { ListProps, SectionTitleProps, TextProps } from '../../../core/types/Help'\n\nexport const Text: React.FC<TextProps> = ({ content, sx }) => (\n <P sx={{ lineHeight: '24px', py: 6, ...sx }}>{content}</P>\n)\n\nexport const SectionTitle: React.FC<SectionTitleProps> = ({ content, sx }) => (\n <H3 color=\"text.primary\" sx={{ py: 12, whiteSpace: { sm: 'nowrap' }, ...sx }}>\n {content}\n </H3>\n)\n\nexport const List: React.FC<ListProps> = ({\n itemGap,\n items,\n listType = 'ul',\n subItemPlacement,\n subItems = [],\n subListType = 'ol',\n}) => {\n const Element = listType\n const SubElement = subListType\n\n return (\n <Box\n sx={{\n [listType]: {\n m: 0,\n p: 0,\n pl: 16,\n '& li::marker': { fontSize: 15 },\n ...(itemGap != null && { '& > li + li': { mt: itemGap } }),\n },\n }}\n >\n <Element>\n {items.map((elm, i) => (\n <li key={i}>\n <Text content={elm} sx={{ py: 1 }} />\n {subItemPlacement === i ? (\n <SubElement {...(subListType === 'ol' && { type: 'a' })}>\n {subItems.map((subElm, index) => (\n <li key={index}>\n <Text content={subElm} sx={{ py: 1 }} />\n </li>\n ))}\n </SubElement>\n ) : null}\n </li>\n ))}\n </Element>\n </Box>\n )\n}\n"],"mappings":";;;AAKA,IAAa,IAAA,CAA6B,EAAE,SAAA,GAAS,IAAA,EAAA,MACnD,gBAAA,EAAC,GAAD;AAAA,EAAG,IAAI;AAAA,IAAE,YAAY;AAAA,IAAQ,IAAI;AAAA,IAAG,GAAG;AAAA,EAAG;AAAA,EAAI,UAAA;AAAW,CAAA,GAG9C,IAAA,CAA6C,EAAE,SAAA,GAAS,IAAA,EAAA,MACnE,gBAAA,EAAC,GAAD;AAAA,EAAI,OAAM;AAAA,EAAe,IAAI;AAAA,IAAE,IAAI;AAAA,IAAI,YAAY,EAAE,IAAI,SAAS;AAAA,IAAG,GAAG;AAAA,EAAG;AAAA,EACxE,UAAA;AACC,CAAA,GAGO,IAAA,CAA6B,EACxC,SAAA,GACA,OAAA,GACA,UAAA,IAAW,MACX,kBAAA,GACA,UAAA,IAAW,CAAC,GACZ,aAAA,IAAc,KAAA,MACV;AACJ,QAAM,IAAU,GACV,IAAa;AAEnB,SACE,gBAAA,EAAC,GAAD;AAAA,IACE,IAAI,EAAA,CACD,CAAA,GAAW;AAAA,MACV,GAAG;AAAA,MACH,GAAG;AAAA,MACH,IAAI;AAAA,MACJ,gBAAgB,EAAE,UAAU,GAAG;AAAA,MAC/B,GAAI,KAAW,QAAQ,EAAE,eAAe,EAAE,IAAI,EAAQ,EAAE;AAAA,IAC1D,EACF;AAAA,IAEA,UAAA,gBAAA,EAAC,GAAD,EAAA,UACG,EAAM,IAAA,CAAK,GAAK,MACf,gBAAA,EAAC,MAAD,EAAA,UAAA,CACE,gBAAA,EAAC,GAAD;AAAA,MAAM,SAAS;AAAA,MAAK,IAAI,EAAE,IAAI,EAAE;AAAA,IAAI,CAAA,GACnC,MAAqB,IACpB,gBAAA,EAAC,GAAD;AAAA,MAAY,GAAK,MAAgB,QAAQ,EAAE,MAAM,IAAI;AAAA,MAClD,UAAA,EAAS,IAAA,CAAK,GAAQ,MACrB,gBAAA,EAAC,MAAD,EAAA,UACE,gBAAA,EAAC,GAAD;AAAA,QAAM,SAAS;AAAA,QAAQ,IAAI,EAAE,IAAI,EAAE;AAAA,MAAI,CAAA,EACrC,GAFK,CAEL,CACL;AAAA,IACS,CAAA,IACV,IACF,EAAA,GAXK,CAWL,CACL,EACM,CAAA;AAAA,EACN,CAAA;AAET"}
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import { buildDynamicCopy as s } from "../../../../core/utils/Localization.es.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
2
|
+
import { isLoginIssueTopic as l } from "../../../../core/constants/Help.es.js";
|
|
3
|
+
import { BottomImageContent as p } from "../BottomImageContent.es.js";
|
|
4
|
+
import { NoImageContent as i } from "../NoImageContent.es.js";
|
|
5
|
+
import { List as a, Text as r } from "../ContentItem.es.js";
|
|
6
|
+
import { HELP_IMAGES as m } from "../../../constants/HelpImages.es.js";
|
|
7
|
+
import u from "./LoginIssues.es.js";
|
|
8
|
+
import n from "react";
|
|
9
|
+
import { jsx as t, jsxs as _ } from "react/jsx-runtime";
|
|
10
|
+
var I = ({ topicKey: o, copy: d }) => {
|
|
11
|
+
const { general_faqs: e } = d, c = {
|
|
12
|
+
"is-my-data-private-and-secure": /* @__PURE__ */ t(i, {
|
|
13
|
+
content: /* @__PURE__ */ _(n.Fragment, { children: [/* @__PURE__ */ t(r, {
|
|
13
14
|
content: e.data_private_secure_subheader,
|
|
14
15
|
sx: { lineHeight: "24px" }
|
|
15
|
-
}), /* @__PURE__ */ t(
|
|
16
|
+
}), /* @__PURE__ */ t(a, { items: [
|
|
16
17
|
s(e.data_private_secure_step1, /* @__PURE__ */ t("b", { children: e.encryption_firewalls_bold_text })),
|
|
17
18
|
s(e.data_private_secure_step2, /* @__PURE__ */ t("b", { children: e.secure_authentication_bold_text })),
|
|
18
19
|
s(e.data_private_secure_step3, /* @__PURE__ */ t("b", { children: e.privacy_protection_bold_text }), /* @__PURE__ */ t("b", { children: e.not_bold_text })),
|
|
@@ -20,16 +21,16 @@ var f = ({ topicKey: _, copy: d }) => {
|
|
|
20
21
|
] })] }),
|
|
21
22
|
hasDivider: !1
|
|
22
23
|
}),
|
|
23
|
-
"why-are-some-of-my-transactions-uncategorized": /* @__PURE__ */ t(
|
|
24
|
-
altImage:
|
|
25
|
-
content: /* @__PURE__ */ n
|
|
26
|
-
/* @__PURE__ */ t(
|
|
27
|
-
/* @__PURE__ */ t(
|
|
28
|
-
/* @__PURE__ */ t(
|
|
24
|
+
"why-are-some-of-my-transactions-uncategorized": /* @__PURE__ */ t(p, {
|
|
25
|
+
altImage: o,
|
|
26
|
+
content: /* @__PURE__ */ _(n.Fragment, { children: [
|
|
27
|
+
/* @__PURE__ */ t(r, { content: e.transactions_categorized_subheader }),
|
|
28
|
+
/* @__PURE__ */ t(a, { items: [s(e.transactions_categorized_step1, /* @__PURE__ */ t("b", { children: e.checks_atm_withdrawals_bold_text })), s(e.transactions_categorized_step2, /* @__PURE__ */ t("b", { children: e.limited_transaction_details_bold_text }))] }),
|
|
29
|
+
/* @__PURE__ */ t(r, {
|
|
29
30
|
content: e.transactions_uncategorized_subheader,
|
|
30
31
|
sx: { pt: 12 }
|
|
31
32
|
}),
|
|
32
|
-
/* @__PURE__ */ t(
|
|
33
|
+
/* @__PURE__ */ t(a, {
|
|
33
34
|
items: [
|
|
34
35
|
s(e.transactions_uncategorized_step1, /* @__PURE__ */ t("b", { children: e.transactions_bold_text })),
|
|
35
36
|
s(e.transactions_uncategorized_step2, /* @__PURE__ */ t("b", { children: e.categorize_bold_text })),
|
|
@@ -39,24 +40,24 @@ var f = ({ topicKey: _, copy: d }) => {
|
|
|
39
40
|
],
|
|
40
41
|
listType: "ol"
|
|
41
42
|
}),
|
|
42
|
-
/* @__PURE__ */ t(
|
|
43
|
+
/* @__PURE__ */ t(r, {
|
|
43
44
|
content: e.transactions_uncategorized_footer_text,
|
|
44
45
|
sx: { pt: 12 }
|
|
45
46
|
})
|
|
46
47
|
] }),
|
|
47
48
|
hasDivider: !1,
|
|
48
|
-
image:
|
|
49
|
+
image: m.GENERAL_CATEGORIZE_TRANSACTIONS,
|
|
49
50
|
imageLargeBreakPoint: 10
|
|
50
51
|
}),
|
|
51
|
-
"why-cant-i-see-the-software": /* @__PURE__ */ t(
|
|
52
|
-
content: /* @__PURE__ */ n
|
|
53
|
-
/* @__PURE__ */ t(
|
|
54
|
-
/* @__PURE__ */ t(
|
|
55
|
-
/* @__PURE__ */ t(
|
|
52
|
+
"why-cant-i-see-the-software": /* @__PURE__ */ t(i, {
|
|
53
|
+
content: /* @__PURE__ */ _(n.Fragment, { children: [
|
|
54
|
+
/* @__PURE__ */ t(r, { content: e.supported_browser_subheader }),
|
|
55
|
+
/* @__PURE__ */ t(a, { items: [e.supported_browser_step1, e.supported_browser_step2] }),
|
|
56
|
+
/* @__PURE__ */ t(r, {
|
|
56
57
|
content: e.display_issues_subheader,
|
|
57
58
|
sx: { mt: 6 }
|
|
58
59
|
}),
|
|
59
|
-
/* @__PURE__ */ t(
|
|
60
|
+
/* @__PURE__ */ t(a, { items: [
|
|
60
61
|
s(e.display_issues_step1, /* @__PURE__ */ t("b", { children: e.f12_bold_text })),
|
|
61
62
|
s(e.display_issues_step2, /* @__PURE__ */ t("b", { children: e.browser_mode_bold_text })),
|
|
62
63
|
e.display_issues_step3,
|
|
@@ -64,21 +65,25 @@ var f = ({ topicKey: _, copy: d }) => {
|
|
|
64
65
|
e.display_issues_step5,
|
|
65
66
|
e.display_issues_step6
|
|
66
67
|
] }),
|
|
67
|
-
/* @__PURE__ */ t(
|
|
68
|
+
/* @__PURE__ */ t(r, {
|
|
68
69
|
content: e.display_issues_footer_text,
|
|
69
70
|
sx: { mt: 6 }
|
|
70
71
|
})
|
|
71
72
|
] }),
|
|
72
73
|
hasDivider: !1
|
|
73
74
|
}),
|
|
74
|
-
"how-do-i-log-out-of-the-software": /* @__PURE__ */ t(
|
|
75
|
-
content: /* @__PURE__ */ t(
|
|
75
|
+
"how-do-i-log-out-of-the-software": /* @__PURE__ */ t(i, {
|
|
76
|
+
content: /* @__PURE__ */ t(r, { content: e.log_out_text }),
|
|
76
77
|
hasDivider: !1
|
|
77
78
|
})
|
|
78
|
-
}
|
|
79
|
+
};
|
|
80
|
+
return l(o) ? /* @__PURE__ */ t(u, {
|
|
81
|
+
copy: d,
|
|
82
|
+
topicKey: o
|
|
83
|
+
}) : c[o] ?? null;
|
|
79
84
|
};
|
|
80
85
|
export {
|
|
81
|
-
|
|
86
|
+
I as default
|
|
82
87
|
};
|
|
83
88
|
|
|
84
89
|
//# sourceMappingURL=General.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"General.es.js","names":[],"sources":["../../../../../src/help/components/content/section/General.tsx"],"sourcesContent":["import React from 'react'\n\nimport { BottomImageContent, NoImageContent } from '..'\nimport { SectionProps } from '../../../../core/types/Help'\nimport { List, Text } from '../ContentItem'\nimport { HELP_IMAGES } from '../../../constants/HelpImages'\nimport { buildDynamicCopy } from '../../../../core/utils/Localization'\n\nconst General: React.FC<SectionProps> = ({ topicKey, copy }) => {\n const { general_faqs: generalCopyContent } = copy\n const dynamicGoalsSection = {\n 'is-my-data-private-and-secure': (\n <NoImageContent\n content={\n <React.Fragment>\n <Text\n content={generalCopyContent.data_private_secure_subheader}\n sx={{ lineHeight: '24px' }}\n />\n <List\n items={[\n buildDynamicCopy(\n generalCopyContent.data_private_secure_step1,\n <b>{generalCopyContent.encryption_firewalls_bold_text}</b>,\n ) as React.ReactNode,\n buildDynamicCopy(\n generalCopyContent.data_private_secure_step2,\n <b>{generalCopyContent.secure_authentication_bold_text}</b>,\n ) as React.ReactNode,\n buildDynamicCopy(\n generalCopyContent.data_private_secure_step3,\n <b>{generalCopyContent.privacy_protection_bold_text}</b>,\n <b>{generalCopyContent.not_bold_text}</b>,\n ) as React.ReactNode,\n buildDynamicCopy(\n generalCopyContent.data_private_secure_step4,\n <b>{generalCopyContent.policy_updates_bold_text}</b>,\n ) as React.ReactNode,\n ]}\n />\n </React.Fragment>\n }\n hasDivider={false}\n />\n ),\n 'why-are-some-of-my-transactions-uncategorized': (\n <BottomImageContent\n altImage={topicKey}\n content={\n <React.Fragment>\n <Text content={generalCopyContent.transactions_categorized_subheader} />\n <List\n items={[\n buildDynamicCopy(\n generalCopyContent.transactions_categorized_step1,\n <b>{generalCopyContent.checks_atm_withdrawals_bold_text}</b>,\n ) as React.ReactNode,\n buildDynamicCopy(\n generalCopyContent.transactions_categorized_step2,\n <b>{generalCopyContent.limited_transaction_details_bold_text}</b>,\n ) as React.ReactNode,\n ]}\n />\n <Text\n content={generalCopyContent.transactions_uncategorized_subheader}\n sx={{ pt: 12 }}\n />\n <List\n items={[\n buildDynamicCopy(\n generalCopyContent.transactions_uncategorized_step1,\n <b>{generalCopyContent.transactions_bold_text}</b>,\n ) as React.ReactNode,\n buildDynamicCopy(\n generalCopyContent.transactions_uncategorized_step2,\n <b>{generalCopyContent.categorize_bold_text}</b>,\n ) as React.ReactNode,\n generalCopyContent.transactions_uncategorized_step3,\n generalCopyContent.transactions_uncategorized_step4,\n generalCopyContent.transactions_uncategorized_step5,\n ]}\n listType=\"ol\"\n />\n <Text\n content={generalCopyContent.transactions_uncategorized_footer_text}\n sx={{ pt: 12 }}\n />\n </React.Fragment>\n }\n hasDivider={false}\n image={HELP_IMAGES.GENERAL_CATEGORIZE_TRANSACTIONS}\n imageLargeBreakPoint={10}\n />\n ),\n 'why-cant-i-see-the-software': (\n <NoImageContent\n content={\n <React.Fragment>\n <Text content={generalCopyContent.supported_browser_subheader} />\n <List\n items={[\n generalCopyContent.supported_browser_step1,\n generalCopyContent.supported_browser_step2,\n ]}\n />\n <Text content={generalCopyContent.display_issues_subheader} sx={{ mt: 6 }} />\n <List\n items={[\n buildDynamicCopy(\n generalCopyContent.display_issues_step1,\n <b>{generalCopyContent.f12_bold_text}</b>,\n ) as React.ReactNode,\n buildDynamicCopy(\n generalCopyContent.display_issues_step2,\n <b>{generalCopyContent.browser_mode_bold_text}</b>,\n ) as React.ReactNode,\n generalCopyContent.display_issues_step3,\n buildDynamicCopy(\n generalCopyContent.display_issues_step4,\n <b>{generalCopyContent.document_mode_bold_text}</b>,\n ) as React.ReactNode,\n generalCopyContent.display_issues_step5,\n generalCopyContent.display_issues_step6,\n ]}\n />\n <Text content={generalCopyContent.display_issues_footer_text} sx={{ mt: 6 }} />\n </React.Fragment>\n }\n hasDivider={false}\n />\n ),\n 'how-do-i-log-out-of-the-software': (\n <NoImageContent\n content={<Text content={generalCopyContent.log_out_text} />}\n hasDivider={false}\n />\n ),\n }\n\n return dynamicGoalsSection[topicKey as keyof typeof dynamicGoalsSection]\n}\n\nexport default General\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"General.es.js","names":[],"sources":["../../../../../src/help/components/content/section/General.tsx"],"sourcesContent":["import React from 'react'\n\nimport { BottomImageContent, NoImageContent } from '..'\nimport { SectionProps } from '../../../../core/types/Help'\nimport { List, Text } from '../ContentItem'\nimport { HELP_IMAGES } from '../../../constants/HelpImages'\nimport { buildDynamicCopy } from '../../../../core/utils/Localization'\nimport { isLoginIssueTopic } from '../../../../core/constants/Help'\nimport LoginIssues from './LoginIssues'\n\nconst General: React.FC<SectionProps> = ({ topicKey, copy }) => {\n const { general_faqs: generalCopyContent } = copy\n const dynamicGoalsSection = {\n 'is-my-data-private-and-secure': (\n <NoImageContent\n content={\n <React.Fragment>\n <Text\n content={generalCopyContent.data_private_secure_subheader}\n sx={{ lineHeight: '24px' }}\n />\n <List\n items={[\n buildDynamicCopy(\n generalCopyContent.data_private_secure_step1,\n <b>{generalCopyContent.encryption_firewalls_bold_text}</b>,\n ) as React.ReactNode,\n buildDynamicCopy(\n generalCopyContent.data_private_secure_step2,\n <b>{generalCopyContent.secure_authentication_bold_text}</b>,\n ) as React.ReactNode,\n buildDynamicCopy(\n generalCopyContent.data_private_secure_step3,\n <b>{generalCopyContent.privacy_protection_bold_text}</b>,\n <b>{generalCopyContent.not_bold_text}</b>,\n ) as React.ReactNode,\n buildDynamicCopy(\n generalCopyContent.data_private_secure_step4,\n <b>{generalCopyContent.policy_updates_bold_text}</b>,\n ) as React.ReactNode,\n ]}\n />\n </React.Fragment>\n }\n hasDivider={false}\n />\n ),\n 'why-are-some-of-my-transactions-uncategorized': (\n <BottomImageContent\n altImage={topicKey}\n content={\n <React.Fragment>\n <Text content={generalCopyContent.transactions_categorized_subheader} />\n <List\n items={[\n buildDynamicCopy(\n generalCopyContent.transactions_categorized_step1,\n <b>{generalCopyContent.checks_atm_withdrawals_bold_text}</b>,\n ) as React.ReactNode,\n buildDynamicCopy(\n generalCopyContent.transactions_categorized_step2,\n <b>{generalCopyContent.limited_transaction_details_bold_text}</b>,\n ) as React.ReactNode,\n ]}\n />\n <Text\n content={generalCopyContent.transactions_uncategorized_subheader}\n sx={{ pt: 12 }}\n />\n <List\n items={[\n buildDynamicCopy(\n generalCopyContent.transactions_uncategorized_step1,\n <b>{generalCopyContent.transactions_bold_text}</b>,\n ) as React.ReactNode,\n buildDynamicCopy(\n generalCopyContent.transactions_uncategorized_step2,\n <b>{generalCopyContent.categorize_bold_text}</b>,\n ) as React.ReactNode,\n generalCopyContent.transactions_uncategorized_step3,\n generalCopyContent.transactions_uncategorized_step4,\n generalCopyContent.transactions_uncategorized_step5,\n ]}\n listType=\"ol\"\n />\n <Text\n content={generalCopyContent.transactions_uncategorized_footer_text}\n sx={{ pt: 12 }}\n />\n </React.Fragment>\n }\n hasDivider={false}\n image={HELP_IMAGES.GENERAL_CATEGORIZE_TRANSACTIONS}\n imageLargeBreakPoint={10}\n />\n ),\n 'why-cant-i-see-the-software': (\n <NoImageContent\n content={\n <React.Fragment>\n <Text content={generalCopyContent.supported_browser_subheader} />\n <List\n items={[\n generalCopyContent.supported_browser_step1,\n generalCopyContent.supported_browser_step2,\n ]}\n />\n <Text content={generalCopyContent.display_issues_subheader} sx={{ mt: 6 }} />\n <List\n items={[\n buildDynamicCopy(\n generalCopyContent.display_issues_step1,\n <b>{generalCopyContent.f12_bold_text}</b>,\n ) as React.ReactNode,\n buildDynamicCopy(\n generalCopyContent.display_issues_step2,\n <b>{generalCopyContent.browser_mode_bold_text}</b>,\n ) as React.ReactNode,\n generalCopyContent.display_issues_step3,\n buildDynamicCopy(\n generalCopyContent.display_issues_step4,\n <b>{generalCopyContent.document_mode_bold_text}</b>,\n ) as React.ReactNode,\n generalCopyContent.display_issues_step5,\n generalCopyContent.display_issues_step6,\n ]}\n />\n <Text content={generalCopyContent.display_issues_footer_text} sx={{ mt: 6 }} />\n </React.Fragment>\n }\n hasDivider={false}\n />\n ),\n 'how-do-i-log-out-of-the-software': (\n <NoImageContent\n content={<Text content={generalCopyContent.log_out_text} />}\n hasDivider={false}\n />\n ),\n }\n\n // The Login Issues articles are listed under General FAQs too; their content lives in LoginIssues.\n if (isLoginIssueTopic(topicKey)) return <LoginIssues copy={copy} topicKey={topicKey} />\n\n return dynamicGoalsSection[topicKey as keyof typeof dynamicGoalsSection] ?? null\n}\n\nexport default General\n"],"mappings":";;;;;;;;;AAUA,IAAM,IAAA,CAAmC,EAAE,UAAA,GAAU,MAAA,EAAA,MAAW;AAC9D,QAAM,EAAE,cAAc,EAAA,IAAuB,GACvC,IAAsB;AAAA,IAC1B,iCACE,gBAAA,EAAC,GAAD;AAAA,MACE,SACE,gBAAA,EAAC,EAAM,UAAP,EAAA,UAAA,CACE,gBAAA,EAAC,GAAD;AAAA,QACE,SAAS,EAAmB;AAAA,QAC5B,IAAI,EAAE,YAAY,OAAO;AAAA,MAC1B,CAAA,GACD,gBAAA,EAAC,GAAD,EACE,OAAO;AAAA,QACL,EACE,EAAmB,2BACnB,gBAAA,EAAC,KAAD,EAAA,UAAI,EAAmB,+BAAkC,CAAA,CAC3D;AAAA,QACA,EACE,EAAmB,2BACnB,gBAAA,EAAC,KAAD,EAAA,UAAI,EAAmB,gCAAmC,CAAA,CAC5D;AAAA,QACA,EACE,EAAmB,2BACnB,gBAAA,EAAC,KAAD,EAAA,UAAI,EAAmB,6BAAgC,CAAA,GACvD,gBAAA,EAAC,KAAD,EAAA,UAAI,EAAmB,cAAiB,CAAA,CAC1C;AAAA,QACA,EACE,EAAmB,2BACnB,gBAAA,EAAC,KAAD,EAAA,UAAI,EAAmB,yBAA4B,CAAA,CACrD;AAAA,MACF,EACD,CAAA,CACa,EAAA,CAAA;AAAA,MAElB,YAAY;AAAA,IACb,CAAA;AAAA,IAEH,iDACE,gBAAA,EAAC,GAAD;AAAA,MACE,UAAU;AAAA,MACV,SACE,gBAAA,EAAC,EAAM,UAAP,EAAA,UAAA;AAAA,QACE,gBAAA,EAAC,GAAD,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,EAAE;AAAA,QAAI,CAAA;AAAA,QAC5E,gBAAA,EAAC,GAAD,EACE,OAAO;AAAA,UACL,EACE,EAAmB,sBACnB,gBAAA,EAAC,KAAD,EAAA,UAAI,EAAmB,cAAiB,CAAA,CAC1C;AAAA,UACA,EACE,EAAmB,sBACnB,gBAAA,EAAC,KAAD,EAAA,UAAI,EAAmB,uBAA0B,CAAA,CACnD;AAAA,UACA,EAAmB;AAAA,UACnB,EACE,EAAmB,sBACnB,gBAAA,EAAC,KAAD,EAAA,UAAI,EAAmB,wBAA2B,CAAA,CACpD;AAAA,UACA,EAAmB;AAAA,UACnB,EAAmB;AAAA,QACrB,EACD,CAAA;AAAA,QACD,gBAAA,EAAC,GAAD;AAAA,UAAM,SAAS,EAAmB;AAAA,UAA4B,IAAI,EAAE,IAAI,EAAE;AAAA,QAAI,CAAA;AAAA,MAChE,EAAA,CAAA;AAAA,MAElB,YAAY;AAAA,IACb,CAAA;AAAA,IAEH,oCACE,gBAAA,EAAC,GAAD;AAAA,MACE,SAAS,gBAAA,EAAC,GAAD,EAAM,SAAS,EAAmB,aAAe,CAAA;AAAA,MAC1D,YAAY;AAAA,IACb,CAAA;AAAA,EAEL;AAGA,SAAI,EAAkB,CAAQ,IAAU,gBAAA,EAAC,GAAD;AAAA,IAAmB,MAAA;AAAA,IAAgB,UAAA;AAAA,EAAW,CAAA,IAE/E,EAAoB,CAAA,KAAiD;AAC9E"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { NoImageContent as s } from "../NoImageContent.es.js";
|
|
2
|
-
import { List as c, Text as
|
|
2
|
+
import { List as c, Text as _ } from "../ContentItem.es.js";
|
|
3
3
|
import i from "react";
|
|
4
|
-
import { jsx as
|
|
4
|
+
import { jsx as t, jsxs as p } from "react/jsx-runtime";
|
|
5
5
|
var f = ({ topicKey: n, copy: r }) => {
|
|
6
|
-
const e = r.login_issues
|
|
6
|
+
const e = r.login_issues;
|
|
7
|
+
if (!e) return null;
|
|
8
|
+
const o = {
|
|
7
9
|
"not-receiving-code": {
|
|
8
10
|
summary: e.not_receiving_code_summary,
|
|
9
11
|
steps: [
|
|
@@ -47,15 +49,16 @@ var f = ({ topicKey: n, copy: r }) => {
|
|
|
47
49
|
footer: e.new_code_or_token_footer
|
|
48
50
|
}
|
|
49
51
|
}[n];
|
|
50
|
-
return o ? /* @__PURE__ */
|
|
52
|
+
return o ? /* @__PURE__ */ t(s, {
|
|
51
53
|
hasDivider: !1,
|
|
52
54
|
content: /* @__PURE__ */ p(i.Fragment, { children: [
|
|
53
|
-
/* @__PURE__ */ _
|
|
54
|
-
/* @__PURE__ */
|
|
55
|
+
/* @__PURE__ */ t(_, { content: o.summary }),
|
|
56
|
+
/* @__PURE__ */ t(c, {
|
|
57
|
+
itemGap: 8,
|
|
55
58
|
items: [...o.steps],
|
|
56
59
|
listType: "ol"
|
|
57
60
|
}),
|
|
58
|
-
/* @__PURE__ */ _
|
|
61
|
+
/* @__PURE__ */ t(_, {
|
|
59
62
|
content: o.footer,
|
|
60
63
|
sx: { pt: 12 }
|
|
61
64
|
})
|
|
@@ -1 +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,
|
|
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 // Copy ships separately; without it there is nothing to render, so don't throw.\n if (!c) return null\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 itemGap={8} 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;AAEf,MAAI,CAAC,EAAG,QAAO;AA+Cf,QAAM,IAAQ;AAAA,IA5CZ,sBAAsB;AAAA,MACpB,SAAS,EAAE;AAAA,MACX,OAAO;AAAA,QACL,EAAE;AAAA,QACF,EAAE;AAAA,QACF,EAAE;AAAA,QACF,EAAE;AAAA,QACF,EAAE;AAAA,MACJ;AAAA,MACA,QAAQ,EAAE;AAAA,IACZ;AAAA,IACA,sBAAsB;AAAA,MACpB,SAAS,EAAE;AAAA,MACX,OAAO;AAAA,QACL,EAAE;AAAA,QACF,EAAE;AAAA,QACF,EAAE;AAAA,QACF,EAAE;AAAA,MACJ;AAAA,MACA,QAAQ,EAAE;AAAA,IACZ;AAAA,IACA,yBAAyB;AAAA,MACvB,SAAS,EAAE;AAAA,MACX,OAAO;AAAA,QACL,EAAE;AAAA,QACF,EAAE;AAAA,QACF,EAAE;AAAA,QACF,EAAE;AAAA,MACJ;AAAA,MACA,QAAQ,EAAE;AAAA,IACZ;AAAA,IACA,qBAAqB;AAAA,MACnB,SAAS,EAAE;AAAA,MACX,OAAO;AAAA,QACL,EAAE;AAAA,QACF,EAAE;AAAA,QACF,EAAE;AAAA,QACF,EAAE;AAAA,QACF,EAAE;AAAA,MACJ;AAAA,MACA,QAAQ,EAAE;AAAA,IACZ;AAAA,EAGY,EAAS,CAAA;AACvB,SAAK,IAGH,gBAAA,EAAC,GAAD;AAAA,IACE,YAAY;AAAA,IACZ,SACE,gBAAA,EAAC,EAAM,UAAP,EAAA,UAAA;AAAA,MACE,gBAAA,EAAC,GAAD,EAAM,SAAS,EAAM,QAAU,CAAA;AAAA,MAC/B,gBAAA,EAAC,GAAD;AAAA,QAAM,SAAS;AAAA,QAAG,OAAO,CAAC,GAAG,EAAM,KAAK;AAAA,QAAG,UAAS;AAAA,MAAM,CAAA;AAAA,MAC1D,gBAAA,EAAC,GAAD;AAAA,QAAM,SAAS,EAAM;AAAA,QAAQ,IAAI,EAAE,IAAI,GAAG;AAAA,MAAI,CAAA;AAAA,IAChC,EAAA,CAAA;AAAA,EAEnB,CAAA,IAZgB;AAcrB"}
|
|
@@ -2,35 +2,35 @@ 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 s from "./
|
|
6
|
-
import m from "./
|
|
7
|
-
import n from "./
|
|
8
|
-
import e from "./
|
|
9
|
-
import p from "./
|
|
10
|
-
import a from "./
|
|
11
|
-
import f from "./
|
|
12
|
-
import c from "./
|
|
13
|
-
import g from "./
|
|
14
|
-
import l from "./
|
|
15
|
-
import u from "./
|
|
16
|
-
import d from "./
|
|
5
|
+
import s from "./LoginIssues.es.js";
|
|
6
|
+
import m from "./General.es.js";
|
|
7
|
+
import n from "./Goals.es.js";
|
|
8
|
+
import e from "./Investments.es.js";
|
|
9
|
+
import p from "./Mobile.es.js";
|
|
10
|
+
import a from "./NetWorth.es.js";
|
|
11
|
+
import f from "./Notifications.es.js";
|
|
12
|
+
import c from "./RecurringTransactions.es.js";
|
|
13
|
+
import g from "./Spending.es.js";
|
|
14
|
+
import l from "./Transactions.es.js";
|
|
15
|
+
import u from "./Trends.es.js";
|
|
16
|
+
import d from "./Insights.es.js";
|
|
17
17
|
var L = {
|
|
18
18
|
accounts: o,
|
|
19
|
-
alerts:
|
|
19
|
+
alerts: f,
|
|
20
20
|
budgets: r,
|
|
21
21
|
cashflow: t,
|
|
22
22
|
debts: i,
|
|
23
|
-
general:
|
|
24
|
-
goals:
|
|
25
|
-
insights:
|
|
26
|
-
login_issues:
|
|
27
|
-
investments:
|
|
28
|
-
mobile:
|
|
29
|
-
networth:
|
|
30
|
-
recurring_transactions:
|
|
31
|
-
spending:
|
|
32
|
-
transactions:
|
|
33
|
-
trends:
|
|
23
|
+
general: m,
|
|
24
|
+
goals: n,
|
|
25
|
+
insights: d,
|
|
26
|
+
login_issues: s,
|
|
27
|
+
investments: e,
|
|
28
|
+
mobile: p,
|
|
29
|
+
networth: a,
|
|
30
|
+
recurring_transactions: c,
|
|
31
|
+
spending: g,
|
|
32
|
+
transactions: l,
|
|
33
|
+
trends: u
|
|
34
34
|
};
|
|
35
35
|
export {
|
|
36
36
|
L as contentSection
|
|
@@ -7,31 +7,31 @@ import { Icon as A, Text as d } from "@mxenabled/mxui";
|
|
|
7
7
|
import { ExpandMore as T } from "@mxenabled/mx-icons";
|
|
8
8
|
import { jsx as r, jsxs as c } from "react/jsx-runtime";
|
|
9
9
|
import P from "@mui/material/Divider";
|
|
10
|
-
import
|
|
10
|
+
import h from "@mui/material/List";
|
|
11
11
|
import N from "@mui/material/ListItem";
|
|
12
12
|
import O from "@mui/material/ListItemButton";
|
|
13
13
|
import B from "@mui/material/Accordion";
|
|
14
14
|
import D from "@mui/material/AccordionDetails";
|
|
15
15
|
import H from "@mui/material/AccordionSummary";
|
|
16
16
|
var Z = ({ copy: n, helpByCategory: g, onClick: y, onOpenCase: E, onTopicSelect: _ }) => {
|
|
17
|
-
const [
|
|
17
|
+
const [L, b] = m.useState(null), u = m.useRef([]), { onEvent: s } = S();
|
|
18
18
|
return /* @__PURE__ */ r(l, {
|
|
19
19
|
sx: {
|
|
20
20
|
flex: 1,
|
|
21
21
|
gap: 12,
|
|
22
22
|
p: 12
|
|
23
23
|
},
|
|
24
|
-
children: g.map(({ description: x, guid:
|
|
24
|
+
children: g.map(({ description: x, guid: C, icon: I, title: o, topics: t }, i) => /* @__PURE__ */ c(B, {
|
|
25
25
|
disableGutters: !0,
|
|
26
|
-
expanded: i ===
|
|
26
|
+
expanded: i === L,
|
|
27
27
|
onChange: (e, p) => {
|
|
28
|
-
s(a.HELP_EXPAND_CATEGORY, { category: o }),
|
|
28
|
+
s(a.HELP_EXPAND_CATEGORY, { category: o }), b(p ? i : null);
|
|
29
29
|
},
|
|
30
30
|
ref: (e) => {
|
|
31
31
|
u.current[i] = e;
|
|
32
32
|
},
|
|
33
|
-
slotProps: { transition: { onEntered: () => u.current[i]?.scrollIntoView(
|
|
34
|
-
sx:
|
|
33
|
+
slotProps: { transition: { onEntered: () => u.current[i]?.scrollIntoView(M) } },
|
|
34
|
+
sx: G,
|
|
35
35
|
children: [
|
|
36
36
|
/* @__PURE__ */ r(H, {
|
|
37
37
|
expandIcon: /* @__PURE__ */ r(T, { sx: { color: "text.primary" } }),
|
|
@@ -70,19 +70,23 @@ var Z = ({ copy: n, helpByCategory: g, onClick: y, onOpenCase: E, onTopicSelect:
|
|
|
70
70
|
color: "text.secondary",
|
|
71
71
|
variant: "subtitle2",
|
|
72
72
|
children: x
|
|
73
|
-
}), t.length > 0 && /* @__PURE__ */ r(
|
|
73
|
+
}), t.length > 0 && /* @__PURE__ */ r(h, {
|
|
74
74
|
dense: !0,
|
|
75
75
|
disablePadding: !0,
|
|
76
76
|
sx: {
|
|
77
|
+
display: "flex",
|
|
78
|
+
flexDirection: "column",
|
|
79
|
+
gap: 8,
|
|
77
80
|
listStyleType: "disc",
|
|
78
|
-
pl: 20
|
|
81
|
+
pl: 20,
|
|
82
|
+
"&& > .MuiListItem-root": {
|
|
83
|
+
minHeight: 0,
|
|
84
|
+
py: 0
|
|
85
|
+
}
|
|
79
86
|
},
|
|
80
87
|
children: t.map(({ label: e }) => /* @__PURE__ */ r(N, {
|
|
81
88
|
disableGutters: !0,
|
|
82
|
-
sx: {
|
|
83
|
-
display: "list-item",
|
|
84
|
-
py: 2
|
|
85
|
-
},
|
|
89
|
+
sx: { display: "list-item" },
|
|
86
90
|
children: /* @__PURE__ */ r(d, {
|
|
87
91
|
color: "text.secondary",
|
|
88
92
|
variant: "subtitle2",
|
|
@@ -90,20 +94,20 @@ var Z = ({ copy: n, helpByCategory: g, onClick: y, onOpenCase: E, onTopicSelect:
|
|
|
90
94
|
})
|
|
91
95
|
}, e))
|
|
92
96
|
})]
|
|
93
|
-
}) : /* @__PURE__ */ c(m.Fragment, { children: [t.length > 0 && /* @__PURE__ */ r(
|
|
97
|
+
}) : /* @__PURE__ */ c(m.Fragment, { children: [t.length > 0 && /* @__PURE__ */ r(h, {
|
|
94
98
|
sx: { "& .MuiListItemButton-root": { pl: 6 } },
|
|
95
|
-
children: t.map(({ label: e, type: p, topicKey:
|
|
99
|
+
children: t.map(({ label: e, type: p, topicKey: f }, R) => /* @__PURE__ */ r(O, {
|
|
96
100
|
divider: !0,
|
|
97
101
|
onClick: () => {
|
|
98
102
|
if (s(a.HELP_CLICK_CATEGORY, {
|
|
99
103
|
category: o,
|
|
100
104
|
helpTopic: e
|
|
101
|
-
}),
|
|
105
|
+
}), f) {
|
|
102
106
|
_({
|
|
103
|
-
guid:
|
|
107
|
+
guid: C,
|
|
104
108
|
category: o,
|
|
105
109
|
pageTitle: e,
|
|
106
|
-
topicKey:
|
|
110
|
+
topicKey: f
|
|
107
111
|
});
|
|
108
112
|
return;
|
|
109
113
|
}
|
|
@@ -145,10 +149,10 @@ var Z = ({ copy: n, helpByCategory: g, onClick: y, onOpenCase: E, onTopicSelect:
|
|
|
145
149
|
]
|
|
146
150
|
}, i))
|
|
147
151
|
});
|
|
148
|
-
},
|
|
152
|
+
}, M = {
|
|
149
153
|
behavior: "smooth",
|
|
150
154
|
block: "nearest"
|
|
151
|
-
},
|
|
155
|
+
}, G = (n) => ({
|
|
152
156
|
border: `1px solid ${n.palette.neutral?.light}`,
|
|
153
157
|
borderRadius: "8px",
|
|
154
158
|
"&:first-of-type": { borderRadius: "8px" },
|
|
@@ -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 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,S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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 // Read-only bullets with one even gap. The theme gives every list item inside an\n // accordion a 44px min-height (a tap-target size), which padded one-line bullets but\n // not wrapped ones, so the gaps were uneven. The doubled class outranks the theme\n // rule, and `>` keeps the override to this list's own bullets.\n <List\n dense={true}\n disablePadding={true}\n sx={{\n display: 'flex',\n flexDirection: 'column',\n gap: 8,\n listStyleType: 'disc',\n pl: 20,\n '&& > .MuiListItem-root': { minHeight: 0, py: 0 },\n }}\n >\n {topics.map(({ label }) => (\n <ListItem disableGutters={true} key={label} sx={{ display: 'list-item' }}>\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,IAAO,IAAI;AAAA,MAAE,MAAM;AAAA,MAAG,KAAK;AAAA,MAAI,GAAG;AAAA,IAAG;AAA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