@mx-cartographer/experiences 9.4.50 → 9.4.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 +4 -0
- package/dist/budgets/components/addbudget/Header.es.js +3 -3
- package/dist/budgets/components/addbudget/Header.es.js.map +1 -1
- package/dist/budgets/components/addbudget/RecalculateBudgets.es.js +11 -9
- package/dist/budgets/components/addbudget/RecalculateBudgets.es.js.map +1 -1
- package/dist/finstrong/components/KeyIndicatorsDrawer.es.js +1 -0
- package/dist/finstrong/components/KeyIndicatorsDrawer.es.js.map +1 -1
- package/dist/help/components/HelpList.es.js +14 -14
- package/dist/help/components/HelpList.es.js.map +1 -1
- package/dist/help/components/requestsupport/ContactSupport.es.js +14 -14
- package/dist/help/components/requestsupport/ContactSupport.es.js.map +1 -1
- package/dist/help/components/requestsupport/HelpByCategoryList.es.js +1 -1
- package/dist/help/components/requestsupport/HelpByCategoryList.es.js.map +1 -1
- package/dist/help/components/requestsupport/RequestSupportInstitution.es.js +2 -2
- package/dist/help/components/requestsupport/RequestSupportInstitution.es.js.map +1 -1
- package/dist/insights/components/shared/InsightsCard/CardError.es.js +10 -10
- package/dist/insights/components/shared/InsightsCard/CardError.es.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -19,7 +19,7 @@ var v = u(() => {
|
|
|
19
19
|
variant: "body1",
|
|
20
20
|
children: i(d, "0,0")
|
|
21
21
|
}), /* @__PURE__ */ e(r, {
|
|
22
|
-
color: "secondary",
|
|
22
|
+
color: "text.secondary",
|
|
23
23
|
variant: "body2",
|
|
24
24
|
children: n.projected_income
|
|
25
25
|
})]
|
|
@@ -37,7 +37,7 @@ var v = u(() => {
|
|
|
37
37
|
variant: "body1",
|
|
38
38
|
children: i(c, "0,0")
|
|
39
39
|
}), /* @__PURE__ */ e(r, {
|
|
40
|
-
color: "secondary",
|
|
40
|
+
color: "text.secondary",
|
|
41
41
|
variant: "body2",
|
|
42
42
|
children: n.budgeted
|
|
43
43
|
})]
|
|
@@ -55,7 +55,7 @@ var v = u(() => {
|
|
|
55
55
|
variant: "body1",
|
|
56
56
|
children: i(a, "0,0")
|
|
57
57
|
}), /* @__PURE__ */ e(r, {
|
|
58
|
-
color: "secondary",
|
|
58
|
+
color: "text.secondary",
|
|
59
59
|
variant: "body2",
|
|
60
60
|
children: n.remaining
|
|
61
61
|
})]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Header.es.js","names":[],"sources":["../../../../src/budgets/components/addbudget/Header.tsx"],"sourcesContent":["import { observer } from 'mobx-react-lite'\n\nimport Stack from '@mui/material/Stack'\n\nimport { Text } from '@mxenabled/mxui'\n\nimport { useBudgetsStore, useGlobalCopyStore, useRecurringTransactionsStore } from '../../../common'\nimport { formatCurrency } from '../../../core/utils/NumberFormatting'\n\nexport const Header = observer(() => {\n const { budgets: copy } = useGlobalCopyStore()\n const { totalBudgeted } = useBudgetsStore()\n const { incomeTotal } = useRecurringTransactionsStore()\n\n const remaining = incomeTotal - totalBudgeted\n\n return (\n <Stack direction=\"row\" justifyContent=\"center\" my={16} spacing={20}>\n <Stack alignItems=\"center\">\n <Text bold={true} variant=\"body1\">\n {formatCurrency(incomeTotal, '0,0')}\n </Text>\n <Text color=\"secondary\" variant=\"body2\">\n {copy.projected_income}\n </Text>\n </Stack>\n\n <Text bold={true} justifyContent=\"center\" variant=\"body1\">\n {'-'}\n </Text>\n\n <Stack alignItems=\"center\">\n <Text bold={true} variant=\"body1\">\n {formatCurrency(totalBudgeted, '0,0')}\n </Text>\n <Text color=\"secondary\" variant=\"body2\">\n {copy.budgeted}\n </Text>\n </Stack>\n\n <Text bold={true} justifyContent=\"center\" variant=\"body1\">\n {'='}\n </Text>\n\n <Stack alignItems=\"center\">\n <Text bold={true} variant=\"body1\">\n {formatCurrency(remaining, '0,0')}\n </Text>\n <Text color=\"secondary\" variant=\"body2\">\n {copy.remaining}\n </Text>\n </Stack>\n </Stack>\n )\n})\n"],"mappings":";;;;;;AASA,IAAa,IAAS,EAAA,MAAe;AACnC,QAAM,EAAE,SAAS,EAAA,IAAS,EAAmB,GACvC,EAAE,eAAA,EAAA,IAAkB,EAAgB,GACpC,EAAE,aAAA,EAAA,IAAgB,EAA8B,GAEhD,IAAY,IAAc;AAEhC,SACE,gBAAA,EAAC,GAAD;AAAA,IAAO,WAAU;AAAA,IAAM,gBAAe;AAAA,IAAS,IAAI;AAAA,IAAI,SAAS;AAAA,IAAhE,UAAA;AAAA,MACE,gBAAA,EAAC,GAAD;AAAA,QAAO,YAAW;AAAA,QAAlB,UAAA,CACE,gBAAA,EAAC,GAAD;AAAA,UAAM,MAAM;AAAA,UAAM,SAAQ;AAAA,UACvB,UAAA,EAAe,GAAa,KAAK;AAAA,QAC9B,CAAA,GACN,gBAAA,EAAC,GAAD;AAAA,UAAM,OAAM;AAAA,
|
|
1
|
+
{"version":3,"file":"Header.es.js","names":[],"sources":["../../../../src/budgets/components/addbudget/Header.tsx"],"sourcesContent":["import { observer } from 'mobx-react-lite'\n\nimport Stack from '@mui/material/Stack'\n\nimport { Text } from '@mxenabled/mxui'\n\nimport { useBudgetsStore, useGlobalCopyStore, useRecurringTransactionsStore } from '../../../common'\nimport { formatCurrency } from '../../../core/utils/NumberFormatting'\n\nexport const Header = observer(() => {\n const { budgets: copy } = useGlobalCopyStore()\n const { totalBudgeted } = useBudgetsStore()\n const { incomeTotal } = useRecurringTransactionsStore()\n\n const remaining = incomeTotal - totalBudgeted\n\n return (\n <Stack direction=\"row\" justifyContent=\"center\" my={16} spacing={20}>\n <Stack alignItems=\"center\">\n <Text bold={true} variant=\"body1\">\n {formatCurrency(incomeTotal, '0,0')}\n </Text>\n <Text color=\"text.secondary\" variant=\"body2\">\n {copy.projected_income}\n </Text>\n </Stack>\n\n <Text bold={true} justifyContent=\"center\" variant=\"body1\">\n {'-'}\n </Text>\n\n <Stack alignItems=\"center\">\n <Text bold={true} variant=\"body1\">\n {formatCurrency(totalBudgeted, '0,0')}\n </Text>\n <Text color=\"text.secondary\" variant=\"body2\">\n {copy.budgeted}\n </Text>\n </Stack>\n\n <Text bold={true} justifyContent=\"center\" variant=\"body1\">\n {'='}\n </Text>\n\n <Stack alignItems=\"center\">\n <Text bold={true} variant=\"body1\">\n {formatCurrency(remaining, '0,0')}\n </Text>\n <Text color=\"text.secondary\" variant=\"body2\">\n {copy.remaining}\n </Text>\n </Stack>\n </Stack>\n )\n})\n"],"mappings":";;;;;;AASA,IAAa,IAAS,EAAA,MAAe;AACnC,QAAM,EAAE,SAAS,EAAA,IAAS,EAAmB,GACvC,EAAE,eAAA,EAAA,IAAkB,EAAgB,GACpC,EAAE,aAAA,EAAA,IAAgB,EAA8B,GAEhD,IAAY,IAAc;AAEhC,SACE,gBAAA,EAAC,GAAD;AAAA,IAAO,WAAU;AAAA,IAAM,gBAAe;AAAA,IAAS,IAAI;AAAA,IAAI,SAAS;AAAA,IAAhE,UAAA;AAAA,MACE,gBAAA,EAAC,GAAD;AAAA,QAAO,YAAW;AAAA,QAAlB,UAAA,CACE,gBAAA,EAAC,GAAD;AAAA,UAAM,MAAM;AAAA,UAAM,SAAQ;AAAA,UACvB,UAAA,EAAe,GAAa,KAAK;AAAA,QAC9B,CAAA,GACN,gBAAA,EAAC,GAAD;AAAA,UAAM,OAAM;AAAA,UAAiB,SAAQ;AAAA,UAClC,UAAA,EAAK;AAAA,QACF,CAAA,CACD;AAAA;MAEP,gBAAA,EAAC,GAAD;AAAA,QAAM,MAAM;AAAA,QAAM,gBAAe;AAAA,QAAS,SAAQ;AAAA,QAC/C,UAAA;AAAA,MACG,CAAA;AAAA,MAEN,gBAAA,EAAC,GAAD;AAAA,QAAO,YAAW;AAAA,QAAlB,UAAA,CACE,gBAAA,EAAC,GAAD;AAAA,UAAM,MAAM;AAAA,UAAM,SAAQ;AAAA,UACvB,UAAA,EAAe,GAAe,KAAK;AAAA,QAChC,CAAA,GACN,gBAAA,EAAC,GAAD;AAAA,UAAM,OAAM;AAAA,UAAiB,SAAQ;AAAA,UAClC,UAAA,EAAK;AAAA,QACF,CAAA,CACD;AAAA;MAEP,gBAAA,EAAC,GAAD;AAAA,QAAM,MAAM;AAAA,QAAM,gBAAe;AAAA,QAAS,SAAQ;AAAA,QAC/C,UAAA;AAAA,MACG,CAAA;AAAA,MAEN,gBAAA,EAAC,GAAD;AAAA,QAAO,YAAW;AAAA,QAAlB,UAAA,CACE,gBAAA,EAAC,GAAD;AAAA,UAAM,MAAM;AAAA,UAAM,SAAQ;AAAA,UACvB,UAAA,EAAe,GAAW,KAAK;AAAA,QAC5B,CAAA,GACN,gBAAA,EAAC,GAAD;AAAA,UAAM,OAAM;AAAA,UAAiB,SAAQ;AAAA,UAClC,UAAA,EAAK;AAAA,QACF,CAAA,CACD;AAAA;IACF;AAAA;AAEX,CAAC"}
|
|
@@ -2,20 +2,20 @@ import { useBudgetsStore as b, useCategoryStore as h, useGlobalCopyStore as x }
|
|
|
2
2
|
import y from "../../../common/components/drawer/Drawer.es.js";
|
|
3
3
|
import { RecalculateBudgetRow as _ } from "./RecalculateBudgetRow.es.js";
|
|
4
4
|
import i from "react";
|
|
5
|
-
import
|
|
5
|
+
import n from "@mui/material/Stack";
|
|
6
6
|
import { Text as a } from "@mxenabled/mxui";
|
|
7
7
|
import C from "@mui/material/Button";
|
|
8
|
-
import { jsx as e, jsxs as
|
|
8
|
+
import { jsx as e, jsxs as c } from "react/jsx-runtime";
|
|
9
9
|
import v from "@mui/material/Box";
|
|
10
10
|
import B from "@mui/material/List";
|
|
11
|
-
var F = ({ onRecalculateBudgets:
|
|
12
|
-
const { budgets: t, common: m } = x(), { spendCategories: u } = h(), { recalculateBudgets:
|
|
13
|
-
await
|
|
11
|
+
var F = ({ onRecalculateBudgets: s }) => {
|
|
12
|
+
const { budgets: t, common: m } = x(), { spendCategories: u } = h(), { recalculateBudgets: p, setAlert: d } = b(), [g, o] = i.useState(!1), l = u.filter((r) => r.totalAverageAmount > 0), f = async () => {
|
|
13
|
+
await p(l), o(!1), d({
|
|
14
14
|
msg: t.alert_recalculated_budgets,
|
|
15
15
|
severity: "success"
|
|
16
|
-
}),
|
|
16
|
+
}), s?.();
|
|
17
17
|
};
|
|
18
|
-
return /* @__PURE__ */
|
|
18
|
+
return /* @__PURE__ */ c(i.Fragment, { children: [
|
|
19
19
|
/* @__PURE__ */ e(C, {
|
|
20
20
|
onClick: () => o(!0),
|
|
21
21
|
sx: {
|
|
@@ -32,6 +32,7 @@ var F = ({ onRecalculateBudgets: n }) => {
|
|
|
32
32
|
textAlign: "center"
|
|
33
33
|
},
|
|
34
34
|
variant: "subtitle1",
|
|
35
|
+
component: "span",
|
|
35
36
|
children: t.recalculate_help
|
|
36
37
|
}),
|
|
37
38
|
/* @__PURE__ */ e(y, {
|
|
@@ -40,7 +41,7 @@ var F = ({ onRecalculateBudgets: n }) => {
|
|
|
40
41
|
onClose: () => o(!1),
|
|
41
42
|
onPrimaryAction: f,
|
|
42
43
|
title: t.recalculate_title,
|
|
43
|
-
children: /* @__PURE__ */
|
|
44
|
+
children: /* @__PURE__ */ c(n, { children: [/* @__PURE__ */ c(n, {
|
|
44
45
|
mx: 24,
|
|
45
46
|
my: 16,
|
|
46
47
|
children: [/* @__PURE__ */ e(a, {
|
|
@@ -48,12 +49,13 @@ var F = ({ onRecalculateBudgets: n }) => {
|
|
|
48
49
|
variant: "body1",
|
|
49
50
|
children: t.recalculate_description_top
|
|
50
51
|
}), /* @__PURE__ */ e(a, {
|
|
52
|
+
component: "span",
|
|
51
53
|
variant: "subtitle2",
|
|
52
54
|
children: t.recalculate_description_bottom
|
|
53
55
|
})]
|
|
54
56
|
}), /* @__PURE__ */ e(v, {
|
|
55
57
|
bgcolor: "background.paper",
|
|
56
|
-
children: /* @__PURE__ */ e(B, { children:
|
|
58
|
+
children: /* @__PURE__ */ e(B, { children: l.map((r) => /* @__PURE__ */ e(_, { category: r }, r.guid)) })
|
|
57
59
|
})] })
|
|
58
60
|
})
|
|
59
61
|
] });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RecalculateBudgets.es.js","names":[],"sources":["../../../../src/budgets/components/addbudget/RecalculateBudgets.tsx"],"sourcesContent":["import React from 'react'\n\nimport Button from '@mui/material/Button'\nimport List from '@mui/material/List'\nimport Box from '@mui/material/Box'\nimport Stack from '@mui/material/Stack'\n\nimport { Text } from '@mxenabled/mxui'\n\nimport { Drawer, useBudgetsStore, useCategoryStore, useGlobalCopyStore } from '../../../common'\n\nimport { RecalculateBudgetRow } from './RecalculateBudgetRow'\n\ninterface RecalculateBudgetsProps {\n onRecalculateBudgets?: () => void\n}\n\nexport const RecalculateBudgets = ({ onRecalculateBudgets }: RecalculateBudgetsProps) => {\n const { budgets: copy, common: commonCopy } = useGlobalCopyStore()\n const { spendCategories } = useCategoryStore()\n const { recalculateBudgets, setAlert } = useBudgetsStore()\n\n const [isOpen, setIsOpen] = React.useState(false)\n\n const newBudgetCategories = spendCategories.filter((category) => category.totalAverageAmount > 0)\n\n const handlePrimaryClick = async () => {\n await recalculateBudgets(newBudgetCategories)\n\n setIsOpen(false)\n setAlert({ msg: copy.alert_recalculated_budgets, severity: 'success' })\n onRecalculateBudgets?.()\n }\n\n return (\n <React.Fragment>\n <Button onClick={() => setIsOpen(true)} sx={{ mt: 24, mx: 24 }} variant=\"text\">\n {copy.recalculate_button}\n </Button>\n\n <Text sx={{ mx: 24, my: 16, textAlign: 'center' }} variant=\"subtitle1\">\n {copy.recalculate_help}\n </Text>\n <Drawer\n ariaLabelClose={commonCopy.close_aria}\n isOpen={isOpen}\n onClose={() => setIsOpen(false)}\n onPrimaryAction={handlePrimaryClick}\n title={copy.recalculate_title}\n >\n <Stack>\n <Stack mx={24} my={16}>\n <Text bold={true} variant=\"body1\">\n {copy.recalculate_description_top}\n </Text>\n <Text variant=\"subtitle2\"
|
|
1
|
+
{"version":3,"file":"RecalculateBudgets.es.js","names":[],"sources":["../../../../src/budgets/components/addbudget/RecalculateBudgets.tsx"],"sourcesContent":["import React from 'react'\n\nimport Button from '@mui/material/Button'\nimport List from '@mui/material/List'\nimport Box from '@mui/material/Box'\nimport Stack from '@mui/material/Stack'\n\nimport { Text } from '@mxenabled/mxui'\n\nimport { Drawer, useBudgetsStore, useCategoryStore, useGlobalCopyStore } from '../../../common'\n\nimport { RecalculateBudgetRow } from './RecalculateBudgetRow'\n\ninterface RecalculateBudgetsProps {\n onRecalculateBudgets?: () => void\n}\n\nexport const RecalculateBudgets = ({ onRecalculateBudgets }: RecalculateBudgetsProps) => {\n const { budgets: copy, common: commonCopy } = useGlobalCopyStore()\n const { spendCategories } = useCategoryStore()\n const { recalculateBudgets, setAlert } = useBudgetsStore()\n\n const [isOpen, setIsOpen] = React.useState(false)\n\n const newBudgetCategories = spendCategories.filter((category) => category.totalAverageAmount > 0)\n\n const handlePrimaryClick = async () => {\n await recalculateBudgets(newBudgetCategories)\n\n setIsOpen(false)\n setAlert({ msg: copy.alert_recalculated_budgets, severity: 'success' })\n onRecalculateBudgets?.()\n }\n\n return (\n <React.Fragment>\n <Button onClick={() => setIsOpen(true)} sx={{ mt: 24, mx: 24 }} variant=\"text\">\n {copy.recalculate_button}\n </Button>\n\n <Text sx={{ mx: 24, my: 16, textAlign: 'center' }} variant=\"subtitle1\" component=\"span\">\n {copy.recalculate_help}\n </Text>\n <Drawer\n ariaLabelClose={commonCopy.close_aria}\n isOpen={isOpen}\n onClose={() => setIsOpen(false)}\n onPrimaryAction={handlePrimaryClick}\n title={copy.recalculate_title}\n >\n <Stack>\n <Stack mx={24} my={16}>\n <Text bold={true} variant=\"body1\">\n {copy.recalculate_description_top}\n </Text>\n <Text component=\"span\" variant=\"subtitle2\">\n {copy.recalculate_description_bottom}\n </Text>\n </Stack>\n <Box bgcolor=\"background.paper\">\n <List>\n {newBudgetCategories.map((category) => (\n <RecalculateBudgetRow category={category} key={category.guid} />\n ))}\n </List>\n </Box>\n </Stack>\n </Drawer>\n </React.Fragment>\n )\n}\n"],"mappings":";;;;;;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UAAM,MAAM;AAAA,UAAM,SAAQ;AAAA,UACvB,UAAA,EAAK;AAAA,QACF,CAAA,GACN,gBAAA,EAAC,GAAD;AAAA,UAAM,WAAU;AAAA,UAAO,SAAQ;AAAA,UAC5B,UAAA,EAAK;AAAA,QACF,CAAA,CACD;AAAA,MACP,CAAA,GAAA,gBAAA,EAAC,GAAD;AAAA,QAAK,SAAQ;AAAA,QACX,UAAA,gBAAA,EAAC,GAAD,EAAA,UACG,EAAoB,IAAA,CAAK,MACxB,gBAAA,EAAC,GAAD,EAAgC,UAAA,EAA+B,GAAhB,EAAS,IAAO,CAChE,EACG,CAAA;AAAA,MACH,CAAA,CACA,EAAA,CAAA;AAAA,IACD,CAAA;AAAA,EACM,EAAA,CAAA;AAEpB"}
|
|
@@ -50,6 +50,7 @@ var P = ({ additionalContent: u, connectTitle: k, connectDescription: v, childre
|
|
|
50
50
|
pb: s ? 0 : 24
|
|
51
51
|
},
|
|
52
52
|
children: [t && typeof t == "string" ? /* @__PURE__ */ o(A, { children: t }) : t, c && /* @__PURE__ */ o(M, {
|
|
53
|
+
color: "text.secondary",
|
|
53
54
|
sx: { lineHeight: "24px" },
|
|
54
55
|
children: c
|
|
55
56
|
})]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeyIndicatorsDrawer.es.js","names":[],"sources":["../../../src/finstrong/components/KeyIndicatorsDrawer.tsx"],"sourcesContent":["import React, { useState, useEffect, useRef, useCallback } from 'react'\nimport { observer } from 'mobx-react-lite'\n\nimport { P, H3 } from '@mxenabled/mxui'\nimport Box from '@mui/material/Box'\nimport Stack from '@mui/material/Stack'\n\nimport { Drawer, Loader, useGlobalCopyStore, useGlobalUiStore } from '../../common'\nimport { ConnectMoreAccountsCard } from './ConnectMoreAccountsCard'\n\ninterface KeyIndicatorsDrawerProps {\n additionalContent?: React.ReactNode\n connectTitle?: string\n connectDescription?: string\n children?: React.ReactNode\n description?: string\n drawerTitle?: string\n isOpen: boolean\n loadConnectAccountsCard?: boolean\n onClose: () => void\n stickyComponent?: React.ReactNode\n title?: string | React.ReactNode\n drawerType?: 'connectDrawer' | 'connectionsDrawer'\n}\n\nconst KeyIndicatorsDrawer: React.FC<React.PropsWithChildren<KeyIndicatorsDrawerProps>> = ({\n additionalContent,\n connectTitle,\n connectDescription,\n children,\n description,\n drawerTitle,\n isOpen,\n loadConnectAccountsCard = true,\n onClose,\n stickyComponent,\n title,\n drawerType,\n}: KeyIndicatorsDrawerProps) => {\n const { finstrong: copy } = useGlobalCopyStore()\n\n const { isCopyLoaded } = useGlobalUiStore()\n const [isScrolled, setIsScrolled] = useState(false)\n const scrollContainerRef = useRef<HTMLElement | null>(null)\n\n const handleScroll = useCallback(() => {\n if (scrollContainerRef.current) {\n const hasScrolled = scrollContainerRef.current.scrollTop > 0\n setIsScrolled((prev) => (prev !== hasScrolled ? hasScrolled : prev))\n }\n }, [])\n\n const contentCallbackRef = useCallback(\n (node: HTMLDivElement | null) => {\n // Clean up previous listener\n if (scrollContainerRef.current) {\n scrollContainerRef.current.removeEventListener('scroll', handleScroll)\n }\n\n if (node) {\n // Find the scrollable parent\n let parent = node.parentElement\n while (parent) {\n const { overflow, overflowY } = window.getComputedStyle(parent)\n if (\n overflow === 'auto' ||\n overflowY === 'auto' ||\n overflow === 'scroll' ||\n overflowY === 'scroll'\n ) {\n scrollContainerRef.current = parent\n parent.addEventListener('scroll', handleScroll, { passive: true })\n break\n }\n parent = parent.parentElement\n }\n }\n },\n [handleScroll],\n )\n\n useEffect(() => {\n if (!isOpen) {\n setIsScrolled(false)\n }\n }, [isOpen])\n\n useEffect(() => {\n return () => {\n if (scrollContainerRef.current) {\n scrollContainerRef.current.removeEventListener('scroll', handleScroll)\n }\n }\n }, [handleScroll])\n\n if (!isCopyLoaded) return <Loader />\n\n return (\n <Drawer isOpen={isOpen} onClose={onClose} title={drawerTitle || copy.key_indicators}>\n <Stack\n ref={contentCallbackRef}\n sx={{ backgroundColor: 'background.default', height: '100%' }}\n >\n {(title || description) && (\n <Stack\n sx={{\n backgroundColor: 'background.paper',\n gap: 8,\n p: 24,\n pb: stickyComponent ? 0 : 24,\n }}\n >\n {title && typeof title === 'string' ? <H3>{title}</H3> : title}\n {description && <P sx={{ lineHeight: '24px' }}
|
|
1
|
+
{"version":3,"file":"KeyIndicatorsDrawer.es.js","names":[],"sources":["../../../src/finstrong/components/KeyIndicatorsDrawer.tsx"],"sourcesContent":["import React, { useState, useEffect, useRef, useCallback } from 'react'\nimport { observer } from 'mobx-react-lite'\n\nimport { P, H3 } from '@mxenabled/mxui'\nimport Box from '@mui/material/Box'\nimport Stack from '@mui/material/Stack'\n\nimport { Drawer, Loader, useGlobalCopyStore, useGlobalUiStore } from '../../common'\nimport { ConnectMoreAccountsCard } from './ConnectMoreAccountsCard'\n\ninterface KeyIndicatorsDrawerProps {\n additionalContent?: React.ReactNode\n connectTitle?: string\n connectDescription?: string\n children?: React.ReactNode\n description?: string\n drawerTitle?: string\n isOpen: boolean\n loadConnectAccountsCard?: boolean\n onClose: () => void\n stickyComponent?: React.ReactNode\n title?: string | React.ReactNode\n drawerType?: 'connectDrawer' | 'connectionsDrawer'\n}\n\nconst KeyIndicatorsDrawer: React.FC<React.PropsWithChildren<KeyIndicatorsDrawerProps>> = ({\n additionalContent,\n connectTitle,\n connectDescription,\n children,\n description,\n drawerTitle,\n isOpen,\n loadConnectAccountsCard = true,\n onClose,\n stickyComponent,\n title,\n drawerType,\n}: KeyIndicatorsDrawerProps) => {\n const { finstrong: copy } = useGlobalCopyStore()\n\n const { isCopyLoaded } = useGlobalUiStore()\n const [isScrolled, setIsScrolled] = useState(false)\n const scrollContainerRef = useRef<HTMLElement | null>(null)\n\n const handleScroll = useCallback(() => {\n if (scrollContainerRef.current) {\n const hasScrolled = scrollContainerRef.current.scrollTop > 0\n setIsScrolled((prev) => (prev !== hasScrolled ? hasScrolled : prev))\n }\n }, [])\n\n const contentCallbackRef = useCallback(\n (node: HTMLDivElement | null) => {\n // Clean up previous listener\n if (scrollContainerRef.current) {\n scrollContainerRef.current.removeEventListener('scroll', handleScroll)\n }\n\n if (node) {\n // Find the scrollable parent\n let parent = node.parentElement\n while (parent) {\n const { overflow, overflowY } = window.getComputedStyle(parent)\n if (\n overflow === 'auto' ||\n overflowY === 'auto' ||\n overflow === 'scroll' ||\n overflowY === 'scroll'\n ) {\n scrollContainerRef.current = parent\n parent.addEventListener('scroll', handleScroll, { passive: true })\n break\n }\n parent = parent.parentElement\n }\n }\n },\n [handleScroll],\n )\n\n useEffect(() => {\n if (!isOpen) {\n setIsScrolled(false)\n }\n }, [isOpen])\n\n useEffect(() => {\n return () => {\n if (scrollContainerRef.current) {\n scrollContainerRef.current.removeEventListener('scroll', handleScroll)\n }\n }\n }, [handleScroll])\n\n if (!isCopyLoaded) return <Loader />\n\n return (\n <Drawer isOpen={isOpen} onClose={onClose} title={drawerTitle || copy.key_indicators}>\n <Stack\n ref={contentCallbackRef}\n sx={{ backgroundColor: 'background.default', height: '100%' }}\n >\n {(title || description) && (\n <Stack\n sx={{\n backgroundColor: 'background.paper',\n gap: 8,\n p: 24,\n pb: stickyComponent ? 0 : 24,\n }}\n >\n {title && typeof title === 'string' ? <H3>{title}</H3> : title}\n {description && (\n <P color=\"text.secondary\" sx={{ lineHeight: '24px' }}>\n {description}\n </P>\n )}\n </Stack>\n )}\n\n {stickyComponent && (\n <Box\n sx={{\n position: 'sticky',\n top: 0,\n zIndex: 1,\n '& > *': {\n borderBottom: isScrolled ? '1px solid' : 'none',\n borderColor: isScrolled ? 'divider' : 'transparent',\n },\n }}\n >\n {stickyComponent}\n </Box>\n )}\n {additionalContent && <Box>{additionalContent}</Box>}\n <Stack sx={{ bgcolor: 'background.default', gap: 24, p: 24 }}>\n {children}\n {loadConnectAccountsCard && (\n <ConnectMoreAccountsCard\n description={connectDescription}\n drawerType={drawerType}\n isDashboard={true}\n sx={{ backgroundColor: 'background.paper' }}\n title={connectTitle}\n />\n )}\n </Stack>\n </Stack>\n </Drawer>\n )\n}\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AA;MACF;AAAA;EACD,CAAA,IAvDgB,gBAAA,EAAC,GAAD,CAAS,CAAA;AAyDrC,GACA,IAAe,EAAS,CAAmB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useEvent as S } from "../../common/context/hooks.es.js";
|
|
2
2
|
import { ANALYTICS_EVENTS as h } from "../../common/constants/Analytics.es.js";
|
|
3
3
|
import _, { useState as T } from "react";
|
|
4
|
-
import
|
|
4
|
+
import o from "@mui/material/Stack";
|
|
5
5
|
import { H3 as k, Icon as B, P as D, Text as u } from "@mxenabled/mxui";
|
|
6
6
|
import H from "@mui/material/Button";
|
|
7
7
|
import { ExpandMore as j } from "@mxenabled/mx-icons";
|
|
@@ -22,10 +22,10 @@ var ir = ({ buttonText: c, hasRequestButton: f = !1, helpCategories: n = [], hel
|
|
|
22
22
|
justifyContent: "space-between",
|
|
23
23
|
mb: 24
|
|
24
24
|
},
|
|
25
|
-
children: [/* @__PURE__ */ e(
|
|
25
|
+
children: [/* @__PURE__ */ e(o, { children: [/* @__PURE__ */ r(k, { children: b }), /* @__PURE__ */ r(D, {
|
|
26
26
|
variant: "body1",
|
|
27
27
|
children: g
|
|
28
|
-
})] }), f && /* @__PURE__ */ r(
|
|
28
|
+
})] }), f && /* @__PURE__ */ r(o, {
|
|
29
29
|
sx: { pt: {
|
|
30
30
|
xs: 12,
|
|
31
31
|
md: 0
|
|
@@ -39,7 +39,7 @@ var ir = ({ buttonText: c, hasRequestButton: f = !1, helpCategories: n = [], hel
|
|
|
39
39
|
children: c
|
|
40
40
|
})
|
|
41
41
|
})]
|
|
42
|
-
}), /* @__PURE__ */ r(
|
|
42
|
+
}), /* @__PURE__ */ r(o, {
|
|
43
43
|
sx: {
|
|
44
44
|
flexDirection: {
|
|
45
45
|
xs: "column",
|
|
@@ -49,7 +49,7 @@ var ir = ({ buttonText: c, hasRequestButton: f = !1, helpCategories: n = [], hel
|
|
|
49
49
|
},
|
|
50
50
|
children: [0, 1].map((d) => {
|
|
51
51
|
const s = d === 0 ? 0 : m, I = d === 0 ? m : n.length, L = n.slice(s, I);
|
|
52
|
-
return /* @__PURE__ */ r(
|
|
52
|
+
return /* @__PURE__ */ r(o, {
|
|
53
53
|
sx: {
|
|
54
54
|
flex: 1,
|
|
55
55
|
gap: 12,
|
|
@@ -60,11 +60,11 @@ var ir = ({ buttonText: c, hasRequestButton: f = !1, helpCategories: n = [], hel
|
|
|
60
60
|
return /* @__PURE__ */ e(O, {
|
|
61
61
|
disableGutters: !0,
|
|
62
62
|
expanded: x === y,
|
|
63
|
-
onChange: (
|
|
63
|
+
onChange: (t, i) => {
|
|
64
64
|
l(h.HELP_EXPAND_TOPIC, { feature: a }), R(i ? x : null);
|
|
65
65
|
},
|
|
66
|
-
sx: (
|
|
67
|
-
border: `1px solid ${
|
|
66
|
+
sx: (t) => ({
|
|
67
|
+
border: `1px solid ${t.palette.neutral?.light}`,
|
|
68
68
|
borderRadius: "8px !important",
|
|
69
69
|
"&:before": { opacity: 0 },
|
|
70
70
|
"& .MuiAccordion-region": {
|
|
@@ -80,7 +80,7 @@ var ir = ({ buttonText: c, hasRequestButton: f = !1, helpCategories: n = [], hel
|
|
|
80
80
|
height: 64,
|
|
81
81
|
p: "14px 24px"
|
|
82
82
|
},
|
|
83
|
-
children: /* @__PURE__ */ e(
|
|
83
|
+
children: /* @__PURE__ */ e(o, {
|
|
84
84
|
sx: {
|
|
85
85
|
alignItems: "center",
|
|
86
86
|
flexDirection: "row",
|
|
@@ -103,13 +103,13 @@ var ir = ({ buttonText: c, hasRequestButton: f = !1, helpCategories: n = [], hel
|
|
|
103
103
|
},
|
|
104
104
|
children: /* @__PURE__ */ r(M, {
|
|
105
105
|
disablePadding: !0,
|
|
106
|
-
children: A.map(({ label:
|
|
107
|
-
"aria-label":
|
|
106
|
+
children: A.map(({ label: t, topicKey: i }) => /* @__PURE__ */ r(N, {
|
|
107
|
+
"aria-label": t,
|
|
108
108
|
divider: !0,
|
|
109
109
|
onClick: () => v({
|
|
110
110
|
guid: p,
|
|
111
111
|
category: a,
|
|
112
|
-
pageTitle:
|
|
112
|
+
pageTitle: t,
|
|
113
113
|
topicKey: i
|
|
114
114
|
}),
|
|
115
115
|
sx: {
|
|
@@ -121,9 +121,9 @@ var ir = ({ buttonText: c, hasRequestButton: f = !1, helpCategories: n = [], hel
|
|
|
121
121
|
}
|
|
122
122
|
},
|
|
123
123
|
children: /* @__PURE__ */ r(u, {
|
|
124
|
-
color: "secondary",
|
|
124
|
+
color: "text.secondary",
|
|
125
125
|
variant: "body2",
|
|
126
|
-
children:
|
|
126
|
+
children: t
|
|
127
127
|
})
|
|
128
128
|
}, i))
|
|
129
129
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HelpList.es.js","names":[],"sources":["../../../src/help/components/HelpList.tsx"],"sourcesContent":["import React, { useState } from 'react'\n\nimport Accordion from '@mui/material/Accordion'\nimport AccordionDetails from '@mui/material/AccordionDetails'\nimport AccordionSummary from '@mui/material/AccordionSummary'\nimport Button from '@mui/material/Button'\nimport Divider from '@mui/material/Divider'\nimport Grid from '@mui/material/Grid'\nimport List from '@mui/material/List'\nimport ListItemButton from '@mui/material/ListItemButton'\nimport Stack from '@mui/material/Stack'\n\nimport { H3, Icon, P, Text } from '@mxenabled/mxui'\nimport { ExpandMore } from '@mxenabled/mx-icons'\n\nimport { ANALYTICS_EVENTS, useEvent } from '../../common'\nimport { type HelpCategory, type SelectedTopic } from '../../core'\n\nexport interface HelpListProps {\n buttonText: string\n hasRequestButton?: boolean\n helpCategories: HelpCategory[]\n helpContent: string\n helpTitle: string\n onRequestHelp: () => void\n onTopicSelect: (topic: SelectedTopic) => void\n}\n\nexport const HelpList: React.FC<HelpListProps> = ({\n buttonText,\n hasRequestButton = false,\n helpCategories = [],\n helpContent,\n helpTitle,\n onRequestHelp,\n onTopicSelect,\n}) => {\n const [expanded, setExpanded] = useState<number | null>(null)\n const midpoint = Math.ceil(helpCategories.length / 2)\n\n const { onEvent } = useEvent()\n\n return (\n <React.Fragment>\n <Grid\n container={true}\n sx={{\n alignItems: 'center',\n justifyContent: 'space-between',\n mb: 24,\n }}\n >\n <Stack>\n <H3>{helpTitle}</H3>\n <P variant=\"body1\">{helpContent}</P>\n </Stack>\n {hasRequestButton && (\n <Stack\n sx={{\n pt: {\n xs: 12,\n md: 0,\n },\n }}\n >\n <Button\n aria-label={buttonText}\n onClick={() => {\n onEvent(ANALYTICS_EVENTS.HELP_CLICK_REQUEST_SUPPORT, {})\n\n onRequestHelp()\n }}\n variant=\"contained\"\n >\n {buttonText}\n </Button>\n </Stack>\n )}\n </Grid>\n\n <Stack sx={{ flexDirection: { xs: 'column', md: 'row' }, gap: 12 }}>\n {[0, 1].map((half) => {\n const start = half === 0 ? 0 : midpoint\n const end = half === 0 ? midpoint : helpCategories.length\n const items = helpCategories.slice(start, end)\n\n return (\n <Stack key={half} sx={{ flex: 1, gap: 12, maxWidth: { md: 'calc(50% - 6px)' } }}>\n {items.map(({ guid, icon, topics, title }, i) => {\n const key = i + start\n return (\n <Accordion\n disableGutters={true}\n expanded={key === expanded}\n key={guid}\n onChange={(_, isExpanded) => {\n onEvent(ANALYTICS_EVENTS.HELP_EXPAND_TOPIC, { feature: title })\n\n setExpanded(isExpanded ? key : null)\n }}\n sx={(theme) => ({\n border: `1px solid ${theme.palette.neutral?.light}`,\n borderRadius: '8px !important',\n '&:before': {\n opacity: 0,\n },\n '& .MuiAccordion-region': {\n bgcolor: 'background.default',\n borderBottomLeftRadius: 8,\n borderBottomRightRadius: 8,\n },\n })}\n >\n <AccordionSummary\n expandIcon={<ExpandMore sx={{ color: 'text.primary' }} />}\n sx={{ height: 64, p: '14px 24px' }}\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 disablePadding={true}>\n {topics.map(({ label, topicKey }) => (\n <ListItemButton\n aria-label={label}\n divider={true}\n key={topicKey}\n onClick={() =>\n onTopicSelect({ guid, category: title, pageTitle: label, topicKey })\n }\n sx={{\n pl: '6px !important',\n borderColor: 'neutral.light',\n '&:last-child': {\n border: 'none !important',\n borderBottomRightRadius: 7,\n },\n }}\n >\n <Text color=\"secondary\" variant=\"body2\">\n {label}\n </Text>\n </ListItemButton>\n ))}\n </List>\n </AccordionDetails>\n </Accordion>\n )\n })}\n </Stack>\n )\n })}\n </Stack>\n </React.Fragment>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;AA4BA,IAAa,KAAA,CAAqC,EAChD,YAAA,GACA,kBAAA,IAAmB,IACnB,gBAAA,IAAiB,CAAC,GAClB,aAAA,GACA,WAAA,GACA,eAAA,GACA,eAAA,EAAA,MACI;AACJ,QAAM,CAAC,GAAU,CAAA,IAAe,EAAwB,IAAI,GACtD,IAAW,KAAK,KAAK,EAAe,SAAS,CAAC,GAE9C,EAAE,SAAA,EAAA,IAAY,EAAS;AAE7B,SACE,gBAAA,EAAC,EAAM,UAAP,EAAA,UAAA,CACE,gBAAA,EAAC,GAAD;AAAA,IACE,WAAW;AAAA,IACX,IAAI;AAAA,MACF,YAAY;AAAA,MACZ,gBAAgB;AAAA,MAChB,IAAI;AAAA,IACN;AAAA,IANF,UAAA,CAQE,gBAAA,EAAC,GAAD,EAAA,UAAA,CACE,gBAAA,EAAC,GAAD,EAAA,UAAK,EAAc,CAAA,GACnB,gBAAA,EAAC,GAAD;AAAA,MAAG,SAAQ;AAAA,MAAS,UAAA;AAAA,IAAe,CAAA,CAC9B,EAAA,CAAA,GACN,KACC,gBAAA,EAAC,GAAD;AAAA,MACE,IAAI,EACF,IAAI;AAAA,QACF,IAAI;AAAA,QACJ,IAAI;AAAA,MACN,EACF;AAAA,MAEA,UAAA,gBAAA,EAAC,GAAD;AAAA,QACE,cAAY;AAAA,QACZ,SAAA,MAAe;AACb,UAAA,EAAQ,EAAiB,4B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from 'react'\n\nimport Accordion from '@mui/material/Accordion'\nimport AccordionDetails from '@mui/material/AccordionDetails'\nimport AccordionSummary from '@mui/material/AccordionSummary'\nimport Button from '@mui/material/Button'\nimport Divider from '@mui/material/Divider'\nimport Grid from '@mui/material/Grid'\nimport List from '@mui/material/List'\nimport ListItemButton from '@mui/material/ListItemButton'\nimport Stack from '@mui/material/Stack'\n\nimport { H3, Icon, P, Text } from '@mxenabled/mxui'\nimport { ExpandMore } from '@mxenabled/mx-icons'\n\nimport { ANALYTICS_EVENTS, useEvent } from '../../common'\nimport { type HelpCategory, type SelectedTopic } from '../../core'\n\nexport interface HelpListProps {\n buttonText: string\n hasRequestButton?: boolean\n helpCategories: HelpCategory[]\n helpContent: string\n helpTitle: string\n onRequestHelp: () => void\n onTopicSelect: (topic: SelectedTopic) => void\n}\n\nexport const HelpList: React.FC<HelpListProps> = ({\n buttonText,\n hasRequestButton = false,\n helpCategories = [],\n helpContent,\n helpTitle,\n onRequestHelp,\n onTopicSelect,\n}) => {\n const [expanded, setExpanded] = useState<number | null>(null)\n const midpoint = Math.ceil(helpCategories.length / 2)\n\n const { onEvent } = useEvent()\n\n return (\n <React.Fragment>\n <Grid\n container={true}\n sx={{\n alignItems: 'center',\n justifyContent: 'space-between',\n mb: 24,\n }}\n >\n <Stack>\n <H3>{helpTitle}</H3>\n <P variant=\"body1\">{helpContent}</P>\n </Stack>\n {hasRequestButton && (\n <Stack\n sx={{\n pt: {\n xs: 12,\n md: 0,\n },\n }}\n >\n <Button\n aria-label={buttonText}\n onClick={() => {\n onEvent(ANALYTICS_EVENTS.HELP_CLICK_REQUEST_SUPPORT, {})\n\n onRequestHelp()\n }}\n variant=\"contained\"\n >\n {buttonText}\n </Button>\n </Stack>\n )}\n </Grid>\n\n <Stack sx={{ flexDirection: { xs: 'column', md: 'row' }, gap: 12 }}>\n {[0, 1].map((half) => {\n const start = half === 0 ? 0 : midpoint\n const end = half === 0 ? midpoint : helpCategories.length\n const items = helpCategories.slice(start, end)\n\n return (\n <Stack key={half} sx={{ flex: 1, gap: 12, maxWidth: { md: 'calc(50% - 6px)' } }}>\n {items.map(({ guid, icon, topics, title }, i) => {\n const key = i + start\n return (\n <Accordion\n disableGutters={true}\n expanded={key === expanded}\n key={guid}\n onChange={(_, isExpanded) => {\n onEvent(ANALYTICS_EVENTS.HELP_EXPAND_TOPIC, { feature: title })\n\n setExpanded(isExpanded ? key : null)\n }}\n sx={(theme) => ({\n border: `1px solid ${theme.palette.neutral?.light}`,\n borderRadius: '8px !important',\n '&:before': {\n opacity: 0,\n },\n '& .MuiAccordion-region': {\n bgcolor: 'background.default',\n borderBottomLeftRadius: 8,\n borderBottomRightRadius: 8,\n },\n })}\n >\n <AccordionSummary\n expandIcon={<ExpandMore sx={{ color: 'text.primary' }} />}\n sx={{ height: 64, p: '14px 24px' }}\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 disablePadding={true}>\n {topics.map(({ label, topicKey }) => (\n <ListItemButton\n aria-label={label}\n divider={true}\n key={topicKey}\n onClick={() =>\n onTopicSelect({ guid, category: title, pageTitle: label, topicKey })\n }\n sx={{\n pl: '6px !important',\n borderColor: 'neutral.light',\n '&:last-child': {\n border: 'none !important',\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 })}\n </Stack>\n )\n })}\n </Stack>\n </React.Fragment>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;AA4BA,IAAa,KAAA,CAAqC,EAChD,YAAA,GACA,kBAAA,IAAmB,IACnB,gBAAA,IAAiB,CAAC,GAClB,aAAA,GACA,WAAA,GACA,eAAA,GACA,eAAA,EAAA,MACI;AACJ,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A;AAAA,cACV,gBAAA,EAAC,GAAD;AAAA,gBACE,IAAI;AAAA,kBACF,IAAI;AAAA,kBACJ,GAAG;AAAA,gBACL;AAAA,gBAEA,UAAA,gBAAA,EAAC,GAAD;AAAA,kBAAM,gBAAgB;AAAA,kBACnB,UAAA,EAAO,IAAA,CAAK,EAAE,OAAA,GAAO,UAAA,EAAA,MACpB,gBAAA,EAAC,GAAD;AAAA,oBACE,cAAY;AAAA,oBACZ,SAAS;AAAA,oBAET,SAAA,MACE,EAAc;AAAA,sBAAE,MAAA;AAAA,sBAAM,UAAU;AAAA,sBAAO,WAAW;AAAA,sBAAO,UAAA;AAAA,oBAAS,CAAC;AAAA,oBAErE,IAAI;AAAA,sBACF,IAAI;AAAA,sBACJ,aAAa;AAAA,sBACb,gBAAgB;AAAA,wBACd,QAAQ;AAAA,wBACR,yBAAyB;AAAA,sBAC3B;AAAA,oBACF;AAAA,oBAEA,UAAA,gBAAA,EAAC,GAAD;AAAA,sBAAM,OAAM;AAAA,sBAAiB,SAAQ;AAAA,sBAClC,UAAA;AAAA,oBACG,CAAA;AAAA,kBACQ,GAhBT,CAgBS,CACjB;AAAA,gBACG,CAAA;AAAA,cACU,CAAA;AAAA,YACT;AAAA,UA5DJ,GAAA,CA4DI;AAAA,QAEf,CAAC;AAAA,MACI,GAtEK,CAsEL;AAAA,IAEX,CAAC;AAAA,EACI,CAAA,CACO,EAAA,CAAA;AAEpB"}
|
|
@@ -10,10 +10,10 @@ import c from "@mui/material/Box";
|
|
|
10
10
|
import y from "@mui/material/TextField";
|
|
11
11
|
import I from "@mui/material/Alert";
|
|
12
12
|
import A from "@mui/material/Snackbar";
|
|
13
|
-
var N = ({ alert:
|
|
14
|
-
const [s, l] = m.useState(""), { onEvent:
|
|
15
|
-
|
|
16
|
-
}, v = o ?
|
|
13
|
+
var N = ({ alert: r, copy: t, email: n, institution: o, isLoading: i, isOpen: _, onClose: h, onSubmit: d, setAlert: a, topic: x }) => {
|
|
14
|
+
const [s, l] = m.useState(""), { onEvent: f } = b(), p = () => !i && h(), g = () => {
|
|
15
|
+
f(C.HELP_SUBMIT_SUPPORT_REQUEST, { supportRequest: s }), l(""), d(s);
|
|
16
|
+
}, v = o ? t.request_support_institution_short_content : t.request_support_contact_short_content;
|
|
17
17
|
return /* @__PURE__ */ u(q, {
|
|
18
18
|
isOpen: _,
|
|
19
19
|
isPrimaryDisabled: !s || !n,
|
|
@@ -21,22 +21,22 @@ var N = ({ alert: t, copy: r, email: n, institution: o, isLoading: i, isOpen: _,
|
|
|
21
21
|
onPrimaryAction: g,
|
|
22
22
|
onSecondaryAction: p,
|
|
23
23
|
secondaryColor: "primary",
|
|
24
|
-
title:
|
|
24
|
+
title: t.request_support,
|
|
25
25
|
children: [i ? /* @__PURE__ */ e(T, {}) : /* @__PURE__ */ u(m.Fragment, { children: [
|
|
26
26
|
/* @__PURE__ */ e(E, {
|
|
27
27
|
hasIcon: !o,
|
|
28
28
|
institution: o,
|
|
29
29
|
reverse: !!o,
|
|
30
30
|
subtitle: v,
|
|
31
|
-
title:
|
|
31
|
+
title: x
|
|
32
32
|
}),
|
|
33
33
|
/* @__PURE__ */ e(c, {
|
|
34
34
|
sx: { px: 24 },
|
|
35
35
|
children: /* @__PURE__ */ e(y, {
|
|
36
36
|
error: !n,
|
|
37
37
|
fullWidth: !0,
|
|
38
|
-
helperText: n ? null :
|
|
39
|
-
label:
|
|
38
|
+
helperText: n ? null : t.request_support_email_not_exists_message,
|
|
39
|
+
label: t.request_contact_support_label,
|
|
40
40
|
multiline: !0,
|
|
41
41
|
onChange: ({ target: { value: S } }) => l(S),
|
|
42
42
|
slotProps: { inputLabel: { shrink: !0 } },
|
|
@@ -57,28 +57,28 @@ var N = ({ alert: t, copy: r, email: n, institution: o, isLoading: i, isOpen: _,
|
|
|
57
57
|
/* @__PURE__ */ e(c, {
|
|
58
58
|
sx: { p: "12px 24px 64px" },
|
|
59
59
|
children: /* @__PURE__ */ e(P, {
|
|
60
|
-
color: "secondary",
|
|
60
|
+
color: "text.secondary",
|
|
61
61
|
sx: {
|
|
62
62
|
fontSize: 13,
|
|
63
63
|
fontWeight: 400
|
|
64
64
|
},
|
|
65
65
|
variant: "subtitle2",
|
|
66
|
-
children:
|
|
66
|
+
children: t.request_contact_support_warning
|
|
67
67
|
})
|
|
68
68
|
})
|
|
69
|
-
] }),
|
|
69
|
+
] }), r.message && /* @__PURE__ */ e(A, {
|
|
70
70
|
anchorOrigin: {
|
|
71
71
|
vertical: "bottom",
|
|
72
72
|
horizontal: "center"
|
|
73
73
|
},
|
|
74
74
|
autoHideDuration: 3500,
|
|
75
75
|
onClose: () => a(""),
|
|
76
|
-
open: !!
|
|
76
|
+
open: !!r.message && r.severity === "error" && !i,
|
|
77
77
|
children: /* @__PURE__ */ e(I, {
|
|
78
78
|
onClose: () => a(""),
|
|
79
|
-
severity:
|
|
79
|
+
severity: r.severity,
|
|
80
80
|
variant: "filled",
|
|
81
|
-
children:
|
|
81
|
+
children: r.message
|
|
82
82
|
})
|
|
83
83
|
})]
|
|
84
84
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContactSupport.es.js","names":[],"sources":["../../../../src/help/components/requestsupport/ContactSupport.tsx"],"sourcesContent":["import React from 'react'\n\nimport Alert from '@mui/material/Alert'\nimport Box from '@mui/material/Box'\nimport Snackbar from '@mui/material/Snackbar'\nimport TextField from '@mui/material/TextField'\n\nimport { Text } from '@mxenabled/mxui'\n\nimport { ANALYTICS_EVENTS, Drawer, Loader, useEvent } from '../../../common'\nimport { type HelpAlertProps, HelpCopy } from '../../../core'\nimport { RequestSupportHeader } from './RequestSupportHeader'\n\ninterface ContactSupportProps {\n alert: HelpAlertProps\n copy: HelpCopy\n email?: string | null | undefined\n institution?: string\n isLoading: boolean\n isOpen: boolean\n onClose: () => void\n onSubmit: (message: string) => void\n setAlert: (message: string) => void\n topic: string\n}\n\nexport const ContactSupport: React.FC<ContactSupportProps> = ({\n alert,\n copy,\n email,\n institution,\n isLoading,\n isOpen,\n onClose,\n onSubmit,\n setAlert,\n topic,\n}) => {\n const [message, setMessage] = React.useState('')\n\n const { onEvent } = useEvent()\n\n const handleClose = () => !isLoading && onClose()\n\n const handlePrimaryAction = () => {\n onEvent(ANALYTICS_EVENTS.HELP_SUBMIT_SUPPORT_REQUEST, {\n supportRequest: message,\n })\n\n setMessage('')\n onSubmit(message)\n }\n\n const subtitle = institution\n ? copy.request_support_institution_short_content\n : copy.request_support_contact_short_content\n return (\n <Drawer\n isOpen={isOpen}\n isPrimaryDisabled={!message || !email}\n onClose={handleClose}\n onPrimaryAction={handlePrimaryAction}\n onSecondaryAction={handleClose}\n secondaryColor=\"primary\"\n title={copy.request_support}\n >\n {isLoading ? (\n <Loader />\n ) : (\n <React.Fragment>\n <RequestSupportHeader\n hasIcon={!institution}\n institution={institution}\n reverse={!!institution}\n subtitle={subtitle}\n title={topic}\n />\n\n <Box sx={{ px: 24 }}>\n <TextField\n error={!email}\n fullWidth={true}\n helperText={!email ? copy.request_support_email_not_exists_message : null}\n label={copy.request_contact_support_label}\n multiline={true}\n onChange={({ target: { value } }) => setMessage(value)}\n slotProps={{ inputLabel: { shrink: true } }}\n sx={{\n '& .MuiInputBase-root': { alignItems: 'flex-start', minHeight: 124 },\n '& .MuiInputBase-input::placeholder': {\n fontSize: 13,\n color: 'text.secondary',\n },\n }}\n value={message}\n variant=\"outlined\"\n />\n </Box>\n <Box sx={{ p: '12px 24px 64px' }}>\n <Text\n color=\"secondary\"\n sx={{\n fontSize: 13,\n fontWeight: 400,\n }}\n variant=\"subtitle2\"\n >\n {copy.request_contact_support_warning}\n </Text>\n </Box>\n </React.Fragment>\n )}\n {alert.message && (\n <Snackbar\n anchorOrigin={{ vertical: 'bottom', horizontal: 'center' }}\n autoHideDuration={3500}\n onClose={() => setAlert('')}\n open={!!alert.message && alert.severity === 'error' && !isLoading}\n >\n <Alert onClose={() => setAlert('')} severity={alert.severity} variant=\"filled\">\n {alert.message}\n </Alert>\n </Snackb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UACrD,WAAW,EAAE,YAAY,EAAE,QAAQ,GAAK,EAAE;AAAA,UAC1C,IAAI;AAAA,YACF,wBAAwB;AAAA,cAAE,YAAY;AAAA,cAAc,WAAW;AAAA,YAAI;AAAA,YACnE,sCAAsC;AAAA,cACpC,UAAU;AAAA,cACV,OAAO;AAAA,YACT;AAAA,UACF;AAAA,UACA,OAAO;AAAA,UACP,SAAQ;AAAA,QACT,CAAA;AAAA,MACE,CAAA;AAAA,MACL,gBAAA,EAAC,GAAD;AAAA,QAAK,IAAI,EAAE,GAAG,iBAAiB;AAAA,QAC7B,UAAA,gBAAA,EAAC,GAAD;AAAA,UACE,OAAM;AAAA,UACN,IAAI;AAAA,YACF,UAAU;AAAA,YACV,YAAY;AAAA,UACd;AAAA,UACA,SAAQ;AAAA,UAEP,UAAA,EAAK;AAAA,QACF,CAAA;AAAA,MACH,CAAA;AAAA,IACS,EAAA,CAAA,GAEjB,EAAM,WACL,gBAAA,EAAC,GAAD;AAAA,MACE,cAAc;AAAA,QAAE,UAAU;AAAA,QAAU,YAAY;AAAA,MAAS;AAAA,MACzD,kBAAkB;AAAA,MAClB,SAAA,MAAe,EAAS,EAAE;AAAA,MAC1B,MAAM,CAAC,CAAC,EAAM,WAAW,EAAM,aAAa,WAAW,CAAC;AAAA,MAExD,UAAA,gBAAA,EAAC,GAAD;AAAA,QAAO,SAAA,MAAe,EAAS,EAAE;AAAA,QAAG,UAAU,EAAM;AAAA,QAAU,SAAQ;AAAA,QACnE,UAAA,EAAM;AAAA,MACF,CAAA;AAAA,IACC,CAAA,CAEN;AAAA;AAEZ"}
|
|
1
|
+
{"version":3,"file":"ContactSupport.es.js","names":[],"sources":["../../../../src/help/components/requestsupport/ContactSupport.tsx"],"sourcesContent":["import React from 'react'\n\nimport Alert from '@mui/material/Alert'\nimport Box from '@mui/material/Box'\nimport Snackbar from '@mui/material/Snackbar'\nimport TextField from '@mui/material/TextField'\n\nimport { Text } from '@mxenabled/mxui'\n\nimport { ANALYTICS_EVENTS, Drawer, Loader, useEvent } from '../../../common'\nimport { type HelpAlertProps, HelpCopy } from '../../../core'\nimport { RequestSupportHeader } from './RequestSupportHeader'\n\ninterface ContactSupportProps {\n alert: HelpAlertProps\n copy: HelpCopy\n email?: string | null | undefined\n institution?: string\n isLoading: boolean\n isOpen: boolean\n onClose: () => void\n onSubmit: (message: string) => void\n setAlert: (message: string) => void\n topic: string\n}\n\nexport const ContactSupport: React.FC<ContactSupportProps> = ({\n alert,\n copy,\n email,\n institution,\n isLoading,\n isOpen,\n onClose,\n onSubmit,\n setAlert,\n topic,\n}) => {\n const [message, setMessage] = React.useState('')\n\n const { onEvent } = useEvent()\n\n const handleClose = () => !isLoading && onClose()\n\n const handlePrimaryAction = () => {\n onEvent(ANALYTICS_EVENTS.HELP_SUBMIT_SUPPORT_REQUEST, {\n supportRequest: message,\n })\n\n setMessage('')\n onSubmit(message)\n }\n\n const subtitle = institution\n ? copy.request_support_institution_short_content\n : copy.request_support_contact_short_content\n return (\n <Drawer\n isOpen={isOpen}\n isPrimaryDisabled={!message || !email}\n onClose={handleClose}\n onPrimaryAction={handlePrimaryAction}\n onSecondaryAction={handleClose}\n secondaryColor=\"primary\"\n title={copy.request_support}\n >\n {isLoading ? (\n <Loader />\n ) : (\n <React.Fragment>\n <RequestSupportHeader\n hasIcon={!institution}\n institution={institution}\n reverse={!!institution}\n subtitle={subtitle}\n title={topic}\n />\n\n <Box sx={{ px: 24 }}>\n <TextField\n error={!email}\n fullWidth={true}\n helperText={!email ? copy.request_support_email_not_exists_message : null}\n label={copy.request_contact_support_label}\n multiline={true}\n onChange={({ target: { value } }) => setMessage(value)}\n slotProps={{ inputLabel: { shrink: true } }}\n sx={{\n '& .MuiInputBase-root': { alignItems: 'flex-start', minHeight: 124 },\n '& .MuiInputBase-input::placeholder': {\n fontSize: 13,\n color: 'text.secondary',\n },\n }}\n value={message}\n variant=\"outlined\"\n />\n </Box>\n <Box sx={{ p: '12px 24px 64px' }}>\n <Text\n color=\"text.secondary\"\n sx={{\n fontSize: 13,\n fontWeight: 400,\n }}\n variant=\"subtitle2\"\n >\n {copy.request_contact_support_warning}\n </Text>\n </Box>\n </React.Fragment>\n )}\n {alert.message && (\n <Snackbar\n anchorOrigin={{ vertical: 'bottom', horizontal: 'center' }}\n autoHideDuration={3500}\n onClose={() => setAlert('')}\n open={!!alert.message && alert.severity === 'error' && !isLoading}\n >\n <Alert onClose={() => setAlert('')} severity={alert.severity} variant=\"filled\">\n {alert.message}\n </Alert>\n </Snackbar>\n )}\n </Drawer>\n )\n}\n"],"mappings":";;;;;;;;;;;;AA0BA,IAAa,IAAA,CAAiD,EAC5D,OAAA,GACA,MAAA,GACA,OAAA,GACA,aAAA,GACA,WAAA,GACA,QAAA,GACA,SAAA,GACA,UAAA,GACA,UAAA,GACA,OAAA,EAAA,MACI;AACJ,QAAM,CAAC,GAAS,CAAA,IAAc,EAAM,SAAS,EAAE,GAEzC,EAAE,SAAA,EAAA,IAAY,EAAS,GAEvB,IAAA,MAAoB,CAAC,KAAa,EAAQ,GAE1C,IAAA,MAA4B;AAChC,IAAA,EAAQ,EAAiB,6BAA6B,EACpD,gBAAgB,EAClB,CAAC,GAED,EAAW,EAAE,GACb,EAAS,CAAO;AAAA,EAClB,GAEM,IAAW,IACb,EAAK,4CACL,EAAK;AACT,SACE,gBAAA,EAAC,GAAD;AAAA,IACU,QAAA;AAAA,IACR,mBAAmB,CAAC,KAAW,CAAC;AAAA,IAChC,SAAS;AAAA,IACT,iBAAiB;AAAA,IACjB,mBAAmB;AAAA,IACnB,gBAAe;AAAA,IACf,OAAO,EAAK;AAAA,IAPd,UAAA,CASG,IACC,gBAAA,EAAC,GAAD,CAAS,CAAA,IAET,gBAAA,EAAC,EAAM,UAAP,EAAA,UAAA;AAAA,MACE,gBAAA,EAAC,GAAD;AAAA,QACE,SAAS,CAAC;AAAA,QACG,aAAA;AAAA,QACb,SAAS,CAAC,CAAC;AAAA,QACD,UAAA;AAAA,QACV,OAAO;AAAA,MAC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ACnE,UAAA,EAAM;AAAA,MACF,CAAA;AAAA,IACC,CAAA,CAEN;AAAA;AAEZ"}
|
|
@@ -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=\"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,M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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;AAAA,QAaE,gBAAA,EAAC,GAAD;AAAA,UACE,YAAY,gBAAA,EAAC,GAAD,EAAY,IAAI,EAAE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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"}
|
|
@@ -30,12 +30,12 @@ var j = ({ copy: t, institution: o, isOpen: p, onClose: i, popularTopicsDrawerOn
|
|
|
30
30
|
p: 24
|
|
31
31
|
},
|
|
32
32
|
children: [/* @__PURE__ */ r(b, {
|
|
33
|
-
color: "
|
|
33
|
+
color: "text.primary",
|
|
34
34
|
sx: { fontWeight: 600 },
|
|
35
35
|
variant: "body1",
|
|
36
36
|
children: n(t.request_support_institution_message_title, o)
|
|
37
37
|
}), /* @__PURE__ */ r(_, {
|
|
38
|
-
color: "secondary",
|
|
38
|
+
color: "text.secondary",
|
|
39
39
|
sx: {
|
|
40
40
|
fontWeight: 400,
|
|
41
41
|
mt: 2
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestSupportInstitution.es.js","names":[],"sources":["../../../../src/help/components/requestsupport/RequestSupportInstitution.tsx"],"sourcesContent":["import { P, Text } from '@mxenabled/mxui'\nimport Box from '@mui/material/Box'\nimport Button from '@mui/material/Button'\nimport Stack from '@mui/material/Stack'\n\nimport { Drawer, useGlobalCopyStore } from '../../../common'\nimport { HelpCopy } from '../../../core'\nimport { RequestSupportHeader } from './RequestSupportHeader'\nimport { buildDynamicCopy } from '../../../core/utils/Localization'\n\ninterface RequestSupportInstitutionProps {\n copy: HelpCopy\n institution: string\n isOpen: boolean\n onClose: () => void\n popularTopicsDrawerOnClose: () => void\n title: string\n}\n\nexport const RequestSupportInstitution: React.FC<RequestSupportInstitutionProps> = ({\n copy,\n institution,\n isOpen,\n onClose,\n popularTopicsDrawerOnClose,\n title,\n}) => {\n const { common: commonCopy } = useGlobalCopyStore()\n return (\n <Drawer isOpen={isOpen} onClose={onClose} title={copy.request_support}>\n <RequestSupportHeader\n hasIcon={false}\n institution={institution}\n reverse={true}\n subtitle={copy.request_support_institution_short_content}\n title={title}\n />\n <Box\n sx={{\n bgcolor: 'background.paper',\n borderRadius: '8px',\n boxShadow: '0px 2px 8px rgba(106, 115, 129, 0.12)',\n m: 24,\n p: 24,\n }}\n >\n <Text\n color=\"
|
|
1
|
+
{"version":3,"file":"RequestSupportInstitution.es.js","names":[],"sources":["../../../../src/help/components/requestsupport/RequestSupportInstitution.tsx"],"sourcesContent":["import { P, Text } from '@mxenabled/mxui'\nimport Box from '@mui/material/Box'\nimport Button from '@mui/material/Button'\nimport Stack from '@mui/material/Stack'\n\nimport { Drawer, useGlobalCopyStore } from '../../../common'\nimport { HelpCopy } from '../../../core'\nimport { RequestSupportHeader } from './RequestSupportHeader'\nimport { buildDynamicCopy } from '../../../core/utils/Localization'\n\ninterface RequestSupportInstitutionProps {\n copy: HelpCopy\n institution: string\n isOpen: boolean\n onClose: () => void\n popularTopicsDrawerOnClose: () => void\n title: string\n}\n\nexport const RequestSupportInstitution: React.FC<RequestSupportInstitutionProps> = ({\n copy,\n institution,\n isOpen,\n onClose,\n popularTopicsDrawerOnClose,\n title,\n}) => {\n const { common: commonCopy } = useGlobalCopyStore()\n return (\n <Drawer isOpen={isOpen} onClose={onClose} title={copy.request_support}>\n <RequestSupportHeader\n hasIcon={false}\n institution={institution}\n reverse={true}\n subtitle={copy.request_support_institution_short_content}\n title={title}\n />\n <Box\n sx={{\n bgcolor: 'background.paper',\n borderRadius: '8px',\n boxShadow: '0px 2px 8px rgba(106, 115, 129, 0.12)',\n m: 24,\n p: 24,\n }}\n >\n <Text\n color=\"text.primary\"\n sx={{\n fontWeight: 600,\n }}\n variant=\"body1\"\n >\n {buildDynamicCopy(copy.request_support_institution_message_title, institution) as string}\n </Text>\n <P\n color=\"text.secondary\"\n sx={{\n fontWeight: 400,\n mt: 2,\n }}\n variant=\"subtitle2\"\n >\n {buildDynamicCopy(copy.request_support_institution_message, institution) as string}\n </P>\n </Box>\n\n <Stack direction=\"column\" spacing={8} sx={{ mx: 24 }}>\n <Button onClick={popularTopicsDrawerOnClose} variant=\"contained\">\n {commonCopy.done_button}\n </Button>\n <Button onClick={onClose} variant=\"text\">\n {copy.request_support_institution_back}\n </Button>\n </Stack>\n </Drawer>\n )\n}\n"],"mappings":";;;;;;;;;AAmBA,IAAa,IAAA,CAAuE,EAClF,MAAA,GACA,aAAA,GACA,QAAA,GACA,SAAA,GACA,4BAAA,GACA,OAAA,EAAA,MACI;AACJ,QAAM,EAAE,QAAQ,EAAA,IAAe,EAAmB;AAClD,SACE,gBAAA,EAAC,GAAD;AAAA,IAAgB,QAAA;AAAA,IAAiB,SAAA;AAAA,IAAS,OAAO,EAAK;AAAA,IAAtD,UAAA;AAAA,MACE,gBAAA,EAAC,GAAD;AAAA,QACE,SAAS;AAAA,QACI,aAAA;AAAA,QACb,SAAS;AAAA,QACT,UAAU,EAAK;AAAA,QACR,OAAA;AAAA,MACR,CAAA;AAAA,MACD,gBAAA,EAAC,GAAD;AAAA,QACE,IAAI;AAAA,UACF,SAAS;AAAA,UACT,cAAc;AAAA,UACd,WAAW;AAAA,UACX,GAAG;AAAA,UACH,GAAG;AAAA,QACL;AAAA,QAPF,UAAA,CASE,gBAAA,EAAC,GAAD;AAAA,UACE,OAAM;AAAA,UACN,IAAI,EACF,YAAY,IACd;AAAA,UACA,SAAQ;AAAA,UAEP,UAAA,EAAiB,EAAK,2CAA2C,CAAW;AAAA,QACzE,CAAA,GACN,gBAAA,EAAC,GAAD;AAAA,UACE,OAAM;AAAA,UACN,IAAI;AAAA,YACF,YAAY;AAAA,YACZ,IAAI;AAAA,UACN;AAAA,UACA,SAAQ;AAAA,UAEP,UAAA,EAAiB,EAAK,qCAAqC,CAAW;AAAA,QACtE,CAAA,CACA;AAAA;MAEL,gBAAA,EAAC,GAAD;AAAA,QAAO,WAAU;AAAA,QAAS,SAAS;AAAA,QAAG,IAAI,EAAE,IAAI,GAAG;AAAA,QAAnD,UAAA,CACE,gBAAA,EAAC,GAAD;AAAA,UAAQ,SAAS;AAAA,UAA4B,SAAQ;AAAA,UAClD,UAAA,EAAW;AAAA,QACN,CAAA,GACR,gBAAA,EAAC,GAAD;AAAA,UAAQ,SAAS;AAAA,UAAS,SAAQ;AAAA,UAC/B,UAAA,EAAK;AAAA,QACA,CAAA,CACH;AAAA;IACD;AAAA;AAEZ"}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { ThemedSVGImage as
|
|
2
|
-
import { ReactComponent as
|
|
1
|
+
import { ThemedSVGImage as m } from "../ThemedSVGImage.es.js";
|
|
2
|
+
import { ReactComponent as o } from "./images/BeatErrorView.es.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import e from "@mui/material/Stack";
|
|
5
|
-
import { P as
|
|
6
|
-
import { jsx as r, jsxs as
|
|
5
|
+
import { P as i } from "@mxenabled/mxui";
|
|
6
|
+
import { jsx as r, jsxs as a } from "react/jsx-runtime";
|
|
7
7
|
var s = {
|
|
8
8
|
marginBottom: 16,
|
|
9
9
|
maxWidth: 120,
|
|
10
10
|
width: "100%"
|
|
11
|
-
}, g = ({ erroredText:
|
|
11
|
+
}, g = ({ erroredText: t }) => /* @__PURE__ */ a(e, {
|
|
12
12
|
sx: { alignItems: "center" },
|
|
13
|
-
children: [/* @__PURE__ */ r(
|
|
13
|
+
children: [/* @__PURE__ */ r(m, {
|
|
14
14
|
divProps: { style: s },
|
|
15
|
-
image:
|
|
16
|
-
}), /* @__PURE__ */ r(
|
|
17
|
-
color: "
|
|
15
|
+
image: o
|
|
16
|
+
}), /* @__PURE__ */ r(i, {
|
|
17
|
+
color: "text.primary",
|
|
18
18
|
sx: {
|
|
19
19
|
mx: 8,
|
|
20
20
|
mb: 8
|
|
21
21
|
},
|
|
22
22
|
variant: "subtitle2",
|
|
23
|
-
children:
|
|
23
|
+
children: t
|
|
24
24
|
})]
|
|
25
25
|
});
|
|
26
26
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardError.es.js","names":[],"sources":["../../../../../src/insights/components/shared/InsightsCard/CardError.tsx"],"sourcesContent":["import React from 'react'\n\nimport { P } from '@mxenabled/mxui'\n\nimport Stack from '@mui/material/Stack'\n\nimport { ThemedSVGImage } from '../ThemedSVGImage'\n\nimport { ReactComponent as BeatErrorView } from './images/BeatErrorView.svg'\n\nexport interface CardErrorProps {\n erroredText: string\n}\n\nconst imageStyles = {\n marginBottom: 16,\n maxWidth: 120,\n width: '100%',\n}\n\nexport const CardError: React.FC<CardErrorProps> = ({ erroredText }) => {\n return (\n <Stack\n sx={{\n alignItems: 'center',\n }}\n >\n <ThemedSVGImage divProps={{ style: imageStyles }} image={BeatErrorView} />\n <P color=\"
|
|
1
|
+
{"version":3,"file":"CardError.es.js","names":[],"sources":["../../../../../src/insights/components/shared/InsightsCard/CardError.tsx"],"sourcesContent":["import React from 'react'\n\nimport { P } from '@mxenabled/mxui'\n\nimport Stack from '@mui/material/Stack'\n\nimport { ThemedSVGImage } from '../ThemedSVGImage'\n\nimport { ReactComponent as BeatErrorView } from './images/BeatErrorView.svg'\n\nexport interface CardErrorProps {\n erroredText: string\n}\n\nconst imageStyles = {\n marginBottom: 16,\n maxWidth: 120,\n width: '100%',\n}\n\nexport const CardError: React.FC<CardErrorProps> = ({ erroredText }) => {\n return (\n <Stack\n sx={{\n alignItems: 'center',\n }}\n >\n <ThemedSVGImage divProps={{ style: imageStyles }} image={BeatErrorView} />\n <P color=\"text.primary\" sx={{ mx: 8, mb: 8 }} variant=\"subtitle2\">\n {erroredText}\n </P>\n </Stack>\n )\n}\n"],"mappings":";;;;;;AAcA,IAAM,IAAc;AAAA,EAClB,cAAc;AAAA,EACd,UAAU;AAAA,EACV,OAAO;AACT,GAEa,IAAA,CAAuC,EAAE,aAAA,EAAA,MAElD,gBAAA,EAAC,GAAD;AAAA,EACE,IAAI,EACF,YAAY,SACd;AAAA,EAHF,UAAA,CAKE,gBAAA,EAAC,GAAD;AAAA,IAAgB,UAAU,EAAE,OAAO,EAAY;AAAA,IAAG,OAAO;AAAA,EAAgB,CAAA,GACzE,gBAAA,EAAC,GAAD;AAAA,IAAG,OAAM;AAAA,IAAe,IAAI;AAAA,MAAE,IAAI;AAAA,MAAG,IAAI;AAAA,IAAE;AAAA,IAAG,SAAQ;AAAA,IACnD,UAAA;AAAA,EACA,CAAA,CACE"}
|