{"version":3,"file":"EmptyState-DMW4__58.js","sources":["../../../frontend/src/Components/DesignSystem/EmptyState/EmptyState.tsx"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { Box, Grid2 as Grid } from '@mui/material';\n\nfunction EmptyState({\n icon,\n content,\n action = null,\n secondaryAction,\n error = false,\n ratio = 'auto',\n ...props\n}: any) {\n return (\n ({\n border: `1px dashed ${error ? theme.palette.error.main : theme.palette.divider}`,\n borderRadius: theme.shape.borderRadius / 2,\n padding: theme.spacing(6),\n maxWidth: '100%',\n margin: 0,\n textAlign: 'center',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n aspectRatio: ratio.replace(':', '/'),\n ...(props.onClick || props.onDrop || props.onDragOver\n ? {\n '&:hover': {\n cursor: 'pointer',\n borderColor: theme.palette.primary.main,\n color: theme.palette.primary.main,\n backgroundColor: theme.palette.action.hover,\n },\n }\n : {}),\n })}\n {...props}\n >\n \n {icon && (\n \n {icon}\n \n )}\n\n {content && {content}}\n\n {(action || secondaryAction) && (\n \n {action}\n {secondaryAction && secondaryAction}\n \n )}\n \n \n );\n}\n\nEmptyState.propTypes = {\n icon: PropTypes.element,\n content: PropTypes.element,\n action: PropTypes.element,\n secondaryAction: PropTypes.element,\n error: PropTypes.bool,\n component: PropTypes.elementType,\n};\n\nexport default EmptyState;\n"],"names":["EmptyState","_ref","icon","content","_ref$action","action","secondaryAction","_ref$error","error","_ref$ratio","ratio","props","_objectWithoutProperties","_excluded","React","createElement","Box","_extends","sx","theme","_objectSpread","border","concat","palette","main","divider","borderRadius","shape","padding","spacing","maxWidth","margin","textAlign","display","alignItems","justifyContent","aspectRatio","replace","onClick","onDrop","onDragOver","cursor","borderColor","primary","color","backgroundColor","hover","Grid","container","direction","size","propTypes","PropTypes","element","bool","component","elementType"],"mappings":"w7DAIA,SAASA,EAAUC,EAQX,CAAA,IAPNC,EAAID,EAAJC,KACAC,EAAOF,EAAPE,QAAOC,EAAAH,EACPI,OAAAA,EAA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