{"version":3,"sources":["Scan.js","DetalheIdentidade2.js","ProjetoIncendio2.0.js","ProjetoIncendio2.1.js","public_key.js","public_keyV1.js","assets/BRASAO.png","theme/palette.js","theme/typography.js","theme/overrides/index.js","theme/overrides/MuiButton.js","theme/overrides/MuiCardActions.js","theme/overrides/MuiCardContent.js","theme/overrides/MuiCardHeader.js","theme/overrides/MuiChip.js","theme/overrides/MuiIconButton.js","theme/overrides/MuiInputBase.js","theme/overrides/MuiLinearProgress.js","theme/overrides/MuiListItemIcon.js","theme/overrides/MuiOutlinedInput.js","theme/overrides/MuiPaper.js","theme/overrides/MuiTableHead.js","theme/overrides/MuiTableCell.js","theme/overrides/MuiTableRow.js","theme/overrides/MuiToggleButton.js","theme/overrides/MuiTypography.js","theme/index.js","App.js","serviceWorker.js","index.js"],"names":["ascii85","require","useStyles","makeStyles","theme","root","flexGrow","padding","spacing","maxWidth","width","publicKey","publicKeyV1","QRCodeScanner","classes","dado","setDado","useState","showDoc","setShowDoc","decryptString","encrypted","simular","arguments","length","undefined","decrypted","encrypted2","str","JSON","parse","e","isJson","jsonDecrypted","decryptV1","d","h","t","decode","crypto","publicDecrypt","meuNovoDadoQRCODE","toString","split","console","error","handleScan","data","data2","handleError","err","input","arrCrypt","output","forEach","chunk","Buffer","from","log","concat","_jsx","className","children","returnQRCODE","previewStyle","height","pjson","_jsxs","Grid","container","alignItems","item","xs","img","alt","src","BRASAO","Typography","variant","align","version","qrcode","QrReader","style","delay","onError","onScan","facingMode","maxImageSize","replace","ProjetoIncendio20","ProjetoIncendio21","DetalheIdentidade2","alert","display","flexWrap","marginBottom","content","justifyContent","breakpoints","down","paddingBottom","header","flexBasis","avatar","marginRight","stats","actions","ProjectCard","props","rest","date","Date","dateFormatado","toLocaleString","Card","clsx","CardContent","Avatar","Link","color","noWrap","to","Button","size","onClick","href","target","rel","_publicKey","white","palette","black","primary","contrastText","dark","colors","indigo","main","light","secondary","blue","red","text","blueGrey","link","icon","background","default","paper","divider","grey","typography","h1","fontWeight","fontSize","letterSpacing","lineHeight","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","button","caption","overline","textTransform","muiComponents","MuiButton","contained","boxShadow","backgroundColor","MuiCardActions","MuiCardContent","MuiCardHeader","MuiChip","deletable","MuiIconButton","MuiInputBase","opacity","MuiLinearProgress","borderRadius","overflow","colorPrimary","MuiListItemIcon","minWidth","MuiOutlinedInput","notchedOutline","borderColor","MuiPaper","elevation1","MuiTableHead","MuiTableCell","borderBottom","MuiTableRow","MuiToggleButton","borderTopLeftRadius","borderBottomLeftRadius","borderTopRightRadius","borderBottomRightRadius","MuiTypography","gutterBottom","createMuiTheme","overrides","App","ThemeProvider","Scan","isLocalhost","Boolean","window","location","hostname","match","registerValidSW","swUrl","config","navigator","serviceWorker","register","then","registration","onupdatefound","installingWorker","installing","onstatechange","state","controller","onUpdate","onSuccess","catch","ReactDOM","render","React","StrictMode","document","getElementById","URL","process","origin","addEventListener","fetch","headers","response","contentType","get","status","indexOf","ready","unregister","reload","checkValidServiceWorker"],"mappings":"mGAAA,kHAUIA,EAAUC,EAAQ,KAEtB,MAAMC,EAAYC,aAAYC,IAAK,CACjCC,KAAM,CACJC,SAAU,EACVC,QAASH,EAAMI,QAAQ,GACvBC,SAAU,QACVC,MAAO,cAIL,UAAEC,GAAcV,EAAQ,MACxB,YAAEW,GAAgBX,EAAQ,KAwIjBY,IAtIOA,KACpB,MAAMC,EAAUZ,KAETa,EAAMC,GAAWC,oBAAS,IAC1BC,EAASC,GAAcF,qBAW9B,MAAMG,EAAgB,SAACC,GAAgC,IAArBC,EAAOC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,IAAAA,UAAA,GACvC,IACE,IAAIG,EACJ,GAAIJ,EACFI,EAAYL,MACP,CACL,IAAIM,EACJ,GAhBN,SAAgBC,GACd,IACEC,KAAKC,MAAMF,EACb,CAAE,MAAOG,GACP,OAAO,CACT,CACA,OAAO,CACT,CASUC,CAAOX,GAAY,CACrB,IAAIY,EAAgBC,EA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EV,SAAiCO,EAAOC,GAEtCyB,MAAM1B,EAAO,CACX2B,QAAS,CAAE,iBAAkB,YAE5BtB,MAAKuB,IAEJ,MAAMC,EAAcD,EAASD,QAAQG,IAAI,gBAEnB,MAApBF,EAASG,QACO,MAAfF,IAA8D,IAAvCA,EAAYG,QAAQ,cAG5C9B,UAAUC,cAAc8B,MAAM5B,MAAKC,IACjCA,EAAa4B,aAAa7B,MAAK,KAC7BV,OAAOC,SAASuC,QAAQ,GACxB,IAIJpC,EAAgBC,EAAOC,EACzB,IAEDc,OAAM,KACL7L,QAAQc,IACN,gEACD,GAEP,CA1FQoM,CAAwBpC,EAAOC,GAI/BC,UAAUC,cAAc8B,MAAM5B,MAAK,KACjCnL,QAAQc,IACN,4GAED,KAIH+J,EAAgBC,EAAOC,EACzB,GAEJ,CACF,CCtCAE,E","file":"static/js/main.e85e4fd7.chunk.js","sourcesContent":["import React, { useState } from \"react\";\nimport QrReader from \"@cbmdf/react-qr-scanner\";\nimport crypto from \"crypto\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport Grid from \"@material-ui/core/Grid\";\nimport BRASAO from \"./assets/BRASAO.png\";\nimport DetalheIdentidade2 from \"./DetalheIdentidade2\";\nimport Typography from \"@material-ui/core/Typography\";\nimport ProjetoIncendio20 from \"./ProjetoIncendio2.0\";\nimport ProjetoIncendio21 from \"./ProjetoIncendio2.1\";\nvar ascii85 = require(\"ascii85\");\n\nconst useStyles = makeStyles((theme) => ({\n root: {\n flexGrow: 1,\n padding: theme.spacing(1),\n maxWidth: \"360px\",\n width: \"360px\",\n },\n}));\n\nconst { publicKey } = require(\"./public_key\");\nconst { publicKeyV1 } = require(\"./public_keyV1\");\n\nconst QRCodeScanner = () => {\n const classes = useStyles();\n\n const [dado, setDado] = useState(false);\n const [showDoc, setShowDoc] = useState();\n\n function isJson(str) {\n try {\n JSON.parse(str);\n } catch (e) {\n return false;\n }\n return true;\n }\n\n const decryptString = (encrypted, simular = false) => {\n try {\n let decrypted;\n if (simular) {\n decrypted = encrypted;\n } else {\n let encrypted2;\n if (isJson(encrypted)) {\n let jsonDecrypted = decryptV1(encrypted);\n\n decrypted =\n jsonDecrypted.d + \";\" + jsonDecrypted.h + \";\" + jsonDecrypted.t;\n } else {\n encrypted2 = ascii85.decode(encrypted);\n decrypted = crypto.publicDecrypt(publicKey, encrypted2);\n }\n }\n\n let meuNovoDadoQRCODE = decrypted.toString().split(\";\");\n\n setShowDoc(meuNovoDadoQRCODE[0]);\n\n setDado(meuNovoDadoQRCODE);\n } catch (e) {\n console.error(e);\n }\n };\n\n const handleScan = (data, data2) => {\n if (data) {\n decryptString(data);\n }\n };\n\n const handleError = (err) => {\n console.error(err);\n };\n\n const decryptV1 = (input) => {\n const jsonInput = JSON.parse(input);\n\n const data = jsonInput.data;\n\n // Cria um array a partir do data CSV\n var arrCrypt = data.split(\",\");\n\n // Decriptografa cada parte usando forEach (em vez de map)\n let output = \"\";\n\n arrCrypt.forEach((chunk) => {\n // Alterado para forEach\n let encrypted = Buffer.from(chunk, \"base64\");\n console.log(publicKeyV1);\n const decrypted = crypto.publicDecrypt(publicKeyV1, encrypted);\n output = output.concat(decrypted);\n });\n\n return JSON.parse(output);\n };\n\n const returnQRCODE = () => {\n const previewStyle = {\n height: 340,\n width: 340,\n };\n if (!dado) {\n var pjson = require(\"../package.json\");\n return (\n
\n \n \n \n \n \n \n SisCAD - Certificador de Autenticidade de Documentos do CBMDF v.\n {pjson.version}\n \n \n \n \n \n \n \n \n
\n );\n } else {\n const tipo = showDoc.replace(/\"/g, \"\");\n\n switch (tipo) {\n case \"2.0\":\n return ;\n case \"2.1\":\n return ;\n case \"3\":\n return ;\n default:\n alert(\"Documento não reconhecido.\");\n break;\n }\n }\n };\n\n return
{returnQRCODE()}
;\n};\n\nexport default QRCodeScanner;\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport clsx from \"clsx\";\n\nimport { makeStyles } from \"@material-ui/core/styles\";\n\nimport {\n Avatar,\n Button,\n Card,\n CardContent,\n Link,\n Typography,\n} from \"@material-ui/core\";\n\nconst useStyles = makeStyles((theme) => ({\n root: {\n display: \"flex\",\n alignItems: \"center\",\n flexWrap: \"wrap\",\n marginBottom: theme.spacing(1),\n },\n content: {\n padding: theme.spacing(1),\n flexGrow: 1,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"space-between\",\n [theme.breakpoints.down(\"sm\")]: {\n width: \"100%\",\n flexWrap: \"wrap\",\n },\n \"&:last-child\": {\n paddingBottom: theme.spacing(1),\n },\n },\n header: {\n maxWidth: \"100%\",\n alignItems: \"center\",\n width: 240,\n display: \"flex\",\n [theme.breakpoints.down(\"sm\")]: {\n marginBottom: theme.spacing(1),\n flexBasis: \"100%\",\n },\n },\n avatar: {\n marginRight: theme.spacing(2),\n width: theme.spacing(10),\n height: theme.spacing(10),\n },\n stats: {\n padding: theme.spacing(1),\n [theme.breakpoints.down(\"sm\")]: {\n flexBasis: \"50%\",\n },\n },\n actions: {\n padding: theme.spacing(1),\n [theme.breakpoints.down(\"sm\")]: {\n flexBasis: \"50%\",\n },\n },\n}));\n\nconst ProjectCard = (props) => {\n const { className, ...rest } = props;\n\n const classes = useStyles();\n\n let date = new Date(props.dado[11] * 1000);\n let dateFormatado = new Date(date).toLocaleString(\"pt-BR\");\n\n return (\n \n \n
\n \n
\n \n Identidade - CBMDF\n \n Em fase EXPERIMENTAL\n
\n
\n
\n {props.dado[3]}\n Portador\n
\n
\n {props.dado[1]}\n Matrícula\n
\n
\n {props.dado[6]}\n Posto/Graduação\n
\n
\n {props.dado[7]}\n Registro\n
\n
\n {props.dado[4]}\n Data de nascimento\n
\n
\n {props.dado[2]}\n Data de inclusão\n
\n
\n {props.dado[5]}\n Tipo sanguíneo\n
\n
\n {props.dado[9]}\n Data de expedição\n
\n
\n {props.dado[10]}\n Hash\n
\n
\n {dateFormatado}\n Data do selo de Autenticação\n
\n
\n props.setDado()}\n >\n QRCODE\n \n
\n
\n
\n );\n};\n\nProjectCard.propTypes = {\n className: PropTypes.string,\n project: PropTypes.object.isRequired,\n};\n\nexport default ProjectCard;\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport clsx from \"clsx\";\nimport BRASAO from \"./assets/BRASAO.png\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport \"moment/locale/pt-br\";\nimport {\n Avatar,\n Button,\n Card,\n CardContent,\n Link,\n Typography,\n} from \"@material-ui/core\";\n\nconst useStyles = makeStyles((theme) => ({\n root: {\n display: \"flex\",\n alignItems: \"center\",\n flexWrap: \"wrap\",\n marginBottom: theme.spacing(1),\n },\n content: {\n padding: theme.spacing(1),\n flexGrow: 1,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"space-between\",\n [theme.breakpoints.down(\"sm\")]: {\n width: \"100%\",\n flexWrap: \"wrap\",\n },\n \"&:last-child\": {\n paddingBottom: theme.spacing(1),\n },\n },\n header: {\n maxWidth: \"100%\",\n width: 240,\n alignItems: \"center\",\n display: \"flex\",\n [theme.breakpoints.down(\"sm\")]: {\n marginBottom: theme.spacing(1),\n flexBasis: \"100%\",\n },\n },\n avatar: {\n marginRight: theme.spacing(2),\n width: theme.spacing(10),\n height: theme.spacing(10),\n },\n stats: {\n padding: theme.spacing(1),\n [theme.breakpoints.down(\"sm\")]: {\n flexBasis: \"50%\",\n },\n },\n actions: {\n padding: theme.spacing(1),\n [theme.breakpoints.down(\"sm\")]: {\n flexBasis: \"50%\",\n },\n },\n}));\n\nconst ProjectCard = (props) => {\n const { className, ...rest } = props;\n\n const classes = useStyles();\n\n let date = new Date(props.dado[11] * 1000);\n let dateFormatado = new Date(date).toLocaleString(\"pt-BR\");\n\n return (\n \n \n
\n \n
\n \n Projeto de Incêndio\n \n CBMDF\n
\n
\n
\n {props.dado[1]}\n Número do processo SCIP:\n
\n
\n {props.dado[2]}\n Endereço da Edificação:\n
\n
\n {props.dado[3]}\n Proprietário / CPF / CNPJ:\n
\n
\n {props.dado[4]}\n Altura do último pavimento:\n
\n
\n {props.dado[5]}\n Risco / Área total:\n
\n
\n {props.dado[6]}\n \n Número de pavimentos acima e abaixo do logradouro:\n \n
\n
\n {props.dado[7]}\n Destinação:\n
\n
\n {props.dado[8]}\n Medidas aprovadas:\n
\n
\n \n \n Clique aqui\n \n \n Link para as pranchas\n
\n
\n {props.dado[10]}\n Hash\n
\n
\n {dateFormatado}\n Data do selo de Autenticação\n
\n
\n props.setDado()}\n >\n QRCODE\n \n
\n
\n
\n );\n};\n\nProjectCard.propTypes = {\n className: PropTypes.string,\n project: PropTypes.object.isRequired,\n};\n\nexport default ProjectCard;\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport clsx from \"clsx\";\nimport BRASAO from \"./assets/BRASAO.png\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport \"moment/locale/pt-br\";\nimport {\n Avatar,\n Button,\n Card,\n CardContent,\n Link,\n Typography,\n} from \"@material-ui/core\";\n\nconst useStyles = makeStyles((theme) => ({\n root: {\n display: \"flex\",\n alignItems: \"center\",\n flexWrap: \"wrap\",\n marginBottom: theme.spacing(1),\n },\n content: {\n padding: theme.spacing(1),\n flexGrow: 1,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"space-between\",\n [theme.breakpoints.down(\"sm\")]: {\n width: \"100%\",\n flexWrap: \"wrap\",\n },\n \"&:last-child\": {\n paddingBottom: theme.spacing(1),\n },\n },\n header: {\n maxWidth: \"100%\",\n width: 240,\n alignItems: \"center\",\n display: \"flex\",\n [theme.breakpoints.down(\"sm\")]: {\n marginBottom: theme.spacing(1),\n flexBasis: \"100%\",\n },\n },\n avatar: {\n marginRight: theme.spacing(2),\n width: theme.spacing(10),\n height: theme.spacing(10),\n },\n stats: {\n padding: theme.spacing(1),\n [theme.breakpoints.down(\"sm\")]: {\n flexBasis: \"50%\",\n },\n },\n actions: {\n padding: theme.spacing(1),\n [theme.breakpoints.down(\"sm\")]: {\n flexBasis: \"50%\",\n },\n },\n}));\n\nconst ProjectCard = (props) => {\n const { className, ...rest } = props;\n\n const classes = useStyles();\n\n let date = new Date(props.dado[9] * 1000);\n let dateFormatado = new Date(date).toLocaleString(\"pt-BR\");\n\n return (\n \n \n
\n \n
\n \n Projeto de Incêndio\n \n CBMDF\n
\n
\n
\n {props.dado[1]}\n Número do processo SCIP:\n
\n
\n {props.dado[2]}\n Endereço da Edificação:\n
\n
\n {props.dado[3]}\n Proprietário / CPF / CNPJ:\n
\n
\n {props.dado[4]}\n Altura do último pavimento:\n
\n
\n {props.dado[5]}\n \n Número de pavimentos acima e abaixo do logradouro:\n \n
\n
\n {props.dado[6]}\n Medidas aprovadas:\n
\n
\n \n \n Clique aqui\n \n \n Link para as pranchas\n
\n
\n {props.dado[8]}\n Hash\n
\n
\n {dateFormatado}\n Data do selo de Autenticação\n
\n
\n props.setDado()}\n >\n QRCODE\n \n
\n
\n
\n );\n};\n\nProjectCard.propTypes = {\n className: PropTypes.string,\n project: PropTypes.object.isRequired,\n};\n\nexport default ProjectCard;\n","const publicKey = `-----BEGIN PUBLIC KEY-----\nMIIDojANBgkqhkiG9w0BAQEFAAOCA48AMIIDigKCA4EA33g4nSXab775bAzVQjyi\n4TjEB6fRIPqH20DoN/RtxAakDvE2hxmbOePS27o3WuvNSIEYH7pEIrzEbvCVTOTP\n2fWsyYGlQMYVnFjknroISdbGvXOvqZ+HzbH8Of5dhF6mJ1Nrmd3lDdRylAMabPmB\ndH47Z/+hthSBJ3S9hACk1PcR9oli3Ly/8s15Su8MM5fELE2JY/oLzjan4k1ZNIeX\nGCbo4Q2IEJxH52SRufRsiLnF5RuMGDBOySpKIwTG2vEJD89kzTu/jqLTpL5NQThy\nbUpL8AE8ZSCJNMyaMDNBHrFz6sr310YM2t3sbEnkI76BvO6C7A7DDuhsNmJaM595\nUQ+o/HHkp+zuFBc1VbG41w2QGCysF9/x0OJXnY9buuVEMj7sEqTSbIhFAoTUf4jQ\nIZH1wamTb5ffY9Cq7u+X+m0x25BhgxwUF92iTBTj42p6NsJGYIi36lNRWj+ey16v\nQxVy/1KY0aUpQbnjY3jRdHYUH1xsUBRfy+gUV9fz1k+XsdnHNEg25LoxQVKR8Bmd\n8acMoMAWsYKFcz1LICofPV9jU3p5GDxrac002i+4sYEO7FhQXCnAueU6noo+zaoa\nhNRAYDZ3ancy/MpixSi1dfInok7Q35KG5F0VpHrXSkkxRL95d9G+mAU2c2t2oZGB\nFfg9OyRWOwlQJe7O0B/BgosI+JR2sczattgT4v5F6rxxc7XlKEm+dRpDDZQ+1cGw\n/JAgun5YV44AvkwegypojmkSinIHrBJgDO2m0fs6FmTDf7gdyEXISdK5cLNgzqaV\nZ2v8XMFfCrGDHJLQIaKRaSARBYDZaR4NOJmmbotGswnEo0DOPFyvRRcVuNLdilYz\nW9zr7nOmqCsGpugyhjHfpxeMHNL5vOeXZaezK0pdOhkhme/UDVjG9y8U1FETYtUa\n8R650ymNpqo8n2C+eG9phm9MjF/wgris6ydsvfflc49J+u5ggzcTJLI+jXLBn3wR\nrQyYaGubZ1vrwt7fT5YV3pzvev7YnMBuXs0EBQzptBxzfKN0vF9bz9Id8JE1j2ab\nlqDWKysdplafIIeR+X1R/D0jftVERqFXiFAV87zS8+ohJuFO7+7sS1TSjFzIkaVS\nvCdNgHX5MrAMAYrQAObDfX0FlZQ5rIsc2MSttubjqOQ+VyDOExuR3WAR0RiQC3yk\no8fjzlo3KYwvWkaGwMcLFTkCAwEAAQ==\n-----END PUBLIC KEY-----`;\nconst _publicKey = publicKey;\nexport { _publicKey as publicKey };\n","const publicKey = `-----BEGIN PUBLIC KEY-----\nMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAtTKzCgmch5HaYB8mFUHG\n1NBnp5TO7OyyxxOZpKTp7IbirL+Mn5Acf/CTDtFemySBRwUF3TUMqKThxUSnGByv\neynleIB9tYehxZbiSp1xoWf/MkWGxe3aWzHjVOqOdToJMtxgFkYBna41dgUoskxO\n7o5PIjXABuSKHoNMsaguLk6rUpom7I5D/YD6kh5DDuXtFA62Lxm3wOSsBFlyi44I\n8AhOSuL3Eu9/bVNrGWbV6+L69A8WLnSmoKYl6yG3bYPYah73FuGjqBPv4x1chpU2\nX66Df/xA7bnsvPVgCO+Noa5Fx//MlDQzust5p2rZ6EvIm7GrC+GIJwhWaB7U4bc4\nq57Q7fSZTrG8Yq4jKAjSoVk8Y0lQEXVp0BLYEHCAGWzIOHY+cS7Ya39+QremjPSC\ncBdTxUDDms8HS5qwHRht/OouQgUMS1QLGtSvQRhsAStM2uqLrEIxE8Hc84H0xBCx\nMaf1Yaa1kIfsVsACJ29mSVHQc9/PeYWN2TwlU2BDHa8CnjFNqBacgIsYz+BQgzzn\nbNcg8rMPTkyj0D4rnBJcXPqoK/flKGcj9InLNaTIfL7qztu75yPPX1b/L4gkITsP\ndy9hyWcNMauhb0iYYlrExBiDB29NMEX/S7h5dvqu5FhQpbqgQA43U4V//XWkKjqY\npAE9boKfg/mDTTIx9nNFvwUCAwEAAQ==\n-----END PUBLIC KEY-----`;\nconst _publicKey = publicKey;\nexport { _publicKey as publicKeyV1 };\n","export default __webpack_public_path__ + \"static/media/BRASAO.a97c286b.png\";","import { colors } from \"@material-ui/core\";\n\nconst white = \"#FFFFFF\";\nconst black = \"#000000\";\n\nconst palette = {\n black,\n white,\n primary: {\n contrastText: white,\n dark: colors.indigo[900],\n main: colors.indigo[500],\n light: colors.indigo[100],\n },\n secondary: {\n contrastText: white,\n dark: colors.blue[900],\n main: colors.blue[\"A400\"],\n light: colors.blue[\"A400\"],\n },\n error: {\n contrastText: white,\n dark: colors.red[900],\n main: colors.red[600],\n light: colors.red[400],\n },\n text: {\n primary: colors.blueGrey[900],\n secondary: colors.blueGrey[600],\n link: colors.blue[600],\n },\n link: colors.blue[800],\n icon: colors.blueGrey[600],\n background: {\n default: \"#F4F6F8\",\n paper: white,\n },\n divider: colors.grey[200],\n};\n\nexport default palette;\n","import palette from \"./palette\";\n\nconst typography = {\n h1: {\n color: palette.text.primary,\n fontWeight: 500,\n fontSize: \"35px\",\n letterSpacing: \"-0.24px\",\n lineHeight: \"40px\",\n },\n h2: {\n color: palette.text.primary,\n fontWeight: 500,\n fontSize: \"29px\",\n letterSpacing: \"-0.24px\",\n lineHeight: \"32px\",\n },\n h3: {\n color: palette.text.primary,\n fontWeight: 500,\n fontSize: \"24px\",\n letterSpacing: \"-0.06px\",\n lineHeight: \"28px\",\n },\n h4: {\n color: palette.text.primary,\n fontWeight: 500,\n fontSize: \"20px\",\n letterSpacing: \"-0.06px\",\n lineHeight: \"24px\",\n },\n h5: {\n color: palette.text.primary,\n fontWeight: 500,\n fontSize: \"16px\",\n letterSpacing: \"-0.05px\",\n lineHeight: \"20px\",\n },\n h6: {\n color: palette.text.primary,\n fontWeight: 500,\n fontSize: \"14px\",\n letterSpacing: \"-0.05px\",\n lineHeight: \"20px\",\n },\n subtitle1: {\n color: palette.text.primary,\n fontSize: \"16px\",\n letterSpacing: \"-0.05px\",\n lineHeight: \"25px\",\n },\n subtitle2: {\n color: palette.text.secondary,\n fontWeight: 400,\n fontSize: \"14px\",\n letterSpacing: \"-0.05px\",\n lineHeight: \"21px\",\n },\n body1: {\n color: palette.text.primary,\n fontSize: \"14px\",\n letterSpacing: \"-0.05px\",\n lineHeight: \"21px\",\n },\n body2: {\n color: palette.text.secondary,\n fontSize: \"12px\",\n letterSpacing: \"-0.04px\",\n lineHeight: \"18px\",\n },\n button: {\n color: palette.text.primary,\n fontSize: \"14px\",\n },\n caption: {\n color: palette.text.secondary,\n fontSize: \"11px\",\n letterSpacing: \"0.33px\",\n lineHeight: \"13px\",\n },\n overline: {\n color: palette.text.secondary,\n fontSize: \"11px\",\n fontWeight: 500,\n letterSpacing: \"0.33px\",\n lineHeight: \"13px\",\n textTransform: \"uppercase\",\n },\n};\n\nexport default typography;\n","import MuiButton from \"./MuiButton\";\nimport MuiCardActions from \"./MuiCardActions\";\nimport MuiCardContent from \"./MuiCardContent\";\nimport MuiCardHeader from \"./MuiCardHeader\";\nimport MuiChip from \"./MuiChip\";\nimport MuiIconButton from \"./MuiIconButton\";\nimport MuiInputBase from \"./MuiInputBase\";\nimport MuiLinearProgress from \"./MuiLinearProgress\";\nimport MuiListItemIcon from \"./MuiListItemIcon\";\nimport MuiOutlinedInput from \"./MuiOutlinedInput\";\nimport MuiPaper from \"./MuiPaper\";\nimport MuiTableHead from \"./MuiTableHead\";\nimport MuiTableCell from \"./MuiTableCell\";\nimport MuiTableRow from \"./MuiTableRow\";\nimport MuiToggleButton from \"./MuiToggleButton\";\nimport MuiTypography from \"./MuiTypography\";\n\nconst muiComponents = {\n MuiButton,\n MuiCardActions,\n MuiCardContent,\n MuiCardHeader,\n MuiChip,\n MuiIconButton,\n MuiInputBase,\n MuiLinearProgress,\n MuiListItemIcon,\n MuiOutlinedInput,\n MuiPaper,\n MuiTableHead,\n MuiTableCell,\n MuiTableRow,\n MuiToggleButton,\n MuiTypography,\n};\n\nexport default muiComponents;\n","const buttonStyles = {\n contained: {\n boxShadow:\n \"0 1px 1px 0 rgba(0,0,0,0.14), 0 2px 1px -1px rgba(0,0,0,0.12), 0 1px 3px 0 rgba(0,0,0,0.20)\",\n backgroundColor: \"#FFFFFF\",\n },\n};\n\nexport default buttonStyles;\n","const muiCardActionsOverrides = {\n root: {\n padding: \"16px 24px\",\n },\n};\n\nexport default muiCardActionsOverrides;\n","const styles = {\n root: {\n padding: 24,\n },\n};\n\nexport default styles;\n","const styles = {\n root: {\n padding: \"16px 24px\",\n },\n};\n\nexport default styles;\n","import { colors } from \"@material-ui/core\";\n\nconst styles = {\n root: {\n backgroundColor: colors.blueGrey[50],\n color: colors.blueGrey[900],\n },\n deletable: {\n \"&:focus\": {\n backgroundColor: colors.blueGrey[100],\n },\n },\n};\n\nexport default styles;\n","import palette from \"../palette\";\n\nconst MuiIconButton = {\n root: {\n color: palette.icon,\n \"&:hover\": {\n backgroundColor: \"rgba(0, 0, 0, 0.03)\",\n },\n },\n};\n\nexport default MuiIconButton;\n","import palette from \"../palette\";\n\nconst styles = {\n root: {},\n input: {\n \"&::placeholder\": {\n opacity: 1,\n color: palette.text.secondary,\n },\n },\n};\n\nexport default styles;\n","import { colors } from \"@material-ui/core\";\n\nconst styles = {\n root: {\n borderRadius: 3,\n overflow: \"hidden\",\n },\n colorPrimary: {\n backgroundColor: colors.blueGrey[50],\n },\n};\n\nexport default styles;\n","import palette from \"../palette\";\n\nconst styles = {\n root: {\n color: palette.icon,\n minWidth: 32,\n },\n};\n\nexport default styles;\n","const styles = {\n root: {},\n notchedOutline: {\n borderColor: \"rgba(0,0,0,0.15)\",\n },\n};\n\nexport default styles;\n","const styles = {\n root: {},\n elevation1: {\n boxShadow: \"0 0 0 1px rgba(63,63,68,0.05), 0 1px 3px 0 rgba(63,63,68,0.15)\",\n },\n};\n\nexport default styles;\n","import { colors } from \"@material-ui/core\";\n\nconst styles = {\n root: {\n backgroundColor: colors.grey[50],\n },\n};\n\nexport default styles;\n","import palette from \"../palette\";\nimport typography from \"../typography\";\n\nconst styles = {\n root: {\n ...typography.body1,\n borderBottom: `1px solid ${palette.divider}`,\n },\n};\n\nexport default styles;\n","import palette from \"../palette\";\n\nconst styles = {\n root: {\n \"&$selected\": {\n backgroundColor: palette.background.default,\n },\n \"&$hover\": {\n \"&:hover\": {\n backgroundColor: palette.background.default,\n },\n },\n },\n};\n\nexport default styles;\n","import { colors } from \"@material-ui/core\";\nimport palette from \"../palette\";\n\nconst styles = {\n root: {\n color: palette.icon,\n \"&:hover\": {\n backgroundColor: colors.grey[100],\n },\n \"&$selected\": {\n backgroundColor: colors.grey[50],\n color: palette.primary.main,\n \"&:hover\": {\n backgroundColor: colors.grey[100],\n },\n },\n \"&:first-child\": {\n borderTopLeftRadius: 4,\n borderBottomLeftRadius: 4,\n },\n \"&:last-child\": {\n borderTopRightRadius: 4,\n borderBottomRightRadius: 4,\n },\n },\n};\n\nexport default styles;\n","const styles = {\n gutterBottom: {\n marginBottom: 8,\n },\n};\n\nexport default styles;\n","import { createMuiTheme } from \"@material-ui/core\";\n\nimport palette from \"./palette\";\nimport typography from \"./typography\";\nimport overrides from \"./overrides\";\n\nconst theme = createMuiTheme({\n palette,\n typography,\n overrides,\n});\n\nexport default theme;\n","import React from \"react\";\nimport Scan from \"./Scan\";\nimport \"./App.css\";\nimport theme from \"./theme\";\nimport { ThemeProvider } from \"@material-ui/styles\";\nimport \"./assets/scss/index.scss\";\nconst App = () => (\n \n \n \n);\n\nexport default App;\n","// This optional code is used to register a service worker.\n// register() is not called by default.\n\n// This lets the app load faster on subsequent visits in production, and gives\n// it offline capabilities. However, it also means that developers (and users)\n// will only see deployed updates on subsequent visits to a page, after all the\n// existing tabs open on the page have been closed, since previously cached\n// resources are updated in the background.\n\n// To learn more about the benefits of this model and instructions on how to\n// opt-in, read https://bit.ly/CRA-PWA\n\nconst isLocalhost = Boolean(\n window.location.hostname === 'localhost' ||\n // [::1] is the IPv6 localhost address.\n window.location.hostname === '[::1]' ||\n // 127.0.0.0/8 are considered localhost for IPv4.\n window.location.hostname.match(\n /^127(?:\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/\n )\n);\n\nexport function register(config) {\n if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {\n // The URL constructor is available in all browsers that support SW.\n const publicUrl = new URL(process.env.PUBLIC_URL, window.location.href);\n if (publicUrl.origin !== window.location.origin) {\n // Our service worker won't work if PUBLIC_URL is on a different origin\n // from what our page is served on. This might happen if a CDN is used to\n // serve assets; see https://github.com/facebook/create-react-app/issues/2374\n return;\n }\n\n window.addEventListener('load', () => {\n const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`;\n\n if (isLocalhost) {\n // This is running on localhost. Let's check if a service worker still exists or not.\n checkValidServiceWorker(swUrl, config);\n\n // Add some additional logging to localhost, pointing developers to the\n // service worker/PWA documentation.\n navigator.serviceWorker.ready.then(() => {\n console.log(\n 'This web app is being served cache-first by a service ' +\n 'worker. To learn more, visit https://bit.ly/CRA-PWA'\n );\n });\n } else {\n // Is not localhost. Just register service worker\n registerValidSW(swUrl, config);\n }\n });\n }\n}\n\nfunction registerValidSW(swUrl, config) {\n navigator.serviceWorker\n .register(swUrl)\n .then(registration => {\n registration.onupdatefound = () => {\n const installingWorker = registration.installing;\n if (installingWorker == null) {\n return;\n }\n installingWorker.onstatechange = () => {\n if (installingWorker.state === 'installed') {\n if (navigator.serviceWorker.controller) {\n // At this point, the updated precached content has been fetched,\n // but the previous service worker will still serve the older\n // content until all client tabs are closed.\n console.log(\n 'New content is available and will be used when all ' +\n 'tabs for this page are closed. See https://bit.ly/CRA-PWA.'\n );\n\n // Execute callback\n if (config && config.onUpdate) {\n config.onUpdate(registration);\n }\n } else {\n // At this point, everything has been precached.\n // It's the perfect time to display a\n // \"Content is cached for offline use.\" message.\n console.log('Content is cached for offline use.');\n\n // Execute callback\n if (config && config.onSuccess) {\n config.onSuccess(registration);\n }\n }\n }\n };\n };\n })\n .catch(error => {\n console.error('Error during service worker registration:', error);\n });\n}\n\nfunction checkValidServiceWorker(swUrl, config) {\n // Check if the service worker can be found. If it can't reload the page.\n fetch(swUrl, {\n headers: { 'Service-Worker': 'script' },\n })\n .then(response => {\n // Ensure service worker exists, and that we really are getting a JS file.\n const contentType = response.headers.get('content-type');\n if (\n response.status === 404 ||\n (contentType != null && contentType.indexOf('javascript') === -1)\n ) {\n // No service worker found. Probably a different app. Reload the page.\n navigator.serviceWorker.ready.then(registration => {\n registration.unregister().then(() => {\n window.location.reload();\n });\n });\n } else {\n // Service worker found. Proceed as normal.\n registerValidSW(swUrl, config);\n }\n })\n .catch(() => {\n console.log(\n 'No internet connection found. App is running in offline mode.'\n );\n });\n}\n\nexport function unregister() {\n if ('serviceWorker' in navigator) {\n navigator.serviceWorker.ready\n .then(registration => {\n registration.unregister();\n })\n .catch(error => {\n console.error(error.message);\n });\n }\n}\n","import React from \"react\";\nimport ReactDOM from \"react-dom\";\nimport \"./index.css\";\nimport App from \"./App\";\nimport * as serviceWorker from \"./serviceWorker\";\n\nReactDOM.render(\n \n \n ,\n document.getElementById(\"root\")\n);\n\n// If you want your app to work offline and load faster, you can change\n// unregister() to register() below. Note this comes with some pitfalls.\n// Learn more about service workers: https://bit.ly/CRA-PWA\nserviceWorker.register();\n"],"sourceRoot":""}