{"version":3,"sources":["config.js","io.js","components/Display/Logo/Logo.js","pages/Layout/NavBar/NavBar.js","pages/Account/AccountSidebar.js","services/authServices.js","components/Error/FormError/FormError.js","components/Form/Login/Login.js","components/Form/Signup/Signup.js","components/Form/Auth/Auth.js","components/Button/NewRoom/NewRoom.js","components/Form/FindRoom/FindRoom.js","components/Button/Library/Library.js","pages/Home/HomeSidebar.js","pages/News/NewsSidebar.js","components/Form/FindGame/FindGame.js","components/Button/NewGame/NewGame.js","components/Button/RoomArchive/RoomArchive.js","pages/Room/RoomSidebar.js","pages/Layout/Sidebar/Sidebar.js","pages/Account/Account.js","services/api/gamesServices.js","components/GameUI/Point/Point.js","components/GameUI/Board/Board.js","components/GameUI/PlayerArea/PlayerArea.js","pages/Game/Game.js","services/api/roomsServices.js","components/Button/Room/Room.js","components/Display/Loading/Loading.js","pages/Home/Home.js","pages/News/News.js","components/Button/Game/Game.js","components/Display/Message/Message.js","components/Error/ActionError/ActionError.js","components/Display/Development/Development.js","pages/Room/Room.js","pages/Layout/MainWrapper/MainWrapper.js","reducers/init/reducer.init.js","reducers/auth/reducer.auth.js","reducers/err/reducer.err.js","reducers/index/reducer.index.js","reducers/rooms/reducer.rooms.js","reducers/messages/reducer.messages.js","reducers/games/reducer.games.js","reducers/socket/reducer.socket.js","reducers/reducer.js","services/api/indexServices.js","App.js","serviceWorker.js","index.js"],"names":["config","runtimeEnv","REACT_APP_ENVIRONMENT","apiAddress","endpoint","authAddress","socketAddress","launch","nsp","dispatch","socket","socketIOClient","on","type","message","body","err","socketError","data","console","log","board","Logo","NavBar","props","className","data-testid","to","user","username","AccountSidebar","authEndpoint","signupEndpoint","loginEndpoint","headers","Headers","append","formData","a","async","fetch","method","credentials","JSON","stringify","then","res","text","parse","catch","response","FormError","errorMessage","error","Login","errors","useState","setUsername","password","setPassword","errorDispatchAction","postLoginForm","authServices","loginResponse","authError","handleSubmit","e","next","preventDefault","length","test","state","auth","onSubmit","htmlFor","name","id","onChange","target","value","default","Signup","email","setEmail","confirmPassword","setConfirmPassword","postSignupForm","signupResponse","Auth","showForm","setShowForm","onClick","NewRoomButton","FindRoomForm","LibraryButton","HomeSidebar","ifUser","ifNoUser","NewsSidebar","FindGameForm","NewGameButton","RoomArchiveButton","RoomSidebar","currentRoom","joinGame","Sidebar","page","displayComponent","Account","gamesAddress","gameIndex","obj","Object","assign","game","applicationVersion","application_version","boardSize","board_size","playerBlack","player_black","playerBlackRank","player_black_rank","playerWhite","player_white","playerWhiteRank","player_white_rank","capturesWhite","captures_white","capturesBlack","captures_black","mainTime","main_time","timePeriod","time_period","periodLength","period_length","overtimePeriod","overtime_period","overtimeLength","overtime_length","winType","win_type","Point","posX","posY","pointData","turn","action","room","move","player","pos","x","y","clickHandle","data-stone","data-dot","dot","Board","sizeFlag","i","boardPoints","Math","floor","push","key","renderPoints","PlayerArea","stones","captures","Game","gameId","parseInt","useParams","useEffect","gamesServices","fetchGameAPI","active","roomSocketConnect","record","roomsAddress","roomIndex","games","roomGames","map","RoomButton","roomData","Loading","Home","roomsServices","rooms","fetchRoomsAPI","renderRooms","News","GameButton","open","requestAction","requestJoinGame","gameLinkText","renderInProgressGame","Message","messageData","content","admin","ActionError","Development","Room","roomId","fetchRoomAPI","gameData","renderGames","messages","idx","renderMessages","MainWrapper","selectPage","initState","overtime","application","description","event","round","score","komi","handicap","connect","location","language","connected","loginReducer","newUser","errorReducer","authErrorReducer","joinRoom","joinRoomError","joinRoomErrorReducer","joinGameError","joinGameErrorReducer","roomsReducer","stateWithMessages","stateReducer","setMessages","setCurrentRoom","setGames","setJoinRoomError","gamesReducer","parseRank","formatGames","entries","rank","slice","toLowerCase","io","require","socketReducer","launchedSocket","priorSocket","emit","close","updatedState","connectRoomAction","connectGame","makeMove","errorStrippedState","stripErrors","authReducer","indexReducer","messagesReducer","App","useReducer","indexServices","fetchIndexAPI","path","Boolean","window","hostname","match","ReactDOM","render","document","getElementById","navigator","serviceWorker","ready","registration","unregister"],"mappings":"qJAiBMA,EAAu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AGtD,kBAAC,IAAD,CAAOwQ,KAAK,cACV,kBAAC,GAAD,CAAavK,KAAK,OAAOnC,MAAOA,EAAO9D,SAAUA,KAGnD,kBAAC,IAAD,CAAOwQ,KAAK,cACV,kBAAC,GAAD,CAAavK,KAAK,OAAOnC,MAAOA,EAAO9D,SAAUA,KAGnD,kBAAC,IAAD,CAAOwQ,KAAK,SACV,kBAAC,GAAD,CAAavK,KAAK,OAAOnC,MAAOA,EAAO9D,SAAUA,KAGnD,kBAAC,IAAD,CAAOwQ,KAAK,SACV,kBAAC,GAAD,CAAavK,KAAK,OAAOnC,MAAOA,EAAO9D,SAAUA,KAGnD,kBAAC,IAAD,CAAOwQ,KAAK,KACT1M,EAAM3C,KAAKC,SACV,kBAAC,GAAD,CAAa6E,KAAK,OAAOnC,MAAOA,EAAO9D,SAAUA,IACjD,kBAAC,GAAD,CAAaiG,KAAK,OAAOnC,MAAOA,EAAO9D,SAAUA,MAIvD,uBAAGgB,UAAU,oBAAoB8C,EAAM2J,QAAQrN,KAAO,SAAM,cC7DhDqQ,QACW,cAA7BC,OAAOhD,SAASiD,UAEe,UAA7BD,OAAOhD,SAASiD,UAEhBD,OAAOhD,SAASiD,SAASC,MACvB,2DCZNC,IAASC,OACP,kBAAC,GAAD,MACEC,SAASC,eAAe,SD2HtB,kBAAmBC,WACrBA,UAAUC,cAAcC,MAAM/O,MAAK,SAAAgP,GACjCA,EAAaC,kB","file":"static/js/main.164728a0.chunk.js","sourcesContent":["import runtimeEnv from '@mars/heroku-js-runtime-env';\nconst env = runtimeEnv();\n\nconst production = {\n apiAddress: 'https://node-go-api.herokuapp.com/api/v1',\n endpoint: 'https://play-node-go.herokuapp.com',\n authAddress: 'https://node-go-api.herokuapp.com/auth',\n socketAddress: 'https://node-go-api.herokuapp.com'\n}\n\nconst development = {\n apiAddress: 'http://localhost:8000/api/v1',\n authAddress: 'http://localhost:8000/auth',\n endpoint: 'http://localhost:3000',\n socketAddress: 'http://localhost:8000'\n}\n\nconst config = env.REACT_APP_ENVIRONMENT === 'production' \n ? production\n : development\n\nexport default {\n ...config\n}","import socketIOClient from 'socket.io-client';\nimport config from './config';\n\nconst launch = (nsp, dispatch) => {\n const socket = socketIOClient(`${config.socketAddress}/${nsp}`);\n \n socket.on('connected', () => {\n dispatch({ type:'SOCKET', message:'CONNECTED', body:{nsp: socket.nsp} });\n });\n socket.on('connect_error', err => {\n dispatch({ type: 'ERR', message:'SOCKET_ERROR', body: { socketError: err }});\n });\n socket.on('error', err => {\n dispatch({ type: 'ERR', message:'SOCKET_ERROR', body: { socketError: err } });\n });\n \n socket.on('room_connected', (data) => {\n dispatch({ type: 'ROOMS', message: 'CONNECT_ROOM', body: data });\n });\n \n socket.on('new_user', (data) => {\n console.log('new_user received')\n dispatch({ type: 'ROOMS', message: 'NEW_USER', body: data })\n })\n\n socket.on('game_connected', (data) => {\n console.log(data)\n console.log('game_connected received')\n dispatch({ type: 'GAMES', message: 'UPDATE_BOARD', body: data })\n })\n \n socket.on('update_board', (data) => {\n console.log(data)\n console.log('update_board received')\n dispatch({ type: 'GAMES', message: 'UPDATE_BOARD', body: data.board })\n })\n\n return socket;\n}\n\nexport {\n launch\n}","import React from 'react';\nimport './Logo.scss';\n\nconst Logo = () => {\n return ( \n <>\n Logo\n >\n );\n}\n \nexport default Logo;","import React from 'react';\nimport { Link } from 'react-router-dom';\nimport './NavBar.scss';\nimport Logo from '../../../components/Display/Logo/Logo';\n\nconst NavBar = (props) => {\n\n return (\n
Find a Game
News
Login
\n\n {\n showForm === 'login' \n ?Signup
\n\n {\n showForm === 'signup' \n ?\n New Room\n
\n\n Find Room\n
\n\n Library\n
\n\n Find Game\n
\n\n New Game\n
\n\n Room Archive\n
\nAccount
\nPass?
\nResign?
\n\n{user ? user.captures : 'Captures go here'}
\n\nTimer
\n? Game Tree
\nMessages
\nMessage Form
\nNews
\n{messageData.content}
\n{messageData.username}
\n{messageData.admin ? 'admin' : <>>}
\nThis Feature is in Development :)
\n >);\n}\n\nexport default Development;","import React, { useEffect } from 'react';\nimport { useParams } from 'react-router-dom';\nimport './Room.scss';\nimport roomsServices from '../../services/api/roomsServices';\nimport GameButton from '../../components/Button/Game/Game';\nimport Message from '../../components/Display/Message/Message';\nimport ActionError from '../../components/Error/ActionError/ActionError';\n\nimport Development from '../../components/Display/Development/Development';\nimport Loading from '../../components/Display/Loading/Loading';\n\nconst Room = (props) => {\n const { state, dispatch } = props;\n const roomId = parseInt(useParams().id) || 0;\n\n \n useEffect(() => {\n const fetchRoomAPI = async () => {\n const response = await roomsServices.getRoomService(roomId);\n if (response) {\n const action = {\n type: 'ROOMS',\n message: 'JOIN_ROOM',\n body: response\n }\n return dispatch(action);\n }\n }\n fetchRoomAPI();\n }, [ roomId, dispatch ])\n\n useEffect(() => {\n const roomSocketConnect = () => {\n const action = {\n type: 'SOCKET',\n message: 'CONNECT_ROOM',\n body: {user: state.user, room: roomId, dispatch}\n }\n dispatch(action)\n }\n roomSocketConnect();\n }, [ roomId, state.user, dispatch ])\n\n const renderGames = () => {\n const games = state.games || [];\n if (games.length) {\n return games.map(gameData => (\n{state.connect.type ? '✓' : ' ⃠'}
\n