@mx-cartographer/experiences 9.1.4-alpha.al6 → 9.1.4
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 +2 -1
- package/dist/{AccountDetailsDrawer-Dae8eUXt.mjs → AccountDetailsDrawer-Cq4kiiKD.mjs} +10 -10
- package/dist/{AccountDetailsDrawer-Dae8eUXt.mjs.map → AccountDetailsDrawer-Cq4kiiKD.mjs.map} +1 -1
- package/dist/{AccountDetailsHeader-D_UjMD99.mjs → AccountDetailsHeader-BliEZhz7.mjs} +4 -4
- package/dist/{AccountDetailsHeader-D_UjMD99.mjs.map → AccountDetailsHeader-BliEZhz7.mjs.map} +1 -1
- package/dist/{Analytics-fWQ36-fb.mjs → Analytics-CkYXKvco.mjs} +2 -2
- package/dist/{Analytics-fWQ36-fb.mjs.map → Analytics-CkYXKvco.mjs.map} +1 -1
- package/dist/{CategorySelectorDrawer-k8AZYC8I.mjs → CategorySelectorDrawer-NJsFsKP1.mjs} +2 -2
- package/dist/{CategorySelectorDrawer-k8AZYC8I.mjs.map → CategorySelectorDrawer-NJsFsKP1.mjs.map} +1 -1
- package/dist/{Connect-tID_S_5e.mjs → Connect-BH0Pt6zc.mjs} +2 -2
- package/dist/{Connect-tID_S_5e.mjs.map → Connect-BH0Pt6zc.mjs.map} +1 -1
- package/dist/{ConnectCard-DcM6tUOX.mjs → ConnectCard-D7uxoH5Y.mjs} +2 -2
- package/dist/{ConnectCard-DcM6tUOX.mjs.map → ConnectCard-D7uxoH5Y.mjs.map} +1 -1
- package/dist/{ConnectDrawer-BQy4YYuc.mjs → ConnectDrawer-CW4LA3H3.mjs} +3 -3
- package/dist/{ConnectDrawer-BQy4YYuc.mjs.map → ConnectDrawer-CW4LA3H3.mjs.map} +1 -1
- package/dist/{ConnectionsDrawer-C73ASLMj.mjs → ConnectionsDrawer-CZU9ku-k.mjs} +3 -3
- package/dist/{ConnectionsDrawer-C73ASLMj.mjs.map → ConnectionsDrawer-CZU9ku-k.mjs.map} +1 -1
- package/dist/{CurrencyInput-CABYmqBh.mjs → CurrencyInput-DaGEQaLW.mjs} +2 -2
- package/dist/{CurrencyInput-CABYmqBh.mjs.map → CurrencyInput-DaGEQaLW.mjs.map} +1 -1
- package/dist/{EmbeddedCard-BwfkCsUN.mjs → EmbeddedCard-DCOQnTz-.mjs} +3 -3
- package/dist/{EmbeddedCard-BwfkCsUN.mjs.map → EmbeddedCard-DCOQnTz-.mjs.map} +1 -1
- package/dist/{Error-BFJ3BnfS.mjs → Error-Dtw6yxkf.mjs} +2 -2
- package/dist/{Error-BFJ3BnfS.mjs.map → Error-Dtw6yxkf.mjs.map} +1 -1
- package/dist/ErrorBoundary-CsdOcnJ9.mjs +24 -0
- package/dist/ErrorBoundary-CsdOcnJ9.mjs.map +1 -0
- package/dist/{ExportCsvAction-B1257a3M.mjs → ExportCsvAction-C-IisDcv.mjs} +3 -3
- package/dist/{ExportCsvAction-B1257a3M.mjs.map → ExportCsvAction-C-IisDcv.mjs.map} +1 -1
- package/dist/{GlobalAccountFilter-DEEc3Bc5.mjs → GlobalAccountFilter-BhzR5Vb1.mjs} +2 -2
- package/dist/{GlobalAccountFilter-DEEc3Bc5.mjs.map → GlobalAccountFilter-BhzR5Vb1.mjs.map} +1 -1
- package/dist/{GlobalCopyApi-DoJLovk7.mjs → GlobalCopyApi-wcnDUzMV.mjs} +56 -54
- package/dist/GlobalCopyApi-wcnDUzMV.mjs.map +1 -0
- package/dist/{Help-C3rQ0Cyu.mjs → Help-zVZdcmlk.mjs} +3 -3
- package/dist/{Help-C3rQ0Cyu.mjs.map → Help-zVZdcmlk.mjs.map} +1 -1
- package/dist/{LineChart-BxEIZHht.mjs → LineChart-CUfiH86G.mjs} +2 -2
- package/dist/{LineChart-BxEIZHht.mjs.map → LineChart-CUfiH86G.mjs.map} +1 -1
- package/dist/{ListItemAction-GDU5z4BN.mjs → ListItemAction-BqUCLj_w.mjs} +2 -2
- package/dist/{ListItemAction-GDU5z4BN.mjs.map → ListItemAction-BqUCLj_w.mjs.map} +1 -1
- package/dist/{ListItemWrapper-D6b-6m4t.mjs → ListItemWrapper-DRse79Iu.mjs} +2 -2
- package/dist/{ListItemWrapper-D6b-6m4t.mjs.map → ListItemWrapper-DRse79Iu.mjs.map} +1 -1
- package/dist/{ManageIncome-BJWVPAly.mjs → ManageIncome-B_8i71mE.mjs} +32 -32
- package/dist/{ManageIncome-BJWVPAly.mjs.map → ManageIncome-B_8i71mE.mjs.map} +1 -1
- package/dist/{MicroWidgetContainer-IUZQlml1.mjs → MicroWidgetContainer-B2NnKBgW.mjs} +2 -2
- package/dist/{MicroWidgetContainer-IUZQlml1.mjs.map → MicroWidgetContainer-B2NnKBgW.mjs.map} +1 -1
- package/dist/{MiniWidgetContainer-CIswJui8.mjs → MiniWidgetContainer-Bmv_WeUd.mjs} +2 -2
- package/dist/{MiniWidgetContainer-CIswJui8.mjs.map → MiniWidgetContainer-Bmv_WeUd.mjs.map} +1 -1
- package/dist/{NotificationSettings-DltXMrnb.mjs → NotificationSettings-CW7okUrk.mjs} +33 -33
- package/dist/{NotificationSettings-DltXMrnb.mjs.map → NotificationSettings-CW7okUrk.mjs.map} +1 -1
- package/dist/{OriginalBalanceAction-KuJSsZCA.mjs → OriginalBalanceAction-YrvxBYAl.mjs} +4 -4
- package/dist/{OriginalBalanceAction-KuJSsZCA.mjs.map → OriginalBalanceAction-YrvxBYAl.mjs.map} +1 -1
- package/dist/{RecurringSettings-D2Aaqz7d.mjs → RecurringSettings-hs0YUp83.mjs} +3 -3
- package/dist/{RecurringSettings-D2Aaqz7d.mjs.map → RecurringSettings-hs0YUp83.mjs.map} +1 -1
- package/dist/{SpendingLegend-C_dMdqbe.mjs → SpendingLegend-CxvNOg3c.mjs} +2 -2
- package/dist/{SpendingLegend-C_dMdqbe.mjs.map → SpendingLegend-CxvNOg3c.mjs.map} +1 -1
- package/dist/{TransactionDetails-CDZNsKv7.mjs → TransactionDetails-DT-MQqOB.mjs} +5 -5
- package/dist/{TransactionDetails-CDZNsKv7.mjs.map → TransactionDetails-DT-MQqOB.mjs.map} +1 -1
- package/dist/{UserStore-B__9hQOS.mjs → UserStore-_QQpkbw9.mjs} +67 -69
- package/dist/UserStore-_QQpkbw9.mjs.map +1 -0
- package/dist/{ViewMoreMicroCard-CxGhzbRP.mjs → ViewMoreMicroCard-fnwE0hqd.mjs} +4 -4
- package/dist/{ViewMoreMicroCard-CxGhzbRP.mjs.map → ViewMoreMicroCard-fnwE0hqd.mjs.map} +1 -1
- package/dist/{WidgetContainer-5O6N88mr.mjs → WidgetContainer-CjdCY4sj.mjs} +3 -3
- package/dist/{WidgetContainer-5O6N88mr.mjs.map → WidgetContainer-CjdCY4sj.mjs.map} +1 -1
- package/dist/accounts/index.es.js +11 -11
- package/dist/analytics/index.es.js +2 -2
- package/dist/budgets/index.es.js +10 -10
- package/dist/cashflow/index.es.js +70 -70
- package/dist/categories/index.es.js +1 -1
- package/dist/common/components/ErrorBoundary.d.ts +0 -2
- package/dist/common/components/index.d.ts +0 -1
- package/dist/common/context/GlobalDataProvider.d.ts +1 -2
- package/dist/common/context/hooks.d.ts +0 -3
- package/dist/common/context/index.d.ts +1 -1
- package/dist/common/index.es.js +219 -275
- package/dist/common/index.es.js.map +1 -1
- package/dist/core/index.es.js +3 -3
- package/dist/core/stores/GlobalStore.d.ts +2 -4
- package/dist/core/types/Handlers.d.ts +0 -1
- package/dist/core/types/index.d.ts +1 -1
- package/dist/dashboard/index.es.js +4 -4
- package/dist/debts/index.es.js +8 -8
- package/dist/finstrong/index.es.js +12 -12
- package/dist/goals/index.es.js +9 -9
- package/dist/help/index.es.js +4 -4
- package/dist/hooks-97sNJ_lf.mjs +78 -0
- package/dist/hooks-97sNJ_lf.mjs.map +1 -0
- package/dist/insights/index.es.js +4 -4
- package/dist/investments/index.es.js +4 -4
- package/dist/merchants/index.es.js +1 -1
- package/dist/microinsights/index.es.js +1 -1
- package/dist/networth/index.es.js +6 -6
- package/dist/notifications/index.es.js +8 -8
- package/dist/recurringtransactions/index.es.js +38 -38
- package/dist/settings/index.es.js +27 -27
- package/dist/spending/index.es.js +33 -33
- package/dist/spending/index.es.js.map +1 -1
- package/dist/transactions/index.es.js +11 -11
- package/dist/trends/index.es.js +12 -12
- package/dist/{useAccountDisplayName-DHXXCFYZ.mjs → useAccountDisplayName-BsiXA0qf.mjs} +2 -2
- package/dist/{useAccountDisplayName-DHXXCFYZ.mjs.map → useAccountDisplayName-BsiXA0qf.mjs.map} +1 -1
- package/dist/{useInsightsEnabled-B_UpjpE6.mjs → useInsightsEnabled-D5Sdm0TJ.mjs} +2 -2
- package/dist/{useInsightsEnabled-B_UpjpE6.mjs.map → useInsightsEnabled-D5Sdm0TJ.mjs.map} +1 -1
- package/dist/{useWidgetLoadTimer-C0Mr0eRf.mjs → useWidgetLoadTimer-B0tB-yzL.mjs} +2 -2
- package/dist/{useWidgetLoadTimer-C0Mr0eRf.mjs.map → useWidgetLoadTimer-B0tB-yzL.mjs.map} +1 -1
- package/package.json +1 -1
- package/dist/ErrorBoundary-C7BlHx04.mjs +0 -27
- package/dist/ErrorBoundary-C7BlHx04.mjs.map +0 -1
- package/dist/GlobalCopyApi-DoJLovk7.mjs.map +0 -1
- package/dist/UserStore-B__9hQOS.mjs.map +0 -1
- package/dist/common/components/ErrorTestButtons.d.ts +0 -7
- package/dist/hooks-DWOrMnfZ.mjs +0 -83
- package/dist/hooks-DWOrMnfZ.mjs.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es.js","sources":["../../src/core/constants/repeatingTransactions.ts","../../src/common/hooks/usePrevious.tsx","../../src/common/constants/ScheduledPayment.ts","../../src/common/constants/SpendingPlan.ts","../../src/common/components/donuts/MultiSegmentDonut.tsx","../../src/common/components/ErrorTestButtons.tsx","../../src/common/utils/Theme.ts"],"sourcesContent":["export enum RecurrenceTypes {\n Unknown = 0,\n EveryWeek = 1,\n EveryOtherWeek = 2,\n EveryMonth = 3,\n EveryOtherMonth = 4,\n EveryQuarter = 5,\n EveryOtherQuarter = 6,\n EveryYear = 7,\n}\n","import { useEffect, useRef } from 'react'\n\nexport const usePrevious = (value: any) => {\n const ref = useRef(null)\n useEffect(() => {\n ref.current = value\n }, [value])\n return ref.current\n}\nexport default usePrevious\n","import { RecurrenceTypes } from '../../core/constants'\n\nexport const RECURRENCE_COPY = [\n { id: RecurrenceTypes.Unknown, copy: 'frequency_unknown' },\n { id: RecurrenceTypes.EveryWeek, copy: 'frequency_every_week' },\n { id: RecurrenceTypes.EveryOtherWeek, copy: 'frequency_every_other_week' },\n { id: RecurrenceTypes.EveryMonth, copy: 'frequency_every_month' },\n { id: RecurrenceTypes.EveryOtherMonth, copy: 'frequency_every_other_month' },\n { id: RecurrenceTypes.EveryQuarter, copy: 'frequency_every_quarter' },\n { id: RecurrenceTypes.EveryOtherQuarter, copy: 'frequency_every_other_quarter' },\n { id: RecurrenceTypes.EveryYear, copy: 'frequency_every_year' },\n]\n","export const LOADING_STATUS = {\n ERROR: 'ERROR',\n LOADING: 'LOADING',\n SUCCESS: 'SUCCESS',\n}\n","import React from 'react'\nimport { css } from '@mxenabled/cssinjs'\n\nimport { DEFAULT_DONUT_SIZE, DEFAULT_STROKE_WIDTH } from '../../constants'\n\nexport interface Segment {\n percent: number\n color: string\n}\n\nexport interface MultiSegmentDonutProps {\n children: React.ReactNode\n hasGap?: boolean\n segments: Segment[]\n size?: number\n strokeWidth?: number\n}\n\nconst MultiSegmentDonut: React.FC<MultiSegmentDonutProps> = ({\n hasGap = false,\n segments,\n size = DEFAULT_DONUT_SIZE,\n strokeWidth = DEFAULT_STROKE_WIDTH,\n children,\n}) => {\n const styles = getStyles(size)\n\n const radius = (size - strokeWidth) / 2\n const halfSize = size / 2\n\n let offset = -90 - (hasGap ? 1 : 0)\n\n let length = 0\n\n return (\n <div className={`mx-cmn-multi-segment-donut ${styles}`}>\n <svg height={size} width={size}>\n <circle\n cx={halfSize}\n cy={halfSize}\n fill=\"none\"\n r={radius}\n stroke=\"#E4E8EE\"\n strokeWidth={strokeWidth}\n />\n {segments.map((segment, index) => {\n offset += 360 * length + (hasGap ? 1 : 0)\n length = (segment.percent - (hasGap ? 0.3 : 0)) / 100\n\n return (\n <circle\n cx={halfSize}\n cy={halfSize}\n fill=\"none\"\n key={index}\n r={radius}\n stroke={segment.color}\n strokeDasharray={2 * Math.PI * radius}\n strokeDashoffset={2 * Math.PI * radius * (1 - length)}\n strokeWidth={strokeWidth}\n transform={`rotate(${offset}, ${halfSize}, ${halfSize})`}\n />\n )\n })}\n </svg>\n <div className=\"mx-cmn-multi-segment-donut-children\">{children}</div>\n </div>\n )\n}\n\nconst getStyles = (size: number) =>\n css({\n height: size,\n marginTop: `-8px`,\n position: 'relative',\n width: size,\n '& .mx-cmn-multi-segment-donut-children': {\n left: '50%',\n position: 'absolute',\n textAlign: 'center',\n top: '50%',\n transform: 'translate(-50%, -50%)',\n },\n })\n\nexport default MultiSegmentDonut\n","import React from 'react'\nimport { Button, Stack, Typography } from '@mui/material'\n\nimport { useGlobalStore } from '../context/hooks'\n\n/**\n * Temporary component for testing PostHog error capture around UserStore.\n * REMOVE BEFORE MERGING TO PRODUCTION.\n */\n\nconst ErrorTestButtons: React.FC = () => {\n const globalStore = useGlobalStore()\n\n // 1. Simulate getUserFeatures API failure\n const triggerLoadUserFeaturesError = async () => {\n const origApi = globalStore.userStore.api.getUserFeatures\n globalStore.userStore.api.getUserFeatures = async () => {\n throw new Error('ApiGetRequestError: 500 Internal Server Error')\n }\n await globalStore.userStore.loadUserFeatures()\n globalStore.userStore.api.getUserFeatures = origApi\n }\n\n // 2. Simulate updateUser API failure\n const triggerUpdateUserError = async () => {\n const origApi = globalStore.userStore.api.updateUser\n globalStore.userStore.api.updateUser = async () => {\n throw new Error('ApiPutRequestError: 422 Unprocessable Entity')\n }\n await globalStore.userStore.updateUser({} as any)\n globalStore.userStore.api.updateUser = origApi\n }\n\n // 3. Simulate updateUserProfile API failure\n const triggerUpdateUserProfileError = async () => {\n const origApi = globalStore.userStore.api.updateUserProfile\n globalStore.userStore.api.updateUserProfile = async () => {\n throw new Error('ApiPutRequestError: 500 Internal Server Error')\n }\n await globalStore.userStore.updateUserProfile({ guid: 'test' } as any)\n globalStore.userStore.api.updateUserProfile = origApi\n }\n\n // 4. Direct captureException call\n const triggerDirectCapture = () => {\n globalStore.captureException(\n new Error('[ErrorTest] Direct captureException call'),\n { store: 'ErrorTestButtons' },\n )\n }\n\n // 5. TypeError\n const triggerTypeError = () => {\n try {\n const obj: any = null\n obj.nonExistentMethod()\n } catch (e) {\n globalStore.captureException(e, { store: 'ErrorTestButtons' })\n }\n }\n\n // 6. Unhandled promise rejection\n const triggerUnhandledRejection = () => {\n Promise.reject(new Error('[ErrorTest] Unhandled promise rejection'))\n }\n\n // 7. Network error (simulates failed fetch)\n const triggerNetworkError = async () => {\n try {\n await fetch('https://localhost:1/nonexistent')\n } catch (e) {\n globalStore.captureException(e, { store: 'ErrorTestButtons' })\n }\n }\n\n // 8. DOMException\n const triggerDOMException = () => {\n try {\n document.querySelector('')\n } catch (e) {\n globalStore.captureException(e, { store: 'ErrorTestButtons' })\n }\n }\n\n return (\n <Stack spacing={1} sx={{ p: 2, border: '2px dashed red', borderRadius: 2, m: 2 }}>\n <Typography variant=\"subtitle2\" color=\"error\">\n ⚠️ Error Test Panel — REMOVE BEFORE PROD\n </Typography>\n <Button variant=\"outlined\" color=\"warning\" size=\"small\" onClick={triggerLoadUserFeaturesError}>\n 1. UserStore.loadUserFeatures failure\n </Button>\n <Button variant=\"outlined\" color=\"warning\" size=\"small\" onClick={triggerUpdateUserError}>\n 2. UserStore.updateUser failure\n </Button>\n <Button variant=\"outlined\" color=\"warning\" size=\"small\" onClick={triggerUpdateUserProfileError}>\n 3. UserStore.updateUserProfile failure\n </Button>\n <Button variant=\"outlined\" color=\"warning\" size=\"small\" onClick={triggerDirectCapture}>\n 4. Direct captureException\n </Button>\n <Button variant=\"outlined\" color=\"error\" size=\"small\" onClick={triggerTypeError}>\n 5. TypeError (null reference)\n </Button>\n <Button variant=\"outlined\" color=\"warning\" size=\"small\" onClick={triggerUnhandledRejection}>\n 6. Unhandled promise rejection\n </Button>\n <Button variant=\"outlined\" color=\"warning\" size=\"small\" onClick={triggerNetworkError}>\n 7. Network error (failed fetch)\n </Button>\n <Button variant=\"outlined\" color=\"error\" size=\"small\" onClick={triggerDOMException}>\n 8. DOMException\n </Button>\n </Stack>\n )\n}\n\nexport default ErrorTestButtons\n","import { alpha, darken, lighten, PaletteColor, PaletteMode, Theme } from '@mui/material'\n\nimport type { ClientStyleProfile } from '../../core'\nimport { ClientConfig } from '../../core/types/AppData'\n\nconst TYPOGRAPHY_VARIANTS = [\n 'fontFamily',\n 'h1',\n 'h2',\n 'h3',\n 'body1',\n 'body2',\n 'button',\n 'caption',\n 'subtitle1',\n 'subtitle2',\n 'tiny',\n] as const\n\nconst PALETTE_CONFIG = [\n { key: 'primary', light: 'primary_color', dark: 'primary_color_dark' },\n { key: 'secondary', light: 'neutral_color', dark: 'neutral_color_dark' },\n { key: 'error', light: 'error_color', dark: 'error_color_dark' },\n { key: 'warning', light: 'warning_color', dark: 'warning_color_dark' },\n { key: 'info', light: 'info_color', dark: 'info_color_dark' },\n { key: 'success', light: 'success_color', dark: 'success_color_dark' },\n] as const\n\nexport const getClientPaletteOptions = (\n clientStyleProfile: ClientStyleProfile,\n mode: PaletteMode,\n): Record<string, string> => {\n const isDark = mode === 'dark'\n const options: Record<string, string> = {}\n\n for (const { key, light, dark } of PALETTE_CONFIG) {\n const color = clientStyleProfile?.[isDark ? dark : light] as string | undefined\n if (color) options[key] = color\n }\n\n return options\n}\n\nexport const getClientTheme = (\n theme: Theme,\n clientStyleProfile: ClientStyleProfile,\n clientConfig?: ClientConfig,\n) => {\n const isDark = theme.palette.mode === 'dark'\n const font =\n (clientConfig?.master?.style?.font_name || clientStyleProfile?.system_font) ??\n theme.typography.fontFamily\n\n const generatePalette = (color: string | undefined, defaultColor: PaletteColor) =>\n color\n ? {\n lighter: lighten(color, 0.5),\n light: lighten(color, 0.25),\n main: color,\n dark: darken(color, 0.25),\n darker: darken(color, 0.5),\n }\n : defaultColor\n\n const palette = Object.fromEntries(\n PALETTE_CONFIG.map(({ key, light, dark }) => [\n key,\n generatePalette(\n clientStyleProfile?.[isDark ? dark : light] as string | undefined,\n theme.palette[key],\n ),\n ]),\n )\n\n const typography = Object.fromEntries(\n TYPOGRAPHY_VARIANTS.map((variant) => [\n variant,\n variant === 'fontFamily' ? font : { fontFamily: font },\n ]),\n )\n\n const baseComponents = {\n MuiTabs: {\n styleOverrides: {\n indicator: { backgroundColor: palette.primary.light },\n },\n },\n MuiPickersCalendarHeader: {\n styleOverrides: {\n switchViewButton: {\n color: palette.primary.lighter,\n '&:hover': { backgroundColor: alpha(palette.primary.light, 0.1) },\n },\n },\n },\n }\n\n const buttonRadius = clientStyleProfile?.button_corner_radius\n const cardRadius = clientStyleProfile?.card_corner_radius\n\n const components = {\n ...baseComponents,\n ...(buttonRadius && {\n MuiButton: {\n styleOverrides: {\n root: { borderRadius: `${buttonRadius}px`, textTransform: 'none' },\n },\n },\n MuiIconButton: {\n styleOverrides: {\n root: {\n borderRadius: `${buttonRadius}px`,\n minWidth: buttonRadius,\n minHeight: buttonRadius,\n },\n },\n },\n MuiToggleButton: {\n styleOverrides: {\n root: { borderRadius: `${buttonRadius}px`, textTransform: 'none' },\n },\n },\n }),\n ...(cardRadius && {\n MuiCard: {\n styleOverrides: { root: { borderRadius: `${cardRadius}px` } },\n },\n }),\n ...(cardRadius && {\n MuiPaper: {\n styleOverrides: {\n rounded: { borderRadius: `${cardRadius}px` },\n },\n },\n }),\n }\n\n return { typography, palette, components }\n}\n"],"names":["RecurrenceTypes","usePrevious","value","ref","useRef","useEffect","RECURRENCE_COPY","LOADING_STATUS","MultiSegmentDonut","hasGap","segments","size","DEFAULT_DONUT_SIZE","strokeWidth","DEFAULT_STROKE_WIDTH","children","styles","getStyles","radius","halfSize","offset","length","jsxs","jsx","segment","index","css","ErrorTestButtons","globalStore","useGlobalStore","Stack","Typography","Button","origApi","TYPOGRAPHY_VARIANTS","PALETTE_CONFIG","getClientPaletteOptions","clientStyleProfile","mode","isDark","options","key","light","dark","color","getClientTheme","theme","clientConfig","font","generatePalette","defaultColor","lighten","darken","palette","typography","variant","baseComponents","alpha","buttonRadius","cardRadius","components"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAO,IAAKA,sBAAAA,OACVA,EAAAA,EAAA,UAAU,CAAA,IAAV,WACAA,EAAAA,EAAA,YAAY,CAAA,IAAZ,aACAA,EAAAA,EAAA,iBAAiB,CAAA,IAAjB,kBACAA,EAAAA,EAAA,aAAa,CAAA,IAAb,cACAA,EAAAA,EAAA,kBAAkB,CAAA,IAAlB,mBACAA,EAAAA,EAAA,eAAe,CAAA,IAAf,gBACAA,EAAAA,EAAA,oBAAoB,CAAA,IAApB,qBACAA,EAAAA,EAAA,YAAY,CAAA,IAAZ,aARUA,IAAAA,KAAA,CAAA,CAAA;ACEL,MAAMC,IAAc,CAACC,MAAe;AACzC,QAAMC,IAAMC,EAAO,IAAI;AACvB,SAAAC,EAAU,MAAM;AACd,IAAAF,EAAI,UAAUD;AAAA,EAChB,GAAG,CAACA,CAAK,CAAC,GACHC,EAAI;AACb,GCNaG,IAAkB;AAAA,EAC7B,EAAE,IAAIN,EAAgB,SAAS,MAAM,oBAAA;AAAA,EACrC,EAAE,IAAIA,EAAgB,WAAW,MAAM,uBAAA;AAAA,EACvC,EAAE,IAAIA,EAAgB,gBAAgB,MAAM,6BAAA;AAAA,EAC5C,EAAE,IAAIA,EAAgB,YAAY,MAAM,wBAAA;AAAA,EACxC,EAAE,IAAIA,EAAgB,iBAAiB,MAAM,8BAAA;AAAA,EAC7C,EAAE,IAAIA,EAAgB,cAAc,MAAM,0BAAA;AAAA,EAC1C,EAAE,IAAIA,EAAgB,mBAAmB,MAAM,gCAAA;AAA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e;AAAA,QACb,gBAAgB;AAAA,UACd,MAAM;AAAA,YACJ,cAAc,GAAGA,CAAY;AAAA,YAC7B,UAAUA;AAAA,YACV,WAAWA;AAAA,UAAA;AAAA,QACb;AAAA,MACF;AAAA,MAEF,iBAAiB;AAAA,QACf,gBAAgB;AAAA,UACd,MAAM,EAAE,cAAc,GAAGA,CAAY,MAAM,eAAe,OAAA;AAAA,QAAO;AAAA,MACnE;AAAA,IACF;AAAA,IAEF,GAAIC,KAAc;AAAA,MAChB,SAAS;AAAA,QACP,gBAAgB,EAAE,MAAM,EAAE,cAAc,GAAGA,CAAU,OAAK;AAAA,MAAE;AAAA,IAC9D;AAAA,IAEF,GAAIA,KAAc;AAAA,MAChB,UAAU;AAAA,QACR,gBAAgB;AAAA,UACd,SAAS,EAAE,cAAc,GAAGA,CAAU,KAAA;AAAA,QAAK;AAAA,MAC7C;AAAA,IACF;AAAA,EACF;AAGF,SAAO,EAAE,YAAAL,GAAY,SAAAD,GAAS,YAAAO,EAAA;AAChC;"}
|
|
1
|
+
{"version":3,"file":"index.es.js","sources":["../../src/core/constants/repeatingTransactions.ts","../../src/common/hooks/usePrevious.tsx","../../src/common/constants/ScheduledPayment.ts","../../src/common/constants/SpendingPlan.ts","../../src/common/components/donuts/MultiSegmentDonut.tsx","../../src/common/utils/Theme.ts"],"sourcesContent":["export enum RecurrenceTypes {\n Unknown = 0,\n EveryWeek = 1,\n EveryOtherWeek = 2,\n EveryMonth = 3,\n EveryOtherMonth = 4,\n EveryQuarter = 5,\n EveryOtherQuarter = 6,\n EveryYear = 7,\n}\n","import { useEffect, useRef } from 'react'\n\nexport const usePrevious = (value: any) => {\n const ref = useRef(null)\n useEffect(() => {\n ref.current = value\n }, [value])\n return ref.current\n}\nexport default usePrevious\n","import { RecurrenceTypes } from '../../core/constants'\n\nexport const RECURRENCE_COPY = [\n { id: RecurrenceTypes.Unknown, copy: 'frequency_unknown' },\n { id: RecurrenceTypes.EveryWeek, copy: 'frequency_every_week' },\n { id: RecurrenceTypes.EveryOtherWeek, copy: 'frequency_every_other_week' },\n { id: RecurrenceTypes.EveryMonth, copy: 'frequency_every_month' },\n { id: RecurrenceTypes.EveryOtherMonth, copy: 'frequency_every_other_month' },\n { id: RecurrenceTypes.EveryQuarter, copy: 'frequency_every_quarter' },\n { id: RecurrenceTypes.EveryOtherQuarter, copy: 'frequency_every_other_quarter' },\n { id: RecurrenceTypes.EveryYear, copy: 'frequency_every_year' },\n]\n","export const LOADING_STATUS = {\n ERROR: 'ERROR',\n LOADING: 'LOADING',\n SUCCESS: 'SUCCESS',\n}\n","import React from 'react'\nimport { css } from '@mxenabled/cssinjs'\n\nimport { DEFAULT_DONUT_SIZE, DEFAULT_STROKE_WIDTH } from '../../constants'\n\nexport interface Segment {\n percent: number\n color: string\n}\n\nexport interface MultiSegmentDonutProps {\n children: React.ReactNode\n hasGap?: boolean\n segments: Segment[]\n size?: number\n strokeWidth?: number\n}\n\nconst MultiSegmentDonut: React.FC<MultiSegmentDonutProps> = ({\n hasGap = false,\n segments,\n size = DEFAULT_DONUT_SIZE,\n strokeWidth = DEFAULT_STROKE_WIDTH,\n children,\n}) => {\n const styles = getStyles(size)\n\n const radius = (size - strokeWidth) / 2\n const halfSize = size / 2\n\n let offset = -90 - (hasGap ? 1 : 0)\n\n let length = 0\n\n return (\n <div className={`mx-cmn-multi-segment-donut ${styles}`}>\n <svg height={size} width={size}>\n <circle\n cx={halfSize}\n cy={halfSize}\n fill=\"none\"\n r={radius}\n stroke=\"#E4E8EE\"\n strokeWidth={strokeWidth}\n />\n {segments.map((segment, index) => {\n offset += 360 * length + (hasGap ? 1 : 0)\n length = (segment.percent - (hasGap ? 0.3 : 0)) / 100\n\n return (\n <circle\n cx={halfSize}\n cy={halfSize}\n fill=\"none\"\n key={index}\n r={radius}\n stroke={segment.color}\n strokeDasharray={2 * Math.PI * radius}\n strokeDashoffset={2 * Math.PI * radius * (1 - length)}\n strokeWidth={strokeWidth}\n transform={`rotate(${offset}, ${halfSize}, ${halfSize})`}\n />\n )\n })}\n </svg>\n <div className=\"mx-cmn-multi-segment-donut-children\">{children}</div>\n </div>\n )\n}\n\nconst getStyles = (size: number) =>\n css({\n height: size,\n marginTop: `-8px`,\n position: 'relative',\n width: size,\n '& .mx-cmn-multi-segment-donut-children': {\n left: '50%',\n position: 'absolute',\n textAlign: 'center',\n top: '50%',\n transform: 'translate(-50%, -50%)',\n },\n })\n\nexport default MultiSegmentDonut\n","import { alpha, darken, lighten, PaletteColor, PaletteMode, Theme } from '@mui/material'\n\nimport type { ClientStyleProfile } from '../../core'\nimport { ClientConfig } from '../../core/types/AppData'\n\nconst TYPOGRAPHY_VARIANTS = [\n 'fontFamily',\n 'h1',\n 'h2',\n 'h3',\n 'body1',\n 'body2',\n 'button',\n 'caption',\n 'subtitle1',\n 'subtitle2',\n 'tiny',\n] as const\n\nconst PALETTE_CONFIG = [\n { key: 'primary', light: 'primary_color', dark: 'primary_color_dark' },\n { key: 'secondary', light: 'neutral_color', dark: 'neutral_color_dark' },\n { key: 'error', light: 'error_color', dark: 'error_color_dark' },\n { key: 'warning', light: 'warning_color', dark: 'warning_color_dark' },\n { key: 'info', light: 'info_color', dark: 'info_color_dark' },\n { key: 'success', light: 'success_color', dark: 'success_color_dark' },\n] as const\n\nexport const getClientPaletteOptions = (\n clientStyleProfile: ClientStyleProfile,\n mode: PaletteMode,\n): Record<string, string> => {\n const isDark = mode === 'dark'\n const options: Record<string, string> = {}\n\n for (const { key, light, dark } of PALETTE_CONFIG) {\n const color = clientStyleProfile?.[isDark ? dark : light] as string | undefined\n if (color) options[key] = color\n }\n\n return options\n}\n\nexport const getClientTheme = (\n theme: Theme,\n clientStyleProfile: ClientStyleProfile,\n clientConfig?: ClientConfig,\n) => {\n const isDark = theme.palette.mode === 'dark'\n const font =\n (clientConfig?.master?.style?.font_name || clientStyleProfile?.system_font) ??\n theme.typography.fontFamily\n\n const generatePalette = (color: string | undefined, defaultColor: PaletteColor) =>\n color\n ? {\n lighter: lighten(color, 0.5),\n light: lighten(color, 0.25),\n main: color,\n dark: darken(color, 0.25),\n darker: darken(color, 0.5),\n }\n : defaultColor\n\n const palette = Object.fromEntries(\n PALETTE_CONFIG.map(({ key, light, dark }) => [\n key,\n generatePalette(\n clientStyleProfile?.[isDark ? dark : light] as string | undefined,\n theme.palette[key],\n ),\n ]),\n )\n\n const typography = Object.fromEntries(\n TYPOGRAPHY_VARIANTS.map((variant) => [\n variant,\n variant === 'fontFamily' ? font : { fontFamily: font },\n ]),\n )\n\n const baseComponents = {\n MuiTabs: {\n styleOverrides: {\n indicator: { backgroundColor: palette.primary.light },\n },\n },\n MuiPickersCalendarHeader: {\n styleOverrides: {\n switchViewButton: {\n color: palette.primary.lighter,\n '&:hover': { backgroundColor: alpha(palette.primary.light, 0.1) },\n },\n },\n },\n }\n\n const buttonRadius = clientStyleProfile?.button_corner_radius\n const cardRadius = clientStyleProfile?.card_corner_radius\n\n const components = {\n ...baseComponents,\n ...(buttonRadius && {\n MuiButton: {\n styleOverrides: {\n root: { borderRadius: `${buttonRadius}px`, textTransform: 'none' },\n },\n },\n MuiIconButton: {\n styleOverrides: {\n root: {\n borderRadius: `${buttonRadius}px`,\n minWidth: buttonRadius,\n minHeight: buttonRadius,\n },\n },\n },\n MuiToggleButton: {\n styleOverrides: {\n root: { borderRadius: `${buttonRadius}px`, textTransform: 'none' },\n },\n },\n }),\n ...(cardRadius && {\n MuiCard: {\n styleOverrides: { root: { borderRadius: `${cardRadius}px` } },\n },\n }),\n ...(cardRadius && {\n MuiPaper: {\n styleOverrides: {\n rounded: { borderRadius: `${cardRadius}px` },\n },\n },\n }),\n }\n\n return { typography, palette, components }\n}\n"],"names":["RecurrenceTypes","usePrevious","value","ref","useRef","useEffect","RECURRENCE_COPY","LOADING_STATUS","MultiSegmentDonut","hasGap","segments","size","DEFAULT_DONUT_SIZE","strokeWidth","DEFAULT_STROKE_WIDTH","children","styles","getStyles","radius","halfSize","offset","length","jsxs","jsx","segment","index","css","TYPOGRAPHY_VARIANTS","PALETTE_CONFIG","getClientPaletteOptions","clientStyleProfile","mode","isDark","options","key","light","dark","color","getClientTheme","theme","clientConfig","font","generatePalette","defaultColor","lighten","darken","palette","typography","variant","baseComponents","alpha","buttonRadius","cardRadius","components"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAO,IAAKA,sBAAAA,OACVA,EAAAA,EAAA,UAAU,CAAA,IAAV,WACAA,EAAAA,EAAA,YAAY,CAAA,IAAZ,aACAA,EAAAA,EAAA,iBAAiB,CAAA,IAAjB,kBACAA,EAAAA,EAAA,aAAa,CAAA,IAAb,cACAA,EAAAA,EAAA,kBAAkB,CAAA,IAAlB,mBACAA,EAAAA,EAAA,eAAe,CAAA,IAAf,gBACAA,EAAAA,EAAA,oBAAoB,CAAA,IAApB,qBACAA,EAAAA,EAAA,YAAY,CAAA,IAAZ,aARUA,IAAAA,KAAA,CAAA,CAAA;ACEL,MAAMC,IAAc,CAACC,MAAe;AACzC,QAAMC,IAAMC,EAAO,IAAI;AACvB,SAAAC,EAAU,MAAM;AACd,IAAAF,EAAI,UAAUD;AAAA,EAChB,GAAG,CAACA,CAAK,CAAC,GACHC,EAAI;AACb,GCNaG,IAAkB;AAAA,EAC7B,EAAE,IAAIN,EAAgB,SAAS,MAAM,oBAAA;AAAA,EACrC,EAAE,IAAIA,EAAgB,WAAW,MAAM,uBAAA;AAAA,EACvC,EAAE,IAAIA,EAAgB,gBAAgB,MAAM,6BAAA;AAAA,EAC5C,EAAE,IAAIA,EAAgB,YAAY,MAAM,wBAAA;AAAA,EACxC,EAAE,IAAIA,EAAgB,iBAAiB,MAAM,8BAAA;AAAA,EAC7C,EAAE,IAAIA,EAAgB,cAAc,MAAM,0BAAA;AAAA,EAC1C,EAAE,IAAIA,EAAgB,mBAAmB,MAAM,gCAAA;AAAA,EAC/C,EAAE,IAAIA,EAAgB,WAAW,MAAM,uBAAA;AACzC,GCXaO,IAAiB;AAAA,EAC5B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YAC7B,UAAUA;AAAA,YACV,WAAWA;AAAA,UAAA;AAAA,QACb;AAAA,MACF;AAAA,MAEF,iBAAiB;AAAA,QACf,gBAAgB;AAAA,UACd,MAAM,EAAE,cAAc,GAAGA,CAAY,MAAM,eAAe,OAAA;AAAA,QAAO;AAAA,MACnE;AAAA,IACF;AAAA,IAEF,GAAIC,KAAc;AAAA,MAChB,SAAS;AAAA,QACP,gBAAgB,EAAE,MAAM,EAAE,cAAc,GAAGA,CAAU,OAAK;AAAA,MAAE;AAAA,IAC9D;AAAA,IAEF,GAAIA,KAAc;AAAA,MAChB,UAAU;AAAA,QACR,gBAAgB;AAAA,UACd,SAAS,EAAE,cAAc,GAAGA,CAAU,KAAA;AAAA,QAAK;AAAA,MAC7C;AAAA,IACF;AAAA,EACF;AAGF,SAAO,EAAE,YAAAL,GAAY,SAAAD,GAAS,YAAAO,EAAA;AAChC;"}
|
package/dist/core/index.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { A as g, a as m, b as C, c as N, d as h, B as f, e as E, f as D, g as b, C as I, h as M, i as R, j as B, D as L, F as G, k as _, G as H, l as P, m as U, n as x, o as O, H as F, p as k, q as v, r as w, M as W, s as Y, N as $, t as q, u as K, R as j, v as z, S as J, w as Q, T as X, x as Z, y as V, U as tt, z as at, W as st } from "../UserStore-
|
|
1
|
+
import { A as g, a as m, b as C, c as N, d as h, B as f, e as E, f as D, g as b, C as I, h as M, i as R, j as B, D as L, F as G, k as _, G as H, l as P, m as U, n as x, o as O, H as F, p as k, q as v, r as w, M as W, s as Y, N as $, t as q, u as K, R as j, v as z, S as J, w as Q, T as X, x as Z, y as V, U as tt, z as at, W as st } from "../UserStore-_QQpkbw9.mjs";
|
|
2
2
|
import { b as ot, a as nt, d as rt, c as it, A as ct, C as pt, e as At, E as St, M as ut, N as lt, P as Tt, f as yt, g as dt, S as gt } from "../Account-DR7Plrqy.mjs";
|
|
3
3
|
import { A as Ct, B as Nt, I as ht, N as ft } from "../Notification-DTNYSd8P.mjs";
|
|
4
|
-
import { F as n } from "../GlobalCopyApi-
|
|
5
|
-
import { A as Dt, B as bt, G as It } from "../GlobalCopyApi-
|
|
4
|
+
import { F as n } from "../GlobalCopyApi-wcnDUzMV.mjs";
|
|
5
|
+
import { A as Dt, B as bt, G as It } from "../GlobalCopyApi-wcnDUzMV.mjs";
|
|
6
6
|
import { F as Rt, a as Bt, b as Lt, R as Gt } from "../RecurringTransactionsUtil-CHWmqvW5.mjs";
|
|
7
7
|
import { G as Ht, M as Pt, T as Ut } from "../GoalsUtil-C9EnLWvC.mjs";
|
|
8
8
|
import { L as Ot, V as Ft, b as kt, g as vt } from "../Localization-DnoVyBNK.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AccountStore, AnalyticsStore, AppDataStore, BeatStore, BudgetsStore, CashflowStore, CategoryStore, ConnectStore, DebtsStore, FinstrongStore, GlobalCopyStore, GlobalUiStore, GoalStore, HelpStore, HoldingStore, MerchantStore, NetWorthStore, NotificationStore, RecurringTransactionsStore, SettingsStore, TransactionStore, TrendsStore, UserStore } from '../stores';
|
|
2
|
-
import { Account, Category, Institution, Member, AppConfig, AppData, Beat,
|
|
2
|
+
import { Account, Category, Institution, Member, AppConfig, AppData, Beat, GlobalErrorHandler, MerchantBudget, Tag, Tagging, Transaction, TransactionRule, UserFeature } from '../types';
|
|
3
3
|
interface LoadDataProps {
|
|
4
4
|
accounts?: Account[];
|
|
5
5
|
appData?: AppData;
|
|
@@ -22,7 +22,6 @@ export declare class GlobalStore {
|
|
|
22
22
|
appConfig: AppConfig;
|
|
23
23
|
endpoint: string;
|
|
24
24
|
sessionToken: string;
|
|
25
|
-
onCaptureException?: GlobalCaptureException;
|
|
26
25
|
onError?: GlobalErrorHandler;
|
|
27
26
|
onStoreUpdate?: OnStoreUpdate;
|
|
28
27
|
accountStore: AccountStore;
|
|
@@ -48,9 +47,8 @@ export declare class GlobalStore {
|
|
|
48
47
|
trendsStore: TrendsStore;
|
|
49
48
|
userStore: UserStore;
|
|
50
49
|
globalUiStore: GlobalUiStore;
|
|
51
|
-
constructor(appConfig?: AppConfig, endpoint?: string, onError?: GlobalErrorHandler, onStoreUpdate?: OnStoreUpdate
|
|
50
|
+
constructor(appConfig?: AppConfig, endpoint?: string, onError?: GlobalErrorHandler, onStoreUpdate?: OnStoreUpdate);
|
|
52
51
|
get isInitialized(): boolean;
|
|
53
|
-
captureException: (error: unknown, context?: Record<string, string>) => void;
|
|
54
52
|
emitUpdate: (change: ObservedUpdate) => void;
|
|
55
53
|
loadConfigData: () => Promise<void>;
|
|
56
54
|
loadData: ({ accounts, appData, associatedBeats, categories, institutions, transactionRules, transactions, userFeatures, merchantBudgets, }?: LoadDataProps) => Promise<void>;
|
|
@@ -15,7 +15,7 @@ export type { DynamicCopyElement, GlobalCopy } from './GlobalCopy';
|
|
|
15
15
|
export { GoalType, MetaType, TrackType } from './Goal';
|
|
16
16
|
export type { Goal, MonthlyCashFlowProfile, RetirementGoalAccount } from './Goal';
|
|
17
17
|
export type { Debt } from './Debt';
|
|
18
|
-
export type {
|
|
18
|
+
export type { GlobalErrorHandler, GlobalEventHandler } from './Handlers';
|
|
19
19
|
export type { HealthScore, HealthScoreReport, MonthlyHealthScore, MonthlySummaries, SpendingFeeTransaction, AllTransactions, } from './Finstrong';
|
|
20
20
|
export type { HelpAlertProps, HelpCategory, HelpContentProps, HelpTopic, HelpType, ImageContentProps, InstitutionData, NoImageContentProps, SectionProps, SelectedTopic, Ticket, } from './Help';
|
|
21
21
|
export type { Institution } from './Institution';
|
|
@@ -5,7 +5,7 @@ import u from "@mui/material/Grid";
|
|
|
5
5
|
import m from "@mui/material/Skeleton";
|
|
6
6
|
import s from "@mui/material/Stack";
|
|
7
7
|
import { useTheme as S } from "@mui/material/styles";
|
|
8
|
-
import { e as w, u as b, i as v } from "../hooks-
|
|
8
|
+
import { e as w, u as b, i as v } from "../hooks-97sNJ_lf.mjs";
|
|
9
9
|
import C from "@mui/material/Paper";
|
|
10
10
|
import { Icon as _, H2 as M, P as D } from "@mxenabled/mxui";
|
|
11
11
|
import { useMediaQuery as G } from "@mui/system";
|
|
@@ -14,10 +14,10 @@ import W from "@mui/material/Button";
|
|
|
14
14
|
import k from "@mui/material/IconButton";
|
|
15
15
|
import A from "@mui/material/Tooltip";
|
|
16
16
|
import I from "@mui/material/useMediaQuery";
|
|
17
|
-
import { G as B } from "../GlobalAccountFilter-
|
|
17
|
+
import { G as B } from "../GlobalAccountFilter-BhzR5Vb1.mjs";
|
|
18
18
|
import { u as y } from "../useScreenSize-mWpmnh5w.mjs";
|
|
19
|
-
import { C as F } from "../ConnectDrawer-
|
|
20
|
-
import { u as R } from "../useWidgetLoadTimer-
|
|
19
|
+
import { C as F } from "../ConnectDrawer-CW4LA3H3.mjs";
|
|
20
|
+
import { u as R } from "../useWidgetLoadTimer-B0tB-yzL.mjs";
|
|
21
21
|
const T = p(() => {
|
|
22
22
|
const t = S(), {
|
|
23
23
|
appDataStore: { banner: r, loadBanner: i, user: a }
|
package/dist/debts/index.es.js
CHANGED
|
@@ -8,11 +8,11 @@ import { intervalToDuration as Re, formatDuration as Le } from "date-fns";
|
|
|
8
8
|
import { s as Fe, D as $, t as $e, b as Oe } from "../DebtUtils-i4pI2Uoe.mjs";
|
|
9
9
|
import { f as I, a as We } from "../NumberFormatting--XMeeBfr.mjs";
|
|
10
10
|
import { f as J, D as Q } from "../DateFormats-HudZ3Bjs.mjs";
|
|
11
|
-
import { G as Ge,
|
|
11
|
+
import { G as Ge, q as ee, u as w, k as V, f as k, c as te, i as He, a as ze } from "../hooks-97sNJ_lf.mjs";
|
|
12
12
|
import { u as ae } from "../useScreenSize-mWpmnh5w.mjs";
|
|
13
13
|
import { b as T } from "../Localization-DnoVyBNK.mjs";
|
|
14
14
|
import { D as ie } from "../Drawer-DsnW2o0v.mjs";
|
|
15
|
-
import { A as je, u as Ve } from "../AccountDetailsHeader-
|
|
15
|
+
import { A as je, u as Ve } from "../AccountDetailsHeader-BliEZhz7.mjs";
|
|
16
16
|
import Ye from "@mui/material/Card";
|
|
17
17
|
import Ke from "@mui/material/CardContent";
|
|
18
18
|
import Ue from "@mui/material/CardHeader";
|
|
@@ -24,10 +24,10 @@ import be from "@mui/material/Tab";
|
|
|
24
24
|
import Ze from "@mui/material/Tabs";
|
|
25
25
|
import we from "@mui/material/List";
|
|
26
26
|
import G from "@mui/material/Divider";
|
|
27
|
-
import { M as Je, I as Qe, O as et } from "../OriginalBalanceAction-
|
|
27
|
+
import { M as Je, I as Qe, O as et } from "../OriginalBalanceAction-YrvxBYAl.mjs";
|
|
28
28
|
import tt from "@mui/material/TextField";
|
|
29
|
-
import { L as re } from "../ListItemAction-
|
|
30
|
-
import { C as se } from "../CurrencyInput-
|
|
29
|
+
import { L as re } from "../ListItemAction-BqUCLj_w.mjs";
|
|
30
|
+
import { C as se } from "../CurrencyInput-DaGEQaLW.mjs";
|
|
31
31
|
import me from "@mui/material/Alert";
|
|
32
32
|
import _e from "@mui/material/AlertTitle";
|
|
33
33
|
import ye from "@mui/material/Paper";
|
|
@@ -40,11 +40,11 @@ import ve from "@mui/material/Button";
|
|
|
40
40
|
import at from "@mui/material/IconButton";
|
|
41
41
|
import it from "@mui/material/ListItem";
|
|
42
42
|
import lt from "@mui/material/Popover";
|
|
43
|
-
import { u as st } from "../useWidgetLoadTimer-
|
|
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
|
-
import { C as ut } from "../ConnectDrawer-
|
|
47
|
+
import { C as ut } from "../ConnectDrawer-CW4LA3H3.mjs";
|
|
48
48
|
function ht(r, n, o = 0) {
|
|
49
49
|
const t = r.map((b) => ({ ...b })).filter(
|
|
50
50
|
(b) => b.interest_rate !== void 0 && b.monthly_payment !== void 0 && !b.is_paid_off
|
|
@@ -26,13 +26,13 @@ import { b as z } from "../Localization-DnoVyBNK.mjs";
|
|
|
26
26
|
import { f as Xe, D as Ue } from "../DateFormats-HudZ3Bjs.mjs";
|
|
27
27
|
import * as lt from "d3";
|
|
28
28
|
import { observer as w } from "mobx-react-lite";
|
|
29
|
-
import { u as S, a as ne, i as qe,
|
|
29
|
+
import { u as S, a as ne, i as qe, C as oe, s as L, D as Pn, c as ke, l as Qe, e as Bn, h as Ze, g as En, o as Gn } from "../hooks-97sNJ_lf.mjs";
|
|
30
30
|
import { L as ee } from "../Loader-CxeBwuPG.mjs";
|
|
31
31
|
import E from "@mui/material/Button";
|
|
32
32
|
import Y from "@mui/material/Card";
|
|
33
|
-
import { L as Je } from "../LineChart-
|
|
34
|
-
import { C as vt } from "../ConnectionsDrawer-
|
|
35
|
-
import { C as se } from "../ConnectDrawer-
|
|
33
|
+
import { L as Je } from "../LineChart-CUfiH86G.mjs";
|
|
34
|
+
import { C as vt } from "../ConnectionsDrawer-CZU9ku-k.mjs";
|
|
35
|
+
import { C as se } from "../ConnectDrawer-CW4LA3H3.mjs";
|
|
36
36
|
import he from "@mui/material/Tab";
|
|
37
37
|
import et from "@mui/material/Tabs";
|
|
38
38
|
import Pe from "@mui/material/TextField";
|
|
@@ -42,14 +42,14 @@ import { u as wt } from "../useDimensions-CeDR9V8N.mjs";
|
|
|
42
42
|
import { E as Be } from "../EmptyState-CJUDc3kD.mjs";
|
|
43
43
|
import $n from "@mui/material/Chip";
|
|
44
44
|
import { D as ie } from "../Drawer-DsnW2o0v.mjs";
|
|
45
|
-
import { g as kt } from "../useAccountDisplayName-
|
|
46
|
-
import { a as Mt } from "../AccountDetailsHeader-
|
|
45
|
+
import { g as kt } from "../useAccountDisplayName-BsiXA0qf.mjs";
|
|
46
|
+
import { a as Mt } from "../AccountDetailsHeader-BliEZhz7.mjs";
|
|
47
47
|
import Nn from "@mui/material/ListSubheader";
|
|
48
48
|
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";
|
|
@@ -58,15 +58,15 @@ import { ChartsXAxis as Qn } from "@mui/x-charts/ChartsXAxis";
|
|
|
58
58
|
import { ChartsYAxis as Zn } from "@mui/x-charts/ChartsYAxis";
|
|
59
59
|
import { startOfMonth as It } from "date-fns/startOfMonth";
|
|
60
60
|
import { endOfMonth as At } from "date-fns/endOfMonth";
|
|
61
|
-
import { g as Jn, S as eo, b as to } from "../SpendingLegend-
|
|
61
|
+
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";
|
|
@@ -77,8 +77,8 @@ import Co from "@mui/lab/TimelineSeparator";
|
|
|
77
77
|
import So from "@mui/material/Accordion";
|
|
78
78
|
import vo from "@mui/material/AccordionDetails";
|
|
79
79
|
import wo from "@mui/material/AccordionSummary";
|
|
80
|
-
import { u as ko } from "../useWidgetLoadTimer-
|
|
81
|
-
import { W as Mo } from "../WidgetContainer-
|
|
80
|
+
import { u as ko } from "../useWidgetLoadTimer-B0tB-yzL.mjs";
|
|
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
|
@@ -18,13 +18,13 @@ import te from "@mui/material/Avatar";
|
|
|
18
18
|
import He from "@mui/material/CardHeader";
|
|
19
19
|
import { Payments as Ee, NoteStack as Se, Person as ve, ArrowUpwardAlt as Ue, CheckCircle as Ye, ChevronRight as z, Icon as ye, ExpandLess as Ze, ExpandMore as qe, AddBox as Ie, Trophy as Je } from "@mxenabled/mx-icons";
|
|
20
20
|
import { g as ue, T as r, G as de, a as Qe, M as U, b as Xe } from "../GoalsUtil-C9EnLWvC.mjs";
|
|
21
|
-
import { u as x, k as N, a as _e, i as pe, c as j,
|
|
21
|
+
import { u as x, k as N, a as _e, i as pe, c as j, C as Ge, f as Ne } from "../hooks-97sNJ_lf.mjs";
|
|
22
22
|
import { u as he } from "../useScreenSize-mWpmnh5w.mjs";
|
|
23
23
|
import { S as et } from "../StatusBar-CPfSXe80.mjs";
|
|
24
24
|
import v from "@mui/material/Divider";
|
|
25
25
|
import O from "@mui/material/List";
|
|
26
|
-
import { L as Z } from "../ListItemAction-
|
|
27
|
-
import { C as ke } from "../CurrencyInput-
|
|
26
|
+
import { L as Z } from "../ListItemAction-BqUCLj_w.mjs";
|
|
27
|
+
import { C as ke } from "../CurrencyInput-DaGEQaLW.mjs";
|
|
28
28
|
import { fromUnixTime as ee } from "date-fns/fromUnixTime";
|
|
29
29
|
import tt from "@mui/material/IconButton";
|
|
30
30
|
import k from "@mui/material/ListItem";
|
|
@@ -33,29 +33,29 @@ import L from "@mui/material/ListItemButton";
|
|
|
33
33
|
import w from "@mui/material/ListItemText";
|
|
34
34
|
import { f as be, D as fe } from "../DateFormats-HudZ3Bjs.mjs";
|
|
35
35
|
import { D as q } from "../Drawer-DsnW2o0v.mjs";
|
|
36
|
-
import { g as we, u as nt } from "../useAccountDisplayName-
|
|
36
|
+
import { g as we, u as nt } from "../useAccountDisplayName-BsiXA0qf.mjs";
|
|
37
37
|
import ot from "@mui/material/Collapse";
|
|
38
38
|
import at from "@mui/material/ListItemIcon";
|
|
39
39
|
import it from "@mui/material/Checkbox";
|
|
40
|
-
import { C as De } from "../ConnectCard-
|
|
40
|
+
import { C as De } from "../ConnectCard-D7uxoH5Y.mjs";
|
|
41
41
|
import { c as Ae } from "../Account-DR7Plrqy.mjs";
|
|
42
42
|
import Ke from "@mui/material/TextField";
|
|
43
|
-
import { M as rt, I as st, O as ct } from "../OriginalBalanceAction-
|
|
43
|
+
import { M as rt, I as st, O as ct } from "../OriginalBalanceAction-YrvxBYAl.mjs";
|
|
44
44
|
import { getUnixTime as lt } from "date-fns/getUnixTime";
|
|
45
45
|
import { isValid as dt } from "date-fns/isValid";
|
|
46
46
|
import { AdapterDateFns as mt } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
|
47
47
|
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
|
-
import { u as Me } from "../useWidgetLoadTimer-
|
|
50
|
+
import { u as Me } from "../useWidgetLoadTimer-B0tB-yzL.mjs";
|
|
51
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";
|
|
57
57
|
import { S as yt } from "../SingleSegmentDonut-7Uy6VEld.mjs";
|
|
58
|
-
import { M as At } from "../MicroWidgetContainer-
|
|
58
|
+
import { M as At } from "../MicroWidgetContainer-B2NnKBgW.mjs";
|
|
59
59
|
function se({ title: t, subtitle: n }) {
|
|
60
60
|
return /* @__PURE__ */ c(f, { children: [
|
|
61
61
|
/* @__PURE__ */ e(C, { bold: !0, variant: "body1", children: t }),
|
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-
|
|
4
|
-
import { a } from "../hooks-
|
|
5
|
-
import { u as p } from "../useWidgetLoadTimer-
|
|
3
|
+
import { H as s } from "../Help-zVZdcmlk.mjs";
|
|
4
|
+
import { a } from "../hooks-97sNJ_lf.mjs";
|
|
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({
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import r from "react";
|
|
2
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
3
|
+
const a = r.createContext(null), C = ({
|
|
4
|
+
children: t,
|
|
5
|
+
globalStore: e,
|
|
6
|
+
onError: s,
|
|
7
|
+
onEvent: l,
|
|
8
|
+
onLoad: u,
|
|
9
|
+
onPageView: c
|
|
10
|
+
}) => /* @__PURE__ */ n(
|
|
11
|
+
a.Provider,
|
|
12
|
+
{
|
|
13
|
+
value: {
|
|
14
|
+
globalStore: e,
|
|
15
|
+
onError: s,
|
|
16
|
+
onEvent: l,
|
|
17
|
+
onLoad: u,
|
|
18
|
+
onPageView: c,
|
|
19
|
+
children: t
|
|
20
|
+
},
|
|
21
|
+
children: t
|
|
22
|
+
}
|
|
23
|
+
), S = r.createContext(null), d = ({ children: t, availableHeight: e, availableWidth: s }) => /* @__PURE__ */ n(
|
|
24
|
+
S.Provider,
|
|
25
|
+
{
|
|
26
|
+
value: {
|
|
27
|
+
availableHeight: e,
|
|
28
|
+
availableWidth: s,
|
|
29
|
+
children: t
|
|
30
|
+
},
|
|
31
|
+
children: t
|
|
32
|
+
}
|
|
33
|
+
), o = (t = "useGlobalStore") => {
|
|
34
|
+
const e = r.useContext(a);
|
|
35
|
+
if (!e)
|
|
36
|
+
throw new Error(`${t}() must be used within the GlobalDataContext`);
|
|
37
|
+
return e;
|
|
38
|
+
}, p = () => o("useAccountStore").globalStore.accountStore, f = () => o("useAppConfig").globalStore.appDataStore.appConfig, h = () => o("useAnalyticsStore").globalStore.analyticsStore, x = () => o("useBudgetsStore").globalStore.budgetsStore, w = () => o("useCashflowStore").globalStore.cashflowStore, G = () => o("useCategoryStore").globalStore.categoryStore, v = () => o("useConnectStore").globalStore.connectStore, y = () => o("useDebtsStore").globalStore.debtsStore, W = () => o("useFinstrongStore").globalStore.finstrongStore, m = () => o("useGlobalStore").globalStore, D = () => o("useGlobalUiStore").globalStore.globalUiStore, E = () => o("globalCopyStore").globalStore.copyStore.copy, P = () => o("useGoalStore").globalStore.goalStore, A = () => o("useHelpStore").globalStore.helpStore, T = () => o("useHoldingStore").globalStore.holdingStore, U = () => o("useMerchantStore").globalStore.merchantStore, H = () => o("useNetWorthStore").globalStore.netWorthStore, N = () => o("useNotificationStore").globalStore.notificationStore, B = () => o("useRecurringTransactionsStore").globalStore.recurringTransactionsStore, L = () => o("useSettingsStore").globalStore.settingsStore, R = () => o("useTransactionStore").globalStore.transactionStore, V = () => o("useTrendsStore").globalStore.trendsStore, j = () => o("useUserStore").globalStore.userStore, F = () => ({ onError: o().onError }), M = () => ({ onEvent: o().onEvent }), _ = () => ({ onLoad: o().onLoad }), $ = () => ({ onPageView: o().onPageView }), i = (t = "useWidgetContainerContext") => {
|
|
39
|
+
const e = r.useContext(S);
|
|
40
|
+
if (!e)
|
|
41
|
+
throw new Error(`${t}() must be used within the WidgetContainerContext`);
|
|
42
|
+
return e;
|
|
43
|
+
}, k = () => i();
|
|
44
|
+
export {
|
|
45
|
+
L as A,
|
|
46
|
+
V as B,
|
|
47
|
+
j as C,
|
|
48
|
+
k as D,
|
|
49
|
+
a as G,
|
|
50
|
+
d as W,
|
|
51
|
+
D as a,
|
|
52
|
+
U as b,
|
|
53
|
+
p as c,
|
|
54
|
+
v as d,
|
|
55
|
+
m as e,
|
|
56
|
+
M as f,
|
|
57
|
+
R as g,
|
|
58
|
+
B as h,
|
|
59
|
+
f as i,
|
|
60
|
+
h as j,
|
|
61
|
+
P as k,
|
|
62
|
+
G as l,
|
|
63
|
+
C as m,
|
|
64
|
+
S as n,
|
|
65
|
+
x as o,
|
|
66
|
+
w as p,
|
|
67
|
+
y as q,
|
|
68
|
+
F as r,
|
|
69
|
+
W as s,
|
|
70
|
+
A as t,
|
|
71
|
+
E as u,
|
|
72
|
+
T as v,
|
|
73
|
+
_ as w,
|
|
74
|
+
H as x,
|
|
75
|
+
N as y,
|
|
76
|
+
$ as z
|
|
77
|
+
};
|
|
78
|
+
//# sourceMappingURL=hooks-97sNJ_lf.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hooks-97sNJ_lf.mjs","sources":["../src/common/context/GlobalDataProvider.tsx","../src/common/context/WidgetContainerProvider.tsx","../src/common/context/hooks.tsx"],"sourcesContent":["import React from 'react'\n\nimport type { GlobalErrorHandler, GlobalEventHandler } from '../../core'\nimport { GlobalStore } from '../../core/stores'\n\nexport interface GlobalStoreContextTypes {\n children: React.ReactNode\n onError: GlobalErrorHandler\n onEvent: GlobalEventHandler\n onLoad?: (widgetName: string) => void\n onPageView: (pageViewEvent: string) => void\n globalStore: GlobalStore\n}\nexport const GlobalDataContext = React.createContext<GlobalStoreContextTypes | null>(null)\n\nexport const GlobalDataProvider: React.FC<React.PropsWithChildren<GlobalStoreContextTypes>> = ({\n children,\n globalStore,\n onError,\n onEvent,\n onLoad,\n onPageView,\n}) => {\n return (\n <GlobalDataContext.Provider\n value={{\n globalStore,\n onError,\n onEvent,\n onLoad,\n onPageView,\n children,\n }}\n >\n {children}\n </GlobalDataContext.Provider>\n )\n}\n","import React from 'react'\n\nexport interface WidgetContainerContextTypes {\n children: React.ReactNode\n availableHeight: number\n availableWidth: number\n}\nexport const WidgetContainerContext = React.createContext<WidgetContainerContextTypes | null>(null)\n\nexport const WidgetContainerProvider: React.FC<\n React.PropsWithChildren<WidgetContainerContextTypes>\n> = ({ children, availableHeight, availableWidth }) => {\n return (\n <WidgetContainerContext.Provider\n value={{\n availableHeight,\n availableWidth,\n children,\n }}\n >\n {children}\n </WidgetContainerContext.Provider>\n )\n}\n","import React from 'react'\nimport { GlobalDataContext } from './GlobalDataProvider'\nimport { WidgetContainerContext } from './WidgetContainerProvider'\n\nexport const useGlobalDataContext = (providerName = 'useGlobalStore') => {\n const context = React.useContext(GlobalDataContext)\n\n if (!context) {\n throw new Error(`${providerName}() must be used within the GlobalDataContext`)\n }\n return context\n}\n\nexport const useAccountStore = () =>\n useGlobalDataContext('useAccountStore').globalStore.accountStore\nexport const useAppConfig = () =>\n useGlobalDataContext('useAppConfig').globalStore.appDataStore.appConfig\nexport const useAnalyticsStore = () =>\n useGlobalDataContext('useAnalyticsStore').globalStore.analyticsStore\nexport const useBudgetsStore = () =>\n useGlobalDataContext('useBudgetsStore').globalStore.budgetsStore\nexport const useCashflowStore = () =>\n useGlobalDataContext('useCashflowStore').globalStore.cashflowStore\nexport const useCategoryStore = () =>\n useGlobalDataContext('useCategoryStore').globalStore.categoryStore\nexport const useConnectStore = () =>\n useGlobalDataContext('useConnectStore').globalStore.connectStore\nexport const useDebtStore = () => useGlobalDataContext('useDebtsStore').globalStore.debtsStore\nexport const useFinstrongStore = () =>\n useGlobalDataContext('useFinstrongStore').globalStore.finstrongStore\nexport const useGlobalStore = () => useGlobalDataContext('useGlobalStore').globalStore\nexport const useGlobalUiStore = () =>\n useGlobalDataContext('useGlobalUiStore').globalStore.globalUiStore\nexport const useGlobalCopyStore = () =>\n useGlobalDataContext('globalCopyStore').globalStore.copyStore.copy\nexport const useGoalStore = () => useGlobalDataContext('useGoalStore').globalStore.goalStore\nexport const useHelpStore = () => useGlobalDataContext('useHelpStore').globalStore.helpStore\nexport const useHoldingStore = () =>\n useGlobalDataContext('useHoldingStore').globalStore.holdingStore\nexport const useMerchantStore = () =>\n useGlobalDataContext('useMerchantStore').globalStore.merchantStore\nexport const useNetWorthStore = () =>\n useGlobalDataContext('useNetWorthStore').globalStore.netWorthStore\nexport const useNotificationStore = () =>\n useGlobalDataContext('useNotificationStore').globalStore.notificationStore\nexport const useRecurringTransactionsStore = () =>\n useGlobalDataContext('useRecurringTransactionsStore').globalStore.recurringTransactionsStore\nexport const useSettingsStore = () =>\n useGlobalDataContext('useSettingsStore').globalStore.settingsStore\nexport const useTransactionStore = () =>\n useGlobalDataContext('useTransactionStore').globalStore.transactionStore\nexport const useTrendsStore = () => useGlobalDataContext('useTrendsStore').globalStore.trendsStore\nexport const useUserStore = () => useGlobalDataContext('useUserStore').globalStore.userStore\n\nexport const useError = () => ({ onError: useGlobalDataContext().onError })\nexport const useEvent = () => ({ onEvent: useGlobalDataContext().onEvent })\nexport const useLoad = () => ({ onLoad: useGlobalDataContext().onLoad })\nexport const usePageView = () => ({ onPageView: useGlobalDataContext().onPageView })\n\nexport const useWidgetContainerContext = (providerName = 'useWidgetContainerContext') => {\n const context = React.useContext(WidgetContainerContext)\n\n if (!context) {\n throw new Error(`${providerName}() must be used within the WidgetContainerContext`)\n }\n\n return context\n}\n\nexport const useWidgetContainerProvider = () => useWidgetContainerContext()\n"],"names":["GlobalDataContext","React","GlobalDataProvider","children","globalStore","onError","onEvent","onLoad","onPageView","jsx","WidgetContainerContext","WidgetContainerProvider","availableHeight","availableWidth","useGlobalDataContext","providerName","context","useAccountStore","useAppConfig","useAnalyticsStore","useBudgetsStore","useCashflowStore","useCategoryStore","useConnectStore","useDebtStore","useFinstrongStore","useGlobalStore","useGlobalUiStore","useGlobalCopyStore","useGoalStore","useHelpStore","useHoldingStore","useMerchantStore","useNetWorthStore","useNotificationStore","useRecurringTransactionsStore","useSettingsStore","useTransactionStore","useTrendsStore","useUserStore","useError","useEvent","useLoad","usePageView","useWidgetContainerContext","useWidgetContainerProvider"],"mappings":";;AAaO,MAAMA,IAAoBC,EAAM,cAA8C,IAAI,GAE5EC,IAAiF,CAAC;AAAA,EAC7F,UAAAC;AAAA,EACA,aAAAC;AAAA,EACA,SAAAC;AAAA,EACA,SAAAC;AAAA,EACA,QAAAC;AAAA,EACA,YAAAC;AACF,MAEI,gBAAAC;AAAA,EAACT,EAAkB;AAAA,EAAlB;AAAA,IACC,OAAO;AAAA,MACL,aAAAI;AAAA,MACA,SAAAC;AAAA,MACA,SAAAC;AAAA,MACA,QAAAC;AAAA,MACA,YAAAC;AAAA,MACA,UAAAL;AAAA,IAAA;AAAA,IAGD,UAAAA;AAAA,EAAA;AAAA,GC3BMO,IAAyBT,EAAM,cAAkD,IAAI,GAErFU,IAET,CAAC,EAAE,UAAAR,GAAU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CoB,IAAuB,MAClCpB,EAAqB,sBAAsB,EAAE,YAAY,mBAC9CqB,IAAgC,MAC3CrB,EAAqB,+BAA+B,EAAE,YAAY,4BACvDsB,IAAmB,MAC9BtB,EAAqB,kBAAkB,EAAE,YAAY,eAC1CuB,IAAsB,MACjCvB,EAAqB,qBAAqB,EAAE,YAAY,kBAC7CwB,IAAiB,MAAMxB,EAAqB,gBAAgB,EAAE,YAAY,aAC1EyB,IAAe,MAAMzB,EAAqB,cAAc,EAAE,YAAY,WAEtE0B,IAAW,OAAO,EAAE,SAAS1B,EAAA,EAAuB,QAAA,IACpD2B,IAAW,OAAO,EAAE,SAAS3B,EAAA,EAAuB,QAAA,IACpD4B,IAAU,OAAO,EAAE,QAAQ5B,EAAA,EAAuB,OAAA,IAClD6B,IAAc,OAAO,EAAE,YAAY7B,EAAA,EAAuB,WAAA,IAE1D8B,IAA4B,CAAC7B,IAAe,gCAAgC;AACvF,QAAMC,IAAUf,EAAM,WAAWS,CAAsB;AAEvD,MAAI,CAACM;AACH,UAAM,IAAI,MAAM,GAAGD,CAAY,mDAAmD;AAGpF,SAAOC;AACT,GAEa6B,IAA6B,MAAMD,EAAA;"}
|
|
@@ -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";
|
|
@@ -31,13 +31,13 @@ import M1 from "@mui/material/ListItemText";
|
|
|
31
31
|
import { b as L2 } from "../Localization-DnoVyBNK.mjs";
|
|
32
32
|
import { f as T } from "../NumberFormatting--XMeeBfr.mjs";
|
|
33
33
|
import { D as H2 } from "../Drawer-DsnW2o0v.mjs";
|
|
34
|
-
import { B as G2 } from "../Error-
|
|
34
|
+
import { B as G2 } from "../Error-Dtw6yxkf.mjs";
|
|
35
35
|
import P1 from "@mui/material/FormControl";
|
|
36
36
|
import U1 from "@mui/material/FormControlLabel";
|
|
37
37
|
import B1 from "@mui/material/Radio";
|
|
38
38
|
import Q1 from "@mui/material/RadioGroup";
|
|
39
39
|
import R2 from "@mui/material/TextField";
|
|
40
|
-
import { u as I2 } from "../hooks-
|
|
40
|
+
import { u as I2 } from "../hooks-97sNJ_lf.mjs";
|
|
41
41
|
import Y2 from "@mui/material/Menu";
|
|
42
42
|
import D2 from "@mui/material/MenuItem";
|
|
43
43
|
import { useInView as N2 } from "react-intersection-observer";
|
|
@@ -4,7 +4,7 @@ import { observer as $ } from "mobx-react-lite";
|
|
|
4
4
|
import _ from "@mui/material/Stack";
|
|
5
5
|
import Fe from "@mui/material/Tab";
|
|
6
6
|
import Ee from "@mui/material/Tabs";
|
|
7
|
-
import { C as pe } from "../ConnectionsDrawer-
|
|
7
|
+
import { C as pe } from "../ConnectionsDrawer-CZU9ku-k.mjs";
|
|
8
8
|
import xe from "@mui/material/useMediaQuery";
|
|
9
9
|
import Ne from "@mui/material/Box";
|
|
10
10
|
import Me from "@mui/material/Collapse";
|
|
@@ -16,7 +16,7 @@ import ye from "@mui/material/ToggleButton";
|
|
|
16
16
|
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
|
-
import { u as N, f as ve,
|
|
19
|
+
import { u as N, f as ve, v as U, a as J, c as ce } from "../hooks-97sNJ_lf.mjs";
|
|
20
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";
|
|
@@ -37,8 +37,8 @@ import { D as Re } from "../Drawer-DsnW2o0v.mjs";
|
|
|
37
37
|
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
|
-
import { u as qe } from "../useWidgetLoadTimer-
|
|
41
|
-
import { W as Ke } from "../WidgetContainer-
|
|
40
|
+
import { u as qe } from "../useWidgetLoadTimer-B0tB-yzL.mjs";
|
|
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 = {} }) => {
|
|
@@ -12,7 +12,7 @@ import k from "@mui/material/ListItemText";
|
|
|
12
12
|
import A from "@mui/material/Paper";
|
|
13
13
|
import d from "@mui/material/Stack";
|
|
14
14
|
import { MerchantLogo as V, Text as R } from "@mxenabled/mxui";
|
|
15
|
-
import { b as v, u as w, a as C } from "../hooks-
|
|
15
|
+
import { b as v, u as w, a as C } from "../hooks-97sNJ_lf.mjs";
|
|
16
16
|
import { L as u } from "../Loader-CxeBwuPG.mjs";
|
|
17
17
|
import { S as N } from "../SearchBox-Cpgu_gdO.mjs";
|
|
18
18
|
const B = /^[ a-zA-ZÀ-ÿ0-9]+$/, H = 50, p = 65, P = ({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as u, C as s, I as c, a as v, b as C, M as R, c as H, d as M, N as F, V, Z as x } from "../ViewMoreMicroCard-
|
|
1
|
+
import { A as u, C as s, I as c, a as v, b as C, M as R, c as H, d as M, N as F, V, Z as x } from "../ViewMoreMicroCard-fnwE0hqd.mjs";
|
|
2
2
|
import { B as Z } from "../BeatMaterialIcon-1KOfRZrA.mjs";
|
|
3
3
|
import { jsx as e, jsxs as l } from "react/jsx-runtime";
|
|
4
4
|
const a = ({
|
|
@@ -5,17 +5,17 @@ import m from "@mui/material/Stack";
|
|
|
5
5
|
import { P as Y, Text as d, Icon as R } from "@mxenabled/mxui";
|
|
6
6
|
import { Icon as Z } from "@mxenabled/mx-icons";
|
|
7
7
|
import { f as F } from "../NumberFormatting--XMeeBfr.mjs";
|
|
8
|
-
import { c as oe, f as $, u as E, a as q,
|
|
9
|
-
import { u as J } from "../useWidgetLoadTimer-
|
|
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
|
+
import { u as J } from "../useWidgetLoadTimer-B0tB-yzL.mjs";
|
|
10
10
|
import { A as v } from "../Analytics-D-jdcL72.mjs";
|
|
11
11
|
import { L as Q } from "../Loader-CxeBwuPG.mjs";
|
|
12
|
-
import { M as ie } from "../MicroWidgetContainer-
|
|
12
|
+
import { M as ie } from "../MicroWidgetContainer-B2NnKBgW.mjs";
|
|
13
13
|
import { format as ae, fromUnixTime as se, differenceInMonths as ce } from "date-fns";
|
|
14
14
|
import P from "@mui/material/Box";
|
|
15
|
-
import { C as le } from "../ConnectionsDrawer-
|
|
15
|
+
import { C as le } from "../ConnectionsDrawer-CZU9ku-k.mjs";
|
|
16
16
|
import { fromUnixTime as de } from "date-fns/fromUnixTime";
|
|
17
17
|
import { useTheme as H } from "@mui/material/styles";
|
|
18
|
-
import { L as me } from "../LineChart-
|
|
18
|
+
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";
|
|
@@ -32,7 +32,7 @@ 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";
|
|
@@ -7,16 +7,16 @@ import b from "@mui/material/Box";
|
|
|
7
7
|
import B from "@mui/material/Divider";
|
|
8
8
|
import I from "@mui/material/List";
|
|
9
9
|
import { g as R, s as O } from "../NotificationUtils-BRGFTePr.mjs";
|
|
10
|
-
import { Text as m, InstitutionLogo as G, CategoryIcon as
|
|
11
|
-
import { k as
|
|
12
|
-
import { useTheme as
|
|
13
|
-
import { c as F, o as P, u as C,
|
|
10
|
+
import { Text as m, InstitutionLogo as G, CategoryIcon as E } from "@mxenabled/mxui";
|
|
11
|
+
import { k as j } from "../DateUtil-CzBmbjmA.mjs";
|
|
12
|
+
import { useTheme as z, Card as U } from "@mui/material";
|
|
13
|
+
import { c as F, o as P, u as C, y as k, a as v, i as V } from "../hooks-97sNJ_lf.mjs";
|
|
14
14
|
import { Icon as W, Settings as $ } from "@mxenabled/mx-icons";
|
|
15
15
|
import M from "@mui/material/Button";
|
|
16
16
|
import X from "@mui/material/Stack";
|
|
17
17
|
import { L as w } from "../Loader-CxeBwuPG.mjs";
|
|
18
18
|
import Y from "@mui/material/IconButton";
|
|
19
|
-
import { N as q } from "../NotificationSettings-
|
|
19
|
+
import { N as q } from "../NotificationSettings-CW7okUrk.mjs";
|
|
20
20
|
import { D as x } from "../Drawer-DsnW2o0v.mjs";
|
|
21
21
|
const xt = (i) => {
|
|
22
22
|
switch (i) {
|
|
@@ -34,7 +34,7 @@ const xt = (i) => {
|
|
|
34
34
|
default:
|
|
35
35
|
return null;
|
|
36
36
|
}
|
|
37
|
-
}, H = ({ date: i }) => /* @__PURE__ */ t(b, { sx: { display: "flex", justifyContent: "center", mt: 12, py: 8 }, children: /* @__PURE__ */ t(m, { bold: !0, variant: "body2", children:
|
|
37
|
+
}, H = ({ date: i }) => /* @__PURE__ */ t(b, { sx: { display: "flex", justifyContent: "center", mt: 12, py: 8 }, children: /* @__PURE__ */ t(m, { bold: !0, variant: "body2", children: j(i) }) }), J = ({ notification: i }) => {
|
|
38
38
|
const { accounts: e } = F(), { budgets: r } = P(), { accounts: n } = C(), o = e.find((c) => c.guid === i.entity_guid), a = r.find((c) => c.guid === i.entity_guid), d = i.entity_guid.includes("GOL"), u = {
|
|
39
39
|
badge: {
|
|
40
40
|
display: "flex",
|
|
@@ -51,9 +51,9 @@ const xt = (i) => {
|
|
|
51
51
|
institutionGuid: o?.institution_guid ?? "",
|
|
52
52
|
size: 33
|
|
53
53
|
}
|
|
54
|
-
) }) : /* @__PURE__ */ t("div", { style: u.badge, children: /* @__PURE__ */ t(
|
|
54
|
+
) }) : /* @__PURE__ */ t("div", { style: u.badge, children: /* @__PURE__ */ t(E, { categoryGuid: a?.category_guid, size: 36 }) });
|
|
55
55
|
}, K = p(J), Q = ({ notification: i, onClick: e }) => {
|
|
56
|
-
const { updateNotification: r } = k(), n =
|
|
56
|
+
const { updateNotification: r } = k(), n = z(), o = {
|
|
57
57
|
card: {
|
|
58
58
|
alignItems: "center",
|
|
59
59
|
cursor: "pointer",
|