{"version":3,"sources":["cacheBuster.js","App.js","theme.js","index.js","components/loadingSpinner.js"],"names":["React","createContext","Overview","lazy","OverallStatus","GACasesByCounty","Tabset1","Tabset2","useStyles","makeStyles","theme","root","flexGrow","backgroundColor","color","menuButton","marginRight","spacing","title","logoWrapper","paddingRight","borderRight","brandingBar","paddingTop","paddingBottom","summaryNumbersBar","display","flexDirection","justifyContent","height","summaryNumbers","orgTitle","fontFamily","fontWeight","fontSize","breakpoints","down","textDecoration","textDecorationColor","fixedHeight","mediaFlow","hr","width","border","borderTop","borderTopWidth","borderTopStyle","borderTopColor","container","marginLeft","maxWidth","linkBoxIcons","linkBoxLinks","MuiToggleButton","textTransform","kpi1","textAlign","kpi2","kpiTable","margin","mapContainer","position","maxHeight","mapLegend","right","bottom","left","top","mediaBox","overflow","tab","reactTabsTab","indicator","media","backgroundSize","backgroundOrigin","backgroundClip","App","classes","useState","epicurve","setEpicurve","countycases","setCountycases","demographics","setDemographics","useEffect","fetch","config","currdate","then","resp","text","csv","Papa","parse","header","skipEmptyLines","dynamicTyping","json","data","date_lines","label","value","Date","toISOString","slice","Provider","Container","className","style","fallback","createTheme","palette","type","primary","main","secondary","tabs","error","background","default","paper","typography","h1","h2","MuiToggleButtonGroup","webkitAppearance","MuiTabs","orange","MuiTab","pink","selected","green","ReactDOM","render","ThemeProvider","CssBaseline","document","querySelector","LoadingSpinner","props"],"mappings":"gIAAA,oBAEeA,QAAMC,iB,yOCUfC,EAAWF,IAAMG,MAAK,kBAAM,+DAC5BC,EAAgBJ,IAAMG,MAAK,kBAAM,+DACjCE,EAAkBL,IAAMG,MAAK,kBAAM,6EACnCG,EAAUN,IAAMG,MAAK,kBAAM,gEAC3BI,EAAUP,IAAMG,MAAK,kBAAM,6EAE3BK,EAAYC,aAAW,SAACC,GAAD,YAAY,CACvCC,KAAM,CACJC,SAAU,EACVC,gBAAiB,UACjBC,MAAO,SAETC,WAAY,CACVC,YAAaN,EAAMO,QAAQ,IAE7BC,MAAO,CACLN,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,QACPoB,SAAU,GACVD,WAAY,KAEd4F,GAAI,CACF7F,WAAY,uBAEdsC,IAAK,CACHxD,MAAO,WAETgH,qBAAsB,CACpBhH,MAAO,WAET,yBAA0B,CACxBiH,iBAAkB,YAEpBC,QAAS,CACPxD,UAAW,CACT3D,gBAAiBoH,IAAO,OAG5BC,OAAQ,CACNvH,KAAM,CACJ,UAAW,CACTE,gBAAiBsH,IAAK,KACtBrH,MAAOqH,IAAK,OAGhBC,SAAU,CACRvH,gBAAiBoH,IAAO,KACxBnH,MAAOmH,IAAO,KACd,UAAW,CACTpH,gBAAiBwH,IAAM,KACvBvH,MAAOuH,IAAM,WC/DvBC,IAASC,OACP,kBAACC,EAAA,EAAD,CAAe9H,MAAOA,GACpB,kBAAC+H,EAAA,EAAD,MACA,kBAAC5D,EAAD,OAEF6D,SAASC,cAAc,W,gCCdzB,oBAceC,IAZQ,SAACC,GACtB,OACE,yBAAKhC,UAAU,WACb,yBAAKA,UAAU,gBACb,8BACA,8BACA,kC","file":"static/js/main.b49ccd5e.chunk.js","sourcesContent":["import React from 'react';\n\nexport default React.createContext();\n","import React, { Suspense } from \"react\";\nimport Papa from 'papaparse';\n\nimport Container from \"@material-ui/core/Container\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport LoadingSpinner from \"./components/loadingSpinner\";\nimport \"react-tabs/style/react-tabs.css\";\nimport config from \"./config.json\";\nimport CacheContext from \"./cacheBuster\";\n\n/* App Sections */\n/* React.lazy ensures lazy loading for each section of the app */\nconst Overview = React.lazy(() => import(\"./sections/overview\"));\nconst OverallStatus = React.lazy(() => import(\"./sections/overall_status\"));\nconst GACasesByCounty = React.lazy(() => import(\"./sections/cases_by_county\"));\nconst Tabset1 = React.lazy(() => import(\"./sections/tabset1\"));\nconst Tabset2 = React.lazy(() => import(\"./sections/tabset2\"));\n\nconst useStyles = makeStyles((theme) => ({\n root: {\n flexGrow: 1,\n backgroundColor: \"#103052\",\n color: \"white\",\n },\n menuButton: {\n marginRight: theme.spacing(2),\n },\n title: {\n flexGrow: 1,\n },\n logoWrapper: {\n paddingRight: \"1.3125rem\",\n borderRight: \"solid white 1px\",\n },\n brandingBar: {\n paddingTop: \"27px\",\n paddingBottom: \"28px\",\n },\n summaryNumbersBar: {\n display: \"flex\",\n flexDirection: \"row\",\n justifyContent: \"space-around\",\n height: \"110px\",\n },\n summaryNumbers: {\n display: \"flex\",\n flexDirection: \"column\",\n },\n orgTitle: {\n fontFamily: '\"Proxima Nova\", \"Open Sans\", Corbel, Arial, sans-serif',\n fontWeight: \"900\",\n fontSize: \"26px\",\n [theme.breakpoints.down(\"sm\")]: {\n fontSize: \"20px\",\n },\n cursor: \"pointer\",\n lineHeight: \"29.9px\",\n paddingLeft: \"21px\",\n textDecoration: \"none\",\n color: \"white\",\n textDecorationColor: \"#103052\",\n \"&:hover\": {\n color: \"#E3C475\",\n textDecoration: \"none\",\n textDecorationColor: \"#103052\",\n },\n },\n fixedHeight: {\n height: 240,\n },\n mediaFlow: {\n display: \"flex\",\n flexDirection: \"row\",\n justifyContent: \"space-evenly\",\n },\n hr: {\n width: \"100%\",\n border: 0,\n borderTop: \"1px solid rgba(255, 255, 255, 0.1)\",\n borderTopWidth: \"1px\",\n borderTopStyle: \"solid\",\n borderTopColor: \"rgba(255, 255, 255, 0.1)\",\n },\n container: {\n width: \"100%\",\n paddingBottom: \"60px\",\n marginLeft: \"0px\",\n marginRight: \"0px\",\n maxWidth: \"unset\"\n },\n linkBoxIcons: {\n color: \"#103052\",\n },\n linkBoxLinks: {\n display: \"block\",\n },\n MuiToggleButton: {\n textTransform: \"none\",\n },\n kpi1: {\n color: \"#35A5FF\",\n fontSize: \"4em\",\n fontWeight: \"bold\",\n textAlign: \"center\",\n },\n kpi2: {\n color: \"#B14C51\",\n fontSize: \"4em\",\n fontWeight: \"bold\",\n textAlign: \"center\",\n },\n kpiTable: {\n maxWidth: \"1000px\",\n margin: \"auto\",\n },\n mapContainer: {\n margin: \"auto\",\n position: \"relative\",\n maxWidth: \"800px\",\n maxHeight: \"100vh\",\n },\n mapLegend: {\n right: \"0px\",\n position: \"absolute\",\n bottom: \"initial\",\n left: \"initial\",\n top: \"30px\",\n },\n mediaBox: {\n display: \"inline-block\",\n position: \"relative\",\n width: \"100%\",\n paddingBottom: \"100%\",\n overflow: \"hidden\",\n },\n tab: {\n color: \"white\",\n textTransform: \"none\",\n },\n reactTabsTab: {\n color: \"white\",\n textTransform: \"none\",\n },\n indicator: {\n color: \"white\",\n backgroundColor: \"green\",\n },\n media: {\n backgroundSize: \"contain\",\n backgroundOrigin: \"padding-box\",\n backgroundClip: \"border-box\",\n backgroundColor: \"#FFF\",\n },\n}));\n\nexport default function App() {\n const classes = useStyles();\n \n const [epicurve, setEpicurve] = React.useState([]);\n const [countycases, setCountycases] = React.useState([]);\n const [demographics, setDemographics] = React.useState([]);\n \n React.useEffect(() => {\n fetch('./data/epicurve.csv?tstamp='+config.currdate)\n .then((resp) => resp.text())\n .then(csv => Papa.parse(csv, { header:true, skipEmptyLines:true, dynamicTyping:true }))\n .then((json) => {\n setEpicurve(json.data);\n });\n fetch('./data/countycases.csv?tstamp='+config.currdate)\n .then((resp) => resp.text())\n .then(csv => Papa.parse(csv, { header:true, skipEmptyLines:true, dynamicTyping:true }))\n .then((json) => {\n setCountycases(json.data);\n });\n fetch('./data/demographics_sum.csv?tstamp='+config.currdate)\n .then((resp) => resp.text())\n .then(csv => Papa.parse(csv, { header:true, skipEmptyLines:true, dynamicTyping:true }))\n .then((json) => {\n setDemographics(json.data);\n });\n },[]);\n \n\n const date_lines = [\n {\n label: \"14-day window\" /* To indicate some recent data is unreliable */,\n value: new Date(new Date() - 1000 * 60 * 60 * 24 * 14)\n .toISOString()\n .slice(0, 10),\n },\n {\n label: \"Large Gathering Ban\",\n value: new Date(2020, 2, 23).toISOString().slice(0, 10),\n },\n {\n label: \"Shelter in Place\",\n value: new Date(2020, 3, 2).toISOString().slice(0, 10),\n },\n {\n label: \"Shelter in Place extended for at risk\",\n value: new Date(2020, 4, 1).toISOString().slice(0, 10),\n },\n ];\n\n return (\n \n \n }>\n \n \n\n
\n\n }>\n \n \n\n
\n\n }>\n \n \n\n
\n\n }>\n \n \n\n
\n\n }>\n \n \n \n
\n );\n}\n","import { orange, pink, green } from \"@material-ui/core/colors\";\nimport { createTheme } from \"@material-ui/core/styles\";\n\n// A custom theme for this app\nconst theme = createTheme({\n palette: {\n type: \"dark\",\n primary: {\n // eslint-disable-next-line\n main: \"#103052\",\n text: \"#ffffff\",\n },\n secondary: {\n // eslint-disable-next-line\n main: \"#ffffff\",\n },\n tabs: {\n main: \"#ffffff\",\n },\n text: {\n primary: \"#ffffff\",\n secondary: \"#bedefe\",\n },\n error: {\n main: \"#d60000\",\n },\n background: {\n // eslint-disable-next-line\n default: \"#103052\",\n paper: \"#103052\",\n // paper: '#103052',\n }\n },\n typography: {\n fontSize: 19,\n fontWeight: 400,\n color: \"#BEDEFE\",\n fontFamily: \"Lato, sans-serif\",\n h1: {\n color: \"white\",\n fontSize: 40,\n fontWeight: 500,\n },\n h2: {\n fontFamily: \"Source Serif Pro Vf\",\n },\n tab: {\n color: \"#ffffff\",\n },\n MuiToggleButtonGroup: {\n color: \"#ffffff\",\n },\n \"MuiNativeSelect-select\": {\n webkitAppearance: \"menulist\",\n },\n MuiTabs: {\n indicator: {\n backgroundColor: orange[700],\n },\n },\n MuiTab: {\n root: {\n \"&:hover\": {\n backgroundColor: pink[100],\n color: pink[700],\n },\n },\n selected: {\n backgroundColor: orange[100],\n color: orange[700],\n \"&:hover\": {\n backgroundColor: green[100],\n color: green[700],\n },\n },\n },\n },\n});\n\nexport default theme;\n","import 'react-app-polyfill/ie11';\nimport 'react-app-polyfill/stable';\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport CssBaseline from '@material-ui/core/CssBaseline';\nimport { ThemeProvider } from '@material-ui/core/styles';\nimport App from './App';\nimport theme from './theme';\n\nReactDOM.render(\n \n \n \n ,\n document.querySelector('#root'),\n);\n","import React from \"react\";\n\nconst LoadingSpinner = (props) => {\n return (\n
\n
\n
\n
\n
\n
\n
\n );\n};\n\nexport default LoadingSpinner;"],"sourceRoot":""}