@carto/meridian-ds 1.4.4-alpha-others.1 → 1.4.4-alpha-others.2

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 (90) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/Alert-D8jI1sG4.js +134 -0
  3. package/dist/Alert-zqtoWsBL.cjs +133 -0
  4. package/dist/ArrowDown-8fLj23Ge.cjs +31 -0
  5. package/dist/ArrowDown-CY_wMVJT.js +32 -0
  6. package/dist/MenuItem-Br2jY2lt.cjs +164 -0
  7. package/dist/MenuItem-CXnnE5lK.js +165 -0
  8. package/dist/OpenDiagonallyRight-5HZXh46V.js +59 -0
  9. package/dist/OpenDiagonallyRight-BrRyCV4Q.cjs +58 -0
  10. package/dist/SwatchSquare-DDi0beUM.js +51 -0
  11. package/dist/SwatchSquare-w-U8-O-P.cjs +50 -0
  12. package/dist/TablePaginationActions-CFGXm44W.cjs +5661 -0
  13. package/dist/{TablePaginationActions-WZ3P4O35.js → TablePaginationActions-KpTvhN4Y.js} +1086 -656
  14. package/dist/components/index.cjs +4403 -1
  15. package/dist/components/index.js +3235 -1857
  16. package/dist/custom-icons/index.cjs +5857 -1
  17. package/dist/custom-icons/index.js +2658 -2326
  18. package/dist/paletteUtils-B9ybmwiI.cjs +304 -0
  19. package/dist/paletteUtils-BHqJlHm9.js +288 -0
  20. package/dist/theme/index.cjs +3135 -1
  21. package/dist/theme/index.js +1050 -1011
  22. package/dist/types/components/organisms/CodeArea/CodeAreaDialog/CodeAreaDialog.d.ts +16 -0
  23. package/dist/types/components/organisms/CodeArea/CodeAreaDialog/CodeAreaDialog.d.ts.map +1 -0
  24. package/dist/types/components/organisms/CodeArea/CodeAreaDialog/CodeAreaDialogConfirmation.d.ts +16 -0
  25. package/dist/types/components/organisms/CodeArea/CodeAreaDialog/CodeAreaDialogConfirmation.d.ts.map +1 -0
  26. package/dist/types/components/organisms/CodeArea/CodeAreaDialog/CodeAreaDialogContent.d.ts +10 -0
  27. package/dist/types/components/organisms/CodeArea/CodeAreaDialog/CodeAreaDialogContent.d.ts.map +1 -0
  28. package/dist/types/components/organisms/CodeArea/CodeAreaDialog/CodeAreaDialogError.d.ts +8 -0
  29. package/dist/types/components/organisms/CodeArea/CodeAreaDialog/CodeAreaDialogError.d.ts.map +1 -0
  30. package/dist/types/components/organisms/CodeArea/CodeAreaField.d.ts +4 -0
  31. package/dist/types/components/organisms/CodeArea/CodeAreaField.d.ts.map +1 -0
  32. package/dist/types/components/organisms/CodeArea/CodeAreaFooter.d.ts +12 -0
  33. package/dist/types/components/organisms/CodeArea/CodeAreaFooter.d.ts.map +1 -0
  34. package/dist/types/components/organisms/CodeArea/CodeAreaHeader.d.ts +9 -0
  35. package/dist/types/components/organisms/CodeArea/CodeAreaHeader.d.ts.map +1 -0
  36. package/dist/types/components/organisms/CodeArea/CodeAreaInput.d.ts +28 -0
  37. package/dist/types/components/organisms/CodeArea/CodeAreaInput.d.ts.map +1 -0
  38. package/dist/types/components/organisms/CodeArea/CodeAreaTheme.d.ts +7 -0
  39. package/dist/types/components/organisms/CodeArea/CodeAreaTheme.d.ts.map +1 -0
  40. package/dist/types/components/organisms/CodeArea/index.d.ts +9 -0
  41. package/dist/types/components/organisms/CodeArea/index.d.ts.map +1 -0
  42. package/dist/types/components/organisms/CodeArea/types.d.ts +38 -0
  43. package/dist/types/components/organisms/CodeArea/types.d.ts.map +1 -0
  44. package/dist/types/components/organisms/CodeArea/utils.d.ts +5 -0
  45. package/dist/types/components/organisms/CodeArea/utils.d.ts.map +1 -0
  46. package/dist/types/components/organisms/index.d.ts +2 -0
  47. package/dist/types/components/organisms/index.d.ts.map +1 -1
  48. package/dist/types/localization/en.d.ts +6 -0
  49. package/dist/types/localization/en.d.ts.map +1 -1
  50. package/dist/types/localization/es.d.ts +6 -0
  51. package/dist/types/localization/es.d.ts.map +1 -1
  52. package/dist/types/localization/id.d.ts +6 -0
  53. package/dist/types/localization/id.d.ts.map +1 -1
  54. package/dist/types/localization/index.d.ts +18 -0
  55. package/dist/types/localization/index.d.ts.map +1 -1
  56. package/dist/types/utils/chartConstants.d.ts +3 -3
  57. package/dist/types/utils/chartConstants.d.ts.map +1 -1
  58. package/dist/types/widgets/CategoryWidgetUI/CategoryWidgetUI.d.ts +2 -2
  59. package/dist/types/widgets/CategoryWidgetUI/CategoryWidgetUI.d.ts.map +1 -1
  60. package/dist/types/widgets/PieWidgetUI/PieWidgetUI.d.ts +2 -2
  61. package/dist/types/widgets/PieWidgetUI/PieWidgetUI.d.ts.map +1 -1
  62. package/dist/types/widgets/PieWidgetUI/usePieCategories.d.ts +2 -2
  63. package/dist/types/widgets/PieWidgetUI/usePieCategories.d.ts.map +1 -1
  64. package/dist/types/widgets/TimeSeriesWidgetUI/TimeSeriesWidgetUI.d.ts.map +1 -1
  65. package/dist/types/widgets/TimeSeriesWidgetUI/components/TimeSeriesChart.d.ts +2 -5
  66. package/dist/types/widgets/TimeSeriesWidgetUI/components/TimeSeriesChart.d.ts.map +1 -1
  67. package/dist/types/widgets/TimeSeriesWidgetUI/timeSeriesUtils.d.ts +7 -0
  68. package/dist/types/widgets/TimeSeriesWidgetUI/timeSeriesUtils.d.ts.map +1 -1
  69. package/dist/types/widgets/TimeSeriesWidgetUI/types.d.ts +6 -0
  70. package/dist/types/widgets/TimeSeriesWidgetUI/types.d.ts.map +1 -0
  71. package/dist/types/widgets/comparative/ComparativeCategoryWidgetUI/ComparativeCategoryWidgetUI.d.ts +2 -2
  72. package/dist/types/widgets/comparative/ComparativeCategoryWidgetUI/ComparativeCategoryWidgetUI.d.ts.map +1 -1
  73. package/dist/types/widgets/comparative/ComparativeCategoryWidgetUI/transposeCategoryData.d.ts +2 -2
  74. package/dist/types/widgets/comparative/ComparativeCategoryWidgetUI/transposeCategoryData.d.ts.map +1 -1
  75. package/dist/types/widgets/index.d.ts +1 -0
  76. package/dist/types/widgets/index.d.ts.map +1 -1
  77. package/dist/widgets/index.cjs +7192 -21
  78. package/dist/widgets/index.js +5182 -3806
  79. package/package.json +6 -1
  80. package/dist/Alert-BAvr1f31.js +0 -130
  81. package/dist/Alert-DPGMxifE.cjs +0 -4
  82. package/dist/ArrowDown-BD0WmQR3.cjs +0 -1
  83. package/dist/ArrowDown-CMhYkZ2p.js +0 -31
  84. package/dist/MenuItem-Cd34y6F3.js +0 -165
  85. package/dist/MenuItem-Dbss-WG1.cjs +0 -1
  86. package/dist/SwatchSquare-C34ayL4L.cjs +0 -1
  87. package/dist/SwatchSquare-CVpwEFFV.js +0 -48
  88. package/dist/TablePaginationActions-Bp1DCaIE.cjs +0 -9
  89. package/dist/paletteUtils-BEwZhrLg.js +0 -262
  90. package/dist/paletteUtils-DLQVT9qo.cjs +0 -1
@@ -1 +1,3135 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("@mui/material"),p=require("react/jsx-runtime"),r=require("../TablePaginationActions-Bp1DCaIE.cjs"),a=require("@mui/icons-material"),M=require("../ArrowDown-BD0WmQR3.cjs"),w=require("@mui/x-date-pickers"),B=require("../MenuItem-Dbss-WG1.cjs"),n=require("../paletteUtils-DLQVT9qo.cjs"),V=1,g=.5,u=V+g,Q="M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-2.1 2.1S9.9 9.16 9.9 8s.94-2.1 2.1-2.1m0 9c2.97 0 6.1 1.46 6.1 2.1v1.1H5.9V17c0-.64 3.13-2.1 6.1-2.1M12 4C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 9c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4z",E="50%",_=.5,Y={MuiDivider:{defaultProps:{role:"separator"},styleOverrides:{root:({theme:o})=>({backgroundColor:"transparent",borderColor:o.palette.divider}),light:({theme:o})=>({borderColor:o.palette.white[12]})}},MuiTooltip:{defaultProps:{arrow:!0,placement:"top",enterDelay:1e3,leaveDelay:200},styleOverrides:{tooltip:({theme:o})=>({...o.typography.caption,fontWeight:500,maxWidth:"240px",backgroundColor:o.palette.black[90],'.MuiTooltip-popper[data-popper-placement*="top"] &':{marginBottom:o.spacing(g),"&.MuiTooltip-tooltipArrow":{marginBottom:o.spacing(u)}},'.MuiTooltip-popper[data-popper-placement*="right"] &':{marginLeft:o.spacing(g),"&.MuiTooltip-tooltipArrow":{marginLeft:o.spacing(u)}},'.MuiTooltip-popper[data-popper-placement*="bottom"] &':{marginTop:o.spacing(g),"&.MuiTooltip-tooltipArrow":{marginTop:o.spacing(u)}},'.MuiTooltip-popper[data-popper-placement*="left"] &':{marginRight:o.spacing(g),"&.MuiTooltip-tooltipArrow":{marginRight:o.spacing(u)}}}),arrow:({theme:o})=>({height:o.spacing(V),color:o.palette.black[90]})}},MuiPopper:{styleOverrides:{root:({theme:o})=>({"& .MuiPaper-root":{marginTop:o.spacing(.5)}})}},MuiPopover:{styleOverrides:{root:({theme:o})=>({"& .MuiPaper-root":{marginTop:o.spacing(.5)}})}},MuiDialog:{defaultProps:{maxWidth:"md"}},MuiDialogTitle:{defaultProps:{variant:"subtitle1"},styleOverrides:{root:({theme:o})=>({padding:o.spacing(3,3,2)})}},MuiDialogContent:{styleOverrides:{root:({theme:o})=>({"& .MuiFormGroup-root":{padding:o.spacing(1,0)}})}},MuiDialogContentText:{defaultProps:{variant:"body2"},styleOverrides:{root:({theme:o})=>({color:o.palette.text.primary})}},MuiTablePagination:{defaultProps:{SelectProps:{variant:"outlined",size:"small"},labelDisplayedRows:({from:o,to:i,count:c})=>p.jsxs(p.Fragment,{children:[p.jsx(r.Typography,{component:"span",variant:"inherit",weight:"strong",color:"textPrimary",children:`${o}-${i}`}),` of ${c}`]}),ActionsComponent:r.TablePaginationActions},styleOverrides:{root:()=>({borderBottom:0}),toolbar:({theme:o})=>({minHeight:"0 !important",padding:"0 !important",height:o.spacing(6)}),selectLabel:({theme:o})=>({margin:0,...o.typography.caption,fontWeight:o.typography.fontWeightMedium}),selectIcon:({theme:o})=>({"&.MuiSvgIcon-root":{right:o.spacing(1)}}),input:({theme:o})=>({marginRight:o.spacing(2),marginLeft:o.spacing(1),width:"auto",paddingRight:o.spacing(3)}),displayedRows:({theme:o})=>({color:o.palette.text.secondary})}},MuiTable:{defaultProps:{stickyHeader:!0}},MuiTableRow:{styleOverrides:{root:({theme:o})=>({transition:"background-color 0.25s ease",borderColor:o.palette.divider,"&.MuiTableRow-hover:hover":{cursor:"pointer"}})}},MuiTableCell:{styleOverrides:{root:({theme:o})=>({padding:o.spacing(.5,2),height:o.spacing(6),"&.MuiTableCell-sizeSmall":{height:o.spacing(4)},"&.MuiTableCell-footer":{padding:0}}),head:({theme:o})=>({...o.typography.caption,fontWeight:o.typography.fontWeightMedium,color:o.palette.text.primary}),stickyHeader:({theme:o})=>({backgroundColor:o.palette.common.white}),paddingCheckbox:({theme:o})=>({padding:o.spacing(.5,1)}),paddingNone:()=>({padding:0})}},MuiChip:{defaultProps:{color:"primary"},styleOverrides:{root:({theme:o})=>({maxWidth:"192px",padding:o.spacing(0,.5),"& .MuiAvatar-root":{width:r.ICON_SIZE_LARGE,minWidth:r.ICON_SIZE_LARGE,height:r.ICON_SIZE_LARGE,margin:0,color:o.palette.secondary.contrastText,backgroundColor:o.palette.background.paper,border:`1px solid ${o.palette.action.hover}`},"& .MuiChip-icon":{margin:0,marginLeft:o.spacing(.5)},"& img":{width:r.ICON_SIZE_LARGE,minWidth:r.ICON_SIZE_LARGE,height:r.ICON_SIZE_LARGE},"&.MuiChip-root.Mui-disabled":{color:o.palette.text.disabled,backgroundColor:o.palette.action.disabledBackground,opacity:1,"& .MuiChip-deleteIcon, & .MuiChip-icon":{color:o.palette.action.disabled},"& .MuiAvatar-root":{opacity:.6}},"& .MuiChip-deleteIcon":{color:o.palette.text.hint}}),filled:({theme:o})=>({border:0,backgroundColor:o.palette.default.main,"& .MuiChip-iconColorPrimary":{color:o.palette.primary.contrastText},"& .MuiChip-deleteIcon:hover":{color:o.palette.text.primary}}),filledPrimary:({theme:o})=>({backgroundColor:o.palette.primary.main,"& .MuiChip-deleteIcon":{color:o.palette.white[60],"&:hover":{color:o.palette.common.white}}}),filledSecondary:({theme:o})=>({backgroundColor:o.palette.secondary.main}),outlined:({theme:o})=>({borderColor:o.palette.default.outlinedBorder,"&.MuiChip-root.Mui-disabled":{borderColor:o.palette.default.outlinedBorder,backgroundColor:"transparent"},"& .MuiChip-deleteIcon:hover":{color:o.palette.text.primary}}),outlinedPrimary:({theme:o})=>({borderColor:o.palette.primary.main}),outlinedSecondary:({theme:o})=>({borderColor:o.palette.secondary.main}),colorSuccess:({theme:o})=>({"&.MuiChip-outlined":{color:o.palette.success.dark,borderColor:o.palette.success.main},"&.MuiChip-filled":{color:o.palette.success.dark,backgroundColor:o.palette.success.relatedLight},"& .MuiChip-icon":{color:o.palette.success.main}}),colorInfo:({theme:o})=>({"&.MuiChip-outlined":{color:o.palette.primary.dark,borderColor:o.palette.primary.main},"&.MuiChip-filled":{color:o.palette.primary.dark,backgroundColor:o.palette.primary.relatedLight},"& .MuiChip-icon":{color:o.palette.info.main}}),colorError:({theme:o})=>({"&.MuiChip-outlined":{color:o.palette.error.dark,borderColor:o.palette.error.main},"&.MuiChip-filled":{color:o.palette.error.dark,backgroundColor:o.palette.error.relatedLight},"& .MuiChip-icon":{color:o.palette.error.main}}),colorWarning:({theme:o})=>({"&.MuiChip-outlined":{color:o.palette.warning.relatedDark,borderColor:o.palette.warning.main},"&.MuiChip-filled":{color:o.palette.warning.relatedDark,backgroundColor:o.palette.warning.relatedLight},"& .MuiChip-icon":{color:o.palette.warning.main}}),sizeSmall:({theme:o})=>({"& img":{width:r.ICON_SIZE_MEDIUM,minWidth:r.ICON_SIZE_MEDIUM,height:r.ICON_SIZE_MEDIUM},"& .MuiAvatar-root":{width:r.ICON_SIZE_MEDIUM,minWidth:r.ICON_SIZE_MEDIUM,height:r.ICON_SIZE_MEDIUM},"& .MuiChip-icon":{marginLeft:o.spacing(.25)}}),label:({theme:o})=>({...o.typography.button,padding:o.spacing(0,.75)}),labelSmall:({theme:o})=>({...o.typography.caption,fontWeight:500,padding:o.spacing(0,.5)}),deleteIcon:()=>({width:r.ICON_SIZE_MEDIUM,height:r.ICON_SIZE_MEDIUM,margin:0,marginLeft:"2px",marginRight:"3px",transition:"color 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms"}),deleteIconSmall:({theme:o})=>({width:o.spacing(2),height:o.spacing(2),marginRight:0}),clickable:({theme:o})=>({"&:active":{boxShadow:"none"},"&.MuiChip-outlined":{transitionProperty:"background, color, border-color",transitionDuration:"300ms",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)","&:hover":{backgroundColor:"transparent","&.MuiChip-colorPrimary":{color:o.palette.primary.dark,borderColor:o.palette.primary.dark},"&.MuiChip-colorSecondary":{color:o.palette.secondary.dark,borderColor:o.palette.secondary.dark},"&.MuiChip-colorDefault":{borderColor:o.palette.default.dark},"&.MuiChip-colorSuccess":{color:o.palette.success.dark,borderColor:o.palette.success.dark},"&.MuiChip-colorInfo":{color:o.palette.info.dark,borderColor:o.palette.info.dark},"&.MuiChip-colorError":{color:o.palette.error.dark,borderColor:o.palette.error.dark},"&.MuiChip-colorWarning":{color:o.palette.warning.dark,borderColor:o.palette.warning.dark}}},"&.MuiChip-filled":{"&:hover":{"&.MuiChip-colorSecondary":{backgroundColor:o.palette.secondary.light},"&.MuiChip-colorDefault":{backgroundColor:o.palette.default.dark},"&.MuiChip-colorSuccess":{backgroundColor:s.alpha(o.palette.success.main,.25)},"&.MuiChip-colorInfo":{backgroundColor:s.alpha(o.palette.info.main,.12)},"&.MuiChip-colorError":{backgroundColor:s.alpha(o.palette.error.main,.12)},"&.MuiChip-colorWarning":{backgroundColor:s.alpha(o.palette.warning.main,.25)}}}})}},MuiAvatar:{styleOverrides:{root:({theme:o})=>({overflow:"initial",color:o.palette.secondary.contrastText,backgroundColor:o.palette.secondary.main,"& .MuiAvatar-fallback":{path:{d:`path('${Q}') !important`}}}),img:({theme:o})=>({boxShadow:`0 0 0 1px ${o.palette.default.outlinedBorder}`}),circular:()=>({borderRadius:E,"& img":{borderRadius:E}}),rounded:({theme:o})=>({borderRadius:o.spacing(_),"& img":{borderRadius:o.spacing(_)}})}},MuiSkeleton:{defaultProps:{animation:"wave"}},MuiTypography:{defaultProps:{color:"textPrimary",variantMapping:{caption:"p",overline:"p",overlineDelicate:"p"}}},MuiSvgIcon:{styleOverrides:{root:()=>({fontSize:r.ICON_SIZE_MEDIUM}),fontSizeSmall:()=>({fontSize:r.ICON_SIZE_SMALL}),fontSizeLarge:()=>({fontSize:r.ICON_SIZE_LARGE})}}},R=r.getSpacing(2),l=r.getSpacing(3),e=r.getSpacing(4),d=r.getSpacing(6),P=r.getSpacing(.5),X={MuiButtonBase:{defaultProps:{disableRipple:!0},styleOverrides:{root:()=>({"& .MuiSvgIcon-root, & svg":{display:"flex",fontSize:r.ICON_SIZE_MEDIUM,width:r.ICON_SIZE_MEDIUM,minWidth:r.ICON_SIZE_MEDIUM,height:r.ICON_SIZE_MEDIUM}})}},MuiButton:{defaultProps:{disableElevation:!0},styleOverrides:{root:({ownerState:o,theme:i})=>({"&:hover, &:focus-visible":{boxShadow:i.shadows[0],...o.variant!=="contained"&&{...o.color==="primary"&&{backgroundColor:i.palette.primary.background},...o.color==="secondary"&&{backgroundColor:i.palette.secondary.background},...o.color==="error"&&{background:i.palette.error.relatedLight}},...o.variant==="contained"&&o.color==="secondary"&&{backgroundColor:i.palette.secondary.light}},"& svg:not(.doNotFillIcon) path":{fill:"currentColor"},"& + .MuiButtonBase-root":{marginLeft:i.spacing(1)}}),contained:({theme:o})=>({boxShadow:"none","&.Mui-disabled":{color:o.palette.text.disabled,backgroundColor:o.palette.action.disabledBackground}}),text:({theme:o})=>({minWidth:o.spacing(7)}),outlined:({theme:o})=>({"&.Mui-disabled":{color:o.palette.text.disabled,borderColor:o.palette.default.outlinedBorder}}),outlinedPrimary:({theme:o})=>({borderColor:o.palette.primary.main}),outlinedSecondary:({theme:o})=>({borderColor:o.palette.secondary.main}),outlinedError:({theme:o})=>({borderColor:o.palette.error.main}),containedPrimary:({theme:o})=>({"&:hover, &:focus-visible":{backgroundColor:o.palette.primary.dark}}),containedError:({theme:o})=>({"&:hover, &:focus-visible":{backgroundColor:o.palette.error.dark}}),startIcon:({theme:o})=>({marginRight:o.spacing(.75),"& .MuiSvgIcon-root, & svg":{fontSize:r.ICON_SIZE_MEDIUM,width:r.ICON_SIZE_MEDIUM,minWidth:r.ICON_SIZE_MEDIUM,height:r.ICON_SIZE_MEDIUM},"&.MuiButton-iconSizeSmall":{marginRight:o.spacing(.5),marginLeft:o.spacing(-.5)}}),endIcon:({theme:o})=>({marginLeft:o.spacing(.75),"& .MuiSvgIcon-root, & svg":{fontSize:r.ICON_SIZE_MEDIUM,width:r.ICON_SIZE_MEDIUM,minWidth:r.ICON_SIZE_MEDIUM,height:r.ICON_SIZE_MEDIUM},"&.MuiButton-iconSizeSmall":{marginLeft:o.spacing(.5),marginRight:o.spacing(-.5)}}),sizeSmall:({theme:o,ownerState:i})=>({height:l,padding:o.spacing(0,1.5),...o.typography.caption,lineHeight:l,fontWeight:500,letterSpacing:"0.4px",...i.variant==="text"&&{padding:o.spacing(0,1)}}),sizeMedium:({theme:o,ownerState:i})=>({height:e,padding:o.spacing(0,2),lineHeight:e,...i.variant==="text"&&{padding:o.spacing(0,1)}}),sizeLarge:({theme:o,ownerState:i})=>({height:d,padding:o.spacing(0,2.5),...o.typography.body1,lineHeight:d,fontWeight:500,letterSpacing:"0.25px",...i.variant==="text"&&{padding:o.spacing(0,2)}})},variants:[{props:{variant:"contained",color:"default"},style:({theme:o})=>({color:o.palette.text.primary,backgroundColor:o.palette.default.main,borderColor:o.palette.text.primary,"&.Mui-disabled":{color:o.palette.text.disabled,backgroundColor:o.palette.action.disabledBackground},"&:hover, &:focus-visible":{backgroundColor:o.palette.default.dark}})},{props:{variant:"outlined",color:"default"},style:({theme:o})=>({color:o.palette.text.primary,borderColor:o.palette.text.primary,"&.Mui-disabled":{color:o.palette.text.disabled,borderColor:o.palette.default.outlinedBorder},"&:hover, &:focus-visible":{backgroundColor:o.palette.action.hover,borderColor:o.palette.text.primary}})},{props:{variant:"text",color:"default"},style:({theme:o})=>({color:o.palette.text.primary,"&.Mui-disabled":{color:o.palette.text.disabled},"&:hover, &:focus-visible":{backgroundColor:o.palette.action.hover}})}]},MuiButtonGroup:{defaultProps:{disableRipple:!0,disableElevation:!0},styleOverrides:{root:({ownerState:o,theme:i})=>({"& .MuiButton-root + .MuiButton-root":{marginLeft:0},...o.variant==="text"&&{boxShadow:i.shadows[1],borderColor:i.palette.default.dark,"& .MuiButtonGroup-grouped:not(:last-of-type)":{borderColor:i.palette.default.dark}},...o.variant==="outlined"&&{...o.color==="default"&&{"& .MuiButtonBase-root.Mui-disabled":{borderColor:i.palette.text.primary}},...o.color==="primary"&&{"& .MuiButtonBase-root.Mui-disabled":{borderColor:i.palette.primary.main}},...o.color==="secondary"&&{"& .MuiButtonBase-root.Mui-disabled":{borderColor:i.palette.secondary.main}},...o.orientation!=="vertical"&&{"& .MuiButtonGroup-grouped:not(:last-of-type):hover, & .Mui-disabled:not(:last-of-type)":{borderRightColor:"transparent"}}},...o.variant==="contained"&&{...o.color==="default"&&{"& .MuiButtonGroup-grouped:not(:last-of-type)":{borderRightColor:i.palette.default.dark,"&.Mui-disabled":{...o.color==="default"&&{borderColor:i.palette.default.dark}}}}}})}},MuiIconButton:{styleOverrides:{root:({ownerState:o,theme:i})=>({position:"relative",overflow:"hidden",borderRadius:i.spacing(.5),...o.color==="default"&&{color:i.palette.text.secondary},"& .MuiSvgIcon-root, & svg":{fontSize:r.ICON_SIZE_MEDIUM,width:r.ICON_SIZE_MEDIUM,minWidth:r.ICON_SIZE_MEDIUM,height:r.ICON_SIZE_MEDIUM},"& svg":{fill:"currentColor","& path":{fillOpacity:1}},"& svg:not(.doNotFillIcon) path":{fill:"currentColor"},"&.Mui-disabled svg:not(.doNotFillIcon) path":{fill:i.palette.text.disabled},"&:hover, &:focus-visible":{...o.color==="default"&&{backgroundColor:i.palette.action.hover},...o.color==="primary"&&{backgroundColor:i.palette.primary.background},...o.color==="secondary"&&{backgroundColor:i.palette.secondary.background},...o.color==="error"&&{backgroundColor:i.palette.error.relatedLight},...o.color==="warning"&&{backgroundColor:i.palette.warning.relatedLight}}}),sizeSmall:()=>({width:l,height:l}),sizeMedium:()=>({width:e,height:e}),sizeLarge:()=>({width:d,height:d})},variants:[{props:{size:"xsmall"},style:()=>({width:R,height:R,"& .MuiSvgIcon-root, & svg":{fontSize:r.ICON_SIZE_SMALL,width:r.ICON_SIZE_SMALL,minWidth:r.ICON_SIZE_SMALL,height:r.ICON_SIZE_SMALL}})},{props:{variant:"contained"},style:({theme:o})=>({color:o.palette.text.primary,backgroundColor:o.palette.default.main,"&:hover":{backgroundColor:o.palette.default.dark},"&.MuiIconButton-colorSecondary":{color:o.palette.secondary.contrastText,backgroundColor:o.palette.secondary.main,"&:hover":{backgroundColor:o.palette.secondary.light}},"&.MuiIconButton-colorPrimary":{color:o.palette.primary.contrastText,backgroundColor:o.palette.primary.main,"&:hover":{backgroundColor:o.palette.primary.dark}},"&.MuiIconButton-colorError":{color:o.palette.error.contrastText,backgroundColor:o.palette.error.main,"&:hover":{backgroundColor:o.palette.error.dark}},"&.MuiIconButton-colorWarning":{color:o.palette.warning.contrastText,backgroundColor:o.palette.warning.main,"&:hover":{backgroundColor:o.palette.warning.light}},"&[disabled]":{color:o.palette.text.disabled,backgroundColor:o.palette.action.disabledBackground}})},{props:{variant:"outlined"},style:({theme:o})=>({color:o.palette.text.primary,border:`1px solid ${o.palette.text.primary}`,"&:hover":{backgroundColor:o.palette.action.hover},"&.MuiIconButton-colorSecondary":{color:o.palette.secondary.main,borderColor:o.palette.secondary.main,"&:hover":{backgroundColor:o.palette.secondary.background}},"&.MuiIconButton-colorPrimary":{color:o.palette.primary.main,borderColor:o.palette.primary.main,"&:hover":{backgroundColor:o.palette.primary.background}},"&.MuiIconButton-colorError":{color:o.palette.error.main,borderColor:o.palette.error.main,"&:hover":{backgroundColor:o.palette.error.relatedLight}},"&.MuiIconButton-colorWarning":{color:o.palette.warning.main,borderColor:o.palette.warning.main,"&:hover":{backgroundColor:o.palette.warning.relatedLight}},"&[disabled]":{color:o.palette.text.disabled,borderColor:o.palette.default.outlinedBorder}})}]},MuiToggleButton:{styleOverrides:{root:({theme:o})=>({minWidth:e,height:e,padding:o.spacing(0,1),color:o.palette.text.secondary,border:"none",borderRadius:P,transition:"background-color 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms","&:hover":{backgroundColor:o.palette.action.hover},"& + &":{marginLeft:o.spacing(.5)},".MuiSvgIcon-root, & svg":{margin:o.spacing(0,-.75)},"&.Mui-selected":{color:o.palette.primary.main,backgroundColor:o.palette.primary.background,"&:hover":{backgroundColor:o.palette.action.hover}},"&.Mui-disabled":{border:"none"}}),sizeLarge:({theme:o})=>({minWidth:d,height:d,...o.typography.body1}),sizeSmall:({theme:o})=>({minWidth:l,height:l,...o.typography.caption,fontWeight:500})}},MuiToggleButtonGroup:{defaultProps:{orientation:"horizontal",exclusive:!0},styleOverrides:{root:({theme:o})=>({alignItems:"center",justifyContent:"center",borderRadius:o.spacing(1),boxShadow:o.shadows[1],backgroundColor:o.palette.background.paper,"& .MuiToggleButtonGroup-grouped:not(:first-of-type), &.Mui-Selected, & .MuiToggleButtonGroup-grouped:not(:last-of-type)":{borderRadius:P},".MuiDivider-root":{"&.MuiDivider-vertical":{height:d,margin:o.spacing(0,1),marginLeft:o.spacing(.5)},"&.MuiDivider-horizontal":{width:d,margin:o.spacing(1,0),marginTop:o.spacing(.5)}},".MuiToggleButton-sizeSmall":{"& + .MuiDivider-root.MuiDivider-vertical":{height:e},"& + .MuiDivider-root.MuiDivider-horizontal":{width:e}}}),groupedHorizontal:({theme:o})=>({height:e,margin:o.spacing(1),"&:not(:last-of-type)":{marginRight:o.spacing(.5),marginLeft:0,borderLeft:"none"},"&:first-of-type:not(.MuiDivider-root)":{marginLeft:o.spacing(1)},"&:last-of-type:not(.MuiDivider-root)":{marginLeft:0},"&.MuiToggleButton-sizeSmall:not(.MuiDivider-root)":{height:l,margin:o.spacing(.5),"&:not(:first-of-type)":{marginLeft:0}}}),groupedVertical:({theme:o})=>({width:e,margin:o.spacing(1),"&.MuiToggleButton-root":{marginLeft:o.spacing(1),marginBottom:o.spacing(.5),"&:last-of-type":{marginBottom:o.spacing(1)},"&:not(:first-of-type)":{marginTop:0}},"&.MuiToggleButton-sizeSmall":{width:l,margin:o.spacing(.5),"&:last-of-type":{marginBottom:o.spacing(.5)}}})}},MuiFab:{defaultProps:{color:"primary"},styleOverrides:{root:({ownerState:o,theme:i})=>({"&:focus":{boxShadow:i.shadows[6]},"& .MuiSvgIcon-root, & svg":{fontSize:r.ICON_SIZE_LARGE,width:r.ICON_SIZE_LARGE,minWidth:r.ICON_SIZE_LARGE,height:r.ICON_SIZE_LARGE},"&.MuiFab-extended":{...i.typography.body1,fontWeight:500,width:"auto",height:i.spacing(7),paddingRight:i.spacing(3),borderRadius:i.spacing(8),"& .MuiSvgIcon-root":{marginRight:i.spacing(1.5)}},...o.color==="default"&&{color:i.palette.text.primary,backgroundColor:i.palette.background.paper,"&:hover, &:focus-visible":{backgroundColor:i.palette.default.light}}}),sizeSmall:({theme:o})=>({width:o.spacing(4),height:o.spacing(4),minHeight:o.spacing(4),"& .MuiSvgIcon-root, & svg":{fontSize:r.ICON_SIZE_MEDIUM,width:r.ICON_SIZE_MEDIUM,minWidth:r.ICON_SIZE_MEDIUM,height:r.ICON_SIZE_MEDIUM},"&.MuiFab-extended":{...o.typography.caption,width:"auto",height:o.spacing(4),paddingRight:o.spacing(2),"& .MuiSvgIcon-root":{marginRight:o.spacing(1)}}}),sizeMedium:({theme:o})=>({"&.MuiFab-extended":{...o.typography.button,height:o.spacing(6)}}),secondary:({theme:o})=>({"&:hover":{backgroundColor:o.palette.secondary.light}})}}},b=2.25,x=3,z=2,A=3,L=4,T={root:({ownerState:o,theme:i})=>({padding:i.spacing(.5),...o.size==="small"&&{padding:"3px"},...o.readOnly===!0&&{pointerEvents:"none",color:i.palette.text.disabled,"&.Mui-checked":{color:i.palette.text.disabled}},"&:hover, &:focus-visible":{backgroundColor:i.palette.primary.background},"& + .MuiFormControlLabel-label":{...i.typography.body2,marginLeft:i.spacing(.25),...o.size==="small"&&{marginLeft:i.spacing(.5)}},"& .MuiSvgIcon-root":{fontSize:i.spacing(x),width:i.spacing(x),minWidth:i.spacing(x),height:i.spacing(x),...o.size==="small"&&{fontSize:i.spacing(b),width:i.spacing(b),minWidth:i.spacing(b),height:i.spacing(b)}}})},D={root:({theme:o})=>({position:"static",transform:"none",marginBottom:o.spacing(1),...o.typography.caption,fontWeight:500,color:o.palette.text.primary}),sizeSmall:({theme:o})=>({marginBottom:o.spacing(.5)}),standard:()=>({marginBottom:0}),asterisk:({theme:o})=>({"&, &.Mui-error":{color:"transparent"},"&::after":{content:'"(required)"',marginLeft:o.spacing(-.5),color:o.palette.text.secondary,fontWeight:400,".Mui-disabled &":{color:o.palette.text.disabled}}})},J={MuiCheckbox:{defaultProps:{size:"small"},styleOverrides:{...T}},MuiRadio:{defaultProps:{size:"small"},styleOverrides:{...T}},MuiTextField:{defaultProps:{fullWidth:!0,size:"small",InputLabelProps:{shrink:!0},SelectProps:{IconComponent:M.ArrowDown,size:"small"}},styleOverrides:{root:({ownerState:o,theme:i})=>({"& legend":{display:"none"},...o.select===!0&&{"& .MuiInputBase-root":{padding:0,"&.MuiOutlinedInput-root, &.MuiFilledInput-root":{padding:0},"& .MuiInputAdornment-positionEnd":{marginRight:i.spacing(3)},"& .MuiSelect-select":{padding:i.spacing(1.5),"&.MuiInputBase-input":{paddingLeft:i.spacing(2),paddingRight:i.spacing(5),"&.MuiSelect-standard":{paddingLeft:0}},"&:focus":{background:"transparent"},"& .MuiTypography-root":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}},"& .MuiSelect-icon":{right:i.spacing(2),color:i.palette.text.secondary},"& .MuiSelect-iconStandard":{right:0}},"& .MuiInputBase-sizeSmall":{"&.MuiInputBase-root.MuiFilledInput-root":{padding:0},"& .MuiSelect-select":{...i.typography.body2,padding:i.spacing(.75),"&.MuiInputBase-input":{paddingLeft:i.spacing(1.5),paddingRight:i.spacing(4)}},"&.MuiOutlinedInput-root.MuiInputBase-sizeSmall":{padding:0},"& .MuiSelect-icon":{right:i.spacing(1.5)}}}})}},MuiInputBase:{styleOverrides:{root:({theme:o})=>({height:o.spacing(6),...o.typography.body1,"& input":{padding:0,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","&::placeholder":{opacity:1,color:o.palette.text.hint},"&:read-only::placeholder":{color:o.palette.text.disabled},"&.Mui-disabled::placeholder":{color:o.palette.text.disabled},"&:focus-visible":{outline:"none !important",boxShadow:"none !important"}},"&.Mui-disabled":{cursor:"not-allowed","& .Mui-disabled":{cursor:"not-allowed"}},"&.MuiInputBase-formControl::after":{top:0,transform:"none",opacity:0},"&.MuiInputBase-formControl.Mui-focused::after":{transform:"none",opacity:1},"& legend":{display:"none"},"& .MuiButtonBase-root.MuiMenuItem-root":{padding:0,"&:hover":{backgroundColor:"transparent"},[o.breakpoints.up("sm")]:{minHeight:"initial"}},"&.MuiFilledInput-root":{padding:o.spacing(1,2),borderRadius:o.spacing(.5),backgroundColor:o.palette.default.background,"&:hover":{backgroundColor:o.palette.default.background},"&::before":{top:0,borderRadius:o.spacing(.5),border:"1px solid transparent",transition:"border 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms"},"&:hover:not(.Mui-disabled)::before":{borderColor:o.palette.text.primary},"&::after":{borderRadius:o.spacing(.5),border:"1px solid transparent"},"&.MuiInputBase-sizeSmall":{padding:o.spacing(.5,1.5)},"&.Mui-focused":{backgroundColor:o.palette.background.paper,"&::after":{border:`2px solid ${o.palette.primary.main}`}},"&.Mui-disabled":{backgroundColor:o.palette.default.background,"&::before":{borderBottomStyle:"solid"}},"&.Mui-error::after":{opacity:1,border:`2px solid ${o.palette.error.light}`},"&.Mui-readOnly":{"&.Mui-focused":{backgroundColor:o.palette.default.background}}},"&.MuiOutlinedInput-root":{padding:o.spacing(1,2),"&.MuiInputBase-sizeSmall":{padding:o.spacing(.5,1.5)},"&.Mui-focused":{backgroundColor:o.palette.background.paper},"&.Mui-disabled":{backgroundColor:o.palette.default.background},"&.Mui-readOnly":{backgroundColor:o.palette.default.background,"&.Mui-focused":{backgroundColor:o.palette.default.background}},"& .MuiOutlinedInput-notchedOutline":{top:0,borderColor:o.palette.default.outlinedBorder,transition:"border 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms"},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{transition:"none"},"&.Mui-error .MuiOutlinedInput-notchedOutline":{border:`2px solid ${o.palette.error.light}`}},"&.MuiInput-underline":{marginTop:0,padding:0,"&::before":{borderColor:o.palette.default.outlinedBorder},"&:hover:not(.Mui-disabled)::before":{borderBottom:`1px solid ${o.palette.text.primary}`},"&:not(.Mui-disabled)::after":{borderBottom:"1px solid transparent"},"&.Mui-focused::after":{borderBottom:`2px solid ${o.palette.primary.main}`},"&.Mui-error::after":{opacity:1,borderBottom:`2px solid ${o.palette.error.light}`},"&.Mui-disabled::before":{borderBottomStyle:"solid"}},"&.MuiInputBase-multiline":{height:"auto",minHeight:o.spacing(12),alignItems:"flex-start",padding:o.spacing(0,.25),"& textarea":{padding:o.spacing(1.5,1.75),...o.typography.body1,"&::placeholder":{opacity:1,color:o.palette.text.hint},"&.Mui-disabled::placeholder":{color:o.palette.text.disabled},"&:focus-visible":{outline:"none !important",boxShadow:"none !important"}},"&.MuiInputBase-sizeSmall":{minHeight:o.spacing(9),padding:o.spacing(0,.25),"& textarea":{padding:o.spacing(1,1.25),...o.typography.body2}}},"&.MuiInputBase-root .MuiSelect-multiple.MuiInputBase-input":{paddingLeft:0,paddingRight:o.spacing(3)}}),sizeSmall:({theme:o})=>({height:o.spacing(4),padding:o.spacing(0,1.5),"& input":{...o.typography.body2}})}},MuiInputAdornment:{styleOverrides:{root:({theme:o})=>({"& .MuiTypography-root":{...o.typography.body1,color:o.palette.text.secondary},"&.MuiInputAdornment-sizeSmall":{"& .MuiTypography-root":{...o.typography.body2}},"&.MuiInputAdornment-positionStart.MuiInputAdornment-root:not(.MuiInputAdornment-hiddenLabel)":{marginTop:0},"& .MuiSvgIcon-root, & svg":{fontSize:r.ICON_SIZE_MEDIUM,width:r.ICON_SIZE_MEDIUM,minWidth:r.ICON_SIZE_MEDIUM,height:r.ICON_SIZE_MEDIUM,color:o.palette.text.secondary},".Mui-disabled &":{"& .MuiTypography-root, & .MuiSvgIcon-root":{color:o.palette.text.disabled}}})}},MuiFormControl:{defaultProps:{fullWidth:!0}},MuiFormControlLabel:{styleOverrides:{root:({ownerState:o,theme:i})=>({marginLeft:i.spacing(-.5),"& .MuiSwitch-root":{marginLeft:i.spacing(.5)},...o.readOnly===!0&&{pointerEvents:"none"}})}},MuiFormHelperText:{styleOverrides:{root:({theme:o})=>({margin:0,marginTop:o.spacing(1)})}},MuiInputLabel:{styleOverrides:{...D}},MuiFormLabel:{styleOverrides:{...D}},MuiSelect:{defaultProps:{IconComponent:M.ArrowDown,fullWidth:!0,size:"small"},styleOverrides:{root:({theme:o})=>({padding:0,"& .MuiSelect-icon":{right:o.spacing(2),color:o.palette.text.secondary},"&.Mui-disabled .MuiSelect-icon, &.Mui-readOnly .MuiSelect-icon":{color:o.palette.text.disabled},"& .MuiSelect-iconStandard":{right:0},"& legend":{display:"none"},"&.MuiOutlinedInput-root, &.MuiFilledInput-root":{padding:0},"&.MuiFilledInput-root, &.MuiInput-underline":{"&.Mui-focused::after":{height:"100%",transition:"none"}},"&.MuiInputBase-sizeSmall":{...o.typography.body2,"& .MuiSelect-select":{"&.MuiInputBase-input":{paddingLeft:o.spacing(1.5),paddingRight:o.spacing(4)},"&.MuiSelect-standard":{paddingLeft:0}},"&.MuiOutlinedInput-root.MuiInputBase-sizeSmall, &.MuiFilledInput-root.MuiInputBase-sizeSmall":{padding:0},"& .MuiSelect-icon":{right:o.spacing(1.5)}}}),select:({theme:o})=>({padding:o.spacing(1.5),"&.MuiInputBase-input":{paddingLeft:o.spacing(2),paddingRight:o.spacing(5),"&.MuiSelect-standard":{paddingLeft:0}},"&:focus":{background:"transparent"},"&:focus-visible":{outline:"none !important",boxShadow:"none !important"},"& .MuiTypography-root":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},"&.MuiInputBase-inputSizeSmall":{padding:o.spacing(.75)}})}},MuiAutocomplete:{defaultProps:{size:"small",fullWidth:!0,popupIcon:p.jsx(M.ArrowDown,{}),clearIcon:p.jsx(s.Tooltip,{title:"Clear",children:p.jsx(a.Cancel,{"data-testid":"cancel-icon-autocomplete"})}),clearText:"",ChipProps:{color:"default"},limitTags:1,componentsProps:{paper:{elevation:8}}},styleOverrides:{root:({ownerState:o,theme:i})=>({"&.MuiAutocomplete-root .MuiFormControl-root":{".MuiInputBase-root":{gap:i.spacing(.5),height:"auto",minHeight:i.spacing(6),padding:i.spacing(1,2),paddingRight:i.spacing(5),".MuiInputBase-input":{padding:0},...o.multiple===!0&&{paddingLeft:i.spacing(1),".MuiInputBase-input":{padding:0,marginLeft:i.spacing(1)}},...o.size==="small"&&{minHeight:i.spacing(4),padding:i.spacing(.5,1.5),paddingRight:i.spacing(4),...o.multiple===!0&&{paddingLeft:i.spacing(.5)}},...o.readOnly===!0&&{backgroundColor:i.palette.default.background},"&.Mui-disabled":{pointerEvents:"none"}},".MuiFilledInput-root .MuiAutocomplete-tag":{backgroundColor:"transparent",border:`1px solid ${i.palette.default.main}`}},"&.MuiAutocomplete-hasClearIcon .MuiFormControl-root .MuiInputBase-root":{paddingRight:i.spacing(8.5),...o.size==="small"&&{paddingRight:i.spacing(7)}}}),inputRoot:({theme:o})=>({maxHeight:o.spacing(20),overflow:"auto",transition:"box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms","& .MuiAutocomplete-input":{minWidth:`${o.spacing(10)} !important`,"&[readOnly]":{display:"none"}},"&::before, &::after":{content:"none"},"& fieldset":{border:"0 !important"},"&.MuiOutlinedInput-root":{boxShadow:`inset 0 0 0 1px ${o.palette.default.outlinedBorder}`},"&:hover":{boxShadow:`inset 0 0 0 1px ${o.palette.text.primary}`},"&.Mui-focused":{transition:"none",boxShadow:`inset 0 0 0 2px ${o.palette.primary.main}`},"&.Mui-error":{boxShadow:`inset 0 0 0 2px ${o.palette.error.light}`},"&.Mui-disabled.MuiOutlinedInput-root":{boxShadow:`inset 0 0 0 1px ${o.palette.default.outlinedBorder}`,"&.Mui-error":{boxShadow:`inset 0 0 0 2px ${o.palette.error.light}`}},"&.Mui-disabled.MuiFilledInput-root":{"& .MuiAutocomplete-tag":{borderColor:`${o.palette.default.outlinedBorder} !important`}}}),endAdornment:({theme:o})=>({transform:"none",top:o.spacing(2),display:"flex",alignItems:"center",justifyContent:"flex-end",marginRight:o.spacing(1),".MuiAutocomplete-hasClearIcon &":{top:o.spacing(1)},".MuiInputBase-sizeSmall &":{top:o.spacing(.5),width:o.spacing(3),height:o.spacing(3),marginRight:o.spacing(.5)}}),clearIndicator:({ownerState:o,theme:i})=>({marginRight:0,color:i.palette.text.hint,...o.size==="small"&&{width:i.spacing(3),height:i.spacing(3)}}),popupIndicator:({theme:o})=>({width:r.ICON_SIZE_MEDIUM,height:r.ICON_SIZE_MEDIUM,cursor:"pointer","&:hover":{backgroundColor:"transparent"},"&.MuiButtonBase-root":{color:o.palette.text.secondary},".Mui-disabled &":{color:o.palette.text.disabled},"input:read-only + .MuiAutocomplete-endAdornment &":{color:o.palette.text.disabled}}),tag:({ownerState:o,theme:i})=>({margin:0,"&:not(.MuiButtonBase-root)":{display:"flex",alignItems:"center",height:i.spacing(4),padding:i.spacing(0,1.5),backgroundColor:i.palette.default.main,borderRadius:i.spacing(2),...i.typography.button,fontWeight:i.typography.fontWeightMedium,...o.size==="small"&&{height:i.spacing(3),padding:i.spacing(0,1),borderRadius:i.spacing(1.5),...i.typography.caption,fontWeight:i.typography.fontWeightMedium}}}),option:({ownerState:o,theme:i})=>({"&.MuiAutocomplete-option":{minHeight:i.spacing(4),padding:i.spacing(.5,2),...i.typography.body2,transition:"background-color 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms","& .MuiCheckbox-root svg path":{fill:i.palette.text.secondary},"&:hover":{backgroundColor:i.palette.action.hover},"&.Mui-disabled":{"& .MuiCheckbox-root svg path":{fill:i.palette.text.disabled}},'&[aria-disabled="true"]':{opacity:1},'&[aria-selected="true"]':{color:i.palette.primary.main,backgroundColor:i.palette.primary.background,".MuiTypography-root":{color:i.palette.primary.main},".MuiTypography-caption":{color:i.palette.text.secondary},"& .MuiCheckbox-root svg path":{fill:i.palette.primary.main},"&.Mui-focused:hover":{backgroundColor:i.palette.action.hover},"&.Mui-disabled":{backgroundColor:"transparent","& svg path":{fill:i.palette.text.disabled},"& .MuiCheckbox-root svg path":{fill:i.palette.text.disabled},"& .MuiTypography-root":{color:i.palette.text.disabled}}},"&:first-of-type":{marginTop:i.spacing(1)},...o.size==="small"&&{padding:i.spacing(.5,1.5)}}}),noOptions:({ownerState:o,theme:i})=>({padding:i.spacing(2.5,2),...i.typography.body2,color:i.palette.text.secondary,...o.size==="small"&&{padding:i.spacing(2,1.5)}}),listbox:({theme:o})=>({paddingTop:0,".MuiDivider-root":{display:"none"},".MuiButtonBase-root + .MuiDivider-root":{display:"block"},".MuiMenuItem-root:first-of-type":{marginTop:o.spacing(1)}})}},MuiSwitch:{defaultProps:{disableRipple:!0},styleOverrides:{root:({theme:o})=>({width:o.spacing(A),height:o.spacing(z),padding:0,overflow:"visible","& + .MuiTypography-root":{marginLeft:o.spacing(1),color:o.palette.text.primary},"& + .MuiFormControlLabel-label":{...o.typography.body2}}),switchBase:({ownerState:o,theme:i})=>({width:i.spacing(L),height:i.spacing(L),padding:i.spacing(.5),borderRadius:"50%",color:i.palette.text.secondary,transform:"translate(-8px, -8px)","&:hover":{backgroundColor:i.palette.action.hover},"&.MuiSwitch-switchBase input":{top:i.spacing(1),left:i.spacing(1)},"&.Mui-checked":{transform:"translate(0, -8px)",color:i.palette.common.white,"&.MuiSwitch-switchBase input":{left:0},"& + .MuiSwitch-track":{opacity:1,border:0}},...o.readOnly===!0&&{color:i.palette.text.disabled}}),thumb:({theme:o})=>({width:o.spacing(1),height:o.spacing(1),boxShadow:o.shadows[0],".Mui-checked &":{boxShadow:o.shadows[1]},".Mui-disabled &":{backgroundColor:o.palette.text.disabled},".Mui-disabled.Mui-checked &":{backgroundColor:o.palette.common.white}}),input:({theme:o})=>({width:o.spacing(A),height:o.spacing(z),left:0}),track:({ownerState:o,theme:i})=>({height:"auto",border:`1px solid ${i.palette.text.secondary}`,borderRadius:i.spacing(2),opacity:1,backgroundColor:i.palette.common.white,transitionDuration:"300ms",".MuiButtonBase-root.MuiSwitch-switchBase.Mui-disabled + &":{opacity:1,borderColor:i.palette.text.disabled},".MuiButtonBase-root.Mui-checked.Mui-disabled + &":{backgroundColor:i.palette.text.disabled},".MuiButtonBase-root.MuiSwitch-switchBase[readOnly] + &":{borderColor:i.palette.text.disabled},"[readOnly] .MuiButtonBase-root.Mui-checked + &":{backgroundColor:i.palette.text.disabled},...o.readOnly===!0&&{borderColor:i.palette.text.disabled}}),colorPrimary:({theme:o})=>({"&.Mui-checked:hover":{backgroundColor:o.palette.primary.background}}),colorSecondary:({theme:o})=>({"&.Mui-checked:hover":{backgroundColor:o.palette.secondary.background}})}},MuiCircularProgress:{defaultProps:{size:40,thickness:4}},MuiSlider:{defaultProps:{color:"primary",marks:!1,size:"small"},styleOverrides:{thumb:({theme:o})=>({"&:hover, &.Mui-focusVisible":{boxShadow:`0 0 0 ${o.spacing(1)} ${o.palette.primary.background}`}})}}},oo={MuiMenu:{styleOverrides:{paper:({theme:o})=>({"&.MuiMenu-paper":{minWidth:o.spacing(8),maxHeight:o.spacing(39),"&:focus-visible":{outline:"none !important",boxShadow:"none !important"}}})}},MuiMenuItem:{styleOverrides:{root:({theme:o})=>({...o.typography.body2,columnGap:o.spacing(1),minHeight:o.spacing(4),padding:o.spacing(.75,1,.75,1.5),whiteSpace:"normal",transition:"background-color 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",[o.breakpoints.up("sm")]:{"&.MuiButtonBase-root":{minHeight:o.spacing(4)}},"&:hover":{".MuiAvatar-root, .MuiChip-root, .CartoTag-root":{cursor:"pointer"}},"&:focus-visible":{backgroundColor:"transparent",outline:"none !important",boxShadow:`inset 0 0 0 2px ${o.palette.primary.main} !important`,borderRadius:o.shape.borderRadius,"&:hover":{backgroundColor:o.palette.action.hover}},"&.Mui-selected":{color:o.palette.primary.main,"&:focus-visible":{backgroundColor:o.palette.primary.background},"&:hover":{backgroundColor:o.palette.action.hover},"& .MuiTypography-root, & .MuiSvgIcon-root":{color:o.palette.primary.main},".MuiTypography-caption":{color:o.palette.text.secondary}},"&.Mui-disabled":{opacity:1,color:o.palette.text.disabled,backgroundColor:o.palette.background.paper,"&:empty":{height:0,minHeight:0,padding:0},".MuiTypography-root":{color:o.palette.text.disabled},svg:{color:o.palette.text.disabled},".MuiListItemIcon-root svg path":{fill:o.palette.text.disabled},".MuiAvatar-root":{color:o.palette.text.disabled,backgroundColor:o.palette.action.disabledBackground}},"& > .MuiSvgIcon-root":{marginRight:o.spacing(1)},".MuiMenu-paper-sizeSmall &":{paddingLeft:o.spacing(1.5),paddingRight:o.spacing(1.5)}}),dense:({theme:o})=>({minHeight:o.spacing(3),paddingTop:0,paddingBottom:0,".MuiTypography-root":{...o.typography.caption,fontWeight:500},[o.breakpoints.up("sm")]:{"&.MuiButtonBase-root":{minHeight:o.spacing(3)}}})}},MuiList:{styleOverrides:{root:({theme:o})=>({paddingTop:0,".MuiPopover-root &, .MuiPopper-root &, .base-Popper-root &":{minWidth:o.spacing(8),maxHeight:o.spacing(39),overflowY:"auto","&:focus-visible":{outline:"none !important",boxShadow:"none !important"}},".MuiDivider-root":{margin:o.spacing(1,0)},"& .MuiList-root":{paddingTop:0,paddingBottom:0,"& .MuiListItem-root":{paddingLeft:o.spacing(4)},"& .MuiList-root":{"& .MuiListItem-root":{paddingLeft:o.spacing(6)},"& .MuiList-root":{"& .MuiListItem-root":{paddingLeft:o.spacing(8)},"& .MuiList-root":{"& .MuiListItem-root":{paddingLeft:o.spacing(10)}}}}},"& .MuiListItemButton-root":{"&:focus-visible":{backgroundColor:"transparent"}}})}},MuiListItemText:{defaultProps:{primaryTypographyProps:{variant:"body2",noWrap:!0,component:"span"},secondaryTypographyProps:{variant:"caption"}},styleOverrides:{root:({theme:o})=>({paddingRight:o.spacing(2),"& + .MuiBox-root":{marginRight:o.spacing(1)}})}},MuiListItemIcon:{styleOverrides:{root:({theme:o})=>({display:"flex",alignItems:"center",gap:o.spacing(2),"& .MuiSvgIcon-root":{fontSize:r.ICON_SIZE_LARGE},".MuiMenuItem-root.MuiButtonBase-root &":{minWidth:r.ICON_SIZE_MEDIUM}})}},MuiListItemAvatar:{styleOverrides:{root:({theme:o})=>({"& .MuiAvatar-root":{height:o.spacing(4),width:o.spacing(4)},"& .MuiSvgIcon-root":{fontSize:r.ICON_SIZE_MEDIUM}})}},MuiTabs:{styleOverrides:{root:({theme:o})=>({boxSizing:"content-box",boxShadow:`0 1px 0 0 ${o.palette.black[12]}`}),vertical:()=>({borderBottom:0})}},MuiTab:{defaultProps:{iconPosition:"start"},styleOverrides:{root:({theme:o})=>({minHeight:o.spacing(6),minWidth:o.spacing(6),padding:o.spacing(0,2),paddingTop:"2px",borderBottom:"2px solid transparent",...o.typography.subtitle2,color:o.palette.text.primary,transition:"border 300ms cubic-bezier(0.4, 0, 0.2, 1)","&:hover":{borderBottomColor:o.palette.text.primary},"&:focus-visible":{outline:"none !important",boxShadow:`inset 0 0 0 2px ${o.palette.primary.main} !important`,borderRadius:`${o.shape.borderRadius}px ${o.shape.borderRadius}px 0 0`},"&.Mui-selected":{pointerEvents:"none","& svg:not(.doNotFillIcon) path":{fill:o.palette.primary.main}},".MuiTabs-vertical &":{paddingTop:0,borderBottom:0,paddingLeft:"2px",borderRight:"2px solid transparent","&:hover":{borderRightColor:o.palette.text.primary}}}),wrapped:()=>({maxWidth:"240px"})}},MuiBreadcrumbs:{styleOverrides:{li:({theme:o})=>({"& .MuiTypography-root":{...o.typography.body2,display:"flex",flexDirection:"row",alignItems:"center"},"& .MuiSvgIcon-root":{fontSize:r.ICON_SIZE_MEDIUM,marginRight:o.spacing(1)}}),separator:({theme:o})=>({marginLeft:o.spacing(.5),marginRight:o.spacing(.5)})}},MuiLink:{defaultProps:{underline:"hover"},styleOverrides:{root:()=>({cursor:"pointer"})}}},N=35,y=39.5,io={MuiDatePicker:{defaultProps:{slotProps:{popper:{placement:"bottom-end"},textField:{InputLabelProps:{shrink:!0}}},slots:{openPickerIcon:a.EventOutlined,clearIcon:a.Cancel}}},MuiDateCalendar:{defaultProps:{dayOfWeekFormatter:o=>`${o.toLocaleDateString("en-US",{weekday:"short"})}`,slots:{rightArrowIcon:a.ChevronRightOutlined,leftArrowIcon:a.ChevronLeftOutlined,switchViewIcon:a.ExpandMoreOutlined}},styleOverrides:{root:({ownerState:o,theme:i})=>{var c,C,I,v,h,S,k,m,O;return{width:i.spacing(N),height:i.spacing(y),maxHeight:i.spacing(y),...((c=o.views)==null?void 0:c.includes("year"))&&!((C=o.views)!=null&&C.includes("month"))&&!((I=o.views)!=null&&I.includes("day"))&&{height:i.spacing(33.5),maxHeight:i.spacing(33.5)},...((v=o.views)==null?void 0:v.includes("month"))&&!((h=o.views)!=null&&h.includes("year"))&&!((S=o.views)!=null&&S.includes("day"))&&{height:i.spacing(29),maxHeight:i.spacing(29),"& .MuiPickersCalendarHeader-labelContainer":{cursor:"default"}},...((k=o.views)==null?void 0:k.includes("day"))&&!((m=o.views)!=null&&m.includes("year"))&&!((O=o.views)!=null&&O.includes("month"))&&{"& .MuiPickersCalendarHeader-labelContainer":{cursor:"default"}},"& .MuiYearCalendar-root, & .MuiMonthCalendar-root":{gap:i.spacing(.5),width:i.spacing(N),padding:i.spacing(1,2)},"& .MuiPickersYear-root":{flexBasis:"22.5%"},"& .MuiPickersMonth-root":{flexBasis:"31.1%"},"& .MuiPickersYear-yearButton, & .MuiPickersMonth-monthButton, & .MuiPickersDay-root":{width:"100%",height:i.spacing(4),margin:0,padding:0,...i.typography.button,borderRadius:i.shape.borderRadius,"&:hover":{backgroundColor:i.palette.action.hover},"&.Mui-selected":{backgroundColor:i.palette.primary.background,color:i.palette.primary.main,"&:focus":{backgroundColor:i.palette.primary.background},"&:hover":{backgroundColor:i.palette.action.hover}},"&.Mui-disabled":{color:i.palette.text.disabled}},"& .MuiPickersDay-root":{margin:i.spacing(.25)}}}}},MuiPickersPopper:{styleOverrides:{paper:({theme:o})=>({marginBottom:o.spacing(.5)})}},MuiYearCalendar:{styleOverrides:{root:({theme:o})=>({maxHeight:o.spacing(33.5)})}},MuiPickersCalendarHeader:{styleOverrides:{root:({theme:o})=>({maxHeight:o.spacing(4),minHeight:o.spacing(4),margin:0,padding:o.spacing(1,1,1,2),boxSizing:"content-box","& .MuiIconButton-root":{borderRadius:o.shape.borderRadius},"& .MuiPickersArrowSwitcher-spacer":{width:o.spacing(4)}}),label:({theme:o})=>({...o.typography.subtitle2}),switchViewButton:({theme:o})=>({width:o.spacing(4),height:o.spacing(4)})}},MuiDayCalendar:{styleOverrides:{header:({theme:o})=>({margin:o.spacing(0,2)}),weekContainer:()=>({margin:0}),weekDayLabel:({theme:o})=>({flex:1,...o.typography.caption,fontWeight:o.typography.fontWeightRegular,color:o.palette.text.secondary})}},MuiPickersDay:{styleOverrides:{root:({theme:o})=>({width:`${o.spacing(4)} !important`,height:o.spacing(4),"&:focus":{backgroundColor:"transparent"}}),today:({theme:o})=>({border:`1px solid ${o.palette.default.outlinedBorder}`,"&:hover, &:selected":{borderColor:o.palette.primary.light},"&:not(.Mui-selected)":{borderColor:o.palette.default.outlinedBorder},"&.Mui-selected":{borderColor:o.palette.primary.light,"&:focus":{borderColor:o.palette.primary.light}},"&.Mui-disabled":{color:o.palette.text.disabled,borderColor:o.palette.default.outlinedBorder,backgroundColor:"transparent","&.Mui-selected":{opacity:"1 !important",color:o.palette.text.disabled,backgroundColor:"transparent",borderColor:o.palette.default.outlinedBorder}}})}},MuiTimePicker:{defaultProps:{views:["hours"],format:"hh:mm a",ampm:!0,viewRenderers:{hours:w.renderDigitalClockTimeView},timeSteps:{minutes:30},slotProps:{actionBar:{actions:[]}},slots:{clearIcon:a.Cancel,digitalClockItem:o=>p.jsx(B.MenuItem,{...o,disableRipple:!0})}}},MuiDateTimePicker:{defaultProps:{views:["year","month","day","hours"],format:"MM/dd/yyyy hh:mm a",ampm:!0,viewRenderers:{hours:w.renderDigitalClockTimeView},timeSteps:{minutes:30},slotProps:{popper:{placement:"bottom-end"},actionBar:{actions:[]}},slots:{openPickerIcon:a.EventOutlined,clearIcon:a.Cancel,digitalClockItem:o=>p.jsx(B.MenuItem,{...o,disableRipple:!0})}}},MuiDigitalClock:{defaultProps:{timeStep:30,ampm:!0},styleOverrides:{root:({theme:o})=>({minWidth:o.spacing(15)}),list:({theme:o})=>({".MuiPopper-root &":{maxHeight:o.spacing(y),paddingBottom:o.spacing(1)}})}}};function t(o){return .0625*o+"rem"}const f={htmlFontSize:16,fontFamily:"Inter, sans-serif",fontSize:16,lineHeight:1.5,fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:500,fontWeightBold:600,fontSmoothing:"antialiased",h1:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:t(96),lineHeight:1.167,letterSpacing:"-1.5px"},h2:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:t(60),lineHeight:1.2,letterSpacing:"-0.5px"},h3:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:t(48),lineHeight:1.167,letterSpacing:0},h4:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:t(32),lineHeight:1.25,letterSpacing:0},h5:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:t(24),lineHeight:1.167,letterSpacing:0},h6:{fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:t(18),lineHeight:1.333,letterSpacing:0},subtitle1:{fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:t(16),lineHeight:1.5,letterSpacing:0},subtitle2:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:t(13),lineHeight:1.538,letterSpacing:0},body1:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:t(16),lineHeight:1.5,letterSpacing:0},body2:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:t(13),lineHeight:1.538,letterSpacing:0},button:{fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:t(13),lineHeight:1.538,letterSpacing:0,textTransform:"inherit"},caption:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:t(11),lineHeight:1.454,letterSpacing:0},overline:{fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:t(10),lineHeight:1.2,letterSpacing:"1.2px",textTransform:"uppercase"}},ro={captionMedium:{...f.caption,fontWeight:500,letterSpacing:0},overlineDelicate:{...f.overline,fontWeight:400,letterSpacing:"1.2px"},code1:{fontFamily:'"Overpass Mono", monospace',fontWeight:400,fontSize:t(16),lineHeight:1.5,letterSpacing:0,fontVariantLigatures:"no-common-ligatures"},code2:{fontFamily:'"Overpass Mono", monospace',fontWeight:400,fontSize:t(14),lineHeight:1.428,letterSpacing:0,fontVariantLigatures:"no-common-ligatures"},code3:{fontFamily:'"Overpass Mono", monospace',fontWeight:400,fontSize:t(12),lineHeight:1.333,letterSpacing:0,fontVariantLigatures:"no-common-ligatures"}},q={...f,...ro};var W,Z,H,F,U,$,G,j;const to={"*:focus-visible":{outline:`2px solid ${(W=n.commonPalette.primary)==null?void 0:W.main} !important`,boxShadow:`0 0 0 4px ${(Z=n.commonPalette.primary)==null?void 0:Z.background} !important`,borderRadius:"4px"},"*::-webkit-scrollbar":{position:"fixed"},"*::-webkit-scrollbar:vertical":{width:"5px"},"*::-webkit-scrollbar:horizontal":{height:"5px"},"*::-webkit-scrollbar-track":{boxShadow:"none",background:"transparent"},"*::-webkit-scrollbar-thumb":{borderRadius:"3px",background:(H=n.commonPalette.action)==null?void 0:H.focus,outline:"none"},'input[type="search"]::-webkit-search-cancel-button':{WebkitAppearance:"none",appearance:"none",height:r.getSpacing(2),width:r.getSpacing(2),display:"block",backgroundImage:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAn0lEQVR42u3UMQrDMBBEUZ9WfQqDmm22EaTyjRMHAlM5K+Y7lb0wnUZPIKHlnutOa+25Z4D++MRBX98MD1V/trSppLKHqj9TTBWKcoUqffbUcbBBEhTjBOV4ja4l4OIAZThEOV6jHO8ARXD+gPPvKMABinGOrnu6gTNUawrcQKNCAQ7QeTxORzle3+sDfjJpPCqhJh7GixZq4rHcc9l5A9qZ+WeBhgEuAAAAAElFTkSuQmCC)",backgroundRepeat:"no-repeat",backgroundSize:r.getSpacing(2)},".mapboxgl-ctrl.mapboxgl-ctrl-attrib":{padding:r.getSpacing(0,1),borderRadius:r.getSpacing(.5,0,0,0),"& .mapboxgl-ctrl-attrib-inner":{...q.overline,textTransform:"none",letterSpacing:"0.75px","& a":{color:(F=n.commonPalette.primary)==null?void 0:F.main}},"&.mapboxgl-compact":{backgroundColor:"transparent",right:r.getSpacing(.5),bottom:r.getSpacing(2.5),"@media (max-width: 600px)":{bottom:r.getSpacing(.5)},"& .mapboxgl-ctrl-attrib-button":{backgroundImage:`url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20height='24'%20viewBox='0%200%2024%2024'%20width='24'%3E%3Cg%3E%3Crect%20fill='none'%20height='24'%20width='24'%20x='0'/%3E%3C/g%3E%3Cg%3E%3Cg%3E%3Cg%3E%3Cpath%20d='M11.88,9.14c1.28,0.06,1.61,1.15,1.63,1.66h1.79c-0.08-1.98-1.49-3.19-3.45-3.19C9.64,7.61,8,9,8,12.14%20c0,1.94,0.93,4.24,3.84,4.24c2.22,0,3.41-1.65,3.44-2.95h-1.79c-0.03,0.59-0.45,1.38-1.63,1.44C10.55,14.83,10,13.81,10,12.14%20C10,9.25,11.28,9.16,11.88,9.14z%20M12,2C6.48,2,2,6.48,2,12s4.48,10,10,10s10-4.48,10-10S17.52,2,12,2z%20M12,20c-4.41,0-8-3.59-8-8%20s3.59-8,8-8s8,3.59,8,8S16.41,20,12,20z'%20fill='${(U=n.commonPalette.text)==null?void 0:U.secondary}'/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E")`,backgroundColor:"rgba(255,255,255,.8)",top:"auto",bottom:0,right:0,"&:not(:disabled):hover":{backgroundColor:"rgba(255,255,255,.8)"}},"& .mapboxgl-ctrl-attrib-inner":{backgroundColor:"rgba(255,255,255,.8)",padding:r.getSpacing(.5,1),borderRadius:r.getSpacing(1.5),marginRight:r.getSpacing(2.5),color:($=n.commonPalette.text)==null?void 0:$.secondary},"&.mapboxgl-compact-show":{"& .mapboxgl-ctrl-attrib-button":{backgroundImage:`url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20height='24'%20viewBox='0%200%2024%2024'%20width='24'%3E%3Cpath%20d='M0%200h24v24H0z'%20fill='none'/%3E%3Cpath%20d='M19%206.41L17.59%205%2012%2010.59%206.41%205%205%206.41%2010.59%2012%205%2017.59%206.41%2019%2012%2013.41%2017.59%2019%2019%2017.59%2013.41%2012z'%20fill='white'/%3E%3C/svg%3E")`,backgroundColor:(G=n.commonPalette.common)==null?void 0:G.black,"&:not(:disabled):hover":{backgroundColor:(j=n.commonPalette.common)==null?void 0:j.black}}}}}},ao={MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSkeleton:{defaultProps:{animation:"wave",variant:"rounded"},styleOverrides:{root:({theme:o})=>({backgroundColor:o.palette.black[8]}),rounded:({theme:o})=>({borderRadius:o.spacing(.5)}),text:({theme:o})=>({borderRadius:o.spacing(.5)}),wave:({theme:o})=>({"&::after":{background:`linear-gradient( 90deg, transparent, ${o.palette.black[4]}, transparent )`}})}},MuiAlert:{defaultProps:{iconMapping:{success:p.jsx(a.CheckCircleOutlined,{})}},styleOverrides:{root:({theme:o})=>({borderRadius:o.spacing(1),alignSelf:"start",width:"100%",padding:o.spacing(1.5)}),icon:({theme:o})=>({height:o.spacing(3),display:"flex",alignItems:"center",padding:0,marginRight:o.spacing(1),svg:{width:r.ICON_SIZE_MEDIUM,height:r.ICON_SIZE_MEDIUM}}),action:()=>({paddingTop:0,marginRight:0}),message:({theme:o})=>({paddingTop:o.spacing(.5),paddingBottom:0,...o.typography.caption})}},MuiAlertTitle:{defaultProps:{variant:"body2"},styleOverrides:{root:({theme:o})=>({marginBottom:o.spacing(.5),fontWeight:o.typography.fontWeightBold,color:"inherit"})}}},eo={MuiAppBar:{styleOverrides:{root:({theme:o})=>({flexDirection:"row",alignItems:"center",justifyContent:"space-between",height:r.APPBAR_SIZE,backgroundColor:o.palette.brand.navyBlue,color:o.palette.common.white,boxShadow:o.shadows[0],"& .MuiToolbar-root":{justifyContent:"space-between",width:"100%",padding:o.spacing(0,1),minHeight:r.APPBAR_SIZE},"& .MuiAvatar-root":{width:o.spacing(4),height:o.spacing(4)}})}},MuiAccordion:{defaultProps:{disableGutters:!0,elevation:0},styleOverrides:{root:({theme:o})=>({...o.typography.body2,backgroundColor:"transparent",boxShadow:`inset 0 -1px 0 0 ${o.palette.divider}`,"&:last-of-type":{boxShadow:"none"},"&::before":{content:"none"},"&.Mui-disabled":{backgroundColor:"transparent"}})}},MuiAccordionSummary:{defaultProps:{expandIcon:p.jsx(a.ExpandMoreOutlined,{})},styleOverrides:{root:({theme:o})=>({...o.typography.button,"&.Mui-disabled":{opacity:1,color:o.palette.text.disabled},"&.Mui-focusVisible":{backgroundColor:"transparent",borderRadius:o.shape.borderRadius}}),expandIconWrapper:({theme:o})=>({"& svg":{color:o.palette.text.secondary,".Mui-disabled &":{color:o.palette.text.disabled}}})}},MuiAccordionDetails:{styleOverrides:{root:({theme:o})=>({paddingBottom:o.spacing(3)})}}},no=["none","0px 2px 1px -1px rgba(44, 48, 50, 0.12), 0px 1px 1px rgba(44, 48, 50, 0.08), 0px 1px 3px rgba(44, 48, 50, 0.04)","0px 3px 1px -2px rgba(44, 48, 50, 0.12), 0px 2px 2px rgba(44, 48, 50, 0.08), 0px 1px 5px rgba(44, 48, 50, 0.04)","0px 3px 3px -2px rgba(0,0,0,0.16),0px 3px 4px 0px rgba(0,0,0,0.08),0px 1px 8px 0px rgba(0,0,0,0.04)","0px 2px 4px -1px rgba(44, 48, 50, 0.12), 0px 4px 5px rgba(44, 48, 50, 0.08), 0px 1px 10px rgba(44, 48, 50, 0.04)","0px 3px 5px -1px rgba(0,0,0,0.16),0px 5px 8px 0px rgba(0,0,0,0.08),0px 1px 14px 0px rgba(0,0,0,0.04)","0px 3px 5px -1px rgba(44, 48, 50, 0.12), 0px 6px 10px rgba(44, 48, 50, 0.08), 0px 1px 18px rgba(44, 48, 50, 0.04)","0px 4px 5px -2px rgba(0,0,0,0.16),0px 7px 10px 1px rgba(0,0,0,0.08),0px 2px 16px 1px rgba(0,0,0,0.04)","0px 5px 5px -3px rgba(44, 48, 50, 0.12), 0px 8px 10px 1px rgba(44, 48, 50, 0.08), 0px 3px 14px 2px rgba(44, 48, 50, 0.04)","0px 5px 6px -3px rgba(0,0,0,0.16),0px 9px 12px 1px rgba(0,0,0,0.08),0px 3px 16px 2px rgba(0,0,0,0.04)","0px 6px 6px -3px rgba(0,0,0,0.16),0px 10px 14px 1px rgba(0,0,0,0.08),0px 4px 18px 3px rgba(0,0,0,0.04)","0px 6px 7px -4px rgba(0,0,0,0.16),0px 11px 15px 1px rgba(0,0,0,0.08),0px 4px 20px 3px rgba(0,0,0,0.04)","0px 7px 8px -4px rgba(0,0,0,0.16),0px 12px 17px 2px rgba(0,0,0,0.08),0px 5px 22px 4px rgba(0,0,0,0.04)","0px 7px 8px -4px rgba(0,0,0,0.16),0px 13px 19px 2px rgba(0,0,0,0.08),0px 5px 24px 4px rgba(0,0,0,0.04)","0px 7px 9px -4px rgba(0,0,0,0.16),0px 14px 21px 2px rgba(0,0,0,0.08),0px 5px 26px 4px rgba(0,0,0,0.04)","0px 8px 9px -5px rgba(0,0,0,0.16),0px 15px 22px 2px rgba(0,0,0,0.08),0px 6px 28px 5px rgba(0,0,0,0.04)","0px 8px 10px -5px rgba(44, 48, 50, 0.12), 0px 16px 24px 2px rgba(44, 48, 50, 0.08), 0px 6px 30px 5px rgba(44, 48, 50, 0.04)","0px 8px 11px -5px rgba(0,0,0,0.16),0px 17px 26px 2px rgba(0,0,0,0.08),0px 6px 32px 5px rgba(0,0,0,0.04)","0px 9px 11px -5px rgba(0,0,0,0.16),0px 18px 28px 2px rgba(0,0,0,0.08),0px 7px 34px 6px rgba(0,0,0,0.04)","0px 9px 12px -6px rgba(0,0,0,0.16),0px 19px 29px 2px rgba(0,0,0,0.08),0px 7px 36px 6px rgba(0,0,0,0.04)","0px 10px 13px -6px rgba(0,0,0,0.16),0px 20px 31px 3px rgba(0,0,0,0.08),0px 8px 38px 7px rgba(0,0,0,0.04)","0px 10px 13px -6px rgba(0,0,0,0.16),0px 21px 33px 3px rgba(0,0,0,0.08),0px 8px 40px 7px rgba(0,0,0,0.04)","0px 10px 14px -6px rgba(0,0,0,0.16),0px 22px 35px 3px rgba(0,0,0,0.08),0px 8px 42px 7px rgba(0,0,0,0.04)","0px 11px 14px -7px rgba(0,0,0,0.16),0px 23px 36px 3px rgba(0,0,0,0.08),0px 9px 44px 8px rgba(0,0,0,0.04)","0px 11px 15px -7px rgba(44, 48, 50, 0.12), 0px 24px 38px 3px rgba(44, 48, 50, 0.08), 0px 9px 46px 8px rgba(44, 48, 50, 0.04)"],K={themeName:"CARTO",breakpoints:{keys:["xs","sm","md","lg","xl"],values:{xs:r.BREAKPOINTS.XS,sm:r.BREAKPOINTS.SM,md:r.BREAKPOINTS.MD,lg:r.BREAKPOINTS.LG,xl:r.BREAKPOINTS.XL},unit:"px",step:5},direction:"ltr",mixins:{toolbar:{minHeight:56,"@media (min-width:0px) and (orientation: landscape)":{minHeight:48},"@media (min-width:600px)":{minHeight:56}}},palette:n.commonPalette,shadows:no,typography:q,spacingValue:r.SPACING,spacing:r.SPACING,shape:{borderRadius:4},transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration:{shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195}},zIndex:{mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},components:{MuiCssBaseline:{styleOverrides:{...to}},...X,...J,...oo,...Y,...ao,...eo,...io}},po=s.responsiveFontSizes(s.createTheme(K));exports.APPBAR_SIZE=r.APPBAR_SIZE;exports.BREAKPOINTS=r.BREAKPOINTS;exports.ICON_SIZE_LARGE=r.ICON_SIZE_LARGE;exports.ICON_SIZE_MEDIUM=r.ICON_SIZE_MEDIUM;exports.ICON_SIZE_SMALL=r.ICON_SIZE_SMALL;exports.NOTIFICATION_DURATION_IN_MS=r.NOTIFICATION_DURATION_IN_MS;exports.SPACING=r.SPACING;exports.getSpacing=r.getSpacing;exports.getCartoColorStylePropsForItem=n.getCartoColorStylePropsForItem;exports.cartoThemeOptions=K;exports.theme=po;
1
+ "use strict";
2
+ var _a, _b, _c, _d, _e, _f, _g, _h;
3
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
4
+ const material = require("@mui/material");
5
+ const jsxRuntime = require("react/jsx-runtime");
6
+ const TablePaginationActions = require("../TablePaginationActions-CFGXm44W.cjs");
7
+ const iconsMaterial = require("@mui/icons-material");
8
+ const ArrowDown = require("../ArrowDown-8fLj23Ge.cjs");
9
+ const xDatePickers = require("@mui/x-date-pickers");
10
+ const MenuItem = require("../MenuItem-Br2jY2lt.cjs");
11
+ const paletteUtils = require("../paletteUtils-B9ybmwiI.cjs");
12
+ const tooltipArrowSize = 1;
13
+ const tooltipSeparation = 0.5;
14
+ const tooltipMargin = tooltipArrowSize + tooltipSeparation;
15
+ const avatarFallbackImage = "M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-2.1 2.1S9.9 9.16 9.9 8s.94-2.1 2.1-2.1m0 9c2.97 0 6.1 1.46 6.1 2.1v1.1H5.9V17c0-.64 3.13-2.1 6.1-2.1M12 4C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 9c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4z";
16
+ const avatarCircularRadius = "50%";
17
+ const avatarRoundedRadius = 0.5;
18
+ const dataDisplayOverrides = {
19
+ // Divider
20
+ MuiDivider: {
21
+ defaultProps: {
22
+ role: "separator"
23
+ },
24
+ styleOverrides: {
25
+ root: ({ theme: theme2 }) => ({
26
+ backgroundColor: "transparent",
27
+ borderColor: theme2.palette.divider
28
+ }),
29
+ light: ({ theme: theme2 }) => ({
30
+ borderColor: theme2.palette.white[12]
31
+ })
32
+ }
33
+ },
34
+ // Tooltip
35
+ MuiTooltip: {
36
+ defaultProps: {
37
+ arrow: true,
38
+ placement: "top",
39
+ enterDelay: 1e3,
40
+ leaveDelay: 200
41
+ },
42
+ styleOverrides: {
43
+ tooltip: ({ theme: theme2 }) => ({
44
+ ...theme2.typography.caption,
45
+ fontWeight: 500,
46
+ maxWidth: "240px",
47
+ backgroundColor: theme2.palette.black[90],
48
+ '.MuiTooltip-popper[data-popper-placement*="top"] &': {
49
+ marginBottom: theme2.spacing(tooltipSeparation),
50
+ "&.MuiTooltip-tooltipArrow": {
51
+ marginBottom: theme2.spacing(tooltipMargin)
52
+ }
53
+ },
54
+ '.MuiTooltip-popper[data-popper-placement*="right"] &': {
55
+ marginLeft: theme2.spacing(tooltipSeparation),
56
+ "&.MuiTooltip-tooltipArrow": {
57
+ marginLeft: theme2.spacing(tooltipMargin)
58
+ }
59
+ },
60
+ '.MuiTooltip-popper[data-popper-placement*="bottom"] &': {
61
+ marginTop: theme2.spacing(tooltipSeparation),
62
+ "&.MuiTooltip-tooltipArrow": {
63
+ marginTop: theme2.spacing(tooltipMargin)
64
+ }
65
+ },
66
+ '.MuiTooltip-popper[data-popper-placement*="left"] &': {
67
+ marginRight: theme2.spacing(tooltipSeparation),
68
+ "&.MuiTooltip-tooltipArrow": {
69
+ marginRight: theme2.spacing(tooltipMargin)
70
+ }
71
+ }
72
+ }),
73
+ arrow: ({ theme: theme2 }) => ({
74
+ height: theme2.spacing(tooltipArrowSize),
75
+ color: theme2.palette.black[90]
76
+ })
77
+ }
78
+ },
79
+ // Popper
80
+ MuiPopper: {
81
+ styleOverrides: {
82
+ root: ({ theme: theme2 }) => ({
83
+ "& .MuiPaper-root": {
84
+ marginTop: theme2.spacing(0.5)
85
+ }
86
+ })
87
+ }
88
+ },
89
+ // Popover
90
+ MuiPopover: {
91
+ styleOverrides: {
92
+ root: ({ theme: theme2 }) => ({
93
+ "& .MuiPaper-root": {
94
+ marginTop: theme2.spacing(0.5)
95
+ }
96
+ })
97
+ }
98
+ },
99
+ // Dialog
100
+ MuiDialog: {
101
+ defaultProps: {
102
+ maxWidth: "md"
103
+ }
104
+ },
105
+ MuiDialogTitle: {
106
+ defaultProps: {
107
+ variant: "subtitle1"
108
+ },
109
+ styleOverrides: {
110
+ root: ({ theme: theme2 }) => ({
111
+ padding: theme2.spacing(3, 3, 2)
112
+ })
113
+ }
114
+ },
115
+ MuiDialogContent: {
116
+ styleOverrides: {
117
+ root: ({ theme: theme2 }) => ({
118
+ "& .MuiFormGroup-root": {
119
+ padding: theme2.spacing(1, 0)
120
+ }
121
+ })
122
+ }
123
+ },
124
+ MuiDialogContentText: {
125
+ defaultProps: {
126
+ variant: "body2"
127
+ },
128
+ styleOverrides: {
129
+ root: ({ theme: theme2 }) => ({
130
+ color: theme2.palette.text.primary
131
+ })
132
+ }
133
+ },
134
+ // Table
135
+ MuiTablePagination: {
136
+ defaultProps: {
137
+ SelectProps: {
138
+ variant: "outlined",
139
+ size: "small"
140
+ },
141
+ labelDisplayedRows: ({ from, to, count }) => {
142
+ return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
143
+ /* @__PURE__ */ jsxRuntime.jsx(
144
+ TablePaginationActions.Typography,
145
+ {
146
+ component: "span",
147
+ variant: "inherit",
148
+ weight: "strong",
149
+ color: "textPrimary",
150
+ children: `${from}-${to}`
151
+ }
152
+ ),
153
+ ` of ${count}`
154
+ ] });
155
+ },
156
+ ActionsComponent: TablePaginationActions.TablePaginationActions
157
+ },
158
+ styleOverrides: {
159
+ root: () => ({
160
+ borderBottom: 0
161
+ }),
162
+ toolbar: ({ theme: theme2 }) => ({
163
+ minHeight: "0 !important",
164
+ padding: "0 !important",
165
+ height: theme2.spacing(6)
166
+ }),
167
+ selectLabel: ({ theme: theme2 }) => ({
168
+ margin: 0,
169
+ ...theme2.typography.caption,
170
+ fontWeight: theme2.typography.fontWeightMedium
171
+ }),
172
+ selectIcon: ({ theme: theme2 }) => ({
173
+ "&.MuiSvgIcon-root": {
174
+ right: theme2.spacing(1)
175
+ }
176
+ }),
177
+ input: ({ theme: theme2 }) => ({
178
+ marginRight: theme2.spacing(2),
179
+ marginLeft: theme2.spacing(1),
180
+ width: "auto",
181
+ paddingRight: theme2.spacing(3)
182
+ }),
183
+ displayedRows: ({ theme: theme2 }) => ({
184
+ color: theme2.palette.text.secondary
185
+ })
186
+ }
187
+ },
188
+ MuiTable: {
189
+ defaultProps: {
190
+ stickyHeader: true
191
+ }
192
+ },
193
+ MuiTableRow: {
194
+ styleOverrides: {
195
+ root: ({ theme: theme2 }) => ({
196
+ transition: "background-color 0.25s ease",
197
+ borderColor: theme2.palette.divider,
198
+ "&.MuiTableRow-hover:hover": {
199
+ cursor: "pointer"
200
+ }
201
+ })
202
+ }
203
+ },
204
+ MuiTableCell: {
205
+ styleOverrides: {
206
+ root: ({ theme: theme2 }) => ({
207
+ padding: theme2.spacing(0.5, 2),
208
+ height: theme2.spacing(6),
209
+ "&.MuiTableCell-sizeSmall": {
210
+ height: theme2.spacing(4)
211
+ },
212
+ "&.MuiTableCell-footer": {
213
+ padding: 0
214
+ }
215
+ }),
216
+ head: ({ theme: theme2 }) => ({
217
+ ...theme2.typography.caption,
218
+ fontWeight: theme2.typography.fontWeightMedium,
219
+ color: theme2.palette.text.primary
220
+ }),
221
+ stickyHeader: ({ theme: theme2 }) => ({
222
+ backgroundColor: theme2.palette.common.white
223
+ }),
224
+ paddingCheckbox: ({ theme: theme2 }) => ({
225
+ padding: theme2.spacing(0.5, 1)
226
+ }),
227
+ paddingNone: () => ({
228
+ padding: 0
229
+ })
230
+ }
231
+ },
232
+ // Chip
233
+ MuiChip: {
234
+ defaultProps: {
235
+ color: "primary"
236
+ },
237
+ styleOverrides: {
238
+ root: ({ theme: theme2 }) => ({
239
+ maxWidth: "192px",
240
+ padding: theme2.spacing(0, 0.5),
241
+ "& .MuiAvatar-root": {
242
+ width: TablePaginationActions.ICON_SIZE_LARGE,
243
+ minWidth: TablePaginationActions.ICON_SIZE_LARGE,
244
+ height: TablePaginationActions.ICON_SIZE_LARGE,
245
+ margin: 0,
246
+ color: theme2.palette.secondary.contrastText,
247
+ backgroundColor: theme2.palette.background.paper,
248
+ border: `1px solid ${theme2.palette.action.hover}`
249
+ },
250
+ "& .MuiChip-icon": {
251
+ margin: 0,
252
+ marginLeft: theme2.spacing(0.5)
253
+ },
254
+ "& img": {
255
+ width: TablePaginationActions.ICON_SIZE_LARGE,
256
+ minWidth: TablePaginationActions.ICON_SIZE_LARGE,
257
+ height: TablePaginationActions.ICON_SIZE_LARGE
258
+ },
259
+ "&.MuiChip-root.Mui-disabled": {
260
+ color: theme2.palette.text.disabled,
261
+ backgroundColor: theme2.palette.action.disabledBackground,
262
+ opacity: 1,
263
+ "& .MuiChip-deleteIcon, & .MuiChip-icon": {
264
+ color: theme2.palette.action.disabled
265
+ },
266
+ "& .MuiAvatar-root": {
267
+ opacity: 0.6
268
+ }
269
+ },
270
+ "& .MuiChip-deleteIcon": {
271
+ color: theme2.palette.text.hint
272
+ }
273
+ }),
274
+ // Variants
275
+ filled: ({ theme: theme2 }) => ({
276
+ border: 0,
277
+ backgroundColor: theme2.palette.default.main,
278
+ "& .MuiChip-iconColorPrimary": {
279
+ color: theme2.palette.primary.contrastText
280
+ },
281
+ "& .MuiChip-deleteIcon:hover": {
282
+ color: theme2.palette.text.primary
283
+ }
284
+ }),
285
+ filledPrimary: ({ theme: theme2 }) => ({
286
+ backgroundColor: theme2.palette.primary.main,
287
+ "& .MuiChip-deleteIcon": {
288
+ color: theme2.palette.white[60],
289
+ "&:hover": {
290
+ color: theme2.palette.common.white
291
+ }
292
+ }
293
+ }),
294
+ filledSecondary: ({ theme: theme2 }) => ({
295
+ backgroundColor: theme2.palette.secondary.main
296
+ }),
297
+ outlined: ({ theme: theme2 }) => ({
298
+ borderColor: theme2.palette.default.outlinedBorder,
299
+ "&.MuiChip-root.Mui-disabled": {
300
+ borderColor: theme2.palette.default.outlinedBorder,
301
+ backgroundColor: "transparent"
302
+ },
303
+ "& .MuiChip-deleteIcon:hover": {
304
+ color: theme2.palette.text.primary
305
+ }
306
+ }),
307
+ outlinedPrimary: ({ theme: theme2 }) => ({
308
+ borderColor: theme2.palette.primary.main
309
+ }),
310
+ outlinedSecondary: ({ theme: theme2 }) => ({
311
+ borderColor: theme2.palette.secondary.main
312
+ }),
313
+ // Status colors
314
+ colorSuccess: ({ theme: theme2 }) => ({
315
+ "&.MuiChip-outlined": {
316
+ color: theme2.palette.success.dark,
317
+ borderColor: theme2.palette.success.main
318
+ },
319
+ "&.MuiChip-filled": {
320
+ color: theme2.palette.success.dark,
321
+ backgroundColor: theme2.palette.success.relatedLight
322
+ },
323
+ "& .MuiChip-icon": {
324
+ color: theme2.palette.success.main
325
+ }
326
+ }),
327
+ colorInfo: ({ theme: theme2 }) => ({
328
+ "&.MuiChip-outlined": {
329
+ color: theme2.palette.primary.dark,
330
+ borderColor: theme2.palette.primary.main
331
+ },
332
+ "&.MuiChip-filled": {
333
+ color: theme2.palette.primary.dark,
334
+ backgroundColor: theme2.palette.primary.relatedLight
335
+ },
336
+ "& .MuiChip-icon": {
337
+ color: theme2.palette.info.main
338
+ }
339
+ }),
340
+ colorError: ({ theme: theme2 }) => ({
341
+ "&.MuiChip-outlined": {
342
+ color: theme2.palette.error.dark,
343
+ borderColor: theme2.palette.error.main
344
+ },
345
+ "&.MuiChip-filled": {
346
+ color: theme2.palette.error.dark,
347
+ backgroundColor: theme2.palette.error.relatedLight
348
+ },
349
+ "& .MuiChip-icon": {
350
+ color: theme2.palette.error.main
351
+ }
352
+ }),
353
+ colorWarning: ({ theme: theme2 }) => ({
354
+ "&.MuiChip-outlined": {
355
+ color: theme2.palette.warning.relatedDark,
356
+ borderColor: theme2.palette.warning.main
357
+ },
358
+ "&.MuiChip-filled": {
359
+ color: theme2.palette.warning.relatedDark,
360
+ backgroundColor: theme2.palette.warning.relatedLight
361
+ },
362
+ "& .MuiChip-icon": {
363
+ color: theme2.palette.warning.main
364
+ }
365
+ }),
366
+ // Sizes
367
+ sizeSmall: ({ theme: theme2 }) => ({
368
+ "& img": {
369
+ width: TablePaginationActions.ICON_SIZE_MEDIUM,
370
+ minWidth: TablePaginationActions.ICON_SIZE_MEDIUM,
371
+ height: TablePaginationActions.ICON_SIZE_MEDIUM
372
+ },
373
+ "& .MuiAvatar-root": {
374
+ width: TablePaginationActions.ICON_SIZE_MEDIUM,
375
+ minWidth: TablePaginationActions.ICON_SIZE_MEDIUM,
376
+ height: TablePaginationActions.ICON_SIZE_MEDIUM
377
+ },
378
+ "& .MuiChip-icon": {
379
+ marginLeft: theme2.spacing(0.25)
380
+ }
381
+ }),
382
+ // Inner elements
383
+ label: ({ theme: theme2 }) => ({
384
+ ...theme2.typography.button,
385
+ padding: theme2.spacing(0, 0.75)
386
+ }),
387
+ labelSmall: ({ theme: theme2 }) => ({
388
+ ...theme2.typography.caption,
389
+ fontWeight: 500,
390
+ padding: theme2.spacing(0, 0.5)
391
+ }),
392
+ deleteIcon: () => ({
393
+ width: TablePaginationActions.ICON_SIZE_MEDIUM,
394
+ height: TablePaginationActions.ICON_SIZE_MEDIUM,
395
+ margin: 0,
396
+ marginLeft: "2px",
397
+ // Forced to a non-standard value to meet with design
398
+ marginRight: "3px",
399
+ // Forced to a non-standard value to meet with design
400
+ transition: "color 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms"
401
+ }),
402
+ deleteIconSmall: ({ theme: theme2 }) => ({
403
+ width: theme2.spacing(2),
404
+ height: theme2.spacing(2),
405
+ marginRight: 0
406
+ }),
407
+ clickable: ({ theme: theme2 }) => ({
408
+ "&:active": {
409
+ boxShadow: "none"
410
+ },
411
+ "&.MuiChip-outlined": {
412
+ transitionProperty: "background, color, border-color",
413
+ transitionDuration: "300ms",
414
+ transitionTimingFunction: "cubic-bezier(0.4, 0, 0.2, 1)",
415
+ "&:hover": {
416
+ backgroundColor: "transparent",
417
+ "&.MuiChip-colorPrimary": {
418
+ color: theme2.palette.primary.dark,
419
+ borderColor: theme2.palette.primary.dark
420
+ },
421
+ "&.MuiChip-colorSecondary": {
422
+ color: theme2.palette.secondary.dark,
423
+ borderColor: theme2.palette.secondary.dark
424
+ },
425
+ "&.MuiChip-colorDefault": {
426
+ borderColor: theme2.palette.default.dark
427
+ },
428
+ "&.MuiChip-colorSuccess": {
429
+ color: theme2.palette.success.dark,
430
+ borderColor: theme2.palette.success.dark
431
+ },
432
+ "&.MuiChip-colorInfo": {
433
+ color: theme2.palette.info.dark,
434
+ borderColor: theme2.palette.info.dark
435
+ },
436
+ "&.MuiChip-colorError": {
437
+ color: theme2.palette.error.dark,
438
+ borderColor: theme2.palette.error.dark
439
+ },
440
+ "&.MuiChip-colorWarning": {
441
+ color: theme2.palette.warning.dark,
442
+ borderColor: theme2.palette.warning.dark
443
+ }
444
+ }
445
+ },
446
+ "&.MuiChip-filled": {
447
+ "&:hover": {
448
+ "&.MuiChip-colorSecondary": {
449
+ backgroundColor: theme2.palette.secondary.light
450
+ },
451
+ "&.MuiChip-colorDefault": {
452
+ backgroundColor: theme2.palette.default.dark
453
+ },
454
+ "&.MuiChip-colorSuccess": {
455
+ backgroundColor: material.alpha(theme2.palette.success.main, 0.25)
456
+ },
457
+ "&.MuiChip-colorInfo": {
458
+ backgroundColor: material.alpha(theme2.palette.info.main, 0.12)
459
+ },
460
+ "&.MuiChip-colorError": {
461
+ backgroundColor: material.alpha(theme2.palette.error.main, 0.12)
462
+ },
463
+ "&.MuiChip-colorWarning": {
464
+ backgroundColor: material.alpha(theme2.palette.warning.main, 0.25)
465
+ }
466
+ }
467
+ }
468
+ })
469
+ }
470
+ },
471
+ // Avatar
472
+ MuiAvatar: {
473
+ styleOverrides: {
474
+ root: ({ theme: theme2 }) => ({
475
+ overflow: "initial",
476
+ color: theme2.palette.secondary.contrastText,
477
+ backgroundColor: theme2.palette.secondary.main,
478
+ // Default fallback image override
479
+ // https://github.com/mui/material-ui/issues/33229
480
+ "& .MuiAvatar-fallback": {
481
+ path: {
482
+ d: `path('${avatarFallbackImage}') !important`
483
+ }
484
+ }
485
+ }),
486
+ img: ({ theme: theme2 }) => ({
487
+ boxShadow: `0 0 0 1px ${theme2.palette.default.outlinedBorder}`
488
+ }),
489
+ circular: () => ({
490
+ borderRadius: avatarCircularRadius,
491
+ "& img": {
492
+ borderRadius: avatarCircularRadius
493
+ }
494
+ }),
495
+ rounded: ({ theme: theme2 }) => ({
496
+ borderRadius: theme2.spacing(avatarRoundedRadius),
497
+ "& img": {
498
+ borderRadius: theme2.spacing(avatarRoundedRadius)
499
+ }
500
+ })
501
+ }
502
+ },
503
+ // Skeleton
504
+ MuiSkeleton: {
505
+ defaultProps: {
506
+ animation: "wave"
507
+ }
508
+ },
509
+ // Typography
510
+ MuiTypography: {
511
+ defaultProps: {
512
+ color: "textPrimary",
513
+ variantMapping: {
514
+ caption: "p",
515
+ overline: "p",
516
+ overlineDelicate: "p"
517
+ }
518
+ }
519
+ },
520
+ // Svg Icons
521
+ MuiSvgIcon: {
522
+ styleOverrides: {
523
+ root: () => ({
524
+ fontSize: TablePaginationActions.ICON_SIZE_MEDIUM
525
+ }),
526
+ fontSizeSmall: () => ({
527
+ fontSize: TablePaginationActions.ICON_SIZE_SMALL
528
+ }),
529
+ fontSizeLarge: () => ({
530
+ fontSize: TablePaginationActions.ICON_SIZE_LARGE
531
+ })
532
+ }
533
+ }
534
+ };
535
+ const sizeXsmall = TablePaginationActions.getSpacing(2);
536
+ const sizeSmall = TablePaginationActions.getSpacing(3);
537
+ const sizeMedium = TablePaginationActions.getSpacing(4);
538
+ const sizeLarge = TablePaginationActions.getSpacing(6);
539
+ const radius = TablePaginationActions.getSpacing(0.5);
540
+ const buttonsOverrides = {
541
+ // Button Base
542
+ MuiButtonBase: {
543
+ defaultProps: {
544
+ disableRipple: true
545
+ },
546
+ styleOverrides: {
547
+ root: () => ({
548
+ "& .MuiSvgIcon-root, & svg": {
549
+ display: "flex",
550
+ fontSize: TablePaginationActions.ICON_SIZE_MEDIUM,
551
+ width: TablePaginationActions.ICON_SIZE_MEDIUM,
552
+ minWidth: TablePaginationActions.ICON_SIZE_MEDIUM,
553
+ height: TablePaginationActions.ICON_SIZE_MEDIUM
554
+ }
555
+ })
556
+ }
557
+ },
558
+ // Button
559
+ MuiButton: {
560
+ defaultProps: {
561
+ disableElevation: true
562
+ },
563
+ styleOverrides: {
564
+ root: ({ ownerState, theme: theme2 }) => ({
565
+ // maxWidth: '192px', TODO temporary disabled waiting for a design definition
566
+ "&:hover, &:focus-visible": {
567
+ boxShadow: theme2.shadows[0],
568
+ ...ownerState.variant !== "contained" && {
569
+ ...ownerState.color === "primary" && {
570
+ backgroundColor: theme2.palette.primary.background
571
+ },
572
+ ...ownerState.color === "secondary" && {
573
+ backgroundColor: theme2.palette.secondary.background
574
+ },
575
+ ...ownerState.color === "error" && {
576
+ background: theme2.palette.error.relatedLight
577
+ }
578
+ },
579
+ ...ownerState.variant === "contained" && ownerState.color === "secondary" && {
580
+ backgroundColor: theme2.palette.secondary.light
581
+ }
582
+ },
583
+ "& svg:not(.doNotFillIcon) path": {
584
+ fill: "currentColor"
585
+ },
586
+ // Pairing buttons separation
587
+ "& + .MuiButtonBase-root": {
588
+ marginLeft: theme2.spacing(1)
589
+ }
590
+ }),
591
+ contained: ({ theme: theme2 }) => ({
592
+ boxShadow: "none",
593
+ "&.Mui-disabled": {
594
+ color: theme2.palette.text.disabled,
595
+ backgroundColor: theme2.palette.action.disabledBackground
596
+ }
597
+ }),
598
+ text: ({ theme: theme2 }) => ({
599
+ minWidth: theme2.spacing(7)
600
+ }),
601
+ outlined: ({ theme: theme2 }) => ({
602
+ "&.Mui-disabled": {
603
+ color: theme2.palette.text.disabled,
604
+ borderColor: theme2.palette.default.outlinedBorder
605
+ }
606
+ }),
607
+ outlinedPrimary: ({ theme: theme2 }) => ({
608
+ borderColor: theme2.palette.primary.main
609
+ }),
610
+ outlinedSecondary: ({ theme: theme2 }) => ({
611
+ borderColor: theme2.palette.secondary.main
612
+ }),
613
+ outlinedError: ({ theme: theme2 }) => ({
614
+ borderColor: theme2.palette.error.main
615
+ }),
616
+ containedPrimary: ({ theme: theme2 }) => ({
617
+ "&:hover, &:focus-visible": {
618
+ backgroundColor: theme2.palette.primary.dark
619
+ }
620
+ }),
621
+ containedError: ({ theme: theme2 }) => ({
622
+ "&:hover, &:focus-visible": {
623
+ backgroundColor: theme2.palette.error.dark
624
+ }
625
+ }),
626
+ startIcon: ({ theme: theme2 }) => ({
627
+ marginRight: theme2.spacing(0.75),
628
+ "& .MuiSvgIcon-root, & svg": {
629
+ fontSize: TablePaginationActions.ICON_SIZE_MEDIUM,
630
+ width: TablePaginationActions.ICON_SIZE_MEDIUM,
631
+ minWidth: TablePaginationActions.ICON_SIZE_MEDIUM,
632
+ height: TablePaginationActions.ICON_SIZE_MEDIUM
633
+ },
634
+ "&.MuiButton-iconSizeSmall": {
635
+ marginRight: theme2.spacing(0.5),
636
+ marginLeft: theme2.spacing(-0.5)
637
+ }
638
+ }),
639
+ endIcon: ({ theme: theme2 }) => ({
640
+ marginLeft: theme2.spacing(0.75),
641
+ "& .MuiSvgIcon-root, & svg": {
642
+ fontSize: TablePaginationActions.ICON_SIZE_MEDIUM,
643
+ width: TablePaginationActions.ICON_SIZE_MEDIUM,
644
+ minWidth: TablePaginationActions.ICON_SIZE_MEDIUM,
645
+ height: TablePaginationActions.ICON_SIZE_MEDIUM
646
+ },
647
+ "&.MuiButton-iconSizeSmall": {
648
+ marginLeft: theme2.spacing(0.5),
649
+ marginRight: theme2.spacing(-0.5)
650
+ }
651
+ }),
652
+ sizeSmall: ({ theme: theme2, ownerState }) => ({
653
+ height: sizeSmall,
654
+ padding: theme2.spacing(0, 1.5),
655
+ ...theme2.typography.caption,
656
+ lineHeight: sizeSmall,
657
+ fontWeight: 500,
658
+ letterSpacing: "0.4px",
659
+ ...ownerState.variant === "text" && {
660
+ padding: theme2.spacing(0, 1)
661
+ }
662
+ }),
663
+ sizeMedium: ({ theme: theme2, ownerState }) => ({
664
+ height: sizeMedium,
665
+ padding: theme2.spacing(0, 2),
666
+ lineHeight: sizeMedium,
667
+ ...ownerState.variant === "text" && {
668
+ padding: theme2.spacing(0, 1)
669
+ }
670
+ }),
671
+ sizeLarge: ({ theme: theme2, ownerState }) => ({
672
+ height: sizeLarge,
673
+ padding: theme2.spacing(0, 2.5),
674
+ ...theme2.typography.body1,
675
+ lineHeight: sizeLarge,
676
+ fontWeight: 500,
677
+ letterSpacing: "0.25px",
678
+ ...ownerState.variant === "text" && {
679
+ padding: theme2.spacing(0, 2)
680
+ }
681
+ })
682
+ },
683
+ variants: [
684
+ // Custom color and its variants
685
+ {
686
+ props: { variant: "contained", color: "default" },
687
+ style: ({ theme: theme2 }) => ({
688
+ color: theme2.palette.text.primary,
689
+ backgroundColor: theme2.palette.default.main,
690
+ borderColor: theme2.palette.text.primary,
691
+ "&.Mui-disabled": {
692
+ color: theme2.palette.text.disabled,
693
+ backgroundColor: theme2.palette.action.disabledBackground
694
+ },
695
+ "&:hover, &:focus-visible": {
696
+ backgroundColor: theme2.palette.default.dark
697
+ }
698
+ })
699
+ },
700
+ {
701
+ props: { variant: "outlined", color: "default" },
702
+ style: ({ theme: theme2 }) => ({
703
+ color: theme2.palette.text.primary,
704
+ borderColor: theme2.palette.text.primary,
705
+ "&.Mui-disabled": {
706
+ color: theme2.palette.text.disabled,
707
+ borderColor: theme2.palette.default.outlinedBorder
708
+ },
709
+ "&:hover, &:focus-visible": {
710
+ backgroundColor: theme2.palette.action.hover,
711
+ borderColor: theme2.palette.text.primary
712
+ }
713
+ })
714
+ },
715
+ {
716
+ props: { variant: "text", color: "default" },
717
+ style: ({ theme: theme2 }) => ({
718
+ color: theme2.palette.text.primary,
719
+ "&.Mui-disabled": {
720
+ color: theme2.palette.text.disabled
721
+ },
722
+ "&:hover, &:focus-visible": {
723
+ backgroundColor: theme2.palette.action.hover
724
+ }
725
+ })
726
+ }
727
+ ]
728
+ },
729
+ // Mui Button Group
730
+ MuiButtonGroup: {
731
+ defaultProps: {
732
+ disableRipple: true,
733
+ disableElevation: true
734
+ },
735
+ styleOverrides: {
736
+ root: ({ ownerState, theme: theme2 }) => ({
737
+ "& .MuiButton-root + .MuiButton-root": {
738
+ marginLeft: 0
739
+ },
740
+ ...ownerState.variant === "text" && {
741
+ boxShadow: theme2.shadows[1],
742
+ borderColor: theme2.palette.default.dark,
743
+ "& .MuiButtonGroup-grouped:not(:last-of-type)": {
744
+ borderColor: theme2.palette.default.dark
745
+ }
746
+ },
747
+ ...ownerState.variant === "outlined" && {
748
+ ...ownerState.color === "default" && {
749
+ "& .MuiButtonBase-root.Mui-disabled": {
750
+ borderColor: theme2.palette.text.primary
751
+ }
752
+ },
753
+ ...ownerState.color === "primary" && {
754
+ "& .MuiButtonBase-root.Mui-disabled": {
755
+ borderColor: theme2.palette.primary.main
756
+ }
757
+ },
758
+ ...ownerState.color === "secondary" && {
759
+ "& .MuiButtonBase-root.Mui-disabled": {
760
+ borderColor: theme2.palette.secondary.main
761
+ }
762
+ },
763
+ ...ownerState.orientation !== "vertical" && {
764
+ "& .MuiButtonGroup-grouped:not(:last-of-type):hover, & .Mui-disabled:not(:last-of-type)": {
765
+ borderRightColor: "transparent"
766
+ }
767
+ }
768
+ },
769
+ ...ownerState.variant === "contained" && {
770
+ ...ownerState.color === "default" && {
771
+ "& .MuiButtonGroup-grouped:not(:last-of-type)": {
772
+ borderRightColor: theme2.palette.default.dark,
773
+ "&.Mui-disabled": {
774
+ ...ownerState.color === "default" && {
775
+ borderColor: theme2.palette.default.dark
776
+ }
777
+ }
778
+ }
779
+ }
780
+ }
781
+ })
782
+ }
783
+ },
784
+ // Icon Button
785
+ MuiIconButton: {
786
+ styleOverrides: {
787
+ root: ({ ownerState, theme: theme2 }) => ({
788
+ position: "relative",
789
+ overflow: "hidden",
790
+ borderRadius: theme2.spacing(0.5),
791
+ ...ownerState.color === "default" && {
792
+ color: theme2.palette.text.secondary
793
+ },
794
+ "& .MuiSvgIcon-root, & svg": {
795
+ fontSize: TablePaginationActions.ICON_SIZE_MEDIUM,
796
+ width: TablePaginationActions.ICON_SIZE_MEDIUM,
797
+ minWidth: TablePaginationActions.ICON_SIZE_MEDIUM,
798
+ height: TablePaginationActions.ICON_SIZE_MEDIUM
799
+ },
800
+ "& svg": {
801
+ fill: "currentColor",
802
+ "& path": {
803
+ fillOpacity: 1
804
+ }
805
+ },
806
+ "& svg:not(.doNotFillIcon) path": {
807
+ fill: "currentColor"
808
+ },
809
+ "&.Mui-disabled svg:not(.doNotFillIcon) path": {
810
+ fill: theme2.palette.text.disabled
811
+ },
812
+ "&:hover, &:focus-visible": {
813
+ ...ownerState.color === "default" && {
814
+ backgroundColor: theme2.palette.action.hover
815
+ },
816
+ ...ownerState.color === "primary" && {
817
+ backgroundColor: theme2.palette.primary.background
818
+ },
819
+ ...ownerState.color === "secondary" && {
820
+ backgroundColor: theme2.palette.secondary.background
821
+ },
822
+ ...ownerState.color === "error" && {
823
+ backgroundColor: theme2.palette.error.relatedLight
824
+ },
825
+ ...ownerState.color === "warning" && {
826
+ backgroundColor: theme2.palette.warning.relatedLight
827
+ }
828
+ }
829
+ }),
830
+ sizeSmall: () => ({
831
+ width: sizeSmall,
832
+ height: sizeSmall
833
+ }),
834
+ sizeMedium: () => ({
835
+ width: sizeMedium,
836
+ height: sizeMedium
837
+ }),
838
+ sizeLarge: () => ({
839
+ width: sizeLarge,
840
+ height: sizeLarge
841
+ })
842
+ },
843
+ variants: [
844
+ // Custom props and its variants
845
+ {
846
+ props: { size: "xsmall" },
847
+ style: () => ({
848
+ width: sizeXsmall,
849
+ height: sizeXsmall,
850
+ "& .MuiSvgIcon-root, & svg": {
851
+ fontSize: TablePaginationActions.ICON_SIZE_SMALL,
852
+ width: TablePaginationActions.ICON_SIZE_SMALL,
853
+ minWidth: TablePaginationActions.ICON_SIZE_SMALL,
854
+ height: TablePaginationActions.ICON_SIZE_SMALL
855
+ }
856
+ })
857
+ },
858
+ {
859
+ props: { variant: "contained" },
860
+ style: ({ theme: theme2 }) => ({
861
+ // Default
862
+ color: theme2.palette.text.primary,
863
+ backgroundColor: theme2.palette.default.main,
864
+ "&:hover": {
865
+ backgroundColor: theme2.palette.default.dark
866
+ },
867
+ "&.MuiIconButton-colorSecondary": {
868
+ color: theme2.palette.secondary.contrastText,
869
+ backgroundColor: theme2.palette.secondary.main,
870
+ "&:hover": {
871
+ backgroundColor: theme2.palette.secondary.light
872
+ }
873
+ },
874
+ "&.MuiIconButton-colorPrimary": {
875
+ color: theme2.palette.primary.contrastText,
876
+ backgroundColor: theme2.palette.primary.main,
877
+ "&:hover": {
878
+ backgroundColor: theme2.palette.primary.dark
879
+ }
880
+ },
881
+ "&.MuiIconButton-colorError": {
882
+ color: theme2.palette.error.contrastText,
883
+ backgroundColor: theme2.palette.error.main,
884
+ "&:hover": {
885
+ backgroundColor: theme2.palette.error.dark
886
+ }
887
+ },
888
+ "&.MuiIconButton-colorWarning": {
889
+ color: theme2.palette.warning.contrastText,
890
+ backgroundColor: theme2.palette.warning.main,
891
+ "&:hover": {
892
+ backgroundColor: theme2.palette.warning.light
893
+ }
894
+ },
895
+ "&[disabled]": {
896
+ color: theme2.palette.text.disabled,
897
+ backgroundColor: theme2.palette.action.disabledBackground
898
+ }
899
+ })
900
+ },
901
+ {
902
+ props: { variant: "outlined" },
903
+ style: ({ theme: theme2 }) => ({
904
+ // Default
905
+ color: theme2.palette.text.primary,
906
+ border: `1px solid ${theme2.palette.text.primary}`,
907
+ "&:hover": {
908
+ backgroundColor: theme2.palette.action.hover
909
+ },
910
+ "&.MuiIconButton-colorSecondary": {
911
+ color: theme2.palette.secondary.main,
912
+ borderColor: theme2.palette.secondary.main,
913
+ "&:hover": {
914
+ backgroundColor: theme2.palette.secondary.background
915
+ }
916
+ },
917
+ "&.MuiIconButton-colorPrimary": {
918
+ color: theme2.palette.primary.main,
919
+ borderColor: theme2.palette.primary.main,
920
+ "&:hover": {
921
+ backgroundColor: theme2.palette.primary.background
922
+ }
923
+ },
924
+ "&.MuiIconButton-colorError": {
925
+ color: theme2.palette.error.main,
926
+ borderColor: theme2.palette.error.main,
927
+ "&:hover": {
928
+ backgroundColor: theme2.palette.error.relatedLight
929
+ }
930
+ },
931
+ "&.MuiIconButton-colorWarning": {
932
+ color: theme2.palette.warning.main,
933
+ borderColor: theme2.palette.warning.main,
934
+ "&:hover": {
935
+ backgroundColor: theme2.palette.warning.relatedLight
936
+ }
937
+ },
938
+ "&[disabled]": {
939
+ color: theme2.palette.text.disabled,
940
+ borderColor: theme2.palette.default.outlinedBorder
941
+ }
942
+ })
943
+ }
944
+ ]
945
+ },
946
+ // MuiToggleButton
947
+ MuiToggleButton: {
948
+ styleOverrides: {
949
+ root: ({ theme: theme2 }) => ({
950
+ minWidth: sizeMedium,
951
+ height: sizeMedium,
952
+ padding: theme2.spacing(0, 1),
953
+ color: theme2.palette.text.secondary,
954
+ border: "none",
955
+ borderRadius: radius,
956
+ transition: "background-color 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",
957
+ "&:hover": {
958
+ backgroundColor: theme2.palette.action.hover
959
+ },
960
+ // Pairing buttons separation
961
+ "& + &": {
962
+ marginLeft: theme2.spacing(0.5)
963
+ },
964
+ ".MuiSvgIcon-root, & svg": {
965
+ margin: theme2.spacing(0, -0.75)
966
+ },
967
+ "&.Mui-selected": {
968
+ color: theme2.palette.primary.main,
969
+ backgroundColor: theme2.palette.primary.background,
970
+ "&:hover": {
971
+ backgroundColor: theme2.palette.action.hover
972
+ }
973
+ },
974
+ "&.Mui-disabled": {
975
+ border: "none"
976
+ }
977
+ }),
978
+ sizeLarge: ({ theme: theme2 }) => ({
979
+ minWidth: sizeLarge,
980
+ height: sizeLarge,
981
+ ...theme2.typography.body1
982
+ }),
983
+ sizeSmall: ({ theme: theme2 }) => ({
984
+ minWidth: sizeSmall,
985
+ height: sizeSmall,
986
+ ...theme2.typography.caption,
987
+ fontWeight: 500
988
+ })
989
+ }
990
+ },
991
+ // MuiToggleButtonGroup
992
+ MuiToggleButtonGroup: {
993
+ defaultProps: {
994
+ orientation: "horizontal",
995
+ exclusive: true
996
+ },
997
+ styleOverrides: {
998
+ root: ({ theme: theme2 }) => ({
999
+ alignItems: "center",
1000
+ justifyContent: "center",
1001
+ borderRadius: theme2.spacing(1),
1002
+ boxShadow: theme2.shadows[1],
1003
+ backgroundColor: theme2.palette.background.paper,
1004
+ "& .MuiToggleButtonGroup-grouped:not(:first-of-type), &.Mui-Selected, & .MuiToggleButtonGroup-grouped:not(:last-of-type)": {
1005
+ borderRadius: radius
1006
+ },
1007
+ ".MuiDivider-root": {
1008
+ "&.MuiDivider-vertical": {
1009
+ height: sizeLarge,
1010
+ margin: theme2.spacing(0, 1),
1011
+ marginLeft: theme2.spacing(0.5)
1012
+ },
1013
+ "&.MuiDivider-horizontal": {
1014
+ width: sizeLarge,
1015
+ margin: theme2.spacing(1, 0),
1016
+ marginTop: theme2.spacing(0.5)
1017
+ }
1018
+ },
1019
+ ".MuiToggleButton-sizeSmall": {
1020
+ "& + .MuiDivider-root.MuiDivider-vertical": {
1021
+ height: sizeMedium
1022
+ },
1023
+ "& + .MuiDivider-root.MuiDivider-horizontal": {
1024
+ width: sizeMedium
1025
+ }
1026
+ }
1027
+ }),
1028
+ // Styles applied to the children if orientation="horizontal"
1029
+ groupedHorizontal: ({ theme: theme2 }) => ({
1030
+ height: sizeMedium,
1031
+ margin: theme2.spacing(1),
1032
+ "&:not(:last-of-type)": {
1033
+ marginRight: theme2.spacing(0.5),
1034
+ marginLeft: 0,
1035
+ borderLeft: "none"
1036
+ },
1037
+ "&:first-of-type:not(.MuiDivider-root)": {
1038
+ marginLeft: theme2.spacing(1)
1039
+ },
1040
+ "&:last-of-type:not(.MuiDivider-root)": {
1041
+ marginLeft: 0
1042
+ },
1043
+ "&.MuiToggleButton-sizeSmall:not(.MuiDivider-root)": {
1044
+ height: sizeSmall,
1045
+ margin: theme2.spacing(0.5),
1046
+ "&:not(:first-of-type)": {
1047
+ marginLeft: 0
1048
+ }
1049
+ }
1050
+ }),
1051
+ // Styles applied to the children if orientation="vertical"
1052
+ groupedVertical: ({ theme: theme2 }) => ({
1053
+ width: sizeMedium,
1054
+ margin: theme2.spacing(1),
1055
+ "&.MuiToggleButton-root": {
1056
+ marginLeft: theme2.spacing(1),
1057
+ marginBottom: theme2.spacing(0.5),
1058
+ "&:last-of-type": {
1059
+ marginBottom: theme2.spacing(1)
1060
+ },
1061
+ "&:not(:first-of-type)": {
1062
+ marginTop: 0
1063
+ }
1064
+ },
1065
+ "&.MuiToggleButton-sizeSmall": {
1066
+ width: sizeSmall,
1067
+ margin: theme2.spacing(0.5),
1068
+ "&:last-of-type": {
1069
+ marginBottom: theme2.spacing(0.5)
1070
+ }
1071
+ }
1072
+ })
1073
+ }
1074
+ },
1075
+ // FAB button
1076
+ MuiFab: {
1077
+ defaultProps: {
1078
+ color: "primary"
1079
+ },
1080
+ styleOverrides: {
1081
+ root: ({ ownerState, theme: theme2 }) => ({
1082
+ "&:focus": {
1083
+ boxShadow: theme2.shadows[6]
1084
+ },
1085
+ "& .MuiSvgIcon-root, & svg": {
1086
+ fontSize: TablePaginationActions.ICON_SIZE_LARGE,
1087
+ width: TablePaginationActions.ICON_SIZE_LARGE,
1088
+ minWidth: TablePaginationActions.ICON_SIZE_LARGE,
1089
+ height: TablePaginationActions.ICON_SIZE_LARGE
1090
+ },
1091
+ "&.MuiFab-extended": {
1092
+ ...theme2.typography.body1,
1093
+ fontWeight: 500,
1094
+ width: "auto",
1095
+ height: theme2.spacing(7),
1096
+ paddingRight: theme2.spacing(3),
1097
+ borderRadius: theme2.spacing(8),
1098
+ "& .MuiSvgIcon-root": {
1099
+ marginRight: theme2.spacing(1.5)
1100
+ }
1101
+ },
1102
+ ...ownerState.color === "default" && {
1103
+ color: theme2.palette.text.primary,
1104
+ backgroundColor: theme2.palette.background.paper,
1105
+ "&:hover, &:focus-visible": {
1106
+ backgroundColor: theme2.palette.default.light
1107
+ }
1108
+ }
1109
+ }),
1110
+ sizeSmall: ({ theme: theme2 }) => ({
1111
+ width: theme2.spacing(4),
1112
+ height: theme2.spacing(4),
1113
+ minHeight: theme2.spacing(4),
1114
+ "& .MuiSvgIcon-root, & svg": {
1115
+ fontSize: TablePaginationActions.ICON_SIZE_MEDIUM,
1116
+ width: TablePaginationActions.ICON_SIZE_MEDIUM,
1117
+ minWidth: TablePaginationActions.ICON_SIZE_MEDIUM,
1118
+ height: TablePaginationActions.ICON_SIZE_MEDIUM
1119
+ },
1120
+ "&.MuiFab-extended": {
1121
+ ...theme2.typography.caption,
1122
+ width: "auto",
1123
+ height: theme2.spacing(4),
1124
+ paddingRight: theme2.spacing(2),
1125
+ "& .MuiSvgIcon-root": {
1126
+ marginRight: theme2.spacing(1)
1127
+ }
1128
+ }
1129
+ }),
1130
+ sizeMedium: ({ theme: theme2 }) => ({
1131
+ "&.MuiFab-extended": {
1132
+ ...theme2.typography.button,
1133
+ height: theme2.spacing(6)
1134
+ }
1135
+ }),
1136
+ secondary: ({ theme: theme2 }) => ({
1137
+ "&:hover": {
1138
+ backgroundColor: theme2.palette.secondary.light
1139
+ }
1140
+ })
1141
+ }
1142
+ }
1143
+ };
1144
+ const controlSizeS = 2.25;
1145
+ const controlSizeM = 3;
1146
+ const switchSizeS = 2;
1147
+ const switchSizeM = 3;
1148
+ const switchSizeL = 4;
1149
+ const checkboxRadioOverrides = {
1150
+ root: ({ ownerState, theme: theme2 }) => ({
1151
+ padding: theme2.spacing(0.5),
1152
+ ...ownerState.size === "small" && {
1153
+ padding: "3px"
1154
+ // Forced to a non-standard value to meet with design
1155
+ },
1156
+ ...ownerState.readOnly === true && {
1157
+ pointerEvents: "none",
1158
+ color: theme2.palette.text.disabled,
1159
+ "&.Mui-checked": {
1160
+ color: theme2.palette.text.disabled
1161
+ }
1162
+ },
1163
+ "&:hover, &:focus-visible": {
1164
+ backgroundColor: theme2.palette.primary.background
1165
+ },
1166
+ "& + .MuiFormControlLabel-label": {
1167
+ ...theme2.typography.body2,
1168
+ marginLeft: theme2.spacing(0.25),
1169
+ ...ownerState.size === "small" && {
1170
+ marginLeft: theme2.spacing(0.5)
1171
+ }
1172
+ },
1173
+ "& .MuiSvgIcon-root": {
1174
+ fontSize: theme2.spacing(controlSizeM),
1175
+ width: theme2.spacing(controlSizeM),
1176
+ minWidth: theme2.spacing(controlSizeM),
1177
+ height: theme2.spacing(controlSizeM),
1178
+ ...ownerState.size === "small" && {
1179
+ fontSize: theme2.spacing(controlSizeS),
1180
+ width: theme2.spacing(controlSizeS),
1181
+ minWidth: theme2.spacing(controlSizeS),
1182
+ height: theme2.spacing(controlSizeS)
1183
+ }
1184
+ }
1185
+ })
1186
+ };
1187
+ const LabelOverrides = {
1188
+ root: ({ theme: theme2 }) => ({
1189
+ position: "static",
1190
+ transform: "none",
1191
+ marginBottom: theme2.spacing(1),
1192
+ ...theme2.typography.caption,
1193
+ fontWeight: 500,
1194
+ color: theme2.palette.text.primary
1195
+ }),
1196
+ sizeSmall: ({ theme: theme2 }) => ({
1197
+ marginBottom: theme2.spacing(0.5)
1198
+ }),
1199
+ standard: () => ({
1200
+ marginBottom: 0
1201
+ }),
1202
+ // Temporal workaroud to give a faster solution for a Workflows demand: https://app.shortcut.com/cartoteam/story/294539/distinction-among-parameters-optional-inputs-units-in-the-ui
1203
+ // These styles avoid (by now) the need to review current forms and change those with a required mark.
1204
+ // TODO: remored asterisk completely and use instead LabelWithIndicator component to mark also required ones.
1205
+ asterisk: ({ theme: theme2 }) => ({
1206
+ "&, &.Mui-error": {
1207
+ color: "transparent"
1208
+ },
1209
+ "&::after": {
1210
+ content: '"(required)"',
1211
+ marginLeft: theme2.spacing(-0.5),
1212
+ color: theme2.palette.text.secondary,
1213
+ fontWeight: 400,
1214
+ ".Mui-disabled &": {
1215
+ color: theme2.palette.text.disabled
1216
+ }
1217
+ }
1218
+ })
1219
+ };
1220
+ const formsOverrides = {
1221
+ // Checkbox
1222
+ MuiCheckbox: {
1223
+ defaultProps: {
1224
+ size: "small"
1225
+ },
1226
+ styleOverrides: {
1227
+ ...checkboxRadioOverrides
1228
+ }
1229
+ },
1230
+ // Radio Button
1231
+ MuiRadio: {
1232
+ defaultProps: {
1233
+ size: "small"
1234
+ },
1235
+ styleOverrides: {
1236
+ ...checkboxRadioOverrides
1237
+ }
1238
+ },
1239
+ // Text Field
1240
+ MuiTextField: {
1241
+ defaultProps: {
1242
+ fullWidth: true,
1243
+ size: "small",
1244
+ InputLabelProps: {
1245
+ shrink: true
1246
+ },
1247
+ SelectProps: {
1248
+ IconComponent: ArrowDown.ArrowDown,
1249
+ size: "small"
1250
+ }
1251
+ },
1252
+ styleOverrides: {
1253
+ root: ({ ownerState, theme: theme2 }) => ({
1254
+ "& legend": {
1255
+ display: "none"
1256
+ },
1257
+ // Select bool
1258
+ ...ownerState.select === true && {
1259
+ "& .MuiInputBase-root": {
1260
+ padding: 0,
1261
+ "&.MuiOutlinedInput-root, &.MuiFilledInput-root": {
1262
+ padding: 0
1263
+ },
1264
+ "& .MuiInputAdornment-positionEnd": {
1265
+ marginRight: theme2.spacing(3)
1266
+ },
1267
+ "& .MuiSelect-select": {
1268
+ padding: theme2.spacing(1.5),
1269
+ "&.MuiInputBase-input": {
1270
+ paddingLeft: theme2.spacing(2),
1271
+ paddingRight: theme2.spacing(5),
1272
+ "&.MuiSelect-standard": {
1273
+ paddingLeft: 0
1274
+ }
1275
+ },
1276
+ "&:focus": {
1277
+ background: "transparent"
1278
+ },
1279
+ "& .MuiTypography-root": {
1280
+ whiteSpace: "nowrap",
1281
+ overflow: "hidden",
1282
+ textOverflow: "ellipsis"
1283
+ }
1284
+ },
1285
+ "& .MuiSelect-icon": {
1286
+ right: theme2.spacing(2),
1287
+ color: theme2.palette.text.secondary
1288
+ },
1289
+ "& .MuiSelect-iconStandard": {
1290
+ right: 0
1291
+ }
1292
+ },
1293
+ "& .MuiInputBase-sizeSmall": {
1294
+ "&.MuiInputBase-root.MuiFilledInput-root": {
1295
+ padding: 0
1296
+ },
1297
+ "& .MuiSelect-select": {
1298
+ ...theme2.typography.body2,
1299
+ padding: theme2.spacing(0.75),
1300
+ "&.MuiInputBase-input": {
1301
+ paddingLeft: theme2.spacing(1.5),
1302
+ paddingRight: theme2.spacing(4)
1303
+ }
1304
+ },
1305
+ "&.MuiOutlinedInput-root.MuiInputBase-sizeSmall": {
1306
+ padding: 0
1307
+ },
1308
+ "& .MuiSelect-icon": {
1309
+ right: theme2.spacing(1.5)
1310
+ }
1311
+ }
1312
+ }
1313
+ })
1314
+ }
1315
+ },
1316
+ // Input Base
1317
+ MuiInputBase: {
1318
+ styleOverrides: {
1319
+ root: ({ theme: theme2 }) => ({
1320
+ height: theme2.spacing(6),
1321
+ ...theme2.typography.body1,
1322
+ "& input": {
1323
+ padding: 0,
1324
+ whiteSpace: "nowrap",
1325
+ overflow: "hidden",
1326
+ textOverflow: "ellipsis",
1327
+ "&::placeholder": {
1328
+ opacity: 1,
1329
+ color: theme2.palette.text.hint
1330
+ },
1331
+ "&:read-only::placeholder": {
1332
+ color: theme2.palette.text.disabled
1333
+ },
1334
+ "&.Mui-disabled::placeholder": {
1335
+ color: theme2.palette.text.disabled
1336
+ },
1337
+ // Remove focus on keyboard navigation as the parent element has focus
1338
+ "&:focus-visible": {
1339
+ outline: "none !important",
1340
+ boxShadow: "none !important"
1341
+ }
1342
+ },
1343
+ "&.Mui-disabled": {
1344
+ cursor: "not-allowed",
1345
+ "& .Mui-disabled": {
1346
+ cursor: "not-allowed"
1347
+ }
1348
+ },
1349
+ "&.MuiInputBase-formControl::after": {
1350
+ top: 0,
1351
+ transform: "none",
1352
+ opacity: 0
1353
+ },
1354
+ "&.MuiInputBase-formControl.Mui-focused::after": {
1355
+ transform: "none",
1356
+ opacity: 1
1357
+ },
1358
+ "& legend": { display: "none" },
1359
+ "& .MuiButtonBase-root.MuiMenuItem-root": {
1360
+ padding: 0,
1361
+ "&:hover": {
1362
+ backgroundColor: "transparent"
1363
+ },
1364
+ [theme2.breakpoints.up("sm")]: {
1365
+ minHeight: "initial"
1366
+ }
1367
+ },
1368
+ // Variants
1369
+ "&.MuiFilledInput-root": {
1370
+ padding: theme2.spacing(1, 2),
1371
+ borderRadius: theme2.spacing(0.5),
1372
+ backgroundColor: theme2.palette.default.background,
1373
+ "&:hover": {
1374
+ backgroundColor: theme2.palette.default.background
1375
+ },
1376
+ "&::before": {
1377
+ top: 0,
1378
+ borderRadius: theme2.spacing(0.5),
1379
+ border: "1px solid transparent",
1380
+ transition: "border 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms"
1381
+ },
1382
+ "&:hover:not(.Mui-disabled)::before": {
1383
+ borderColor: theme2.palette.text.primary
1384
+ },
1385
+ "&::after": {
1386
+ borderRadius: theme2.spacing(0.5),
1387
+ border: "1px solid transparent"
1388
+ },
1389
+ "&.MuiInputBase-sizeSmall": {
1390
+ padding: theme2.spacing(0.5, 1.5)
1391
+ },
1392
+ "&.Mui-focused": {
1393
+ backgroundColor: theme2.palette.background.paper,
1394
+ "&::after": {
1395
+ border: `2px solid ${theme2.palette.primary.main}`
1396
+ }
1397
+ },
1398
+ "&.Mui-disabled": {
1399
+ backgroundColor: theme2.palette.default.background,
1400
+ "&::before": {
1401
+ borderBottomStyle: "solid"
1402
+ }
1403
+ },
1404
+ "&.Mui-error::after": {
1405
+ opacity: 1,
1406
+ border: `2px solid ${theme2.palette.error.light}`
1407
+ },
1408
+ "&.Mui-readOnly": {
1409
+ "&.Mui-focused": {
1410
+ backgroundColor: theme2.palette.default.background
1411
+ }
1412
+ }
1413
+ },
1414
+ "&.MuiOutlinedInput-root": {
1415
+ padding: theme2.spacing(1, 2),
1416
+ "&.MuiInputBase-sizeSmall": {
1417
+ padding: theme2.spacing(0.5, 1.5)
1418
+ },
1419
+ "&.Mui-focused": {
1420
+ backgroundColor: theme2.palette.background.paper
1421
+ },
1422
+ "&.Mui-disabled": {
1423
+ backgroundColor: theme2.palette.default.background
1424
+ },
1425
+ "&.Mui-readOnly": {
1426
+ backgroundColor: theme2.palette.default.background,
1427
+ "&.Mui-focused": {
1428
+ backgroundColor: theme2.palette.default.background
1429
+ }
1430
+ },
1431
+ "& .MuiOutlinedInput-notchedOutline": {
1432
+ top: 0,
1433
+ borderColor: theme2.palette.default.outlinedBorder,
1434
+ transition: "border 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms"
1435
+ },
1436
+ "&.Mui-focused .MuiOutlinedInput-notchedOutline": {
1437
+ transition: "none"
1438
+ },
1439
+ "&.Mui-error .MuiOutlinedInput-notchedOutline": {
1440
+ border: `2px solid ${theme2.palette.error.light}`
1441
+ }
1442
+ },
1443
+ "&.MuiInput-underline": {
1444
+ marginTop: 0,
1445
+ padding: 0,
1446
+ "&::before": {
1447
+ borderColor: theme2.palette.default.outlinedBorder
1448
+ },
1449
+ "&:hover:not(.Mui-disabled)::before": {
1450
+ borderBottom: `1px solid ${theme2.palette.text.primary}`
1451
+ },
1452
+ "&:not(.Mui-disabled)::after": {
1453
+ borderBottom: "1px solid transparent"
1454
+ },
1455
+ "&.Mui-focused::after": {
1456
+ borderBottom: `2px solid ${theme2.palette.primary.main}`
1457
+ },
1458
+ "&.Mui-error::after": {
1459
+ opacity: 1,
1460
+ borderBottom: `2px solid ${theme2.palette.error.light}`
1461
+ },
1462
+ "&.Mui-disabled::before": {
1463
+ borderBottomStyle: "solid"
1464
+ }
1465
+ },
1466
+ // TextArea (multiline)
1467
+ "&.MuiInputBase-multiline": {
1468
+ height: "auto",
1469
+ minHeight: theme2.spacing(12),
1470
+ alignItems: "flex-start",
1471
+ padding: theme2.spacing(0, 0.25),
1472
+ "& textarea": {
1473
+ padding: theme2.spacing(1.5, 1.75),
1474
+ ...theme2.typography.body1,
1475
+ "&::placeholder": {
1476
+ opacity: 1,
1477
+ color: theme2.palette.text.hint
1478
+ },
1479
+ "&.Mui-disabled::placeholder": {
1480
+ color: theme2.palette.text.disabled
1481
+ },
1482
+ // Remove focus on keyboard navigation as the parent element has focus
1483
+ "&:focus-visible": {
1484
+ outline: "none !important",
1485
+ boxShadow: "none !important"
1486
+ }
1487
+ },
1488
+ "&.MuiInputBase-sizeSmall": {
1489
+ minHeight: theme2.spacing(9),
1490
+ padding: theme2.spacing(0, 0.25),
1491
+ "& textarea": {
1492
+ padding: theme2.spacing(1, 1.25),
1493
+ ...theme2.typography.body2
1494
+ }
1495
+ }
1496
+ },
1497
+ // Select Multiple selection
1498
+ "&.MuiInputBase-root .MuiSelect-multiple.MuiInputBase-input": {
1499
+ paddingLeft: 0,
1500
+ paddingRight: theme2.spacing(3)
1501
+ }
1502
+ }),
1503
+ // size
1504
+ sizeSmall: ({ theme: theme2 }) => ({
1505
+ height: theme2.spacing(4),
1506
+ padding: theme2.spacing(0, 1.5),
1507
+ "& input": {
1508
+ ...theme2.typography.body2
1509
+ }
1510
+ })
1511
+ }
1512
+ },
1513
+ // Input Adornment
1514
+ MuiInputAdornment: {
1515
+ styleOverrides: {
1516
+ root: ({ theme: theme2 }) => ({
1517
+ "& .MuiTypography-root": {
1518
+ ...theme2.typography.body1,
1519
+ color: theme2.palette.text.secondary
1520
+ },
1521
+ "&.MuiInputAdornment-sizeSmall": {
1522
+ "& .MuiTypography-root": {
1523
+ ...theme2.typography.body2
1524
+ }
1525
+ },
1526
+ "&.MuiInputAdornment-positionStart.MuiInputAdornment-root:not(.MuiInputAdornment-hiddenLabel)": {
1527
+ marginTop: 0
1528
+ },
1529
+ "& .MuiSvgIcon-root, & svg": {
1530
+ fontSize: TablePaginationActions.ICON_SIZE_MEDIUM,
1531
+ width: TablePaginationActions.ICON_SIZE_MEDIUM,
1532
+ minWidth: TablePaginationActions.ICON_SIZE_MEDIUM,
1533
+ height: TablePaginationActions.ICON_SIZE_MEDIUM,
1534
+ color: theme2.palette.text.secondary
1535
+ },
1536
+ ".Mui-disabled &": {
1537
+ "& .MuiTypography-root, & .MuiSvgIcon-root": {
1538
+ color: theme2.palette.text.disabled
1539
+ }
1540
+ }
1541
+ })
1542
+ }
1543
+ },
1544
+ // Form Control
1545
+ MuiFormControl: {
1546
+ defaultProps: {
1547
+ fullWidth: true
1548
+ }
1549
+ },
1550
+ // Form Control Label (radio, checkbox and switch wrapper)
1551
+ MuiFormControlLabel: {
1552
+ styleOverrides: {
1553
+ root: ({ ownerState, theme: theme2 }) => ({
1554
+ marginLeft: theme2.spacing(-0.5),
1555
+ "& .MuiSwitch-root": {
1556
+ marginLeft: theme2.spacing(0.5)
1557
+ },
1558
+ ...ownerState.readOnly === true && {
1559
+ pointerEvents: "none"
1560
+ }
1561
+ })
1562
+ }
1563
+ },
1564
+ // Form Helper Text
1565
+ MuiFormHelperText: {
1566
+ styleOverrides: {
1567
+ root: ({ theme: theme2 }) => ({
1568
+ margin: 0,
1569
+ marginTop: theme2.spacing(1)
1570
+ })
1571
+ }
1572
+ },
1573
+ // Label
1574
+ MuiInputLabel: {
1575
+ styleOverrides: {
1576
+ ...LabelOverrides
1577
+ }
1578
+ },
1579
+ MuiFormLabel: {
1580
+ styleOverrides: {
1581
+ ...LabelOverrides
1582
+ }
1583
+ },
1584
+ // Select
1585
+ MuiSelect: {
1586
+ defaultProps: {
1587
+ IconComponent: ArrowDown.ArrowDown,
1588
+ fullWidth: true,
1589
+ size: "small"
1590
+ },
1591
+ styleOverrides: {
1592
+ root: ({ theme: theme2 }) => ({
1593
+ padding: 0,
1594
+ "& .MuiSelect-icon": {
1595
+ right: theme2.spacing(2),
1596
+ color: theme2.palette.text.secondary
1597
+ },
1598
+ "&.Mui-disabled .MuiSelect-icon, &.Mui-readOnly .MuiSelect-icon": {
1599
+ color: theme2.palette.text.disabled
1600
+ },
1601
+ "& .MuiSelect-iconStandard": {
1602
+ right: 0
1603
+ },
1604
+ "& legend": {
1605
+ display: "none"
1606
+ },
1607
+ // Variants
1608
+ "&.MuiOutlinedInput-root, &.MuiFilledInput-root": {
1609
+ padding: 0
1610
+ },
1611
+ "&.MuiFilledInput-root, &.MuiInput-underline": {
1612
+ "&.Mui-focused::after": {
1613
+ height: "100%",
1614
+ transition: "none"
1615
+ }
1616
+ },
1617
+ // Size Small
1618
+ "&.MuiInputBase-sizeSmall": {
1619
+ ...theme2.typography.body2,
1620
+ "& .MuiSelect-select": {
1621
+ "&.MuiInputBase-input": {
1622
+ paddingLeft: theme2.spacing(1.5),
1623
+ paddingRight: theme2.spacing(4)
1624
+ },
1625
+ "&.MuiSelect-standard": {
1626
+ paddingLeft: 0
1627
+ }
1628
+ },
1629
+ "&.MuiOutlinedInput-root.MuiInputBase-sizeSmall, &.MuiFilledInput-root.MuiInputBase-sizeSmall": {
1630
+ padding: 0
1631
+ },
1632
+ "& .MuiSelect-icon": {
1633
+ right: theme2.spacing(1.5)
1634
+ }
1635
+ }
1636
+ }),
1637
+ select: ({ theme: theme2 }) => ({
1638
+ padding: theme2.spacing(1.5),
1639
+ "&.MuiInputBase-input": {
1640
+ paddingLeft: theme2.spacing(2),
1641
+ paddingRight: theme2.spacing(5),
1642
+ "&.MuiSelect-standard": {
1643
+ paddingLeft: 0
1644
+ }
1645
+ },
1646
+ "&:focus": {
1647
+ background: "transparent"
1648
+ },
1649
+ // Remove focus on keyboard navigation as the parent element has focus
1650
+ "&:focus-visible": {
1651
+ outline: "none !important",
1652
+ boxShadow: "none !important"
1653
+ },
1654
+ "& .MuiTypography-root": {
1655
+ whiteSpace: "nowrap",
1656
+ overflow: "hidden",
1657
+ textOverflow: "ellipsis"
1658
+ },
1659
+ "&.MuiInputBase-inputSizeSmall": {
1660
+ padding: theme2.spacing(0.75)
1661
+ }
1662
+ })
1663
+ }
1664
+ },
1665
+ // Autocomplete
1666
+ MuiAutocomplete: {
1667
+ defaultProps: {
1668
+ size: "small",
1669
+ fullWidth: true,
1670
+ popupIcon: /* @__PURE__ */ jsxRuntime.jsx(ArrowDown.ArrowDown, {}),
1671
+ clearIcon: /* @__PURE__ */ jsxRuntime.jsx(material.Tooltip, { title: "Clear", children: /* @__PURE__ */ jsxRuntime.jsx(iconsMaterial.Cancel, { "data-testid": "cancel-icon-autocomplete" }) }),
1672
+ clearText: "",
1673
+ ChipProps: { color: "default" },
1674
+ limitTags: 1,
1675
+ componentsProps: {
1676
+ paper: {
1677
+ elevation: 8
1678
+ }
1679
+ }
1680
+ },
1681
+ styleOverrides: {
1682
+ root: ({ ownerState, theme: theme2 }) => ({
1683
+ "&.MuiAutocomplete-root .MuiFormControl-root": {
1684
+ //Needed to overide Mui default styles
1685
+ ".MuiInputBase-root": {
1686
+ gap: theme2.spacing(0.5),
1687
+ height: "auto",
1688
+ minHeight: theme2.spacing(6),
1689
+ padding: theme2.spacing(1, 2),
1690
+ paddingRight: theme2.spacing(5),
1691
+ ".MuiInputBase-input": {
1692
+ padding: 0
1693
+ },
1694
+ // Multiple
1695
+ ...ownerState.multiple === true && {
1696
+ paddingLeft: theme2.spacing(1),
1697
+ ".MuiInputBase-input": {
1698
+ padding: 0,
1699
+ marginLeft: theme2.spacing(1)
1700
+ }
1701
+ },
1702
+ ...ownerState.size === "small" && {
1703
+ minHeight: theme2.spacing(4),
1704
+ padding: theme2.spacing(0.5, 1.5),
1705
+ paddingRight: theme2.spacing(4),
1706
+ ...ownerState.multiple === true && {
1707
+ paddingLeft: theme2.spacing(0.5)
1708
+ }
1709
+ },
1710
+ ...ownerState.readOnly === true && {
1711
+ backgroundColor: theme2.palette.default.background
1712
+ },
1713
+ "&.Mui-disabled": {
1714
+ pointerEvents: "none"
1715
+ }
1716
+ },
1717
+ // Variants
1718
+ ".MuiFilledInput-root .MuiAutocomplete-tag": {
1719
+ backgroundColor: "transparent",
1720
+ border: `1px solid ${theme2.palette.default.main}`
1721
+ }
1722
+ },
1723
+ "&.MuiAutocomplete-hasClearIcon .MuiFormControl-root .MuiInputBase-root": {
1724
+ paddingRight: theme2.spacing(8.5),
1725
+ ...ownerState.size === "small" && {
1726
+ paddingRight: theme2.spacing(7)
1727
+ }
1728
+ }
1729
+ }),
1730
+ inputRoot: ({ theme: theme2 }) => ({
1731
+ maxHeight: theme2.spacing(20),
1732
+ // 160px
1733
+ overflow: "auto",
1734
+ transition: "box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",
1735
+ "& .MuiAutocomplete-input": {
1736
+ minWidth: `${theme2.spacing(10)} !important`,
1737
+ "&[readOnly]": {
1738
+ display: "none"
1739
+ }
1740
+ },
1741
+ // Overrides in variants needed to allow scrollbar to appear correctly at max height
1742
+ "&::before, &::after": {
1743
+ content: "none"
1744
+ },
1745
+ "& fieldset": {
1746
+ border: "0 !important"
1747
+ },
1748
+ "&.MuiOutlinedInput-root": {
1749
+ boxShadow: `inset 0 0 0 1px ${theme2.palette.default.outlinedBorder}`
1750
+ },
1751
+ "&:hover": {
1752
+ boxShadow: `inset 0 0 0 1px ${theme2.palette.text.primary}`
1753
+ },
1754
+ "&.Mui-focused": {
1755
+ transition: "none",
1756
+ boxShadow: `inset 0 0 0 2px ${theme2.palette.primary.main}`
1757
+ },
1758
+ "&.Mui-error": {
1759
+ boxShadow: `inset 0 0 0 2px ${theme2.palette.error.light}`
1760
+ },
1761
+ "&.Mui-disabled.MuiOutlinedInput-root": {
1762
+ boxShadow: `inset 0 0 0 1px ${theme2.palette.default.outlinedBorder}`,
1763
+ "&.Mui-error": {
1764
+ boxShadow: `inset 0 0 0 2px ${theme2.palette.error.light}`
1765
+ }
1766
+ },
1767
+ "&.Mui-disabled.MuiFilledInput-root": {
1768
+ "& .MuiAutocomplete-tag": {
1769
+ borderColor: `${theme2.palette.default.outlinedBorder} !important`
1770
+ }
1771
+ }
1772
+ }),
1773
+ endAdornment: ({ theme: theme2 }) => ({
1774
+ transform: "none",
1775
+ top: theme2.spacing(2),
1776
+ display: "flex",
1777
+ alignItems: "center",
1778
+ justifyContent: "flex-end",
1779
+ marginRight: theme2.spacing(1),
1780
+ ".MuiAutocomplete-hasClearIcon &": {
1781
+ top: theme2.spacing(1)
1782
+ },
1783
+ ".MuiInputBase-sizeSmall &": {
1784
+ top: theme2.spacing(0.5),
1785
+ width: theme2.spacing(3),
1786
+ height: theme2.spacing(3),
1787
+ marginRight: theme2.spacing(0.5)
1788
+ }
1789
+ }),
1790
+ clearIndicator: ({ ownerState, theme: theme2 }) => ({
1791
+ marginRight: 0,
1792
+ color: theme2.palette.text.hint,
1793
+ ...ownerState.size === "small" && {
1794
+ width: theme2.spacing(3),
1795
+ height: theme2.spacing(3)
1796
+ }
1797
+ }),
1798
+ popupIndicator: ({ theme: theme2 }) => ({
1799
+ width: TablePaginationActions.ICON_SIZE_MEDIUM,
1800
+ height: TablePaginationActions.ICON_SIZE_MEDIUM,
1801
+ cursor: "pointer",
1802
+ "&:hover": {
1803
+ backgroundColor: "transparent"
1804
+ },
1805
+ "&.MuiButtonBase-root": {
1806
+ color: theme2.palette.text.secondary
1807
+ },
1808
+ ".Mui-disabled &": {
1809
+ color: theme2.palette.text.disabled
1810
+ },
1811
+ "input:read-only + .MuiAutocomplete-endAdornment &": {
1812
+ color: theme2.palette.text.disabled
1813
+ }
1814
+ }),
1815
+ tag: ({ ownerState, theme: theme2 }) => ({
1816
+ margin: 0,
1817
+ "&:not(.MuiButtonBase-root)": {
1818
+ display: "flex",
1819
+ alignItems: "center",
1820
+ height: theme2.spacing(4),
1821
+ padding: theme2.spacing(0, 1.5),
1822
+ backgroundColor: theme2.palette.default.main,
1823
+ borderRadius: theme2.spacing(2),
1824
+ ...theme2.typography.button,
1825
+ fontWeight: theme2.typography.fontWeightMedium,
1826
+ ...ownerState.size === "small" && {
1827
+ height: theme2.spacing(3),
1828
+ padding: theme2.spacing(0, 1),
1829
+ borderRadius: theme2.spacing(1.5),
1830
+ ...theme2.typography.caption,
1831
+ fontWeight: theme2.typography.fontWeightMedium
1832
+ }
1833
+ }
1834
+ }),
1835
+ option: ({ ownerState, theme: theme2 }) => ({
1836
+ "&.MuiAutocomplete-option": {
1837
+ minHeight: theme2.spacing(4),
1838
+ padding: theme2.spacing(0.5, 2),
1839
+ ...theme2.typography.body2,
1840
+ transition: "background-color 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",
1841
+ "& .MuiCheckbox-root svg path": {
1842
+ fill: theme2.palette.text.secondary
1843
+ },
1844
+ "&:hover": {
1845
+ backgroundColor: theme2.palette.action.hover
1846
+ },
1847
+ "&.Mui-disabled": {
1848
+ "& .MuiCheckbox-root svg path": {
1849
+ fill: theme2.palette.text.disabled
1850
+ }
1851
+ },
1852
+ '&[aria-disabled="true"]': {
1853
+ opacity: 1
1854
+ },
1855
+ '&[aria-selected="true"]': {
1856
+ color: theme2.palette.primary.main,
1857
+ backgroundColor: theme2.palette.primary.background,
1858
+ ".MuiTypography-root": {
1859
+ color: theme2.palette.primary.main
1860
+ },
1861
+ ".MuiTypography-caption": {
1862
+ color: theme2.palette.text.secondary
1863
+ },
1864
+ "& .MuiCheckbox-root svg path": {
1865
+ fill: theme2.palette.primary.main
1866
+ },
1867
+ "&.Mui-focused:hover": {
1868
+ backgroundColor: theme2.palette.action.hover
1869
+ },
1870
+ "&.Mui-disabled": {
1871
+ backgroundColor: "transparent",
1872
+ "& svg path": {
1873
+ fill: theme2.palette.text.disabled
1874
+ },
1875
+ "& .MuiCheckbox-root svg path": {
1876
+ fill: theme2.palette.text.disabled
1877
+ },
1878
+ "& .MuiTypography-root": {
1879
+ color: theme2.palette.text.disabled
1880
+ }
1881
+ }
1882
+ },
1883
+ "&:first-of-type": {
1884
+ marginTop: theme2.spacing(1)
1885
+ },
1886
+ ...ownerState.size === "small" && {
1887
+ padding: theme2.spacing(0.5, 1.5)
1888
+ }
1889
+ }
1890
+ }),
1891
+ noOptions: ({ ownerState, theme: theme2 }) => ({
1892
+ padding: theme2.spacing(2.5, 2),
1893
+ ...theme2.typography.body2,
1894
+ color: theme2.palette.text.secondary,
1895
+ ...ownerState.size === "small" && {
1896
+ padding: theme2.spacing(2, 1.5)
1897
+ }
1898
+ }),
1899
+ listbox: ({ theme: theme2 }) => ({
1900
+ paddingTop: 0,
1901
+ ".MuiDivider-root": {
1902
+ display: "none"
1903
+ },
1904
+ ".MuiButtonBase-root + .MuiDivider-root": {
1905
+ display: "block"
1906
+ },
1907
+ ".MuiMenuItem-root:first-of-type": {
1908
+ marginTop: theme2.spacing(1)
1909
+ }
1910
+ })
1911
+ }
1912
+ },
1913
+ // Switch
1914
+ MuiSwitch: {
1915
+ defaultProps: {
1916
+ disableRipple: true
1917
+ },
1918
+ styleOverrides: {
1919
+ root: ({ theme: theme2 }) => ({
1920
+ width: theme2.spacing(switchSizeM),
1921
+ height: theme2.spacing(switchSizeS),
1922
+ padding: 0,
1923
+ overflow: "visible",
1924
+ "& + .MuiTypography-root": {
1925
+ marginLeft: theme2.spacing(1),
1926
+ color: theme2.palette.text.primary
1927
+ },
1928
+ "& + .MuiFormControlLabel-label": {
1929
+ ...theme2.typography.body2
1930
+ }
1931
+ }),
1932
+ switchBase: ({ ownerState, theme: theme2 }) => ({
1933
+ width: theme2.spacing(switchSizeL),
1934
+ height: theme2.spacing(switchSizeL),
1935
+ padding: theme2.spacing(0.5),
1936
+ borderRadius: "50%",
1937
+ color: theme2.palette.text.secondary,
1938
+ transform: "translate(-8px, -8px)",
1939
+ "&:hover": {
1940
+ backgroundColor: theme2.palette.action.hover
1941
+ },
1942
+ "&.MuiSwitch-switchBase input": {
1943
+ top: theme2.spacing(1),
1944
+ left: theme2.spacing(1)
1945
+ },
1946
+ "&.Mui-checked": {
1947
+ transform: "translate(0, -8px)",
1948
+ color: theme2.palette.common.white,
1949
+ "&.MuiSwitch-switchBase input": {
1950
+ left: 0
1951
+ },
1952
+ "& + .MuiSwitch-track": {
1953
+ opacity: 1,
1954
+ border: 0
1955
+ }
1956
+ },
1957
+ ...ownerState.readOnly === true && {
1958
+ color: theme2.palette.text.disabled
1959
+ }
1960
+ }),
1961
+ thumb: ({ theme: theme2 }) => ({
1962
+ width: theme2.spacing(1),
1963
+ height: theme2.spacing(1),
1964
+ boxShadow: theme2.shadows[0],
1965
+ ".Mui-checked &": {
1966
+ boxShadow: theme2.shadows[1]
1967
+ },
1968
+ ".Mui-disabled &": {
1969
+ backgroundColor: theme2.palette.text.disabled
1970
+ },
1971
+ ".Mui-disabled.Mui-checked &": {
1972
+ backgroundColor: theme2.palette.common.white
1973
+ }
1974
+ }),
1975
+ input: ({ theme: theme2 }) => ({
1976
+ width: theme2.spacing(switchSizeM),
1977
+ height: theme2.spacing(switchSizeS),
1978
+ left: 0
1979
+ }),
1980
+ track: ({ ownerState, theme: theme2 }) => ({
1981
+ height: "auto",
1982
+ border: `1px solid ${theme2.palette.text.secondary}`,
1983
+ borderRadius: theme2.spacing(2),
1984
+ opacity: 1,
1985
+ backgroundColor: theme2.palette.common.white,
1986
+ transitionDuration: "300ms",
1987
+ ".MuiButtonBase-root.MuiSwitch-switchBase.Mui-disabled + &": {
1988
+ opacity: 1,
1989
+ borderColor: theme2.palette.text.disabled
1990
+ },
1991
+ ".MuiButtonBase-root.Mui-checked.Mui-disabled + &": {
1992
+ backgroundColor: theme2.palette.text.disabled
1993
+ },
1994
+ ".MuiButtonBase-root.MuiSwitch-switchBase[readOnly] + &": {
1995
+ borderColor: theme2.palette.text.disabled
1996
+ },
1997
+ "[readOnly] .MuiButtonBase-root.Mui-checked + &": {
1998
+ backgroundColor: theme2.palette.text.disabled
1999
+ },
2000
+ ...ownerState.readOnly === true && {
2001
+ borderColor: theme2.palette.text.disabled
2002
+ }
2003
+ }),
2004
+ colorPrimary: ({ theme: theme2 }) => ({
2005
+ "&.Mui-checked:hover": {
2006
+ backgroundColor: theme2.palette.primary.background
2007
+ }
2008
+ }),
2009
+ colorSecondary: ({ theme: theme2 }) => ({
2010
+ "&.Mui-checked:hover": {
2011
+ backgroundColor: theme2.palette.secondary.background
2012
+ }
2013
+ })
2014
+ }
2015
+ },
2016
+ // Circular Progress
2017
+ MuiCircularProgress: {
2018
+ defaultProps: {
2019
+ size: 40,
2020
+ thickness: 4
2021
+ }
2022
+ },
2023
+ // Slider
2024
+ MuiSlider: {
2025
+ defaultProps: {
2026
+ color: "primary",
2027
+ marks: false,
2028
+ size: "small"
2029
+ },
2030
+ styleOverrides: {
2031
+ thumb: ({ theme: theme2 }) => ({
2032
+ "&:hover, &.Mui-focusVisible": {
2033
+ boxShadow: `0 0 0 ${theme2.spacing(1)} ${theme2.palette.primary.background}`
2034
+ }
2035
+ })
2036
+ }
2037
+ }
2038
+ };
2039
+ const navigationOverrides = {
2040
+ // Menu
2041
+ MuiMenu: {
2042
+ styleOverrides: {
2043
+ paper: ({ theme: theme2 }) => ({
2044
+ "&.MuiMenu-paper": {
2045
+ minWidth: theme2.spacing(8),
2046
+ // 64px, defined by design
2047
+ maxHeight: theme2.spacing(39),
2048
+ // 312px, defined by design
2049
+ "&:focus-visible": {
2050
+ outline: "none !important",
2051
+ boxShadow: "none !important"
2052
+ }
2053
+ }
2054
+ })
2055
+ }
2056
+ },
2057
+ // Menu Item
2058
+ MuiMenuItem: {
2059
+ styleOverrides: {
2060
+ root: ({ theme: theme2 }) => ({
2061
+ ...theme2.typography.body2,
2062
+ columnGap: theme2.spacing(1),
2063
+ minHeight: theme2.spacing(4),
2064
+ padding: theme2.spacing(0.75, 1, 0.75, 1.5),
2065
+ whiteSpace: "normal",
2066
+ transition: "background-color 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",
2067
+ [theme2.breakpoints.up("sm")]: {
2068
+ // Overrides an unwanted Mui default style
2069
+ "&.MuiButtonBase-root": {
2070
+ minHeight: theme2.spacing(4)
2071
+ }
2072
+ },
2073
+ "&:hover": {
2074
+ ".MuiAvatar-root, .MuiChip-root, .CartoTag-root": {
2075
+ cursor: "pointer"
2076
+ }
2077
+ },
2078
+ "&:focus-visible": {
2079
+ // Solves a known Mui issue: https://github.com/mui/material-ui/issues/23747
2080
+ backgroundColor: "transparent",
2081
+ outline: `none !important`,
2082
+ boxShadow: `inset 0 0 0 2px ${theme2.palette.primary.main} !important`,
2083
+ borderRadius: theme2.shape.borderRadius,
2084
+ "&:hover": {
2085
+ backgroundColor: theme2.palette.action.hover
2086
+ }
2087
+ },
2088
+ "&.Mui-selected": {
2089
+ color: theme2.palette.primary.main,
2090
+ "&:focus-visible": {
2091
+ // Solves a known Mui issue: https://github.com/mui/material-ui/issues/23747
2092
+ backgroundColor: theme2.palette.primary.background
2093
+ },
2094
+ "&:hover": {
2095
+ backgroundColor: theme2.palette.action.hover
2096
+ },
2097
+ "& .MuiTypography-root, & .MuiSvgIcon-root": {
2098
+ color: theme2.palette.primary.main
2099
+ },
2100
+ ".MuiTypography-caption": {
2101
+ // secondary text
2102
+ color: theme2.palette.text.secondary
2103
+ }
2104
+ },
2105
+ "&.Mui-disabled": {
2106
+ opacity: 1,
2107
+ color: theme2.palette.text.disabled,
2108
+ backgroundColor: theme2.palette.background.paper,
2109
+ "&:empty": {
2110
+ height: 0,
2111
+ minHeight: 0,
2112
+ padding: 0
2113
+ },
2114
+ ".MuiTypography-root": {
2115
+ color: theme2.palette.text.disabled
2116
+ },
2117
+ svg: {
2118
+ color: theme2.palette.text.disabled
2119
+ },
2120
+ ".MuiListItemIcon-root svg path": {
2121
+ fill: theme2.palette.text.disabled
2122
+ },
2123
+ ".MuiAvatar-root": {
2124
+ color: theme2.palette.text.disabled,
2125
+ backgroundColor: theme2.palette.action.disabledBackground
2126
+ }
2127
+ },
2128
+ "& > .MuiSvgIcon-root": {
2129
+ marginRight: theme2.spacing(1)
2130
+ },
2131
+ ".MuiMenu-paper-sizeSmall &": {
2132
+ paddingLeft: theme2.spacing(1.5),
2133
+ paddingRight: theme2.spacing(1.5)
2134
+ }
2135
+ }),
2136
+ dense: ({ theme: theme2 }) => ({
2137
+ minHeight: theme2.spacing(3),
2138
+ paddingTop: 0,
2139
+ paddingBottom: 0,
2140
+ ".MuiTypography-root": {
2141
+ ...theme2.typography.caption,
2142
+ fontWeight: 500
2143
+ },
2144
+ [theme2.breakpoints.up("sm")]: {
2145
+ // Overrides an unwanted Mui default style
2146
+ "&.MuiButtonBase-root": {
2147
+ minHeight: theme2.spacing(3)
2148
+ }
2149
+ }
2150
+ })
2151
+ }
2152
+ },
2153
+ // List
2154
+ MuiList: {
2155
+ styleOverrides: {
2156
+ root: ({ theme: theme2 }) => ({
2157
+ paddingTop: 0,
2158
+ ".MuiPopover-root &, .MuiPopper-root &, .base-Popper-root &": {
2159
+ minWidth: theme2.spacing(8),
2160
+ // 64px, defined by design
2161
+ maxHeight: theme2.spacing(39),
2162
+ // 312px, defined by design
2163
+ overflowY: "auto",
2164
+ "&:focus-visible": {
2165
+ outline: "none !important",
2166
+ boxShadow: "none !important"
2167
+ }
2168
+ },
2169
+ ".MuiDivider-root": {
2170
+ margin: theme2.spacing(1, 0)
2171
+ },
2172
+ // Indent sublevels, ugly but needed to avoid issues with hover
2173
+ "& .MuiList-root": {
2174
+ paddingTop: 0,
2175
+ paddingBottom: 0,
2176
+ "& .MuiListItem-root": {
2177
+ paddingLeft: theme2.spacing(4)
2178
+ },
2179
+ "& .MuiList-root": {
2180
+ "& .MuiListItem-root": {
2181
+ paddingLeft: theme2.spacing(6)
2182
+ },
2183
+ "& .MuiList-root": {
2184
+ "& .MuiListItem-root": {
2185
+ paddingLeft: theme2.spacing(8)
2186
+ },
2187
+ "& .MuiList-root": {
2188
+ "& .MuiListItem-root": {
2189
+ paddingLeft: theme2.spacing(10)
2190
+ }
2191
+ }
2192
+ }
2193
+ }
2194
+ },
2195
+ "& .MuiListItemButton-root": {
2196
+ "&:focus-visible": {
2197
+ backgroundColor: "transparent"
2198
+ }
2199
+ }
2200
+ })
2201
+ }
2202
+ },
2203
+ // List Item
2204
+ MuiListItemText: {
2205
+ defaultProps: {
2206
+ primaryTypographyProps: {
2207
+ variant: "body2",
2208
+ noWrap: true,
2209
+ component: "span"
2210
+ },
2211
+ secondaryTypographyProps: { variant: "caption" }
2212
+ },
2213
+ styleOverrides: {
2214
+ root: ({ theme: theme2 }) => ({
2215
+ paddingRight: theme2.spacing(2),
2216
+ "& + .MuiBox-root": {
2217
+ marginRight: theme2.spacing(1)
2218
+ }
2219
+ })
2220
+ }
2221
+ },
2222
+ MuiListItemIcon: {
2223
+ styleOverrides: {
2224
+ root: ({ theme: theme2 }) => ({
2225
+ display: "flex",
2226
+ alignItems: "center",
2227
+ gap: theme2.spacing(2),
2228
+ "& .MuiSvgIcon-root": {
2229
+ fontSize: TablePaginationActions.ICON_SIZE_LARGE
2230
+ },
2231
+ ".MuiMenuItem-root.MuiButtonBase-root &": {
2232
+ minWidth: TablePaginationActions.ICON_SIZE_MEDIUM
2233
+ }
2234
+ })
2235
+ }
2236
+ },
2237
+ MuiListItemAvatar: {
2238
+ styleOverrides: {
2239
+ root: ({ theme: theme2 }) => ({
2240
+ "& .MuiAvatar-root": {
2241
+ height: theme2.spacing(4),
2242
+ width: theme2.spacing(4)
2243
+ },
2244
+ "& .MuiSvgIcon-root": {
2245
+ fontSize: TablePaginationActions.ICON_SIZE_MEDIUM
2246
+ }
2247
+ })
2248
+ }
2249
+ },
2250
+ // Tabs
2251
+ MuiTabs: {
2252
+ styleOverrides: {
2253
+ root: ({ theme: theme2 }) => ({
2254
+ boxSizing: "content-box",
2255
+ boxShadow: `0 1px 0 0 ${theme2.palette.black[12]}`
2256
+ }),
2257
+ vertical: () => ({
2258
+ borderBottom: 0
2259
+ })
2260
+ }
2261
+ },
2262
+ // Tab
2263
+ MuiTab: {
2264
+ defaultProps: {
2265
+ iconPosition: "start"
2266
+ },
2267
+ styleOverrides: {
2268
+ root: ({ theme: theme2 }) => ({
2269
+ minHeight: theme2.spacing(6),
2270
+ minWidth: theme2.spacing(6),
2271
+ padding: theme2.spacing(0, 2),
2272
+ paddingTop: "2px",
2273
+ borderBottom: "2px solid transparent",
2274
+ ...theme2.typography.subtitle2,
2275
+ color: theme2.palette.text.primary,
2276
+ transition: "border 300ms cubic-bezier(0.4, 0, 0.2, 1)",
2277
+ "&:hover": {
2278
+ borderBottomColor: theme2.palette.text.primary
2279
+ },
2280
+ "&:focus-visible": {
2281
+ outline: `none !important`,
2282
+ boxShadow: `inset 0 0 0 2px ${theme2.palette.primary.main} !important`,
2283
+ borderRadius: `${theme2.shape.borderRadius}px ${theme2.shape.borderRadius}px 0 0`
2284
+ },
2285
+ "&.Mui-selected": {
2286
+ pointerEvents: "none",
2287
+ "& svg:not(.doNotFillIcon) path": {
2288
+ fill: theme2.palette.primary.main
2289
+ }
2290
+ },
2291
+ ".MuiTabs-vertical &": {
2292
+ paddingTop: 0,
2293
+ borderBottom: 0,
2294
+ paddingLeft: "2px",
2295
+ borderRight: "2px solid transparent",
2296
+ "&:hover": {
2297
+ borderRightColor: theme2.palette.text.primary
2298
+ }
2299
+ }
2300
+ }),
2301
+ wrapped: () => ({
2302
+ maxWidth: "240px"
2303
+ })
2304
+ }
2305
+ },
2306
+ // Breadcrumbs
2307
+ MuiBreadcrumbs: {
2308
+ styleOverrides: {
2309
+ li: ({ theme: theme2 }) => ({
2310
+ "& .MuiTypography-root": {
2311
+ ...theme2.typography.body2,
2312
+ display: "flex",
2313
+ flexDirection: "row",
2314
+ alignItems: "center"
2315
+ },
2316
+ "& .MuiSvgIcon-root": {
2317
+ fontSize: TablePaginationActions.ICON_SIZE_MEDIUM,
2318
+ marginRight: theme2.spacing(1)
2319
+ }
2320
+ }),
2321
+ separator: ({ theme: theme2 }) => ({
2322
+ marginLeft: theme2.spacing(0.5),
2323
+ marginRight: theme2.spacing(0.5)
2324
+ })
2325
+ }
2326
+ },
2327
+ // Links
2328
+ MuiLink: {
2329
+ defaultProps: {
2330
+ underline: "hover"
2331
+ },
2332
+ styleOverrides: {
2333
+ root: () => ({
2334
+ cursor: "pointer"
2335
+ })
2336
+ }
2337
+ }
2338
+ };
2339
+ const calendarSize = 35;
2340
+ const dropdownHeight = 39.5;
2341
+ const datePickersOverrides = {
2342
+ // https://mui.com/x/react-date-pickers/date-picker/#customization
2343
+ MuiDatePicker: {
2344
+ defaultProps: {
2345
+ slotProps: {
2346
+ popper: { placement: "bottom-end" },
2347
+ textField: {
2348
+ InputLabelProps: {
2349
+ shrink: true
2350
+ }
2351
+ }
2352
+ },
2353
+ slots: {
2354
+ openPickerIcon: iconsMaterial.EventOutlined,
2355
+ clearIcon: iconsMaterial.Cancel
2356
+ }
2357
+ }
2358
+ },
2359
+ MuiDateCalendar: {
2360
+ defaultProps: {
2361
+ dayOfWeekFormatter: (weekday) => `${weekday.toLocaleDateString("en-US", { weekday: "short" })}`,
2362
+ slots: {
2363
+ rightArrowIcon: iconsMaterial.ChevronRightOutlined,
2364
+ leftArrowIcon: iconsMaterial.ChevronLeftOutlined,
2365
+ switchViewIcon: iconsMaterial.ExpandMoreOutlined
2366
+ }
2367
+ },
2368
+ styleOverrides: {
2369
+ root: ({ ownerState, theme: theme2 }) => {
2370
+ var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i;
2371
+ return {
2372
+ width: theme2.spacing(calendarSize),
2373
+ height: theme2.spacing(dropdownHeight),
2374
+ maxHeight: theme2.spacing(dropdownHeight),
2375
+ // Year only view
2376
+ ...((_a2 = ownerState.views) == null ? void 0 : _a2.includes("year")) && !((_b2 = ownerState.views) == null ? void 0 : _b2.includes("month")) && !((_c2 = ownerState.views) == null ? void 0 : _c2.includes("day")) && {
2377
+ height: theme2.spacing(33.5),
2378
+ // 268px
2379
+ maxHeight: theme2.spacing(33.5)
2380
+ },
2381
+ // Month only view
2382
+ ...((_d2 = ownerState.views) == null ? void 0 : _d2.includes("month")) && !((_e2 = ownerState.views) == null ? void 0 : _e2.includes("year")) && !((_f2 = ownerState.views) == null ? void 0 : _f2.includes("day")) && {
2383
+ height: theme2.spacing(29),
2384
+ // 232px
2385
+ maxHeight: theme2.spacing(29),
2386
+ "& .MuiPickersCalendarHeader-labelContainer": {
2387
+ cursor: "default"
2388
+ }
2389
+ },
2390
+ // Day only view
2391
+ ...((_g2 = ownerState.views) == null ? void 0 : _g2.includes("day")) && !((_h2 = ownerState.views) == null ? void 0 : _h2.includes("year")) && !((_i = ownerState.views) == null ? void 0 : _i.includes("month")) && {
2392
+ "& .MuiPickersCalendarHeader-labelContainer": {
2393
+ cursor: "default"
2394
+ }
2395
+ },
2396
+ "& .MuiYearCalendar-root, & .MuiMonthCalendar-root": {
2397
+ gap: theme2.spacing(0.5),
2398
+ width: theme2.spacing(calendarSize),
2399
+ padding: theme2.spacing(1, 2)
2400
+ },
2401
+ "& .MuiPickersYear-root": {
2402
+ flexBasis: "22.5%"
2403
+ },
2404
+ "& .MuiPickersMonth-root": {
2405
+ flexBasis: "31.1%"
2406
+ },
2407
+ "& .MuiPickersYear-yearButton, & .MuiPickersMonth-monthButton, & .MuiPickersDay-root": {
2408
+ width: "100%",
2409
+ height: theme2.spacing(4),
2410
+ margin: 0,
2411
+ padding: 0,
2412
+ ...theme2.typography.button,
2413
+ borderRadius: theme2.shape.borderRadius,
2414
+ "&:hover": {
2415
+ backgroundColor: theme2.palette.action.hover
2416
+ },
2417
+ "&.Mui-selected": {
2418
+ backgroundColor: theme2.palette.primary.background,
2419
+ color: theme2.palette.primary.main,
2420
+ "&:focus": {
2421
+ backgroundColor: theme2.palette.primary.background
2422
+ },
2423
+ "&:hover": {
2424
+ backgroundColor: theme2.palette.action.hover
2425
+ }
2426
+ },
2427
+ "&.Mui-disabled": {
2428
+ color: theme2.palette.text.disabled
2429
+ }
2430
+ },
2431
+ "& .MuiPickersDay-root": {
2432
+ margin: theme2.spacing(0.25)
2433
+ }
2434
+ };
2435
+ }
2436
+ }
2437
+ },
2438
+ MuiPickersPopper: {
2439
+ styleOverrides: {
2440
+ paper: ({ theme: theme2 }) => ({
2441
+ marginBottom: theme2.spacing(0.5)
2442
+ })
2443
+ }
2444
+ },
2445
+ MuiYearCalendar: {
2446
+ styleOverrides: {
2447
+ root: ({ theme: theme2 }) => ({
2448
+ maxHeight: theme2.spacing(33.5)
2449
+ // 268px
2450
+ })
2451
+ }
2452
+ },
2453
+ MuiPickersCalendarHeader: {
2454
+ styleOverrides: {
2455
+ root: ({ theme: theme2 }) => ({
2456
+ maxHeight: theme2.spacing(4),
2457
+ minHeight: theme2.spacing(4),
2458
+ margin: 0,
2459
+ padding: theme2.spacing(1, 1, 1, 2),
2460
+ boxSizing: "content-box",
2461
+ "& .MuiIconButton-root": {
2462
+ borderRadius: theme2.shape.borderRadius
2463
+ },
2464
+ "& .MuiPickersArrowSwitcher-spacer": {
2465
+ width: theme2.spacing(4)
2466
+ }
2467
+ }),
2468
+ label: ({ theme: theme2 }) => ({
2469
+ ...theme2.typography.subtitle2
2470
+ }),
2471
+ switchViewButton: ({ theme: theme2 }) => ({
2472
+ width: theme2.spacing(4),
2473
+ height: theme2.spacing(4)
2474
+ })
2475
+ }
2476
+ },
2477
+ MuiDayCalendar: {
2478
+ styleOverrides: {
2479
+ header: ({ theme: theme2 }) => ({
2480
+ margin: theme2.spacing(0, 2)
2481
+ }),
2482
+ weekContainer: () => ({
2483
+ margin: 0
2484
+ }),
2485
+ weekDayLabel: ({ theme: theme2 }) => ({
2486
+ flex: 1,
2487
+ ...theme2.typography.caption,
2488
+ fontWeight: theme2.typography.fontWeightRegular,
2489
+ color: theme2.palette.text.secondary
2490
+ })
2491
+ }
2492
+ },
2493
+ MuiPickersDay: {
2494
+ styleOverrides: {
2495
+ root: ({ theme: theme2 }) => ({
2496
+ width: `${theme2.spacing(4)} !important`,
2497
+ height: theme2.spacing(4),
2498
+ "&:focus": {
2499
+ backgroundColor: "transparent"
2500
+ }
2501
+ }),
2502
+ today: ({ theme: theme2 }) => ({
2503
+ border: `1px solid ${theme2.palette.default.outlinedBorder}`,
2504
+ "&:hover, &:selected": {
2505
+ borderColor: theme2.palette.primary.light
2506
+ },
2507
+ "&:not(.Mui-selected)": {
2508
+ borderColor: theme2.palette.default.outlinedBorder
2509
+ },
2510
+ "&.Mui-selected": {
2511
+ borderColor: theme2.palette.primary.light,
2512
+ "&:focus": {
2513
+ borderColor: theme2.palette.primary.light
2514
+ }
2515
+ },
2516
+ "&.Mui-disabled": {
2517
+ color: theme2.palette.text.disabled,
2518
+ borderColor: theme2.palette.default.outlinedBorder,
2519
+ backgroundColor: "transparent",
2520
+ "&.Mui-selected": {
2521
+ opacity: "1 !important",
2522
+ color: theme2.palette.text.disabled,
2523
+ backgroundColor: "transparent",
2524
+ borderColor: theme2.palette.default.outlinedBorder
2525
+ }
2526
+ }
2527
+ })
2528
+ }
2529
+ },
2530
+ MuiTimePicker: {
2531
+ defaultProps: {
2532
+ views: ["hours"],
2533
+ format: "hh:mm a",
2534
+ ampm: true,
2535
+ viewRenderers: {
2536
+ hours: xDatePickers.renderDigitalClockTimeView
2537
+ },
2538
+ timeSteps: { minutes: 30 },
2539
+ slotProps: {
2540
+ actionBar: { actions: [] }
2541
+ // Remove ok button at bottom
2542
+ },
2543
+ slots: {
2544
+ clearIcon: iconsMaterial.Cancel,
2545
+ digitalClockItem: (props) => {
2546
+ return /* @__PURE__ */ jsxRuntime.jsx(MenuItem.MenuItem, { ...props, disableRipple: true });
2547
+ }
2548
+ }
2549
+ }
2550
+ },
2551
+ MuiDateTimePicker: {
2552
+ defaultProps: {
2553
+ views: ["year", "month", "day", "hours"],
2554
+ format: "MM/dd/yyyy hh:mm a",
2555
+ ampm: true,
2556
+ viewRenderers: {
2557
+ hours: xDatePickers.renderDigitalClockTimeView
2558
+ },
2559
+ timeSteps: { minutes: 30 },
2560
+ slotProps: {
2561
+ popper: {
2562
+ placement: "bottom-end"
2563
+ },
2564
+ actionBar: { actions: [] }
2565
+ // Remove ok button at bottom
2566
+ },
2567
+ slots: {
2568
+ openPickerIcon: iconsMaterial.EventOutlined,
2569
+ clearIcon: iconsMaterial.Cancel,
2570
+ digitalClockItem: (props) => {
2571
+ return /* @__PURE__ */ jsxRuntime.jsx(MenuItem.MenuItem, { ...props, disableRipple: true });
2572
+ }
2573
+ }
2574
+ }
2575
+ },
2576
+ MuiDigitalClock: {
2577
+ defaultProps: {
2578
+ timeStep: 30,
2579
+ ampm: true
2580
+ },
2581
+ styleOverrides: {
2582
+ root: ({ theme: theme2 }) => ({
2583
+ minWidth: theme2.spacing(15)
2584
+ // 120px defined in design specs
2585
+ }),
2586
+ list: ({ theme: theme2 }) => ({
2587
+ ".MuiPopper-root &": {
2588
+ maxHeight: theme2.spacing(dropdownHeight),
2589
+ paddingBottom: theme2.spacing(1)
2590
+ }
2591
+ })
2592
+ }
2593
+ }
2594
+ };
2595
+ function getPixelToRem(px) {
2596
+ const fontBase = 16;
2597
+ const rem = 1 / fontBase * px + "rem";
2598
+ return rem;
2599
+ }
2600
+ const baseTypography = {
2601
+ htmlFontSize: 16,
2602
+ fontFamily: "Inter, sans-serif",
2603
+ fontSize: 16,
2604
+ lineHeight: 1.5,
2605
+ fontWeightLight: 300,
2606
+ fontWeightRegular: 400,
2607
+ fontWeightMedium: 500,
2608
+ fontWeightBold: 600,
2609
+ fontSmoothing: "antialiased",
2610
+ h1: {
2611
+ fontFamily: "Inter, sans-serif",
2612
+ fontWeight: 600,
2613
+ fontSize: getPixelToRem(96),
2614
+ lineHeight: 1.167,
2615
+ letterSpacing: "-1.5px"
2616
+ },
2617
+ h2: {
2618
+ fontFamily: "Inter, sans-serif",
2619
+ fontWeight: 600,
2620
+ fontSize: getPixelToRem(60),
2621
+ lineHeight: 1.2,
2622
+ letterSpacing: "-0.5px"
2623
+ },
2624
+ h3: {
2625
+ fontFamily: "Inter, sans-serif",
2626
+ fontWeight: 600,
2627
+ fontSize: getPixelToRem(48),
2628
+ lineHeight: 1.167,
2629
+ letterSpacing: 0
2630
+ },
2631
+ h4: {
2632
+ fontFamily: "Inter, sans-serif",
2633
+ fontWeight: 600,
2634
+ fontSize: getPixelToRem(32),
2635
+ lineHeight: 1.25,
2636
+ letterSpacing: 0
2637
+ },
2638
+ h5: {
2639
+ fontFamily: "Inter, sans-serif",
2640
+ fontWeight: 600,
2641
+ fontSize: getPixelToRem(24),
2642
+ lineHeight: 1.167,
2643
+ letterSpacing: 0
2644
+ },
2645
+ h6: {
2646
+ fontFamily: "Inter, sans-serif",
2647
+ fontWeight: 500,
2648
+ fontSize: getPixelToRem(18),
2649
+ lineHeight: 1.333,
2650
+ letterSpacing: 0
2651
+ },
2652
+ subtitle1: {
2653
+ fontFamily: "Inter, sans-serif",
2654
+ fontWeight: 500,
2655
+ fontSize: getPixelToRem(16),
2656
+ lineHeight: 1.5,
2657
+ letterSpacing: 0
2658
+ },
2659
+ subtitle2: {
2660
+ fontFamily: "Inter, sans-serif",
2661
+ fontWeight: 600,
2662
+ fontSize: getPixelToRem(13),
2663
+ lineHeight: 1.538,
2664
+ letterSpacing: 0
2665
+ },
2666
+ body1: {
2667
+ fontFamily: "Inter, sans-serif",
2668
+ fontWeight: 400,
2669
+ fontSize: getPixelToRem(16),
2670
+ lineHeight: 1.5,
2671
+ letterSpacing: 0
2672
+ },
2673
+ body2: {
2674
+ fontFamily: "Inter, sans-serif",
2675
+ fontWeight: 400,
2676
+ fontSize: getPixelToRem(13),
2677
+ lineHeight: 1.538,
2678
+ letterSpacing: 0
2679
+ },
2680
+ button: {
2681
+ fontFamily: "Inter, sans-serif",
2682
+ fontWeight: 500,
2683
+ fontSize: getPixelToRem(13),
2684
+ lineHeight: 1.538,
2685
+ letterSpacing: 0,
2686
+ textTransform: "inherit"
2687
+ },
2688
+ caption: {
2689
+ fontFamily: "Inter, sans-serif",
2690
+ fontWeight: 400,
2691
+ fontSize: getPixelToRem(11),
2692
+ lineHeight: 1.454,
2693
+ letterSpacing: 0
2694
+ },
2695
+ overline: {
2696
+ fontFamily: "Inter, sans-serif",
2697
+ fontWeight: 500,
2698
+ fontSize: getPixelToRem(10),
2699
+ lineHeight: 1.2,
2700
+ letterSpacing: "1.2px",
2701
+ textTransform: "uppercase"
2702
+ }
2703
+ };
2704
+ const customTypography = {
2705
+ captionMedium: {
2706
+ ...baseTypography.caption,
2707
+ fontWeight: 500,
2708
+ letterSpacing: 0
2709
+ },
2710
+ overlineDelicate: {
2711
+ ...baseTypography.overline,
2712
+ fontWeight: 400,
2713
+ letterSpacing: "1.2px"
2714
+ },
2715
+ code1: {
2716
+ fontFamily: '"Overpass Mono", monospace',
2717
+ fontWeight: 400,
2718
+ fontSize: getPixelToRem(16),
2719
+ lineHeight: 1.5,
2720
+ letterSpacing: 0,
2721
+ fontVariantLigatures: "no-common-ligatures"
2722
+ },
2723
+ code2: {
2724
+ fontFamily: '"Overpass Mono", monospace',
2725
+ fontWeight: 400,
2726
+ fontSize: getPixelToRem(14),
2727
+ lineHeight: 1.428,
2728
+ letterSpacing: 0,
2729
+ fontVariantLigatures: "no-common-ligatures"
2730
+ },
2731
+ code3: {
2732
+ fontFamily: '"Overpass Mono", monospace',
2733
+ fontWeight: 400,
2734
+ fontSize: getPixelToRem(12),
2735
+ lineHeight: 1.333,
2736
+ letterSpacing: 0,
2737
+ fontVariantLigatures: "no-common-ligatures"
2738
+ }
2739
+ };
2740
+ const themeTypography = {
2741
+ ...baseTypography,
2742
+ ...customTypography
2743
+ };
2744
+ const CssBaseline = {
2745
+ // Accessibility focus (keyboard only)
2746
+ "*:focus-visible": {
2747
+ outline: `2px solid ${(_a = paletteUtils.commonPalette.primary) == null ? void 0 : _a.main} !important`,
2748
+ boxShadow: `0 0 0 4px ${(_b = paletteUtils.commonPalette.primary) == null ? void 0 : _b.background} !important`,
2749
+ borderRadius: "4px"
2750
+ },
2751
+ // Custom scrollbars
2752
+ "*::-webkit-scrollbar": {
2753
+ position: "fixed"
2754
+ },
2755
+ "*::-webkit-scrollbar:vertical": {
2756
+ width: "5px"
2757
+ },
2758
+ "*::-webkit-scrollbar:horizontal": {
2759
+ height: "5px"
2760
+ },
2761
+ "*::-webkit-scrollbar-track": {
2762
+ boxShadow: "none",
2763
+ background: "transparent"
2764
+ },
2765
+ "*::-webkit-scrollbar-thumb": {
2766
+ borderRadius: "3px",
2767
+ background: (_c = paletteUtils.commonPalette.action) == null ? void 0 : _c.focus,
2768
+ outline: "none"
2769
+ },
2770
+ // iOS Search clear button
2771
+ 'input[type="search"]::-webkit-search-cancel-button': {
2772
+ WebkitAppearance: "none",
2773
+ appearance: "none",
2774
+ height: TablePaginationActions.getSpacing(2),
2775
+ width: TablePaginationActions.getSpacing(2),
2776
+ display: "block",
2777
+ backgroundImage: `url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAn0lEQVR42u3UMQrDMBBEUZ9WfQqDmm22EaTyjRMHAlM5K+Y7lb0wnUZPIKHlnutOa+25Z4D++MRBX98MD1V/trSppLKHqj9TTBWKcoUqffbUcbBBEhTjBOV4ja4l4OIAZThEOV6jHO8ARXD+gPPvKMABinGOrnu6gTNUawrcQKNCAQ7QeTxORzle3+sDfjJpPCqhJh7GixZq4rHcc9l5A9qZ+WeBhgEuAAAAAElFTkSuQmCC)`,
2778
+ backgroundRepeat: "no-repeat",
2779
+ backgroundSize: TablePaginationActions.getSpacing(2)
2780
+ },
2781
+ // Mapbox controls
2782
+ ".mapboxgl-ctrl.mapboxgl-ctrl-attrib": {
2783
+ padding: TablePaginationActions.getSpacing(0, 1),
2784
+ borderRadius: TablePaginationActions.getSpacing(0.5, 0, 0, 0),
2785
+ "& .mapboxgl-ctrl-attrib-inner": {
2786
+ ...themeTypography.overline,
2787
+ textTransform: "none",
2788
+ letterSpacing: "0.75px",
2789
+ "& a": {
2790
+ color: (_d = paletteUtils.commonPalette.primary) == null ? void 0 : _d.main
2791
+ }
2792
+ },
2793
+ "&.mapboxgl-compact": {
2794
+ backgroundColor: "transparent",
2795
+ right: TablePaginationActions.getSpacing(0.5),
2796
+ bottom: TablePaginationActions.getSpacing(2.5),
2797
+ // Mobile
2798
+ "@media (max-width: 600px)": {
2799
+ bottom: TablePaginationActions.getSpacing(0.5)
2800
+ },
2801
+ "& .mapboxgl-ctrl-attrib-button": {
2802
+ backgroundImage: `url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20height='24'%20viewBox='0%200%2024%2024'%20width='24'%3E%3Cg%3E%3Crect%20fill='none'%20height='24'%20width='24'%20x='0'/%3E%3C/g%3E%3Cg%3E%3Cg%3E%3Cg%3E%3Cpath%20d='M11.88,9.14c1.28,0.06,1.61,1.15,1.63,1.66h1.79c-0.08-1.98-1.49-3.19-3.45-3.19C9.64,7.61,8,9,8,12.14%20c0,1.94,0.93,4.24,3.84,4.24c2.22,0,3.41-1.65,3.44-2.95h-1.79c-0.03,0.59-0.45,1.38-1.63,1.44C10.55,14.83,10,13.81,10,12.14%20C10,9.25,11.28,9.16,11.88,9.14z%20M12,2C6.48,2,2,6.48,2,12s4.48,10,10,10s10-4.48,10-10S17.52,2,12,2z%20M12,20c-4.41,0-8-3.59-8-8%20s3.59-8,8-8s8,3.59,8,8S16.41,20,12,20z'%20fill='${(_e = paletteUtils.commonPalette.text) == null ? void 0 : _e.secondary}'/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E")`,
2803
+ backgroundColor: "rgba(255,255,255,.8)",
2804
+ top: "auto",
2805
+ bottom: 0,
2806
+ right: 0,
2807
+ "&:not(:disabled):hover": {
2808
+ backgroundColor: "rgba(255,255,255,.8)"
2809
+ }
2810
+ },
2811
+ "& .mapboxgl-ctrl-attrib-inner": {
2812
+ backgroundColor: "rgba(255,255,255,.8)",
2813
+ padding: TablePaginationActions.getSpacing(0.5, 1),
2814
+ borderRadius: TablePaginationActions.getSpacing(1.5),
2815
+ marginRight: TablePaginationActions.getSpacing(2.5),
2816
+ color: (_f = paletteUtils.commonPalette.text) == null ? void 0 : _f.secondary
2817
+ },
2818
+ "&.mapboxgl-compact-show": {
2819
+ "& .mapboxgl-ctrl-attrib-button": {
2820
+ backgroundImage: `url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20height='24'%20viewBox='0%200%2024%2024'%20width='24'%3E%3Cpath%20d='M0%200h24v24H0z'%20fill='none'/%3E%3Cpath%20d='M19%206.41L17.59%205%2012%2010.59%206.41%205%205%206.41%2010.59%2012%205%2017.59%206.41%2019%2012%2013.41%2017.59%2019%2019%2017.59%2013.41%2012z'%20fill='white'/%3E%3C/svg%3E")`,
2821
+ backgroundColor: (_g = paletteUtils.commonPalette.common) == null ? void 0 : _g.black,
2822
+ "&:not(:disabled):hover": {
2823
+ backgroundColor: (_h = paletteUtils.commonPalette.common) == null ? void 0 : _h.black
2824
+ }
2825
+ }
2826
+ }
2827
+ }
2828
+ }
2829
+ };
2830
+ const feedbackOverrides = {
2831
+ // SnackBar
2832
+ MuiSnackbar: {
2833
+ defaultProps: {
2834
+ anchorOrigin: {
2835
+ vertical: "bottom",
2836
+ horizontal: "center"
2837
+ }
2838
+ }
2839
+ },
2840
+ // Skeleton
2841
+ MuiSkeleton: {
2842
+ defaultProps: {
2843
+ animation: "wave",
2844
+ variant: "rounded"
2845
+ },
2846
+ styleOverrides: {
2847
+ root: ({ theme: theme2 }) => ({
2848
+ backgroundColor: theme2.palette.black[8]
2849
+ }),
2850
+ rounded: ({ theme: theme2 }) => ({
2851
+ borderRadius: theme2.spacing(0.5)
2852
+ }),
2853
+ text: ({ theme: theme2 }) => ({
2854
+ borderRadius: theme2.spacing(0.5)
2855
+ }),
2856
+ wave: ({ theme: theme2 }) => ({
2857
+ "&::after": {
2858
+ background: `linear-gradient( 90deg, transparent, ${theme2.palette.black[4]}, transparent )`
2859
+ }
2860
+ })
2861
+ }
2862
+ },
2863
+ // Alert
2864
+ MuiAlert: {
2865
+ defaultProps: {
2866
+ iconMapping: {
2867
+ success: /* @__PURE__ */ jsxRuntime.jsx(iconsMaterial.CheckCircleOutlined, {})
2868
+ }
2869
+ },
2870
+ styleOverrides: {
2871
+ root: ({ theme: theme2 }) => ({
2872
+ borderRadius: theme2.spacing(1),
2873
+ alignSelf: "start",
2874
+ width: "100%",
2875
+ padding: theme2.spacing(1.5)
2876
+ }),
2877
+ icon: ({ theme: theme2 }) => ({
2878
+ height: theme2.spacing(3),
2879
+ display: "flex",
2880
+ alignItems: "center",
2881
+ padding: 0,
2882
+ marginRight: theme2.spacing(1),
2883
+ svg: {
2884
+ width: TablePaginationActions.ICON_SIZE_MEDIUM,
2885
+ height: TablePaginationActions.ICON_SIZE_MEDIUM
2886
+ }
2887
+ }),
2888
+ action: () => ({
2889
+ paddingTop: 0,
2890
+ marginRight: 0
2891
+ }),
2892
+ message: ({ theme: theme2 }) => ({
2893
+ paddingTop: theme2.spacing(0.5),
2894
+ paddingBottom: 0,
2895
+ ...theme2.typography.caption
2896
+ })
2897
+ }
2898
+ },
2899
+ // AlertTitle
2900
+ MuiAlertTitle: {
2901
+ defaultProps: {
2902
+ variant: "body2"
2903
+ },
2904
+ styleOverrides: {
2905
+ root: ({ theme: theme2 }) => ({
2906
+ marginBottom: theme2.spacing(0.5),
2907
+ fontWeight: theme2.typography.fontWeightBold,
2908
+ color: "inherit"
2909
+ })
2910
+ }
2911
+ }
2912
+ };
2913
+ const surfacesOverrides = {
2914
+ // AppBar
2915
+ MuiAppBar: {
2916
+ styleOverrides: {
2917
+ root: ({ theme: theme2 }) => ({
2918
+ flexDirection: "row",
2919
+ alignItems: "center",
2920
+ justifyContent: "space-between",
2921
+ height: TablePaginationActions.APPBAR_SIZE,
2922
+ backgroundColor: theme2.palette.brand.navyBlue,
2923
+ color: theme2.palette.common.white,
2924
+ boxShadow: theme2.shadows[0],
2925
+ "& .MuiToolbar-root": {
2926
+ justifyContent: "space-between",
2927
+ width: "100%",
2928
+ padding: theme2.spacing(0, 1),
2929
+ minHeight: TablePaginationActions.APPBAR_SIZE
2930
+ },
2931
+ "& .MuiAvatar-root": {
2932
+ width: theme2.spacing(4),
2933
+ height: theme2.spacing(4)
2934
+ }
2935
+ })
2936
+ }
2937
+ },
2938
+ // MuiAccordion
2939
+ MuiAccordion: {
2940
+ defaultProps: {
2941
+ disableGutters: true,
2942
+ elevation: 0
2943
+ },
2944
+ styleOverrides: {
2945
+ root: ({ theme: theme2 }) => ({
2946
+ ...theme2.typography.body2,
2947
+ backgroundColor: "transparent",
2948
+ boxShadow: `inset 0 -1px 0 0 ${theme2.palette.divider}`,
2949
+ "&:last-of-type": {
2950
+ boxShadow: "none"
2951
+ },
2952
+ "&::before": {
2953
+ content: "none"
2954
+ },
2955
+ "&.Mui-disabled": {
2956
+ backgroundColor: "transparent"
2957
+ }
2958
+ })
2959
+ }
2960
+ },
2961
+ // MuiAccordionSummary
2962
+ MuiAccordionSummary: {
2963
+ defaultProps: {
2964
+ expandIcon: /* @__PURE__ */ jsxRuntime.jsx(iconsMaterial.ExpandMoreOutlined, {})
2965
+ },
2966
+ styleOverrides: {
2967
+ root: ({ theme: theme2 }) => ({
2968
+ ...theme2.typography.button,
2969
+ "&.Mui-disabled": {
2970
+ opacity: 1,
2971
+ color: theme2.palette.text.disabled
2972
+ },
2973
+ "&.Mui-focusVisible": {
2974
+ backgroundColor: "transparent",
2975
+ borderRadius: theme2.shape.borderRadius
2976
+ }
2977
+ }),
2978
+ expandIconWrapper: ({ theme: theme2 }) => ({
2979
+ "& svg": {
2980
+ color: theme2.palette.text.secondary,
2981
+ ".Mui-disabled &": {
2982
+ color: theme2.palette.text.disabled
2983
+ }
2984
+ }
2985
+ })
2986
+ }
2987
+ },
2988
+ // MuiAccordionDetails
2989
+ MuiAccordionDetails: {
2990
+ styleOverrides: {
2991
+ root: ({ theme: theme2 }) => ({
2992
+ paddingBottom: theme2.spacing(3)
2993
+ })
2994
+ }
2995
+ }
2996
+ };
2997
+ const themeShadows = [
2998
+ "none",
2999
+ // 0
3000
+ "0px 2px 1px -1px rgba(44, 48, 50, 0.12), 0px 1px 1px rgba(44, 48, 50, 0.08), 0px 1px 3px rgba(44, 48, 50, 0.04)",
3001
+ // 1
3002
+ "0px 3px 1px -2px rgba(44, 48, 50, 0.12), 0px 2px 2px rgba(44, 48, 50, 0.08), 0px 1px 5px rgba(44, 48, 50, 0.04)",
3003
+ // 2
3004
+ "0px 3px 3px -2px rgba(0,0,0,0.16),0px 3px 4px 0px rgba(0,0,0,0.08),0px 1px 8px 0px rgba(0,0,0,0.04)",
3005
+ "0px 2px 4px -1px rgba(44, 48, 50, 0.12), 0px 4px 5px rgba(44, 48, 50, 0.08), 0px 1px 10px rgba(44, 48, 50, 0.04)",
3006
+ // 4
3007
+ "0px 3px 5px -1px rgba(0,0,0,0.16),0px 5px 8px 0px rgba(0,0,0,0.08),0px 1px 14px 0px rgba(0,0,0,0.04)",
3008
+ "0px 3px 5px -1px rgba(44, 48, 50, 0.12), 0px 6px 10px rgba(44, 48, 50, 0.08), 0px 1px 18px rgba(44, 48, 50, 0.04)",
3009
+ // 6
3010
+ "0px 4px 5px -2px rgba(0,0,0,0.16),0px 7px 10px 1px rgba(0,0,0,0.08),0px 2px 16px 1px rgba(0,0,0,0.04)",
3011
+ "0px 5px 5px -3px rgba(44, 48, 50, 0.12), 0px 8px 10px 1px rgba(44, 48, 50, 0.08), 0px 3px 14px 2px rgba(44, 48, 50, 0.04)",
3012
+ // 8
3013
+ "0px 5px 6px -3px rgba(0,0,0,0.16),0px 9px 12px 1px rgba(0,0,0,0.08),0px 3px 16px 2px rgba(0,0,0,0.04)",
3014
+ "0px 6px 6px -3px rgba(0,0,0,0.16),0px 10px 14px 1px rgba(0,0,0,0.08),0px 4px 18px 3px rgba(0,0,0,0.04)",
3015
+ "0px 6px 7px -4px rgba(0,0,0,0.16),0px 11px 15px 1px rgba(0,0,0,0.08),0px 4px 20px 3px rgba(0,0,0,0.04)",
3016
+ "0px 7px 8px -4px rgba(0,0,0,0.16),0px 12px 17px 2px rgba(0,0,0,0.08),0px 5px 22px 4px rgba(0,0,0,0.04)",
3017
+ "0px 7px 8px -4px rgba(0,0,0,0.16),0px 13px 19px 2px rgba(0,0,0,0.08),0px 5px 24px 4px rgba(0,0,0,0.04)",
3018
+ "0px 7px 9px -4px rgba(0,0,0,0.16),0px 14px 21px 2px rgba(0,0,0,0.08),0px 5px 26px 4px rgba(0,0,0,0.04)",
3019
+ "0px 8px 9px -5px rgba(0,0,0,0.16),0px 15px 22px 2px rgba(0,0,0,0.08),0px 6px 28px 5px rgba(0,0,0,0.04)",
3020
+ "0px 8px 10px -5px rgba(44, 48, 50, 0.12), 0px 16px 24px 2px rgba(44, 48, 50, 0.08), 0px 6px 30px 5px rgba(44, 48, 50, 0.04)",
3021
+ // 16
3022
+ "0px 8px 11px -5px rgba(0,0,0,0.16),0px 17px 26px 2px rgba(0,0,0,0.08),0px 6px 32px 5px rgba(0,0,0,0.04)",
3023
+ "0px 9px 11px -5px rgba(0,0,0,0.16),0px 18px 28px 2px rgba(0,0,0,0.08),0px 7px 34px 6px rgba(0,0,0,0.04)",
3024
+ "0px 9px 12px -6px rgba(0,0,0,0.16),0px 19px 29px 2px rgba(0,0,0,0.08),0px 7px 36px 6px rgba(0,0,0,0.04)",
3025
+ "0px 10px 13px -6px rgba(0,0,0,0.16),0px 20px 31px 3px rgba(0,0,0,0.08),0px 8px 38px 7px rgba(0,0,0,0.04)",
3026
+ "0px 10px 13px -6px rgba(0,0,0,0.16),0px 21px 33px 3px rgba(0,0,0,0.08),0px 8px 40px 7px rgba(0,0,0,0.04)",
3027
+ "0px 10px 14px -6px rgba(0,0,0,0.16),0px 22px 35px 3px rgba(0,0,0,0.08),0px 8px 42px 7px rgba(0,0,0,0.04)",
3028
+ "0px 11px 14px -7px rgba(0,0,0,0.16),0px 23px 36px 3px rgba(0,0,0,0.08),0px 9px 44px 8px rgba(0,0,0,0.04)",
3029
+ "0px 11px 15px -7px rgba(44, 48, 50, 0.12), 0px 24px 38px 3px rgba(44, 48, 50, 0.08), 0px 9px 46px 8px rgba(44, 48, 50, 0.04)"
3030
+ // 24
3031
+ ];
3032
+ const cartoThemeOptions = {
3033
+ themeName: "CARTO",
3034
+ breakpoints: {
3035
+ keys: ["xs", "sm", "md", "lg", "xl"],
3036
+ values: {
3037
+ xs: TablePaginationActions.BREAKPOINTS.XS,
3038
+ // 320 - 599
3039
+ sm: TablePaginationActions.BREAKPOINTS.SM,
3040
+ // 600 - 959
3041
+ md: TablePaginationActions.BREAKPOINTS.MD,
3042
+ // 960 - 1279
3043
+ lg: TablePaginationActions.BREAKPOINTS.LG,
3044
+ // 1280 - 1599
3045
+ xl: TablePaginationActions.BREAKPOINTS.XL
3046
+ // 1600+
3047
+ },
3048
+ unit: "px",
3049
+ step: 5
3050
+ // For more information about use this helper functions: https://mui.com/material-ui/customization/breakpoints/#css-media-queries
3051
+ // up: f d(),
3052
+ // down: f down(),
3053
+ // between: f p(),
3054
+ // only: f only(),
3055
+ // width: f width(),
3056
+ },
3057
+ direction: "ltr",
3058
+ mixins: {
3059
+ // gutters: f gutters(),
3060
+ toolbar: {
3061
+ minHeight: 56,
3062
+ "@media (min-width:0px) and (orientation: landscape)": {
3063
+ minHeight: 48
3064
+ },
3065
+ "@media (min-width:600px)": {
3066
+ minHeight: 56
3067
+ }
3068
+ }
3069
+ },
3070
+ palette: paletteUtils.commonPalette,
3071
+ shadows: themeShadows,
3072
+ typography: themeTypography,
3073
+ spacingValue: TablePaginationActions.SPACING,
3074
+ // For situations where we can't use theme.spacing(), mainly math calculations.er
3075
+ spacing: TablePaginationActions.SPACING,
3076
+ // For custom spacing: https://material-ui.com/customization/spacing/#custom-spacing
3077
+ shape: {
3078
+ borderRadius: 4
3079
+ },
3080
+ transitions: {
3081
+ easing: {
3082
+ easeInOut: "cubic-bezier(0.4, 0, 0.2, 1)",
3083
+ easeOut: "cubic-bezier(0.0, 0, 0.2, 1)",
3084
+ easeIn: "cubic-bezier(0.4, 0, 1, 1)",
3085
+ sharp: "cubic-bezier(0.4, 0, 0.6, 1)"
3086
+ },
3087
+ duration: {
3088
+ shortest: 150,
3089
+ shorter: 200,
3090
+ short: 250,
3091
+ standard: 300,
3092
+ complex: 375,
3093
+ enteringScreen: 225,
3094
+ leavingScreen: 195
3095
+ }
3096
+ // create: f create(), => Research
3097
+ // getAutoHeightDuration: f getAutoHeightDuration(), => Research
3098
+ },
3099
+ zIndex: {
3100
+ mobileStepper: 1e3,
3101
+ speedDial: 1050,
3102
+ appBar: 1100,
3103
+ drawer: 1200,
3104
+ modal: 1300,
3105
+ snackbar: 1400,
3106
+ tooltip: 1500
3107
+ },
3108
+ // Styles and props overrides for components
3109
+ components: {
3110
+ MuiCssBaseline: {
3111
+ styleOverrides: {
3112
+ ...CssBaseline
3113
+ }
3114
+ },
3115
+ ...buttonsOverrides,
3116
+ ...formsOverrides,
3117
+ ...navigationOverrides,
3118
+ ...dataDisplayOverrides,
3119
+ ...feedbackOverrides,
3120
+ ...surfacesOverrides,
3121
+ ...datePickersOverrides
3122
+ }
3123
+ };
3124
+ const theme = material.responsiveFontSizes(material.createTheme(cartoThemeOptions));
3125
+ exports.APPBAR_SIZE = TablePaginationActions.APPBAR_SIZE;
3126
+ exports.BREAKPOINTS = TablePaginationActions.BREAKPOINTS;
3127
+ exports.ICON_SIZE_LARGE = TablePaginationActions.ICON_SIZE_LARGE;
3128
+ exports.ICON_SIZE_MEDIUM = TablePaginationActions.ICON_SIZE_MEDIUM;
3129
+ exports.ICON_SIZE_SMALL = TablePaginationActions.ICON_SIZE_SMALL;
3130
+ exports.NOTIFICATION_DURATION_IN_MS = TablePaginationActions.NOTIFICATION_DURATION_IN_MS;
3131
+ exports.SPACING = TablePaginationActions.SPACING;
3132
+ exports.getSpacing = TablePaginationActions.getSpacing;
3133
+ exports.getCartoColorStylePropsForItem = paletteUtils.getCartoColorStylePropsForItem;
3134
+ exports.cartoThemeOptions = cartoThemeOptions;
3135
+ exports.theme = theme;