{"version":3,"file":"PrivateFieldsWrapper-Bu0ixFm7.js","sources":["../../../node_modules/@mui/icons-material/esm/LockOutlined.js","../../../frontend/src/Components/DesignSystem/PrivateFieldsWrapper/PrivateFieldsWrapper.tsx"],"sourcesContent":["\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2M9 6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9zm9 14H6V10h12zm-6-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2\"\n}), 'LockOutlined');","import React from 'react';\nimport { Box } from '@mui/material';\nimport LockOutlinedIcon from '@mui/icons-material/LockOutlined';\n\nimport Alert from '../Alert';\nimport { every } from 'lodash';\n\nfunction PrivateFieldsWrapper({ children, alertText }: any) {\n if (!children) {\n return null;\n }\n\n if (every(children, (child: any) => !child)) {\n return null;\n }\n\n return (\n ({\n border: `1px solid ${theme.palette.primary.main}`,\n borderRadius: theme.shape.borderRadius / 2,\n mb: 3,\n padding: theme.spacing(3),\n })}\n >\n {alertText && (\n \n }>\n {alertText}\n \n \n )}\n\n {children}\n \n );\n}\n\nexport default PrivateFieldsWrapper;\n"],"names":["LockOutlined","createSvgIcon","_jsx","PrivateFieldsWrapper","_ref","children","alertText","every","child","React","createElement","Box","sx","theme","border","concat","palette","primary","main","borderRadius","shape","mb","padding","spacing","Alert","severity","icon","LockOutlinedIcon"],"mappings":"oHAIA,MAAAA,EAAeC,EAA2BC,EAAI,IAAC,OAAQ,CACrD,EAAG,sNACL,CAAC,EAAG,cAAc,ECClB,SAASC,EAAoBC,EAA+B,CAAA,IAA5BC,EAAQD,EAARC,SAAUC,EAASF,EAATE,UAKpCC,MAJA,CAACF,GAIDE,EAAAA,MAAMF,EAAU,SAACG,EAAU,CAAA,MAAK,CAACA,CAAAA,CAAK,EACjC,KAIPC,EAAAC,cAACC,EAAG,CACFC,GAAI,SAACC,EAAU,CAAM,MAAA,CACnBC,OAAM,aAAAC,OAAeF,EAAMG,QAAQC,QAAQC,IAAI,EAC/CC,aAAcN,EAAMO,MAAMD,aAAe,EACzCE,GAAI,EACJC,QAAST,EAAMU,QAAQ,CAAC,CAC1B,CAAA,CAECjB,EAAAA,GACCI,EAAAA,cAACC,EAAG,CAACC,GAAI,CAAES,GAAI,CAAA,CAAE,EACfX,EAAAA,cAACc,EAAK,CAACC,SAAS,OAAOC,KAAMjB,EAAAC,cAACiB,EAAkB,IAAA,CAAA,EAC7CrB,CACI,CACJ,EAGND,CACE,CAET","x_google_ignoreList":[0]}