@carto/meridian-ds 0.1.1-alpha.4 → 0.1.1-alpha.6

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.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("@mui/material"),l=require("react/jsx-runtime"),s=require("@mui/material/styles"),t=require("../TablePaginationActions-B7ycFqaM.cjs"),N=require("@mui/icons-material/Cancel"),b=require("../arrow-drop-icon-XN9k9ZtW.cjs"),e=require("../paletteUtils-DLQVT9qo.cjs"),W=require("@mui/icons-material/CheckCircleOutlined"),Z=require("@mui/icons-material"),T=1,d=.5,g=T+d,H="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",f="50%",I=.5,U={MuiDivider:{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(d),"&.MuiTooltip-tooltipArrow":{marginBottom:o.spacing(g)}},'.MuiTooltip-popper[data-popper-placement*="right"] &':{marginLeft:o.spacing(d),"&.MuiTooltip-tooltipArrow":{marginLeft:o.spacing(g)}},'.MuiTooltip-popper[data-popper-placement*="bottom"] &':{marginTop:o.spacing(d),"&.MuiTooltip-tooltipArrow":{marginTop:o.spacing(g)}},'.MuiTooltip-popper[data-popper-placement*="left"] &':{marginRight:o.spacing(d),"&.MuiTooltip-tooltipArrow":{marginRight:o.spacing(g)}}}),arrow:({theme:o})=>({height:o.spacing(T),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:M})=>l.jsxs(l.Fragment,{children:[l.jsx(t.Typography,{component:"span",variant:"inherit",weight:"strong",color:"textPrimary",children:`${o}-${i}`}),` of ${M}`]}),ActionsComponent:t.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:t.ICON_SIZE_LARGE,minWidth:t.ICON_SIZE_LARGE,height:t.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:t.ICON_SIZE_LARGE,minWidth:t.ICON_SIZE_LARGE,height:t.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:t.ICON_SIZE_MEDIUM,minWidth:t.ICON_SIZE_MEDIUM,height:t.ICON_SIZE_MEDIUM},"& .MuiAvatar-root":{width:t.ICON_SIZE_MEDIUM,minWidth:t.ICON_SIZE_MEDIUM,height:t.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:t.ICON_SIZE_MEDIUM,height:t.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('${H}') !important`}}}),img:({theme:o})=>({boxShadow:`0 0 0 1px ${o.palette.default.outlinedBorder}`}),circular:()=>({borderRadius:f,"& img":{borderRadius:f}}),rounded:({theme:o})=>({borderRadius:o.spacing(I),"& img":{borderRadius:o.spacing(I)}})}},MuiSkeleton:{defaultProps:{animation:"wave"}},MuiTypography:{defaultProps:{color:"textPrimary"}},MuiSvgIcon:{styleOverrides:{root:()=>({fontSize:t.ICON_SIZE_MEDIUM}),fontSizeSmall:()=>({fontSize:t.ICON_SIZE_SMALL}),fontSizeLarge:()=>({fontSize:t.ICON_SIZE_LARGE})}}},C=t.getSpacing(2),n=t.getSpacing(3),a=t.getSpacing(4),p=t.getSpacing(6),h=t.getSpacing(.5),F={MuiButtonBase:{defaultProps:{disableRipple:!0},styleOverrides:{root:()=>({"& .MuiSvgIcon-root, & svg":{display:"flex",fontSize:t.ICON_SIZE_MEDIUM,width:t.ICON_SIZE_MEDIUM,minWidth:t.ICON_SIZE_MEDIUM,height:t.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:t.ICON_SIZE_MEDIUM,width:t.ICON_SIZE_MEDIUM,minWidth:t.ICON_SIZE_MEDIUM,height:t.ICON_SIZE_MEDIUM},"&.MuiButton-iconSizeSmall":{marginRight:o.spacing(.5),marginLeft:o.spacing(-.5)}}),endIcon:({theme:o})=>({marginLeft:o.spacing(.75),"& .MuiSvgIcon-root, & svg":{fontSize:t.ICON_SIZE_MEDIUM,width:t.ICON_SIZE_MEDIUM,minWidth:t.ICON_SIZE_MEDIUM,height:t.ICON_SIZE_MEDIUM},"&.MuiButton-iconSizeSmall":{marginLeft:o.spacing(.5),marginRight:o.spacing(-.5)}}),sizeSmall:({theme:o,ownerState:i})=>({height:n,padding:o.spacing(0,1.5),...o.typography.caption,lineHeight:n,fontWeight:500,letterSpacing:"0.4px",...i.variant==="text"&&{padding:o.spacing(0,1)}}),sizeMedium:({theme:o,ownerState:i})=>({height:a,padding:o.spacing(0,2),lineHeight:a,...i.variant==="text"&&{padding:o.spacing(0,1)}}),sizeLarge:({theme:o,ownerState:i})=>({height:p,padding:o.spacing(0,2.5),...o.typography.body1,lineHeight:p,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}}}},...o.color==="primary"&&{"& .MuiButtonGroup-grouped:not(:last-of-type)":{"&.Mui-disabled":{borderColor:i.palette.primary.dark}}},...o.color==="secondary"&&{"& .MuiButtonGroup-grouped:not(:last-of-type)":{"&.Mui-disabled":{borderColor:i.palette.secondary.dark}}}}})}},MuiIconButton:{styleOverrides:{root:({ownerState:o,theme:i})=>({borderRadius:i.spacing(.5),...o.color==="default"&&{color:i.palette.text.secondary},"& .MuiSvgIcon-root, & svg":{fontSize:t.ICON_SIZE_MEDIUM,width:t.ICON_SIZE_MEDIUM,minWidth:t.ICON_SIZE_MEDIUM,height:t.ICON_SIZE_MEDIUM},"& svg:not(.doNotFillIcon) path":{fill:"currentColor"},"&: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}}}),sizeSmall:()=>({width:n,height:n}),sizeMedium:()=>({width:a,height:a}),sizeLarge:()=>({width:p,height:p})},variants:[{props:{size:"xsmall"},style:()=>({width:C,height:C,"& .MuiSvgIcon-root, & svg":{fontSize:t.ICON_SIZE_SMALL,width:t.ICON_SIZE_SMALL,minWidth:t.ICON_SIZE_SMALL,height:t.ICON_SIZE_SMALL}})}]},MuiToggleButton:{styleOverrides:{root:({theme:o})=>({minWidth:a,height:a,padding:o.spacing(0,1),color:o.palette.text.secondary,border:"none",borderRadius:h,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:p,height:p,...o.typography.body1}),sizeSmall:({theme:o})=>({minWidth:n,height:n,...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:h},".MuiDivider-root":{"&.MuiDivider-vertical":{height:p,margin:o.spacing(0,1),marginLeft:o.spacing(.5)},"&.MuiDivider-horizontal":{width:p,margin:o.spacing(1,0),marginTop:o.spacing(.5)}},".MuiToggleButton-sizeSmall":{"& + .MuiDivider-root.MuiDivider-vertical":{height:a},"& + .MuiDivider-root.MuiDivider-horizontal":{width:a}}}),groupedHorizontal:({theme:o})=>({height:a,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:n,margin:o.spacing(.5),"&:not(:first-of-type)":{marginLeft:0}}}),groupedVertical:({theme:o})=>({width:a,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:n,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:t.ICON_SIZE_LARGE,width:t.ICON_SIZE_LARGE,minWidth:t.ICON_SIZE_LARGE,height:t.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:t.ICON_SIZE_MEDIUM,width:t.ICON_SIZE_MEDIUM,minWidth:t.ICON_SIZE_MEDIUM,height:t.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}})}}},c=2.25,u=3,S=2,v=3,k=4,m={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(u),width:i.spacing(u),minWidth:i.spacing(u),height:i.spacing(u),...o.size==="small"&&{fontSize:i.spacing(c),width:i.spacing(c),minWidth:i.spacing(c),height:i.spacing(c)}}})},O={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}}})},G={MuiCheckbox:{defaultProps:{size:"small"},styleOverrides:{...m}},MuiRadio:{defaultProps:{size:"small"},styleOverrides:{...m}},MuiTextField:{defaultProps:{fullWidth:!0,size:"small",InputLabelProps:{shrink:!0},SelectProps:{IconComponent:b.ArrowDropIcon,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:t.ICON_SIZE_MEDIUM,width:t.ICON_SIZE_MEDIUM,minWidth:t.ICON_SIZE_MEDIUM,height:t.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:{...O}},MuiFormLabel:{styleOverrides:{...O}},MuiSelect:{defaultProps:{IconComponent:b.ArrowDropIcon,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:l.jsx(b.ArrowDropIcon,{}),clearIcon:l.jsx(N,{"data-testid":"cancel-icon-autocomplete"}),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)}}}),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:t.ICON_SIZE_MEDIUM,height:t.ICON_SIZE_MEDIUM,cursor:"text","&: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","&:hover":{backgroundColor:i.palette.action.hover},'&[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},"&.Mui-focused:hover":{backgroundColor:i.palette.action.hover}},"&: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(v),height:o.spacing(S),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(k),height:i.spacing(k),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(v),height:o.spacing(S),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}`}})}}},$={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:()=>({"& .MuiSvgIcon-root":{fontSize:t.ICON_SIZE_LARGE},".MuiMenuItem-root.MuiButtonBase-root &":{minWidth:t.ICON_SIZE_MEDIUM}})}},MuiListItemAvatar:{styleOverrides:{root:({theme:o})=>({"& .MuiAvatar-root":{height:o.spacing(4),width:o.spacing(4)},"& .MuiSvgIcon-root":{fontSize:t.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:t.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"})}}};function r(o){return .0625*o+"rem"}const x={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:r(96),lineHeight:1.167,letterSpacing:"-1.5px"},h2:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:r(60),lineHeight:1.2,letterSpacing:"-0.5px"},h3:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:r(48),lineHeight:1.167,letterSpacing:0},h4:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:r(32),lineHeight:1.25,letterSpacing:"0.15px"},h5:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:r(24),lineHeight:1.167,letterSpacing:"0.15px"},h6:{fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:r(18),lineHeight:1.333,letterSpacing:"0.15px"},subtitle1:{fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:r(16),lineHeight:1.5,letterSpacing:"0.15px"},subtitle2:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:r(13),lineHeight:1.538,letterSpacing:"0.1px"},body1:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:r(16),lineHeight:1.5,letterSpacing:"0.4px"},body2:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:r(13),lineHeight:1.538,letterSpacing:"0.25px"},button:{fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:r(13),lineHeight:1.538,letterSpacing:"0.25px",textTransform:"inherit"},caption:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:r(11),lineHeight:1.454,letterSpacing:"0.2px"},overline:{fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:r(10),lineHeight:1.2,letterSpacing:"1.2px",textTransform:"uppercase"}},j={captionMedium:{...x.caption,fontWeight:500,letterSpacing:"0.4px"},overlineDelicate:{...x.overline,fontWeight:400,letterSpacing:"1.2px"},code1:{fontFamily:'"Overpass Mono", monospace',fontWeight:400,fontSize:r(16),lineHeight:1.5,letterSpacing:0,fontVariantLigatures:"no-common-ligatures"},code2:{fontFamily:'"Overpass Mono", monospace',fontWeight:400,fontSize:r(14),lineHeight:1.428,letterSpacing:0,fontVariantLigatures:"no-common-ligatures"},code3:{fontFamily:'"Overpass Mono", monospace',fontWeight:400,fontSize:r(12),lineHeight:1.333,letterSpacing:0,fontVariantLigatures:"no-common-ligatures"}},P={...x,...j};var E,B,w,_,z,R,A,L;const q={"*:focus-visible":{outline:`2px solid ${(E=e.commonPalette.primary)==null?void 0:E.main} !important`,boxShadow:`0 0 0 4px ${(B=e.commonPalette.primary)==null?void 0:B.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:(w=e.commonPalette.action)==null?void 0:w.focus,outline:"none"},'input[type="search"]::-webkit-search-cancel-button':{WebkitAppearance:"none",appearance:"none",height:t.getSpacing(2),width:t.getSpacing(2),display:"block",backgroundImage:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAn0lEQVR42u3UMQrDMBBEUZ9WfQqDmm22EaTyjRMHAlM5K+Y7lb0wnUZPIKHlnutOa+25Z4D++MRBX98MD1V/trSppLKHqj9TTBWKcoUqffbUcbBBEhTjBOV4ja4l4OIAZThEOV6jHO8ARXD+gPPvKMABinGOrnu6gTNUawrcQKNCAQ7QeTxORzle3+sDfjJpPCqhJh7GixZq4rHcc9l5A9qZ+WeBhgEuAAAAAElFTkSuQmCC)",backgroundRepeat:"no-repeat",backgroundSize:t.getSpacing(2)},".mapboxgl-ctrl.mapboxgl-ctrl-attrib":{padding:t.getSpacing(0,1),borderRadius:t.getSpacing(.5,0,0,0),"& .mapboxgl-ctrl-attrib-inner":{...P.overline,textTransform:"none",letterSpacing:"0.75px","& a":{color:(_=e.commonPalette.primary)==null?void 0:_.main}},"&.mapboxgl-compact":{backgroundColor:"transparent",right:t.getSpacing(.5),bottom:t.getSpacing(2.5),"@media (max-width: 600px)":{bottom:t.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='${(z=e.commonPalette.text)==null?void 0:z.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:t.getSpacing(.5,1),borderRadius:t.getSpacing(1.5),marginRight:t.getSpacing(2.5),color:(R=e.commonPalette.text)==null?void 0:R.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:(A=e.commonPalette.common)==null?void 0:A.black,"&:not(:disabled):hover":{backgroundColor:(L=e.commonPalette.common)==null?void 0:L.black}}}}}},K={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:l.jsx(W,{})}},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:t.ICON_SIZE_MEDIUM,height:t.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"})}}},V={MuiAppBar:{styleOverrides:{root:({theme:o})=>({flexDirection:"row",alignItems:"center",justifyContent:"space-between",height:t.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:t.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:l.jsx(Z.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)})}}},Q=["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)"],D={themeName:"CARTO",breakpoints:{keys:["xs","sm","md","lg","xl"],values:{xs:t.BREAKPOINTS.XS,sm:t.BREAKPOINTS.SM,md:t.BREAKPOINTS.MD,lg:t.BREAKPOINTS.LG,xl:t.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:e.commonPalette,shadows:Q,typography:P,spacingValue:t.SPACING,spacing:t.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:{...q}},...F,...G,...$,...U,...K,...V}},X=y.responsiveFontSizes(y.createTheme(D));exports.APPBAR_SIZE=t.APPBAR_SIZE;exports.BREAKPOINTS=t.BREAKPOINTS;exports.ICON_SIZE_LARGE=t.ICON_SIZE_LARGE;exports.ICON_SIZE_MEDIUM=t.ICON_SIZE_MEDIUM;exports.ICON_SIZE_SMALL=t.ICON_SIZE_SMALL;exports.SPACING=t.SPACING;exports.getSpacing=t.getSpacing;exports.getCartoColorStylePropsForItem=e.getCartoColorStylePropsForItem;exports.cartoThemeOptions=D;exports.theme=X;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("@mui/material"),l=require("react/jsx-runtime"),s=require("@mui/material/styles"),t=require("../TablePaginationActions-5u10SobX.cjs"),N=require("@mui/icons-material/Cancel"),b=require("../arrow-drop-icon-XN9k9ZtW.cjs"),e=require("../paletteUtils-DLQVT9qo.cjs"),W=require("@mui/icons-material/CheckCircleOutlined"),Z=require("@mui/icons-material"),T=1,d=.5,g=T+d,H="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",f="50%",I=.5,U={MuiDivider:{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(d),"&.MuiTooltip-tooltipArrow":{marginBottom:o.spacing(g)}},'.MuiTooltip-popper[data-popper-placement*="right"] &':{marginLeft:o.spacing(d),"&.MuiTooltip-tooltipArrow":{marginLeft:o.spacing(g)}},'.MuiTooltip-popper[data-popper-placement*="bottom"] &':{marginTop:o.spacing(d),"&.MuiTooltip-tooltipArrow":{marginTop:o.spacing(g)}},'.MuiTooltip-popper[data-popper-placement*="left"] &':{marginRight:o.spacing(d),"&.MuiTooltip-tooltipArrow":{marginRight:o.spacing(g)}}}),arrow:({theme:o})=>({height:o.spacing(T),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:M})=>l.jsxs(l.Fragment,{children:[l.jsx(t.Typography,{component:"span",variant:"inherit",weight:"strong",color:"textPrimary",children:`${o}-${i}`}),` of ${M}`]}),ActionsComponent:t.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:t.ICON_SIZE_LARGE,minWidth:t.ICON_SIZE_LARGE,height:t.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:t.ICON_SIZE_LARGE,minWidth:t.ICON_SIZE_LARGE,height:t.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:t.ICON_SIZE_MEDIUM,minWidth:t.ICON_SIZE_MEDIUM,height:t.ICON_SIZE_MEDIUM},"& .MuiAvatar-root":{width:t.ICON_SIZE_MEDIUM,minWidth:t.ICON_SIZE_MEDIUM,height:t.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:t.ICON_SIZE_MEDIUM,height:t.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('${H}') !important`}}}),img:({theme:o})=>({boxShadow:`0 0 0 1px ${o.palette.default.outlinedBorder}`}),circular:()=>({borderRadius:f,"& img":{borderRadius:f}}),rounded:({theme:o})=>({borderRadius:o.spacing(I),"& img":{borderRadius:o.spacing(I)}})}},MuiSkeleton:{defaultProps:{animation:"wave"}},MuiTypography:{defaultProps:{color:"textPrimary"}},MuiSvgIcon:{styleOverrides:{root:()=>({fontSize:t.ICON_SIZE_MEDIUM}),fontSizeSmall:()=>({fontSize:t.ICON_SIZE_SMALL}),fontSizeLarge:()=>({fontSize:t.ICON_SIZE_LARGE})}}},h=t.getSpacing(2),n=t.getSpacing(3),a=t.getSpacing(4),p=t.getSpacing(6),C=t.getSpacing(.5),F={MuiButtonBase:{defaultProps:{disableRipple:!0},styleOverrides:{root:()=>({"& .MuiSvgIcon-root, & svg":{display:"flex",fontSize:t.ICON_SIZE_MEDIUM,width:t.ICON_SIZE_MEDIUM,minWidth:t.ICON_SIZE_MEDIUM,height:t.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:t.ICON_SIZE_MEDIUM,width:t.ICON_SIZE_MEDIUM,minWidth:t.ICON_SIZE_MEDIUM,height:t.ICON_SIZE_MEDIUM},"&.MuiButton-iconSizeSmall":{marginRight:o.spacing(.5),marginLeft:o.spacing(-.5)}}),endIcon:({theme:o})=>({marginLeft:o.spacing(.75),"& .MuiSvgIcon-root, & svg":{fontSize:t.ICON_SIZE_MEDIUM,width:t.ICON_SIZE_MEDIUM,minWidth:t.ICON_SIZE_MEDIUM,height:t.ICON_SIZE_MEDIUM},"&.MuiButton-iconSizeSmall":{marginLeft:o.spacing(.5),marginRight:o.spacing(-.5)}}),sizeSmall:({theme:o,ownerState:i})=>({height:n,padding:o.spacing(0,1.5),...o.typography.caption,lineHeight:n,fontWeight:500,letterSpacing:"0.4px",...i.variant==="text"&&{padding:o.spacing(0,1)}}),sizeMedium:({theme:o,ownerState:i})=>({height:a,padding:o.spacing(0,2),lineHeight:a,...i.variant==="text"&&{padding:o.spacing(0,1)}}),sizeLarge:({theme:o,ownerState:i})=>({height:p,padding:o.spacing(0,2.5),...o.typography.body1,lineHeight:p,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})=>({borderRadius:i.spacing(.5),...o.color==="default"&&{color:i.palette.text.secondary},"& .MuiSvgIcon-root, & svg":{fontSize:t.ICON_SIZE_MEDIUM,width:t.ICON_SIZE_MEDIUM,minWidth:t.ICON_SIZE_MEDIUM,height:t.ICON_SIZE_MEDIUM},"& svg:not(.doNotFillIcon) path":{fill:"currentColor"},"&: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}}}),sizeSmall:()=>({width:n,height:n}),sizeMedium:()=>({width:a,height:a}),sizeLarge:()=>({width:p,height:p})},variants:[{props:{size:"xsmall"},style:()=>({width:h,height:h,"& .MuiSvgIcon-root, & svg":{fontSize:t.ICON_SIZE_SMALL,width:t.ICON_SIZE_SMALL,minWidth:t.ICON_SIZE_SMALL,height:t.ICON_SIZE_SMALL}})}]},MuiToggleButton:{styleOverrides:{root:({theme:o})=>({minWidth:a,height:a,padding:o.spacing(0,1),color:o.palette.text.secondary,border:"none",borderRadius:C,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:p,height:p,...o.typography.body1}),sizeSmall:({theme:o})=>({minWidth:n,height:n,...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:C},".MuiDivider-root":{"&.MuiDivider-vertical":{height:p,margin:o.spacing(0,1),marginLeft:o.spacing(.5)},"&.MuiDivider-horizontal":{width:p,margin:o.spacing(1,0),marginTop:o.spacing(.5)}},".MuiToggleButton-sizeSmall":{"& + .MuiDivider-root.MuiDivider-vertical":{height:a},"& + .MuiDivider-root.MuiDivider-horizontal":{width:a}}}),groupedHorizontal:({theme:o})=>({height:a,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:n,margin:o.spacing(.5),"&:not(:first-of-type)":{marginLeft:0}}}),groupedVertical:({theme:o})=>({width:a,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:n,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:t.ICON_SIZE_LARGE,width:t.ICON_SIZE_LARGE,minWidth:t.ICON_SIZE_LARGE,height:t.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:t.ICON_SIZE_MEDIUM,width:t.ICON_SIZE_MEDIUM,minWidth:t.ICON_SIZE_MEDIUM,height:t.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}})}}},c=2.25,u=3,S=2,v=3,k=4,m={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(u),width:i.spacing(u),minWidth:i.spacing(u),height:i.spacing(u),...o.size==="small"&&{fontSize:i.spacing(c),width:i.spacing(c),minWidth:i.spacing(c),height:i.spacing(c)}}})},O={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}}})},G={MuiCheckbox:{defaultProps:{size:"small"},styleOverrides:{...m}},MuiRadio:{defaultProps:{size:"small"},styleOverrides:{...m}},MuiTextField:{defaultProps:{fullWidth:!0,size:"small",InputLabelProps:{shrink:!0},SelectProps:{IconComponent:b.ArrowDropIcon,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:t.ICON_SIZE_MEDIUM,width:t.ICON_SIZE_MEDIUM,minWidth:t.ICON_SIZE_MEDIUM,height:t.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:{...O}},MuiFormLabel:{styleOverrides:{...O}},MuiSelect:{defaultProps:{IconComponent:b.ArrowDropIcon,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:l.jsx(b.ArrowDropIcon,{}),clearIcon:l.jsx(N,{"data-testid":"cancel-icon-autocomplete"}),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)}}}),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:t.ICON_SIZE_MEDIUM,height:t.ICON_SIZE_MEDIUM,cursor:"text","&: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","&:hover":{backgroundColor:i.palette.action.hover},'&[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},"&.Mui-focused:hover":{backgroundColor:i.palette.action.hover}},"&: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(v),height:o.spacing(S),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(k),height:i.spacing(k),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(v),height:o.spacing(S),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}`}})}}},$={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:()=>({"& .MuiSvgIcon-root":{fontSize:t.ICON_SIZE_LARGE},".MuiMenuItem-root.MuiButtonBase-root &":{minWidth:t.ICON_SIZE_MEDIUM}})}},MuiListItemAvatar:{styleOverrides:{root:({theme:o})=>({"& .MuiAvatar-root":{height:o.spacing(4),width:o.spacing(4)},"& .MuiSvgIcon-root":{fontSize:t.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:t.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"})}}};function r(o){return .0625*o+"rem"}const x={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:r(96),lineHeight:1.167,letterSpacing:"-1.5px"},h2:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:r(60),lineHeight:1.2,letterSpacing:"-0.5px"},h3:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:r(48),lineHeight:1.167,letterSpacing:0},h4:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:r(32),lineHeight:1.25,letterSpacing:"0.15px"},h5:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:r(24),lineHeight:1.167,letterSpacing:"0.15px"},h6:{fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:r(18),lineHeight:1.333,letterSpacing:"0.15px"},subtitle1:{fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:r(16),lineHeight:1.5,letterSpacing:"0.15px"},subtitle2:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:r(13),lineHeight:1.538,letterSpacing:"0.1px"},body1:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:r(16),lineHeight:1.5,letterSpacing:"0.4px"},body2:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:r(13),lineHeight:1.538,letterSpacing:"0.25px"},button:{fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:r(13),lineHeight:1.538,letterSpacing:"0.25px",textTransform:"inherit"},caption:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:r(11),lineHeight:1.454,letterSpacing:"0.2px"},overline:{fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:r(10),lineHeight:1.2,letterSpacing:"1.2px",textTransform:"uppercase"}},j={captionMedium:{...x.caption,fontWeight:500,letterSpacing:"0.4px"},overlineDelicate:{...x.overline,fontWeight:400,letterSpacing:"1.2px"},code1:{fontFamily:'"Overpass Mono", monospace',fontWeight:400,fontSize:r(16),lineHeight:1.5,letterSpacing:0,fontVariantLigatures:"no-common-ligatures"},code2:{fontFamily:'"Overpass Mono", monospace',fontWeight:400,fontSize:r(14),lineHeight:1.428,letterSpacing:0,fontVariantLigatures:"no-common-ligatures"},code3:{fontFamily:'"Overpass Mono", monospace',fontWeight:400,fontSize:r(12),lineHeight:1.333,letterSpacing:0,fontVariantLigatures:"no-common-ligatures"}},P={...x,...j};var E,w,B,_,z,R,A,L;const q={"*:focus-visible":{outline:`2px solid ${(E=e.commonPalette.primary)==null?void 0:E.main} !important`,boxShadow:`0 0 0 4px ${(w=e.commonPalette.primary)==null?void 0:w.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:(B=e.commonPalette.action)==null?void 0:B.focus,outline:"none"},'input[type="search"]::-webkit-search-cancel-button':{WebkitAppearance:"none",appearance:"none",height:t.getSpacing(2),width:t.getSpacing(2),display:"block",backgroundImage:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAn0lEQVR42u3UMQrDMBBEUZ9WfQqDmm22EaTyjRMHAlM5K+Y7lb0wnUZPIKHlnutOa+25Z4D++MRBX98MD1V/trSppLKHqj9TTBWKcoUqffbUcbBBEhTjBOV4ja4l4OIAZThEOV6jHO8ARXD+gPPvKMABinGOrnu6gTNUawrcQKNCAQ7QeTxORzle3+sDfjJpPCqhJh7GixZq4rHcc9l5A9qZ+WeBhgEuAAAAAElFTkSuQmCC)",backgroundRepeat:"no-repeat",backgroundSize:t.getSpacing(2)},".mapboxgl-ctrl.mapboxgl-ctrl-attrib":{padding:t.getSpacing(0,1),borderRadius:t.getSpacing(.5,0,0,0),"& .mapboxgl-ctrl-attrib-inner":{...P.overline,textTransform:"none",letterSpacing:"0.75px","& a":{color:(_=e.commonPalette.primary)==null?void 0:_.main}},"&.mapboxgl-compact":{backgroundColor:"transparent",right:t.getSpacing(.5),bottom:t.getSpacing(2.5),"@media (max-width: 600px)":{bottom:t.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='${(z=e.commonPalette.text)==null?void 0:z.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:t.getSpacing(.5,1),borderRadius:t.getSpacing(1.5),marginRight:t.getSpacing(2.5),color:(R=e.commonPalette.text)==null?void 0:R.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:(A=e.commonPalette.common)==null?void 0:A.black,"&:not(:disabled):hover":{backgroundColor:(L=e.commonPalette.common)==null?void 0:L.black}}}}}},K={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:l.jsx(W,{})}},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:t.ICON_SIZE_MEDIUM,height:t.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"})}}},V={MuiAppBar:{styleOverrides:{root:({theme:o})=>({flexDirection:"row",alignItems:"center",justifyContent:"space-between",height:t.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:t.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:l.jsx(Z.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)})}}},Q=["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)"],D={themeName:"CARTO",breakpoints:{keys:["xs","sm","md","lg","xl"],values:{xs:t.BREAKPOINTS.XS,sm:t.BREAKPOINTS.SM,md:t.BREAKPOINTS.MD,lg:t.BREAKPOINTS.LG,xl:t.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:e.commonPalette,shadows:Q,typography:P,spacingValue:t.SPACING,spacing:t.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:{...q}},...F,...G,...$,...U,...K,...V}},X=y.responsiveFontSizes(y.createTheme(D));exports.APPBAR_SIZE=t.APPBAR_SIZE;exports.BREAKPOINTS=t.BREAKPOINTS;exports.ICON_SIZE_LARGE=t.ICON_SIZE_LARGE;exports.ICON_SIZE_MEDIUM=t.ICON_SIZE_MEDIUM;exports.ICON_SIZE_SMALL=t.ICON_SIZE_SMALL;exports.SPACING=t.SPACING;exports.getSpacing=t.getSpacing;exports.getCartoColorStylePropsForItem=e.getCartoColorStylePropsForItem;exports.cartoThemeOptions=D;exports.theme=X;
@@ -1,7 +1,7 @@
1
1
  import { responsiveFontSizes as N, createTheme as V } from "@mui/material";
2
2
  import { jsxs as j, Fragment as Z, jsx as u } from "react/jsx-runtime";
3
3
  import { alpha as b } from "@mui/material/styles";
4
- import { T as K, a as U, I as n, b as r, c as g, g as a, A as C, B as s, S as k } from "../TablePaginationActions-OJyfVTms.js";
4
+ import { T as K, a as U, I as n, b as r, c as g, g as a, A as C, B as s, S as k } from "../TablePaginationActions-C9YCSB32.js";
5
5
  import q from "@mui/icons-material/Cancel";
6
6
  import { A as f } from "../arrow-drop-icon-Dau5xh-6.js";
7
7
  import { c as p } from "../paletteUtils-BEwZhrLg.js";
@@ -753,20 +753,6 @@ const $ = 1, c = 0.5, x = $ + c, X = "M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-2.1
753
753
  }
754
754
  }
755
755
  }
756
- },
757
- ...o.color === "primary" && {
758
- "& .MuiButtonGroup-grouped:not(:last-of-type)": {
759
- "&.Mui-disabled": {
760
- borderColor: i.palette.primary.dark
761
- }
762
- }
763
- },
764
- ...o.color === "secondary" && {
765
- "& .MuiButtonGroup-grouped:not(:last-of-type)": {
766
- "&.Mui-disabled": {
767
- borderColor: i.palette.secondary.dark
768
- }
769
- }
770
756
  }
771
757
  }
772
758
  })
@@ -1 +1 @@
1
- {"version":3,"file":"TablePaginationActions.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/Table/TablePaginationActions.tsx"],"names":[],"mappings":"AAkBA,MAAM,MAAM,4BAA4B,GAAG;IACzC,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAA;IACnB,YAAY,EAAE,CACZ,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,EAC1C,OAAO,EAAE,MAAM,KACZ,IAAI,CAAA;IACT,eAAe,CAAC,EAAE,MAAM,CAAA;CACzB,CAAA;AAED,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAAC,EAC7C,KAAK,EACL,IAAI,EACJ,WAAgB,EAChB,YAAY,EACZ,eAAe,GAChB,EAAE,4BAA4B,2CA0D9B"}
1
+ {"version":3,"file":"TablePaginationActions.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/Table/TablePaginationActions.tsx"],"names":[],"mappings":"AAoBA,MAAM,MAAM,4BAA4B,GAAG;IACzC,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAA;IACnB,YAAY,EAAE,CACZ,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,EAC1C,OAAO,EAAE,MAAM,KACZ,IAAI,CAAA;IACT,eAAe,CAAC,EAAE,MAAM,CAAA;CACzB,CAAA;AAED,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAAC,EAC7C,KAAK,EACL,IAAI,EACJ,WAAgB,EAChB,YAAY,EACZ,eAAe,GAChB,EAAE,4BAA4B,2CA0D9B"}
@@ -1 +1 @@
1
- {"version":3,"file":"buttons.d.ts","sourceRoot":"","sources":["../../../../../src/theme/sections/components/buttons.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AAQtD,eAAO,MAAM,gBAAgB,EAAE,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC,CAujBvD,CAAA"}
1
+ {"version":3,"file":"buttons.d.ts","sourceRoot":"","sources":["../../../../../src/theme/sections/components/buttons.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AAQtD,eAAO,MAAM,gBAAgB,EAAE,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC,CAyiBvD,CAAA"}
@@ -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"),X=require("react-intl"),j=require("../TablePaginationActions-B7ycFqaM.cjs"),yn=require("echarts-for-react"),Ne=require("../search-icon-CyudR_26.cjs"),fe=require("@mui/icons-material"),Te=require("../paletteUtils-DLQVT9qo.cjs"),Bt=require("@mui/material/styles"),vn=require("@mui/icons-material/KeyboardArrowDown"),jn=require("@mui/icons-material/Close"),wn=require("@mui/icons-material/LayersOutlined"),bn=require("@mui/icons-material/VisibilityOutlined"),Sn=require("@mui/icons-material/VisibilityOffOutlined"),In=require("@mui/icons-material/ExpandMore"),kn=require("@mui/icons-material/ExpandLess"),Tn=require("../Alert-DyuvFDkP.cjs");function Pt(){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 Mn=[],Cn={},st=e=>e;function An(e,n){if(!e||Array.isArray(e)&&e.length===0)return null;const r=Array.isArray(e)?e:[e];let i="";return i+=String(r[0].axisValueLabel),i+=r.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">
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),u=require("react"),o=require("@mui/material"),X=require("react-intl"),j=require("../TablePaginationActions-5u10SobX.cjs"),yn=require("echarts-for-react"),Ne=require("../search-icon-CyudR_26.cjs"),fe=require("@mui/icons-material"),Te=require("../paletteUtils-DLQVT9qo.cjs"),Bt=require("@mui/material/styles"),vn=require("@mui/icons-material/KeyboardArrowDown"),jn=require("@mui/icons-material/Close"),wn=require("@mui/icons-material/LayersOutlined"),bn=require("@mui/icons-material/VisibilityOutlined"),Sn=require("@mui/icons-material/VisibilityOffOutlined"),In=require("@mui/icons-material/ExpandMore"),kn=require("@mui/icons-material/ExpandLess"),Tn=require("../Alert-CT76xuh3.cjs");function Pt(){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 Mn=[],Cn={},st=e=>e;function An(e,n){if(!e||Array.isArray(e)&&e.length===0)return null;const r=Array.isArray(e)?e:[e];let i="";return i+=String(r[0].axisValueLabel),i+=r.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(" "),i}function En({height:e,labels:n=Cn,yAxisData:r,selectedBars:i=Mn,series:s,colors:l,tooltip:a=!0,tooltipFormatter:p=An,xAxisFormatter:c=st,yAxisFormatter:g=st,onSelectedBarsChange:h,animation:d=!0,filterable:v=!0,stacked:f=!0,...y}){const m=o.useTheme(),x=u.useMemo(()=>(s??[]).map(I=>n[I]??I),[s,n]),S=u.useMemo(()=>Array.isArray(r[0])?r:[r],[r]),b=u.useMemo(()=>typeof l=="string"?[l]:Array.isArray(l)&&l.length?l:S.length<=1||x.length===1?[m.palette.secondary.main]:S.length===2||x.length===2?[m.palette.secondary.light,m.palette.secondary.dark]:Object.values(m.palette.qualitative.bold||{}),[l,m,S,x]);return{...y,tooltip:a,tooltipFormatter:p,xAxisFormatter:c,yAxisFormatter:g,onSelectedBarsChange:h,animation:d,filterable:v,stacked:f,labels:n,height:e??parseInt(m.spacing(22)),selectedBars:Bn(i),yAxisData:S,colors:b,series:x}}function Bn(e){return(e??[]).length?e.map(n=>Array.isArray(n)&&n.length===2?n:Array.isArray(n)?[...Array(2)].map((i,s)=>n[s]??0):[n,0]):[]}var Pn=function e(n,r){if(n===r)return!0;if(n&&r&&typeof n=="object"&&typeof r=="object"){if(n.constructor!==r.constructor)return!1;var i,s,l;if(Array.isArray(n)){if(i=n.length,i!=r.length)return!1;for(s=i;s--!==0;)if(!e(n[s],r[s]))return!1;return!0}if(n.constructor===RegExp)return n.source===r.source&&n.flags===r.flags;if(n.valueOf!==Object.prototype.valueOf)return n.valueOf()===r.valueOf();if(n.toString!==Object.prototype.toString)return n.toString()===r.toString();if(l=Object.keys(n),i=l.length,i!==Object.keys(r).length)return!1;for(s=i;s--!==0;)if(!Object.prototype.hasOwnProperty.call(r,l[s]))return!1;for(s=i;s--!==0;){var a=l[s];if(!e(n[a],r[a]))return!1}return!0}return n!==n&&r!==r};const xe=j.getDefaultExportFromCjs(Pn);class ye extends yn{componentDidUpdate(n){const{shouldSetOption:r}=this.props;if(typeof r=="function"&&!r(n,this.props))return;if(!xe(n.theme,this.props.theme)||!xe(n.opts,this.props.opts)){this.dispose(),this.renderNewEcharts();return}const i=this.getEchartsInstance();xe(n.onEvents,this.props.onEvents)||(this.offEvents(i,n.onEvents),this.bindEvents(i,this.props.onEvents));const s=["option","notMerge","lazyUpdate","showLoading","loadingOption"];xe(lt(this.props,s),lt(n,s))||this.updateEChartsOption(),(!xe(n.style,this.props.style)||!xe(n.className,this.props.className))&&this.resize()}updateEChartsOption(){const n=this.props.option,r=this.props.loadingOption||null,{lazyUpdate:i,showLoading:s}=this.props,l=this.getEchartsInstance();return l.setOption(n,{replaceMerge:["series"],lazyUpdate:i}),s?l.showLoading(r):l.hideLoading(),l}offEvents(n,r){if(r)for(const i in r)typeof i=="string"&&n.off(i)}}function lt(e,n){const r={};return n.forEach(i=>{r[i]=e[i]}),r}const _e=240,Lt=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)"}})),Dt=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"}})),Ln=o.styled(o.Skeleton)(({theme:e})=>({backgroundColor:e.palette.common.white})),at=o.styled(o.Skeleton)(({theme:e})=>({backgroundColor:e.palette.grey[100]}));function Dn({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(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 ce(e){const[n,r]=u.useState(!1),[i,s]=u.useState(!1);return u.useEffect(()=>{e&&!i&&(r(!0),s(!0)),e||r(!1)},[e,i]),{showSkeleton:n}}const Nn=Pt(),$n=o.styled(o.Grid)(({theme:e})=>({marginBottom:e.spacing(2),flexDirection:"row",justifyContent:"space-between",alignItems:"center","& .MuiTypography-caption":{color:e.palette.text.secondary}})),On=o.styled(o.Link)(({theme:e})=>({...e.typography.caption,cursor:"pointer"}));function Rn(e){const{yAxisData:n,xAxisData:r,series:i,selectedBars:s,onSelectedBarsChange:l,tooltip:a,tooltipFormatter:p,labels:c,colors:g,xAxisFormatter:h,yAxisFormatter:d,stacked:v,height:f,filterable:y,animation:m,isLoading:x}=En(e),S=i.length>1,b=o.useTheme(),I=X.useIntl(),k=j.useImperativeIntl(I),{showSkeleton:w}=ce(!!x),C=u.useMemo(()=>({show:a,trigger:"axis",padding:[parseInt(b.spacing(.5)),parseInt(b.spacing(1))],borderWidth:0,textStyle:{...b.typography.caption,fontSize:11,color:b.palette.common.white},backgroundColor:b.palette.black[90],position:function(M,$,G,R,H){const U={top:0};return H.contentSize[0]<H.viewSize[0]-M[0]?U.left=M[0]:U.right=H.viewSize[0]-M[0],U},formatter:M=>p(M,d)}),[b,a,p,d]),A=u.useMemo(()=>r.map(M=>te(h(c[M]??String(M)))),[r,c,h]),D=u.useMemo(()=>({type:"category",axisLine:{show:!1},axisTick:{show:!1},axisLabel:{...b.typography.overlineDelicate,padding:[parseInt(b.spacing(.5)),0,0,0]},data:A}),[b,A]),B=u.useMemo(()=>{let M=[];return v?M=n.reduce(($,G)=>(G.forEach((R,H)=>$[H]=($[H]??0)+(R??Number.MIN_SAFE_INTEGER)),$),[]):M=n.flat().map($=>$??Number.MIN_SAFE_INTEGER),Math.max(...M)},[n,v]),P=u.useMemo(()=>({type:"value",axisLabel:{margin:0,verticalAlign:"bottom",padding:[0,0,parseInt(b.spacing(1.25)),0],show:!0,showMaxLabel:!0,showMinLabel:!1,inside:!0,color:M=>M>=B?b.palette.black[60]:"transparent",...b.typography.overlineDelicate,formatter:M=>te(d(M))},axisLine:{show:!1},axisTick:{show:!1},splitLine:{show:!0,onZero:!1,lineStyle:{color:b.palette.black[4]}}}),[b,B,d]),L=u.useMemo(()=>n.map((M,$)=>({type:"bar",name:i[$]??"",animation:m,barMaxWidth:100,data:M.map((G,R)=>{const H=s.some(([F,z=0])=>F===R&&z===$),U=!!s.length&&!H;return{value:G,...U&&{itemStyle:{color:b.palette.black[25]},disabled:!0}}}),...v&&{stack:"total"},...!Nn&&{emphasis:{focus:"series",itemStyle:{color:o.darken(g[$]??"#000",.25)}}}})),[m,g,i,n,s,v,b]),N=u.useMemo(()=>({grid:{left:A.length>=4?ct(String(A[0]),A.length):0,top:parseInt(b.spacing(2)),right:A.length>=4?ct(String(A[A.length-1]),A.length):0,bottom:0,containLabel:!0},axisPointer:{lineStyle:{color:b.palette.black[40]}},color:g,tooltip:C,xAxis:D,yAxis:P,series:L}),[A,b,g,C,D,P,L]),V=()=>{l&&l([],[])},_=M=>{M.key==="Enter"&&V()},T=u.useCallback(M=>{if(l){const $=[...s],{dataIndex:G,componentIndex:R}=M,H=$.findIndex(([F,z=0])=>G===F&&R===z);H===-1?$.push([G,R]):$.splice(H,1);const U=$.map(([F,z=0])=>({xAxis:r[F],serie:i[z],yAxis:n[z][F]}));l(S?$:$.map(F=>F[0]),U)}},[n,l,s,r,i,S]),O=u.useMemo(()=>y?{click:T}:{},[y,T]);return w?t.jsx(Dn,{height:f}):t.jsxs("div",{children:[l&&t.jsxs($n,{container:!0,children:[t.jsx(j.Typography,{variant:"caption",children:s.length>0?k.formatMessage({id:"c4r.widgets.bar.selectedItems"},{items:s.length}):k.formatMessage({id:"c4r.widgets.bar.all"})}),s&&s.length>0&&t.jsx(On,{onClick:()=>V(),onKeyDown:_,underline:"hover",tabIndex:0,children:k.formatMessage({id:"c4r.widgets.bar.clear"})})]}),!!N&&t.jsx(ye,{option:N,lazyUpdate:!0,notMerge:!0,onEvents:O,style:{height:f}})]})}function ct(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 Nt=o.styled(o.Grid)(({theme:e})=>({maxHeight:e.spacing(40),overflow:"auto",padding:0})),$t=o.styled(o.Grid,{shouldForwardProp:e=>e!=="selectable"&&e!=="name"&&e!=="unselected"})(({theme:e,selectable:n,name:r,unselected:i})=>({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`},...i&&{color:e.palette.text.disabled,".progressbar div":{backgroundColor:e.palette.text.disabled}},...r!==ue&&n&&{cursor:"pointer",flexWrap:"nowrap","&:hover .progressbar div":{backgroundColor:e.palette.secondary.dark}},...r===ue&&{cursor:"default",".progressbar div":{backgroundColor:e.palette.text.disabled}}})),dt=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}})),Fn=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`}})),Wn=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)})),Ce=o.styled(o.Link)(({theme:e})=>({...e.typography.caption,cursor:"pointer","& + hr":{margin:e.spacing(0,1)}})),Gn=o.styled(o.Box)(({theme:e})=>({...e.typography.body2})),ut=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)}})),Hn=o.styled(o.Skeleton)(({theme:e})=>({marginTop:e.spacing(1.25),marginBottom:e.spacing(1.75)})),zn=e=>e%2===1,Ot=()=>t.jsxs(t.Fragment,{children:[t.jsx(o.Skeleton,{width:48,height:8}),t.jsx(Nt,{container:!0,mt:3,children:[...Array(6)].map((e,n)=>t.jsxs($t,{container:!0,spacing:1,children:[t.jsxs(o.Grid,{container:!0,item:!0,direction:"row",justifyContent:"space-between",children:[t.jsx(o.Skeleton,{width:zn(n)?72:48,height:8}),t.jsx(o.Skeleton,{width:48,height:8})]}),t.jsx(Hn,{height:4,width:"100%"})]},n))})]});function Rt(e){const n=u.useRef();return u.useEffect(()=>{n.current=e}),n.current}function Ke({start:e,end:n,duration:r,drawFrame:i,requestRef:s}){if(e===n&&!(e===0&&n===0))return;const a=n-e;let p=e;const c=a/(r/1e3*60),g=()=>{p+=c,i(Math.floor(p)),c>0&&p<n||c<0&&p>n?s.current=requestAnimationFrame(g):i(n)};s.current=requestAnimationFrame(g)}function Yn({start:e,end:n,duration:r,drawFrame:i,requestRef:s}){if(e.length===n.length&&e.every((f,y)=>f.value===n[y].value))return;let a=n.map((f,y)=>e[y]&&e[y].name===f.name?{...f,value:e[y].value}:f),p=0;const c=a.map((f,y)=>n[y].value-f.value);if(c.every(f=>f===0)){i(n);return}const h=r/1e3*60,d=c.map(f=>f/h),v=()=>{p<h?(a=a.map((f,y)=>{const m=Math.floor(f.value+d[y]),x=y>0&&Math.floor(f.value+d[y-1]);return{...f,value:m===x?n[y].value:m}}),i(a),p++,s.current=requestAnimationFrame(v)):i(n)};s.current=requestAnimationFrame(v)}const Vn=[],Un={},qn=e=>e,Ve=()=>{};function Kn({data:e,formatter:n=qn,labels:r=Un,maxItems:i=5,order:s=pe.RANKING,selectedCategories:l=Vn,onSelectedCategoriesChange:a=Ve,animation:p=!0,filterable:c=!0,searchable:g=!0,isLoading:h}){const[d,v]=u.useState([]),[f,y]=u.useState(1),[m,x]=u.useState(!1),[S,b]=u.useState(""),[I,k]=u.useState([]),[w,C]=u.useState([]),[A,D]=u.useState([]),B=u.useRef(null),P=u.useRef(),L=Rt(A),N=u.useRef([]),{showSkeleton:V}=ce(!!h),_=X.useIntl(),T=j.useImperativeIntl(_);function O(E){return d.reduce((Y,K)=>(E.includes(K.name)&&Y.push(K.name),Y),[])}function M(E){if(E!==ue){let Y;l.includes(E)?Y=l.filter(K=>K!==E):Y=[...l,E],a&&a(Y)}}const $=()=>a([]),G=E=>{E.key==="Enter"&&$()},R=()=>{a([]),k([])},H=E=>{E.key==="Enter"&&R()},U=()=>{k(O(l))},F=E=>{E.key==="Enter"&&U()},z=()=>{const E=O(w);a([...E]),k([...E]),C([]),x(!1),b("")},Q=E=>{E.key==="Enter"&&z()},de=()=>{b(""),x(!1)},re=E=>{if(E!==ue){let Y;w.includes(E)?Y=w.filter(K=>K!==E):Y=[...w,E],C(Y)}},W=E=>{E.currentTarget.scrollIntoView()},q=E=>{b(E.currentTarget.value)},Z=()=>{x(!0),C([...l])},J=u.useCallback(E=>{if(m)return S?E.filter(Y=>{var ee;if(!Y.name)return!1;const K=String(Y.name);return!!(K.toLowerCase().includes(S.toLowerCase())||(ee=r[K])!=null&&ee.toLowerCase().includes(S.toLowerCase()))}):E;if(I.length)return I.reduce((K,ee)=>{const ge=E.find(se=>se.name===ee);return K.push({name:ee,value:ge?ge.value:null}),K},[]);{const Y=E.slice(0,i);if(Y.length<E.length){const K=E.slice(i).reduce((ee,ge)=>(ge.value!==null&&ee.value!==null&&(ee.value+=ge.value),ee),{name:ue,value:0});return[...Y,K]}else return Y}},[I,r,i,S,m]),ie=u.useCallback(()=>{const E=I.length;return E?e.length-E:e.length-i},[e,i,I]),Me=u.useCallback(E=>E===ue?`Others ${g?"":`(${ie()})`}`:r[String(E)]??String(E),[ie,r,g]),ve=u.useCallback(E=>E>=f?E!=null?"100%":0:`${(E||0)*100/f}%`,[f]);u.useEffect(()=>{l.length===0&&k([])},[l]),u.useEffect(()=>{if(e){if(s===pe.RANKING){const E=[...e].sort((K,ee)=>(ee.value??0)-(K.value??0)),Y=J(E);Y.length>0?y(Y[0].value??0):y(1),v(Y)}else if(s===pe.FIXED){y(Math.max(...e.map(Y=>Y.value??0)));const E=J(e);v(E)}}},[I,J,e,r,i,s,S,m]),u.useEffect(()=>{L&&(N.current=L)},[L]),u.useEffect(()=>{if(p)return Yn({start:(N.current||[]).map(E=>({...E,value:E.value??0})),end:d.map(E=>({...E,value:E.value??0})),duration:500,drawFrame:E=>D(E),requestRef:B}),()=>{B.current&&cancelAnimationFrame(B.current)};D(d)},[p,d]),u.useEffect(()=>{m&&P.current&&P.current.focus()},[m,P]);function fn({data:E,onCategoryClick:Y}){const K=n(E.value??0),[ee,ge]=u.useState(!1),se=u.useRef(null),ze=()=>{var rt,it;const Ye=(((rt=se==null?void 0:se.current)==null?void 0:rt.scrollWidth)??0)>(((it=se==null?void 0:se.current)==null?void 0:it.clientWidth)??0);ge(Ye)};u.useEffect(()=>(ze(),window.addEventListener("resize",ze),()=>{window.removeEventListener("resize",ze)}),[]);const xn=Ye=>{Ye.key==="Enter"&&Y()},mn=!m&&l.length>0&&!l.includes(E.name);return t.jsxs($t,{container:!0,direction:"row",spacing:1,onClick:c?Y:Ve,onKeyDown:c?xn:Ve,selectable:c,unselected:mn,name:E.name===ue?ue:"",tabIndex:c?0:-1,children:[c&&m&&t.jsx(o.Grid,{item:!0,mr:1,children:t.jsx(o.Checkbox,{checked:w.includes(E.name),tabIndex:-1})}),t.jsxs(Wn,{container:!0,item:!0,xs:!0,isSelectable:m,children:[t.jsxs(o.Grid,{container:!0,item:!0,direction:"row",justifyContent:"space-between",wrap:"nowrap",children:[t.jsx(o.Tooltip,{title:Me(E.name),disableHoverListener:!ee,children:t.jsx(_n,{variant:"body2",noWrap:!0,ref:se,children:Me(E.name)})}),typeof K=="object"&&K!==null?t.jsxs("span",{children:[K.prefix,K.value,K.suffix]}):t.jsx("span",{children:K})]}),t.jsx(Fn,{className:"progressbar",item:!0,children:t.jsx("div",{style:{width:ve(E.value??0)}})})]})]})}return(e==null?void 0:e.length)===0||V?t.jsx(Ot,{}):t.jsxs(Gn,{children:[c&&d.length>0&&t.jsxs(dt,{container:!0,children:[t.jsx(j.Typography,{variant:"caption",children:l.length>0?T.formatMessage({id:"c4r.widgets.category.selectedItems"},{items:l.length}):T.formatMessage({id:"c4r.widgets.category.all"})}),m?t.jsx(Ce,{onClick:z,onKeyDown:Q,underline:"hover",tabIndex:0,"data-testid":"primaryApplyButton",children:T.formatMessage({id:"c4r.widgets.category.apply"})}):I.length>0?t.jsx(Ce,{onClick:R,onKeyDown:H,underline:"hover",tabIndex:0,children:T.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(Ce,{onClick:U,onKeyDown:F,underline:"hover",tabIndex:0,children:T.formatMessage({id:"c4r.widgets.category.lock"})}),t.jsx(o.Divider,{orientation:"vertical",flexItem:!0}),t.jsx(Ce,{onClick:$,onKeyDown:G,underline:"hover",tabIndex:0,children:T.formatMessage({id:"c4r.widgets.category.clear"})})]})]}),e.length>i&&m&&t.jsxs(dt,{container:!0,children:[t.jsx(o.TextField,{size:"small",sx:{mt:-.5},placeholder:T.formatMessage({id:"c4r.widgets.category.search"}),onChange:q,onFocus:W,InputProps:{startAdornment:t.jsx(o.InputAdornment,{position:"start",children:t.jsx(Ne.SearchIcon,{})})},inputProps:{tabIndex:0,ref:P}}),t.jsx(ut,{size:"small",onClick:de,children:T.formatMessage({id:"c4r.widgets.category.cancel"})})]}),t.jsx(Nt,{container:!0,item:!0,children:A.length?A.map((E,Y)=>t.jsx(fn,{data:E,onCategoryClick:()=>m?re(E.name):M(E.name)},Y)):t.jsxs(o.Box,{children:[t.jsx(j.Typography,{variant:"body2",children:T.formatMessage({id:"c4r.widgets.category.noResults"})}),t.jsx(j.Typography,{component:"p",variant:"caption",mb:2,children:T.formatMessage({id:"c4r.widgets.category.noResultsMessage"},{searchValue:S})})]})}),m&&t.jsx(ut,{size:"small",onClick:z,children:T.formatMessage({id:"c4r.widgets.category.apply"})}),e.length>i&&g?m?t.jsx(o.Box,{mt:1.5,children:t.jsx(o.Button,{size:"small",color:"primary",onClick:de,"data-testid":"primaryCancelButton",children:T.formatMessage({id:"c4r.widgets.category.cancel"})})}):t.jsx(o.Box,{mt:1.5,children:t.jsx(o.Button,{size:"small",color:"primary",startIcon:t.jsx(Ne.SearchIcon,{}),onClick:Z,children:T.formatMessage({id:"c4r.widgets.category.searchInfo"},{elements:ie()})})}):null]})}const Ft=()=>t.jsx(o.Box,{pt:.5,children:t.jsx(o.Skeleton,{height:24,width:120})}),Zn=o.styled("span")(()=>({marginRight:"2px"})),Xn=o.styled("span")(()=>({marginLeft:"2px"})),Ae="-",Jn=e=>e;function Qn({data:e=Ae,formatter:n=Jn,animation:r=!0,isLoading:i=!1}){const[s,l]=u.useState(Ae),a=u.useRef(null),p=Rt(s),c=u.useRef(p),{showSkeleton:g}=ce(!!i);u.useEffect(()=>(typeof e=="number"&&r?Ke({start:c.current||0,end:e,duration:500,drawFrame:f=>l(f),requestRef:a}):typeof e=="object"&&r&&e&&c.current&&e.value!==null&&e.value!==void 0?Ke({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??Ae),()=>{a.current&&cancelAnimationFrame(a.current)}),[r,e,l]);const h=n(s),d=typeof h=="object"&&h!==null,v=h===Ae;return g?t.jsx(Ft,{}):d?t.jsxs(j.Typography,{variant:"h5",component:"div",weight:"medium",children:[t.jsx(Zn,{children:h.prefix}),h.value,t.jsx(Xn,{children:h.suffix})]}):t.jsx(j.Typography,{variant:"h5",component:"div",weight:"medium",color:v?"text.disabled":"default",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",children:h})}const pt={};let we=null;function eo({data:e,filterable:n,selectedBars:r,onSelectedBarsChange:i,echartsInstance:s}){const l=o.useTheme(),[a,p]=u.useState([]),c=u.useMemo(()=>s==null?void 0:s.getZr(),[s]);u.useEffect(()=>{function h(v){if(s){const[f]=s.convertFromPixel({seriesIndex:0},[v.offsetX,v.offsetY]);we=f??null}}function d(v){if(s&&we!==null){const[f]=s.convertFromPixel({seriesIndex:0},[v.offsetX,v.offsetY]);p(we===f?[]:[we,f].sort((y,m)=>y-m))}}if(s&&n){const v=Ue(c,"mousedown",h),f=Ue(c,"mousemove",d);return()=>{v==null||v(),f==null||f()}}},[c,s,n]),u.useEffect(()=>{function h(){if(a.length===2&&i){const d=e.reduce((v,f,y)=>((a[0]>=f[0]&&a[0]<=f[1]||a[1]>=f[0]&&a[1]<=f[1]||a[0]<=f[0]&&a[1]>=f[1])&&v.push(y),v),[]);i(e.length===d.length?[]:d)}p([]),we=null}if(s&&n)return Ue(c,"mouseup",h)},[c,s,a,e,i,n]);const g=u.useCallback(h=>{if(i){const d=new Set(r);d.has(h.dataIndex)?d.delete(h.dataIndex):d.add(h.dataIndex),i(d.size===e.length?[]:Array.from(d))}},[i,r,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,r){if(e!=null&&e.handler)return pt[n]=r,e.on(n,r),()=>{pt[n]&&(e!=null&&e.handler)&&e.off(n,r)}}function to({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(Dt,{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 no=Pt(),oo=o.styled(o.Grid)(({theme:e})=>({marginBottom:e.spacing(2),flexDirection:"row",justifyContent:"space-between",alignItems:"center","& .MuiTypography-caption":{color:e.palette.text.secondary}})),ro=o.styled(o.Link)(({theme:e})=>({...e.typography.caption,cursor:"pointer"})),io=[],so=()=>{},$e=e=>e;function lo(e,n=$e,r=$e){if(!e)return null;if(Array.isArray(e)&&e.length===0)return;const i=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(r(p)),d=`${c} <span style="vertical-align: 1px;">—</span> ${g}`,v=`<div style="margin-left: 8px; display: inline">${h}</div>`;return`${d} <div style="margin-top: 4px">${String(i)}${v}</div>`}function ao({data:e,ticks:n,min:r,max:i,xAxisFormatter:s=$e,yAxisFormatter:l=$e,yAxisType:a="dense",selectedBars:p=io,onSelectedBarsChange:c=so,tooltip:g=!0,tooltipFormatter:h=lo,animation:d=!0,filterable:v=!0,height:f=200,isLoading:y}){const m=X.useIntl(),x=o.useTheme(),S=j.useImperativeIntl(m),{showSkeleton:b}=ce(!!y),I=!!v&&!!c,[k,w]=u.useState(),C=M=>w(M),A=u.useMemo(()=>po(e,n,r,i),[e,n,r,i]),{onEvents:D,markAreaOptions:B}=eo({data:A,filterable:I,selectedBars:p,onSelectedBarsChange:c,echartsInstance:k}),P=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(M){return h(M,s,l)}}),[x,g,h,s,l]),L=u.useMemo(()=>({min:r,max:i,interval:(i-r)/A.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:M=>{const $=te(s(M));return M===r?co($):M===i?uo($):$},color:x.palette.black[60]}}),[r,i,A.length,x,s]),N=u.useMemo(()=>{const M={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 U="transparent";return R>=H&&(U=x.palette.black[60]),U},...x.typography.overlineDelicate,formatter:R=>te(l(R))},$={verticalAlign:"middle",padding:[0,0,0,j.SPACING*.5],color:x.palette.black[60]},G=a==="dense"?M:$;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 M=r===i&&A.filter(R=>R[2]!==0).length===1,G=(M?[A[0],A[A.length-1]]:A).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:B,renderItem:function(R,H){const U=R.dataIndex===A.length-1,F=R.dataIndex===0,z=G[R.dataIndex].itemStyle.color,Q=H.value(0),de=H.value(1),re=H.value(2),[W,q]=H.coord([Q,re]),[Z,J]=H.size([de-Q,re]);return{type:"rect",shape:{x:M?W/10:W+(F?0:1),y:q,width:M?W-W/10:Z-(U?0:1),height:J},style:{fill:z},...!no&&{emphasis:{style:{fill:o.darken(z,.25)}}}}},encode:{x:[0,1],y:2,tooltip:[0,1,2]},data:G,animation:d}},[r,i,A,B,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:P,xAxis:L,yAxis:N,series:[V]}),[P,L,N,V]),T=p.reduce((M,$)=>M+=e[$]??0,0),O=M=>{M.key==="Enter"&&c([])};return b?t.jsx(to,{height:f}):t.jsxs("div",{children:[I&&t.jsxs(oo,{container:!0,children:[t.jsx(j.Typography,{variant:"caption",weight:"strong",children:p.length>0?S.formatMessage({id:"c4r.widgets.histogram.selectedItems"},{items:te(l(T))}):S.formatMessage({id:"c4r.widgets.histogram.all"})}),p.length>0&&t.jsx(ro,{onClick:()=>c([]),onKeyDown:O,underline:"hover",tabIndex:0,children:S.formatMessage({id:"c4r.widgets.histogram.clear"})})]}),t.jsx(ye,{option:_,onEvents:D,lazyUpdate:!0,onChartReady:C,style:{maxHeight:f}})]})}function co(e){return`${Array(String(e).length).fill(" ").join("")}${e}`}function uo(e){const n=Array(String(e).length).fill(" ").join("");return`${e}${n}`}function po(e,n,r,i){return e.map((s,l)=>[l===0?r:n[l-1],l===e.length-1?i:n[l],s])}function go(e,n,r,i){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<r?c.push({...h}):g+=h.value??0;return g>0&&c.push({name:me,value:g,emphasis:{scale:!1}}),c},[r,l]);return u.useMemo(()=>{const c=s.palette.common.white;return a.map((g,h)=>{let d=c;if(i.length){const f=i[h%i.length];f&&(d=f)}else{const y=s.palette.qualitative.bold[h];y&&(d=y)}const v=g;return v.color=d,v})},[a,i,s])}const ho=o.styled(o.Box)(({theme:e})=>({zIndex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",paddingBottom:e.spacing(1)})),fo=o.styled(o.Box)(({theme:e})=>({display:"flex",alignItems:"center",gap:e.spacing(1),maxWidth:"140px",textTransform:"uppercase"})),xo=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 mo({data:e,selectedCategories:n,formatter:r}){const[i,s]=u.useState(),l=u.useMemo(()=>{if(!e||e.length===0)return null;let g;n.length>0?g=e.filter(y=>n.includes(y.name)):g=e;const h=yo(g),d=g.find(y=>y===h);if(!d)return null;let v=0;for(const y of e)v+=y.value??0;const f=vo(d.value??0,v,r);return{...d,percentage:f}},[e,n,r]);u.useEffect(()=>{l&&s(l)},[l,s]);const{name:a,percentage:p,color:c}=i??{};return i?t.jsxs(ho,{children:[t.jsx(j.Typography,{variant:"h5",children:p}),t.jsxs(fo,{children:[t.jsx(xo,{bgcolor:c,component:"span"}),t.jsx(j.Typography,{component:"span",variant:"body2",noWrap:!0,children:a})]})]}):null}function yo(e){const n=e.filter(r=>r.name!==me);return n.length===0?e[0]:n.reduce((r,i)=>(i.value??0)>(r.value??0)?i:r)}function vo(e,n,r){let i=0;return n!==0&&(i=e/n*100),r?r(i):`${i}%`}const gt=32,jo=o.styled(o.Box)(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"center",marginTop:e.spacing(.5)})),wo=o.styled("div")(()=>({display:"flex",alignItems:"center",justifyContent:"center",position:"relative"})),bo=o.styled(Ln)(()=>({position:"absolute",zIndex:1})),So=o.styled("div")(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"center",gap:e.spacing(1),position:"absolute",zIndex:2})),Io=o.styled(o.Box)(({theme:e})=>({display:"flex",alignItems:"center",gap:e.spacing(2),height:e.spacing(5)})),ko=o.styled("div")(({theme:e})=>({display:"flex",alignItems:"center",gap:e.spacing(1.5)}));function Wt({height:e}){const n=parseInt(String(e),10)||_e,r=n-gt,i=r-gt;return t.jsxs(o.Box,{mt:.5,children:[t.jsx(o.Skeleton,{height:8,width:64}),t.jsx(jo,{height:n,children:t.jsxs(wo,{children:[t.jsx(o.Skeleton,{variant:"circular",width:r,height:r}),t.jsx(bo,{variant:"circular",width:i,height:i}),t.jsxs(So,{children:[t.jsx(o.Skeleton,{height:24,width:72}),t.jsx(o.Skeleton,{height:8,width:48})]})]})}),t.jsx(Io,{children:[...Array(2)].map((s,l)=>t.jsxs(ko,{children:[t.jsx(o.Skeleton,{variant:"circular",width:8,height:8}),t.jsx(o.Skeleton,{width:48,height:8})]},l))})]})}const To=o.styled(o.Box)(({theme:e})=>({position:"relative",padding:e.spacing(1.25,1,0,1),width:"100%"})),Mo=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)})),Co=o.styled(o.Box)(({theme:e})=>({display:"flex",flexDirection:"row",gap:e.spacing(1),alignItems:"center",textOverflow:"ellipsis",whiteSpace:"nowrap",cursor:"pointer"})),Ao=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%)`})),Eo=o.styled(o.Box)(({theme:e})=>({position:"absolute",padding:e.spacing(.25,1),top:e.spacing(0),right:0,background:e.palette.background.paper})),Bo=o.styled(o.Box,{shouldForwardProp:e=>e!=="color"})(({theme:e,color:n})=>{const r=e.spacing(1);return{backgroundColor:n,borderRadius:"50%",width:r,height:r}});function _t({series:e,selectedCategories:n,onCategoryClick:r}){var I,k;const i=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),v=u.useRef(null),f=X.useIntl(),y=j.useImperativeIntl(f);function m(){p(a+1)}function x(){p(Math.max(a-1))}function S(w,C){w.key==="Enter"&&(r==null||r(C))}const b=u.useCallback(()=>{var C,A,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)-(((A=v.current)==null?void 0:A.clientWidth)??70):(((D=h.current)==null?void 0:D.clientWidth)??0)-12||500)},[h,d,v]);return u.useEffect(()=>{b()},[d,(I=d.current)==null?void 0:I.scrollWidth,(k=d.current)==null?void 0:k.clientWidth,b,a]),u.useEffect(()=>{if(typeof ResizeObserver>"u")return;let w;return h.current&&(w=new ResizeObserver(()=>{b()}),w.observe(h.current)),()=>{w==null||w.disconnect()}},[h,b]),t.jsxs(To,{ref:h,children:[t.jsx(Mo,{ref:d,style:{maxWidth:`${c}px`},children:e.map((w,C)=>{if(C<a)return null;const A=n.length===0||n.includes(w.name);return t.jsxs(Co,{tabIndex:0,onClick:r?()=>r(w.name):void 0,onKeyDown:r?D=>S(D,w.name):void 0,style:{pointerEvents:!r||w.name==="Others"?"none":void 0},children:[t.jsx(Bo,{color:A?w.color:i.palette.text.disabled}),t.jsx(j.Typography,{variant:"overline",color:A?void 0:"text.disabled",children:w.name})]},C)})}),(s||a>0)&&t.jsxs(Eo,{ref:v,children:[t.jsx(Ao,{}),t.jsx(o.Tooltip,{title:y.formatMessage({id:"c4r.widgets.chartLegend.next"}),children:t.jsx(o.IconButton,{size:"small",disabled:a===0,onClick:x,children:t.jsx(fe.ChevronLeft,{})})}),t.jsx(o.Tooltip,{title:y.formatMessage({id:"c4r.widgets.chartLegend.prev"}),children:t.jsx(o.IconButton,{size:"small",disabled:!s,onClick:m,children:t.jsx(fe.ChevronRight,{})})})]})]})}const Ze="232px",Po=o.styled(o.Grid)(({theme:e})=>({flexDirection:"row",justifyContent:"space-between",alignItems:"center",marginBottom:e.spacing(.5)})),Lo=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%"})),Do=o.styled(ye)(()=>({position:"absolute",top:0,right:0,left:0,bottom:0})),ht=[],No={},$o=e=>e;function Oo({name:e,data:n,formatter:r=$o,tooltipFormatter:i=Ro,percentFormatter:s,height:l=Ze,width:a=Ze,labels:p=No,colors:c=ht,animation:g=!0,filterable:h=!0,selectedCategories:d=ht,onSelectedCategoriesChange:v,isLoading:f,maxItems:y=11,order:m=pe.RANKING}){const x=o.useTheme(),S=go(n,m,y,c),{showSkeleton:b}=ce(!!f),I=X.useIntl(),k=j.useImperativeIntl(I),w=u.useMemo(()=>s||(_=>`${I.formatNumber(_,{maximumFractionDigits:2,minimumFractionDigits:2})}%`),[I,s]),C=u.useMemo(()=>{let _;return i&&(_=T=>i(T,r,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,i,r,w]),A=u.useMemo(()=>[{type:"pie",name:e,animation:g,data:S.map(_=>{const T={..._},O=(d==null?void 0:d.length)&&!d.includes(T.name);return p!=null&&p[T.name]&&(T.name=p[T.name]),O?{...T,disabled:!0,itemStyle:{color:x.palette.black[25]}}:{...T,itemStyle:{color:T.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,S,p,d,x]),D=u.useMemo(()=>({grid:{left:0,top:0,right:0,bottom:0},tooltip:C,legend:{show:!1},series:A}),[C,A]),B=u.useCallback(_=>{if(v){const T=[...d],{name:O}=S[_.dataIndex];if(O===me)return;const M=T.indexOf(O);M===-1?T.push(O):T.splice(M,1),v(T)}},[S,v,d]),P=u.useCallback(_=>{if(v){const T=[...d],O=T.indexOf(_);O===-1?T.push(_):T.splice(O,1),v(T)}},[v,d]),L={...h&&{click:B}},N=()=>{v==null||v([])},V=_=>{_.key==="Enter"&&N()};return b?t.jsx(Wt,{height:l}):t.jsxs(t.Fragment,{children:[h&&t.jsxs(Po,{container:!0,children:[t.jsx(j.Typography,{variant:"caption",color:"textSecondary",children:d.length?k.formatMessage({id:"c4r.widgets.pie.selectedItems"},{items:d.length}):k.formatMessage({id:"c4r.widgets.pie.allSelected"})}),d.length>0&&t.jsx(o.Link,{variant:"caption",onClick:N,onKeyDown:V,tabIndex:0,children:k.formatMessage({id:"c4r.widgets.pie.clear"})})]}),t.jsxs(Lo,{height:l,width:a,children:[t.jsx(mo,{data:S,selectedCategories:d,formatter:w}),t.jsx(Do,{option:D,onEvents:L,lazyUpdate:!0,style:{height:l,width:a}})]}),S.length>0&&t.jsx(_t,{series:S,selectedCategories:d,onCategoryClick:v&&P})]})}function Ro(e,n,r){var c;const i=Array.isArray(e)?e[0]:e;if(!i)return null;const s=te(n(i.value)),l=r(i.percent)||`${i.percent}%`,p=`display:inline-block;border-radius:4px;width:8px;height:8px;background-color:${((c=i.data)==null?void 0:c.color)||i.textStyle.color}`;return`
@@ -2,7 +2,7 @@ import { jsxs as w, Fragment as ie, jsx as n } from "react/jsx-runtime";
2
2
  import Un, { useMemo as F, useState as _, useEffect as G, useCallback as oe, useRef as re, createContext as qn, useContext as Xn, useLayoutEffect as an, createRef as Kn } from "react";
3
3
  import { useTheme as de, styled as y, Box as S, Skeleton as H, Grid as ae, Link as ve, darken as mt, Button as De, Divider as yt, TextField as rt, InputAdornment as vt, Checkbox as ln, Tooltip as pe, IconButton as me, Slider as wt, debounce as Zn, TableCell as xt, TableContainer as sn, Table as cn, TableHead as dn, TableRow as Je, TableBody as un, TableSortLabel as Jn, TablePagination as Qn, Menu as bt, MenuItem as Pe, SvgIcon as Ye, Typography as $e, lighten as ei, ClickAwayListener as ti, ToggleButton as ni, capitalize as pn, List as ii, ListItem as ri, Chip as oi, Paper as gn, Popover as ai, Select as li, ListItemText as si, Collapse as kt, Drawer as ci, LinearProgress as di, Icon as ui } from "@mui/material";
4
4
  import { useIntl as le } from "react-intl";
5
- import { d as pi, u as se, T as z, S as B, B as St, a as gi, b as ut } from "../TablePaginationActions-OJyfVTms.js";
5
+ import { d as pi, u as se, T as z, S as B, B as St, a as gi, b as ut } from "../TablePaginationActions-C9YCSB32.js";
6
6
  import hi from "echarts-for-react";
7
7
  import { S as Dt, G as fi, O as mi } from "../search-icon-8Q4AttLX.js";
8
8
  import { ChevronLeft as yi, ChevronRight as vi, ErrorOutline as wi, Cancel as xi, ExpandLess as bi, ExpandMore as ki, MoreVert as Si } from "@mui/icons-material";
@@ -15,7 +15,7 @@ import Li from "@mui/icons-material/VisibilityOutlined";
15
15
  import $i from "@mui/icons-material/VisibilityOffOutlined";
16
16
  import Di from "@mui/icons-material/ExpandMore";
17
17
  import Pi from "@mui/icons-material/ExpandLess";
18
- import { A as Oi } from "../Alert-_PI5QbXW.js";
18
+ import { A as Oi } from "../Alert-CU0-7Oca.js";
19
19
  function mn() {
20
20
  let e = !1;
21
21
  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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carto/meridian-ds",
3
- "version": "0.1.1-alpha.4",
3
+ "version": "0.1.1-alpha.6",
4
4
  "description": "CARTO Meridian Design System",
5
5
  "type": "module",
6
6
  "scripts": {