{"version":3,"file":"Select.mjs","sources":["../../../../../../../../web/src/adminPortal/components/Select.tsx"],"sourcesContent":["import { SxProps, Theme } from '@mui/material';\nimport React from 'react';\n\nimport { SelectCore, SelectCoreProps } from '../shared/components/Select';\nimport { Label, LabelProps } from './Label';\nimport { MenuItem, MenuItemFields } from './MenuItem';\nimport { Typography } from './Typography';\n\nexport type SelectItem = MenuItemFields;\n\nexport type SelectProps<U extends string | number | string[] | number[]> = SelectCoreProps<U, SelectItem> & {\n  width?: number;\n  labelColor?: LabelProps['labelColor'];\n};\n\nconst LabelSecondary = (props: LabelProps) => {\n  return <Label labelColor=\"secondary\" {...props} />;\n};\n\nconst checkIconSx: SxProps<Theme> = { color: (theme) => theme.styleConfig.colors.primary };\nconst selectSx: SxProps<Theme> = { color: (theme) => theme.styleConfig.colors.primary };\n\nexport const Select = <U extends string | number | string[] | number[]>(props: SelectProps<U>): JSX.Element => {\n  return (\n    <SelectCore\n      {...props}\n      LabelComponent={props.labelColor === 'secondary' ? LabelSecondary : Label}\n      MenuItemComponent={MenuItem}\n      TypographyComponent={Typography}\n      checkIconSx={checkIconSx}\n      selectSx={selectSx}\n    />\n  );\n};\n"],"names":["LabelSecondary","props","React","Label","labelColor","checkIconSx","color","theme","styleConfig","colors","primary","selectSx","Select","SelectCore","LabelComponent","MenuItemComponent","MenuItem","TypographyComponent","Typography"],"mappings":";;;;;;AAeA,MAAMA,iBAAiB,CAACC,KAAAA,GAAAA;AACtB,IAAA,qBAAOC,EAAA,CAAA,aAAA,CAACC,KAAAA,EAAAA;QAAMC,UAAAA,EAAW,WAAA;AAAa,QAAA,GAAGH;;AAC3C,CAAA;AAEA,MAAMI,WAAAA,GAA8B;AAAEC,IAAAA,KAAAA,EAAO,CAACC,KAAAA,GAAUA,KAAAA,CAAMC,WAAW,CAACC,MAAM,CAACC;AAAQ,CAAA;AACzF,MAAMC,QAAAA,GAA2B;AAAEL,IAAAA,KAAAA,EAAO,CAACC,KAAAA,GAAUA,KAAAA,CAAMC,WAAW,CAACC,MAAM,CAACC;AAAQ,CAAA;AAE/E,MAAME,SAAS,CAAkDX,KAAAA,GAAAA;AACtE,IAAA,qBACEC,EAAA,CAAA,aAAA,CAACW,UAAAA,EAAAA;AACE,QAAA,GAAGZ,KAAK;AACTa,QAAAA,cAAAA,EAAgBb,KAAAA,CAAMG,UAAU,KAAK,WAAA,GAAcJ,cAAAA,GAAiBG,KAAAA;QACpEY,iBAAAA,EAAmBC,QAAAA;QACnBC,mBAAAA,EAAqBC,UAAAA;QACrBb,WAAAA,EAAaA,WAAAA;QACbM,QAAAA,EAAUA;;AAGhB;;;;"}