@mx-cartographer/experiences 9.1.1 → 9.1.3-alpha.al0
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/{AccountDetailsDrawer-C1hhmlmI.mjs → AccountDetailsDrawer-Cq4kiiKD.mjs} +4 -4
- package/dist/{AccountDetailsDrawer-C1hhmlmI.mjs.map → AccountDetailsDrawer-Cq4kiiKD.mjs.map} +1 -1
- package/dist/{Analytics-WeZYytR0.mjs → Analytics-D-jdcL72.mjs} +3 -3
- package/dist/Analytics-D-jdcL72.mjs.map +1 -0
- package/dist/{EmbeddedCard-DH8vQ3qN.mjs → EmbeddedCard-DCOQnTz-.mjs} +2 -2
- package/dist/{EmbeddedCard-DH8vQ3qN.mjs.map → EmbeddedCard-DCOQnTz-.mjs.map} +1 -1
- package/dist/{ExportCsvAction-C9KWH3Az.mjs → ExportCsvAction-C-IisDcv.mjs} +2 -2
- package/dist/{ExportCsvAction-C9KWH3Az.mjs.map → ExportCsvAction-C-IisDcv.mjs.map} +1 -1
- package/dist/{Help-aERwhajy.mjs → Help-zVZdcmlk.mjs} +2 -2
- package/dist/{Help-aERwhajy.mjs.map → Help-zVZdcmlk.mjs.map} +1 -1
- package/dist/{ManageIncome-Be9WHv-s.mjs → ManageIncome-B_8i71mE.mjs} +5 -5
- package/dist/{ManageIncome-Be9WHv-s.mjs.map → ManageIncome-B_8i71mE.mjs.map} +1 -1
- package/dist/{RecurringSettings-kRqAViNn.mjs → RecurringSettings-hs0YUp83.mjs} +3 -3
- package/dist/{RecurringSettings-kRqAViNn.mjs.map → RecurringSettings-hs0YUp83.mjs.map} +1 -1
- package/dist/{TransactionDetails-roZ5xLq8.mjs → TransactionDetails-DT-MQqOB.mjs} +3 -3
- package/dist/{TransactionDetails-roZ5xLq8.mjs.map → TransactionDetails-DT-MQqOB.mjs.map} +1 -1
- package/dist/{WidgetContainer-DJnp6t6c.mjs → WidgetContainer-CjdCY4sj.mjs} +21 -21
- package/dist/WidgetContainer-CjdCY4sj.mjs.map +1 -0
- package/dist/accounts/index.es.js +4 -4
- package/dist/budgets/index.es.js +5 -5
- package/dist/cashflow/index.es.js +6 -6
- package/dist/common/components/daterangeselector/DateRangeSelector.d.ts +5 -0
- package/dist/common/index.es.js +2 -2
- package/dist/dashboard/index.es.js +93 -71
- package/dist/dashboard/index.es.js.map +1 -1
- package/dist/debts/index.es.js +2 -2
- package/dist/finstrong/index.es.js +4 -4
- package/dist/goals/index.es.js +2 -2
- package/dist/help/index.es.js +2 -2
- package/dist/insights/index.es.js +2 -2
- package/dist/investments/index.es.js +2 -2
- package/dist/networth/index.es.js +78 -76
- package/dist/networth/index.es.js.map +1 -1
- package/dist/recurringtransactions/index.es.js +6 -6
- package/dist/settings/index.es.js +2 -2
- package/dist/spending/index.es.js +4 -4
- package/dist/transactions/index.es.js +7 -7
- package/dist/trends/index.es.js +5 -5
- package/package.json +1 -1
- package/dist/Analytics-WeZYytR0.mjs.map +0 -1
- package/dist/WidgetContainer-DJnp6t6c.mjs.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es.js","sources":["../../src/common/components/Banner.tsx","../../src/common/components/addaccounts/AddAccounts.tsx","../../src/dashboard/Greeting.tsx","../../src/dashboard/constants/Dashboard.ts","../../src/dashboard/Dashboard.tsx"],"sourcesContent":["import React from 'react'\nimport { observer } from 'mobx-react-lite'\n\nimport { useTheme } from '@mui/material/styles'\nimport Stack from '@mui/material/Stack'\n\nimport { useGlobalStore } from '..'\n\nexport const Banner = observer(() => {\n const theme = useTheme()\n const {\n appDataStore: { banner, loadBanner, user },\n } = useGlobalStore()\n\n React.useEffect(() => {\n loadBanner().finally()\n }, [user])\n\n if (!banner?.image_url) {\n return null\n }\n\n return (\n <Stack\n sx={{\n alignItems: 'center',\n width: '100%',\n mb: 24,\n }}\n >\n <a\n href={banner?.redirect_url}\n rel=\"noreferrer\"\n style={{\n width: '100%',\n }}\n target=\"_blank\"\n >\n <img\n alt=\"\"\n src={banner.image_url}\n style={{\n width: '100%',\n height: 'auto',\n border: `1px solid ${theme.palette.grey['300']}`,\n }}\n />\n </a>\n </Stack>\n )\n})\n","import { observer } from 'mobx-react-lite'\n\nimport Box from '@mui/material/Box'\nimport Button from '@mui/material/Button'\nimport IconButton from '@mui/material/IconButton'\nimport Tooltip from '@mui/material/Tooltip'\nimport useMediaQuery from '@mui/material/useMediaQuery'\n\nimport { Icon } from '@mxenabled/mxui'\n\nimport { useGlobalCopyStore } from '../../../common'\n\ninterface AddAccountsProps {\n handleConnectClick: () => void\n}\n\nconst AddAccounts = ({ handleConnectClick }: AddAccountsProps) => {\n const { common: copy } = useGlobalCopyStore()\n const isSmallerThan700 = useMediaQuery('(max-width: 700px)')\n\n return (\n <Box>\n {isSmallerThan700 ? (\n <Tooltip id=\"add-accounts\" placement=\"bottom\" title={copy.add_accounts}>\n <IconButton\n aria-controls=\"add_accounts\"\n aria-describedby=\"add-accounts\"\n aria-haspopup={true}\n aria-label={copy.add_accounts}\n color=\"primary\"\n onClick={handleConnectClick}\n >\n <Icon name=\"add\" size={24} />\n </IconButton>\n </Tooltip>\n ) : (\n <Button\n aria-controls=\"add_accounts\"\n aria-haspopup={true}\n aria-label={copy.add_accounts}\n onClick={handleConnectClick}\n startIcon={<Icon name=\"add\" size={24} />}\n sx={{\n p: 12,\n whiteSpace: 'nowrap',\n minWidth: 'max-content',\n }}\n variant=\"text\"\n >\n {copy.add_accounts}\n </Button>\n )}\n </Box>\n )\n}\n\nexport default observer(AddAccounts)\n","import React from 'react'\nimport { observer } from 'mobx-react-lite'\n\nimport Stack from '@mui/material/Stack'\nimport Paper from '@mui/material/Paper'\n\nimport { H2, P } from '@mxenabled/mxui'\nimport { useMediaQuery } from '@mui/system'\n\nimport { ConnectDrawer, useAppConfig, useGlobalCopyStore, useScreenSize } from '../common'\n\nimport AddAccounts from '../common/components/addaccounts/AddAccounts'\nimport { GlobalAccountFilter } from '../common/components/GlobalAccountFilter'\n\nconst Greeting = () => {\n const [showConnectWidget, setShowConnectWidget] = React.useState(false)\n\n const isSmallMobileDevice = useMediaQuery('(max-width:320px)')\n\n const { common: commonCopy, connect: connectCopy } = useGlobalCopyStore()\n const { config } = useAppConfig()\n const { isMobile } = useScreenSize()\n\n const getGreeting = () => {\n const now = new Date()\n const hour = now.getHours()\n\n if (hour > 1 && hour < 12) {\n return commonCopy.good_morning\n } else if (hour >= 12 && hour < 18) {\n return commonCopy.good_afternoon\n } else {\n return commonCopy.good_evening\n }\n }\n\n return (\n <React.Fragment>\n <Paper sx={{ gap: 12, mb: isMobile ? 24 : 0, p: 24 }}>\n <Stack alignItems=\"center\" flexDirection=\"row\" justifyContent=\"space-between\">\n <Stack>\n <H2 variant={isSmallMobileDevice ? 'h2' : 'h1'}>{getGreeting()}</H2>\n <P color=\"text.secondary\">{commonCopy.heres_your_spending_overview}</P>\n </Stack>\n <Stack flexDirection=\"row\">\n {config.show_connections_widget_in_master && (\n <AddAccounts handleConnectClick={() => setShowConnectWidget(true)} />\n )}\n <GlobalAccountFilter />\n </Stack>\n </Stack>\n </Paper>\n {showConnectWidget && (\n <ConnectDrawer\n onClose={() => setShowConnectWidget(false)}\n showConnectWidget={showConnectWidget}\n title={connectCopy.mini_title}\n />\n )}\n </React.Fragment>\n )\n}\n\nexport default observer(Greeting)\n","export enum DashboardLocation {\n Main = 0,\n RightSide = 1,\n Disabled = 2,\n}\n","import React from 'react'\nimport { observer } from 'mobx-react-lite'\n\nimport Grid from '@mui/material/Grid'\nimport Skeleton from '@mui/material/Skeleton'\nimport Stack from '@mui/material/Stack'\n\nimport { useGlobalStore, useScreenSize, useWidgetLoadTimer } from '../common'\n\nimport { Banner } from '../common/components/Banner'\n\nimport Greeting from './Greeting'\nimport { DashboardLocation } from './constants/Dashboard'\nimport type { DashboardWidget } from './types/DashboardTypes'\n\nexport interface DashboardProps {\n widgets: DashboardWidget[]\n isLoading: boolean\n}\n\nconst Dashboard: React.FC<DashboardProps> = ({ widgets, isLoading }) => {\n const { isDesktop, isMobile } = useScreenSize()\n const { copyStore } = useGlobalStore()\n\n useWidgetLoadTimer({\n widgetName: 'Dashboard',\n isLoaded: !isLoading,\n })\n\n const sortedWidgets = React.useMemo(\n () =>\n widgets\n .filter((widget) => widget.location !== DashboardLocation.Disabled)\n .sort((w1, w2) => w1.index - w2.index),\n [widgets],\n )\n\n const mainWidgets = React.useMemo(\n () => sortedWidgets.filter((widget) => widget.location === DashboardLocation.Main),\n [sortedWidgets],\n )\n\n const sideWidgets = React.useMemo(\n () => sortedWidgets.filter((widget) => widget.location === DashboardLocation.RightSide),\n [sortedWidgets],\n )\n\n return (\n <Grid container={true} spacing={isMobile ? 0 : 24}>\n <Grid size={12} sx={{ pt: 16 }}>\n {copyStore.isInitialized && <Greeting />}\n </Grid>\n\n {/* Main Column */}\n <Grid size={{ xs: 12, lg: 8 }}>\n <Banner />\n {isLoading && (\n <Stack direction=\"column\" spacing={24}>\n <Skeleton height={100} variant=\"rounded\" width=\"100%\" />\n <Skeleton height={300} variant=\"rounded\" width=\"100%\" />\n <Skeleton height={300} variant=\"rounded\" width=\"100%\" />\n </Stack>\n )}\n {!isLoading && (\n <Stack direction=\"column\" spacing={24}>\n {isDesktop\n ? mainWidgets.map((widget) => (\n <React.Fragment key={widget.index}>{widget.component}</React.Fragment>\n ))\n : sortedWidgets.map((widget) => (\n <React.Fragment key={widget.index}>{widget.component}</React.Fragment>\n ))}\n </Stack>\n )}\n </Grid>\n\n {/* Right Column */}\n {isDesktop && (\n <Grid size={{ lg: 4 }}>\n {isLoading ? (\n <Stack direction=\"column\" spacing={24}>\n <Skeleton height={200} variant=\"rounded\" width=\"100%\" />\n <Skeleton height={100} variant=\"rounded\" width=\"100%\" />\n <Skeleton height={300} variant=\"rounded\" width=\"100%\" />\n </Stack>\n ) : (\n <Stack direction=\"column\" spacing={24}>\n {sideWidgets.map((widget) => (\n <React.Fragment key={widget.index}>{widget.component}</React.Fragment>\n ))}\n </Stack>\n )}\n </Grid>\n )}\n </Grid>\n )\n}\n\nexport default observer(Dashboard)\n"],"names":["Banner","observer","theme","useTheme","banner","loadBanner","user","useGlobalStore","React","jsx","Stack","AddAccounts","handleConnectClick","copy","useGlobalCopyStore","isSmallerThan700","useMediaQuery","Box","Tooltip","IconButton","Icon","Button","AddAccounts$1","Greeting","showConnectWidget","setShowConnectWidget","isSmallMobileDevice","commonCopy","connectCopy","config","useAppConfig","isMobile","useScreenSize","getGreeting","hour","jsxs","Paper","H2","P","GlobalAccountFilter","ConnectDrawer","Greeting$1","DashboardLocation","Dashboard","widgets","isLoading","isDesktop","copyStore","useWidgetLoadTimer","sortedWidgets","widget","w1","w2","mainWidgets","sideWidgets","Grid","Skeleton","Dashboard_default"],"mappings":";;;;;;;;;;;;;;;;;;;;AAQO,MAAMA,IAASC,EAAS,MAAM;AACnC,QAAMC,IAAQC,EAAA,GACR;AAAA,IACJ,cAAc,EAAE,QAAAC,GAAQ,YAAAC,GAAY,MAAAC,EAAA;AAAA,EAAK,IACvCC,EAAA;AAMJ,SAJAC,EAAM,UAAU,MAAM;AACpB,IAAAH,EAAA,EAAa,QAAA;AAAA,EACf,GAAG,CAACC,CAAI,CAAC,GAEJF,GAAQ,YAKX,gBAAAK;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,IAAI;AAAA,QACF,YAAY;AAAA,QACZ,OAAO;AAAA,QACP,IAAI;AAAA,MAAA;AAAA,MAGN,UAAA,gBAAAD;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,MAAML,GAAQ;AAAA,UACd,KAAI;AAAA,UACJ,OAAO;AAAA,YACL,OAAO;AAAA,UAAA;AAAA,UAET,QAAO;AAAA,UAEP,UAAA,gBAAAK;AAAA,YAAC;AAAA,YAAA;AAAA,cACC,KAAI;AAAA,cACJ,KAAKL,EAAO;AAAA,cACZ,OAAO;AAAA,gBACL,OAAO;AAAA,gBACP,QAAQ;AAAA,gBACR,QAAQ,aAAaF,EAAM,QAAQ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,QAAO;AAAA,0BACrDA,GAAA,EAAS,QAAQ,KAAK,SAAQ,WAAU,OAAM,OAAA,CAAO;AAAA,MAAA,GACxD;AAAA,MAED,CAACX,KACA,gBAAApC,EAACC,GAAA,EAAM,WAAU,UAAS,SAAS,IAChC,UAAAoC,IACGO,EAAY,IAAI,CAACH,MACf,gBAAAzC,EAACD,EAAM,UAAN,EAAmC,UAAA0C,EAAO,UAAA,GAAtBA,EAAO,KAAyB,CACtD,IACDD,EAAc,IAAI,CAACC,MACjB,gBAAAzC,EAACD,EAAM,UAAN,EAAmC,UAAA0C,EAAO,UAAA,GAAtBA,EAAO,KAAyB,CACtD,EAAA,CACP;AAAA,IAAA,GAEJ;AAAA,IAGCJ,KACC,gBAAArC,EAAC8C,GAAA,EAAK,MAAM,EAAE,IAAI,KACf,UAAAV,IACC,gBAAAV,EAACzB,GAAA,EAAM,WAAU,UAAS,SAAS,IACjC,UAAA;AAAA,MAAA,gBAAAD,EAAC+C,KAAS,QAAQ,KAAK,SAAQ,WAAU,OAAM,QAAO;AAAA,wBACrDA,GAAA,EAAS,QAAQ,KAAK,SAAQ,WAAU,OAAM,QAAO;AAAA,wBACrDA,GAAA,EAAS,QAAQ,KAAK,SAAQ,WAAU,OAAM,OAAA,CAAO;AAAA,IAAA,EAAA,CACxD,sBAEC9C,GAAA,EAAM,WAAU,UAAS,SAAS,IAChC,YAAY,IAAI,CAACwC,MAChB,gBAAAzC,EAACD,EAAM,UAAN,EAAmC,UAAA0C,EAAO,aAAtBA,EAAO,KAAyB,CACtD,EAAA,CACH,EAAA,CAEJ;AAAA,EAAA,GAEJ;AAEJ,GAEAO,KAAexD,EAAS0C,CAAS;"}
|
|
1
|
+
{"version":3,"file":"index.es.js","sources":["../../src/common/components/Banner.tsx","../../src/common/components/addaccounts/AddAccounts.tsx","../../src/dashboard/Greeting.tsx","../../src/dashboard/constants/Dashboard.ts","../../src/dashboard/Dashboard.tsx"],"sourcesContent":["import React from 'react'\nimport { observer } from 'mobx-react-lite'\n\nimport { useTheme } from '@mui/material/styles'\nimport Stack from '@mui/material/Stack'\n\nimport { useGlobalStore } from '..'\n\nexport const Banner = observer(() => {\n const theme = useTheme()\n const {\n appDataStore: { banner, loadBanner, user },\n } = useGlobalStore()\n\n React.useEffect(() => {\n loadBanner().finally()\n }, [user])\n\n if (!banner?.image_url) {\n return null\n }\n\n return (\n <Stack\n sx={{\n alignItems: 'center',\n width: '100%',\n mb: 24,\n }}\n >\n <a\n href={banner?.redirect_url}\n rel=\"noreferrer\"\n style={{\n width: '100%',\n }}\n target=\"_blank\"\n >\n <img\n alt=\"\"\n src={banner.image_url}\n style={{\n width: '100%',\n height: 'auto',\n border: `1px solid ${theme.palette.grey['300']}`,\n }}\n />\n </a>\n </Stack>\n )\n})\n","import { observer } from 'mobx-react-lite'\n\nimport Box from '@mui/material/Box'\nimport Button from '@mui/material/Button'\nimport IconButton from '@mui/material/IconButton'\nimport Tooltip from '@mui/material/Tooltip'\nimport useMediaQuery from '@mui/material/useMediaQuery'\n\nimport { Icon } from '@mxenabled/mxui'\n\nimport { useGlobalCopyStore } from '../../../common'\n\ninterface AddAccountsProps {\n handleConnectClick: () => void\n}\n\nconst AddAccounts = ({ handleConnectClick }: AddAccountsProps) => {\n const { common: copy } = useGlobalCopyStore()\n const isSmallerThan700 = useMediaQuery('(max-width: 700px)')\n\n return (\n <Box>\n {isSmallerThan700 ? (\n <Tooltip id=\"add-accounts\" placement=\"bottom\" title={copy.add_accounts}>\n <IconButton\n aria-controls=\"add_accounts\"\n aria-describedby=\"add-accounts\"\n aria-haspopup={true}\n aria-label={copy.add_accounts}\n color=\"primary\"\n onClick={handleConnectClick}\n >\n <Icon name=\"add\" size={24} />\n </IconButton>\n </Tooltip>\n ) : (\n <Button\n aria-controls=\"add_accounts\"\n aria-haspopup={true}\n aria-label={copy.add_accounts}\n onClick={handleConnectClick}\n startIcon={<Icon name=\"add\" size={24} />}\n sx={{\n p: 12,\n whiteSpace: 'nowrap',\n minWidth: 'max-content',\n }}\n variant=\"text\"\n >\n {copy.add_accounts}\n </Button>\n )}\n </Box>\n )\n}\n\nexport default observer(AddAccounts)\n","import React from 'react'\nimport { observer } from 'mobx-react-lite'\n\nimport Stack from '@mui/material/Stack'\nimport Paper from '@mui/material/Paper'\n\nimport { H2, P } from '@mxenabled/mxui'\nimport { useMediaQuery } from '@mui/system'\n\nimport { ConnectDrawer, useAppConfig, useGlobalCopyStore, useScreenSize } from '../common'\nimport { usePostHog } from 'posthog-js/react'\n\nimport AddAccounts from '../common/components/addaccounts/AddAccounts'\nimport { GlobalAccountFilter } from '../common/components/GlobalAccountFilter'\n\nconst TestExperiencesError = () => {\n const posthog = usePostHog()\n\n const handleClick = () => {\n posthog.captureException(new Error('PostHog experiences source maps test'))\n }\n\n return (\n <button\n onClick={handleClick}\n style={{\n backgroundColor: 'red',\n color: 'white',\n border: 'none',\n padding: '8px 16px',\n borderRadius: 4,\n cursor: 'pointer',\n marginRight: 8,\n }}\n >\n Test Experiences Error\n </button>\n )\n}\n\nconst Greeting = () => {\n const [showConnectWidget, setShowConnectWidget] = React.useState(false)\n\n const isSmallMobileDevice = useMediaQuery('(max-width:320px)')\n\n const { common: commonCopy, connect: connectCopy } = useGlobalCopyStore()\n const { config } = useAppConfig()\n const { isMobile } = useScreenSize()\n\n const getGreeting = () => {\n const now = new Date()\n const hour = now.getHours()\n\n if (hour > 1 && hour < 12) {\n return commonCopy.good_morning\n } else if (hour >= 12 && hour < 18) {\n return commonCopy.good_afternoon\n } else {\n return commonCopy.good_evening\n }\n }\n\n return (\n <React.Fragment>\n <Paper sx={{ gap: 12, mb: isMobile ? 24 : 0, p: 24 }}>\n <Stack alignItems=\"center\" flexDirection=\"row\" justifyContent=\"space-between\">\n <Stack>\n <H2 variant={isSmallMobileDevice ? 'h2' : 'h1'}>{getGreeting()}</H2>\n <P color=\"text.secondary\">{commonCopy.heres_your_spending_overview}</P>\n </Stack>\n <Stack flexDirection=\"row\">\n {config.show_connections_widget_in_master && (\n <AddAccounts handleConnectClick={() => setShowConnectWidget(true)} />\n )}\n <TestExperiencesError />\n <GlobalAccountFilter />\n </Stack>\n </Stack>\n </Paper>\n {showConnectWidget && (\n <ConnectDrawer\n onClose={() => setShowConnectWidget(false)}\n showConnectWidget={showConnectWidget}\n title={connectCopy.mini_title}\n />\n )}\n </React.Fragment>\n )\n}\n\nexport default observer(Greeting)\n","export enum DashboardLocation {\n Main = 0,\n RightSide = 1,\n Disabled = 2,\n}\n","import React from 'react'\nimport { observer } from 'mobx-react-lite'\n\nimport Grid from '@mui/material/Grid'\nimport Skeleton from '@mui/material/Skeleton'\nimport Stack from '@mui/material/Stack'\n\nimport { useGlobalStore, useScreenSize, useWidgetLoadTimer } from '../common'\n\nimport { Banner } from '../common/components/Banner'\n\nimport Greeting from './Greeting'\nimport { DashboardLocation } from './constants/Dashboard'\nimport type { DashboardWidget } from './types/DashboardTypes'\n\nexport interface DashboardProps {\n widgets: DashboardWidget[]\n isLoading: boolean\n}\n\nconst Dashboard: React.FC<DashboardProps> = ({ widgets, isLoading }) => {\n const { isDesktop, isMobile } = useScreenSize()\n const { copyStore } = useGlobalStore()\n\n useWidgetLoadTimer({\n widgetName: 'Dashboard',\n isLoaded: !isLoading,\n })\n\n const sortedWidgets = React.useMemo(\n () =>\n widgets\n .filter((widget) => widget.location !== DashboardLocation.Disabled)\n .sort((w1, w2) => w1.index - w2.index),\n [widgets],\n )\n\n const mainWidgets = React.useMemo(\n () => sortedWidgets.filter((widget) => widget.location === DashboardLocation.Main),\n [sortedWidgets],\n )\n\n const sideWidgets = React.useMemo(\n () => sortedWidgets.filter((widget) => widget.location === DashboardLocation.RightSide),\n [sortedWidgets],\n )\n\n return (\n <Grid container={true} spacing={isMobile ? 0 : 24}>\n <Grid size={12} sx={{ pt: 16 }}>\n {copyStore.isInitialized && <Greeting />}\n </Grid>\n\n {/* Main Column */}\n <Grid size={{ xs: 12, lg: 8 }}>\n <Banner />\n {isLoading && (\n <Stack direction=\"column\" spacing={24}>\n <Skeleton height={100} variant=\"rounded\" width=\"100%\" />\n <Skeleton height={300} variant=\"rounded\" width=\"100%\" />\n <Skeleton height={300} variant=\"rounded\" width=\"100%\" />\n </Stack>\n )}\n {!isLoading && (\n <Stack direction=\"column\" spacing={24}>\n {isDesktop\n ? mainWidgets.map((widget) => (\n <React.Fragment key={widget.index}>{widget.component}</React.Fragment>\n ))\n : sortedWidgets.map((widget) => (\n <React.Fragment key={widget.index}>{widget.component}</React.Fragment>\n ))}\n </Stack>\n )}\n </Grid>\n\n {/* Right Column */}\n {isDesktop && (\n <Grid size={{ lg: 4 }}>\n {isLoading ? (\n <Stack direction=\"column\" spacing={24}>\n <Skeleton height={200} variant=\"rounded\" width=\"100%\" />\n <Skeleton height={100} variant=\"rounded\" width=\"100%\" />\n <Skeleton height={300} variant=\"rounded\" width=\"100%\" />\n </Stack>\n ) : (\n <Stack direction=\"column\" spacing={24}>\n {sideWidgets.map((widget) => (\n <React.Fragment key={widget.index}>{widget.component}</React.Fragment>\n ))}\n </Stack>\n )}\n </Grid>\n )}\n </Grid>\n )\n}\n\nexport default observer(Dashboard)\n"],"names":["Banner","observer","theme","useTheme","banner","loadBanner","user","useGlobalStore","React","jsx","Stack","AddAccounts","handleConnectClick","copy","useGlobalCopyStore","isSmallerThan700","useMediaQuery","Box","Tooltip","IconButton","Icon","Button","AddAccounts$1","TestExperiencesError","posthog","usePostHog","Greeting","showConnectWidget","setShowConnectWidget","isSmallMobileDevice","commonCopy","connectCopy","config","useAppConfig","isMobile","useScreenSize","getGreeting","hour","jsxs","Paper","H2","P","GlobalAccountFilter","ConnectDrawer","Greeting$1","DashboardLocation","Dashboard","widgets","isLoading","isDesktop","copyStore","useWidgetLoadTimer","sortedWidgets","widget","w1","w2","mainWidgets","sideWidgets","Grid","Skeleton","Dashboard_default"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAQO,MAAMA,IAASC,EAAS,MAAM;AACnC,QAAMC,IAAQC,EAAA,GACR;AAAA,IACJ,cA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IAChC,UAAAuC,IACGO,EAAY,IAAI,CAACH,MACf,gBAAA5C,EAACD,EAAM,UAAN,EAAmC,UAAA6C,EAAO,UAAA,GAAtBA,EAAO,KAAyB,CACtD,IACDD,EAAc,IAAI,CAACC,MACjB,gBAAA5C,EAACD,EAAM,UAAN,EAAmC,UAAA6C,EAAO,UAAA,GAAtBA,EAAO,KAAyB,CACtD,EAAA,CACP;AAAA,IAAA,GAEJ;AAAA,IAGCJ,KACC,gBAAAxC,EAACiD,GAAA,EAAK,MAAM,EAAE,IAAI,KACf,UAAAV,IACC,gBAAAV,EAAC5B,GAAA,EAAM,WAAU,UAAS,SAAS,IACjC,UAAA;AAAA,MAAA,gBAAAD,EAACkD,KAAS,QAAQ,KAAK,SAAQ,WAAU,OAAM,QAAO;AAAA,wBACrDA,GAAA,EAAS,QAAQ,KAAK,SAAQ,WAAU,OAAM,QAAO;AAAA,wBACrDA,GAAA,EAAS,QAAQ,KAAK,SAAQ,WAAU,OAAM,OAAA,CAAO;AAAA,IAAA,EAAA,CACxD,sBAECjD,GAAA,EAAM,WAAU,UAAS,SAAS,IAChC,YAAY,IAAI,CAAC2C,MAChB,gBAAA5C,EAACD,EAAM,UAAN,EAAmC,UAAA6C,EAAO,aAAtBA,EAAO,KAAyB,CACtD,EAAA,CACH,EAAA,CAEJ;AAAA,EAAA,GAEJ;AAEJ,GAEAO,KAAe3D,EAAS6C,CAAS;"}
|
package/dist/debts/index.es.js
CHANGED
|
@@ -19,7 +19,7 @@ import Ue from "@mui/material/CardHeader";
|
|
|
19
19
|
import le from "@mui/material/Box";
|
|
20
20
|
import { useTheme as qe } from "@mui/material/styles";
|
|
21
21
|
import { LineChart as Xe } from "@mui/x-charts/LineChart";
|
|
22
|
-
import { A as S } from "../Analytics-
|
|
22
|
+
import { A as S } from "../Analytics-D-jdcL72.mjs";
|
|
23
23
|
import be from "@mui/material/Tab";
|
|
24
24
|
import Ze from "@mui/material/Tabs";
|
|
25
25
|
import we from "@mui/material/List";
|
|
@@ -42,7 +42,7 @@ import it from "@mui/material/ListItem";
|
|
|
42
42
|
import lt from "@mui/material/Popover";
|
|
43
43
|
import { u as st } from "../useWidgetLoadTimer-B0tB-yzL.mjs";
|
|
44
44
|
import { L as ct } from "../Loader-CxeBwuPG.mjs";
|
|
45
|
-
import { W as dt } from "../WidgetContainer-
|
|
45
|
+
import { W as dt } from "../WidgetContainer-CjdCY4sj.mjs";
|
|
46
46
|
import { E as pt } from "../EmptyState-CJUDc3kD.mjs";
|
|
47
47
|
import { C as ut } from "../ConnectDrawer-CW4LA3H3.mjs";
|
|
48
48
|
function ht(r, n, o = 0) {
|
|
@@ -49,7 +49,7 @@ import { S as dt } from "../Select-CSpkK5cR.mjs";
|
|
|
49
49
|
import { c as je } from "../Account-DR7Plrqy.mjs";
|
|
50
50
|
import { S as zn } from "../StatusBar-CPfSXe80.mjs";
|
|
51
51
|
import { k as Dt } from "../DateUtil-CzBmbjmA.mjs";
|
|
52
|
-
import { T as Hn, s as Kn, h as Vn, S as jn, a as Yn } from "../EmbeddedCard-
|
|
52
|
+
import { T as Hn, s as Kn, h as Vn, S as jn, a as Yn } from "../EmbeddedCard-DCOQnTz-.mjs";
|
|
53
53
|
import { T as ge } from "../TabContentContainer-B0eYJP5p.mjs";
|
|
54
54
|
import Xn from "@mui/material/useMediaQuery";
|
|
55
55
|
import { BarPlot as Un } from "@mui/x-charts/BarChart";
|
|
@@ -62,11 +62,11 @@ import { g as Jn, S as eo, b as to } from "../SpendingLegend-CxvNOg3c.mjs";
|
|
|
62
62
|
import { formatISO as no } from "date-fns/formatISO";
|
|
63
63
|
import { fromUnixTime as oo } from "date-fns/fromUnixTime";
|
|
64
64
|
import { subDays as ro } from "date-fns/subDays";
|
|
65
|
-
import { c as ao, b as pt, S as io, i as so } from "../ManageIncome-
|
|
65
|
+
import { c as ao, b as pt, S as io, i as so } from "../ManageIncome-B_8i71mE.mjs";
|
|
66
66
|
import { F as Tt, d as co, R as Ot } from "../RecurringTransactionsUtil-CHWmqvW5.mjs";
|
|
67
67
|
import { LocalizationProvider as lo, DatePicker as po, StaticDatePicker as uo } from "@mui/x-date-pickers";
|
|
68
68
|
import { AdapterDateFns as Rt } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
|
69
|
-
import { R as _o } from "../RecurringSettings-
|
|
69
|
+
import { R as _o } from "../RecurringSettings-hs0YUp83.mjs";
|
|
70
70
|
import { LocalizationProvider as mo } from "@mui/x-date-pickers/LocalizationProvider";
|
|
71
71
|
import ho from "@mui/lab/Timeline";
|
|
72
72
|
import go, { timelineItemClasses as yo } from "@mui/lab/TimelineItem";
|
|
@@ -78,7 +78,7 @@ import So from "@mui/material/Accordion";
|
|
|
78
78
|
import vo from "@mui/material/AccordionDetails";
|
|
79
79
|
import wo from "@mui/material/AccordionSummary";
|
|
80
80
|
import { u as ko } from "../useWidgetLoadTimer-B0tB-yzL.mjs";
|
|
81
|
-
import { W as Mo } from "../WidgetContainer-
|
|
81
|
+
import { W as Mo } from "../WidgetContainer-CjdCY4sj.mjs";
|
|
82
82
|
const Ae = {
|
|
83
83
|
creditScore: {
|
|
84
84
|
poor: 600,
|
package/dist/goals/index.es.js
CHANGED
|
@@ -48,9 +48,9 @@ import { DatePicker as ut } from "@mui/x-date-pickers";
|
|
|
48
48
|
import { LocalizationProvider as _t } from "@mui/x-date-pickers/LocalizationProvider";
|
|
49
49
|
import { D as pt } from "../Dialog-Bvd2n8hz.mjs";
|
|
50
50
|
import { u as Me } from "../useWidgetLoadTimer-B0tB-yzL.mjs";
|
|
51
|
-
import { A as $ } from "../Analytics-
|
|
51
|
+
import { A as $ } from "../Analytics-D-jdcL72.mjs";
|
|
52
52
|
import { L as Le } from "../Loader-CxeBwuPG.mjs";
|
|
53
|
-
import { W as ht } from "../WidgetContainer-
|
|
53
|
+
import { W as ht } from "../WidgetContainer-CjdCY4sj.mjs";
|
|
54
54
|
import { E as bt } from "../EmptyState-CJUDc3kD.mjs";
|
|
55
55
|
import ft from "@mui/material/Box";
|
|
56
56
|
import { useTheme as gt } from "@mui/material/styles";
|
package/dist/help/index.es.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { observer as m } from "mobx-react-lite";
|
|
3
|
-
import { H as s } from "../Help-
|
|
3
|
+
import { H as s } from "../Help-zVZdcmlk.mjs";
|
|
4
4
|
import { a } from "../hooks-97sNJ_lf.mjs";
|
|
5
5
|
import { u as p } from "../useWidgetLoadTimer-B0tB-yzL.mjs";
|
|
6
6
|
import { L as d } from "../Loader-CxeBwuPG.mjs";
|
|
7
|
-
import { W as f } from "../WidgetContainer-
|
|
7
|
+
import { W as f } from "../WidgetContainer-CjdCY4sj.mjs";
|
|
8
8
|
const L = m(({ onBackClick: e, onMenuClick: i, sx: t }) => {
|
|
9
9
|
const { isInitialized: o } = a();
|
|
10
10
|
return p({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as t, jsxs as c, Fragment as N } from "react/jsx-runtime";
|
|
2
2
|
import { BottomSheetTransition as r2, Text as E, MerchantLogo as Q, InstitutionLogo as F, P as J, H3 as h1, H2 as c1, Icon as k1, CategoryIcon as g1, createMXTheme as i2 } from "@mxenabled/mxui";
|
|
3
3
|
import C from "@mui/material/Stack";
|
|
4
|
-
import { e as K, p as n2, B as z1, b as l2 } from "../EmbeddedCard-
|
|
5
|
-
import { f as d5, C as C5, E as m5 } from "../EmbeddedCard-
|
|
4
|
+
import { e as K, p as n2, B as z1, b as l2 } from "../EmbeddedCard-DCOQnTz-.mjs";
|
|
5
|
+
import { f as d5, C as C5, E as m5 } from "../EmbeddedCard-DCOQnTz-.mjs";
|
|
6
6
|
import { CardHeader as a2, Stack as v, Button as A1, Card as j1, Box as L1, ToggleButtonGroup as o2, TextField as s2, Grow as c2, Alert as h2, useTheme as d2, useMediaQuery as H1, AppBar as C2, Toolbar as m2, IconButton as u1, List as p2, ListItem as E2, Divider as u2 } from "@mui/material";
|
|
7
7
|
import { useTheme as f2, styled as x2, Stack as f1 } from "@mui/system";
|
|
8
8
|
import { Link as y2, Icon as S, CheckCircle as W1, ChevronRight as M2 } from "@mxenabled/mx-icons";
|
|
@@ -17,7 +17,7 @@ import fe from "@mui/material/ToggleButtonGroup";
|
|
|
17
17
|
import { Text as o, P as X, InstitutionLogo as oe } from "@mxenabled/mxui";
|
|
18
18
|
import Ue from "@mui/material/Button";
|
|
19
19
|
import { u as N, f as ve, v as U, a as J, c as ce } from "../hooks-97sNJ_lf.mjs";
|
|
20
|
-
import { A as z } from "../Analytics-
|
|
20
|
+
import { A as z } from "../Analytics-D-jdcL72.mjs";
|
|
21
21
|
import { f as re, a as je } from "../NumberFormatting--XMeeBfr.mjs";
|
|
22
22
|
import { u as j } from "../useScreenSize-mWpmnh5w.mjs";
|
|
23
23
|
import { useTheme as Z } from "@mui/material/styles";
|
|
@@ -38,7 +38,7 @@ import { DataGridPro as $e } from "@mui/x-data-grid-pro";
|
|
|
38
38
|
import { Stack as Pe } from "@mui/material";
|
|
39
39
|
import { L as De } from "../Loader-CxeBwuPG.mjs";
|
|
40
40
|
import { u as qe } from "../useWidgetLoadTimer-B0tB-yzL.mjs";
|
|
41
|
-
import { W as Ke } from "../WidgetContainer-
|
|
41
|
+
import { W as Ke } from "../WidgetContainer-CjdCY4sj.mjs";
|
|
42
42
|
import { c as Ye } from "../Account-DR7Plrqy.mjs";
|
|
43
43
|
import { E as Qe } from "../EmptyState-CJUDc3kD.mjs";
|
|
44
44
|
const me = ({ sx: t = {} }) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as r, jsx as e, Fragment as N } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import x from "react";
|
|
3
3
|
import { observer as _ } from "mobx-react-lite";
|
|
4
4
|
import m from "@mui/material/Stack";
|
|
5
5
|
import { P as Y, Text as d, Icon as R } from "@mxenabled/mxui";
|
|
@@ -7,7 +7,7 @@ import { Icon as Z } from "@mxenabled/mx-icons";
|
|
|
7
7
|
import { f as F } from "../NumberFormatting--XMeeBfr.mjs";
|
|
8
8
|
import { c as oe, f as $, u as E, a as q, x as j, D as re } from "../hooks-97sNJ_lf.mjs";
|
|
9
9
|
import { u as J } from "../useWidgetLoadTimer-B0tB-yzL.mjs";
|
|
10
|
-
import { A as v } from "../Analytics-
|
|
10
|
+
import { A as v } from "../Analytics-D-jdcL72.mjs";
|
|
11
11
|
import { L as Q } from "../Loader-CxeBwuPG.mjs";
|
|
12
12
|
import { M as ie } from "../MicroWidgetContainer-B2NnKBgW.mjs";
|
|
13
13
|
import { format as ae, fromUnixTime as se, differenceInMonths as ce } from "date-fns";
|
|
@@ -19,20 +19,20 @@ import { L as me } from "../LineChart-CUfiH86G.mjs";
|
|
|
19
19
|
import { u as ee } from "../useScreenSize-mWpmnh5w.mjs";
|
|
20
20
|
import { f as he, D as pe } from "../DateFormats-HudZ3Bjs.mjs";
|
|
21
21
|
import ue from "@mui/material/Button";
|
|
22
|
-
import
|
|
22
|
+
import I from "@mui/material/Divider";
|
|
23
23
|
import z from "@mui/material/List";
|
|
24
24
|
import A from "@mui/material/ListSubheader";
|
|
25
25
|
import O from "@mui/material/ListItem";
|
|
26
26
|
import te from "@mui/material/ListItemButton";
|
|
27
27
|
import b from "@mui/material/ListItemText";
|
|
28
28
|
import { l as ne } from "../DateUtil-CzBmbjmA.mjs";
|
|
29
|
-
import { C as
|
|
29
|
+
import { C as f } from "../CurrencyText-CCbE6MmF.mjs";
|
|
30
30
|
import { Stack as fe } from "@mui/material";
|
|
31
31
|
import xe from "@mui/material/Collapse";
|
|
32
32
|
import K from "@mui/material/ListItemIcon";
|
|
33
33
|
import { g as U } from "../NetWorthUtils-Dj7CgAg2.mjs";
|
|
34
34
|
import { D as V } from "../Drawer-DsnW2o0v.mjs";
|
|
35
|
-
import { W as ge } from "../WidgetContainer-
|
|
35
|
+
import { W as ge } from "../WidgetContainer-CjdCY4sj.mjs";
|
|
36
36
|
import { E as ye } from "../EmptyState-CJUDc3kD.mjs";
|
|
37
37
|
const Ce = ({ amount: t, copy: s, trendValue: i }) => {
|
|
38
38
|
const n = i > 0, o = i === 0 ? "trending_flat" : n ? "trending_up" : "trending_down";
|
|
@@ -53,13 +53,13 @@ const Ce = ({ amount: t, copy: s, trendValue: i }) => {
|
|
|
53
53
|
/* @__PURE__ */ e(Y, { sx: { color: "text.secondary" }, variant: "body2", children: t.zero_state_description })
|
|
54
54
|
] })
|
|
55
55
|
] }), gt = _(({ onCTAClick: t }) => {
|
|
56
|
-
const { visibleAccounts: s } = oe(), { onEvent: i } = $(), { net_worth: n, common: a } = E(), { isInitialized: o } = q(), { isNetWorthDataLoaded: c, loadNetWorthData: l, netWorthData: g, selectedData:
|
|
57
|
-
if (
|
|
56
|
+
const { visibleAccounts: s } = oe(), { onEvent: i } = $(), { net_worth: n, common: a } = E(), { isInitialized: o } = q(), { isNetWorthDataLoaded: c, loadNetWorthData: l, netWorthData: g, selectedData: u } = j();
|
|
57
|
+
if (x.useEffect(() => {
|
|
58
58
|
c || l().finally();
|
|
59
59
|
}, []), J({
|
|
60
60
|
widgetName: "NetWorthMicroWidget",
|
|
61
61
|
isLoaded: c
|
|
62
|
-
}),
|
|
62
|
+
}), x.useEffect(() => {
|
|
63
63
|
c && i(v.NET_WORTH_LOAD_WIDGET, {
|
|
64
64
|
state: s?.length ? "default" : "zeroState"
|
|
65
65
|
});
|
|
@@ -79,9 +79,9 @@ const Ce = ({ amount: t, copy: s, trendValue: i }) => {
|
|
|
79
79
|
children: g.accounts.length ? /* @__PURE__ */ e(
|
|
80
80
|
Ce,
|
|
81
81
|
{
|
|
82
|
-
amount:
|
|
82
|
+
amount: u?.y,
|
|
83
83
|
copy: n,
|
|
84
|
-
trendValue:
|
|
84
|
+
trendValue: u?.change
|
|
85
85
|
}
|
|
86
86
|
) : /* @__PURE__ */ e(be, { copy: n })
|
|
87
87
|
}
|
|
@@ -93,18 +93,18 @@ const Ce = ({ amount: t, copy: s, trendValue: i }) => {
|
|
|
93
93
|
selectedData: o,
|
|
94
94
|
setHoveredIndex: c,
|
|
95
95
|
setSelectedIndex: l
|
|
96
|
-
} = j(), g = s - 320,
|
|
96
|
+
} = j(), g = s - 320, u = a.map((h) => ({
|
|
97
97
|
x: he(de(h.x), pe.MONTH_SHORT),
|
|
98
98
|
y: h.y
|
|
99
|
-
})), W = o ? { index: a.findIndex((h) => h.x === o.x) } : void 0,
|
|
99
|
+
})), W = o ? { index: a.findIndex((h) => h.x === o.x) } : void 0, y = n ? { index: a.findIndex((h) => h.x === n.x) } : void 0, w = (h) => ({
|
|
100
100
|
fill: h === W?.index ? i.palette.success.main : "",
|
|
101
|
-
filter: h ===
|
|
101
|
+
filter: h === y?.index ? `drop-shadow(0px 0px 10px ${i.palette.success.main})` : "none",
|
|
102
102
|
stroke: i.palette.success.main
|
|
103
|
-
}),
|
|
103
|
+
}), L = (h, M) => {
|
|
104
104
|
l(M);
|
|
105
|
-
},
|
|
105
|
+
}, D = (h) => {
|
|
106
106
|
c(h);
|
|
107
|
-
},
|
|
107
|
+
}, k = () => {
|
|
108
108
|
c(-1);
|
|
109
109
|
};
|
|
110
110
|
return /* @__PURE__ */ e(m, { sx: { width: "100%" }, children: /* @__PURE__ */ e(
|
|
@@ -115,11 +115,11 @@ const Ce = ({ amount: t, copy: s, trendValue: i }) => {
|
|
|
115
115
|
chartXaxisSx: { "& .MuiChartsAxis-tickLabel": { transform: "translateX(8px)" } },
|
|
116
116
|
chartYaxisSx: { "& .MuiChartsAxis-tickLabel": { transform: "translateX(-8px)" } },
|
|
117
117
|
colors: [i.palette.success.main],
|
|
118
|
-
datasets: [
|
|
118
|
+
datasets: [u],
|
|
119
119
|
height: 350,
|
|
120
120
|
labels: [],
|
|
121
121
|
margin: { right: 20, left: 38 },
|
|
122
|
-
markHandlers: { onMarkClick:
|
|
122
|
+
markHandlers: { onMarkClick: L, onMouseEnter: D, onMouseLeave: k },
|
|
123
123
|
markStyles: w,
|
|
124
124
|
showArea: !0,
|
|
125
125
|
useCustomMark: !0,
|
|
@@ -136,12 +136,12 @@ const Ce = ({ amount: t, copy: s, trendValue: i }) => {
|
|
|
136
136
|
onMouseEnter: o,
|
|
137
137
|
onMouseLeave: c
|
|
138
138
|
}) => {
|
|
139
|
-
const [l, g] =
|
|
139
|
+
const [l, g] = x.useState({
|
|
140
140
|
color: ""
|
|
141
141
|
});
|
|
142
|
-
return
|
|
142
|
+
return x.useEffect(() => {
|
|
143
143
|
g(s(t));
|
|
144
|
-
}, [i, n]), /* @__PURE__ */ r(
|
|
144
|
+
}, [i, n]), /* @__PURE__ */ r(x.Fragment, { children: [
|
|
145
145
|
/* @__PURE__ */ e(
|
|
146
146
|
O,
|
|
147
147
|
{
|
|
@@ -153,7 +153,7 @@ const Ce = ({ amount: t, copy: s, trendValue: i }) => {
|
|
|
153
153
|
children: /* @__PURE__ */ e(
|
|
154
154
|
te,
|
|
155
155
|
{
|
|
156
|
-
onClick: (
|
|
156
|
+
onClick: (u) => a?.(u, t.x),
|
|
157
157
|
onMouseEnter: () => o(t.x),
|
|
158
158
|
onMouseLeave: () => c(),
|
|
159
159
|
sx: { minHeight: 20, padding: 12 },
|
|
@@ -162,7 +162,7 @@ const Ce = ({ amount: t, copy: s, trendValue: i }) => {
|
|
|
162
162
|
{
|
|
163
163
|
primary: /* @__PURE__ */ r(m, { direction: "row", justifyContent: "space-between", sx: { fontWeight: 400 }, children: [
|
|
164
164
|
/* @__PURE__ */ e(d, { variant: "body1", children: ne(t.x) }),
|
|
165
|
-
/* @__PURE__ */ e(
|
|
165
|
+
/* @__PURE__ */ e(f, { amount: t.y, sx: { color: "inherit" }, variant: "body1" })
|
|
166
166
|
] })
|
|
167
167
|
}
|
|
168
168
|
)
|
|
@@ -170,7 +170,7 @@ const Ce = ({ amount: t, copy: s, trendValue: i }) => {
|
|
|
170
170
|
)
|
|
171
171
|
}
|
|
172
172
|
),
|
|
173
|
-
/* @__PURE__ */ e(
|
|
173
|
+
/* @__PURE__ */ e(I, {})
|
|
174
174
|
] }, t.x);
|
|
175
175
|
}, We = _(ve), Se = ({
|
|
176
176
|
currencyLabel: t,
|
|
@@ -191,10 +191,10 @@ const Ce = ({ amount: t, copy: s, trendValue: i }) => {
|
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
193
|
),
|
|
194
|
-
/* @__PURE__ */ e(
|
|
194
|
+
/* @__PURE__ */ e(f, { amount: n.change, color: c, variant: s }),
|
|
195
195
|
/* @__PURE__ */ e(d, { variant: "body2", children: t })
|
|
196
196
|
] });
|
|
197
|
-
}, B = _(Se),
|
|
197
|
+
}, B = _(Se), Te = ({
|
|
198
198
|
netWorth: t,
|
|
199
199
|
gains: s,
|
|
200
200
|
losses: i,
|
|
@@ -214,18 +214,18 @@ const Ce = ({ amount: t, copy: s, trendValue: i }) => {
|
|
|
214
214
|
{
|
|
215
215
|
primary: /* @__PURE__ */ r(m, { direction: "row", justifyContent: "space-between", children: [
|
|
216
216
|
/* @__PURE__ */ e(d, { sx: { fontWeight: 700 }, variant: "caption", children: o.gains }),
|
|
217
|
-
/* @__PURE__ */ e(
|
|
217
|
+
/* @__PURE__ */ e(f, { amount: n, sx: { fontWeight: 400 }, variant: "caption" })
|
|
218
218
|
] })
|
|
219
219
|
}
|
|
220
220
|
) }),
|
|
221
|
-
s?.map((l) => /* @__PURE__ */ r(
|
|
221
|
+
s?.map((l) => /* @__PURE__ */ r(x.Fragment, { children: [
|
|
222
222
|
/* @__PURE__ */ e(O, { sx: { backgroundColor: c.palette.background.paper, py: 14 }, children: /* @__PURE__ */ e(
|
|
223
223
|
b,
|
|
224
224
|
{
|
|
225
225
|
primary: /* @__PURE__ */ r(m, { direction: "row", justifyContent: "space-between", children: [
|
|
226
226
|
/* @__PURE__ */ e(d, { sx: { mr: 10 }, variant: "body1", children: l.accountName }),
|
|
227
227
|
/* @__PURE__ */ e(
|
|
228
|
-
|
|
228
|
+
f,
|
|
229
229
|
{
|
|
230
230
|
amount: l.gain,
|
|
231
231
|
sx: { color: c.palette.success.main, flexShrink: 0, fontWeight: 700 },
|
|
@@ -236,14 +236,14 @@ const Ce = ({ amount: t, copy: s, trendValue: i }) => {
|
|
|
236
236
|
sx: { px: 16 }
|
|
237
237
|
}
|
|
238
238
|
) }),
|
|
239
|
-
/* @__PURE__ */ e(
|
|
239
|
+
/* @__PURE__ */ e(I, {})
|
|
240
240
|
] }, l.accountName)),
|
|
241
241
|
/* @__PURE__ */ e(A, { sx: { mb: 8, mt: 12, mx: 8 }, children: /* @__PURE__ */ e(
|
|
242
242
|
b,
|
|
243
243
|
{
|
|
244
244
|
primary: /* @__PURE__ */ r(m, { direction: "row", justifyContent: "space-between", children: [
|
|
245
245
|
/* @__PURE__ */ e(d, { sx: { fontWeight: 700 }, variant: "caption", children: o.losses }),
|
|
246
|
-
/* @__PURE__ */ e(
|
|
246
|
+
/* @__PURE__ */ e(f, { amount: a, sx: { fontWeight: 400 }, variant: "caption" })
|
|
247
247
|
] })
|
|
248
248
|
}
|
|
249
249
|
) }),
|
|
@@ -267,7 +267,7 @@ const Ce = ({ amount: t, copy: s, trendValue: i }) => {
|
|
|
267
267
|
}
|
|
268
268
|
),
|
|
269
269
|
/* @__PURE__ */ e(
|
|
270
|
-
|
|
270
|
+
f,
|
|
271
271
|
{
|
|
272
272
|
amount: l.loss,
|
|
273
273
|
sx: { flexShrink: 0, fontWeight: 700 },
|
|
@@ -281,12 +281,12 @@ const Ce = ({ amount: t, copy: s, trendValue: i }) => {
|
|
|
281
281
|
},
|
|
282
282
|
l.accountName
|
|
283
283
|
),
|
|
284
|
-
/* @__PURE__ */ e(
|
|
284
|
+
/* @__PURE__ */ e(I, {})
|
|
285
285
|
] }))
|
|
286
286
|
] })
|
|
287
287
|
] });
|
|
288
|
-
},
|
|
289
|
-
const [n, a] =
|
|
288
|
+
}, Ie = _(Te), Le = ({ accounts: t, name: s, icon: i }) => {
|
|
289
|
+
const [n, a] = x.useState(!1);
|
|
290
290
|
return /* @__PURE__ */ r(N, { children: [
|
|
291
291
|
/* @__PURE__ */ e(O, { sx: (o) => ({ backgroundColor: o.palette.background.paper }), children: /* @__PURE__ */ r(te, { onClick: () => a(!n), children: [
|
|
292
292
|
i && /* @__PURE__ */ e(K, { children: /* @__PURE__ */ e(R, { name: i, size: 24, sx: { mr: 12 } }) }),
|
|
@@ -298,7 +298,7 @@ const Ce = ({ amount: t, copy: s, trendValue: i }) => {
|
|
|
298
298
|
),
|
|
299
299
|
/* @__PURE__ */ e(K, { children: n ? /* @__PURE__ */ e(R, { name: "expand_less", size: 24 }) : /* @__PURE__ */ e(R, { name: "expand_more", size: 24 }) })
|
|
300
300
|
] }) }),
|
|
301
|
-
/* @__PURE__ */ e(
|
|
301
|
+
/* @__PURE__ */ e(I, {}),
|
|
302
302
|
/* @__PURE__ */ e(xe, { in: n, timeout: "auto", unmountOnExit: !0, children: t.map((o, c) => /* @__PURE__ */ r(z, { children: [
|
|
303
303
|
/* @__PURE__ */ e(O, { sx: () => ({ py: 14 }), children: /* @__PURE__ */ e(
|
|
304
304
|
b,
|
|
@@ -315,7 +315,7 @@ const Ce = ({ amount: t, copy: s, trendValue: i }) => {
|
|
|
315
315
|
}
|
|
316
316
|
),
|
|
317
317
|
/* @__PURE__ */ e(
|
|
318
|
-
|
|
318
|
+
f,
|
|
319
319
|
{
|
|
320
320
|
amount: o.balance,
|
|
321
321
|
sx: {
|
|
@@ -328,7 +328,7 @@ const Ce = ({ amount: t, copy: s, trendValue: i }) => {
|
|
|
328
328
|
sx: { pl: 72, pr: 16 }
|
|
329
329
|
}
|
|
330
330
|
) }),
|
|
331
|
-
c < t.length - 1 ? /* @__PURE__ */ e(
|
|
331
|
+
c < t.length - 1 ? /* @__PURE__ */ e(I, { variant: "inset" }) : /* @__PURE__ */ e(I, {})
|
|
332
332
|
] }, o.accountName)) })
|
|
333
333
|
] });
|
|
334
334
|
}, X = ({ groupedAccounts: t }) => /* @__PURE__ */ e(N, { children: t.map(({ accounts: s, icon: i, name: n }) => /* @__PURE__ */ e(Le, { accounts: s, icon: i, name: n }, n)) }), De = ({
|
|
@@ -353,7 +353,7 @@ const Ce = ({ amount: t, copy: s, trendValue: i }) => {
|
|
|
353
353
|
},
|
|
354
354
|
children: [
|
|
355
355
|
/* @__PURE__ */ e(d, { variant: "body1", children: o.current_net_worth }),
|
|
356
|
-
/* @__PURE__ */ e(
|
|
356
|
+
/* @__PURE__ */ e(f, { amount: t?.y ?? 0, variant: "h1" }),
|
|
357
357
|
t && /* @__PURE__ */ e(
|
|
358
358
|
B,
|
|
359
359
|
{
|
|
@@ -372,7 +372,7 @@ const Ce = ({ amount: t, copy: s, trendValue: i }) => {
|
|
|
372
372
|
{
|
|
373
373
|
primary: /* @__PURE__ */ r(m, { direction: "row", justifyContent: "space-between", children: [
|
|
374
374
|
/* @__PURE__ */ e(d, { sx: { fontWeight: 700 }, variant: "caption", children: o.assets }),
|
|
375
|
-
/* @__PURE__ */ e(
|
|
375
|
+
/* @__PURE__ */ e(f, { amount: n, sx: { fontWeight: 400 }, variant: "caption" })
|
|
376
376
|
] })
|
|
377
377
|
}
|
|
378
378
|
) }),
|
|
@@ -383,7 +383,7 @@ const Ce = ({ amount: t, copy: s, trendValue: i }) => {
|
|
|
383
383
|
primary: /* @__PURE__ */ r(m, { direction: "row", justifyContent: "space-between", children: [
|
|
384
384
|
/* @__PURE__ */ e(d, { sx: { fontWeight: 700 }, variant: "caption", children: o.liabilities }),
|
|
385
385
|
/* @__PURE__ */ e(
|
|
386
|
-
|
|
386
|
+
f,
|
|
387
387
|
{
|
|
388
388
|
amount: a,
|
|
389
389
|
sx: { fontWeight: 400 },
|
|
@@ -404,18 +404,18 @@ const Ce = ({ amount: t, copy: s, trendValue: i }) => {
|
|
|
404
404
|
netWorthChartData: c,
|
|
405
405
|
selectedData: l,
|
|
406
406
|
setHoveredIndex: g,
|
|
407
|
-
setSelectedIndex:
|
|
408
|
-
} = j(), [W,
|
|
409
|
-
const C = p.x === o?.x,
|
|
407
|
+
setSelectedIndex: u
|
|
408
|
+
} = j(), [W, y] = x.useState(!1), [w, L] = x.useState(!1), D = (p) => {
|
|
409
|
+
const C = p.x === o?.x, S = p.x === l?.x, T = {
|
|
410
410
|
backgroundColor: "inherit",
|
|
411
411
|
borderBottom: "inherit",
|
|
412
412
|
color: "inherit"
|
|
413
413
|
};
|
|
414
|
-
return C && (T.color =
|
|
415
|
-
},
|
|
416
|
-
|
|
414
|
+
return C && (T.color = S ? "inherit" : T.color, T.backgroundColor = s.palette.action.hover), S && (T.backgroundColor = s.palette.primary.main, T.borderBottom = s.palette.neutral.light, T.color = s.palette.common.white), T;
|
|
415
|
+
}, k = (p, C) => {
|
|
416
|
+
u(C), p.currentTarget instanceof HTMLDivElement && y(!0);
|
|
417
417
|
}, h = () => {
|
|
418
|
-
|
|
418
|
+
L(!0), i(v.NET_WORTH_WIDGET_CLICK_ASSETS_LIABILITIES);
|
|
419
419
|
}, M = (p) => {
|
|
420
420
|
g(p);
|
|
421
421
|
}, G = () => {
|
|
@@ -424,15 +424,15 @@ const Ce = ({ amount: t, copy: s, trendValue: i }) => {
|
|
|
424
424
|
return /* @__PURE__ */ r(m, { direction: "column", sx: { width: 320 }, children: [
|
|
425
425
|
/* @__PURE__ */ r(z, { children: [
|
|
426
426
|
/* @__PURE__ */ e(A, { sx: { backgroundColor: "transparent", mb: 8, mt: 12, px: 12 }, children: /* @__PURE__ */ e(d, { bold: !0, component: "h2", variant: "body1", children: t.monthly_totals }) }),
|
|
427
|
-
/* @__PURE__ */ e(
|
|
427
|
+
/* @__PURE__ */ e(I, {}),
|
|
428
428
|
c.map((p, C) => /* @__PURE__ */ e(
|
|
429
429
|
We,
|
|
430
430
|
{
|
|
431
|
-
getStyles:
|
|
431
|
+
getStyles: D,
|
|
432
432
|
isHovered: p.x === o?.x,
|
|
433
433
|
isSelected: p.x === l?.x,
|
|
434
434
|
item: p,
|
|
435
|
-
onItemClick: (
|
|
435
|
+
onItemClick: (S) => k(S, C),
|
|
436
436
|
onMouseEnter: () => M(C),
|
|
437
437
|
onMouseLeave: () => G()
|
|
438
438
|
},
|
|
@@ -453,11 +453,11 @@ const Ce = ({ amount: t, copy: s, trendValue: i }) => {
|
|
|
453
453
|
{
|
|
454
454
|
ariaLabelClose: "Close",
|
|
455
455
|
isOpen: W,
|
|
456
|
-
onClose: () =>
|
|
456
|
+
onClose: () => y(!1),
|
|
457
457
|
shouldShowHeaderBorders: !1,
|
|
458
458
|
shouldShowHeaderShadow: !0,
|
|
459
459
|
title: t.gains_and_losses,
|
|
460
|
-
children: a && /* @__PURE__ */ e(
|
|
460
|
+
children: a && /* @__PURE__ */ e(Ie, { ...a })
|
|
461
461
|
}
|
|
462
462
|
),
|
|
463
463
|
/* @__PURE__ */ e(
|
|
@@ -465,7 +465,7 @@ const Ce = ({ amount: t, copy: s, trendValue: i }) => {
|
|
|
465
465
|
{
|
|
466
466
|
ariaLabelClose: "Close",
|
|
467
467
|
isOpen: w,
|
|
468
|
-
onClose: () =>
|
|
468
|
+
onClose: () => L(!1),
|
|
469
469
|
shouldShowHeaderBorders: !1,
|
|
470
470
|
shouldShowHeaderShadow: !0,
|
|
471
471
|
title: t.assets_and_liabilities,
|
|
@@ -477,7 +477,7 @@ const Ce = ({ amount: t, copy: s, trendValue: i }) => {
|
|
|
477
477
|
const { net_worth: i } = E(), n = H(), a = t || s, o = ae(se(a.x), "MMMM");
|
|
478
478
|
return /* @__PURE__ */ r(m, { alignItems: "center", direction: "column", m: 24, children: [
|
|
479
479
|
/* @__PURE__ */ e(d, { color: n.palette.secondary.main, variant: "body2", children: `${o} ${i.net_worth}` }),
|
|
480
|
-
/* @__PURE__ */ e(
|
|
480
|
+
/* @__PURE__ */ e(f, { amount: a.y, variant: "h2" }),
|
|
481
481
|
/* @__PURE__ */ e(B, { currencyLabel: i.this_month, netWorth: a, theme: n })
|
|
482
482
|
] });
|
|
483
483
|
}, Ae = _(Me), yt = _(({ onBackClick: t, onMenuClick: s }) => {
|
|
@@ -486,32 +486,34 @@ const Ce = ({ amount: t, copy: s, trendValue: i }) => {
|
|
|
486
486
|
isNetWorthDataLoaded: c,
|
|
487
487
|
loadNetWorthData: l,
|
|
488
488
|
netWorthChartData: g,
|
|
489
|
-
selectedData:
|
|
490
|
-
setTimeframe: W
|
|
491
|
-
|
|
492
|
-
} = j(), { isMobile: w } = ee(), { onEvent: y } = $(), [k, D] = u.useState(!1);
|
|
489
|
+
selectedData: u,
|
|
490
|
+
setTimeframe: W
|
|
491
|
+
} = j(), { isMobile: y } = ee(), { onEvent: w } = $(), [L, D] = x.useState(!1);
|
|
493
492
|
J({
|
|
494
493
|
widgetName: "NetWorthWidget",
|
|
495
494
|
isLoaded: c
|
|
496
|
-
}),
|
|
497
|
-
c || l().finally(),
|
|
498
|
-
}, [])
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
495
|
+
}), x.useEffect(() => {
|
|
496
|
+
c || l().finally(), w(v.NET_WORTH_VIEW);
|
|
497
|
+
}, []);
|
|
498
|
+
const k = async (p) => {
|
|
499
|
+
const C = p[0], S = p[1];
|
|
500
|
+
C && S && W(ce(S, C));
|
|
501
|
+
}, h = (p) => {
|
|
502
|
+
w(v.NET_WORTH_WIDGET_CLICK_TIMEFRAME, { time_period: p + "M" });
|
|
504
503
|
}, M = () => {
|
|
505
|
-
D(!0),
|
|
504
|
+
D(!0), w(v.ACCOUNTS_CLICK_CONNECT);
|
|
506
505
|
};
|
|
507
506
|
if (!i || !c) return /* @__PURE__ */ e(Q, {});
|
|
508
507
|
const G = g.length === 0;
|
|
509
508
|
return /* @__PURE__ */ r(
|
|
510
509
|
ge,
|
|
511
510
|
{
|
|
512
|
-
calendarActions: {
|
|
513
|
-
|
|
514
|
-
|
|
511
|
+
calendarActions: {
|
|
512
|
+
onRangeChanged: k,
|
|
513
|
+
onTimeframeClick: h
|
|
514
|
+
},
|
|
515
|
+
dateRangeVariant: y ? "timeframetabs" : "timeframebuttons",
|
|
516
|
+
onAccountsFilterClick: () => w(v.NET_WORTH_WIDGET_CLICK_FILTER),
|
|
515
517
|
onBackClick: t,
|
|
516
518
|
onMenuClick: s,
|
|
517
519
|
title: a.net_worth,
|
|
@@ -532,13 +534,13 @@ const Ce = ({ amount: t, copy: s, trendValue: i }) => {
|
|
|
532
534
|
}
|
|
533
535
|
}
|
|
534
536
|
) }) : /* @__PURE__ */ r(N, { children: [
|
|
535
|
-
|
|
537
|
+
u && /* @__PURE__ */ e(Ae, { hoveredData: o, selectedData: u }),
|
|
536
538
|
/* @__PURE__ */ r(
|
|
537
539
|
m,
|
|
538
540
|
{
|
|
539
|
-
alignItems:
|
|
540
|
-
direction:
|
|
541
|
-
spacing:
|
|
541
|
+
alignItems: y ? "center" : "flex-start",
|
|
542
|
+
direction: y ? "column" : "row",
|
|
543
|
+
spacing: y ? 0 : 48,
|
|
542
544
|
children: [
|
|
543
545
|
/* @__PURE__ */ e(we, {}),
|
|
544
546
|
/* @__PURE__ */ e(ke, {})
|
|
@@ -550,7 +552,7 @@ const Ce = ({ amount: t, copy: s, trendValue: i }) => {
|
|
|
550
552
|
le,
|
|
551
553
|
{
|
|
552
554
|
onClose: () => D(!1),
|
|
553
|
-
showConnectionsWidget:
|
|
555
|
+
showConnectionsWidget: L,
|
|
554
556
|
title: n.manage_connections
|
|
555
557
|
}
|
|
556
558
|
)
|