@carto/meridian-ds 1.4.1-alpha-menu-tests.1 → 1.4.2-alpha-forwarding-props.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -2
- package/dist/{Alert-Cn0nq6aq.js → Alert-1b84B18a.js} +1 -1
- package/dist/{Alert-B2JgFj6Y.cjs → Alert-BbMbtaix.cjs} +1 -1
- package/dist/{TablePaginationActions-EC4ynZRa.js → TablePaginationActions-EDxBCxpG.js} +1 -0
- package/dist/TablePaginationActions-V8ultBUz.cjs +9 -0
- package/dist/components/index.cjs +1 -1
- package/dist/components/index.js +879 -836
- package/dist/theme/index.cjs +1 -1
- package/dist/theme/index.js +2 -2
- package/dist/types/components/atoms/Button.d.ts.map +1 -1
- package/dist/types/components/atoms/IconButton.d.ts.map +1 -1
- package/dist/types/components/atoms/Typography.d.ts.map +1 -1
- package/dist/types/components/organisms/DatePickers/DatePicker.d.ts +1 -1
- package/dist/types/components/organisms/DatePickers/DatePicker.d.ts.map +1 -1
- package/dist/types/components/organisms/DatePickers/DateRangePicker.d.ts +1 -1
- package/dist/types/components/organisms/DatePickers/DateRangePicker.d.ts.map +1 -1
- package/dist/types/components/organisms/DatePickers/DateTimePicker.d.ts +1 -1
- package/dist/types/components/organisms/DatePickers/DateTimePicker.d.ts.map +1 -1
- package/dist/types/components/organisms/DatePickers/PickersDay.d.ts.map +1 -1
- package/dist/types/components/organisms/DatePickers/TimePicker.d.ts +1 -1
- package/dist/types/components/organisms/DatePickers/TimePicker.d.ts.map +1 -1
- package/dist/types/components/organisms/DatePickers/types.d.ts +2 -0
- package/dist/types/components/organisms/DatePickers/types.d.ts.map +1 -1
- package/dist/types/components/organisms/Dialog/Dialog.d.ts +1 -1
- package/dist/types/components/organisms/Dialog/Dialog.d.ts.map +1 -1
- package/dist/types/components/organisms/Dialog/DialogConfirmation.d.ts.map +1 -1
- package/dist/types/components/organisms/Dialog/DialogContent.d.ts.map +1 -1
- package/dist/types/components/organisms/Dialog/DialogFooter.d.ts.map +1 -1
- package/dist/types/components/organisms/Dialog/DialogHeader.d.ts.map +1 -1
- package/dist/widgets/index.cjs +1 -1
- package/dist/widgets/index.js +2 -2
- package/package.json +1 -1
- package/dist/TablePaginationActions-7wkkiCXh.cjs +0 -9
package/dist/theme/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("@mui/material"),p=require("react/jsx-runtime"),r=require("../TablePaginationActions-7wkkiCXh.cjs"),a=require("@mui/icons-material"),M=require("../ArrowDown-CGnG0E-4.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";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("@mui/material"),p=require("react/jsx-runtime"),r=require("../TablePaginationActions-V8ultBUz.cjs"),a=require("@mui/icons-material"),M=require("../ArrowDown-CGnG0E-4.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;
|
package/dist/theme/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { alpha as x, Tooltip as ao, responsiveFontSizes as to, createTheme as eo } from "@mui/material";
|
|
2
2
|
import { jsxs as no, Fragment as po, jsx as s } from "react/jsx-runtime";
|
|
3
|
-
import { T as lo, a as so, I as e, b as r, c as u, g as t, A as R, B as g, S as P } from "../TablePaginationActions-
|
|
4
|
-
import { N as Do } from "../TablePaginationActions-
|
|
3
|
+
import { T as lo, a as so, I as e, b as r, c as u, g as t, A as R, B as g, S as P } from "../TablePaginationActions-EDxBCxpG.js";
|
|
4
|
+
import { N as Do } from "../TablePaginationActions-EDxBCxpG.js";
|
|
5
5
|
import { Cancel as v, EventOutlined as L, ChevronRightOutlined as co, ChevronLeftOutlined as go, ExpandMoreOutlined as oo, CheckCircleOutlined as uo } from "@mui/icons-material";
|
|
6
6
|
import { A as h } from "../ArrowDown-B1AG0MlL.js";
|
|
7
7
|
import { renderDigitalClockTimeView as A } from "@mui/x-date-pickers";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/Button.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,WAAW,IAAI,cAAc,EAK9B,MAAM,eAAe,CAAA;AAmBtB,MAAM,MAAM,WAAW,GAAG,cAAc,CACtC,KAAK,CAAC,WAAW,EACjB;IACE,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB;;;;;OAKG;IACH,eAAe,CAAC,EAAE,OAAO,GAAG,KAAK,CAAA;CAClC,CACF,CAAA;
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/Button.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,WAAW,IAAI,cAAc,EAK9B,MAAM,eAAe,CAAA;AAmBtB,MAAM,MAAM,WAAW,GAAG,cAAc,CACtC,KAAK,CAAC,WAAW,EACjB;IACE,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB;;;;;OAKG;IACH,eAAe,CAAC,EAAE,OAAO,GAAG,KAAK,CAAA;CAClC,CACF,CAAA;AAoED,QAAA,MAAM,MAAM,wHAAsB,CAAA;AAClC,eAAe,MAAM,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/IconButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAA4B,MAAM,OAAO,CAAA;AACvE,OAAO,EAGL,eAAe,IAAI,kBAAkB,EAErC,YAAY,EAEb,MAAM,eAAe,CAAA;AAEtB,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,kBAAkB,EAAE,KAAK,CAAC,GAAG;IAC9D,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAA;IACxD,qDAAqD;IACrD,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,IAAI,EAAE,SAAS,CAAA;IACf,OAAO,CAAC,EAAE,WAAW,GAAG,UAAU,GAAG,MAAM,CAAA;IAC3C,OAAO,CAAC,EAAE,YAAY,CAAC,OAAO,CAAC,CAAA;IAC/B,gBAAgB,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,CAAA;IAC5C,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,+CAA+C;IAC/C,EAAE,CAAC,EAAE,MAAM,CAAA;CACZ,CAAA;
|
|
1
|
+
{"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/IconButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAA4B,MAAM,OAAO,CAAA;AACvE,OAAO,EAGL,eAAe,IAAI,kBAAkB,EAErC,YAAY,EAEb,MAAM,eAAe,CAAA;AAEtB,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,kBAAkB,EAAE,KAAK,CAAC,GAAG;IAC9D,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAA;IACxD,qDAAqD;IACrD,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,IAAI,EAAE,SAAS,CAAA;IACf,OAAO,CAAC,EAAE,WAAW,GAAG,UAAU,GAAG,MAAM,CAAA;IAC3C,OAAO,CAAC,EAAE,YAAY,CAAC,OAAO,CAAC,CAAA;IAC/B,gBAAgB,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,CAAA;IAC5C,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,+CAA+C;IAC/C,EAAE,CAAC,EAAE,MAAM,CAAA;CACZ,CAAA;AAuED,QAAA,MAAM,UAAU;cAjFJ,CAAC,KAAK,EAAE,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI;IACxD,qDAAqD;aAC5C,OAAO;UACV,SAAS;cACL,WAAW,GAAG,UAAU,GAAG,MAAM;cACjC,YAAY,CAAC,OAAO,CAAC;uBACZ,YAAY,CAAC,WAAW,CAAC;cAClC,OAAO;IACjB,+CAA+C;SAC1C,MAAM;qDAwEiE,CAAA;AAC9E,eAAe,UAAU,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Typography.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/Typography.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,eAAe,IAAI,kBAAkB,EACtC,MAAM,eAAe,CAAA;AAGtB,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,CAAA;AAE7D,MAAM,MAAM,eAAe,GAAG,kBAAkB,CAC9C,KAAK,CAAC,WAAW,EACjB;IACE,MAAM,CAAC,EAAE,eAAe,CAAA;IACxB,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,CACF,CAAA;
|
|
1
|
+
{"version":3,"file":"Typography.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/Typography.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,eAAe,IAAI,kBAAkB,EACtC,MAAM,eAAe,CAAA;AAGtB,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,CAAA;AAE7D,MAAM,MAAM,eAAe,GAAG,kBAAkB,CAC9C,KAAK,CAAC,WAAW,EACjB;IACE,MAAM,CAAC,EAAE,eAAe,CAAA;IACxB,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,CACF,CAAA;AAkCD,QAAA,MAAM,UAAU,sHAA0B,CAAA;AAC1C,eAAe,UAAU,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { DatePickerProps } from '..';
|
|
2
|
-
declare function DatePicker<TDate extends Date>({ handleClear, variant, size, label, labelHelpTooltip, type, helperText, placeholder, slotProps, slots, error, showCalendar, readOnly, ...props }: DatePickerProps<TDate>): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare function DatePicker<TDate extends Date>({ handleClear, variant, size, label, labelHelpTooltip, type, helperText, placeholder, slotProps, slots, error, showCalendar, readOnly, 'aria-label': ariaLabel, 'data-testid': dataTestId, ...props }: DatePickerProps<TDate>): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default DatePicker;
|
|
4
4
|
//# sourceMappingURL=DatePicker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DatePicker.d.ts","sourceRoot":"","sources":["../../../../../src/components/organisms/DatePickers/DatePicker.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAKxD,iBAAS,UAAU,CAAC,KAAK,SAAS,IAAI,EAAE,EACtC,WAAW,EACX,OAAoB,EACpB,IAAc,EACd,KAAK,EACL,gBAAgB,EAChB,IAAI,EACJ,UAAU,EACV,WAAW,EACX,SAAS,EACT,KAAK,EACL,KAAK,EACL,YAAmB,EACnB,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,eAAe,CAAC,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"DatePicker.d.ts","sourceRoot":"","sources":["../../../../../src/components/organisms/DatePickers/DatePicker.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAKxD,iBAAS,UAAU,CAAC,KAAK,SAAS,IAAI,EAAE,EACtC,WAAW,EACX,OAAoB,EACpB,IAAc,EACd,KAAK,EACL,gBAAgB,EAChB,IAAI,EACJ,UAAU,EACV,WAAW,EACX,SAAS,EACT,KAAK,EACL,KAAK,EACL,YAAmB,EACnB,QAAQ,EACR,YAAY,EAAE,SAAS,EACvB,aAAa,EAAE,UAAU,EACzB,GAAG,KAAK,EACT,EAAE,eAAe,CAAC,KAAK,CAAC,2CAuExB;AAED,eAAe,UAAU,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { DateRangePickerProps } from './types';
|
|
2
|
-
declare function DateRangePicker<TDate extends Date>({ globalHelperText, error, variant, startProps, endProps, ...props }: DateRangePickerProps<TDate>): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare function DateRangePicker<TDate extends Date>({ globalHelperText, error, variant, startProps, endProps, 'aria-label': ariaLabel, 'data-testid': dataTestId, ...props }: DateRangePickerProps<TDate>): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default DateRangePicker;
|
|
4
4
|
//# sourceMappingURL=DateRangePicker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateRangePicker.d.ts","sourceRoot":"","sources":["../../../../../src/components/organisms/DatePickers/DateRangePicker.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAA;AA6D/E,iBAAS,eAAe,CAAC,KAAK,SAAS,IAAI,EAAE,EAC3C,gBAAgB,EAChB,KAAK,EACL,OAAoB,EACpB,UAAU,EACV,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,oBAAoB,CAAC,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"DateRangePicker.d.ts","sourceRoot":"","sources":["../../../../../src/components/organisms/DatePickers/DateRangePicker.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAA;AA6D/E,iBAAS,eAAe,CAAC,KAAK,SAAS,IAAI,EAAE,EAC3C,gBAAgB,EAChB,KAAK,EACL,OAAoB,EACpB,UAAU,EACV,QAAQ,EACR,YAAY,EAAE,SAAS,EACvB,aAAa,EAAE,UAAU,EACzB,GAAG,KAAK,EACT,EAAE,oBAAoB,CAAC,KAAK,CAAC,2CAqK7B;AAED,eAAe,eAAe,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { DateTimePickerProps } from './types';
|
|
2
|
-
declare function DateTimePicker<TDate extends Date>({ handleClear, variant, size, label, labelHelpTooltip, type, helperText, placeholder, error, showCalendar, readOnly, slotProps, slots, ampm, views, format, ...props }: DateTimePickerProps<TDate>): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare function DateTimePicker<TDate extends Date>({ handleClear, variant, size, label, labelHelpTooltip, type, helperText, placeholder, error, showCalendar, readOnly, slotProps, slots, ampm, views, format, 'data-testid': dataTestId, 'aria-label': ariaLabel, ...props }: DateTimePickerProps<TDate>): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default DateTimePicker;
|
|
4
4
|
//# sourceMappingURL=DateTimePicker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateTimePicker.d.ts","sourceRoot":"","sources":["../../../../../src/components/organisms/DatePickers/DateTimePicker.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAA;AAM9E,iBAAS,cAAc,CAAC,KAAK,SAAS,IAAI,EAAE,EAC1C,WAAW,EACX,OAAoB,EACpB,IAAc,EACd,KAAK,EACL,gBAAgB,EAChB,IAAI,EACJ,UAAU,EACV,WAAW,EACX,KAAK,EACL,YAAmB,EACnB,QAAQ,EACR,SAAS,EACT,KAAK,EACL,IAAW,EACX,KAA4B,EAC5B,MAAM,EACN,GAAG,KAAK,EACT,EAAE,mBAAmB,CAAC,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"DateTimePicker.d.ts","sourceRoot":"","sources":["../../../../../src/components/organisms/DatePickers/DateTimePicker.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAA;AAM9E,iBAAS,cAAc,CAAC,KAAK,SAAS,IAAI,EAAE,EAC1C,WAAW,EACX,OAAoB,EACpB,IAAc,EACd,KAAK,EACL,gBAAgB,EAChB,IAAI,EACJ,UAAU,EACV,WAAW,EACX,KAAK,EACL,YAAmB,EACnB,QAAQ,EACR,SAAS,EACT,KAAK,EACL,IAAW,EACX,KAA4B,EAC5B,MAAM,EACN,aAAa,EAAE,UAAU,EACzB,YAAY,EAAE,SAAS,EACvB,GAAG,KAAK,EACT,EAAE,mBAAmB,CAAC,KAAK,CAAC,2CAqE5B;AAED,eAAe,cAAc,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PickersDay.d.ts","sourceRoot":"","sources":["../../../../../src/components/organisms/DatePickers/PickersDay.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAA;AAwJ1E,iBAAS,UAAU,CAAC,KAAK,SAAS,IAAI,EAAE,EACtC,GAAG,EACH,SAAS,EACT,OAAO,EACP,aAAa,EACb,GAAG,UAAU,EACd,EAAE,eAAe,CAAC,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"PickersDay.d.ts","sourceRoot":"","sources":["../../../../../src/components/organisms/DatePickers/PickersDay.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAA;AAwJ1E,iBAAS,UAAU,CAAC,KAAK,SAAS,IAAI,EAAE,EACtC,GAAG,EACH,SAAS,EACT,OAAO,EACP,aAAa,EACb,GAAG,UAAU,EACd,EAAE,eAAe,CAAC,KAAK,CAAC,2CAoCxB;AAED,eAAe,UAAU,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { TimePickerProps } from './types';
|
|
2
|
-
declare function TimePicker<TDate extends Date>({ handleClear, variant, size, label, labelHelpTooltip, type, helperText, placeholder, error, showClock, readOnly, slotProps, slots, ampm, views, format, ...props }: TimePickerProps<TDate>): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare function TimePicker<TDate extends Date>({ handleClear, variant, size, label, labelHelpTooltip, type, helperText, placeholder, error, showClock, readOnly, slotProps, slots, ampm, views, format, 'data-testid': dataTestId, 'aria-label': ariaLabel, ...props }: TimePickerProps<TDate>): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default TimePicker;
|
|
4
4
|
//# sourceMappingURL=TimePicker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TimePicker.d.ts","sourceRoot":"","sources":["../../../../../src/components/organisms/DatePickers/TimePicker.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAA;AAM1E,iBAAS,UAAU,CAAC,KAAK,SAAS,IAAI,EAAE,EACtC,WAAW,EACX,OAAoB,EACpB,IAAc,EACd,KAAK,EACL,gBAAgB,EAChB,IAAI,EACJ,UAAU,EACV,WAAW,EACX,KAAK,EACL,SAAgB,EAChB,QAAQ,EACR,SAAS,EACT,KAAK,EACL,IAAW,EACX,KAA4B,EAC5B,MAAM,EACN,GAAG,KAAK,EACT,EAAE,eAAe,CAAC,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"TimePicker.d.ts","sourceRoot":"","sources":["../../../../../src/components/organisms/DatePickers/TimePicker.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAA;AAM1E,iBAAS,UAAU,CAAC,KAAK,SAAS,IAAI,EAAE,EACtC,WAAW,EACX,OAAoB,EACpB,IAAc,EACd,KAAK,EACL,gBAAgB,EAChB,IAAI,EACJ,UAAU,EACV,WAAW,EACX,KAAK,EACL,SAAgB,EAChB,QAAQ,EACR,SAAS,EACT,KAAK,EACL,IAAW,EACX,KAA4B,EAC5B,MAAM,EACN,aAAa,EAAE,UAAU,EACzB,YAAY,EAAE,SAAS,EACvB,GAAG,KAAK,EACT,EAAE,eAAe,CAAC,KAAK,CAAC,2CAkGxB;AAED,eAAe,UAAU,CAAA"}
|
|
@@ -10,6 +10,8 @@ type DatePickersBaseProps = {
|
|
|
10
10
|
placeholder?: string;
|
|
11
11
|
type?: 'optional' | 'required';
|
|
12
12
|
error?: boolean;
|
|
13
|
+
'aria-label'?: string;
|
|
14
|
+
'data-testid'?: string;
|
|
13
15
|
};
|
|
14
16
|
export type DatePickerProps<TDate extends Date> = MuiDatePickerProps<TDate> & DatePickersBaseProps & {
|
|
15
17
|
showCalendar?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/organisms/DatePickers/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACjC,OAAO,EACL,eAAe,IAAI,kBAAkB,EACrC,eAAe,IAAI,kBAAkB,EACrC,eAAe,IAAI,kBAAkB,EACrC,mBAAmB,IAAI,sBAAsB,EAC9C,MAAM,qBAAqB,CAAA;AAE5B,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAE9C,KAAK,oBAAoB,GAAG;IAC1B,WAAW,CAAC,EAAE,MAAM,IAAI,CAAA;IACxB,OAAO,CAAC,EAAE,cAAc,CAAC,SAAS,CAAC,CAAA;IACnC,IAAI,CAAC,EAAE,cAAc,CAAC,MAAM,CAAC,CAAA;IAC7B,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC/B,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACrC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,IAAI,CAAC,EAAE,UAAU,GAAG,UAAU,CAAA;IAC9B,KAAK,CAAC,EAAE,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/organisms/DatePickers/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACjC,OAAO,EACL,eAAe,IAAI,kBAAkB,EACrC,eAAe,IAAI,kBAAkB,EACrC,eAAe,IAAI,kBAAkB,EACrC,mBAAmB,IAAI,sBAAsB,EAC9C,MAAM,qBAAqB,CAAA;AAE5B,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAE9C,KAAK,oBAAoB,GAAG;IAC1B,WAAW,CAAC,EAAE,MAAM,IAAI,CAAA;IACxB,OAAO,CAAC,EAAE,cAAc,CAAC,SAAS,CAAC,CAAA;IACnC,IAAI,CAAC,EAAE,cAAc,CAAC,MAAM,CAAC,CAAA;IAC7B,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC/B,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACrC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,IAAI,CAAC,EAAE,UAAU,GAAG,UAAU,CAAA;IAC9B,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB,CAAA;AAED,MAAM,MAAM,eAAe,CAAC,KAAK,SAAS,IAAI,IAAI,kBAAkB,CAAC,KAAK,CAAC,GACzE,oBAAoB,GAAG;IACrB,YAAY,CAAC,EAAE,OAAO,CAAA;CACvB,CAAA;AAEH,MAAM,MAAM,oBAAoB,CAAC,KAAK,SAAS,IAAI,IACjD,eAAe,CAAC,KAAK,CAAC,GAAG;IACvB,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACrC,UAAU,CAAC,EAAE,eAAe,CAAC,KAAK,CAAC,CAAA;IACnC,QAAQ,CAAC,EAAE,eAAe,CAAC,KAAK,CAAC,CAAA;CAClC,CAAA;AAEH,MAAM,MAAM,eAAe,CAAC,KAAK,SAAS,IAAI,IAAI,kBAAkB,CAAC,KAAK,CAAC,GAAG;IAC5E,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,SAAS,CAAC,EAAE,KAAK,GAAG,IAAI,CAAA;IACxB,OAAO,CAAC,EAAE,KAAK,GAAG,IAAI,CAAA;IACtB,aAAa,CAAC,EAAE,IAAI,CAAA;CACrB,CAAA;AAED,MAAM,MAAM,eAAe,CAAC,KAAK,SAAS,IAAI,IAAI,kBAAkB,CAAC,KAAK,CAAC,GACzE,oBAAoB,GAAG;IACrB,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB,CAAA;AAEH,MAAM,MAAM,mBAAmB,CAAC,KAAK,SAAS,IAAI,IAChD,sBAAsB,CAAC,KAAK,CAAC,GAC3B,oBAAoB,GAAG;IACrB,YAAY,CAAC,EAAE,OAAO,CAAA;CACvB,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { DialogProps } from './types';
|
|
2
|
-
declare
|
|
2
|
+
declare const Dialog: import('react').ForwardRefExoticComponent<Omit<DialogProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
3
3
|
export default Dialog;
|
|
4
4
|
//# sourceMappingURL=Dialog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../../../src/components/organisms/Dialog/Dialog.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../../../src/components/organisms/Dialog/Dialog.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAmErC,QAAA,MAAM,MAAM,qHAAsB,CAAA;AAClC,eAAe,MAAM,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DialogConfirmation.d.ts","sourceRoot":"","sources":["../../../../../src/components/organisms/Dialog/DialogConfirmation.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAA;AAiCjD,iBAAS,kBAAkB,CAAC,EAC1B,QAAQ,EACR,WAAW,EACX,OAAO,EACP,QAAoB,EACpB,MAAM,EACN,aAAa,EAAE,UAAU,EACzB,YAAY,EAAE,SAAS,EACvB,GAAG,UAAU,EACd,EAAE,uBAAuB,
|
|
1
|
+
{"version":3,"file":"DialogConfirmation.d.ts","sourceRoot":"","sources":["../../../../../src/components/organisms/Dialog/DialogConfirmation.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAA;AAiCjD,iBAAS,kBAAkB,CAAC,EAC1B,QAAQ,EACR,WAAW,EACX,OAAO,EACP,QAAoB,EACpB,MAAM,EACN,aAAa,EAAE,UAAU,EACzB,YAAY,EAAE,SAAS,EACvB,GAAG,UAAU,EACd,EAAE,uBAAuB,2CAwCzB;AAED,eAAe,kBAAkB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DialogContent.d.ts","sourceRoot":"","sources":["../../../../../src/components/organisms/Dialog/DialogContent.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"DialogContent.d.ts","sourceRoot":"","sources":["../../../../../src/components/organisms/Dialog/DialogContent.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AA4H5C,QAAA,MAAM,aAAa,mIAA6B,CAAA;AAEhD,eAAO,MAAM,mBAAmB;gBAGlB,OAAO;UAOlB,CAAA;AAEH,eAAe,aAAa,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DialogFooter.d.ts","sourceRoot":"","sources":["../../../../../src/components/organisms/Dialog/DialogFooter.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAoD3C,eAAO,MAAM,aAAa;eAGb,OAAO;UAUjB,CAAA;AAOH,iBAAS,YAAY,CAAC,EACpB,QAAQ,EACR,gBAAgB,EAChB,YAAY,EACZ,UAAU,EACV,IAAI,EACJ,UAAU,EACV,GAAG,UAAU,EACd,EAAE,iBAAiB,
|
|
1
|
+
{"version":3,"file":"DialogFooter.d.ts","sourceRoot":"","sources":["../../../../../src/components/organisms/Dialog/DialogFooter.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAoD3C,eAAO,MAAM,aAAa;eAGb,OAAO;UAUjB,CAAA;AAOH,iBAAS,YAAY,CAAC,EACpB,QAAQ,EACR,gBAAgB,EAChB,YAAY,EACZ,UAAU,EACV,IAAI,EACJ,UAAU,EACV,GAAG,UAAU,EACd,EAAE,iBAAiB,2CA4BnB;AAED,eAAe,YAAY,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DialogHeader.d.ts","sourceRoot":"","sources":["../../../../../src/components/organisms/Dialog/DialogHeader.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAgC3C,iBAAS,YAAY,CAAC,EACpB,KAAK,EACL,SAAS,EACT,SAAS,EACT,QAAQ,EACR,OAAO,EACP,gBAAgB,EAChB,YAAY,EAAE,SAAS,EACvB,SAAS,EACT,GAAG,UAAU,EACd,EAAE,iBAAiB,
|
|
1
|
+
{"version":3,"file":"DialogHeader.d.ts","sourceRoot":"","sources":["../../../../../src/components/organisms/Dialog/DialogHeader.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAgC3C,iBAAS,YAAY,CAAC,EACpB,KAAK,EACL,SAAS,EACT,SAAS,EACT,QAAQ,EACR,OAAO,EACP,gBAAgB,EAChB,YAAY,EAAE,SAAS,EACvB,SAAS,EACT,GAAG,UAAU,EACd,EAAE,iBAAiB,2CA8CnB;AAED,eAAe,YAAY,CAAA"}
|
package/dist/widgets/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),u=require("react"),o=require("@mui/material"),Z=require("react-intl"),j=require("../TablePaginationActions-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),u=require("react"),o=require("@mui/material"),Z=require("react-intl"),j=require("../TablePaginationActions-V8ultBUz.cjs"),jn=require("echarts-for-react"),wn=require("react-window"),Te=require("../SwatchSquare-C-QxZLYN.cjs"),ee=require("@mui/icons-material"),bn=require("../Alert-BbMbtaix.cjs"),Me=require("../paletteUtils-DLQVT9qo.cjs");function Bt(){let e=!1;return window.PointerEvent&&"maxTouchPoints"in navigator?navigator.maxTouchPoints>0&&(e=!0):(window.matchMedia&&window.matchMedia("(any-pointer:coarse)").matches||window.TouchEvent||"ontouchstart"in window)&&(e=!0),e}function te(e){return!e||typeof e!="object"?e:`${e.prefix??""}${e.value}${e.suffix??""}`}const Sn=[],In={},lt=e=>e;function kn(e,n){if(!e||Array.isArray(e)&&e.length===0)return null;const i=Array.isArray(e)?e:[e];let r="";return r+=String(i[0].axisValueLabel),r+=i.map(({seriesName:s,value:l,data:a,marker:p})=>{const c=s?s+": ":"",g=te(n(Number(l))),h=a,d=`<div style="margin-left: 8px; display: inline">
|
|
2
2
|
${c}${g}${String((h==null?void 0:h.unit)||"")}
|
|
3
3
|
</div>`;return`<div style="margin-top: 4px">${String(p)}${d}</div>`}).join(" "),r}function Tn({height:e,labels:n=In,yAxisData:i,selectedBars:r=Sn,series:s,colors:l,tooltip:a=!0,tooltipFormatter:p=kn,xAxisFormatter:c=lt,yAxisFormatter:g=lt,onSelectedBarsChange:h,animation:d=!0,filterable:y=!0,stacked:f=!0,...m}){const v=o.useTheme(),x=u.useMemo(()=>(s??[]).map(I=>n[I]??I),[s,n]),b=u.useMemo(()=>Array.isArray(i[0])?i:[i],[i]),S=u.useMemo(()=>typeof l=="string"?[l]:Array.isArray(l)&&l.length?l:b.length<=1||x.length===1?[v.palette.secondary.main]:b.length===2||x.length===2?[v.palette.secondary.light,v.palette.secondary.dark]:Object.values(v.palette.qualitative.bold||{}),[l,v,b,x]);return{...m,tooltip:a,tooltipFormatter:p,xAxisFormatter:c,yAxisFormatter:g,onSelectedBarsChange:h,animation:d,filterable:y,stacked:f,labels:n,height:e??parseInt(v.spacing(22)),selectedBars:Mn(r),yAxisData:b,colors:S,series:x}}function Mn(e){return(e??[]).length?e.map(n=>Array.isArray(n)&&n.length===2?n:Array.isArray(n)?[...Array(2)].map((r,s)=>n[s]??0):[n,0]):[]}var Cn=function e(n,i){if(n===i)return!0;if(n&&i&&typeof n=="object"&&typeof i=="object"){if(n.constructor!==i.constructor)return!1;var r,s,l;if(Array.isArray(n)){if(r=n.length,r!=i.length)return!1;for(s=r;s--!==0;)if(!e(n[s],i[s]))return!1;return!0}if(n.constructor===RegExp)return n.source===i.source&&n.flags===i.flags;if(n.valueOf!==Object.prototype.valueOf)return n.valueOf()===i.valueOf();if(n.toString!==Object.prototype.toString)return n.toString()===i.toString();if(l=Object.keys(n),r=l.length,r!==Object.keys(i).length)return!1;for(s=r;s--!==0;)if(!Object.prototype.hasOwnProperty.call(i,l[s]))return!1;for(s=r;s--!==0;){var a=l[s];if(!e(n[a],i[a]))return!1}return!0}return n!==n&&i!==i};const xe=j.getDefaultExportFromCjs(Cn);class ye extends jn{componentDidUpdate(n){const{shouldSetOption:i}=this.props;if(typeof i=="function"&&!i(n,this.props))return;if(!xe(n.theme,this.props.theme)||!xe(n.opts,this.props.opts)){this.dispose(),this.renderNewEcharts();return}const r=this.getEchartsInstance();xe(n.onEvents,this.props.onEvents)||(this.offEvents(r,n.onEvents),this.bindEvents(r,this.props.onEvents));const s=["option","notMerge","lazyUpdate","showLoading","loadingOption"];xe(at(this.props,s),at(n,s))||this.updateEChartsOption(),(!xe(n.style,this.props.style)||!xe(n.className,this.props.className))&&this.resize()}updateEChartsOption(){const n=this.props.option,i=this.props.loadingOption||null,{lazyUpdate:r,showLoading:s}=this.props,l=this.getEchartsInstance();return l.setOption(n,{replaceMerge:["series"],lazyUpdate:r}),s?l.showLoading(i):l.hideLoading(),l}offEvents(n,i){if(i)for(const r in i)typeof r=="string"&&n.off(r)}}function at(e,n){const i={};return n.forEach(r=>{i[r]=e[r]}),i}const _e=240,Pt=o.styled(o.Box)(({theme:e})=>({display:"flex",alignItems:"flex-end",justifyContent:"space-between",position:"relative",padding:e.spacing(0,2),"&::before":{content:'""',position:"absolute",top:0,right:0,left:0,bottom:0,backgroundSize:e.spacing(4,4),backgroundImage:`linear-gradient(to bottom, ${e.palette.grey[50]} 1px, transparent 1px)`,transform:"scaleY(-1)"}})),Lt=o.styled(o.Box)(({theme:e})=>({display:"flex",alignItems:"flex-end",justifyContent:"space-between",backgroundImage:`linear-gradient(${e.palette.grey[50]} 0.5px, transparent 0.5px, transparent calc(100% - 0.5px), ${e.palette.grey[50]} calc(100% - 0.5px)), linear-gradient(90deg, ${e.palette.grey[50]} 0.5px, transparent 0.5px, transparent calc(100% - 0.5px), ${e.palette.grey[50]} calc(100% - 0.5px))`,backgroundSize:"8.33% 20%",border:`0.5px solid ${e.palette.grey[50]}`})),je=o.styled(o.Skeleton)(({theme:e})=>({flex:1,maxWidth:e.spacing(12),"& + &":{marginLeft:e.spacing(1)}})),ne=o.styled(o.Skeleton)(({theme:e})=>({flex:1,maxWidth:e.spacing(8),"& + &":{marginLeft:"1px"}})),An=o.styled(o.Skeleton)(({theme:e})=>({backgroundColor:e.palette.common.white})),ct=o.styled(o.Skeleton)(({theme:e})=>({backgroundColor:e.palette.grey[100]}));function En({height:e}){return t.jsxs(t.Fragment,{children:[t.jsx(o.Box,{mb:2,children:t.jsx(o.Skeleton,{width:48,height:8})}),t.jsxs(Pt,{style:{height:e||_e},children:[t.jsx(je,{variant:"rectangular",height:"20%"}),t.jsx(je,{variant:"rectangular",height:"40%"}),t.jsx(je,{variant:"rectangular",height:"60%"}),t.jsx(je,{variant:"rectangular",height:"20%"}),t.jsx(je,{variant:"rectangular",height:"80%"})]})]})}function de(e){const[n,i]=u.useState(!1),[r,s]=u.useState(!1);return u.useEffect(()=>{e&&!r&&(i(!0),s(!0)),e||i(!1)},[e,r]),{showSkeleton:n}}const Bn=Bt(),Pn=o.styled(o.Grid)(({theme:e})=>({marginBottom:e.spacing(2),flexDirection:"row",justifyContent:"space-between",alignItems:"center","& .MuiTypography-caption":{color:e.palette.text.secondary}})),Ln=o.styled(o.Link)(({theme:e})=>({...e.typography.caption,cursor:"pointer"}));function Dn(e){const{yAxisData:n,xAxisData:i,series:r,selectedBars:s,onSelectedBarsChange:l,tooltip:a,tooltipFormatter:p,labels:c,colors:g,xAxisFormatter:h,yAxisFormatter:d,stacked:y,height:f,filterable:m,animation:v,isLoading:x}=Tn(e),b=r.length>1,S=o.useTheme(),I=Z.useIntl(),T=j.useImperativeIntl(I),{showSkeleton:w}=de(!!x),C=u.useMemo(()=>({show:a,trigger:"axis",padding:[parseInt(S.spacing(.5)),parseInt(S.spacing(1))],borderWidth:0,textStyle:{...S.typography.caption,fontSize:11,color:S.palette.common.white},backgroundColor:S.palette.black[90],position:function(k,O,G,R,H){const q={top:0};return H.contentSize[0]<H.viewSize[0]-k[0]?q.left=k[0]:q.right=H.viewSize[0]-k[0],q},formatter:k=>p(k,d)}),[S,a,p,d]),M=u.useMemo(()=>i.map(k=>te(h(c[k]??String(k)))),[i,c,h]),D=u.useMemo(()=>({type:"category",axisLine:{show:!1},axisTick:{show:!1},axisLabel:{...S.typography.overlineDelicate,padding:[parseInt(S.spacing(.5)),0,0,0]},data:M}),[S,M]),E=u.useMemo(()=>{let k=[];return y?k=n.reduce((O,G)=>(G.forEach((R,H)=>O[H]=(O[H]??0)+(R??Number.MIN_SAFE_INTEGER)),O),[]):k=n.flat().map(O=>O??Number.MIN_SAFE_INTEGER),Math.max(...k)},[n,y]),L=u.useMemo(()=>({type:"value",axisLabel:{margin:0,verticalAlign:"bottom",padding:[0,0,parseInt(S.spacing(1.25)),0],show:!0,showMaxLabel:!0,showMinLabel:!1,inside:!0,color:k=>k>=E?S.palette.black[60]:"transparent",...S.typography.overlineDelicate,formatter:k=>te(d(k))},axisLine:{show:!1},axisTick:{show:!1},splitLine:{show:!0,onZero:!1,lineStyle:{color:S.palette.black[4]}}}),[S,E,d]),P=u.useMemo(()=>n.map((k,O)=>({type:"bar",name:r[O]??"",animation:v,barMaxWidth:100,data:k.map((G,R)=>{const H=s.some(([F,Y=0])=>F===R&&Y===O),q=!!s.length&&!H;return{value:G,...q&&{itemStyle:{color:S.palette.black[25]},disabled:!0}}}),...y&&{stack:"total"},...!Bn&&{emphasis:{focus:"series",itemStyle:{color:o.darken(g[O]??"#000",.25)}}}})),[v,g,r,n,s,y,S]),N=u.useMemo(()=>({grid:{left:M.length>=4?dt(String(M[0]),M.length):0,top:parseInt(S.spacing(2)),right:M.length>=4?dt(String(M[M.length-1]),M.length):0,bottom:0,containLabel:!0},axisPointer:{lineStyle:{color:S.palette.black[40]}},color:g,tooltip:C,xAxis:D,yAxis:L,series:P}),[M,S,g,C,D,L,P]),V=()=>{l&&l([],[])},_=k=>{k.key==="Enter"&&V()},B=u.useCallback(k=>{if(l){const O=[...s],{dataIndex:G,componentIndex:R}=k,H=O.findIndex(([F,Y=0])=>G===F&&R===Y);H===-1?O.push([G,R]):O.splice(H,1);const q=O.map(([F,Y=0])=>({xAxis:i[F],serie:r[Y],yAxis:n[Y][F]}));l(b?O:O.map(F=>F[0]),q)}},[n,l,s,i,r,b]),$=u.useMemo(()=>m?{click:B}:{},[m,B]);return w?t.jsx(En,{height:f}):t.jsxs("div",{children:[l&&t.jsxs(Pn,{container:!0,children:[t.jsx(j.Typography,{variant:"caption",children:s.length>0?T.formatMessage({id:"c4r.widgets.bar.selectedItems"},{items:s.length}):T.formatMessage({id:"c4r.widgets.bar.all"})}),s&&s.length>0&&t.jsx(Ln,{onClick:()=>V(),onKeyDown:_,underline:"hover",tabIndex:0,children:T.formatMessage({id:"c4r.widgets.bar.clear"})})]}),!!N&&t.jsx(ye,{option:N,lazyUpdate:!0,notMerge:!0,onEvents:$,style:{height:f}})]})}function dt(e="",n=0){return n<=15&&e.length<=8?0:e.length*8.5/6}const ue="__rest__",me="Others";var pe=(e=>(e.RANKING="ranking",e.FIXED="fixed",e))(pe||{});const Dt=o.styled(o.Grid)(({theme:e})=>({maxHeight:e.spacing(40),overflow:"auto",padding:0})),Nt=o.styled(o.Grid,{shouldForwardProp:e=>e!=="selectable"&&e!=="name"&&e!=="unselected"})(({theme:e,selectable:n,name:i,unselected:r})=>({flexDirection:"row",maxWidth:"100%",padding:e.spacing(.5,.25),margin:0,"> .MuiGrid-item":{paddingTop:0,paddingLeft:0},"&:focus-visible":{outline:"none !important",boxShadow:`inset 0 0 0 2px ${e.palette.primary.main} !important`},...r&&{color:e.palette.text.disabled,".progressbar div":{backgroundColor:e.palette.text.disabled}},...i!==ue&&n&&{cursor:"pointer",flexWrap:"nowrap","&:hover .progressbar div":{backgroundColor:e.palette.secondary.dark}},...i===ue&&{cursor:"default",".progressbar div":{backgroundColor:e.palette.text.disabled}}})),ut=o.styled(o.Grid)(({theme:{spacing:e,palette:n}})=>({flexDirection:"row",justifyContent:"space-between",alignItems:"center",marginBottom:e(1.5),paddingRight:e(1),"& .MuiTypography-caption":{color:n.text.secondary}})),Nn=o.styled(o.Grid)(({theme:e})=>({height:e.spacing(.5),width:"100%",margin:e.spacing(.5,0,.25,0),borderRadius:e.spacing(.5),backgroundColor:e.palette.action.disabledBackground,"& div":{width:0,height:"100%",borderRadius:e.spacing(.5),backgroundColor:e.palette.secondary.main,transition:`background-color ${e.transitions.easing.sharp} ${e.transitions.duration.shortest}ms,
|
|
4
4
|
width ${e.transitions.easing.sharp} ${e.transitions.duration.complex}ms`}})),On=o.styled(o.Grid,{shouldForwardProp:e=>e!=="isSelectable"})(({theme:e,isSelectable:n})=>({...n&&{width:`calc(100% - ${e.spacing(4)})`}})),$n=o.styled(j.Typography)(({theme:e})=>({fontWeight:e.typography.fontWeightBold,marginRight:e.spacing(2)})),Ae=o.styled(o.Link)(({theme:e})=>({...e.typography.caption,cursor:"pointer","& + hr":{margin:e.spacing(0,1)}})),Rn=o.styled(o.Box)(({theme:e})=>({...e.typography.body2})),pt=o.styled(o.Button)(({theme:e})=>({position:"absolute",left:"-999px",top:"-1px",width:"1px",height:"1px",display:"inline-flex","&:focus-visible":{position:"static",width:"auto",height:"auto",marginTop:e.spacing(2)}})),Fn=o.styled(o.Skeleton)(({theme:e})=>({marginTop:e.spacing(1.25),marginBottom:e.spacing(1.75)})),Wn=e=>e%2===1,Ot=()=>t.jsxs(t.Fragment,{children:[t.jsx(o.Skeleton,{width:48,height:8}),t.jsx(Dt,{container:!0,mt:3,children:[...Array(6)].map((e,n)=>t.jsxs(Nt,{container:!0,spacing:1,children:[t.jsxs(o.Grid,{container:!0,item:!0,direction:"row",justifyContent:"space-between",children:[t.jsx(o.Skeleton,{width:Wn(n)?72:48,height:8}),t.jsx(o.Skeleton,{width:48,height:8})]}),t.jsx(Fn,{height:4,width:"100%"})]},n))})]});function $t(e){const n=u.useRef();return u.useEffect(()=>{n.current=e}),n.current}function Xe({start:e,end:n,duration:i,drawFrame:r,requestRef:s}){if(e===n&&!(e===0&&n===0))return;const a=n-e;let p=e;const c=a/(i/1e3*60),g=()=>{p+=c,r(Math.floor(p)),c>0&&p<n||c<0&&p>n?s.current=requestAnimationFrame(g):r(n)};s.current=requestAnimationFrame(g)}function _n({start:e,end:n,duration:i,drawFrame:r,requestRef:s}){if(e.length===n.length&&e.every((f,m)=>f.value===n[m].value))return;let a=n.map((f,m)=>e[m]&&e[m].name===f.name?{...f,value:e[m].value}:f),p=0;const c=a.map((f,m)=>n[m].value-f.value);if(c.every(f=>f===0)){r(n);return}const h=i/1e3*60,d=c.map(f=>f/h),y=()=>{p<h?(a=a.map((f,m)=>{const v=Math.floor(f.value+d[m]),x=m>0&&Math.floor(f.value+d[m-1]);return{...f,value:v===x?n[m].value:v}}),r(a),p++,s.current=requestAnimationFrame(y)):r(n)};s.current=requestAnimationFrame(y)}const Gn=[],Hn={},zn=e=>e,Ve=()=>{},Yn=e=>e.reduce((n,i)=>n+(i.value??0),0);function Vn({data:e,formatter:n=zn,labels:i=Hn,maxItems:r=5,order:s=pe.RANKING,selectedCategories:l=Gn,onSelectedCategoriesChange:a=Ve,onMaxItemsOverflow:p=Yn,animation:c=!0,filterable:g=!0,searchable:h=!0,isLoading:d}){const y=o.useTheme(),[f,m]=u.useState([]),[v,x]=u.useState(1),[b,S]=u.useState(!1),[I,T]=u.useState(""),[w,C]=u.useState([]),[M,D]=u.useState([]),[E,L]=u.useState([]),P=u.useRef(null),N=u.useRef(),V=$t(E),_=u.useRef([]),{showSkeleton:B}=de(!!d),$=Z.useIntl(),k=j.useImperativeIntl($);function O(A){return f.reduce((z,U)=>(A.includes(U.name)&&z.push(U.name),z),[])}function G(A){if(A!==ue){let z;l.includes(A)?z=l.filter(U=>U!==A):z=[...l,A],a&&a(z)}}const R=()=>a([]),H=A=>{A.key==="Enter"&&R()},q=()=>{a([]),C([])},F=A=>{A.key==="Enter"&&q()},Y=()=>{C(O(l))},J=A=>{A.key==="Enter"&&Y()},ie=()=>{const A=O(M);a([...A]),C([...A]),D([]),S(!1),T("")},re=A=>{A.key==="Enter"&&ie()},W=()=>{T(""),S(!1)},X=A=>{if(A!==ue){let z;M.includes(A)?z=M.filter(U=>U!==A):z=[...M,A],D(z)}},K=A=>{A.currentTarget.scrollIntoView()},Q=A=>{T(A.currentTarget.value)},ge=()=>{S(!0),D([...l])},ve=u.useCallback(A=>{if(b)return I?A.filter(z=>{var se;if(!z.name)return!1;const U=String(z.name);return!!(U.toLowerCase().includes(I.toLowerCase())||(se=i[U])!=null&&se.toLowerCase().includes(I.toLowerCase()))}):A;if(w.length)return w.reduce((U,se)=>{const Ce=A.find(le=>le.name===se);return U.push({name:se,value:Ce?Ce.value:null}),U},[]);{const z=A.slice(0,r);if(z.length<A.length){const U={name:ue,value:p(A.slice(r))};return[...z,U]}else return z}},[w,i,r,I,b,p]),he=u.useCallback(()=>{const A=w.length;return A?e.length-A:e.length-r},[e,r,w]),it=u.useCallback(A=>A===ue?`Others ${h?"":`(${he()})`}`:i[String(A)]??String(A),[he,i,h]),hn=u.useCallback(A=>A>=v?A!=null?"100%":0:`${(A||0)*100/v}%`,[v]);u.useEffect(()=>{l.length===0&&C([])},[l]),u.useEffect(()=>{if(e){if(s===pe.RANKING){const A=[...e].sort((U,se)=>(se.value??0)-(U.value??0)),z=ve(A);z.length>0?x(z[0].value??0):x(1),m(z)}else if(s===pe.FIXED){x(Math.max(...e.map(z=>z.value??0)));const A=ve(e);m(A)}}},[w,ve,e,i,r,s,I,b]),u.useEffect(()=>{V&&(_.current=V)},[V]),u.useEffect(()=>{if(c)return _n({start:(_.current||[]).map(A=>({...A,value:A.value??0})),end:f.map(A=>({...A,value:A.value??0})),duration:500,drawFrame:A=>L(A),requestRef:P}),()=>{P.current&&cancelAnimationFrame(P.current)};L(f)},[c,f]),u.useEffect(()=>{b&&N.current&&N.current.focus()},[b,N]);function fn({data:A,onCategoryClick:z}){const U=n(A.value??0),[se,Ce]=u.useState(!1),le=u.useRef(null),ze=()=>{var rt,st;const Ye=(((rt=le==null?void 0:le.current)==null?void 0:rt.scrollWidth)??0)>(((st=le==null?void 0:le.current)==null?void 0:st.clientWidth)??0);Ce(Ye)};u.useEffect(()=>(ze(),window.addEventListener("resize",ze),()=>{window.removeEventListener("resize",ze)}),[]);const yn=Ye=>{Ye.key==="Enter"&&z()},vn=!b&&l.length>0&&!l.includes(A.name);return t.jsxs(Nt,{container:!0,direction:"row",spacing:1,onClick:g?z:Ve,onKeyDown:g?yn:Ve,selectable:g,unselected:vn,name:A.name===ue?ue:"",tabIndex:g?0:-1,children:[g&&b&&t.jsx(o.Grid,{item:!0,mr:1,children:t.jsx(o.Checkbox,{checked:M.includes(A.name),tabIndex:-1})}),t.jsxs(On,{container:!0,item:!0,xs:!0,isSelectable:b,children:[t.jsxs(o.Grid,{container:!0,item:!0,direction:"row",justifyContent:"space-between",wrap:"nowrap",children:[t.jsx(o.Tooltip,{title:it(A.name),disableHoverListener:!se,children:t.jsx($n,{variant:"body2",noWrap:!0,ref:le,children:it(A.name)})}),typeof U=="object"&&U!==null?t.jsxs("span",{children:[U.prefix,U.value,U.suffix]}):t.jsx("span",{children:U})]}),t.jsx(Nn,{className:"progressbar",item:!0,children:t.jsx("div",{style:{width:hn(A.value??0)}})})]})]})}if((e==null?void 0:e.length)===0||B)return t.jsx(Ot,{});const xn=({index:A,style:z})=>{const U=E[A];return U?t.jsx("div",{style:z,children:t.jsx(fn,{data:U,onCategoryClick:()=>b?X(U.name):G(U.name)})}):null},mn=()=>b?320:E.length<=r?E.length*38:w.length>0?w.length*38:(r+1)*38;return t.jsxs(Rn,{children:[g&&f.length>0&&t.jsxs(ut,{container:!0,children:[t.jsx(j.Typography,{variant:"caption",children:l.length>0?k.formatMessage({id:"c4r.widgets.category.selectedItems"},{items:l.length}):k.formatMessage({id:"c4r.widgets.category.all"})}),b?t.jsx(Ae,{onClick:ie,onKeyDown:re,underline:"hover",tabIndex:0,"data-testid":"primaryApplyButton",children:k.formatMessage({id:"c4r.widgets.category.apply"})}):w.length>0?t.jsx(Ae,{onClick:q,onKeyDown:F,underline:"hover",tabIndex:0,children:k.formatMessage({id:"c4r.widgets.category.unlock"})}):l.length>0&&t.jsxs(o.Grid,{container:!0,direction:"row",justifyContent:"flex-end",item:!0,xs:!0,children:[t.jsx(Ae,{onClick:Y,onKeyDown:J,underline:"hover",tabIndex:0,children:k.formatMessage({id:"c4r.widgets.category.lock"})}),t.jsx(o.Divider,{orientation:"vertical",flexItem:!0}),t.jsx(Ae,{onClick:R,onKeyDown:H,underline:"hover",tabIndex:0,children:k.formatMessage({id:"c4r.widgets.category.clear"})})]})]}),e.length>r&&b&&t.jsxs(ut,{container:!0,children:[t.jsx(o.TextField,{size:"small",sx:{mt:-.5},placeholder:k.formatMessage({id:"c4r.widgets.category.search"}),onChange:Q,onFocus:K,InputProps:{startAdornment:t.jsx(o.InputAdornment,{position:"start",children:t.jsx(Te.Search,{})})},inputProps:{tabIndex:0,ref:N}}),t.jsx(pt,{size:"small",onClick:W,children:k.formatMessage({id:"c4r.widgets.category.cancel"})})]}),t.jsx(Dt,{container:!0,item:!0,children:E.length?t.jsx(wn.FixedSizeList,{outerElementType:u.forwardRef((A,z)=>t.jsx("div",{ref:z,"data-testid":"category-widget-list",...A})),height:mn(),width:"100%",itemCount:E.length,itemSize:y.spacingValue*4.5,children:xn}):t.jsxs(o.Box,{children:[t.jsx(j.Typography,{variant:"body2",children:k.formatMessage({id:"c4r.widgets.category.noResults"})}),t.jsx(j.Typography,{component:"p",variant:"caption",mb:2,children:k.formatMessage({id:"c4r.widgets.category.noResultsMessage"},{searchValue:I})})]})}),b&&t.jsx(pt,{size:"small",onClick:ie,children:k.formatMessage({id:"c4r.widgets.category.apply"})}),e.length>r&&h?b?t.jsx(o.Box,{mt:1.5,children:t.jsx(o.Button,{size:"small",color:"primary",onClick:W,"data-testid":"primaryCancelButton",children:k.formatMessage({id:"c4r.widgets.category.cancel"})})}):t.jsx(o.Box,{mt:1.5,children:t.jsx(o.Button,{"data-testid":"show-all-categories-button",size:"small",color:"primary",startIcon:t.jsx(Te.Search,{}),onClick:ge,children:k.formatMessage({id:"c4r.widgets.category.searchInfo"},{elements:he()})})}):null]})}const Rt=()=>t.jsx(o.Box,{pt:.5,children:t.jsx(o.Skeleton,{height:24,width:120})}),Un=o.styled("span")(()=>({marginRight:"2px"})),qn=o.styled("span")(()=>({marginLeft:"2px"})),Ee="-",Xn=e=>e;function Kn({data:e=Ee,formatter:n=Xn,animation:i=!0,isLoading:r=!1}){const[s,l]=u.useState(Ee),a=u.useRef(null),p=$t(s),c=u.useRef(p),{showSkeleton:g}=de(!!r);u.useEffect(()=>(typeof e=="number"&&i?Xe({start:c.current||0,end:e,duration:500,drawFrame:f=>l(f),requestRef:a}):typeof e=="object"&&i&&e&&c.current&&e.value!==null&&e.value!==void 0?Xe({start:Number(c.current.value),end:Number(e.value),duration:1e3,drawFrame:f=>l({value:f,prefix:e.prefix,suffix:e.suffix}),requestRef:a}):l(e??Ee),()=>{a.current&&cancelAnimationFrame(a.current)}),[i,e,l]);const h=n(s),d=typeof h=="object"&&h!==null,y=h===Ee;return g?t.jsx(Rt,{}):d?t.jsxs(j.Typography,{variant:"h5",component:"div",weight:"medium",children:[t.jsx(Un,{children:h.prefix}),h.value,t.jsx(qn,{children:h.suffix})]}):t.jsx(j.Typography,{variant:"h5",component:"div",weight:"medium",color:y?"text.disabled":"default",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",children:h})}const gt={};let we=null;function Zn({data:e,filterable:n,selectedBars:i,onSelectedBarsChange:r,echartsInstance:s}){const l=o.useTheme(),[a,p]=u.useState([]),c=u.useMemo(()=>s==null?void 0:s.getZr(),[s]);u.useEffect(()=>{function h(y){if(s){const[f]=s.convertFromPixel({seriesIndex:0},[y.offsetX,y.offsetY]);we=f??null}}function d(y){if(s&&we!==null){const[f]=s.convertFromPixel({seriesIndex:0},[y.offsetX,y.offsetY]);p(we===f?[]:[we,f].sort((m,v)=>m-v))}}if(s&&n){const y=Ue(c,"mousedown",h),f=Ue(c,"mousemove",d);return()=>{y==null||y(),f==null||f()}}},[c,s,n]),u.useEffect(()=>{function h(){if(a.length===2&&r){const d=e.reduce((y,f,m)=>((a[0]>=f[0]&&a[0]<=f[1]||a[1]>=f[0]&&a[1]<=f[1]||a[0]<=f[0]&&a[1]>=f[1])&&y.push(m),y),[]);r(e.length===d.length?[]:d)}p([]),we=null}if(s&&n)return Ue(c,"mouseup",h)},[c,s,a,e,r,n]);const g=u.useCallback(h=>{if(r){const d=new Set(i);d.has(h.dataIndex)?d.delete(h.dataIndex):d.add(h.dataIndex),r(d.size===e.length?[]:Array.from(d))}},[r,i,e.length]);return{markAreaOptions:a.length===2&&{data:[[{coord:[a[0]]},{coord:[a[1]]}]],itemStyle:{color:l.palette.primary.main,opacity:.2}},onEvents:n?{click:g}:{}}}function Ue(e,n,i){if(e!=null&&e.handler)return gt[n]=i,e.on(n,i),()=>{gt[n]&&(e!=null&&e.handler)&&e.off(n,i)}}function Jn({height:e}){return t.jsxs(t.Fragment,{children:[t.jsx(o.Box,{mb:2,children:t.jsx(o.Skeleton,{width:48,height:8})}),t.jsxs(Lt,{style:{height:e??_e},children:[t.jsx(ne,{variant:"rectangular",height:"20%"}),t.jsx(ne,{variant:"rectangular",height:"40%"}),t.jsx(ne,{variant:"rectangular",height:"60%"}),t.jsx(ne,{variant:"rectangular",height:"20%"}),t.jsx(ne,{variant:"rectangular",height:"80%"}),t.jsx(ne,{variant:"rectangular",height:"50%"}),t.jsx(ne,{variant:"rectangular",height:"20%"}),t.jsx(ne,{variant:"rectangular",height:"40%"}),t.jsx(ne,{variant:"rectangular",height:"60%"}),t.jsx(ne,{variant:"rectangular",height:"20%"}),t.jsx(ne,{variant:"rectangular",height:"80%"}),t.jsx(ne,{variant:"rectangular",height:"50%"})]})]})}const Qn=Bt(),eo=o.styled(o.Grid)(({theme:e})=>({marginBottom:e.spacing(2),flexDirection:"row",justifyContent:"space-between",alignItems:"center","& .MuiTypography-caption":{color:e.palette.text.secondary}})),to=o.styled(o.Link)(({theme:e})=>({...e.typography.caption,cursor:"pointer"})),no=[],oo=()=>{},Oe=e=>e;function io(e,n=Oe,i=Oe){if(!e)return null;if(Array.isArray(e)&&e.length===0)return;const r=Array.isArray(e)?e[0].marker:e.marker,s=Array.isArray(e)?e[0].data:e.data;if((s==null?void 0:s.value)===void 0)return;const[l,a,p]=s.value,c=te(n(l)),g=te(n(a)),h=te(i(p)),d=`${c} <span style="vertical-align: 1px;">—</span> ${g}`,y=`<div style="margin-left: 8px; display: inline">${h}</div>`;return`${d} <div style="margin-top: 4px">${String(r)}${y}</div>`}function ro({data:e,ticks:n,min:i,max:r,xAxisFormatter:s=Oe,yAxisFormatter:l=Oe,yAxisType:a="dense",selectedBars:p=no,onSelectedBarsChange:c=oo,tooltip:g=!0,tooltipFormatter:h=io,animation:d=!0,filterable:y=!0,height:f=200,isLoading:m}){const v=Z.useIntl(),x=o.useTheme(),b=j.useImperativeIntl(v),{showSkeleton:S}=de(!!m),I=!!y&&!!c,[T,w]=u.useState(),C=k=>w(k),M=u.useMemo(()=>ao(e,n,i,r),[e,n,i,r]),{onEvents:D,markAreaOptions:E}=Zn({data:M,filterable:I,selectedBars:p,onSelectedBarsChange:c,echartsInstance:T}),L=u.useMemo(()=>({show:g,trigger:"item",padding:[j.SPACING*.5,j.SPACING],borderWidth:0,textStyle:{...x.typography.caption,fontSize:11,color:x.palette.common.white},backgroundColor:x.palette.black[90],confine:!0,position:"top",formatter(k){return h(k,s,l)}}),[x,g,h,s,l]),P=u.useMemo(()=>({min:i,max:r,interval:(r-i)/M.length,axisLine:{show:!1},splitLine:{show:!0,lineStyle:{color:x.palette.black[4]}},axisTick:{show:!1},axisLabel:{showMinLabel:!0,showMaxLabel:!0,...x.typography.overlineDelicate,hideOverlap:!0,padding:[j.SPACING*.5,j.SPACING*.5,0,j.SPACING*.5],formatter:k=>{const O=te(s(k));return k===i?so(O):k===r?lo(O):O},color:x.palette.black[60]}}),[i,r,M.length,x,s]),N=u.useMemo(()=>{const k={margin:0,verticalAlign:"bottom",padding:[0,0,j.SPACING*1.25,0],inside:!0,color:R=>{const H=Math.max(...e.map(F=>F??Number.MIN_SAFE_INTEGER))||1;let q="transparent";return R>=H&&(q=x.palette.black[60]),q},...x.typography.overlineDelicate,formatter:R=>te(l(R))},O={verticalAlign:"middle",padding:[0,0,0,j.SPACING*.5],color:x.palette.black[60]},G=a==="dense"?k:O;return{type:"value",axisLine:{show:!1},splitLine:{show:!0,lineStyle:{color:x.palette.black[4]}},axisTick:{show:!1},axisLabel:{show:!0,showMaxLabel:!0,showMinLabel:!1,...G,...x.typography.overlineDelicate,formatter:R=>te(l(R))}}},[x.palette.black,x.typography.overlineDelicate,e,l,a]),V=u.useMemo(()=>{const k=i===r&&M.filter(R=>R[2]!==0).length===1,G=(k?[M[0],M[M.length-1]]:M).map((R,H)=>{const F=p.length&&!p.includes(H)?x.palette.black[25]:x.palette.secondary.main;return{value:R,itemStyle:{color:F}}});return{type:"custom",cursor:"pointer",markArea:E,renderItem:function(R,H){const q=R.dataIndex===M.length-1,F=R.dataIndex===0,Y=G[R.dataIndex].itemStyle.color,J=H.value(0),ie=H.value(1),re=H.value(2),[W,X]=H.coord([J,re]),[K,Q]=H.size([ie-J,re]);return{type:"rect",shape:{x:k?W/10:W+(F?0:1),y:X,width:k?W-W/10:K-(q?0:1),height:Q},style:{fill:Y},...!Qn&&{emphasis:{style:{fill:o.darken(Y,.25)}}}}},encode:{x:[0,1],y:2,tooltip:[0,1,2]},data:G,animation:d}},[i,r,M,E,x.palette.black,x.palette.secondary.main,p,d]),_=u.useMemo(()=>({grid:{left:j.SPACING*.1,right:j.SPACING*.1,top:j.SPACING*2,bottom:j.SPACING*.5,containLabel:!0},tooltip:L,xAxis:P,yAxis:N,series:[V]}),[L,P,N,V]),B=p.reduce((k,O)=>k+=e[O]??0,0),$=k=>{k.key==="Enter"&&c([])};return S?t.jsx(Jn,{height:f}):t.jsxs("div",{children:[I&&t.jsxs(eo,{container:!0,children:[t.jsx(j.Typography,{variant:"caption",weight:"strong",children:p.length>0?b.formatMessage({id:"c4r.widgets.histogram.selectedItems"},{items:te(l(B))}):b.formatMessage({id:"c4r.widgets.histogram.all"})}),p.length>0&&t.jsx(to,{onClick:()=>c([]),onKeyDown:$,underline:"hover",tabIndex:0,children:b.formatMessage({id:"c4r.widgets.histogram.clear"})})]}),t.jsx(ye,{option:_,onEvents:D,lazyUpdate:!0,onChartReady:C,style:{maxHeight:f}})]})}function so(e){return`${Array(String(e).length).fill(" ").join("")}${e}`}function lo(e){const n=Array(String(e).length).fill(" ").join("");return`${e}${n}`}function ao(e,n,i,r){return e.map((s,l)=>[l===0?i:n[l-1],l===e.length-1?r:n[l],s])}function co(e,n,i,r){const s=o.useTheme(),l=u.useMemo(()=>n===pe.RANKING?e.slice().sort((c,g)=>(g.value??0)-(c.value??0)):e,[e,n]),a=u.useMemo(()=>{const c=[];let g=0;for(const h of l)c.length<i?c.push({...h}):g+=h.value??0;return g>0&&c.push({name:me,value:g,emphasis:{scale:!1}}),c},[i,l]);return u.useMemo(()=>{const c=s.palette.common.white;return a.map((g,h)=>{let d=c;if(r.length){const f=r[h%r.length];f&&(d=f)}else{const m=s.palette.qualitative.bold[h];m&&(d=m)}const y=g;return y.color=d,y})},[a,r,s])}const uo=o.styled(o.Box)(({theme:e})=>({zIndex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",paddingBottom:e.spacing(1)})),po=o.styled(o.Box)(({theme:e})=>({display:"flex",alignItems:"center",gap:e.spacing(1),maxWidth:"140px",textTransform:"uppercase"})),go=o.styled(o.Box)(({theme:e})=>({display:"inline-block",borderRadius:e.spacing(.5),width:e.spacing(1),minWidth:e.spacing(1),height:e.spacing(1)}));function ho({data:e,selectedCategories:n,formatter:i}){const[r,s]=u.useState(),l=u.useMemo(()=>{if(!e||e.length===0)return null;let g;n.length>0?g=e.filter(m=>n.includes(m.name)):g=e;const h=fo(g),d=g.find(m=>m===h);if(!d)return null;let y=0;for(const m of e)y+=m.value??0;const f=xo(d.value??0,y,i);return{...d,percentage:f}},[e,n,i]);u.useEffect(()=>{l&&s(l)},[l,s]);const{name:a,percentage:p,color:c}=r??{};return r?t.jsxs(uo,{children:[t.jsx(j.Typography,{variant:"h5",children:p}),t.jsxs(po,{children:[t.jsx(go,{bgcolor:c,component:"span"}),t.jsx(j.Typography,{component:"span",variant:"body2",noWrap:!0,children:a})]})]}):null}function fo(e){const n=e.filter(i=>i.name!==me);return n.length===0?e[0]:n.reduce((i,r)=>(r.value??0)>(i.value??0)?r:i)}function xo(e,n,i){let r=0;return n!==0&&(r=e/n*100),i?i(r):`${r}%`}const ht=32,mo=o.styled(o.Box)(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"center",marginTop:e.spacing(.5)})),yo=o.styled("div")(()=>({display:"flex",alignItems:"center",justifyContent:"center",position:"relative"})),vo=o.styled(An)(()=>({position:"absolute",zIndex:1})),jo=o.styled("div")(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"center",gap:e.spacing(1),position:"absolute",zIndex:2})),wo=o.styled(o.Box)(({theme:e})=>({display:"flex",alignItems:"center",gap:e.spacing(2),height:e.spacing(5)})),bo=o.styled("div")(({theme:e})=>({display:"flex",alignItems:"center",gap:e.spacing(1.5)}));function Ft({height:e}){const n=parseInt(String(e),10)||_e,i=n-ht,r=i-ht;return t.jsxs(o.Box,{mt:.5,children:[t.jsx(o.Skeleton,{height:8,width:64}),t.jsx(mo,{height:n,children:t.jsxs(yo,{children:[t.jsx(o.Skeleton,{variant:"circular",width:i,height:i}),t.jsx(vo,{variant:"circular",width:r,height:r}),t.jsxs(jo,{children:[t.jsx(o.Skeleton,{height:24,width:72}),t.jsx(o.Skeleton,{height:8,width:48})]})]})}),t.jsx(wo,{children:[...Array(2)].map((s,l)=>t.jsxs(bo,{children:[t.jsx(o.Skeleton,{variant:"circular",width:8,height:8}),t.jsx(o.Skeleton,{width:48,height:8})]},l))})]})}const So=o.styled(o.Box)(({theme:e})=>({position:"relative",padding:e.spacing(1.25,1,0,1),width:"100%"})),Io=o.styled(o.Box)(({theme:e})=>({position:"relative",display:"flex",flexDirection:"row",overflowX:"hidden",gap:e.spacing(2),padding:e.spacing(.5),margin:e.spacing(-.5)})),ko=o.styled(o.Box)(({theme:e})=>({display:"flex",flexDirection:"row",gap:e.spacing(1),alignItems:"center",textOverflow:"ellipsis",whiteSpace:"nowrap",cursor:"pointer"})),To=o.styled(o.Box)(({theme:e})=>({display:"inline-block",position:"absolute",left:e.spacing(-2),top:e.spacing(1),bottom:e.spacing(1),zIndex:1,width:e.spacing(2.5),background:`linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, ${e.palette.background.paper} 100%)`})),Mo=o.styled(o.Box)(({theme:e})=>({position:"absolute",padding:e.spacing(.25,1),top:e.spacing(0),right:0,background:e.palette.background.paper})),Co=o.styled(o.Box,{shouldForwardProp:e=>e!=="color"})(({theme:e,color:n})=>{const i=e.spacing(1);return{backgroundColor:n,borderRadius:"50%",width:i,height:i}});function Wt({series:e,selectedCategories:n,onCategoryClick:i}){var I,T;const r=o.useTheme(),[s,l]=u.useState(!1),[a,p]=u.useState(0),[c,g]=u.useState(void 0),h=u.useRef(null),d=u.useRef(null),y=u.useRef(null),f=Z.useIntl(),m=j.useImperativeIntl(f);function v(){p(a+1)}function x(){p(Math.max(a-1))}function b(w,C){w.key==="Enter"&&(i==null||i(C))}const S=u.useCallback(()=>{var C,M,D;const w=!!d.current&&d.current.scrollWidth>d.current.clientWidth;l(w),g(w&&d.current?(((C=h.current)==null?void 0:C.clientWidth)??0)-(((M=y.current)==null?void 0:M.clientWidth)??70):(((D=h.current)==null?void 0:D.clientWidth)??0)-12||500)},[h,d,y]);return u.useEffect(()=>{S()},[d,(I=d.current)==null?void 0:I.scrollWidth,(T=d.current)==null?void 0:T.clientWidth,S,a]),u.useEffect(()=>{if(typeof ResizeObserver>"u")return;let w;return h.current&&(w=new ResizeObserver(()=>{S()}),w.observe(h.current)),()=>{w==null||w.disconnect()}},[h,S]),t.jsxs(So,{ref:h,children:[t.jsx(Io,{ref:d,style:{maxWidth:`${c}px`},children:e.map((w,C)=>{if(C<a)return null;const M=n.length===0||n.includes(w.name);return t.jsxs(ko,{tabIndex:0,onClick:i?()=>i(w.name):void 0,onKeyDown:i?D=>b(D,w.name):void 0,style:{pointerEvents:!i||w.name==="Others"?"none":void 0},children:[t.jsx(Co,{color:M?w.color:r.palette.text.disabled}),t.jsx(j.Typography,{variant:"overline",color:M?void 0:"text.disabled",children:w.name})]},C)})}),(s||a>0)&&t.jsxs(Mo,{ref:y,children:[t.jsx(To,{}),t.jsx(o.Tooltip,{title:m.formatMessage({id:"c4r.widgets.chartLegend.next"}),children:t.jsx(o.IconButton,{size:"small",disabled:a===0,onClick:x,children:t.jsx(ee.ChevronLeft,{})})}),t.jsx(o.Tooltip,{title:m.formatMessage({id:"c4r.widgets.chartLegend.prev"}),children:t.jsx(o.IconButton,{size:"small",disabled:!s,onClick:v,children:t.jsx(ee.ChevronRight,{})})})]})]})}const Ke="232px",Ao=o.styled(o.Grid)(({theme:e})=>({flexDirection:"row",justifyContent:"space-between",alignItems:"center",marginBottom:e.spacing(.5)})),Eo=o.styled(o.Box,{shouldForwardProp:e=>e!=="height"&&e!=="width"})(({height:e,width:n})=>({position:"relative",margin:"0 auto",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",width:n||"100%",height:e||"100%"})),Bo=o.styled(ye)(()=>({position:"absolute",top:0,right:0,left:0,bottom:0})),ft=[],Po={},Lo=e=>e;function Do({name:e,data:n,formatter:i=Lo,tooltipFormatter:r=No,percentFormatter:s,height:l=Ke,width:a=Ke,labels:p=Po,colors:c=ft,animation:g=!0,filterable:h=!0,selectedCategories:d=ft,onSelectedCategoriesChange:y,isLoading:f,maxItems:m=11,order:v=pe.RANKING}){const x=o.useTheme(),b=co(n,v,m,c),{showSkeleton:S}=de(!!f),I=Z.useIntl(),T=j.useImperativeIntl(I),w=u.useMemo(()=>s||(_=>`${I.formatNumber(_,{maximumFractionDigits:2,minimumFractionDigits:2})}%`),[I,s]),C=u.useMemo(()=>{let _;return r&&(_=B=>r(B,i,w)),{padding:[j.SPACING*.5,j.SPACING],backgroundColor:x.palette.black[90],borderColor:"transparent",textStyle:{color:x.palette.common.white},confine:!0,formatter:_}},[x.palette.black,x.palette.common.white,r,i,w]),M=u.useMemo(()=>[{type:"pie",name:e,animation:g,data:b.map(_=>{const B={..._},$=(d==null?void 0:d.length)&&!d.includes(B.name);return p!=null&&p[B.name]&&(B.name=p[B.name]),$?{...B,disabled:!0,itemStyle:{color:x.palette.black[25]}}:{...B,itemStyle:{color:B.color}}}),radius:["74%","90%"],selectedOffset:0,bottom:j.SPACING*1.5,label:{show:!1},emphasis:{focus:"series",scaleSize:5},itemStyle:{borderColor:x.palette.background.paper,borderWidth:1}}],[e,g,b,p,d,x]),D=u.useMemo(()=>({grid:{left:0,top:0,right:0,bottom:0},tooltip:C,legend:{show:!1},series:M}),[C,M]),E=u.useCallback(_=>{if(y){const B=[...d],{name:$}=b[_.dataIndex];if($===me)return;const k=B.indexOf($);k===-1?B.push($):B.splice(k,1),y(B)}},[b,y,d]),L=u.useCallback(_=>{if(y){const B=[...d],$=B.indexOf(_);$===-1?B.push(_):B.splice($,1),y(B)}},[y,d]),P={...h&&{click:E}},N=()=>{y==null||y([])},V=_=>{_.key==="Enter"&&N()};return S?t.jsx(Ft,{height:l}):t.jsxs(t.Fragment,{children:[h&&t.jsxs(Ao,{container:!0,children:[t.jsx(j.Typography,{variant:"caption",color:"textSecondary",children:d.length?T.formatMessage({id:"c4r.widgets.pie.selectedItems"},{items:d.length}):T.formatMessage({id:"c4r.widgets.pie.allSelected"})}),d.length>0&&t.jsx(o.Link,{variant:"caption",onClick:N,onKeyDown:V,tabIndex:0,children:T.formatMessage({id:"c4r.widgets.pie.clear"})})]}),t.jsxs(Eo,{height:l,width:a,children:[t.jsx(ho,{data:b,selectedCategories:d,formatter:w}),t.jsx(Bo,{option:D,onEvents:P,lazyUpdate:!0,style:{height:l,width:a}})]}),b.length>0&&t.jsx(Wt,{series:b,selectedCategories:d,onCategoryClick:y&&L})]})}function No(e,n,i){var c;const r=Array.isArray(e)?e[0]:e;if(!r)return null;const s=te(n(r.value)),l=i(r.percent)||`${r.percent}%`,p=`display:inline-block;border-radius:4px;width:8px;height:8px;background-color:${((c=r.data)==null?void 0:c.color)||r.textStyle.color}`;return`
|