{"version":3,"sources":["contexts/extenstions/safeFetch.js","contexts/extenstions/fromResult.js","contexts/extenstions/setLocalStorage.js","contexts/extenstions/url.js","contexts/teamActions/signIn.js","contexts/teamContext.js","contexts/teamActions/signUp.js","contexts/teamActions/signOut.js","contexts/teamActions/getRating.js","contexts/extenstions/parseResponseTime.js","contexts/taskActions/getNewTask.js","contexts/taskContext.js","contexts/taskActions/setTaskById.js","contexts/taskActions/sendAnswer.js","contexts/taskActions/getStatus.js","contexts/taskActions/getTakenTasks.js","blocks/TeamWidget.js","contexts/challengeActions/update.js","contexts/challengeActions/getNextRoundTime.js","contexts/challengeContext.js","contexts/challengeActions/getCurrentRound.js","contexts/challengeActions/getTaskTypes.js","contexts/challengeActions/getCanChooseType.js","contexts/challengeActions/getStartedRounds.js","contexts/challengeActions/getRoundById.js","blocks/ChallengeDescription.js","controls/FormContainer.js","blocks/CommonDescription.js","pages/Home.js","controls/navbar/Navbar.js","etc/onEnter.js","etc/useInput.js","blocks/Error.js","controls/navbar/LoginField.js","controls/navbar/Title.js","controls/navbar/Collapse.js","controls/navbar/NavLink.js","contexts/settingsContext.js","contexts/settingsActions/getSettings.js","blocks/NavMenu.js","blocks/Layout.js","controls/FormButton.js","pages/SignUp.js","pages/SignUpSuccess.js","blocks/NotAuthorized.js","pages/GetNewTask.js","blocks/ListItem.js","blocks/Deadline.js","pages/Task.js","blocks/LinkRow.js","pages/Status.js","blocks/TasksList.js","pages/StatusTask.js","pages/Rating.js","pages/Profile.js","App.js","registerServiceWorker.js","index.js"],"names":["checkStatus","response","Promise","resolve","reject","json","catch","errorName","errorDescription","errorLevel","then","ok","code","status","error","text","level","url","params","fetch","value","func","undefined","setLocalStorage","localStorage","setItem","secret","fromResult","get","setTeam","safeFetch","getTeam","useTeamContext","useState","team","teams","setTeams","useMemo","signIn","signUp","form","headers","method","body","signOut","clear","getRating","TeamContext","createContext","task","delta","Date","parse","responseTime","now","getTask","round","type","getTaskWithType","getTaskWithoutType","useTaskContext","setTask","takenTasks","setTakenTasks","getNewTask","parseResponseTime","setTaskById","id","sendAnswer","answer","JSON","stringify","getStatus","setStatus","getTakenTasks","page","setTasks","tasks","map","TaskContext","TeamWidget","ctx","useContext","taskCtx","getTasksCount","statuses","count","className","style","maxWidth","teamName","points","Object","values","reduce","a","b","role","aria-label","setChallenge","getChallenge","byDate","strA","startTimestamp","strB","dateA","dateB","useChallengeContext","challenge","update","getCurrentRound","rounds","filter","endTimestamp","getTaskTypes","taskTypes","getNextRoundTime","start","sort","toLocaleString","getCanChooseType","canChooseType","getStartedRounds","getRoundById","results","r","length","ChallengeContext","ChallengeDescription","Consumer","source","description","FormContainer","children","CommonDescription","Home","NavBar","Navbar","dark","onEnter","onKeyDown","e","keyCode","preventDefault","target","useInput","defaultState","set","onChange","timer","Header","styled","ToastHeader","icons","warning","title","Error","close","getState","setState","hide","clearTimeout","setTimeout","Toast","isOpen","toggle","tagClassName","icon","ToastBody","Fragment","LoginField","pending","setPending","setError","inputSecret","teamCtx","login","InputGroup","Input","placeholder","invalid","InputGroupAddon","addonType","Button","disabled","onClick","defaultProps","Title","NavbarBrand","tag","Link","to","Collapse","navbar","NavLink","NavItem","useSettingsContext","settings","setSettings","getSettings","SettingsContext","NavMenu","collapsed","setCollapsed","setTitle","challengeCtx","settingsCtx","useEffect","Container","NavbarToggler","canRegister","Layout","button","attrs","SignUp","newName","inputNewName","setNewName","inputTeamName","success","setSuccess","members","setMembers","handleAdd","name","concat","isMemberValid","field","push","key","index","val","i","test","every","isFormValid","challengeId","SignUpSuccess","NotAuthorized","GetNewTask","location","nextRoundTime","search","slice","split","x","handleSend","document","getElementById","Alert","color","defaultValue","ListItem","ListGroupItem","ListGroupItemHeading","Deadline","onDeadline","fixedDeadline","deadline","deadlineClass","handleDeadline","date","precision","onComplete","daysInHours","Task","match","inputAnswer","deadlineEnd","setDeadlineEnd","err","send","ListGroup","typeId","cost","userHint","whiteSpace","textAlign","question","teamAnswer","Row","LinkRow","clicked","setClicked","Status","setRounds","dateFormat","dateString","toLocaleDateString","toLocaleTimeString","byTypeStatus","isOver","r1","r2","date1","date2","Table","responsive","hover","tasksCount","sum","takenByType","t","takenByRound","TasksList","setPage","thirdColumn","ButtonGroup","Math","max","t1","t2","takeTimestamp","overflow","StatusTask","roundId","Rating","roundIndex","team1","team2","teamIdex","join","Profile","member","App","er","Provider","exact","path","component","exace","Boolean","window","hostname","baseUrl","getElementsByTagName","getAttribute","rootElement","ReactDOM","render","basename","navigator","serviceWorker","ready","registration","unregister"],"mappings":"qMAOMA,EAAc,SAACC,GAAD,OAAc,IAAIC,SAAQ,SAACC,EAASC,GAAV,OAAqBH,EAC9DI,OACAC,OAAM,iBAAO,CACVC,UAAW,wBACXC,iBAAkB,qgBAElBC,WAAY,YAEfC,MAAK,SAACL,GAAD,OAAWJ,EAASU,GACpBR,EAAQE,GACRD,GAjBQ,EAiBmBC,EAjB2C,CAC5EO,KAgBuBX,EAjBNY,OAEjBC,MAFc,EAAeP,UAG7BQ,KAHc,EAA0BP,iBAIxCQ,MAJc,EAA4CP,cAA5C,aAmBH,WAACQ,EAAKC,GAAN,OAAiBC,MAAMF,EAAKC,GACtCR,KAAKV,ICpBK,WAACoB,EAAOC,GAAR,OAAiB,IAAInB,SAAQ,SAACC,QAC5BmB,IAATD,GACAA,EAAKD,GAGTjB,EAAQiB,OCHNG,EAAkB,SAAClB,GAAD,OAAUmB,aAC7BC,QAAQ,SAAUpB,EAAKqB,SAEb,WAACrB,GAAD,OAAUsB,EAAWtB,EAAMkB,ICL3B,EACJ,YADI,EAEC,iBAFD,EAGJ,CACHV,OAAQ,mBACRe,IAAK,aALE,EAOD,eCDC,WAACF,EAAQG,GAAT,YAAkCP,IAAXI,EAChCxB,QAAQE,OAAO,CAAEQ,KAAM,IAAKE,MAAO,qBAHzB,SAACY,GAAD,OAAYI,EAAU,GAAD,OAAIb,EAAJ,mBAAwBS,IAIvDK,CAAQL,GACLhB,KAAKa,GACLb,KAAKmB,ICHP,SAASG,IACZ,MAAw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C,OAAO5F,SAAS6F,UAEc,UAA7BD,OAAO5F,SAAS6F,UAEhBD,OAAO5F,SAAS6F,SAASnE,MACxB,2DCTN,IAAMoE,GAAUvF,SAASwF,qBAAqB,QAAQ,GAAGC,aAAa,QAChEC,GAAc1F,SAASC,eAAe,QAE5C0F,IAASC,OACP,kBAAC,IAAD,CAAeC,SAAUN,IACvB,kBAACV,GAAD,OAEFa,IDwFM,kBAAmBI,WACnBA,UAAUC,cAAcC,MAAM7U,MAAK,SAAC8U,GAChCA,EAAaC,iB","file":"static/js/main.260a88e3.chunk.js","sourcesContent":["const errorInfo = ({ status }, { errorName, errorDescription, errorLevel }) => ({\n code: status,\n error: errorName,\n text: errorDescription,\n level: errorLevel,\n});\n\nconst checkStatus = (response) => new Promise((resolve, reject) => response\n .json()\n .catch(() => ({\n errorName: 'internal-server-error',\n errorDescription: 'Мы не смогли выполнить этот запрос.\\n'\n + 'Попробуйте повторить его позже или обратитесь к организаторам.',\n errorLevel: 'error',\n }))\n .then((json) => (response.ok\n ? resolve(json)\n : reject(errorInfo(response, json)))));\n\nexport default (url, params) => fetch(url, params)\n .then(checkStatus);\n","export default (value, func) => new Promise((resolve) => {\n if (func !== undefined) {\n func(value);\n }\n\n resolve(value);\n});\n","import fromResult from './fromResult';\n\nconst setLocalStorage = (json) => localStorage\n .setItem('secret', json.secret);\n\nexport default (json) => fromResult(json, setLocalStorage);\n","export default {\n teams: 'api/teams',\n challenges: 'api/challenges',\n tasks: {\n status: 'api/tasks/status',\n get: 'api/tasks',\n },\n settings: 'api/settings',\n};\n","import safeFetch from '../extenstions/safeFetch';\nimport setLocalStorage from '../extenstions/setLocalStorage';\nimport url from '../extenstions/url';\n\nconst getTeam = (secret) => safeFetch(`${url.teams}?secret=${secret}`);\n\nexport default (secret, setTeam) => ((secret === undefined)\n ? Promise.reject({ code: 400, error: 'undefined-secret' })\n : getTeam(secret)\n .then(setLocalStorage)\n .then(setTeam));\n","import { useState, useMemo } from 'react';\nimport { createContext } from 'react';\nimport signIn from './teamActions/signIn';\nimport signOut from './teamActions/signOut';\nimport signUp from './teamActions/signUp';\nimport getRating from './teamActions/getRating';\n\nexport function useTeamContext() {\n const [team, setTeam] = useState({});\n const [teams, setTeams] = useState([]);\n \n const teamContext = useMemo(() => ({\n signIn: (secret) => signIn(secret, setTeam),\n signUp: (form) => signUp(form, setTeam),\n signOut: () => signOut(setTeam),\n getRating: () => getRating(setTeams),\n teams,\n team,\n }), [team, teams]);\n return teamContext;\n }\n\nexport const TeamContext = createContext({});\n","import setLocalStorage from '../extenstions/setLocalStorage';\nimport safeFetch from '../extenstions/safeFetch';\nimport url from '../extenstions/url';\n\nexport default (form, setTeam) => safeFetch(url.teams, {\n headers: { 'Content-Type': 'application/json' },\n method: 'POST',\n body: form,\n})\n .then(setLocalStorage)\n .then(setTeam);\n","export default (setTeam) => {\n localStorage.clear();\n setTeam({});\n};\n","import safeFetch from '../extenstions/safeFetch';\nimport url from '../extenstions/url';\n\nexport default (setTeams) => safeFetch(`${url.teams}/all`)\n .then(setTeams);\n","export default (task) => ({\n ...task,\n delta: Date.parse(task.responseTime) - Date.now(),\n});\n","import safeFetch from '../extenstions/safeFetch';\nimport url from '../extenstions/url';\nimport parseResponseTime from '../extenstions/parseResponseTime';\n\nconst getTaskWithType = (round, type, secret) => safeFetch(\n `${url.tasks.get}?round=${round}&type=${type}&secret=${secret}`, { method: 'POST' },\n);\n\nconst getTaskWithoutType = (round, secret) => safeFetch(\n `${url.tasks.get}?round=${round}&secret=${secret}`, { method: 'POST' },\n);\n\nconst getTask = (round, type, secret) => (type !== undefined\n ? getTaskWithType(round, type, secret)\n : getTaskWithoutType(round, secret));\n\nexport default (round, type, secret, setTask) =>\n getTask(round, type, secret)\n .then(parseResponseTime)\n .then(setTask);\n","import { useState, useMemo } from 'react';\nimport { createContext } from 'react';\nimport getNewTask from './taskActions/getNewTask';\nimport setTaskById from './taskActions/setTaskById';\nimport sendAnswer from './taskActions/sendAnswer';\nimport getStatus from './taskActions/getStatus';\nimport getTakenTasks from './taskActions/getTakenTasks';\n\nexport function useTaskContext() {\n const [task, setTask] = useState({});\n const [takenTasks, setTakenTasks] = useState([]);\n \n const taskContext = useMemo(() => ({\n getNewTask: (round, type, secret) => getNewTask(round, type, secret, setTask),\n setTaskById: (id, secret) => setTaskById(id, secret, setTask),\n sendAnswer: (answer, secret) => sendAnswer(task.id, answer, secret, setTask),\n getStatus: (secret) => getStatus(secret, setTakenTasks),\n getTakenTasks: (secret, round, type, status, page, setTasks) => getTakenTasks(secret, round, type, status, page, setTasks),\n status: takenTasks,\n task,\n }), [task, takenTasks]);\n return taskContext;\n}\n\nexport const TaskContext = createContext({});\n","import safeFetch from '../extenstions/safeFetch';\nimport url from '../extenstions/url';\nimport parseResponseTime from '../extenstions/parseResponseTime';\n\nexport default (id, secret, setTask) => safeFetch(\n `${url.tasks.get}/${id}?secret=${secret}`,\n)\n .then(parseResponseTime)\n .then(setTask);\n","import safeFetch from '../extenstions/safeFetch';\nimport url from '../extenstions/url';\n\nexport default (id, answer, secret, setTask) =>\n safeFetch(`${url.tasks.get}/${id}?secret=${secret}`, {\n method: 'POST',\n headers: { 'Content-Type': 'application/json' },\n body: JSON.stringify({ answer }),\n })\n .then(setTask);\n","import safeFetch from '../extenstions/safeFetch';\nimport url from '../extenstions/url';\n\nexport default (secret, setStatus) => safeFetch(`${url.tasks.status}?secret=${secret}`)\n .then(setStatus);\n","import safeFetch from '../extenstions/safeFetch';\nimport url from '../extenstions/url';\nimport parseResponseTime from '../extenstions/parseResponseTime';\n\nexport default (secret, round, type, status, page, setTasks) =>\n safeFetch(`${url.tasks.get}?secret=${secret}&round=${round}&type=${type}&status=${status}&offset=${10 * page}&count=10`)\n .then((tasks) => tasks\n .map(parseResponseTime))\n .then(setTasks);\n","import React, { useContext } from 'react';\nimport { TeamContext } from '../contexts/teamContext';\nimport { TaskContext } from '../contexts/taskContext';\n\nexport default function TeamWidget() {\n const ctx = useContext(TeamContext);\n const taskCtx = useContext(TaskContext);\n\n const getPoints = () => Object.values(ctx.team.points).reduce((a, b) => a + b, 0);\n\n function getTasksCount(statuses) {\n let count = 0;\n for (const round in taskCtx.status) {\n for (const type in taskCtx.status[round])\n for (const status in statuses) {\n if (taskCtx.status[round][type][statuses[status]] !== undefined) {\n count += taskCtx.status[round][type][statuses[status]];\n }\n }\n }\n return count;\n };\n\n return (\n
Это сервис для проведения онлайн-соревнований.
\n\n Команде выдаются задачи различных типов.\n Им предлагается написать бота, автоматизирующего решения этих задач.\n
\n\n Чем больше типов задач умеет решать бот, чем быстрее и оптимальнее он их решает,\n тем больше очков получит команда.\n
\n\n Для начала, зарегистрируй команду на соревнование или войди, используя секретный ключ.\n
\n\n {ctx.task.question}\n\n
\n Начало: {dateFormat(round.startTimestamp)}\n
\n\n Конец: {dateFormat(round.endTimestamp)}\n
\nТип | \nВсего | \nВзято | \n✅ | \n❌ | \n⏳ | \nОчки | \n\n {type.id}\n { canChooseType(round)\n && (\n \n )}\n | \n{type.tasksCount} | \n{takenByType(round.id, type.id)} | \n{byTypeStatus(round.id, type.id, 1)} | \n{byTypeStatus(round.id, type.id, 2)} | \n{byTypeStatus(round.id, type.id, 0)} | \n{byTypeStatus(round.id, type.id, 'points')} | \n
---|---|---|---|---|---|---|
Итого | \n{sum(round.taskTypes.map((t) => t.tasksCount))} | \n{takenByRound(round.id)} | \n{getTasksCount(round.id, [1])} | \n{getTasksCount(round.id, [2])} | \n{getTasksCount(round.id, [0])} | \n{getTasksCount(round.id, ['points'])} | \n
ID | \nВзята | \n{thirdColumn} | \n{task.id} | \n{dateFormat(task.takeTimestamp)} | \n {status === 0 && (\n\n | \n )}\n {status !== 0 && (\n \n {task.points}\n | \n )}\n
---|
# | \nКоманда | \nСостав | \n { rounds.map((round, roundIndex) => (\n{round} | \n ))}\nОчки | \n
---|---|---|---|---|
{teamIdex + 1} | \n{team.teamName} | \n{team.members.join(', ')} | \n { rounds.map((round, roundIndex) =>{ team.points[round] } | )}\n{sum(team)} | \n