{"version":3,"file":"SearchBar.mjs","sources":["../../../../../../../../web/src/adminPortal/components/SearchBar.tsx"],"sourcesContent":["import { SxProps, Theme } from '@mui/material';\nimport React from 'react';\n\nimport { SearchBarCore, SearchBarCoreProps } from '../shared/components/SearchBar';\nimport { Input } from './Input';\n\nconst iconContainerCommonSx = {\n  zIndex: 1,\n} as const;\n\nconst searchIconContainerSx: SxProps<Theme> = {\n  ...iconContainerCommonSx,\n  color: (theme) => theme.styleConfig.inputs.placeholderColor,\n};\n\nconst slashIconContainerSx: SxProps<Theme> = { ...iconContainerCommonSx, bottom: 0, marginBottom: 0, height: '100%' };\n\nconst slashIconSx: SxProps<Theme> = {\n  borderColor: (theme) => theme.styleConfig.colors.primary,\n  color: (theme) => theme.styleConfig.inputs.placeholderColor,\n  fontFamily: (theme) => theme.styleConfig.fontFamily,\n  fontSize: (theme) => theme.typography.body2.fontSize,\n  lineHeight: 1,\n  padding: (theme) => theme.spacing(0.5, 1),\n};\n\nexport const SearchBar = (props: SearchBarCoreProps): JSX.Element => {\n  return (\n    <SearchBarCore\n      {...props}\n      InputComponent={Input}\n      searchIconContainerSx={searchIconContainerSx}\n      slashIconSx={slashIconSx}\n      slashIconContainerSx={slashIconContainerSx}\n    />\n  );\n};\n"],"names":["iconContainerCommonSx","zIndex","searchIconContainerSx","color","theme","styleConfig","inputs","placeholderColor","slashIconContainerSx","bottom","marginBottom","height","slashIconSx","borderColor","colors","primary","fontFamily","fontSize","typography","body2","lineHeight","padding","spacing","SearchBar","props","React","SearchBarCore","InputComponent","Input"],"mappings":";;;;AAMA,MAAMA,qBAAAA,GAAwB;IAC5BC,MAAAA,EAAQ;AACV,CAAA;AAEA,MAAMC,qBAAAA,GAAwC;AAC5C,IAAA,GAAGF,qBAAqB;AACxBG,IAAAA,KAAAA,EAAO,CAACC,KAAAA,GAAUA,KAAAA,CAAMC,WAAW,CAACC,MAAM,CAACC;AAC7C,CAAA;AAEA,MAAMC,oBAAAA,GAAuC;AAAE,IAAA,GAAGR,qBAAqB;IAAES,MAAAA,EAAQ,CAAA;IAAGC,YAAAA,EAAc,CAAA;IAAGC,MAAAA,EAAQ;AAAO,CAAA;AAEpH,MAAMC,WAAAA,GAA8B;AAClCC,IAAAA,WAAAA,EAAa,CAACT,KAAAA,GAAUA,KAAAA,CAAMC,WAAW,CAACS,MAAM,CAACC,OAAO;AACxDZ,IAAAA,KAAAA,EAAO,CAACC,KAAAA,GAAUA,KAAAA,CAAMC,WAAW,CAACC,MAAM,CAACC,gBAAgB;AAC3DS,IAAAA,UAAAA,EAAY,CAACZ,KAAAA,GAAUA,KAAAA,CAAMC,WAAW,CAACW,UAAU;AACnDC,IAAAA,QAAAA,EAAU,CAACb,KAAAA,GAAUA,KAAAA,CAAMc,UAAU,CAACC,KAAK,CAACF,QAAQ;IACpDG,UAAAA,EAAY,CAAA;AACZC,IAAAA,OAAAA,EAAS,CAACjB,KAAAA,GAAUA,KAAAA,CAAMkB,OAAO,CAAC,GAAA,EAAK,CAAA;AACzC,CAAA;AAEO,MAAMC,YAAY,CAACC,KAAAA,GAAAA;AACxB,IAAA,qBACEC,EAAA,CAAA,aAAA,CAACC,aAAAA,EAAAA;AACE,QAAA,GAAGF,KAAK;QACTG,cAAAA,EAAgBC,KAAAA;QAChB1B,qBAAAA,EAAuBA,qBAAAA;QACvBU,WAAAA,EAAaA,WAAAA;QACbJ,oBAAAA,EAAsBA;;AAG5B;;;;"}