{"version":3,"file":"Checkbox.mjs","sources":["../../../../../../../../web/src/adminPortal/components/Checkbox.tsx"],"sourcesContent":["import { checkboxClasses, styled, SxProps, Theme } from '@mui/material';\nimport React, { FC } from 'react';\n\nimport { CheckboxCore, CheckboxCoreProps } from '../shared/components/Checkbox';\n\nexport type CheckboxProps = CheckboxCoreProps;\n\nconst checkboxSx: SxProps<Theme> = {\n  [`&, &.${checkboxClasses.checked}, &.${checkboxClasses.indeterminate}`]: {\n    color: (theme) => theme.styleConfig.colors.primary,\n  },\n  [`&.${checkboxClasses.disabled}`]: {\n    color: (theme) => theme.styleConfig.colors.secondary,\n  },\n};\n\nconst StyledCheckbox = styled(CheckboxCore)(({ theme }) => ({\n  color: theme.styleConfig.colors.primary,\n}));\n\nexport const Checkbox: FC<CheckboxProps> = (props): JSX.Element => {\n  return <StyledCheckbox {...props} checkboxSx={checkboxSx} />;\n};\n"],"names":["checkboxSx","checkboxClasses","checked","indeterminate","color","theme","styleConfig","colors","primary","disabled","secondary","StyledCheckbox","styled","CheckboxCore","Checkbox","props","React"],"mappings":";;;;;AAOA,MAAMA,UAAAA,GAA6B;AACjC,IAAA,CAAC,CAAC,KAAK,EAAEC,eAAAA,CAAgBC,OAAO,CAAC,IAAI,EAAED,eAAAA,CAAgBE,aAAa,CAAA,CAAE,GAAG;AACvEC,QAAAA,KAAAA,EAAO,CAACC,KAAAA,GAAUA,KAAAA,CAAMC,WAAW,CAACC,MAAM,CAACC;AAC7C,KAAA;AACA,IAAA,CAAC,CAAC,EAAE,EAAEP,gBAAgBQ,QAAQ,CAAA,CAAE,GAAG;AACjCL,QAAAA,KAAAA,EAAO,CAACC,KAAAA,GAAUA,KAAAA,CAAMC,WAAW,CAACC,MAAM,CAACG;AAC7C;AACF,CAAA;AAEA,MAAMC,cAAAA,GAAiBC,OAAOC,YAAAA,CAAAA,CAAc,CAAC,EAAER,KAAK,EAAE,IAAM;AAC1DD,QAAAA,KAAAA,EAAOC,KAAAA,CAAMC,WAAW,CAACC,MAAM,CAACC;KAClC,CAAA,CAAA;AAEO,MAAMM,WAA8B,CAACC,KAAAA,GAAAA;AAC1C,IAAA,qBAAOC,EAAA,CAAA,aAAA,CAACL,cAAAA,EAAAA;AAAgB,QAAA,GAAGI,KAAK;QAAEf,UAAAA,EAAYA;;AAChD;;;;"}