@mx-cartographer/experiences 9.4.53 → 9.4.55

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.
Files changed (28) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/budgets/components/BudgetDetailsDrawer.es.js +14 -14
  3. package/dist/budgets/components/BudgetDetailsDrawer.es.js.map +1 -1
  4. package/dist/budgets/components/budgetdetails/SubBudgetList.es.js +1 -1
  5. package/dist/budgets/components/budgetdetails/SubBudgetList.es.js.map +1 -1
  6. package/dist/cashflow/CashflowOnboarding.es.js +20 -20
  7. package/dist/cashflow/CashflowOnboarding.es.js.map +1 -1
  8. package/dist/cashflow/components/onboarding/StepOne.es.js +5 -5
  9. package/dist/cashflow/components/onboarding/StepOne.es.js.map +1 -1
  10. package/dist/common/components/calendar/Calendar.d.ts +1 -0
  11. package/dist/common/components/calendar/Calendar.es.js.map +1 -1
  12. package/dist/common/components/drawer/Drawer.es.js +9 -9
  13. package/dist/common/components/drawer/Drawer.es.js.map +1 -1
  14. package/dist/common/components/drawer/Footer.es.js +6 -6
  15. package/dist/common/components/drawer/Footer.es.js.map +1 -1
  16. package/dist/finstrong/components/ManageDOB.es.js +16 -16
  17. package/dist/goals/components/actions/BirthdayAction.es.js +11 -11
  18. package/dist/recurringtransactions/components/PaymentSchedule.es.js +11 -11
  19. package/dist/settings/components/profile/ProfileTab.es.js +28 -28
  20. package/dist/settings/components/transactionrules/actions/DeleteRuleAction.es.js +7 -7
  21. package/dist/settings/components/transactionrules/actions/DeleteRuleAction.es.js.map +1 -1
  22. package/dist/transactions/components/shared/transactiondetails/actions/DateAction.es.js +59 -53
  23. package/dist/transactions/components/shared/transactiondetails/actions/DateAction.es.js.map +1 -1
  24. package/dist/transactions/components/shared/transactiondetails/actions/ExcludeAction.es.js +0 -1
  25. package/dist/transactions/components/shared/transactiondetails/actions/ExcludeAction.es.js.map +1 -1
  26. package/dist/transactions/utils/Filters.es.js +13 -6
  27. package/dist/transactions/utils/Filters.es.js.map +1 -1
  28. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"Drawer.es.js","names":[],"sources":["../../../../src/common/components/drawer/Drawer.tsx"],"sourcesContent":["import React from 'react'\n\nimport Box from '@mui/material/Box'\nimport Button from '@mui/material/Button'\nimport Stack from '@mui/material/Stack'\nimport type { SxProps } from '@mui/material/styles'\n\nimport { Drawer as KMuiDrawer } from '@mxenabled/mxui'\n\nimport { useFocusReturn } from '../../hooks/useFocusReturn'\n\nimport Footer from './Footer'\nimport Header from './Header'\n\nexport type CopyObject = {\n close_drawer_aria: string\n}\n\ninterface DrawerProps {\n ariaLabelClose?: string\n className?: string\n footerStyles?: SxProps\n hasSecondaryAction?: boolean\n id?: string\n isOpen: boolean\n isPrimaryDisabled?: boolean\n onClose: () => void\n onPrimaryAction?: () => void\n onSecondaryAction?: () => void\n primaryButtonProps?: React.ComponentProps<typeof Button>\n primaryColor?: 'primary' | 'inherit' | 'secondary' | 'success' | 'error' | 'info' | 'warning'\n primaryText?: string\n secondaryColor?: 'primary' | 'inherit' | 'secondary' | 'success' | 'error' | 'info' | 'warning'\n secondaryText?: string\n shouldShowHeaderBorders?: boolean\n shouldShowHeaderShadow?: boolean\n sx?: SxProps\n title: string\n}\n\nconst Drawer: React.FC<React.PropsWithChildren<DrawerProps>> = ({\n ariaLabelClose = 'Close',\n children,\n footerStyles = {},\n hasSecondaryAction = true,\n id,\n isOpen,\n isPrimaryDisabled,\n onClose,\n onPrimaryAction,\n onSecondaryAction,\n primaryButtonProps,\n primaryColor = 'primary',\n primaryText,\n secondaryColor = 'secondary',\n secondaryText,\n shouldShowHeaderBorders = true,\n shouldShowHeaderShadow = false,\n title,\n ...rest\n}) => {\n const { onExited, onFocus, rootRef } = useFocusReturn(isOpen)\n\n return (\n <KMuiDrawer\n id={id}\n isOpen={isOpen}\n onClose={onClose}\n sx={{\n '& .MuiDrawer-paper': {\n backgroundColor: 'background.default',\n borderRadius: 0,\n },\n height: '100%',\n '& .MuiToolbar-root': {\n backgroundColor: 'background.paper',\n },\n }}\n {...rest}\n disableRestoreFocus={true}\n onFocus={onFocus}\n ref={rootRef}\n slotProps={{\n paper: {\n 'aria-labelledby': `${title?.replace(/\\s+/g, '-').toLowerCase()}-header-title`,\n },\n transition: { onExited },\n }}\n >\n <Stack height=\"100%\" justifyContent=\"space-between\">\n <Header\n ariaLabelClose={ariaLabelClose}\n onClose={onClose}\n shouldShowBorders={shouldShowHeaderBorders}\n shouldShowShadow={shouldShowHeaderShadow}\n title={title}\n />\n\n <Box height=\"100%\" overflow=\"auto\">\n {children}\n </Box>\n\n {onPrimaryAction && (\n <Footer\n footerStyles={footerStyles}\n hasSecondaryAction={hasSecondaryAction}\n isPrimaryDisabled={isPrimaryDisabled}\n onPrimaryAction={onPrimaryAction}\n onSecondaryAction={onSecondaryAction ?? onClose}\n primaryButtonProps={primaryButtonProps}\n primaryColor={primaryColor}\n primaryText={primaryText}\n secondaryColor={secondaryColor}\n secondaryText={secondaryText}\n />\n )}\n </Stack>\n </KMuiDrawer>\n )\n}\n\nexport default Drawer\n"],"mappings":";;;;;;;;AAwCA,IAAM,IAAA,CAA0D,EAC9D,gBAAA,IAAiB,SACjB,UAAA,GACA,cAAA,IAAe,CAAC,GAChB,oBAAA,IAAqB,IACrB,IAAA,GACA,QAAA,GACA,mBAAA,GACA,SAAA,GACA,iBAAA,GACA,mBAAA,GACA,oBAAA,GACA,cAAA,IAAe,WACf,aAAA,GACA,gBAAA,IAAiB,aACjB,eAAA,GACA,yBAAA,IAA0B,IAC1B,wBAAA,IAAyB,IACzB,OAAA,GACA,GAAG,EAAA,MACC;AACJ,QAAM,EAAE,UAAA,GAAU,SAAA,GAAS,SAAA,EAAA,IAAY,EAAe,CAAM;AAE5D,SACE,gBAAA,EAAC,GAAD;AAAA,IACM,IAAA;AAAA,IACI,QAAA;AAAA,IACC,SAAA;AAAA,IACT,IAAI;AAAA,MACF,sBAAsB;AAAA,QACpB,iBAAiB;AAAA,QACjB,cAAc;AAAA,MAChB;AAAA,MACA,QAAQ;AAAA,MACR,sBAAsB,EACpB,iBAAiB,mBACnB;AAAA,IACF;AAAA,IACA,GAAI;AAAA,IACJ,qBAAqB;AAAA,IACZ,SAAA;AAAA,IACT,KAAK;AAAA,IACL,WAAW;AAAA,MACT,OAAO,EACL,mBAAmB,GAAG,GAAO,QAAQ,QAAQ,GAAG,EAAE,YAAY,CAAA,gBAChE;AAAA,MACA,YAAY,EAAE,UAAA,EAAS;AAAA,IACzB;AAAA,IAEA,UAAA,gBAAA,EAAC,GAAD;AAAA,MAAO,QAAO;AAAA,MAAO,gBAAe;AAAA,MAApC,UAAA;AAAA,QACE,gBAAA,EAAC,GAAD;AAAA,UACkB,gBAAA;AAAA,UACP,SAAA;AAAA,UACT,mBAAmB;AAAA,UACnB,kBAAkB;AAAA,UACX,OAAA;AAAA,QACR,CAAA;AAAA,QAED,gBAAA,EAAC,GAAD;AAAA,UAAK,QAAO;AAAA,UAAO,UAAS;AAAA,UACzB,UAAA;AAAA,QACE,CAAA;AAAA,QAEJ,KACC,gBAAA,EAAC,GAAD;AAAA,UACgB,cAAA;AAAA,UACM,oBAAA;AAAA,UACD,mBAAA;AAAA,UACF,iBAAA;AAAA,UACjB,mBAAmB,KAAqB;AAAA,UACpB,oBAAA;AAAA,UACN,cAAA;AAAA,UACD,aAAA;AAAA,UACG,gBAAA;AAAA,UACD,eAAA;AAAA,QAChB,CAAA;AAAA,MAEE;AAAA;EACG,CAAA;AAEhB"}
1
+ {"version":3,"file":"Drawer.es.js","names":[],"sources":["../../../../src/common/components/drawer/Drawer.tsx"],"sourcesContent":["import React from 'react'\n\nimport Box from '@mui/material/Box'\nimport Button from '@mui/material/Button'\nimport Stack from '@mui/material/Stack'\nimport type { SxProps } from '@mui/material/styles'\n\nimport { Drawer as KMuiDrawer } from '@mxenabled/mxui'\n\nimport { useFocusReturn } from '../../hooks/useFocusReturn'\n\nimport Footer from './Footer'\nimport Header from './Header'\n\nexport type CopyObject = {\n close_drawer_aria: string\n}\n\ninterface DrawerProps {\n ariaLabelClose?: string\n className?: string\n footerStyles?: SxProps\n hasSecondaryAction?: boolean\n id?: string\n isOpen: boolean\n isPrimaryDisabled?: boolean\n onClose: () => void\n onPrimaryAction?: () => void\n onSecondaryAction?: () => void\n primaryButtonProps?: React.ComponentProps<typeof Button>\n primaryColor?: 'primary' | 'inherit' | 'secondary' | 'success' | 'error' | 'info' | 'warning'\n primaryText?: string\n secondaryColor?: 'primary' | 'inherit' | 'secondary' | 'success' | 'error' | 'info' | 'warning'\n secondaryText?: string\n shouldShowHeaderBorders?: boolean\n shouldShowHeaderShadow?: boolean\n sx?: SxProps\n title: string\n}\n\nconst Drawer: React.FC<React.PropsWithChildren<DrawerProps>> = ({\n ariaLabelClose = 'Close',\n children,\n footerStyles = {},\n hasSecondaryAction = true,\n id,\n isOpen,\n isPrimaryDisabled,\n onClose,\n onPrimaryAction,\n onSecondaryAction,\n primaryButtonProps,\n primaryColor = 'primary',\n primaryText,\n secondaryColor = 'primary',\n secondaryText,\n shouldShowHeaderBorders = true,\n shouldShowHeaderShadow = false,\n title,\n ...rest\n}) => {\n const { onExited, onFocus, rootRef } = useFocusReturn(isOpen)\n\n return (\n <KMuiDrawer\n id={id}\n isOpen={isOpen}\n onClose={onClose}\n sx={{\n '& .MuiDrawer-paper': {\n backgroundColor: 'background.default',\n borderRadius: 0,\n },\n height: '100%',\n '& .MuiToolbar-root': {\n backgroundColor: 'background.paper',\n },\n }}\n {...rest}\n disableRestoreFocus={true}\n onFocus={onFocus}\n ref={rootRef}\n slotProps={{\n paper: {\n 'aria-labelledby': `${title?.replace(/\\s+/g, '-').toLowerCase()}-header-title`,\n },\n transition: { onExited },\n }}\n >\n <Stack height=\"100%\" justifyContent=\"space-between\">\n <Header\n ariaLabelClose={ariaLabelClose}\n onClose={onClose}\n shouldShowBorders={shouldShowHeaderBorders}\n shouldShowShadow={shouldShowHeaderShadow}\n title={title}\n />\n\n <Box height=\"100%\" overflow=\"auto\">\n {children}\n </Box>\n\n {onPrimaryAction && (\n <Footer\n footerStyles={footerStyles}\n hasSecondaryAction={hasSecondaryAction}\n isPrimaryDisabled={isPrimaryDisabled}\n onPrimaryAction={onPrimaryAction}\n onSecondaryAction={onSecondaryAction ?? onClose}\n primaryButtonProps={primaryButtonProps}\n primaryColor={primaryColor}\n primaryText={primaryText}\n secondaryColor={secondaryColor}\n secondaryText={secondaryText}\n />\n )}\n </Stack>\n </KMuiDrawer>\n )\n}\n\nexport default Drawer\n"],"mappings":";;;;;;;;AAwCA,IAAM,IAAA,CAA0D,EAC9D,gBAAA,IAAiB,SACjB,UAAA,GACA,cAAA,IAAe,CAAC,GAChB,oBAAA,IAAqB,IACrB,IAAA,GACA,QAAA,GACA,mBAAA,GACA,SAAA,GACA,iBAAA,GACA,mBAAA,GACA,oBAAA,GACA,cAAA,IAAe,WACf,aAAA,GACA,gBAAA,IAAiB,WACjB,eAAA,GACA,yBAAA,IAA0B,IAC1B,wBAAA,IAAyB,IACzB,OAAA,GACA,GAAG,EAAA,MACC;AACJ,QAAM,EAAE,UAAA,GAAU,SAAA,GAAS,SAAA,EAAA,IAAY,EAAe,CAAM;AAE5D,SACE,gBAAA,EAAC,GAAD;AAAA,IACM,IAAA;AAAA,IACI,QAAA;AAAA,IACC,SAAA;AAAA,IACT,IAAI;AAAA,MACF,sBAAsB;AAAA,QACpB,iBAAiB;AAAA,QACjB,cAAc;AAAA,MAChB;AAAA,MACA,QAAQ;AAAA,MACR,sBAAsB,EACpB,iBAAiB,mBACnB;AAAA,IACF;AAAA,IACA,GAAI;AAAA,IACJ,qBAAqB;AAAA,IACZ,SAAA;AAAA,IACT,KAAK;AAAA,IACL,WAAW;AAAA,MACT,OAAO,EACL,mBAAmB,GAAG,GAAO,QAAQ,QAAQ,GAAG,EAAE,YAAY,CAAA,gBAChE;AAAA,MACA,YAAY,EAAE,UAAA,EAAS;AAAA,IACzB;AAAA,IAEA,UAAA,gBAAA,EAAC,GAAD;AAAA,MAAO,QAAO;AAAA,MAAO,gBAAe;AAAA,MAApC,UAAA;AAAA,QACE,gBAAA,EAAC,GAAD;AAAA,UACkB,gBAAA;AAAA,UACP,SAAA;AAAA,UACT,mBAAmB;AAAA,UACnB,kBAAkB;AAAA,UACX,OAAA;AAAA,QACR,CAAA;AAAA,QAED,gBAAA,EAAC,GAAD;AAAA,UAAK,QAAO;AAAA,UAAO,UAAS;AAAA,UACzB,UAAA;AAAA,QACE,CAAA;AAAA,QAEJ,KACC,gBAAA,EAAC,GAAD;AAAA,UACgB,cAAA;AAAA,UACM,oBAAA;AAAA,UACD,mBAAA;AAAA,UACF,iBAAA;AAAA,UACjB,mBAAmB,KAAqB;AAAA,UACpB,oBAAA;AAAA,UACN,cAAA;AAAA,UACD,aAAA;AAAA,UACG,gBAAA;AAAA,UACD,eAAA;AAAA,QAChB,CAAA;AAAA,MAEE;AAAA;EACG,CAAA;AAEhB"}
@@ -1,7 +1,7 @@
1
1
  import s from "@mui/material/Stack";
2
- import o from "@mui/material/Button";
3
- import { jsx as e, jsxs as u } from "react/jsx-runtime";
4
- var v = ({ footerStyles: t = {}, hasSecondaryAction: a = !0, isPrimaryDisabled: n, onPrimaryAction: r, onSecondaryAction: i, primaryButtonProps: l = {}, primaryColor: c = "primary", primaryText: d = "Save", secondaryColor: p = "primary", secondaryText: f = "Cancel" }) => /* @__PURE__ */ u(s, {
2
+ import e from "@mui/material/Button";
3
+ import { jsx as o, jsxs as x } from "react/jsx-runtime";
4
+ var v = ({ footerStyles: t = {}, hasSecondaryAction: a = !0, isPrimaryDisabled: n, onPrimaryAction: r, onSecondaryAction: i, primaryButtonProps: l = {}, primaryColor: c = "primary", primaryText: d = "Save", secondaryColor: p = "primary", secondaryText: f = "Cancel" }) => /* @__PURE__ */ x(s, {
5
5
  sx: {
6
6
  bgcolor: "background.paper",
7
7
  flexDirection: "row",
@@ -10,12 +10,12 @@ var v = ({ footerStyles: t = {}, hasSecondaryAction: a = !0, isPrimaryDisabled:
10
10
  p: 24,
11
11
  ...t
12
12
  },
13
- children: [a && /* @__PURE__ */ e(o, {
13
+ children: [a && /* @__PURE__ */ o(e, {
14
14
  color: p,
15
15
  onClick: i,
16
- variant: r ? "outlined" : "contained",
16
+ variant: r ? "text" : "contained",
17
17
  children: f
18
- }), r && /* @__PURE__ */ e(o, {
18
+ }), r && /* @__PURE__ */ o(e, {
19
19
  ...l,
20
20
  color: c,
21
21
  disabled: n,
@@ -1 +1 @@
1
- {"version":3,"file":"Footer.es.js","names":[],"sources":["../../../../src/common/components/drawer/Footer.tsx"],"sourcesContent":["import Button from '@mui/material/Button'\nimport Stack from '@mui/material/Stack'\nimport { type SxProps } from '@mui/material/styles'\n\ntype Color = 'primary' | 'inherit' | 'secondary' | 'success' | 'error' | 'info' | 'warning'\n\ntype FooterProps = {\n footerStyles?: SxProps\n hasSecondaryAction?: boolean\n isPrimaryDisabled?: boolean\n onPrimaryAction?: () => void\n onSecondaryAction?: () => void\n primaryButtonProps?: React.ComponentProps<typeof Button>\n primaryColor?: Color\n primaryText?: string\n secondaryColor?: Color\n secondaryText?: string\n}\n\nconst Footer = ({\n footerStyles = {},\n hasSecondaryAction = true,\n isPrimaryDisabled,\n onPrimaryAction,\n onSecondaryAction,\n primaryButtonProps = {},\n primaryColor = 'primary',\n primaryText = 'Save',\n secondaryColor = 'primary',\n secondaryText = 'Cancel',\n}: FooterProps) => {\n return (\n <Stack\n sx={{\n bgcolor: 'background.paper',\n flexDirection: 'row',\n gap: 16,\n justifyContent: 'flex-end',\n p: 24,\n ...footerStyles,\n }}\n >\n {hasSecondaryAction && (\n <Button\n color={secondaryColor}\n onClick={onSecondaryAction}\n variant={onPrimaryAction ? 'outlined' : 'contained'}\n >\n {secondaryText}\n </Button>\n )}\n\n {onPrimaryAction && (\n <Button\n {...primaryButtonProps}\n color={primaryColor}\n disabled={isPrimaryDisabled}\n onClick={onPrimaryAction}\n variant=\"contained\"\n >\n {primaryText}\n </Button>\n )}\n </Stack>\n )\n}\n\nexport default Footer\n"],"mappings":";;;AAmBA,IAAM,IAAA,CAAU,EACd,cAAA,IAAe,CAAC,GAChB,oBAAA,IAAqB,IACrB,mBAAA,GACA,iBAAA,GACA,mBAAA,GACA,oBAAA,IAAqB,CAAC,GACtB,cAAA,IAAe,WACf,aAAA,IAAc,QACd,gBAAA,IAAiB,WACjB,eAAA,IAAgB,SAAA,MAGd,gBAAA,EAAC,GAAD;AAAA,EACE,IAAI;AAAA,IACF,SAAS;AAAA,IACT,eAAe;AAAA,IACf,KAAK;AAAA,IACL,gBAAgB;AAAA,IAChB,GAAG;AAAA,IACH,GAAG;AAAA,EACL;AAAA,EARF,UAAA,CAUG,KACC,gBAAA,EAAC,GAAD;AAAA,IACE,OAAO;AAAA,IACP,SAAS;AAAA,IACT,SAAS,IAAkB,aAAa;AAAA,IAEvC,UAAA;AAAA,EACK,CAAA,GAGT,KACC,gBAAA,EAAC,GAAD;AAAA,IACE,GAAI;AAAA,IACJ,OAAO;AAAA,IACP,UAAU;AAAA,IACV,SAAS;AAAA,IACT,SAAQ;AAAA,IAEP,UAAA;AAAA,EACK,CAAA,CAEL"}
1
+ {"version":3,"file":"Footer.es.js","names":[],"sources":["../../../../src/common/components/drawer/Footer.tsx"],"sourcesContent":["import Button from '@mui/material/Button'\nimport Stack from '@mui/material/Stack'\nimport { type SxProps } from '@mui/material/styles'\n\ntype Color = 'primary' | 'inherit' | 'secondary' | 'success' | 'error' | 'info' | 'warning'\n\ntype FooterProps = {\n footerStyles?: SxProps\n hasSecondaryAction?: boolean\n isPrimaryDisabled?: boolean\n onPrimaryAction?: () => void\n onSecondaryAction?: () => void\n primaryButtonProps?: React.ComponentProps<typeof Button>\n primaryColor?: Color\n primaryText?: string\n secondaryColor?: Color\n secondaryText?: string\n}\n\nconst Footer = ({\n footerStyles = {},\n hasSecondaryAction = true,\n isPrimaryDisabled,\n onPrimaryAction,\n onSecondaryAction,\n primaryButtonProps = {},\n primaryColor = 'primary',\n primaryText = 'Save',\n secondaryColor = 'primary',\n secondaryText = 'Cancel',\n}: FooterProps) => {\n return (\n <Stack\n sx={{\n bgcolor: 'background.paper',\n flexDirection: 'row',\n gap: 16,\n justifyContent: 'flex-end',\n p: 24,\n ...footerStyles,\n }}\n >\n {hasSecondaryAction && (\n <Button\n color={secondaryColor}\n onClick={onSecondaryAction}\n variant={onPrimaryAction ? 'text' : 'contained'}\n >\n {secondaryText}\n </Button>\n )}\n\n {onPrimaryAction && (\n <Button\n {...primaryButtonProps}\n color={primaryColor}\n disabled={isPrimaryDisabled}\n onClick={onPrimaryAction}\n variant=\"contained\"\n >\n {primaryText}\n </Button>\n )}\n </Stack>\n )\n}\n\nexport default Footer\n"],"mappings":";;;AAmBA,IAAM,IAAA,CAAU,EACd,cAAA,IAAe,CAAC,GAChB,oBAAA,IAAqB,IACrB,mBAAA,GACA,iBAAA,GACA,mBAAA,GACA,oBAAA,IAAqB,CAAC,GACtB,cAAA,IAAe,WACf,aAAA,IAAc,QACd,gBAAA,IAAiB,WACjB,eAAA,IAAgB,SAAA,MAGd,gBAAA,EAAC,GAAD;AAAA,EACE,IAAI;AAAA,IACF,SAAS;AAAA,IACT,eAAe;AAAA,IACf,KAAK;AAAA,IACL,gBAAgB;AAAA,IAChB,GAAG;AAAA,IACH,GAAG;AAAA,EACL;AAAA,EARF,UAAA,CAUG,KACC,gBAAA,EAAC,GAAD;AAAA,IACE,OAAO;AAAA,IACP,SAAS;AAAA,IACT,SAAS,IAAkB,SAAS;AAAA,IAEnC,UAAA;AAAA,EACK,CAAA,GAGT,KACC,gBAAA,EAAC,GAAD;AAAA,IACE,GAAI;AAAA,IACJ,OAAO;AAAA,IACP,UAAU;AAAA,IACV,SAAS;AAAA,IACT,SAAQ;AAAA,IAEP,UAAA;AAAA,EACK,CAAA,CAEL"}
@@ -3,16 +3,16 @@ import g from "../../common/components/drawer/Drawer.es.js";
3
3
  import y from "react";
4
4
  import { observer as b } from "mobx-react-lite";
5
5
  import v from "@mui/material/Stack";
6
- import { jsx as t } from "react/jsx-runtime";
7
- import { alpha as e, useTheme as D } from "@mui/material/styles";
6
+ import { jsx as e } from "react/jsx-runtime";
7
+ import { alpha as o, useTheme as D } from "@mui/material/styles";
8
8
  import { AdapterDateFns as S } from "@mui/x-date-pickers/AdapterDateFnsV3";
9
- import { StaticDatePicker as x } from "@mui/x-date-pickers";
10
- import { LocalizationProvider as P } from "@mui/x-date-pickers/LocalizationProvider";
11
- var w = ({ isOpen: n, onClose: a }) => {
12
- const { finstrong: l } = u(), o = D(), { updateUser: c, user: i } = f(), { loadPeerScore: m } = h(), [r, s] = y.useState(i.birthday), p = (d) => {
9
+ import { LocalizationProvider as x } from "@mui/x-date-pickers/LocalizationProvider";
10
+ import { StaticDatePicker as w } from "@mui/x-date-pickers";
11
+ var B = ({ isOpen: n, onClose: a }) => {
12
+ const { finstrong: l } = u(), t = D(), { updateUser: c, user: i } = f(), { loadPeerScore: m } = h(), [r, s] = y.useState(i.birthday), p = (d) => {
13
13
  s(Math.floor(new Date(d).getTime() / 1e3));
14
14
  };
15
- return /* @__PURE__ */ t(g, {
15
+ return /* @__PURE__ */ e(g, {
16
16
  footerStyles: {
17
17
  borderTop: 1,
18
18
  borderColor: "divider",
@@ -31,28 +31,28 @@ var w = ({ isOpen: n, onClose: a }) => {
31
31
  },
32
32
  onSecondaryAction: a,
33
33
  title: l.date_of_birth,
34
- children: /* @__PURE__ */ t(v, {
34
+ children: /* @__PURE__ */ e(v, {
35
35
  sx: {
36
36
  bgcolor: "background.default",
37
37
  height: "100%"
38
38
  },
39
- children: /* @__PURE__ */ t(P, {
39
+ children: /* @__PURE__ */ e(x, {
40
40
  dateAdapter: S,
41
- children: /* @__PURE__ */ t(x, {
41
+ children: /* @__PURE__ */ e(w, {
42
42
  disableFuture: !0,
43
43
  onChange: p,
44
44
  slotProps: {
45
45
  nextIconButton: { sx: {
46
46
  color: "primary.main",
47
- "&:hover": { bgcolor: e(o.palette.primary.light, 0.1) }
47
+ "&:hover": { bgcolor: o(t.palette.primary.light, 0.1) }
48
48
  } },
49
49
  previousIconButton: { sx: {
50
50
  color: "primary.main",
51
- "&:hover": { bgcolor: e(o.palette.primary.light, 0.1) }
51
+ "&:hover": { bgcolor: o(t.palette.primary.light, 0.1) }
52
52
  } },
53
53
  switchViewButton: { sx: {
54
54
  color: "primary.main",
55
- "&:hover": { bgcolor: e(o.palette.primary.light, 0.1) }
55
+ "&:hover": { bgcolor: o(t.palette.primary.light, 0.1) }
56
56
  } }
57
57
  },
58
58
  slots: {
@@ -63,7 +63,7 @@ var w = ({ isOpen: n, onClose: a }) => {
63
63
  width: "100%",
64
64
  "& .MuiIconButton-edgeEnd": {
65
65
  color: "primary.main",
66
- "&:hover": { bgcolor: e(o.palette.primary.light, 0.1) }
66
+ "&:hover": { bgcolor: o(t.palette.primary.light, 0.1) }
67
67
  }
68
68
  },
69
69
  value: r ? /* @__PURE__ */ new Date(r * 1e3) : /* @__PURE__ */ new Date()
@@ -71,9 +71,9 @@ var w = ({ isOpen: n, onClose: a }) => {
71
71
  })
72
72
  })
73
73
  });
74
- }, O = b(w);
74
+ }, j = b(B);
75
75
  export {
76
- O as default
76
+ j as default
77
77
  };
78
78
 
79
79
  //# sourceMappingURL=ManageDOB.es.js.map
@@ -1,23 +1,23 @@
1
1
  import { DATE_FORMATS_INTL as b, formatDate as f } from "../../../core/constants/DateFormats.es.js";
2
2
  import { useGlobalCopyStore as u, useGoalStore as _, useUserStore as S } from "../../../common/context/hooks.es.js";
3
- import { ListItemAction as v } from "../../../common/components/ListItemAction.es.js";
3
+ import { ListItemAction as A } from "../../../common/components/ListItemAction.es.js";
4
4
  import i from "react";
5
- import { observer as A } from "mobx-react-lite";
5
+ import { observer as T } from "mobx-react-lite";
6
6
  import { jsx as o } from "react/jsx-runtime";
7
7
  import { fromUnixTime as s } from "date-fns/fromUnixTime";
8
- import { getUnixTime as T } from "date-fns/getUnixTime";
8
+ import { getUnixTime as v } from "date-fns/getUnixTime";
9
9
  import { AdapterDateFns as x } from "@mui/x-date-pickers/AdapterDateFnsV3";
10
- import { DatePicker as D } from "@mui/x-date-pickers";
11
- import { LocalizationProvider as g } from "@mui/x-date-pickers/LocalizationProvider";
10
+ import { LocalizationProvider as D } from "@mui/x-date-pickers/LocalizationProvider";
11
+ import { DatePicker as g } from "@mui/x-date-pickers";
12
12
  import { isValid as E } from "date-fns/isValid";
13
- var N = A(({ goal: a }) => {
13
+ var O = T(({ goal: a }) => {
14
14
  const { goals: r } = u(), { user: t, updateUser: d } = S(), { setAlert: m } = _(), [e, l] = i.useState(s(t.birthday ?? 0)), [n, p] = i.useState(null), c = a.is_complete, h = async () => {
15
15
  e && E(e) && (await d({
16
16
  ...t,
17
- birthday: T(e)
17
+ birthday: v(e)
18
18
  }), m(r.alert_goal_updated_birthday));
19
19
  };
20
- return /* @__PURE__ */ o(v, {
20
+ return /* @__PURE__ */ o(A, {
21
21
  isDisabled: c,
22
22
  isSaveDisabled: !!n,
23
23
  label: r.details_birthday,
@@ -25,9 +25,9 @@ var N = A(({ goal: a }) => {
25
25
  primaryText: r.details_birthday,
26
26
  secondaryText: `${f(s(t.birthday ?? 0), b.MONTH_DAY_YEAR)}`,
27
27
  zeroStateText: !a.guid && !t.birthday ? r.add_birthday : void 0,
28
- children: /* @__PURE__ */ o(g, {
28
+ children: /* @__PURE__ */ o(D, {
29
29
  dateAdapter: x,
30
- children: /* @__PURE__ */ o(D, {
30
+ children: /* @__PURE__ */ o(g, {
31
31
  label: r.details_birthday,
32
32
  onChange: l,
33
33
  onError: (y) => p(y),
@@ -38,7 +38,7 @@ var N = A(({ goal: a }) => {
38
38
  });
39
39
  });
40
40
  export {
41
- N as BirthdayAction
41
+ O as BirthdayAction
42
42
  };
43
43
 
44
44
  //# sourceMappingURL=BirthdayAction.es.js.map
@@ -4,16 +4,16 @@ import { formatOrdinal as M } from "../../core/utils/NumberFormatting.es.js";
4
4
  import { Select as n } from "../../common/components/Select.es.js";
5
5
  import g from "react";
6
6
  import A from "@mui/material/Stack";
7
- import { startOfToday as i } from "date-fns/startOfToday";
7
+ import { startOfToday as y } from "date-fns/startOfToday";
8
8
  import { jsx as t, jsxs as T } from "react/jsx-runtime";
9
9
  import { addYears as _ } from "date-fns/addYears";
10
10
  import { subDays as Y } from "date-fns/subDays";
11
11
  import { setDayOfYear as x } from "date-fns/setDayOfYear";
12
12
  import { AdapterDateFns as D } from "@mui/x-date-pickers/AdapterDateFnsV3";
13
- import { getDayOfYear as C } from "date-fns/getDayOfYear";
13
+ import { LocalizationProvider as C } from "@mui/x-date-pickers/LocalizationProvider";
14
+ import { getDayOfYear as W } from "date-fns/getDayOfYear";
14
15
  import { DatePicker as P } from "@mui/x-date-pickers";
15
- import { LocalizationProvider as W } from "@mui/x-date-pickers/LocalizationProvider";
16
- var N = ({ frequency: a, firstDay: y, secondDay: h, onFrequencyChange: s, onFirstDayChange: d, onSecondDayChange: c }) => {
16
+ var N = ({ frequency: a, firstDay: i, secondDay: h, onFrequencyChange: s, onFirstDayChange: d, onSecondDayChange: c }) => {
17
17
  const { recurring: e } = E(), f = g.useMemo(() => [
18
18
  {
19
19
  id: r.EveryWeek,
@@ -81,8 +81,8 @@ var N = ({ frequency: a, firstDay: y, secondDay: h, onFrequencyChange: s, onFirs
81
81
  label: M(o + 1)
82
82
  }));
83
83
  l[30].label += ` (${e.last_day_of_month})`;
84
- const v = l.slice(0, 15), b = l.slice(14), u = a === r.EveryWeek || a === r.EveryOtherWeek, k = a === r.TwiceAMonth || a === r.EveryMonth || a === r.EveryOtherMonth || a === r.EveryQuarter || a === r.EveryOtherQuarter, m = x(i(), y), w = m < i() ? _(m, 1) : m, O = (o) => {
85
- o && d(C(o));
84
+ const v = l.slice(0, 15), b = l.slice(14), u = a === r.EveryWeek || a === r.EveryOtherWeek, k = a === r.TwiceAMonth || a === r.EveryMonth || a === r.EveryOtherMonth || a === r.EveryQuarter || a === r.EveryOtherQuarter, m = x(y(), i), w = m < y() ? _(m, 1) : m, O = (o) => {
85
+ o && d(W(o));
86
86
  };
87
87
  return /* @__PURE__ */ T(A, {
88
88
  gap: 24,
@@ -98,13 +98,13 @@ var N = ({ frequency: a, firstDay: y, secondDay: h, onFrequencyChange: s, onFirs
98
98
  label: e.day_of_the_week,
99
99
  onChange: d,
100
100
  options: p,
101
- value: y
101
+ value: i
102
102
  }),
103
103
  k && /* @__PURE__ */ t(n, {
104
104
  label: a === r.TwiceAMonth ? e.first_day_of_the_month : e.day_of_the_month,
105
105
  onChange: d,
106
106
  options: a === r.TwiceAMonth ? v : l,
107
- value: y
107
+ value: i
108
108
  }),
109
109
  a === r.TwiceAMonth && /* @__PURE__ */ t(n, {
110
110
  label: e.second_day_of_the_month,
@@ -112,13 +112,13 @@ var N = ({ frequency: a, firstDay: y, secondDay: h, onFrequencyChange: s, onFirs
112
112
  options: b,
113
113
  value: h ?? ""
114
114
  }),
115
- a === r.EveryYear && /* @__PURE__ */ t(W, {
115
+ a === r.EveryYear && /* @__PURE__ */ t(C, {
116
116
  dateAdapter: D,
117
117
  children: /* @__PURE__ */ t(P, {
118
118
  disablePast: !0,
119
119
  label: e.next_payment_date,
120
- maxDate: Y(_(i(), 1), 1),
121
- minDate: i(),
120
+ maxDate: Y(_(y(), 1), 1),
121
+ minDate: y(),
122
122
  onChange: O,
123
123
  value: w
124
124
  })
@@ -1,24 +1,24 @@
1
- import { useAppConfig as F, useGlobalCopyStore as B, useSettingsStore as L, useUserStore as M } from "../../../common/context/hooks.es.js";
2
- import { useScreenSize as R } from "../../../common/hooks/useScreenSize.es.js";
3
- import z from "../../../common/components/dialog/Dialog.es.js";
4
- import I from "./actions/ResetPasswordAction.es.js";
1
+ import { useAppConfig as F, useGlobalCopyStore as B, useSettingsStore as M, useUserStore as R } from "../../../common/context/hooks.es.js";
2
+ import { useScreenSize as I } from "../../../common/hooks/useScreenSize.es.js";
3
+ import L from "../../../common/components/dialog/Dialog.es.js";
4
+ import z from "./actions/ResetPasswordAction.es.js";
5
5
  import N from "./actions/VerifyEmailAction.es.js";
6
- import $ from "./actions/VerifyPhoneAction.es.js";
6
+ import j from "./actions/VerifyPhoneAction.es.js";
7
7
  import p from "react";
8
- import { observer as j } from "mobx-react-lite";
8
+ import { observer as H } from "mobx-react-lite";
9
9
  import l from "@mui/material/Stack";
10
- import { H3 as H, P as J } from "@mxenabled/mxui";
11
- import O from "@mui/material/Button";
10
+ import { H3 as J, P as O } from "@mxenabled/mxui";
11
+ import $ from "@mui/material/Button";
12
12
  import { Fragment as G, jsx as t, jsxs as i } from "react/jsx-runtime";
13
13
  import { alpha as b, useTheme as K } from "@mui/material/styles";
14
14
  import Y from "@mui/material/Box";
15
15
  import { getUnixTime as q } from "date-fns/getUnixTime";
16
16
  import d from "@mui/material/TextField";
17
17
  import { AdapterDateFns as Q } from "@mui/x-date-pickers/AdapterDateFnsV3";
18
- import { DatePicker as W } from "@mui/x-date-pickers";
19
- import { LocalizationProvider as X } from "@mui/x-date-pickers/LocalizationProvider";
18
+ import { LocalizationProvider as W } from "@mui/x-date-pickers/LocalizationProvider";
19
+ import { DatePicker as X } from "@mui/x-date-pickers";
20
20
  var Z = ({ availableWidth: C, handleOnLeaveClick: f }) => {
21
- const u = K(), { common: w, settings: o } = B(), { isMobile: m } = R(C), { config: h } = F(), { updateUser: S } = L(), { user: r } = M(), [a, U] = p.useState({
21
+ const u = K(), { common: w, settings: o } = B(), { isMobile: m } = I(C), { config: h } = F(), { updateUser: S } = M(), { user: r } = R(), [a, U] = p.useState({
22
22
  first_name: r.first_name,
23
23
  last_name: r.last_name,
24
24
  email: r.email,
@@ -26,7 +26,7 @@ var Z = ({ availableWidth: C, handleOnLeaveClick: f }) => {
26
26
  birthday: r.birthday,
27
27
  postal_code: r.postal_code,
28
28
  credit_score: r.credit_score
29
- }), [c, y] = p.useState(!1), [P, g] = p.useState(!1), _ = p.useRef(null), v = a.email && !r.email_is_verified && !c, x = a.phone && !r.phone_is_verified && !c;
29
+ }), [c, y] = p.useState(!1), [T, g] = p.useState(!1), _ = p.useRef(null), v = a.email && !r.email_is_verified && !c, x = a.phone && !r.phone_is_verified && !c;
30
30
  p.useEffect(() => {
31
31
  if (f) {
32
32
  const e = (s) => {
@@ -37,17 +37,17 @@ var Z = ({ availableWidth: C, handleOnLeaveClick: f }) => {
37
37
  };
38
38
  }
39
39
  }, [c]);
40
- const T = () => {
40
+ const V = () => {
41
41
  if (a.birthday) {
42
42
  const e = /* @__PURE__ */ new Date(a.birthday * 1e3), s = e.getUTCFullYear(), A = e.getUTCMonth(), E = e.getUTCDate();
43
43
  return new Date(s, A, E);
44
44
  }
45
- }, V = async () => {
45
+ }, D = async () => {
46
46
  await S({
47
47
  ...r,
48
48
  ...a
49
49
  }), y(!1);
50
- }, D = () => {
50
+ }, P = () => {
51
51
  g(!1), f && f();
52
52
  }, k = () => {
53
53
  g(!1);
@@ -70,8 +70,8 @@ var Z = ({ availableWidth: C, handleOnLeaveClick: f }) => {
70
70
  "& .MuiTextField-root": { flex: 1 }
71
71
  },
72
72
  children: [
73
- /* @__PURE__ */ t(H, { children: o.personal_details }),
74
- /* @__PURE__ */ t(J, {
73
+ /* @__PURE__ */ t(J, { children: o.personal_details }),
74
+ /* @__PURE__ */ t(O, {
75
75
  variant: "body1",
76
76
  children: o.update_information
77
77
  }),
@@ -115,16 +115,16 @@ var Z = ({ availableWidth: C, handleOnLeaveClick: f }) => {
115
115
  label: o.mobile_number,
116
116
  onChange: (e) => n({ phone: e.target.value }),
117
117
  type: "tel"
118
- }), x && /* @__PURE__ */ t($, {})]
118
+ }), x && /* @__PURE__ */ t(j, {})]
119
119
  })]
120
120
  }),
121
121
  /* @__PURE__ */ i(l, {
122
122
  direction: m ? "column" : "row",
123
123
  spacing: 24,
124
124
  sx: { mb: 24 },
125
- children: [/* @__PURE__ */ t(X, {
125
+ children: [/* @__PURE__ */ t(W, {
126
126
  dateAdapter: Q,
127
- children: /* @__PURE__ */ t(W, {
127
+ children: /* @__PURE__ */ t(X, {
128
128
  label: o.birthdate,
129
129
  onChange: (e) => n({ birthday: q(e) }),
130
130
  slotProps: {
@@ -144,7 +144,7 @@ var Z = ({ availableWidth: C, handleOnLeaveClick: f }) => {
144
144
  "&:hover": { backgroundColor: b(u.palette.primary.light, 0.1) }
145
145
  }
146
146
  },
147
- value: T()
147
+ value: V()
148
148
  })
149
149
  }), /* @__PURE__ */ t(d, {
150
150
  defaultValue: a.postal_code,
@@ -158,26 +158,26 @@ var Z = ({ availableWidth: C, handleOnLeaveClick: f }) => {
158
158
  label: o.credit_score,
159
159
  onChange: (e) => n({ credit_score: Number(e.target.value) })
160
160
  }),
161
- h.display_password_options_in_settings && /* @__PURE__ */ t(I, {}),
162
- /* @__PURE__ */ t(O, {
161
+ h.display_password_options_in_settings && /* @__PURE__ */ t(z, {}),
162
+ /* @__PURE__ */ t($, {
163
163
  disabled: !c,
164
- onClick: V,
164
+ onClick: D,
165
165
  sx: { width: m ? "100%" : 124 },
166
166
  variant: "contained",
167
167
  children: w.save_button
168
168
  })
169
169
  ] })
170
170
  ]
171
- }), /* @__PURE__ */ t(z, {
171
+ }), /* @__PURE__ */ t(L, {
172
172
  copy: { title: o.discard_changes },
173
- isOpen: P,
173
+ isOpen: T,
174
174
  onClose: k,
175
- onSecondaryAction: D,
175
+ onSecondaryAction: P,
176
176
  primaryText: o.keep_editing,
177
177
  secondaryText: o.leave,
178
178
  children: o.discard_changes_message
179
179
  })] });
180
- }, ye = j(Z);
180
+ }, ye = H(Z);
181
181
  export {
182
182
  ye as default
183
183
  };
@@ -1,26 +1,26 @@
1
1
  import { useGlobalCopyStore as m } from "../../../../common/context/hooks.es.js";
2
2
  import a from "../../../../common/components/dialog/Dialog.es.js";
3
3
  import "react";
4
- import { observer as c } from "mobx-react-lite";
5
- import { Text as l } from "@mxenabled/mxui";
4
+ import { observer as l } from "mobx-react-lite";
5
+ import { Text as c } from "@mxenabled/mxui";
6
6
  import { jsx as e } from "react/jsx-runtime";
7
- var b = c(({ onClose: o, onDelete: n, isOpen: i }) => {
7
+ var b = l(({ onClose: o, onDelete: i, isOpen: n }) => {
8
8
  const { common: r, settings: t } = m();
9
9
  return /* @__PURE__ */ e(a, {
10
10
  copy: { title: t.delete_rule },
11
- isOpen: i,
11
+ isOpen: n,
12
12
  onClose: o,
13
- onPrimaryAction: n,
13
+ onPrimaryAction: i,
14
14
  onSecondaryAction: o,
15
15
  primaryColor: "error",
16
16
  primaryText: r.delete_button,
17
- secondaryColor: "secondary",
17
+ secondaryColor: "inherit",
18
18
  secondaryText: r.cancel_button,
19
19
  sx: { "& .MuiDialogContent-root": {
20
20
  pt: 0,
21
21
  width: 400
22
22
  } },
23
- children: /* @__PURE__ */ e(l, {
23
+ children: /* @__PURE__ */ e(c, {
24
24
  truncate: !1,
25
25
  variant: "body2",
26
26
  children: t.delete_rule_confirm
@@ -1 +1 @@
1
- {"version":3,"file":"DeleteRuleAction.es.js","names":[],"sources":["../../../../../src/settings/components/transactionrules/actions/DeleteRuleAction.tsx"],"sourcesContent":["import { observer } from 'mobx-react-lite'\nimport React from 'react'\nimport { Text } from '@mxenabled/mxui'\nimport { Dialog, useGlobalCopyStore } from '../../../../common'\n\ninterface ActionProps {\n isOpen: boolean\n onClose: () => void\n onDelete: () => void\n}\n\nconst DeleteRuleAction: React.FC<ActionProps> = observer(({ onClose, onDelete, isOpen }) => {\n const { common: commonCopy, settings: settingsCopy } = useGlobalCopyStore()\n\n return (\n <Dialog\n copy={{ title: settingsCopy.delete_rule }}\n isOpen={isOpen}\n onClose={onClose}\n onPrimaryAction={onDelete}\n onSecondaryAction={onClose}\n primaryColor=\"error\"\n primaryText={commonCopy.delete_button}\n secondaryColor=\"secondary\"\n secondaryText={commonCopy.cancel_button}\n sx={{ '& .MuiDialogContent-root': { pt: 0, width: 400 } }}\n >\n <Text truncate={false} variant=\"body2\">\n {settingsCopy.delete_rule_confirm}\n </Text>\n </Dialog>\n )\n})\n\nexport default DeleteRuleAction\n"],"mappings":";;;;;;AAWA,IAAM,IAA0C,EAAA,CAAU,EAAE,SAAA,GAAS,UAAA,GAAU,QAAA,EAAA,MAAa;AAC1F,QAAM,EAAE,QAAQ,GAAY,UAAU,EAAA,IAAiB,EAAmB;AAE1E,SACE,gBAAA,EAAC,GAAD;AAAA,IACE,MAAM,EAAE,OAAO,EAAa,YAAY;AAAA,IAChC,QAAA;AAAA,IACC,SAAA;AAAA,IACT,iBAAiB;AAAA,IACjB,mBAAmB;AAAA,IACnB,cAAa;AAAA,IACb,aAAa,EAAW;AAAA,IACxB,gBAAe;AAAA,IACf,eAAe,EAAW;AAAA,IAC1B,IAAI,EAAE,4BAA4B;AAAA,MAAE,IAAI;AAAA,MAAG,OAAO;AAAA,IAAI,EAAE;AAAA,IAExD,UAAA,gBAAA,EAAC,GAAD;AAAA,MAAM,UAAU;AAAA,MAAO,SAAQ;AAAA,MAC5B,UAAA,EAAa;AAAA,IACV,CAAA;AAAA,EACA,CAAA;AAEZ,CAAC"}
1
+ {"version":3,"file":"DeleteRuleAction.es.js","names":[],"sources":["../../../../../src/settings/components/transactionrules/actions/DeleteRuleAction.tsx"],"sourcesContent":["import { observer } from 'mobx-react-lite'\nimport React from 'react'\nimport { Text } from '@mxenabled/mxui'\nimport { Dialog, useGlobalCopyStore } from '../../../../common'\n\ninterface ActionProps {\n isOpen: boolean\n onClose: () => void\n onDelete: () => void\n}\n\nconst DeleteRuleAction: React.FC<ActionProps> = observer(({ onClose, onDelete, isOpen }) => {\n const { common: commonCopy, settings: settingsCopy } = useGlobalCopyStore()\n\n return (\n <Dialog\n copy={{ title: settingsCopy.delete_rule }}\n isOpen={isOpen}\n onClose={onClose}\n onPrimaryAction={onDelete}\n onSecondaryAction={onClose}\n primaryColor=\"error\"\n primaryText={commonCopy.delete_button}\n secondaryColor=\"inherit\"\n secondaryText={commonCopy.cancel_button}\n sx={{ '& .MuiDialogContent-root': { pt: 0, width: 400 } }}\n >\n <Text truncate={false} variant=\"body2\">\n {settingsCopy.delete_rule_confirm}\n </Text>\n </Dialog>\n )\n})\n\nexport default DeleteRuleAction\n"],"mappings":";;;;;;AAWA,IAAM,IAA0C,EAAA,CAAU,EAAE,SAAA,GAAS,UAAA,GAAU,QAAA,EAAA,MAAa;AAC1F,QAAM,EAAE,QAAQ,GAAY,UAAU,EAAA,IAAiB,EAAmB;AAE1E,SACE,gBAAA,EAAC,GAAD;AAAA,IACE,MAAM,EAAE,OAAO,EAAa,YAAY;AAAA,IAChC,QAAA;AAAA,IACC,SAAA;AAAA,IACT,iBAAiB;AAAA,IACjB,mBAAmB;AAAA,IACnB,cAAa;AAAA,IACb,aAAa,EAAW;AAAA,IACxB,gBAAe;AAAA,IACf,eAAe,EAAW;AAAA,IAC1B,IAAI,EAAE,4BAA4B;AAAA,MAAE,IAAI;AAAA,MAAG,OAAO;AAAA,IAAI,EAAE;AAAA,IAExD,UAAA,gBAAA,EAAC,GAAD;AAAA,MAAM,UAAU;AAAA,MAAO,SAAQ;AAAA,MAC5B,UAAA,EAAa;AAAA,IACV,CAAA;AAAA,EACA,CAAA;AAEZ,CAAC"}
@@ -1,64 +1,65 @@
1
- import { DATE_FORMATS_INTL as S, formatDate as C } from "../../../../../core/constants/DateFormats.es.js";
2
- import I, { CalendarSelectionTypes as h } from "../../../../../common/components/calendar/Calendar.es.js";
3
- import { useEvent as g, useGlobalCopyStore as L, useTransactionStore as v } from "../../../../../common/context/hooks.es.js";
4
- import D from "../../../../../common/components/drawer/Drawer.es.js";
5
- import { ANALYTICS_EVENTS as N } from "../../../../../common/constants/Analytics.es.js";
6
- import { fromUnixUTC as m } from "../../../../../core/utils/DateUtil.es.js";
1
+ import { DATE_FORMATS_INTL as A, formatDate as C } from "../../../../../core/constants/DateFormats.es.js";
2
+ import { useEvent as S, useGlobalCopyStore as I, useTransactionStore as v } from "../../../../../common/context/hooks.es.js";
3
+ import L from "../../../../../common/components/drawer/Drawer.es.js";
4
+ import { ANALYTICS_EVENTS as g } from "../../../../../common/constants/Analytics.es.js";
5
+ import { fromUnixUTC as s, toUnixUTC as N } from "../../../../../core/utils/DateUtil.es.js";
7
6
  import { useTransactionsUiStore as b } from "../../../../context/hooks.es.js";
8
- import { ON_CLICK_EVENTS as E } from "../../../../constants/OnClickEvents.es.js";
9
- import s from "react";
10
- import O from "@mui/material/Stack";
11
- import { Text as R } from "@mxenabled/mxui";
12
- import { Icon as c } from "@mxenabled/mx-icons";
7
+ import { ON_CLICK_EVENTS as D } from "../../../../constants/OnClickEvents.es.js";
8
+ import c from "react";
9
+ import E from "@mui/material/Stack";
10
+ import { Text as O } from "@mxenabled/mxui";
11
+ import { Icon as d } from "@mxenabled/mx-icons";
13
12
  import { jsx as t, jsxs as l } from "react/jsx-runtime";
14
- import { useTheme as U } from "@mui/material/styles";
15
- import { getUnixTime as k } from "date-fns/getUnixTime";
16
- import K from "@mui/material/ListItem";
17
- import M from "@mui/material/Avatar";
18
- import P from "@mui/material/ListItemAvatar";
19
- import Y from "@mui/material/ListItemButton";
20
- import j from "@mui/material/ListItemIcon";
21
- import w from "@mui/material/ListItemText";
22
- var st = ({ transaction: e }) => {
23
- const { onEvent: n } = g(), { updateTransaction: d } = v(), { updateManualTransaction: p } = b(), { common: r, transactions: o } = L(), f = U(), [_, a] = s.useState(!1), [i, T] = s.useState(e.date), u = (A) => {
24
- T(k(A));
13
+ import { useTheme as k } from "@mui/material/styles";
14
+ import P from "@mui/material/ListItem";
15
+ import U from "@mui/material/Avatar";
16
+ import M from "@mui/material/ListItemAvatar";
17
+ import R from "@mui/material/ListItemButton";
18
+ import w from "@mui/material/ListItemIcon";
19
+ import B from "@mui/material/ListItemText";
20
+ import { AdapterDateFns as F } from "@mui/x-date-pickers/AdapterDateFnsV3";
21
+ import { LocalizationProvider as K } from "@mui/x-date-pickers/LocalizationProvider";
22
+ import { StaticDatePicker as Y } from "@mui/x-date-pickers/StaticDatePicker";
23
+ var dt = ({ transaction: e }) => {
24
+ const { onEvent: n } = S(), { updateTransaction: p } = v(), { updateManualTransaction: f } = b(), { common: o, transactions: r } = I(), _ = k(), [u, a] = c.useState(!1), [i, T] = c.useState(e.date), x = (m) => {
25
+ m && T(N(m));
25
26
  }, y = async () => {
26
27
  if (e.is_manual && !e.guid) {
27
- p({
28
+ f({
28
29
  ...e,
29
30
  date: i
30
31
  }), a(!1);
31
32
  return;
32
33
  }
33
- await d({
34
+ await p({
34
35
  ...e,
35
36
  date: i
36
- }), n(N.TRANSACTION_DETAILS_CLICK_DATE, { transaction_guid: e.guid }), a(!1);
37
- }, x = f.palette.mode === "dark" ? "grey.800" : "grey.100";
38
- return /* @__PURE__ */ l(K, {
37
+ }), n(g.TRANSACTION_DETAILS_CLICK_DATE, { transaction_guid: e.guid }), a(!1);
38
+ }, h = _.palette.mode === "dark" ? "grey.800" : "grey.100";
39
+ return /* @__PURE__ */ l(P, {
39
40
  className: "mx-txn-date-action",
40
41
  disableGutters: !0,
41
42
  disablePadding: !0,
42
- children: [/* @__PURE__ */ l(Y, {
43
+ children: [/* @__PURE__ */ l(R, {
43
44
  onClick: () => {
44
- n(E.ON_TRANSACTION_DATE_CLICK), a(!0);
45
+ n(D.ON_TRANSACTION_DATE_CLICK), a(!0);
45
46
  },
46
47
  children: [
47
- /* @__PURE__ */ t(P, { children: /* @__PURE__ */ t(M, {
48
- sx: { bgcolor: x },
48
+ /* @__PURE__ */ t(M, { children: /* @__PURE__ */ t(U, {
49
+ sx: { bgcolor: h },
49
50
  variant: "rounded",
50
- children: /* @__PURE__ */ t(c, {
51
+ children: /* @__PURE__ */ t(d, {
51
52
  name: "calendar_month",
52
53
  sx: { color: "text.primary" }
53
54
  })
54
55
  }) }),
55
- /* @__PURE__ */ t(w, {
56
- primary: o.date_title,
57
- secondary: /* @__PURE__ */ t(R, {
56
+ /* @__PURE__ */ t(B, {
57
+ primary: r.date_title,
58
+ secondary: /* @__PURE__ */ t(O, {
58
59
  bold: !0,
59
60
  sx: { color: "text.primary" },
60
61
  variant: "body1",
61
- children: C(m(e.date), S.FULL_MONTH_DAY_YEAR)
62
+ children: C(s(e.date), A.FULL_MONTH_DAY_YEAR)
62
63
  }),
63
64
  slotProps: { primary: {
64
65
  variant: "caption",
@@ -66,38 +67,43 @@ var st = ({ transaction: e }) => {
66
67
  fontWeight: "normal"
67
68
  } }
68
69
  }),
69
- /* @__PURE__ */ t(j, { children: /* @__PURE__ */ t(c, {
70
+ /* @__PURE__ */ t(w, { children: /* @__PURE__ */ t(d, {
70
71
  name: "chevron_right",
71
72
  sx: { color: "text.primary" }
72
73
  }) })
73
74
  ]
74
- }), /* @__PURE__ */ t(D, {
75
- ariaLabelClose: r.close_aria,
76
- isOpen: _,
75
+ }), /* @__PURE__ */ t(L, {
76
+ ariaLabelClose: o.close_aria,
77
+ isOpen: u,
77
78
  onClose: () => a(!1),
78
79
  onPrimaryAction: y,
79
- primaryText: r.save_button,
80
- secondaryText: r.cancel_button,
81
- title: o.date_edit_title,
82
- children: /* @__PURE__ */ t(O, {
80
+ primaryText: o.save_button,
81
+ secondaryText: o.cancel_button,
82
+ title: r.date_edit_title,
83
+ children: /* @__PURE__ */ t(E, {
83
84
  alignItems: "center",
84
85
  mt: 40,
85
- children: /* @__PURE__ */ t(I, {
86
- beginDate: m(i),
87
- copy: {
88
- nextAria: o.date_next_aria,
89
- prevAria: o.date_prev_aria,
90
- today: r.date_range_picker.today
86
+ children: /* @__PURE__ */ t(K, {
87
+ dateAdapter: F,
88
+ localeText: {
89
+ nextMonth: r.date_next_aria,
90
+ previousMonth: r.date_prev_aria,
91
+ todayButtonLabel: o.date_range_picker.today
91
92
  },
92
- onDateSelected: u,
93
- selectionType: h.Single
93
+ children: /* @__PURE__ */ t(Y, {
94
+ displayStaticWrapperAs: "desktop",
95
+ onChange: x,
96
+ slotProps: { actionBar: { actions: ["today"] } },
97
+ value: s(i),
98
+ views: ["day"]
99
+ })
94
100
  })
95
101
  })
96
102
  })]
97
103
  });
98
104
  };
99
105
  export {
100
- st as default
106
+ dt as default
101
107
  };
102
108
 
103
109
  //# sourceMappingURL=DateAction.es.js.map