{"version":3,"file":"FlagBlock.mjs","names":["React","makeStyles","AlertTypeEnum","default","backgroundColor","success","error","useStyles","theme","rootContainer","boxSizing","display","flexDirection","justifyContent","alignItems","gap","spacing","width","props","height","alertType","toLowerCase","palette","background","paper","borderWidth","borderStyle","borderColor","textContainer","padding","FlagBlock","$","_c","children","style","classes","t0","t1"],"sources":["../../src/inquiry/FlagBlock.jsx"],"sourcesContent":["import React from 'react';\nimport { makeStyles } from '@material-ui/core';\n\nconst AlertTypeEnum = {\n  default: {\n    backgroundColor: 'none'\n  },\n  success: {\n    backgroundColor: '#F3FAF3'\n  },\n  error: {\n    backgroundColor: '#FDF7F6'\n  }\n};\n\nconst useStyles = makeStyles((theme) => ({\n  rootContainer: {\n    boxSizing: 'border-box',\n    display: 'flex',\n    flexDirection: 'column',\n    justifyContent: 'center',\n    alignItems: 'center',\n    gap: theme.spacing(1.25),\n    width: (props) => (props?.width ? props?.width : '100%'),\n    height: (props) => (props?.height ? props?.height : '77px'),\n    backgroundColor: (props) =>\n      AlertTypeEnum[props?.alertType?.toLowerCase()]?.backgroundColor ||\n      theme.palette.background.paper,\n    borderWidth: '0px 1px',\n    borderStyle: 'solid',\n    borderColor: 'rgba(0, 0, 0, 0.12)'\n  },\n  textContainer: {\n    display: 'flex',\n    flexDirection: 'column',\n    alignItems: 'center',\n    padding: '0px'\n  }\n}));\n\n/**\n * `FlagBlock` component\n */\nexport const FlagBlock = (props) => {\n  const { children, style } = props;\n  const classes = useStyles(props);\n\n  return (\n    <div className={classes.rootContainer} style={style}>\n      <div className={classes.textContainer}>{children}</div>\n    </div>\n  );\n};\n"],"mappings":";;;;AAGA,MAAME,gBAAgB;CACpBC,SAAS,EACPC,iBAAiB,QAClB;CACDC,SAAS,EACPD,iBAAiB,WAClB;CACDE,OAAO,EACLF,iBAAiB,WACnB;CACD;AAED,MAAMG,YAAYN,YAAYO,WAAW;CACvCC,eAAe;EACbC,WAAW;EACXC,SAAS;EACTC,eAAe;EACfC,gBAAgB;EA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