{"version":3,"sources":["hooks/useAdminUser.js","pages/Pages.js","../node_modules/@aws-amplify/ui-components/dist/esm-es5 lazy /^/.//.*/.entry/.js$/ include: //.entry/.js$/ exclude: //.system/.entry/.js$/ groupOptions: {} namespace object","aws-exports.js","layout/UserMenu.js","layout/Header.js","images/paw.png","layout/Footer.js","layout/Layout.js","App.js","reportWebVitals.js","index.js","hooks/useUser.js"],"names":["useAdminUser","user","useUser","isAdminUser","setIsAdminUser","useState","useEffect","groups","signInUserSession","idToken","payload","indexOf","Home","lazy","Play","Leaderboard","Results","HowTo","Profile","SignIn","About","Privacy","TsAndCs","Score","Fixtures","HomeRoute","PlayRoute","LeaderboardRoute","ResultsRoute","HowToRoute","ProfileRoute","SignInRoute","AboutRoute","PrivacyRoute","TcAndCsRoute","ScoreRoute","FixturesRoute","Pages","_jsx","Suspense","fallback","style","display","justifyContent","alignItems","height","children","CircularProgress","_jsxs","Switch","Route","path","exact","component","map","webpackAsyncContext","req","__webpack_require__","o","Promise","resolve","then","e","Error","code","ids","id","all","slice","keys","Object","module","exports","awsmobile","useStyles","makeStyles","theme","menuButton","marginRight","spacing","UserMenu","classes","divRef","useRef","anchorEl","setAnchorEl","undefined","open","Boolean","handleClose","ref","IconButton","onClick","handleClick","current","color","className","AccountCircle","Menu","anchorOrigin","vertical","horizontal","keepMounted","transformOrigin","onClose","MenuItem","disabled","Typography","variant","username","Link","to","AmplifySignOut","Button","drawerWidth","headerRoot","appBar","transition","transitions","create","easing","sharp","duration","leavingScreen","appBarShift","width","concat","marginLeft","easeOut","enteringScreen","hide","drawer","flexShrink","drawerPaper","grow","flexGrow","drawerHeader","_objectSpread","padding","mixins","toolbar","backdrop","zIndex","Header","useTheme","setOpen","adminUser","handleDrawerClose","AppBar","position","clsx","Toolbar","handleDrawerOpen","edge","MenuIcon","Drawer","anchor","paper","direction","ChevronLeftIcon","ChevronRightIcon","Divider","List","ListItem","button","ListItemText","primary","primaryTypographyProps","Backdrop","root","background","margin","footer","maxWidth","textAlign","logo","Footer","src","paw","alt","Grid","container","item","xs","sm","md","align","gutterBottom","href","format","Date","page","Layout","Box","Amplify","configure","awsconfig","createTheme","palette","main","secondary","responsiveFontSizes","App","CssBaseline","Router","MuiThemeProvider","reportWebVitals","onPerfEntry","Function","_ref","getCLS","getFID","getFCP","getLCP","getTTFB","config","ReactDOM","render","React","StrictMode","document","getElementById","setUser","updateUser","async","thisUser","Auth","currentAuthenticatedUser","_unused","Hub","listen","remove"],"mappings":"wGAAA,qDAGO,SAASA,IACZ,MAAMC,EAAOC,eAENC,EAAaC,GAAkBC,oBAAS,GAa/C,OAXAC,qBAAU,KACN,GAAIL,EAAM,CACN,MAAMM,EAASN,EAAKO,kBAAkBC,QAAQC,QAAQ,kBAElDN,IADAG,GACeA,EAAOI,QAAQ,UAAY,EAIlD,IACD,CAACV,IAEGE,CACX,C,8ECpBA,6dAIA,MAAMS,EAAOC,gBAAK,IAAM,uDAClBC,EAAOD,gBAAK,IAAM,qEAClBE,EAAcF,gBAAK,IAAM,qEACzBG,EAAUH,gBAAK,IAAM,6EACrBI,EAAQJ,gBAAK,IAAM,uDACnBK,EAAUL,gBAAK,IAAM,sEACrBM,EAASN,gBAAK,IAAM,uDACpBO,EAAQP,gBAAK,IAAM,iCACnBQ,EAAUR,gBAAK,IAAM,iCACrBS,EAAUT,gBAAK,IAAM,iCACrBU,EAAQV,gBAAK,IAAM,qEACnBW,EAAWX,gBAAK,IAAM,2EAEfY,EAAY,IACZC,EAAY,SACZC,EAAmB,gBACnBC,EAAe,YACfC,EAAa,WACbC,EAAe,YACfC,EAAc,YACdC,EAAa,UACbC,EAAe,YACfC,EAAe,yBACfC,EAAa,UACbC,EAAgB,aAEd,SAASC,IACpB,OACIC,cAACC,WAAQ,CAACC,SAAUF,cAAA,OAAKG,MAAO,CAC5BC,QAAS,OACTC,eAAgB,SAChBC,WAAY,SACZC,OAAQ,KAAKC,SAACR,cAACS,IAAgB,MAASD,SAC5CE,eAACC,IAAM,CAAAH,SAAA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OH,GACPI,EAAOJ,GACPK,EAAOL,GACPM,EAAON,GACPO,EAAQP,EAAY,GAExB,ECDFb,UAAQC,UAAUoB,GAElBC,IAASC,OACPnL,cAACoL,IAAMC,WAAU,CAAA7K,SACfR,cAACoK,GAAG,MAENkB,SAASC,eAAe,SAM1Bf,I,kCCpBA,+DAGO,SAAS5M,IACZ,MAAOD,EAAM6N,GAAWzN,qBAgBxB,OAdAC,qBAAU,KACN,IAAIyN,EAAaC,UACb,IACI,MAAMC,QAAiBC,IAAKC,2BAC5BL,EAAQG,EACZ,CAAE,MAAAG,GACEN,OAAQxI,EACZ,GAIJ,OAFA+I,IAAIC,OAAO,OAAQP,GACnBA,IACO,IAAMM,IAAIE,OAAO,OAAQR,EAAW,GAC5C,IAEI9N,CACX,C","file":"static/js/main.588e0cbd.chunk.js","sourcesContent":["import {useEffect, useState} from 'react';\nimport {useUser} from \"./useUser\";\n\nexport function useAdminUser() {\n const user = useUser();\n\n const [isAdminUser, setIsAdminUser] = useState(false);\n\n useEffect(() => {\n if (user) {\n const groups = user.signInUserSession.idToken.payload[\"cognito:groups\"];\n if (groups) {\n setIsAdminUser(groups.indexOf(\"admin\") > -1);\n } else {\n setIsAdminUser(false);\n }\n }\n }, [user]);\n\n return isAdminUser;\n}","import React, {lazy, Suspense} from 'react';\nimport {Route, Switch} from \"react-router-dom\";\nimport CircularProgress from '@material-ui/core/CircularProgress';\n\nconst Home = lazy(() => import('./Home'));\nconst Play = lazy(() => import('./Play'));\nconst Leaderboard = lazy(() => import('./Leaderboard'));\nconst Results = lazy(() => import( './Results'));\nconst HowTo = lazy(() => import( './HowTo'));\nconst Profile = lazy(() => import( './Profile'));\nconst SignIn = lazy(() => import( './SignIn'));\nconst About = lazy(() => import( './About'));\nconst Privacy = lazy(() => import( './Privacy'));\nconst TsAndCs = lazy(() => import( './TsAndCs'));\nconst Score = lazy(() => import( \"./Score\"));\nconst Fixtures = lazy(() => import( \"./Fixtures\"));\n\nexport const HomeRoute = \"/\";\nexport const PlayRoute = \"/play/\";\nexport const LeaderboardRoute = \"/leaderboard/\";\nexport const ResultsRoute = \"/results/\";\nexport const HowToRoute = \"/how-to/\";\nexport const ProfileRoute = \"/profile/\";\nexport const SignInRoute = \"/sign-in/\";\nexport const AboutRoute = \"/about/\";\nexport const PrivacyRoute = \"/privacy/\";\nexport const TcAndCsRoute = \"/terms-and-conditions/\";\nexport const ScoreRoute = \"/score/\";\nexport const FixturesRoute = \"/fixtures/\";\n\nexport default function Pages() {\n return (\n }>\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n}\n","var map = {\n\t\"./amplify-amazon-button_5.entry.js\": [\n\t\t369,\n\t\t19\n\t],\n\t\"./amplify-auth-container.entry.js\": [\n\t\t370,\n\t\t42\n\t],\n\t\"./amplify-auth-fields_9.entry.js\": [\n\t\t371,\n\t\t31\n\t],\n\t\"./amplify-authenticator.entry.js\": [\n\t\t372,\n\t\t3,\n\t\t43\n\t],\n\t\"./amplify-button_3.entry.js\": [\n\t\t373,\n\t\t44\n\t],\n\t\"./amplify-chatbot.entry.js\": [\n\t\t374,\n\t\t18\n\t],\n\t\"./amplify-checkbox.entry.js\": [\n\t\t375,\n\t\t45\n\t],\n\t\"./amplify-confirm-sign-in_7.entry.js\": [\n\t\t376,\n\t\t3,\n\t\t46\n\t],\n\t\"./amplify-container.entry.js\": [\n\t\t377,\n\t\t47\n\t],\n\t\"./amplify-federated-buttons_2.entry.js\": [\n\t\t378,\n\t\t20\n\t],\n\t\"./amplify-federated-sign-in.entry.js\": [\n\t\t379,\n\t\t35\n\t],\n\t\"./amplify-form-field_4.entry.js\": [\n\t\t380,\n\t\t21\n\t],\n\t\"./amplify-greetings.entry.js\": [\n\t\t381,\n\t\t22\n\t],\n\t\"./amplify-icon-button.entry.js\": [\n\t\t382,\n\t\t48\n\t],\n\t\"./amplify-icon.entry.js\": [\n\t\t383,\n\t\t36\n\t],\n\t\"./amplify-link.entry.js\": [\n\t\t384,\n\t\t49\n\t],\n\t\"./amplify-nav_2.entry.js\": [\n\t\t385,\n\t\t23\n\t],\n\t\"./amplify-photo-picker.entry.js\": [\n\t\t386,\n\t\t33\n\t],\n\t\"./amplify-picker.entry.js\": [\n\t\t387,\n\t\t34\n\t],\n\t\"./amplify-radio-button_3.entry.js\": [\n\t\t388,\n\t\t3,\n\t\t50\n\t],\n\t\"./amplify-s3-album.entry.js\": [\n\t\t389,\n\t\t24\n\t],\n\t\"./amplify-s3-image-picker.entry.js\": [\n\t\t390,\n\t\t25\n\t],\n\t\"./amplify-s3-image.entry.js\": [\n\t\t391,\n\t\t32\n\t],\n\t\"./amplify-s3-text-picker.entry.js\": [\n\t\t392,\n\t\t26\n\t],\n\t\"./amplify-s3-text.entry.js\": [\n\t\t393,\n\t\t27\n\t],\n\t\"./amplify-select-mfa-type.entry.js\": [\n\t\t394,\n\t\t28\n\t],\n\t\"./amplify-sign-in-button.entry.js\": [\n\t\t395,\n\t\t37\n\t],\n\t\"./amplify-tooltip.entry.js\": [\n\t\t396,\n\t\t51\n\t]\n};\nfunction webpackAsyncContext(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\treturn Promise.resolve().then(function() {\n\t\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\t\te.code = 'MODULE_NOT_FOUND';\n\t\t\tthrow e;\n\t\t});\n\t}\n\n\tvar ids = map[req], id = ids[0];\n\treturn Promise.all(ids.slice(1).map(__webpack_require__.e)).then(function() {\n\t\treturn __webpack_require__(id);\n\t});\n}\nwebpackAsyncContext.keys = function webpackAsyncContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackAsyncContext.id = 297;\nmodule.exports = webpackAsyncContext;","/* eslint-disable */\n// WARNING: DO NOT EDIT. This file is automatically generated by AWS Amplify. It will be overwritten.\n\nconst awsmobile = {\n \"aws_project_region\": \"eu-west-1\",\n \"aws_appsync_graphqlEndpoint\": \"https://ksv4w4z76ne2ni3zekdsiy4ud4.appsync-api.eu-west-1.amazonaws.com/graphql\",\n \"aws_appsync_region\": \"eu-west-1\",\n \"aws_appsync_authenticationType\": \"AMAZON_COGNITO_USER_POOLS\",\n \"aws_appsync_apiKey\": \"da2-vfc2wwzezzb37cjf2j2vegsagi\",\n \"aws_cognito_identity_pool_id\": \"eu-west-1:ad225e9a-8edb-4a64-9645-73488587b263\",\n \"aws_cognito_region\": \"eu-west-1\",\n \"aws_user_pools_id\": \"eu-west-1_e8xND3Pa9\",\n \"aws_user_pools_web_client_id\": \"7idtknopho9niip8nlul20a98k\",\n \"oauth\": {},\n \"aws_cognito_username_attributes\": [],\n \"aws_cognito_social_providers\": [],\n \"aws_cognito_signup_attributes\": [\n \"EMAIL\"\n ],\n \"aws_cognito_mfa_configuration\": \"OFF\",\n \"aws_cognito_mfa_types\": [\n \"SMS\"\n ],\n \"aws_cognito_password_protection_settings\": {\n \"passwordPolicyMinLength\": 8,\n \"passwordPolicyCharacters\": []\n },\n \"aws_cognito_verification_mechanisms\": [\n \"EMAIL\"\n ]\n};\n\n\nexport default awsmobile;\n","import React, {useEffect, useRef, useState} from 'react';\nimport {makeStyles} from '@material-ui/core/styles';\nimport IconButton from '@material-ui/core/IconButton';\nimport AccountCircle from '@material-ui/icons/AccountCircle';\nimport MenuItem from '@material-ui/core/MenuItem';\nimport Button from '@material-ui/core/Button';\nimport Menu from '@material-ui/core/Menu';\nimport {AmplifySignOut} from \"@aws-amplify/ui-react\";\nimport Typography from \"@material-ui/core/Typography\";\nimport {ProfileRoute, SignInRoute} from \"../pages/Pages\";\nimport {Link} from \"react-router-dom\";\nimport {useUser} from \"../hooks/useUser\";\n\nconst useStyles = makeStyles((theme) => ({\n menuButton: {\n marginRight: theme.spacing(1),\n },\n}));\n\nexport default function UserMenu() {\n const classes = useStyles();\n const user = useUser();\n const divRef = useRef();\n\n const [anchorEl, setAnchorEl] = useState(undefined);\n const open = Boolean(anchorEl);\n\n useEffect(() => {\n handleClose();\n }, [user]);\n\n const handleClick = () => {\n setAnchorEl(divRef.current);\n };\n\n const handleClose = () => {\n setAnchorEl(undefined);\n };\n\n return user ? (\n
\n \n \n \n \n Hello, {user.username}\n Profile\n \n \n
\n ) : (\n
\n \n
\n );\n}","import React, {useState} from 'react';\nimport clsx from 'clsx';\nimport {makeStyles, useTheme} from '@material-ui/core/styles';\nimport Drawer from '@material-ui/core/Drawer';\nimport AppBar from '@material-ui/core/AppBar';\nimport Toolbar from '@material-ui/core/Toolbar';\nimport List from '@material-ui/core/List';\nimport Divider from '@material-ui/core/Divider';\nimport IconButton from '@material-ui/core/IconButton';\nimport MenuIcon from '@material-ui/icons/Menu';\nimport ChevronLeftIcon from '@material-ui/icons/ChevronLeft';\nimport ChevronRightIcon from '@material-ui/icons/ChevronRight';\nimport ListItem from '@material-ui/core/ListItem';\nimport ListItemText from '@material-ui/core/ListItemText';\nimport {Link} from \"react-router-dom\";\nimport UserMenu from './UserMenu'\nimport {FixturesRoute, HomeRoute, HowToRoute, LeaderboardRoute, PlayRoute, ResultsRoute, ScoreRoute} from \"../pages/Pages\";\nimport Typography from \"@material-ui/core/Typography\";\nimport Backdrop from \"@material-ui/core/Backdrop\";\nimport {useAdminUser} from \"../hooks/useAdminUser\";\n\nconst drawerWidth = 200;\n\nconst useStyles = makeStyles((theme) => ({\n headerRoot: {\n display: 'flex',\n },\n appBar: {\n transition: theme.transitions.create(['margin', 'width'], {\n easing: theme.transitions.easing.sharp,\n duration: theme.transitions.duration.leavingScreen,\n }),\n },\n appBarShift: {\n width: `calc(100% - ${drawerWidth}px)`,\n marginLeft: drawerWidth,\n transition: theme.transitions.create(['margin', 'width'], {\n easing: theme.transitions.easing.easeOut,\n duration: theme.transitions.duration.enteringScreen,\n }),\n },\n menuButton: {\n marginLeft: theme.spacing(1),\n },\n hide: {\n display: 'none',\n },\n drawer: {\n width: drawerWidth,\n flexShrink: 0,\n },\n drawerPaper: {\n width: drawerWidth,\n },\n grow: {\n flexGrow: 1,\n },\n drawerHeader: {\n display: 'flex',\n alignItems: 'center',\n padding: theme.spacing(0, 1),\n // necessary for content to be below app bar\n ...theme.mixins.toolbar,\n justifyContent: 'flex-end',\n },\n backdrop: {\n width: `calc(100% - ${drawerWidth}px)`,\n marginLeft: drawerWidth,\n zIndex: theme.zIndex.drawer + 1,\n color: '#fff',\n },\n}));\n\nexport default function Header() {\n const classes = useStyles();\n const theme = useTheme();\n const [open, setOpen] = useState(false);\n const adminUser = useAdminUser();\n\n const handleDrawerOpen = () => {\n setOpen(true);\n };\n\n const handleDrawerClose = () => {\n setOpen(false);\n };\n\n return (\n
\n \n \n \n \n \n Super Leigh\n
\n \n \n \n \n
\n \n {theme.direction === 'ltr' ? : }\n \n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n {adminUser &&
\n \n \n \n \n \n \n \n
}\n
\n \n \n
\n );\n}\n","export default __webpack_public_path__ + \"static/media/paw.3f9b389c.png\";","import React from 'react';\nimport {makeStyles} from \"@material-ui/core/styles\";\nimport Grid from \"@material-ui/core/Grid\";\nimport Typography from \"@material-ui/core/Typography\";\nimport paw from '../images/paw.png'\nimport Link from \"@material-ui/core/Link\";\nimport {AboutRoute, PrivacyRoute, TcAndCsRoute} from \"../pages/Pages\";\nimport format from 'date-fns/format';\n\nconst useStyles = makeStyles((theme) => ({\n root: {\n background: '#000',\n width: '100%',\n margin: \"auto\",\n },\n footer: {\n maxWidth: 700,\n margin: \"auto\",\n textAlign: \"center\",\n },\n logo: {\n margin: \"24px auto\",\n width: 60,\n height: 60,\n },\n}));\n\nexport default function Footer() {\n const classes = useStyles();\n\n return (\n
\n
\n \"Logo\"/\n \n \n \n About\n \n \n \n \n Terms & Conditions\n \n \n \n \n Privacy\n \n \n \n \n Contact us\n \n \n \n \n ©rocSOLID Services Ltd {format(new Date(), 'yyyy')} - All Rights Reserved\n \n
\n
\n );\n}","import React from 'react';\nimport Header from \"./Header\";\nimport Footer from \"./Footer\";\nimport {makeStyles} from '@material-ui/core/styles';\nimport Pages from \"../pages/Pages\";\nimport Box from \"@material-ui/core/Box\";\n\nconst useStyles = makeStyles((theme) => ({\n page: {\n textAlign: \"center\",\n width: '100%',\n },\n toolbar: theme.mixins.toolbar,\n}));\n\nexport default function Layout() {\n const classes = useStyles();\n\n return (\n
\n
\n
\n \n \n \n
\n
\n );\n}\n","import React from 'react';\nimport './App.css';\nimport Amplify from 'aws-amplify';\nimport awsconfig from './aws-exports';\nimport {createTheme, MuiThemeProvider} from \"@material-ui/core/styles\";\nimport {CssBaseline, responsiveFontSizes} from \"@material-ui/core\";\nimport Layout from \"./layout/Layout\";\nimport {BrowserRouter as Router} from \"react-router-dom\";\n\nAmplify.configure(awsconfig);\n\nlet theme = createTheme({\n palette: {\n primary: {\n main: '#BE1D2C',\n },\n secondary: {\n main: '#fff',\n },\n },\n});\n\ntheme = responsiveFontSizes(theme);\n\nfunction App() {\n return (\n ,\n \n \n \n \n \n );\n}\n\nexport default App;","const reportWebVitals = onPerfEntry => {\n if (onPerfEntry && onPerfEntry instanceof Function) {\n import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {\n getCLS(onPerfEntry);\n getFID(onPerfEntry);\n getFCP(onPerfEntry);\n getLCP(onPerfEntry);\n getTTFB(onPerfEntry);\n });\n }\n};\n\nexport default reportWebVitals;\n","import React from 'react';\nimport ReactDOM from 'react-dom';\nimport './index.css';\nimport App from './App';\nimport reportWebVitals from './reportWebVitals';\nimport Amplify from 'aws-amplify';\nimport config from './aws-exports';\n\nAmplify.configure(config);\n\nReactDOM.render(\n \n \n ,\n document.getElementById('root')\n);\n\n// If you want to start measuring performance in your app, pass a function\n// to log results (for example: reportWebVitals(console.log))\n// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals\nreportWebVitals();\n","import {useEffect, useState} from 'react';\nimport {Auth, Hub} from \"aws-amplify\";\n\nexport function useUser() {\n const [user, setUser] = useState();\n\n useEffect(() => {\n let updateUser = async authState => {\n try {\n const thisUser = await Auth.currentAuthenticatedUser();\n setUser(thisUser);\n } catch {\n setUser(undefined);\n }\n }\n Hub.listen('auth', updateUser); // listen for login/signup events\n updateUser(); // check manually the first time because we won't get a Hub event\n return () => Hub.remove('auth', updateUser); // cleanup\n }, []);\n\n return user;\n}"],"sourceRoot":""}