{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/services/api/middleware.js","webpack:///./src/components/SteamAvatar/actions.js","webpack:///./src/components/SteamAvatar/middleware.js","webpack:///./src/services/wamp/actions.js","webpack:///./src/services/wamp/reducer.js","webpack:///./src/utils/loginData.js","webpack:///./src/services/wamp/session.js","webpack:///./src/services/wamp/saga.js","webpack:///./src/components/SteamAvatar/reducer.js","webpack:///./src/scenes/App/scenes/Home/saga.js","webpack:///./src/utils/createRouteFetchSaga.js","webpack:///./src/scenes/App/scenes/MapOverview/actions.js","webpack:///./src/scenes/App/scenes/MapOverview/scenes/Leaderboards/actions.js","webpack:///./src/scenes/App/scenes/MapOverview/scenes/Leaderboards/saga.js","webpack:///./src/scenes/App/scenes/MapOverview/saga.js","webpack:///./src/scenes/App/scenes/Maps/actions.js","webpack:///./src/scenes/App/scenes/Maps/saga.js","webpack:///./src/scenes/App/components/AppSearch/actions.js","webpack:///./src/scenes/App/components/AppSearch/reducer.js","webpack:///./src/scenes/App/scenes/Maps/reducer.js","webpack:///./src/scenes/App/scenes/MapOverview/scenes/Leaderboards/reducer.js","webpack:///./src/scenes/App/scenes/MapOverview/reducer.js","webpack:///./src/scenes/App/scenes/Home/scenes/Activity/actions.js","webpack:///./src/scenes/App/scenes/Home/scenes/Activity/reducer.js","webpack:///./src/scenes/App/scenes/PlayerOverview/actions.js","webpack:///./src/scenes/App/scenes/PlayerOverview/reducer.js","webpack:///./src/scenes/App/scenes/PlayerLeaderboards/actions.js","webpack:///./src/scenes/App/scenes/PlayerLeaderboards/reducer.js","webpack:///./src/scenes/App/scenes/Home/actions.js","webpack:///./src/scenes/App/scenes/Home/reducer.js","webpack:///./src/scenes/App/scenes/Home/scenes/Server/scenes/ServerDemoList/actions.js","webpack:///./src/scenes/App/scenes/Home/scenes/Server/scenes/ServerDemoList/reducer.js","webpack:///./src/scenes/App/scenes/DemoOverview/actions.js","webpack:///./src/scenes/App/scenes/DemoOverview/reducer.js","webpack:///./src/scenes/App/scenes/RecordOverview/actions.js","webpack:///./src/scenes/App/scenes/RecordOverview/reducer.js","webpack:///./src/scenes/App/reducer.js","webpack:///./src/store.js","webpack:///./src/utils/TempusUtils.js","webpack:///./src/components/SteamAvatar/index.js","webpack:///./src/constants/zoneIcons.js","webpack:///./src/scenes/App/scenes/Home/scenes/Activity/components/ActivityList/index.js","webpack:///./src/scenes/App/scenes/Home/scenes/Activity/index.js","webpack:///./src/scenes/App/scenes/Home/scenes/Servers/components/ServerItem/index.js","webpack:///./src/scenes/App/scenes/Home/scenes/Servers/components/ServerFilters/index.js","webpack:///./src/scenes/App/scenes/Home/scenes/Servers/index.js","webpack:///./src/scenes/App/scenes/Home/scenes/Server/components/ServerPlayerList/index.js","webpack:///./src/scenes/App/scenes/Home/scenes/Server/scenes/ServerDemoList/index.js","webpack:///./src/scenes/App/scenes/Home/scenes/Server/index.js","webpack:///./src/scenes/App/scenes/Home/index.js","webpack:///./src/components/Throbber.js","webpack:///./src/constants/Difficulties.js","webpack:///./src/scenes/App/scenes/Maps/components/MapListFilters/index.js","webpack:///./src/scenes/App/scenes/Maps/components/MapListFancy/components/MapListItem/index.js","webpack:///./src/scenes/App/scenes/Maps/components/MapListFancy/index.js","webpack:///./src/components/ZoneIcon/index.js","webpack:///./src/scenes/App/scenes/Maps/components/MapListSimple/index.js","webpack:///./src/scenes/App/scenes/Maps/index.js","webpack:///./src/scenes/App/scenes/MapOverview/components/MapOverviewNav/index.js","webpack:///./src/components/TFIcon/index.js","webpack:///./src/scenes/App/scenes/MapOverview/scenes/Overview/components/SteamAvatarMedal/index.js","webpack:///./src/scenes/App/scenes/MapOverview/scenes/Overview/components/WorldRecord/index.js","webpack:///./src/scenes/App/scenes/MapOverview/scenes/Authors/index.js","webpack:///./src/scenes/App/scenes/MapOverview/scenes/Overview/index.js","webpack:///./src/constants/TFClasses.js","webpack:///./src/scenes/App/scenes/MapOverview/scenes/Leaderboards/components/Leaderboard/components/LeaderboardTable/components/LeaderboardItem/index.js","webpack:///./src/scenes/App/scenes/MapOverview/scenes/Leaderboards/components/Leaderboard/components/LeaderboardTable/index.js","webpack:///./src/scenes/App/scenes/MapOverview/scenes/Leaderboards/components/Leaderboard/components/LeaderboardAdminDropdown/index.js","webpack:///./src/components/Label/index.js","webpack:///./src/components/Input/index.js","webpack:///./src/components/StaticFormControl/index.js","webpack:///./src/scenes/App/scenes/MapOverview/scenes/Leaderboards/components/Leaderboard/components/AddRunModal/components/AddRunForm/components/DemoInput/index.js","webpack:///./src/scenes/App/scenes/MapOverview/scenes/Leaderboards/components/Leaderboard/components/AddRunModal/components/AddRunForm/components/PlayerSelectionInput/index.js","webpack:///./src/components/FormGroupHorizontal/index.js","webpack:///./src/scenes/App/scenes/MapOverview/scenes/Leaderboards/components/Leaderboard/components/AddRunModal/components/AddRunForm/index.js","webpack:///./src/scenes/App/scenes/MapOverview/scenes/Leaderboards/components/Leaderboard/components/AddRunModal/index.js","webpack:///./src/scenes/App/scenes/MapOverview/scenes/Leaderboards/components/Leaderboard/components/PersonalRecord/index.js","webpack:///./src/scenes/App/scenes/MapOverview/scenes/Leaderboards/components/Leaderboard/index.js","webpack:///./src/scenes/App/scenes/MapOverview/scenes/Leaderboards/index.js","webpack:///./src/scenes/App/scenes/MapOverview/components/Background/index.js","webpack:///./src/scenes/App/scenes/MapOverview/components/Header/components/Author/index.js","webpack:///./src/scenes/App/scenes/MapOverview/components/Header/index.js","webpack:///./src/scenes/App/scenes/MapOverview/index.js","webpack:///./src/scenes/App/scenes/PlayerOverview/components/Stats/index.js","webpack:///./src/components/PropsRoute/index.js","webpack:///./src/scenes/App/scenes/PlayerOverview/index.js","webpack:///./src/scenes/App/scenes/PlayerLeaderboards/components/PlayerLeaderboardTitle/index.js","webpack:///./src/scenes/App/scenes/PlayerLeaderboards/index.js","webpack:///./src/scenes/App/scenes/DemoOverview/components/DemoInfo/index.js","webpack:///./src/scenes/App/scenes/DemoOverview/components/DemoRuns/index.js","webpack:///./src/scenes/App/scenes/DemoOverview/components/DemoDownloadButton/index.js","webpack:///./src/scenes/App/scenes/DemoOverview/index.js","webpack:///./src/scenes/App/scenes/RecordOverview/index.js","webpack:///./src/scenes/App/scenes/AuthorOverview/index.js","webpack:///./src/scenes/App/components/AppSearch/components/AppSearchInput/index.js","webpack:///./src/scenes/App/components/AppSearch/components/AppSearchResults/index.js","webpack:///./src/scenes/App/components/AppSearch/index.js","webpack:///./src/scenes/App/components/Navbar/components/Avatar/index.js","webpack:///./src/scenes/App/components/Navbar/index.js","webpack:///./src/scenes/App/components/Footer/index.js","webpack:///./src/scenes/App/index.js","webpack:///./src/index.js"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","Object","prototype","hasOwnProperty","call","installedChunks","push","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","0","exports","module","l","m","c","d","name","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","p","jsonpArray","window","oldJsonpFunction","slice","CALL_API","GET","POST","DELETE","BASE_URL","logError","error","console","original","request","method","endpoint","url","superagent","accept","on","_get","_post","send","_delete","QUEUE_AVATAR","REQUEST","SUCCESS","FAILURE","loadAvatars","steamids","started","success","failure","params","join","AvatarQueue","callback","this","queue","steamID","startTimeout","undefined","timeout","clearTimeout","setTimeout","fire","wampCall","createAction","wampSubscribe","wampUnsubscribe","handleActions","actions","state","action","set","actionType","uri","Immutable","Map","lastCookie","cookie","Cookies","JSON","parse","atob","USERNAME","username","PLAYERNAME","playername","STEAMID","steamid","PLAYERID","playerid","PERMISSIONS","List","permissions","TEMPUS_PERMISSIONS","tempus_permissions","REALM","realm","WEBSOCKET_PORT","deployment","deployment_type","parseInt","websocket_port","pollCookie","currentCookie","location","reload","setInterval","hostname","SessionProxy","ticket","dispatch","session","running","wantsSubs","actionSubscriptions","forEach","topic","_subForDispatch","subscribe","args","kwargs","then","subscription","log","unsubscribe","procedure","options","register","publish","handler","connection","Connection","authmethods","authid","onchallenge","extra","Promise","resolve","reject","onopen","details","sessionAvailable","onclose","reason","open","close","rootSaga","initSession","eventChannel","emitter","payload","type","run","stop","callProcedure","wantsUnsubscribe","wantsSubscribe","actionTypes","channel","takeEvery","take","put","initialState","fromJS","reducer","mergeDeep","fetching","merge","LOCATION_CHANGE","createRouteFetchSaga","path","actionCreator","_onLocationChange","_saga","matchOptions","oldMatch","pathname","match","matchPath","stringify","LOAD_REQUEST","LOAD_SUCCESS","LOAD_FAILURE","SELECT_VIDEO","loadMapOverview","mapName","getState","app","mapOverview","fetch","FETCH","RECEIVE","FETCH_ERROR","FETCH_MORE","FETCH_MORE_SUCCESS","FETCH_MORE_ERROR","TOGGLE_EXPAND","COLLAPSE_ALL","zoneType","index","leaderboards","fetchLeaderboard","zoneIndex","mapOverviewSaga","all","leaderboardSaga","RESET","SET_FILTER","SET_SIMPLE","SELECT_SORT","maps","exact","Record","dataRecord","players","sortState","sortBy","ascending","filters","simple","sort","expandedRuns","Set","playerClass","runsKey","3","4","results","runID","updateIn","x","includes","add","clear","selectedVideo","combineReducers","video","leaderboardsReducer","playerID","rankType","start","selected","UPDATE","FILTER_TOGGLE","loadServers","servers","filter","filterReverse","fetchServerDemos","serverID","serverDemosFetching","serverDemosReceived","serverDemosError","InitialState","FETCHING","RECEIVED","FETCHING_ERROR","UPLOADING","UPLOAD_SUCCESS","UPLOAD_ERROR","uploading","uploadingError","setIn","fetchRecordOverview","recordID","search","other","mergeIn","update","activity","playerOverview","playerLeaderboards","reduce","map","getIn","gameInfo","game_info","serverDemos","demoOverview","recordOverview","wampSaga","serversSaga","mapsSaga","pad","num","size","substring","formatTime","time","h","ms","newTime","Math","floor","toString","prettyZoneName","customName","toUpperCase","capitalize","Steam","steam","defaultAvatars","tiny","mini","small","medium","mediumlarge","large","getAvatarURL","steamInfo","avatar","SteamAvatar","steamID64","noLink","innerBorder","avatars","queueAvatar","style","sid","convertTo64","avatarURL","useState","imgLoaded","setImgLoaded","imgError","setImgError","useEffect","unmounted","image","Image","onload","onerror","src","steamStatus","status","classes","cx","body","className","opacity","href","onClick","e","stopPropagation","target","rel","propTypes","P","string","oneOf","func","isRequired","bool","connect","steamAvatars","toJS","ActivityList","props","items","concat","reverse","idx","pi","mi","zi","ri","iconClasses","date","to","zoneIcons","React","Component","IP","Activity","loadActivity","buttonTitle","pullRight","title","bsStyle","component","ServerItem","serverInfo","serverAddr","toLowerCase","ServerFilters","f","ev","toggleFilter","Servers","valueSeq","si","country","gi","server","totalPlayers","total","renderServers","ServerPlayerList","users","maxPlayers","currentMap","hover","condensed","enter","leave","u","id","ServerDemoList","loadServerDemos","demo","demoStatus","recording","requested","mapname","Server","verticalAlign","shortname","addr","port","md","Home","display","textAlign","OPTIONS","D","MapListFilters","marginBottom","onChange","setFilter","toggleSimple","FilterDropdown","onSelect","active","soldierFilter","number","demomanFilter","MapListItem","visible","showImage","imageUrl","isVisible","onImageLoaded","setState","item","soldierTier","demomanTier","content","bgStyles","backgroundImage","renderTiers","onVisibilityChange","partialVisibility","MapListFancy","ZoneIcon","fixedWidth","headingNames","sortName","MapListHeadings","selectMapSort","classnames","cursor","Tier","tier","Difficulties","MapListSimple","bonusCount","courseCount","width","list","record","keyPath","defaultValue","processedData","sFilt","dFilt","Throbber","marginTop","hidden","zoneTypes","MapOverviewNavItem","zone","baseURL","MapOverviewLeaderboardNav","zones","zonesGrouped","zs","Fragment","interleave","Range","withRouter","role","TFIcon","tfClass","SteamAvatarMedal","children","transform","WorldRecord","runInfo","player_info","duration","Authors","authors","author","authorID","position","toObject","soldier_runs","demoman_runs","rank1","rank2","rank3","color","flexDirection","JUMP_CLASSES","CLASSINDEX_TO_NAME","memo","firstPlace","expanded","rank","rankElement","textShadow","a","b","LeaderboardTable","fetchMore","toggleExpand","collapseAll","colSpan","LeaderboardAdminDropdown","zoneInfo","addRunURL","noCaret","Label","valid","invalid","required","Input","fieldState","createField","fieldPresets","input","label","disabled","hint","fieldProps","validating","validatedAsync","errors","htmlFor","StaticFormControl","node","styled","table","DemoInfoRow","DemoInfoTable","placeholder","padding","filename","server_info","DemoInput","selectedDemo","PlayerSelectionInput","FormGroup","labelWidth","sampleDemo","expired","uploader_id","server_id","deleted","rules","startTick","messages","missing","AddRunForm","mapInfo","zoneName","zoneindex","custom_name","rule","AddRunModal","onClose","overlayClassName","bodyOpenClassName","isOpen","overlay","zIndex","background","onRequestClose","aria-label","aria-hidden","PersonalRecord","tfClassLower","customZoneName","marginRight","height","Leaderboards","useParams","mapData","zoneID","lastRank","last","paddingLeft","paddingRight","Background","imgURL","styles","Author","authorItem","Header","cls","selectVideo","leaderboard","flex","from","Overview","Stats","rankInfo","cri","countryRankInfo","playerInfo","points","statsType","country_code","prStats","wrStats","topStats","zoneCount","PropsRoute","rest","render","routeProps","finalProps","assign","createElement","renderMergedProps","PlayerOverview","loadPlayer","nextProps","class_rank_info","soldier","demoman","firstSeenDate","Date","first_seen","redirectURL","getBestClass","last_seen","year","getFullYear","month","getMonth","day","getDate","getFormattedDate","renderChatRank","pc","cn","country_class_rank_info","pr_stats","wr_stats","top_stats","zone_count","rank_info","country_rank_info","PlayerLeaderboardTitle","icon","loadRanks","activeClassname","fontSize","striped","round","DemoInfo","demoInfo","DemoRuns","demoRuns","zone_info","zri","zone_run_info","runType","run_type","player_class","wr","top","pr","start_tick","end_tick","DemoDownloadButton","onClickUpload","button","DemoOverview","loadDemoOverview","requestDemoUpload","demoID","fetchDemoOverview","RecordOverview","loadRecordOverview","recordInfo","zoneTier","demo_start_tick","demo_end_tick","AuthorOverview","AppSearchInput","searchValue","timeoutID","triggerLoad","event","blah","select","onInputChange","onKeyPress","onFocus","onInputFocus","AppSearchResults","dismiss","renderResults","shown","AppSearch","document","addEventListener","onDocumentClick","removeEventListener","refs","searchContainer","contains","searchData","ref","val","searchPlayersAndMaps","onClickDismiss","Avatar","activeClassName","divider","AppNavbar","inverse","fixedTop","Brand","Toggle","Collapse","navbar","eventKey","Form","Footer","ReactModal","setAppElement","history","avatarQueue","composeEnhancers","sagaMiddleware","store","App","Maps","MapOverview","PlayerLeaderboards","createBrowserHistory","compose","router","connectRouter","wamp","createSagaMiddleware","createStore","applyMiddleware","routerMiddleware","thunkMiddleware","next","callAPI","actionWith","finalAction","runActions","thing","query","end","err","res","ok","header","statusText","steamIDs","queueLoad","ReactDOM","getElementById"],"mappings":"aACE,SAASA,EAAqBC,GAQ7B,IAPA,IAMIC,EAAUC,EANVC,EAAWH,EAAK,GAChBI,EAAcJ,EAAK,GACnBK,EAAiBL,EAAK,GAIHM,EAAI,EAAGC,EAAW,GACpCD,EAAIH,EAASK,OAAQF,IACzBJ,EAAUC,EAASG,GAChBG,OAAOC,UAAUC,eAAeC,KAAKC,EAAiBX,IAAYW,EAAgBX,IACpFK,EAASO,KAAKD,EAAgBX,GAAS,IAExCW,EAAgBX,GAAW,EAE5B,IAAID,KAAYG,EACZK,OAAOC,UAAUC,eAAeC,KAAKR,EAAaH,KACpDc,EAAQd,GAAYG,EAAYH,IAKlC,IAFGe,GAAqBA,EAAoBhB,GAEtCO,EAASC,QACdD,EAASU,OAATV,GAOD,OAHAW,EAAgBJ,KAAKK,MAAMD,EAAiBb,GAAkB,IAGvDe,IAER,SAASA,IAER,IADA,IAAIC,EACIf,EAAI,EAAGA,EAAIY,EAAgBV,OAAQF,IAAK,CAG/C,IAFA,IAAIgB,EAAiBJ,EAAgBZ,GACjCiB,GAAY,EACRC,EAAI,EAAGA,EAAIF,EAAed,OAAQgB,IAAK,CAC9C,IAAIC,EAAQH,EAAeE,GACG,IAA3BX,EAAgBY,KAAcF,GAAY,GAE3CA,IACFL,EAAgBQ,OAAOpB,IAAK,GAC5Be,EAASM,EAAoBA,EAAoBC,EAAIN,EAAe,KAItE,OAAOD,EAIR,IAAIQ,EAAmB,GAKnBhB,EAAkB,CACrBiB,EAAG,GAGAZ,EAAkB,GAGtB,SAASS,EAAoB1B,GAG5B,GAAG4B,EAAiB5B,G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GAdL6B,IAASrJ,OACP,kBAAC,gBAAD,KACE,kBAAC,KAAD,CAAUuH,MAAOA,IACf,kBAAC,gBAAD,KACE,kBAAC,IAAD,CAAiBJ,QAASA,IACxB,kBAACrX,GAAD,UAKR0V,SAAS8D,eAAe,S","file":"bundle-4c68e473b7d1ee27bc70.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t0: 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n \tvar jsonpArray = window[\"webpackJsonp\"] = window[\"webpackJsonp\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// add entry module to deferred list\n \tdeferredModules.push([\"./src/index.js\",1]);\n \t// run deferred modules when ready\n \treturn checkDeferredModules();\n","import superagent from 'superagent'\n\n\nexport const CALL_API = Symbol('Call API')\nexport const GET = 'GET'\nexport const POST = 'POST'\nexport const DELETE = 'DELETE'\n\n//const BASE_URL = '/api/'\nconst BASE_URL = '/api/v0/'\n\n\nexport function logError(error) {\n console.error('%o', error.original)\n}\n\n\nfunction request(method, endpoint) {\n const url = BASE_URL + endpoint\n return superagent(method, url)\n .accept('json')\n .on('error', logError)\n}\n\n\nfunction _get(endpoint, data) {\n return request(GET, endpoint)\n}\n\n\nfunction _post(endpoint, data) {\n return request(POST, endpoint).send(data)\n}\n\n\nfunction _delete(endpoint) {\n return request(DELETE, endpoint)\n}\n\n\nexport default function apiMiddleware() {\n return store => next => action => {\n const callAPI = action[CALL_API]\n if (typeof callAPI === 'undefined') {\n return next(action)\n }\n\n let {endpoint} = callAPI\n const {method, params, data} = callAPI\n\n function actionWith(data) {\n const finalAction = Object.assign({}, action, data)\n delete finalAction[CALL_API]\n return finalAction\n }\n\n const {started, success, failure} = callAPI\n\n function runActions(actions, extra) {\n for (let a of actions) {\n if (typeof a === 'string') {\n const thing = Object.assign({}, extra, {type: a})\n next(actionWith(thing))\n }\n else {\n const payload = Object.assign({}, action, extra)\n delete payload[CALL_API]\n store.dispatch(a(payload))\n }\n }\n }\n\n runActions(started)\n\n let request\n switch (method) {\n case GET:\n request = _get(endpoint)\n break\n case POST:\n request = _post(endpoint, data)\n break\n case DELETE:\n request = _delete(endpoint)\n break\n }\n if (params) {\n request.query(params)\n }\n\n return request.end((err, res) => {\n if (res === undefined) {\n runActions(failure, {error: 'Server unreachable'})\n }\n else if (res.ok) {\n runActions(success, {data: res.body})\n } else {\n let error\n if (res.header['content-type'] === 'application/json' && res.body) {\n error = res.body.error\n }\n else {\n error = res.status + ' ' + res.statusText\n }\n runActions(failure, {error})\n }\n })\n }\n}\n","import {CALL_API, GET} from 'root/services/api/middleware'\n\n\nexport const QUEUE_AVATAR = 'AVATARS_QUEUE_ONE'\nexport const REQUEST = 'AVATARS_REQUEST'\nexport const SUCCESS = 'AVATARS_SUCCESS'\nexport const FAILURE = 'AVATARS_FAILURE'\n\n\nexport function loadAvatars(steamids) {\n return (\n { [CALL_API]:\n { method: GET\n , started: [REQUEST]\n , success: [SUCCESS]\n , failure: [FAILURE]\n , endpoint: 'steamavatars'\n , params: {steamids: steamids.join(',')}\n }\n })\n}\n\n\nexport function queueAvatar(steamID) {\n return (\n { type: QUEUE_AVATAR\n , steamID: steamID\n })\n}\n","import {QUEUE_AVATAR} from './actions'\nimport {loadAvatars} from './actions'\n\n\nclass AvatarQueue {\n constructor(callback) {\n this.queue = []\n this.callback = null\n }\n\n queueLoad(steamID) {\n this.queue.push(steamID)\n this.startTimeout()\n }\n\n clearTimeout() {\n if (this.timeout !== undefined) {\n window.clearTimeout(this.timeout)\n delete this.timeout\n }\n }\n\n startTimeout() {\n this.clearTimeout()\n this.timeout = window.setTimeout(this.fire.bind(this), 50)\n }\n\n fire() {\n this.callback(this.queue)\n this.queue = []\n }\n}\n\n\nexport default function steamAvatarMiddleware() {\n const avatarQueue = new AvatarQueue()\n return store => next => action => {\n if (action.type !== QUEUE_AVATAR) {\n return next(action)\n }\n\n let result = next(action)\n\n avatarQueue.callback = (steamIDs) => store.dispatch(loadAvatars(steamIDs))\n avatarQueue.queueLoad(action.steamID)\n return result\n }\n}\n","import {createAction} from 'redux-actions'\n\n\nexport function call(procedure, args, kwargs, actionTypes) {\n return wampCall({procedure, args, kwargs, actionTypes})\n}\n\n\nexport function subscribe(topic, actionType) {\n return wampSubscribe({topic, actionType})\n}\n\n\nexport function unsubscribe(topic, actionType) {\n return wampUnsubscribe({topic, actionType})\n}\n\n\nexport const wampCall = createAction('WAMP/CALL')\nexport const wampSubscribe = createAction('WAMP/SUBSCRIBE')\nexport const wampUnsubscribe = createAction('WAMP/UNSUBSCRIBE')\n","import Immutable from 'immutable'\nimport {handleActions} from 'redux-actions'\n\nimport * as actions from './actions'\n\n\nexport default handleActions({\n [actions.wampSubscribe]: (state, action) => (\n state.set(action.actionType, action.uri)\n ),\n\n [actions.wampUnsubscribe]: (state, action) => (\n state.delete(action.actionType)\n )\n}, Immutable.Map())\n","import Immutable from 'immutable'\nimport Cookies from 'cookies-js'\n\nconst cookie = Cookies.get('TEMPUS_DATA')\nconst data = cookie ? JSON.parse(atob(cookie)) : {}\n\nexport let USERNAME = data.username ?? 'anonymous'\nexport let PLAYERNAME = data.playername ?? ''\nexport let STEAMID = data.steamid ?? ''\nexport let PLAYERID = data.playerid ?? null\nexport let PERMISSIONS = Immutable.List(data.permissions ?? ['public'])\nexport let TEMPUS_PERMISSIONS = Immutable.List(data.tempus_permissions ?? [])\nexport let REALM = data.realm ?? 'jump'\nexport let DEPLOYMENT = data.deployment ?? 'jump'\nexport let DEPLOYMENT_TYPE = data.deployment_type ?? 'jump'\nexport let WEBSOCKET_PORT = parseInt(data.websocket_port ?? 9999)\n\nconst pollCookie = (() => {\n const lastCookie = Cookies.get('TEMPUS_DATA')\n\n return () => {\n const currentCookie = Cookies.get('TEMPUS_DATA')\n if (currentCookie != lastCookie) {\n window.location.reload()\n lastCookie = currentCookie\n }\n }\n})()\n\nwindow.setInterval(pollCookie, 10000)","import {Connection} from 'autobahn'\nimport Immutable from 'immutable'\n\nimport {REALM, WEBSOCKET_PORT} from 'root/utils/loginData'\n\n\nconst url = `wss://${window.location.hostname}:${WEBSOCKET_PORT}/ws`\n\n\nexport default class SessionProxy {\n constructor(ticket, dispatch) {\n this.ticket = ticket\n this.dispatch = dispatch\n this.session = null\n this.running = false\n this.wantsSubs = Immutable.Map()\n this.actionSubscriptions = {}\n }\n\n sessionAvailable() {\n this.wantsSubs.forEach((topic, actionType) => {\n this._subForDispatch(topic, actionType)\n })\n }\n\n _subForDispatch(topic, actionType) {\n return this.subscribe(topic, (args, kwargs) => {\n this.dispatch(actionType, {args, kwargs})\n }).then(\n (subscription) => {\n if (!this.wantsSubs.get(topic, actionType)) {\n this.unsubscribe(subscription)\n }\n else if (this.session) {\n console.log('subscription', subscription)\n this.actionSubscriptions[actionType] = subscription\n }\n },\n (error) => {\n console.log('Subscription failed:', error)\n }\n )\n }\n\n wantsSubscribe(topic, actionType, callback) {\n console.log('wants sub', topic, actionType)\n this.wantsSubs = this.wantsSubs.set(actionType, topic)\n if (this.session) {\n this._subForDispatch(topic, actionType)\n }\n }\n\n wantsUnsubscribe(topic, actionType) {\n console.log('wants unsub', topic, actionType, this.actionSubscriptions)\n if (this.wantsSubs.get(actionType)) {\n const subscription = this.actionSubscriptions[actionType]\n console.log('unsub', topic, actionType)\n if (subscription && this.session) {\n console.log('unsubbed', topic, actionType)\n this.session.unsubscribe(subscription)\n delete this.actionSubscriptions[actionType]\n }\n }\n }\n\n call(procedure, args, kwargs, options) {\n return this.session.call(procedure, args, kwargs, options)\n }\n\n register(procedure, endpoint, options) {\n return this.session.register(procedure, endpoint, options)\n }\n\n publish(topic, args, kwargs, options) {\n return this.session.publish(topic, args, kwargs, options)\n }\n\n subscribe(topic, handler, options) {\n return this.session.subscribe(topic, handler, options)\n }\n\n unsubscribe(subscription) {\n return this.session.unsubscribe(subscription)\n }\n\n run() {\n function onchallenge(session, method, extra) {\n if (method === 'ticket') {\n return this.ticket\n }\n else {\n throw `don\\'t know how to authenticate using \\'${method}\\'`\n }\n }\n\n this.connection = new Connection({\n url: url,\n realm: REALM,\n authmethods: [this.ticket ? 'ticket' : 'anonymous'],\n authid: 'ignored', // new authid will be assigned on challenge success\n onchallenge: onchallenge.bind(this)\n //retry_if_unreachable: true\n })\n\n return new Promise(function(resolve, reject) {\n function onopen(session, details) {\n console.log('WS session connected', session)\n this.session = session\n this.sessionAvailable()\n resolve()\n }\n\n function onclose(reason, details) {\n reject(details.reason)\n console.log('WS session disconnected', reason, details)\n this.session = null\n return false\n }\n\n this.connection.onopen = onopen.bind(this)\n this.connection.onclose = onclose.bind(this)\n return this.connection.open()\n }.bind(this))\n }\n\n stop() {\n if (this.connection) {\n try {\n this.connection.close()\n } catch (error) {\n if (error !== 'connection already closed') {\n console.log(error)\n }\n }\n }\n }\n}\n","import Cookies from 'cookies-js'\nimport {take, takeEvery, put, call} from 'redux-saga/effects'\nimport {eventChannel} from 'redux-saga'\nimport SessionProxy from './session'\nimport * as actions from './actions'\n\n\nfunction initSession(session) {\n return eventChannel(emitter => {\n function dispatch(actionType, payload) {\n return emitter({type: actionType, payload})\n }\n session.dispatch = dispatch\n session.run()\n return () => session.stop()\n })\n}\n\n\nexport default function* rootSaga() {\n const session = new SessionProxy(Cookies.get('TEMPUS_AUTH'), null)\n const channel = yield call(initSession, session)\n\n function callProcedure({procedure, args, kwargs, actionTypes}) {\n }\n\n function subscribe(action) {\n const {topic, actionType} = action.payload\n session.wantsSubscribe(topic, actionType)\n }\n\n function unsubscribe(action) {\n const {topic, actionType} = action.payload\n session.wantsUnsubscribe(topic, actionType)\n }\n\n yield takeEvery(actions.wampCall, callProcedure)\n yield takeEvery(actions.wampSubscribe, subscribe)\n yield takeEvery(actions.wampUnsubscribe, unsubscribe)\n\n while (true) {\n const action = yield take(channel)\n yield put(action)\n }\n}\n","import Immutable from 'immutable'\nimport {SUCCESS, FAILURE} from './actions'\n\n\nconst initialState = Immutable.fromJS(\n { error: null\n , data: {}\n })\n\n\nexport default function reducer(state=initialState, action) {\n switch (action.type) {\n case SUCCESS:\n return state.mergeDeep(\n { fetching: false\n , data: action.data\n })\n case FAILURE:\n return state.merge(\n { fetching: false\n , error: action.error\n })\n default:\n return state\n }\n}\n","import {LOCATION_CHANGE} from 'connected-react-router'\nimport {take} from 'redux-saga/effects'\n\n\nexport default function* rootSaga() {\n return\n while (true) {\n const action = yield take(LOCATION_CHANGE)\n console.log(action)\n }\n}\n","import {LOCATION_CHANGE} from 'connected-react-router'\nimport {put, takeEvery} from 'redux-saga/effects'\nimport {matchPath} from 'react-router'\n\n\nexport default function createRouteFetchSaga(path, actionCreator, matchOptions=null) {\n function* _onLocationChange(state, action) {\n const {oldMatch} = state\n\n const {pathname} = action.payload.location\n const match = matchPath(pathname, {path, ...matchOptions})\n state.oldMatch = match\n\n if (\n match\n && (!oldMatch\n || JSON.stringify(match.params) !== JSON.stringify(oldMatch.params))) {\n yield put(actionCreator(match.params))\n }\n }\n\n function* _saga() {\n const state = {oldMatch: null}\n yield takeEvery(LOCATION_CHANGE, _onLocationChange, state)\n }\n\n return _saga\n}\n","import {CALL_API, GET, POST, DELETE} from 'root/services/api/middleware'\n\n\nexport const LOAD_REQUEST = 'MAP_OVERVIEW_LOAD_REQUEST'\nexport const LOAD_SUCCESS = 'MAP_OVERVIEW_LOAD_SUCCESS'\nexport const LOAD_FAILURE = 'MAP_OVERVIEW_LOAD_FAILURE'\nexport const SELECT_VIDEO = 'MAP_OVERVIEW_SELECT_VIDEO'\nexport const LOAD_LEADERBOARD_REQUEST = 'MAP_OVERVIEW_LOAD_LEADERBOARD_REQUEST'\nexport const LOAD_LEADERBOARD_SUCCESS = 'MAP_OVERVIEW_LOAD_LEADERBOARD_SUCCESS'\nexport const LOAD_LEADERBOARD_FAILURE = 'MAP_OVERVIEW_LOAD_LEADERBOARD_FAILURE'\nexport const LOAD_MORE_LEADERBOARD_REQUEST = 'MAP_OVERVIEW_LOAD_MORE_LEADERBOARD_REQUEST'\nexport const LOAD_MORE_LEADERBOARD_SUCCESS = 'MAP_OVERVIEW_LOAD_MORE_LEADERBOARD_SUCCESS'\nexport const LOAD_MORE_LEADERBOARD_FAILURE = 'MAP_OVERVIEW_LOAD_MORE_LEADERBOARD_FAILURE'\nexport const LEADERBOARD_TOGGLE_EXPAND = 'MAP_OVERVIEW_LEADERBOARD_TOGGLE_EXPAND'\n\n\n\nfunction fetch(mapName) {\n return (\n { [CALL_API]:\n { method: GET\n , started: [LOAD_REQUEST]\n , success: [LOAD_SUCCESS]\n , failure: [LOAD_FAILURE]\n , endpoint: `maps/name/${mapName}/fullOverview2`\n }\n , mapName\n })\n}\n\n\nexport function loadMapOverview(mapName) {\n return (dispatch, getState) => {\n const { fetching } = getState().app.mapOverview.mapOverview\n if (fetching) {\n return null\n }\n return dispatch(fetch(mapName))\n }\n}\n\n\nexport function selectVideo(video) {\n return (\n { type: SELECT_VIDEO\n , video\n }\n )\n}\n","import {CALL_API, GET, POST, DELETE} from 'root/services/api/middleware'\nimport {createAction} from 'redux-actions'\n\n\nexport const FETCH = createAction('MAP_OVERVIEW_LEADERBOARDS/FETCH')\nexport const RECEIVE = createAction('MAP_OVERVIEW_LEADERBOARDS/RECEIVE')\nexport const FETCH_ERROR = createAction('MAP_OVERVIEW_LEADERBOARDS/ERROR')\n\nexport const FETCH_MORE = createAction('MAP_OVERVIEW_LEADERBOARDS/FETCH_MORE')\nexport const FETCH_MORE_SUCCESS = createAction('MAP_OVERVIEW_LEADERBOARDS/FETCH_MORE_SUCCESS')\nexport const FETCH_MORE_ERROR = createAction('MAP_OVERVIEW_LEADERBOARDS/FETCH_MORE_ERROR')\n\nexport const TOGGLE_EXPAND = createAction('MAP_OVERVIEW_LEADERBOARDS/TOGGLE_EXPAND')\nexport const COLLAPSE_ALL = createAction('MAP_OVERVIEW_LEADERBOARDS/COLLAPSE_ALL')\n\n\nexport function fetchLeaderboard(mapName, zoneType, index) {\n return (dispatch, getState) => {\n const {fetching} = getState().app.mapOverview.leaderboards\n if (fetching) {\n return null\n }\n\n return dispatch(\n { [CALL_API]:\n { method: GET\n , started: [FETCH]\n , success: [RECEIVE]\n , failure: [FETCH_ERROR]\n , endpoint: `maps/name/${mapName}/zones/typeindex/${zoneType}/${index}/records/list?limit=50`\n }\n , zoneType\n , index\n }\n )\n }\n}\n\n\nexport function fetchMore(playerClass) {\n return (dispatch, getState) => {\n const {data} = getState().app.mapOverview.leaderboards\n const zoneID = data.getIn(['zone_info', 'id'])\n const runsKey = {3: 'soldier', 4: 'demoman'}[playerClass]\n const lastRank = data.getIn(['results', runsKey]).last().get('rank')\n return dispatch(\n { [CALL_API]:\n { method: GET\n , started: [FETCH_MORE]\n , success: [FETCH_MORE_SUCCESS]\n , failure: [FETCH_MORE_ERROR]\n , endpoint: `zones/id/${zoneID}/records/list?limit=50&start=${lastRank + 1}&sort=duration&direction=ascending`\n }\n , playerClass\n }\n )\n }\n}\n\n\nexport function toggleExpand(playerClass, runID) {\n return TOGGLE_EXPAND({ playerClass, runID })\n}\n\n\nexport function collapseAll(playerClass) {\n return COLLAPSE_ALL({ playerClass })\n}\n","import createRouteFetchSaga from 'root/utils/createRouteFetchSaga'\nimport {fetchLeaderboard} from './actions'\n\n\nexport default createRouteFetchSaga(\n '/maps/:name/leaderboards/:zoneType/:zoneIndex',\n ({name, zoneType, zoneIndex}) => fetchLeaderboard(name, zoneType, zoneIndex)\n)\n","import {all} from 'redux-saga/effects'\nimport createRouteFetchSaga from 'root/utils/createRouteFetchSaga'\nimport {loadMapOverview} from './actions'\nimport leaderboardSaga from './scenes/Leaderboards/saga'\n\n\nconst mapOverviewSaga = createRouteFetchSaga(\n '/maps/:name',\n ({name}) => loadMapOverview(name)\n)\n\n\nexport default function* rootSaga() {\n yield all(\n [ mapOverviewSaga()\n , leaderboardSaga()\n ])\n}\n","import {CALL_API, GET, POST, DELETE} from 'root/services/api/middleware'\n\n\nexport const LOAD_REQUEST = 'MAPS_LOAD_REQUEST'\nexport const LOAD_SUCCESS = 'MAPS_LOAD_SUCCESS'\nexport const LOAD_FAILURE = 'MAPS_LOAD_FAILURE'\nexport const RESET = 'MAPS_RESET'\nexport const SET_FILTER = 'MAPS_SET_FILTER'\nexport const SET_SIMPLE = 'MAPS_SET_SIMPLE'\nexport const SELECT_SORT = 'MAPS_SELECT_SORT'\n\n\nfunction fetch() {\n return (\n { [CALL_API]:\n { method: GET\n , started: [LOAD_REQUEST]\n , success: [LOAD_SUCCESS]\n , failure: [LOAD_FAILURE]\n , endpoint: 'maps/detailedList'\n }\n })\n}\n\n\nexport function loadMaps() {\n return (dispatch, getState) => {\n const {fetching} = getState().app.maps\n if (fetching) {\n return null\n }\n return dispatch(fetch())\n }\n}\n\n\nexport function resetMaps() {\n return {type: 'no'}\n}\n\n\nexport function setFilter(playerClass, filter) {\n return (\n { type: SET_FILTER\n , playerClass\n , filter\n }\n )\n}\n\n\nexport function toggleSimple(value) {\n return (\n { type: SET_SIMPLE\n , value: value\n })\n}\n\n\nexport function selectMapSort(sortBy) {\n return (\n { type: SELECT_SORT\n , sortBy: sortBy\n })\n}\n","import createRouteFetchSaga from 'root/utils/createRouteFetchSaga'\nimport {loadMaps} from './actions'\n\n\nexport default createRouteFetchSaga(\n '/maps',\n loadMaps,\n { exact: true }\n)\n","import {CALL_API, GET, POST, DELETE} from 'root/services/api/middleware'\n\n\nexport const LOAD_REQUEST = 'SEARCH_LOAD_REQUEST'\nexport const LOAD_SUCCESS = 'SEARCH_LOAD_SUCCESS'\nexport const LOAD_FAILURE = 'SEARCH_LOAD_FAILURE'\n\n\nfunction fetch(s) {\n return (\n { [CALL_API]:\n { method: GET\n , started: [LOAD_REQUEST]\n , success: [LOAD_SUCCESS]\n , failure: [LOAD_FAILURE]\n , endpoint: `search/playersAndMaps/${s}`\n }\n })\n}\n\n\nexport function searchPlayersAndMaps(s) {\n return (dispatch, getState) => {\n const fetching = getState().app.search.fetching\n if (fetching) {\n return null\n }\n return dispatch(fetch(s))\n }\n}\n","import Immutable from 'immutable'\n\nimport {LOAD_REQUEST, LOAD_SUCCESS, LOAD_FAILURE} from './actions'\n\n\nlet initialState = Immutable.Record(\n { fetching: false\n , error: null\n , data: null\n })\ninitialState = new initialState()\n\n\nconst dataRecord = Immutable.Record(\n { players: null\n , maps: null\n })\n\n\nexport default function reducer(state=initialState, action) {\n switch (action.type) {\n case LOAD_REQUEST:\n return state.set('fetching', true)\n case LOAD_SUCCESS:\n return state.merge(\n { fetching: false\n , data: new dataRecord(Immutable.fromJS(action.data))\n })\n case LOAD_FAILURE:\n return state.merge(\n { fetching: false\n , error: action.error\n })\n default:\n return state\n }\n}\n","import Immutable from 'immutable'\n\nimport {LOAD_REQUEST, LOAD_SUCCESS, LOAD_FAILURE, RESET, SET_FILTER,\n SET_SIMPLE, SELECT_SORT} from './actions'\n\n\nlet sortState = Immutable.Record(\n { sortBy: 'name'\n , ascending: true\n })\n\n\nlet initialState = Immutable.Record(\n { fetching: false\n , error: null\n , data: null\n , filters: Immutable.fromJS(\n { 'soldier': null\n , 'demoman': null\n })\n , simple: false\n , sort: new sortState()\n })\ninitialState = new initialState()\n\n\nexport default function reducer(state=initialState, action) {\n switch (action.type) {\n case LOAD_REQUEST:\n case RESET:\n return state.merge(initialState)\n case LOAD_SUCCESS:\n return state.merge(\n { fetching: false\n , data: Immutable.fromJS(action.data)\n })\n case LOAD_FAILURE:\n return state.merge(\n { fetching: false\n , error: action.error\n })\n case SET_FILTER:\n const other = action.playerClass === 'soldier' ? 'demoman' : 'soldier'\n return state.mergeIn(['filters'],\n { [action.playerClass]: action.filter\n , [other]: null\n }\n )\n case SET_SIMPLE:\n return state.set('simple', !state.get('simple'))\n case SELECT_SORT:\n return state.update('sort', (value) => {\n if (value.get('sortBy') === action.sortBy) {\n return value.set('ascending', !value.get('ascending'))\n }\n return value.merge(\n { sortBy: action.sortBy\n , ascending: true\n })\n })\n default:\n return state\n }\n}\n","import Immutable from 'immutable'\nimport {combineReducers} from 'redux'\nimport {handleActions} from 'redux-actions'\n\nimport {FETCH,\n RECEIVE,\n FETCH_ERROR,\n FETCH_MORE,\n FETCH_MORE_SUCCESS,\n FETCH_MORE_ERROR,\n TOGGLE_EXPAND,\n COLLAPSE_ALL} from './actions'\n\n\nlet initialState = new Immutable.Record(\n { fetching: false\n , error: null\n , data: null\n , expandedRuns:\n { [3]: Immutable.Set()\n , [4]: Immutable.Set()\n }\n })()\n\n\nexport default handleActions(\n { [FETCH]: (state, action) =>\n state.merge(\n { fetching: true\n , error: null\n , data: null\n , zoneType: action.zoneType\n , index: action.index\n , expandedRuns: initialState.expandedRuns\n })\n , [RECEIVE]: (state, action) =>\n state.merge(\n { fetching: false\n , data: Immutable.fromJS(action.payload.data)\n })\n , [FETCH_ERROR]: (state, action) =>\n state.merge(\n { fetching: false\n , error: action.payload.error\n })\n , [FETCH_MORE]: (state, action) =>\n state.merge(\n { fetching: false\n })\n , [FETCH_MORE_SUCCESS]: (state, action) => {\n const { playerClass, data } = action.payload\n const runsKey = {3: 'soldier', 4: 'demoman'}[playerClass]\n return state.mergeDeep(\n { fetching: false\n , data: {\n results: {\n [runsKey]: Immutable.fromJS(data.results[runsKey])\n }\n }})}\n , [FETCH_MORE_ERROR]: (state, action) =>\n state.merge(\n { fetching: false\n , error: action.error\n })\n , [TOGGLE_EXPAND]: (state, action) => {\n const { playerClass, runID } = action.payload\n return state.updateIn(['expandedRuns', playerClass],\n (x) => x.includes(runID) ? x.delete(runID) : x.add(runID)\n )}\n , [COLLAPSE_ALL]: (state, action) =>\n state.updateIn(\n ['expandedRuns', action.payload.playerClass], (x) => x.clear())\n }, initialState\n)\n","import Immutable from 'immutable'\nimport {combineReducers} from 'redux'\nimport leaderboardsReducer from './scenes/Leaderboards/reducer'\n\nimport {LOAD_REQUEST, LOAD_SUCCESS, LOAD_FAILURE, SELECT_VIDEO} from './actions'\n\n\nlet initialState = Immutable.Record(\n { fetching: false\n , error: null\n , data: null\n , selectedVideo: null\n })\ninitialState = new initialState()\n\n\nfunction reducer(state=initialState, action) {\n switch (action.type) {\n case LOAD_REQUEST:\n return state.merge(initialState)\n case LOAD_SUCCESS:\n return state.merge(\n { fetching: false\n , data: Immutable.fromJS(action.data)\n })\n case LOAD_FAILURE:\n return state.merge(\n { fetching: false\n , error: action.error\n })\n case SELECT_VIDEO:\n return state.merge(\n { selectedVideo: action.video\n })\n default:\n return state\n }\n}\n\n\nexport default combineReducers(\n { mapOverview: reducer\n , leaderboards: leaderboardsReducer\n }\n)\n","import {CALL_API, GET} from 'root/services/api/middleware'\n\n\nexport const LOAD_REQUEST = 'ACTIVITY_LOAD_REQUEST'\nexport const LOAD_SUCCESS = 'ACTIVITY_LOAD_SUCCESS'\nexport const LOAD_FAILURE = 'ACTIVITY_LOAD_FAILURE'\n\n\nfunction fetch() {\n return (\n { [CALL_API]:\n { method: GET\n , started: [LOAD_REQUEST]\n , success: [LOAD_SUCCESS]\n , failure: [LOAD_FAILURE]\n , endpoint: `activity`\n }\n })\n}\n\n\nexport function loadActivity() {\n return (dispatch, getState) => {\n const fetching = getState().app.activity.fetching\n if (fetching) {\n return null\n }\n return dispatch(fetch())\n }\n}\n","import Immutable from 'immutable'\n\nimport {LOAD_REQUEST, LOAD_SUCCESS, LOAD_FAILURE} from './actions'\n\n\nconst initialState = Immutable.Record(\n { fetching: false\n , error: null\n , data: null\n })\n\n\nexport default function reducer(state=new initialState(), action) {\n switch (action.type) {\n case LOAD_REQUEST:\n return state.merge(new initialState())\n case LOAD_SUCCESS:\n return state.merge(\n { fetching: false\n , data: Immutable.fromJS(action.data)\n })\n case LOAD_FAILURE:\n return state.merge(\n { fetching: false\n , error: action.error\n })\n default:\n return state\n }\n}\n","import {CALL_API, GET} from 'root/services/api/middleware'\n\n\nexport const LOAD_REQUEST = 'PLAYER_OVERVIEW_LOAD_REQUEST'\nexport const LOAD_SUCCESS = 'PLAYER_OVERVIEW_LOAD_SUCCESS'\nexport const LOAD_FAILURE = 'PLAYER_OVERVIEW_LOAD_FAILURE'\n\n\nfunction fetch(playerID) {\n return (\n { [CALL_API]:\n { method: GET\n , started: [LOAD_REQUEST]\n , success: [LOAD_SUCCESS]\n , failure: [LOAD_FAILURE]\n , endpoint: `players/id/${playerID}/stats`\n }\n })\n}\n\n\nexport function loadPlayer(playerID) {\n return (dispatch, getState) => {\n const {fetching, data} = getState().app.playerOverview\n if (fetching) {\n return null\n }\n return dispatch(fetch(playerID))\n }\n}\n","import Immutable from 'immutable'\n\nimport {LOAD_REQUEST, LOAD_SUCCESS, LOAD_FAILURE} from './actions'\n\n\nlet initialState = new Immutable.Record(\n { fetching: false\n , error: null\n , data: null\n })()\n\n\nexport default function reducer(state=initialState, action) {\n switch (action.type) {\n case LOAD_REQUEST:\n return state.merge(initialState)\n case LOAD_SUCCESS:\n return state.merge(\n { fetching: false\n , data: Immutable.fromJS(action.data)\n })\n case LOAD_FAILURE:\n return state.merge(\n { fetching: false\n , error: action.error\n })\n default:\n return state\n }\n}\n","import {CALL_API, GET, POST, DELETE} from 'root/services/api/middleware'\n\n\nexport const LOAD_REQUEST = 'PLAYER_RANKS_LOAD_REQUEST'\nexport const LOAD_SUCCESS = 'PLAYER_RANKS_LOAD_SUCCESS'\nexport const LOAD_FAILURE = 'PLAYER_RANKS_LOAD_FAILURE'\nexport const TOGGLE_EXPAND = 'PLAYER_RANKS_TOGGLE_EXPAND'\n\n\nfunction fetch(rankType, start) {\n let endpoint\n if (rankType === 'overall') {\n endpoint = 'ranks/overall'\n }\n else if (rankType === 'soldier') {\n endpoint = 'ranks/class/3'\n }\n else if (rankType === 'demoman') {\n endpoint = 'ranks/class/4'\n }\n else {\n throw `Unknown rank type ${rankType}`\n }\n if (start !== undefined) {\n endpoint = endpoint + `?start=${start}`\n }\n return (\n { [CALL_API]:\n { method: GET\n , started: [LOAD_REQUEST]\n , success: [LOAD_SUCCESS]\n , failure: [LOAD_FAILURE]\n , endpoint: endpoint\n }\n })\n}\n\n\nexport function loadRanks(rankType, start) {\n return (dispatch, getState) => {\n const {fetching} = getState().app.playerLeaderboards\n if (fetching) {\n return null\n }\n return dispatch(fetch(rankType, start))\n }\n}\n\n\nexport function toggleExpand(playerClass, runID) {\n return (\n { type: TOGGLE_EXPAND\n , playerClass\n , runID\n })\n}\n","import Immutable from 'immutable'\n\nimport {LOAD_REQUEST, LOAD_SUCCESS, LOAD_FAILURE, TOGGLE_EXPAND} from './actions'\n\n\nlet initialState = Immutable.Record(\n { fetching: false\n , error: null\n , data: null\n , selected: Immutable.Map()\n })\ninitialState = new initialState()\n\n\nexport default function reducer(state=initialState, action) {\n switch (action.type) {\n case LOAD_REQUEST:\n return state.merge(initialState)\n case LOAD_SUCCESS:\n return state.merge(\n { fetching: false\n , data: Immutable.fromJS(action.data)\n })\n case LOAD_FAILURE:\n return state.merge(\n { fetching: false\n , error: action.error\n })\n case TOGGLE_EXPAND:\n return state.setIn(['expanded', action.playerClass, action.runID])\n default:\n return state\n }\n}\n","import {CALL_API, GET} from 'root/services/api/middleware'\n\nimport * as wampActions from 'root/services/wamp/actions'\n\n\nexport const LOAD_REQUEST = 'SERVERS_LOAD_REQUEST'\nexport const LOAD_SUCCESS = 'SERVERS_LOAD_SUCCESS'\nexport const LOAD_FAILURE = 'SERVERS_LOAD_FAILURE'\n\nexport const UPDATE = 'SERVERS_UPDATE'\n\nexport const FILTER_TOGGLE = 'SERVERS_FILTER_TOGGLE'\n\n\nfunction fetch() {\n return (\n { [CALL_API]:\n { method: GET\n , started: [LOAD_REQUEST]\n , success: [LOAD_SUCCESS]\n , failure: [LOAD_FAILURE]\n , endpoint: `servers/statusList`\n }\n })\n}\n\n\nexport function loadServers() {\n return (dispatch, getState) => {\n const fetching = getState().app.servers.fetching\n if (fetching) {\n return null\n }\n return dispatch(fetch())\n }\n}\n\n\nexport function toggleFilter(filter) {\n return {\n type: FILTER_TOGGLE,\n filter\n }\n}\n\n\nexport function subscribe() {\n return wampActions.subscribe('xyz.tempus.jump.serverstatus.changed', UPDATE)\n}\n\n\nexport function unsubscribe() {\n return wampActions.unsubscribe('xyz.tempus.jump.serverstatus.changed', UPDATE)\n}\n","import Immutable from 'immutable'\n\nimport {LOAD_REQUEST, LOAD_SUCCESS, LOAD_FAILURE,\n FILTER_TOGGLE, UPDATE} from './actions'\n\n\nconst initialState = Immutable.Record(\n { fetching: false\n , error: null\n , data: null\n , filter: 'server'\n , filterReverse: false\n })\n\n\nexport default function reducer(state=new initialState(), action) {\n switch (action.type) {\n case LOAD_REQUEST:\n return state.merge(new initialState())\n case LOAD_SUCCESS:\n return state.merge(\n { fetching: false\n , data: Immutable.fromJS(action.data).reduce(\n (map, value) => map.set(value.getIn(['server_info', 'id']), value),\n Immutable.Map()\n )\n })\n case LOAD_FAILURE:\n return state.merge(\n { fetching: false\n , error: action.error\n })\n case UPDATE:\n const [serverID, gameInfo] = action.payload.args\n return state.mergeIn(['data', serverID],\n {game_info: Immutable.fromJS(gameInfo)})\n case FILTER_TOGGLE:\n const {filter} = action\n return state.merge(\n { filter: filter\n , filterReverse: filter === state.filter ? !state.filterReverse : false\n }\n )\n default:\n return state\n }\n}\n","import {createAction} from 'redux-actions'\n\nimport {CALL_API, GET} from 'root/services/api/middleware'\n\n\nfunction fetchServerDemos(serverID) {\n return (\n { [CALL_API]:\n { method: GET\n , started: [serverDemosFetching]\n , success: [serverDemosReceived]\n , failure: [serverDemosError]\n , endpoint: `servers/${serverID}/demos`\n }\n })\n}\n\n\nexport function loadServerDemos(serverID) {\n return (dispatch, getState) => {\n const fetching = getState().app.servers.fetching\n if (fetching) {\n return null\n }\n return dispatch(fetchServerDemos(serverID))\n }\n}\n\n\nexport const serverDemosFetching = createAction('SERVERDEMOS/FETCH')\nexport const serverDemosReceived = createAction('SERVERDEMOS/RECEIVE')\nexport const serverDemosError = createAction('SERVERDEMOS/ERROR')\n","import Immutable from 'immutable'\nimport {handleActions} from 'redux-actions'\n\nimport * as actions from './actions'\n\n\nconst InitialState = Immutable.Record(\n { fetching: false\n , error: null\n , data: null\n })\n\n\nexport default handleActions({\n [actions.serverDemosFetching]: (state, action) => (\n new InitialState()\n ),\n\n [actions.serverDemosReceived]: (state, action) => (\n state.merge({\n fetching: false,\n error: null,\n data: Immutable.fromJS(action.payload.data)\n })\n ),\n\n [actions.serverDemosError]: (state, action) => (\n state.merge({\n fetching: false,\n error: action.payload.error\n })\n )\n}, new InitialState())\n","import {createAction} from 'redux-actions'\n\nimport {CALL_API, GET, POST} from 'root/services/api/middleware'\n\n\nfunction fetchDemoOverview(demoID) {\n return (\n { [CALL_API]:\n { method: GET\n , started: [FETCHING]\n , success: [RECEIVED]\n , failure: [FETCHING_ERROR]\n , endpoint: `demos/id/${demoID}/overview`\n }\n })\n}\n\n\nexport function loadDemoOverview(demoID) {\n return (dispatch, getState) => {\n const fetching = getState().app.demoOverview.fetching\n if (fetching) {\n return null\n }\n return dispatch(fetchDemoOverview(demoID))\n }\n}\n\n\nexport function requestDemoUpload(demoID) {\n return (dispatch, getState) => {\n const uploading = getState().app.demoOverview.uploading\n if (uploading) {\n return null\n }\n return dispatch({\n [CALL_API]: {\n method: POST,\n started: [UPLOADING],\n success: [UPLOAD_SUCCESS],\n failure: [UPLOAD_ERROR],\n endpoint: `demos/id/${demoID}/requestUpload`\n }\n })\n }\n}\n\n\nexport const FETCHING = createAction('DEMO_OVERVIEW/FETCH')\nexport const RECEIVED = createAction('DEMO_OVERVIEW/RECEIVE')\nexport const FETCHING_ERROR = createAction('DEMO_OVERVIEW/ERROR')\n\nexport const UPLOADING = createAction('DEMO_OVERVIEW/UPLOADING')\nexport const UPLOAD_SUCCESS = createAction('DEMO_OVERVIEW/UPLOAD_SUCCESS')\nexport const UPLOAD_ERROR = createAction('DEMO_OVERVIEW/UPLOAD_ERROR')\n","import Immutable from 'immutable'\nimport {handleActions} from 'redux-actions'\n\nimport * as actions from './actions'\n\n\nconst InitialState = Immutable.Record(\n { fetching: false\n , error: null\n , data: null\n , uploading: false\n , uploadingError: null\n })\n\n\nexport default handleActions({\n [actions.FETCHING]: (state, action) => (\n state.merge({\n fetching: true,\n error: null,\n data: null\n })\n ),\n\n [actions.RECEIVED]: (state, action) => (\n state.merge({\n fetching: false,\n error: null,\n data: Immutable.fromJS(action.payload.data)\n })\n ),\n\n [actions.FETCHING_ERROR]: (state, action) => (\n state.merge({\n fetching: false,\n error: action.payload.error\n })\n ),\n\n [actions.UPLOADING]: (state, action) => (\n state.merge({\n uploading: true,\n uploadingError: null\n })\n ),\n\n [actions.UPLOAD_SUCCESS]: (state, action) => (\n state.set('uploading', false).setIn(['data', 'demo_info'],\n Immutable.fromJS(action.payload.data))\n ),\n\n [actions.UPLOAD_ERROR]: (state, action) => (\n state.merge({\n uploading: false,\n uploadingError: action.payload.error\n })\n )\n}, new InitialState())\n","import {createAction} from 'redux-actions'\n\nimport {CALL_API, GET, POST} from 'root/services/api/middleware'\n\n\nfunction fetchRecordOverview(recordID) {\n return (\n { [CALL_API]:\n { method: GET\n , started: [FETCHING]\n , success: [RECEIVED]\n , failure: [FETCHING_ERROR]\n , endpoint: `records/id/${recordID}/overview`\n }\n })\n}\n\n\nexport function loadRecordOverview(recordID) {\n return (dispatch, getState) => {\n const fetching = getState().app.recordOverview.fetching\n if (fetching) {\n return null\n }\n return dispatch(fetchRecordOverview(recordID))\n }\n}\n\n\nexport const FETCHING = createAction('RECORD_OVERVIEW/FETCH')\nexport const RECEIVED = createAction('RECORD_OVERVIEW/RECEIVE')\nexport const FETCHING_ERROR = createAction('RECORD_OVERVIEW/ERROR')\n","import Immutable from 'immutable'\nimport {handleActions} from 'redux-actions'\n\nimport * as actions from './actions'\n\n\nconst InitialState = Immutable.Record(\n { fetching: false\n , error: null\n , data: null\n })\n\n\nexport default handleActions({\n [actions.FETCHING]: (state, action) => (\n state.merge({\n fetching: true,\n error: null,\n data: null\n })\n ),\n\n [actions.RECEIVED]: (state, action) => (\n state.merge({\n fetching: false,\n error: null,\n data: Immutable.fromJS(action.payload.data)\n })\n ),\n\n [actions.FETCHING_ERROR]: (state, action) => (\n state.merge({\n fetching: false,\n error: action.payload.error\n })\n )\n}, new InitialState())\n","import {combineReducers} from 'redux'\n\nimport search from './components/AppSearch/reducer'\nimport maps from './scenes/Maps/reducer'\nimport mapOverview from './scenes/MapOverview/reducer'\nimport activity from './scenes/Home/scenes/Activity/reducer'\nimport playerOverview from './scenes/PlayerOverview/reducer'\nimport playerLeaderboards from './scenes/PlayerLeaderboards/reducer'\nimport servers from './scenes/Home/reducer.js'\nimport serverDemos from './scenes/Home/scenes/Server/scenes/ServerDemoList/reducer.js'\nimport demoOverview from './scenes/DemoOverview/reducer.js'\nimport recordOverview from './scenes/RecordOverview/reducer.js'\n\n\nexport default combineReducers(\n { search\n , maps\n , mapOverview\n , activity\n , playerOverview\n , playerLeaderboards\n , servers\n , serverDemos\n , demoOverview\n , recordOverview\n })\n","import {createStore, applyMiddleware, compose} from 'redux'\nimport {createHistory} from 'history'\nimport thunkMiddleware from 'redux-thunk'\nimport apiMiddleware from './services/api/middleware'\nimport avatarMiddleware from './components/SteamAvatar/middleware'\nimport loggerMiddleware from 'redux-logger'\nimport createSagaMiddleware from 'redux-saga'\nimport {all} from 'redux-saga/effects'\n\nimport {combineReducers} from 'redux'\nimport { connectRouter, routerMiddleware } from 'connected-react-router'\n\nimport wamp from './services/wamp/reducer'\nimport wampSaga from './services/wamp/saga'\nimport steamAvatars from './components/SteamAvatar/reducer'\nimport serversSaga from './scenes/App/scenes/Home/saga.js'\nimport mapOverviewSaga from './scenes/App/scenes/MapOverview/saga.js'\nimport mapsSaga from './scenes/App/scenes/Maps/saga.js'\nimport app from './scenes/App/reducer'\n\n\nfunction* rootSaga() {\n yield all(\n [ wampSaga()\n , serversSaga()\n , mapOverviewSaga()\n , mapsSaga()\n ])\n}\n\n\nexport default function configureStore(history, initialState) {\n const composeEnhancers =\n process.env.NODE_ENV !== 'production' &&\n window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ||\n compose\n const reducer = combineReducers(\n { router: connectRouter(history)\n , wamp\n , steamAvatars\n , app\n })\n const sagaMiddleware = createSagaMiddleware()\n const store = createStore(\n reducer,\n initialState,\n composeEnhancers(applyMiddleware(\n routerMiddleware(history),\n thunkMiddleware,\n apiMiddleware(),\n avatarMiddleware(),\n sagaMiddleware\n // loggerMiddleware\n )\n ))\n sagaMiddleware.run(rootSaga)\n\n // if (module.hot) {\n // // Enable Webpack hot module replacement for reducers\n // module.hot.accept('./redux/reducer', () => {\n // const nextRootReducer = require('./redux/reducer')\n // store.replaceReducer(nextRootReducer)\n // })\n // }\n\n return store\n}\n","function pad(num, size) {\n var s = '0000' + num\n return s.substring(s.length - size)\n}\n\n\nexport function capitalize(s) {\n return s[0].toUpperCase() + s.slice(1)\n}\n\n\nexport function formatTime(time) {\n let h, m, s, ms = 0\n var newTime = ''\n\n h = Math.floor( time / (60 * 60) )\n time = time % (60 * 60)\n m = Math.floor( time / (60) )\n time = time % (60)\n s = Math.floor( time )\n ms = time % 1\n\n newTime = pad(m, 2) + ':' + pad(s, 2) + '.' + pad((ms.toString() + '00').substring(2, 4), 2)\n if (h !== 0) {\n newTime = h + ':' + newTime\n }\n return newTime\n}\n\n\n\n\n\nexport function prettyZoneName(zoneType, index, customName) {\n if (zoneType === 'map') {\n return 'Map Run'\n }\n else {\n let s = `${capitalize(zoneType)} ${index}`\n if (customName) {\n s += ` (${customName})`\n }\n return s\n }\n}\n\n\nexport function mapScreenshot(name, size) {\n return `https://static.tempus2.xyz/web/screenshots/raw/${name}_${size}.jpeg`\n}\n","import React, {useEffect, useState} from 'react'\nimport P from 'prop-types'\nimport {connect} from 'react-redux'\nimport cx from 'classnames'\nimport steam from 'steamidconvert'\n\nimport {queueAvatar} from './actions'\n\nimport './styles.styl'\n\n\nconst Steam = steam()\n\n\nconst url = '/static/img/avatar_'\nconst defaultAvatars = {\n tiny: url + '32x32.jpg',\n mini: url + '32x32.jpg',\n small: url + '32x32.jpg',\n medium: url + '64x64.jpg',\n mediumlarge: url + '64x64.jpg',\n large: url + '184x184.jpg'\n}\n\n\nfunction getAvatarURL(steamInfo, size) {\n if (steamInfo) {\n if (['mini', 'tiny'].includes(size)) {\n return steamInfo.avatar['small']\n }\n else if (size === 'mediumlarge') {\n return steamInfo.avatar['large']\n }\n else if (size === 'small') {\n return steamInfo.avatar['medium']\n }\n return steamInfo.avatar[size]\n }\n else {\n return defaultAvatars[size]\n }\n}\n\n\nfunction SteamAvatar({ steamID, steamID64, size, noLink, innerBorder=false, avatars, queueAvatar, style }) {\n const sid = steamID64 ? steamID64 : Steam.convertTo64(steamID)\n const steamInfo = avatars ? avatars[sid] : undefined\n const avatarURL = getAvatarURL(steamInfo, size)\n\n const [imgLoaded, setImgLoaded] = useState(false)\n const [imgError, setImgError] = useState(false)\n\n useEffect(() => {\n queueAvatar(sid)\n }, [])\n\n useEffect(() => {\n let unmounted = false\n if (steamInfo && !imgLoaded && !imgError) {\n const image = new Image()\n image.onload = () => { if (!unmounted) setImgLoaded(true) }\n image.onerror = () => { if (!unmounted) setImgError(true) }\n image.src = getAvatarURL(steamInfo, size)\n }\n return () => unmounted = true\n }, [steamInfo])\n\n const steamStatus = (steamInfo && imgLoaded) ? steamInfo.status : 'offline'\n let classes = cx(\n size,\n { 'steamavatar': true\n , [steamStatus]: true\n , 'steamavatar-default': true\n , 'inner-border': innerBorder\n })\n const body = (\n \n \n \n \n )\n if (!noLink)\n return (\n e.stopPropagation()}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n >\n {body}\n \n )\n return body\n}\n\n\nSteamAvatar.propTypes =\n{ steamID: P.string\n, steamID64: P.string\n, size: P.oneOf(['tiny', 'mini', 'small', 'medium', 'mediumlarge', 'large'])\n, queueAvatar: P.func.isRequired\n, innerBorder: P.bool\n}\n\n\nfunction mapStateToProps(state) {\n const {steamAvatars} = state\n const {data} = steamAvatars.toJS()\n return {avatars: data}\n}\n\n\nexport default connect(\n mapStateToProps,\n {queueAvatar}\n)(SteamAvatar)\n","export default\n { 'map': 'globe'\n , 'course': 'flag'\n , 'bonus': 'star'\n }\n","import React from 'react'\nimport IP from 'react-immutable-proptypes'\nimport cx from 'classnames'\nimport {prettyZoneName} from 'root/utils/TempusUtils'\nimport {Link} from 'react-router-dom'\nimport TimeAgo from 'react-timeago'\nimport SteamAvatar from 'root/components/SteamAvatar'\nimport zoneIcons from 'root/constants/zoneIcons'\n\n\nexport default class ActivityList extends React.Component {\n render() {\n const {data, zoneType} = this.props\n var result\n if (zoneType === 'all') {\n result =\n data.get('map_wrs').concat(\n data.get('course_wrs')).concat(\n data.get('bonus_wrs'))\n .sortBy((r) => r.getIn(['record_info', 'date']))\n .reverse()\n }\n else {\n result = data.get(`${zoneType}_wrs`)\n }\n\n const items = result.map((i, idx) => {\n const pi = i.get('player_info')\n const mi = i.get('map_info')\n const zi = i.get('zone_info')\n const ri = i.get('record_info')\n const iconClasses = cx(\n { 'tf-icon': true\n , 'mini': true\n , 'soldier': ri.get('class') === 3\n , 'demoman': ri.get('class') === 4\n })\n const mapName = mi.get('name')\n return (\n \n \n \n \n \n \n \n \n \n \n {pi.get('name')}\n \n \n \n \n \n \n \n {mapName}\n \n \n \n \n \n \n {zi.get('type') !== 'map'\n ? prettyZoneName(zi.get('type'), zi.get('zoneindex'))\n : 'Map'\n }\n \n \n \n )\n })\n\n return (\n \n \n {items}\n \n
\n )\n }\n}\n\n\nActivityList.propTypes =\n { data: IP.Map\n }\n","import React from 'react'\nimport cx from 'classnames'\nimport {prettyZoneName} from 'root/utils/TempusUtils'\nimport {LinkContainer} from 'react-router-bootstrap'\nimport {Redirect} from 'react-router-dom'\n\nimport DropdownButton from 'react-bootstrap/lib/DropdownButton'\nimport MenuItem from 'react-bootstrap/lib/MenuItem'\n\nimport {connect} from 'react-redux'\nimport {loadActivity} from './actions'\nimport ActivityList from './components/ActivityList'\nimport {Route, Switch, NavLink} from 'react-router-dom'\n\nimport './styles.styl'\n\n\nclass Activity extends React.Component {\n componentDidMount() {\n this.props.loadActivity()\n }\n\n render() {\n if (!this.props.data || this.props.fetching) {\n return (\n
\n {this.props.location.pathname === this.props.match.url\n ? \n : null\n }\n Loading...\n
\n )\n }\n\n const buttonTitle =\n \n Filters\n \n\n const {match} = this.props\n\n return(\n
\n {this.props.location.pathname === this.props.match.url\n ? \n : null\n }\n
\n

\n World Records\n

\n \n \n \n \n All\n \n \n \n \n Map\n \n \n \n \n Course\n \n \n \n \n Bonus\n \n \n \n \n
\n
\n } />\n } />\n } />\n } />\n
\n
\n )\n }\n}\n\n\nfunction mapStateToProps(state) {\n const {fetching, error, data} = state.app.activity\n return {fetching, error, data}\n}\n\n\nexport default connect(\n mapStateToProps,\n {loadActivity}\n)(Activity)\n","import React from 'react'\nimport P from 'prop-types'\nimport {Link} from 'react-router-dom'\n\nimport './styles.styl'\n\n\nexport default class ServerItem extends React.Component {\n render() {\n const {serverInfo, gameInfo} = this.props\n const serverAddr =\n `steam://connect/${serverInfo.get('addr')}:${serverInfo.get('port')}`\n\n return (\n \n \n \n \n \n \n \n {serverInfo.get('name')}\n \n \n \n \n {gameInfo\n ? \n {gameInfo.get('currentMap')}\n \n : null\n }\n \n \n \n {gameInfo\n ? `${gameInfo.get('users').size}/${gameInfo.get('maxPlayers')}`\n : null\n }\n \n {gameInfo\n ? \n connect\n \n : \n OFFLINE\n \n }\n \n )\n }\n}\n\n\nServerItem.propTypes =\n { serverInfo: P.object.isRequired\n , gameInfo: P.object\n }\n","import React from 'react'\nimport P from 'prop-types'\n\nimport './styles.styl'\n\n\nconst filters = [\n {\n type: 'server',\n title: 'Server'\n },\n {\n type: 'mapname',\n title: 'Map'\n },\n {\n type: 'playercount',\n title: 'Players'\n }\n]\n\n\nexport default class ServerFilters extends React.Component {\n render() {\n const {filter, filterReverse} = this.props\n return (\n \n \n {filters.map((f, idx) => (\n this.props.toggleFilter(f.type)}>\n {f.title}\n  \n {filter === f.type\n ? \n : null\n }\n \n ))}\n \n \n \n )\n }\n}\n\n\nServerFilters.propTypes = {\n toggleFilter: P.func.isRequired,\n filter: P.string.isRequired,\n filterReverse: P.bool.isRequired\n}\n","import React, {PropTypes as P} from 'react'\nimport Table from 'react-bootstrap/lib/Table'\nimport {connect} from 'react-redux'\nimport {loadServers, toggleFilter, subscribe,\n unsubscribe} from '../../actions'\nimport ServerItem from './components/ServerItem'\nimport ServerFilters from './components/ServerFilters'\n\nimport './styles.styl'\n\n\nclass Servers extends React.Component {\n componentDidMount() {\n if (!this.props.data && !this.props.fetching) {\n this.props.loadServers()\n }\n this.props.subscribe()\n }\n\n componentWillUnmount() {\n this.props.unsubscribe()\n }\n\n renderServers() {\n const {filter, filterReverse} = this.props\n let data = this.props.data.valueSeq()\n if (filter === 'server') {\n data = data.sortBy(s => {\n const si = s.get('server_info').toJS()\n return [si.country, si.name]\n })\n }\n else if (filter === 'mapname') {\n data = data.sortBy(s => {\n const gi = s.get('game_info')\n return gi ? gi.get('currentMap') : 'Z'\n })\n }\n else if (filter === 'playercount') {\n data = data.sortBy(s => {\n const gi = s.get('game_info')\n return gi ? gi.get('users').size : 0\n }).reverse()\n }\n\n if (filterReverse) {\n data = data.reverse()\n }\n\n return (\n data.map((server, idx) => {\n if (!server) {\n return\n }\n const serverInfo = server.get('server_info')\n const gameInfo = server.get('game_info')\n if (serverInfo.get('hidden')) {\n return\n }\n return (\n \n )\n })\n )\n }\n\n render() {\n const {data, fetching, filter, filterReverse} = this.props\n if (!data || fetching) {\n return
Loading...
\n }\n const totalPlayers = data.valueSeq().reduce((total, server) => {\n const gameInfo = server.get('game_info')\n return gameInfo ? total + gameInfo.get('users').size : total\n }, 0)\n return (\n
\n \n \n \n {this.renderServers()}\n \n
\n {totalPlayers} player(s) online\n
\n )\n }\n}\n\n\nfunction mapStateToProps(state) {\n const {fetching, error, data, filter, filterReverse} = state.app.servers\n return (\n { fetching\n , error\n , data\n , filter\n , filterReverse\n })\n}\n\n\nexport default connect(\n mapStateToProps,\n {loadServers, toggleFilter, subscribe, unsubscribe}\n)(Servers)\n","import React from 'react'\nimport P from 'prop-types'\nimport {Link} from 'react-router-dom'\nimport Table from 'react-bootstrap/lib/Table'\nimport Transition from 'react-motion-ui-pack/lib/Transition'\n\nimport {mapScreenshot} from 'root/utils/TempusUtils'\nimport SteamAvatar from 'root/components/SteamAvatar'\n\nimport './styles.styl'\n\n\nexport default class ServerPlayerList extends React.Component {\n render() {\n const {gameInfo} = this.props\n if (!gameInfo) {\n return (\n
\n

\n Players\n \n OFFLINE\n \n

\n Server is offline.\n
\n )\n }\n const totalPlayers = gameInfo.users.length\n const maxPlayers = gameInfo.maxPlayers\n return (\n
\n

\n Players\n : \n \n {gameInfo.currentMap}\n \n \n {totalPlayers}/{maxPlayers}\n \n

\n
\n \n \n {gameInfo.users.map((u, idx) =>\n \n \n \n )}\n \n
\n {u.name}\n
\n
\n
\n )\n }\n}\n\n\nServerPlayerList.propTypes = {\n serverInfo: P.object.isRequired,\n gameInfo: P.object\n}\n","import React from 'react'\nimport {connect} from 'react-redux'\nimport {Link} from 'react-router-dom'\nimport Table from 'react-bootstrap/lib/Table'\nimport TimeAgo from 'react-timeago'\n\nimport {loadServerDemos} from './actions'\n\nimport './styles.styl'\n\n\nclass ServerDemoList extends React.Component {\n componentDidMount() {\n this.props.loadServerDemos(this.props.serverID)\n }\n\n render() {\n const {data, fetching, error} = this.props\n\n let body\n if (error) {\n body =
{error}
\n }\n else if (fetching || !data) {\n body = 'Loading...'\n }\n else {\n body = (\n
\n \n \n {data.map((demo, idx) => {\n const {id, recording, url, requested, date, mapname} = demo.toJS()\n let demoStatus\n if (url) {\n demoStatus = download\n }\n else if (recording) {\n if (requested)\n demoStatus = requested\n else\n demoStatus = recording\n }\n else if (requested)\n demoStatus = uploading\n\n return (\n \n \n \n \n \n )\n })}\n \n
\n \n \n \n {mapname}\n \n \n {demoStatus}\n
\n
\n )\n }\n return (\n
\n

\n Demos\n

\n
\n {body}\n
\n
\n )\n }\n}\n\n\nfunction mapStateToProps(state) {\n const {fetching, error, data} = state.app.serverDemos\n return ({\n fetching,\n error,\n data\n })\n}\n\n\nexport default connect(\n mapStateToProps,\n {loadServerDemos}\n)(ServerDemoList)\n","import React, {PropTypes as P} from 'react'\n\nimport Row from 'react-bootstrap/lib/Row'\nimport Col from 'react-bootstrap/lib/Col'\n\nimport {Link} from 'react-router-dom'\nimport {connect} from 'react-redux'\nimport {loadServers, subscribe, unsubscribe} from '../../actions'\nimport SteamAvatar from 'root/components/SteamAvatar'\nimport ServerPlayerList from './components/ServerPlayerList'\nimport ServerDemoList from './scenes/ServerDemoList'\n\nimport './styles.styl'\n\n\nclass Server extends React.Component {\n componentDidMount() {\n if (!this.props.data && !this.props.fetching) {\n this.props.loadServers()\n }\n this.props.subscribe()\n }\n\n componentWillUnmount() {\n this.props.unsubscribe\n }\n\n renderUsers() {\n\n }\n\n render() {\n const {data, fetching, error} = this.props\n if (!this.props.data || this.props.fetching) {\n return
Loading...
\n }\n const server = data.get(parseInt(this.props.match.params.id))\n if (!server) {\n return
Server not found.
\n }\n var gameInfo = server.get('game_info')\n gameInfo = gameInfo ? gameInfo.toJS() : null\n const serverInfo = server.get('server_info').toJS()\n return (\n
\n
\n

\n \n servers/\n {serverInfo.name}\n

\n
\n \n
\n

\n \n \n \n \n \n \n \n \n \n \n \n
\n Address\n \n {serverInfo.addr}:{serverInfo.port}\n   \n \n connect\n \n
\n Location\n \n {serverInfo.country}\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\nfunction mapStateToProps(state) {\n const {fetching, error, data} = state.app.servers\n return (\n { fetching\n , error\n , data\n })\n}\n\n\nexport default connect(\n mapStateToProps,\n {loadServers, subscribe, unsubscribe}\n)(Server)\n","import React from 'react'\n\nimport Activity from './scenes/Activity'\nimport Servers from './scenes/Servers'\nimport Server from './scenes/Server'\nimport {Route, Switch, NavLink, Redirect} from 'react-router-dom'\n\nimport './styles.styl'\n\n\nexport default class Home extends React.Component {\n render() {\n const {match} = this.props\n return (\n
\n
\n
\n
\n
\n
\n \n
\n
\n \n \n \n \n
\n
\n
\n )\n }\n}\n","import React from 'react'\n\n\nexport default (props) => {\n const style =\n { display: 'block'\n , textAlign: 'center'\n }\n return \n}\n","import Immutable from 'immutable'\n\n\nexport default new Immutable.Record(\n { '-1': 'Not Set'\n , '0': 'Impossible'\n , '1': 'Very Easy'\n , '2': 'Easy'\n , '3': 'Medium'\n , '4': 'Hard'\n , '5': 'Very Hard'\n , '6': 'Insane'\n })()\n","import React from 'react'\nimport P from 'prop-types'\nimport cx from 'classnames'\n\nimport MenuItem from 'react-bootstrap/lib/MenuItem'\nimport ButtonToolbar from 'react-bootstrap/lib/ButtonToolbar'\nimport ButtonGroup from 'react-bootstrap/lib/ButtonGroup'\nimport DropdownButton from 'react-bootstrap/lib/DropdownButton'\nimport Button from 'react-bootstrap/lib/Button'\n\nimport D from 'root/constants/Difficulties'\n\n\nconst OPTIONS =\n [ [null, 'Any']\n , [0, D['0']]\n , [1, D['1']]\n , [2, D['2']]\n , [3, D['3']]\n , [4, D['4']]\n , [5, D['5']]\n , [6, D['6']]\n ]\n\n\nexport default class MapListFilters extends React.Component {\n renderOptions(callback) {\n\n }\n\n render() {\n return (\n \n \n this.props.setFilter('soldier', f)}\n />\n this.props.setFilter('demoman', f)}\n />\n \n \n this.props.toggleSimple()}\n >\n \n \n \n \n )\n }\n}\n\n\nclass FilterDropdown extends React.Component {\n render() {\n const classes = cx(\n { 'tf-icon': true\n , 'mini': true\n , 'soldier': this.props.playerClass === 'soldier'\n , 'demoman': this.props.playerClass === 'demoman'\n })\n\n const title =\n \n \n {this.props.selected !== null ? ` (T${this.props.selected})` : null} {D.get(this.props.selected, 'Any')}\n \n\n return (\n \n {\n OPTIONS.map((o) => {\n let [value, s] = o\n return (\n this.props.onChange(value)} active={value === this.props.selected}>\n {value !== null ? ` (T${value}) ` : null}{s}\n \n )\n })\n }\n \n )\n }\n}\n\n\nMapListFilters.propTypes =\n { setFilter: P.func.isRequired\n , soldierFilter: P.number\n , demomanFilter: P.number\n }\n","import React from 'react'\nimport {Link} from 'react-router-dom'\nimport Difficulties from 'root/constants/Difficulties'\nimport VisibilitySensor from 'react-visibility-sensor'\n\nimport './styles.styl'\n\n\nexport default class MapListItem extends React.Component {\n constructor(props) {\n super(props)\n\n this.state = {visible: false, showImage: false}\n this.imageUrl = `https://static.tempus2.xyz/web/screenshots/raw/${this.props.data.get('name')}_320p.jpeg`\n }\n\n onVisibilityChange(isVisible) {\n if (isVisible && !this.state.visible) {\n this.image = new Image()\n this.image.onload = this.onImageLoaded.bind(this)\n this.image.src = this.imageUrl\n this.setState({visible: true})\n }\n }\n\n onImageLoaded() {\n this.setState({showImage: true})\n }\n\n renderTiers() {\n const item = this.props.data\n const soldierTier = item.getIn(['tier_info', '3'])\n const demomanTier = item.getIn(['tier_info', '4'])\n return (\n \n \n \n \n \n {soldierTier === 0\n ? \n : 'T' + soldierTier\n }\n \n \n \n \n \n \n \n {demomanTier === 0\n ? \n : 'T' + demomanTier\n }\n \n \n \n )\n }\n\n render() {\n let bgStyles =\n { backgroundImage: this.state.showImage ? `url(${this.imageUrl})` : false\n , opacity: this.state.showImage ? 100 : 0\n }\n const url = '/maps/' + this.props.data.get('name')\n\n var content\n if (!this.state.visible) {\n content = (\n \n \n \n {this.props.data.get('name')}\n \n \n \n )\n }\n else {\n content = (\n <>\n
\n \n \n \n {this.props.data.get('name')}\n \n \n {this.renderTiers()}\n \n \n )\n }\n return (\n \n \n {content}\n \n \n )\n }\n}\n","import React from 'react'\n\nimport MapListItem from './components/MapListItem'\n\nimport './styles.styl'\n\n\nexport default class MapListFancy extends React.Component {\n render() {\n const items = this.props.data.map((item) =>\n \n )\n return (\n
\n {items}\n
\n )\n }\n}\n","import React from 'react'\n\n\nexport default function ZoneIcon({ type, fixedWidth, ...props }) {\n const classes = [\n 'fa',\n 'fa-fw' && fixedWidth,\n type === 'map' && 'fa-globe',\n type === 'course' && 'fa-flag',\n type === 'bonus' && 'fa-star'\n ].join(' ')\n return \n}\n","import React from 'react'\nimport classnames from 'classnames'\nimport Difficulties from 'root/constants/Difficulties'\nimport {Link} from 'react-router-dom'\nimport LazyLoad from 'react-lazyload'\nimport P from 'prop-types'\nimport IP from 'react-immutable-proptypes'\n\nimport ZoneIcon from 'root/components/ZoneIcon'\n\nimport './styles.styl'\n\n\nconst headingNames =\n [ { title: 'Name'\n , sortName: 'name'\n }\n , { title: 'Soldier Tier'\n , sortName: 'soldierTier'\n }\n , { title: 'Demoman Tier'\n , sortName: 'demomanTier'\n }\n , { title: 'Bonuses'\n , sortName: 'bonusCount'\n }\n , { title: 'Courses'\n , sortName: 'courseCount'\n }\n ]\n\n\nfunction MapListHeadings({ sort: {sortBy, ascending}, selectMapSort } ) {\n return (\n \n \n {headingNames.map((h, idx) => {\n const iconClasses = classnames(\n ['fa', 'fa-fw'],\n { 'fa-caret-down': ascending\n , 'fa-caret-up': !ascending\n })\n return (\n \n selectMapSort(h.sortName)}\n >\n {h.title} {sortBy === h.sortName ? : null}\n \n \n )\n })}\n \n \n \n )\n}\n\n\nMapListHeadings.propTypes = (\n { sort: P.object.isRequired\n , selectMapSort: P.func.isRequired\n })\n\n\nconst Tier = ({ tier }) =>\n \n {tier !== -1\n ? \n {tier} {Difficulties.get(tier)}\n \n : 'Not Set'\n }\n \n\n\nTier.propTypes = (\n { tier: P.number.isRequired\n })\n\n\nconst MapListSimple = ({ data, filters, sort, selectMapSort}) =>\n
\n \n \n \n {data.map((m, idx) => {\n const name = m.get('name')\n const bonusCount = m.getIn(['zone_counts', 'bonus'], 0)\n const courseCount = m.getIn(['zone_counts', 'course'], 0)\n return (\n \n \n \n \n \n \n \n \n )\n })}\n \n
\n \n {name}\n \n \n {bonusCount > 0 ? {bonusCount} : 'None'}\n \n {courseCount > 0 ? {courseCount} : 'Linear'}\n \n \n \n \n
\n
\n\n\nMapListSimple.propTypes = (\n { data: IP.list.isRequired\n , filters: IP.map.isRequired\n , sort: IP.record.isRequired\n , selectMapSort: P.func.isRequired\n })\n\n\nexport default MapListSimple\n","import React from 'react'\nimport {setFilter, toggleSimple, selectMapSort} from './actions'\nimport {connect} from 'react-redux'\n\nimport DocumentTitle from 'react-document-title'\nimport {Link} from 'react-router-dom'\nimport Throbber from 'root/components/Throbber'\nimport MapListFilters from './components/MapListFilters'\nimport MapListFancy from './components/MapListFancy'\nimport MapListSimple from './components/MapListSimple'\n\nimport './styles.styl'\n\n\nfunction Maps({ fetching, error, data, filters, simple, sort,\n setFilter, toggleSimple, selectMapSort }) {\n let content\n if (fetching || !data) {\n content = \n }\n else if (error) {\n content =
{error}
\n }\n else {\n content = (\n simple ?\n :\n \n )\n }\n\n return (\n \n
\n \n \n

\n Maps\n

\n
\n \n

These are all available to play on our servers.

\n
\n
\n
\n {content}\n
\n
\n
\n )\n}\n\n\nfunction mapStateToProps(state) {\n const {fetching, error, data, filters, simple, sort} = state.app.maps\n\n const {sortBy} = sort\n let keyPath = [sortBy]\n let defaultValue = undefined\n if (sortBy === 'soldierTier') {\n keyPath = ['tier_info', '3']\n }\n else if (sortBy === 'demomanTier') {\n keyPath = ['tier_info', '4']\n }\n else if (sortBy === 'bonusCount') {\n keyPath = ['zone_counts', 'bonus']\n defaultValue = 0\n }\n else if (sortBy === 'courseCount') {\n keyPath = ['zone_counts', 'course']\n defaultValue = 0\n }\n\n let processedData = null\n if (data) {\n processedData = data.filter((i) => {\n const sFilt = filters.get('soldier')\n const dFilt = filters.get('demoman')\n if (sFilt !== null) {\n return i.getIn(['tier_info', '3']) === sFilt\n }\n else if (dFilt !== null) {\n return i.getIn(['tier_info', '4']) === dFilt\n }\n return true\n }).sortBy((item) => item.getIn(keyPath, defaultValue))\n\n if (!sort.ascending) {\n processedData = processedData.reverse()\n }\n }\n return {fetching, error, data: processedData, filters, simple, sort}\n}\n\n\nexport default connect(\n mapStateToProps,\n {setFilter, toggleSimple, selectMapSort}\n)(Maps)\n","import React from 'react'\n\nimport Immutable from 'immutable'\n\nimport {withRouter} from 'react-router'\nimport {NavLink} from 'react-router-dom'\n\nimport ZoneIcon from 'root/components/ZoneIcon'\n\nimport {prettyZoneName} from 'root/utils/TempusUtils'\n\nimport './styles.styl'\n\n\nconst zoneTypes = Immutable.List(['map', 'course', 'bonus'])\n\n\nexport function MapOverviewNavItem({ zone, onClick, mapName, baseURL}) {\n const type = zone.get('type')\n const index = zone.get('zoneindex')\n const customName = zone.get('custom_name')\n return (\n
  • \n \n {prettyZoneName(type, index)} {customName ? ({customName}) : ''}\n \n
  • \n )\n}\n\n\nexport function MapOverviewLeaderboardNav({ zones, mapName, baseURL }) {\n const zonesGrouped = zoneTypes.map(zoneType => {\n const zs = zones.get(zoneType)\n if (zs)\n return [zoneType, zs]\n }).filter(x => x !== undefined)\n return (\n
      \n { zonesGrouped.map(([zoneType, zs], idx) => {\n return (\n \n
    • \n {zoneType === 'bonus' && 'BONUSES'}\n {zoneType === 'course' && 'COURSES'}\n
    • \n { zs.map(zone =>\n \n ) }\n
      \n )}).interleave(Immutable.Range(1).map(n =>
    • ))\n }\n
    \n )\n}\n\n\nfunction MapOverviewNav({ data, fetchLeaderboard, match }) {\n const {name} = match.params\n\n const zones = data.get('zones')\n return (\n
    \n
      \n
    • \n \n Overview\n \n
    • \n
    • \n \n Leaderboards \n \n \n
    • \n
    • \n \n Authors {`${data.get('authors').size}`}\n \n
    • \n
    \n
    \n )\n}\n\n\nexport default withRouter(MapOverviewNav)\n","import React from 'react'\nimport P from 'prop-types'\nimport classnames from 'classnames'\nimport './styles.styl'\n\n\nexport default function TFIcon({tfClass, size, ...props}) {\n const classes = classnames({\n 'tf-icon': true,\n 'soldier': ['soldier', 3].includes(tfClass),\n 'demoman': ['demoman', 4].includes(tfClass),\n [size]: true\n })\n return \n}\n\n\nTFIcon.propTypes = {\n tfClass: P.oneOf(['soldier', 'demoman']),\n size: P.oneOf(['auto', 'mini', 'sm', 'medium', 'large'])\n}\n","import React from 'react'\n\nimport {Range} from 'immutable'\n\nimport './styles.styl'\n\n\nexport default function SteamAvatarMedal({ children }) {\n return (\n
    \n
    \n
    \n {Range(0, 16).map((num) =>\n \n )}\n
    \n {children}\n
    \n )\n}\n","import React from 'react'\n\nimport TimeAgo from 'react-timeago'\n\nimport SteamAvatar from 'root/components/SteamAvatar'\nimport TFIcon from 'root/components/TFIcon'\nimport SteamAvatarMedal from '../SteamAvatarMedal'\nimport {capitalize, formatTime} from 'root/utils/TempusUtils'\nimport {Link} from 'react-router-dom'\n\nimport './styles.styl'\n\n\nexport default function WorldRecord({ tfClass, runInfo }) {\n return (\n
    \n
    \n
    \n
    \n
    \n \n \n \n
    \n
    \n \n {runInfo.name}\n \n
    \n \n {formatTime(runInfo.duration)}\n \n
    \n
    \n
    \n \n \n \n \n \n
    \n \n
    \n
    \n
    \n
    \n )\n}\n","import React, {useEffect} from 'react'\n\nimport SteamAvatar from 'root/components/SteamAvatar'\n\nimport {Link} from 'react-router-dom'\n\nimport './styles.styl'\n\n\nfunction Authors(props) {\n const {authors} = props\n return (\n
    \n
    \n
    \n Map Authors\n
    \n
    \n
      \n {authors.map(author => {\n const name = author.get('name')\n const authorID = author.get('id')\n const pi = author.get('player_info')\n const steamid = pi.get('steamid')\n\n return (\n
    • \n \n \n {` ${name}`} ({name})\n \n {author.get('map_count')} map(s)\n \n \n
    • \n )\n })}\n
    \n

    \n {authors.size} result(s)\n

    \n
    \n
    \n
    \n )\n}\n\n\nexport default Authors\n","import React from 'react'\nimport styled from 'styled-components'\n\nimport {connect} from 'react-redux'\n\nimport {Link} from 'react-router-dom'\n\nimport SteamAvatar from 'root/components/SteamAvatar'\nimport TFIcon from 'root/components/TFIcon'\nimport ZoneIcon from 'root/components/ZoneIcon'\nimport SteamAvatarMedal from './components/SteamAvatarMedal'\nimport WorldRecord from './components/WorldRecord'\nimport LeaderboardIconCol from './components/LeaderboardIconCol'\nimport Authors from '../Authors'\n\nimport './styles.styl'\n\n\nconst Overview = ({ data }) => {\n const {soldier_runs, demoman_runs} = data.toObject()\n const mapName = data.getIn(['map_info', 'name'])\n const s =\n { rank1: soldier_runs.get(0).toObject()\n , rank2: soldier_runs.get(1).toObject()\n , rank3: soldier_runs.get(2).toObject()\n }\n const d =\n { rank1: demoman_runs.get(0).toObject()\n , rank2: demoman_runs.get(1).toObject()\n , rank3: demoman_runs.get(2).toObject()\n }\n return (\n <>\n
    \n\n
    \n
    \n \n \n World Records\n
    \n
    \n
    \n
    \n \n \n
    \n
    \n
    \n
    \n \n View all\n \n
    \n
    \n \n
    \n \n )\n}\n\nfunction mapStateToProps(state) {\n const {data} = state.app.mapOverview.mapOverview\n return {data}\n}\n\n\nexport default connect(\n mapStateToProps\n)(Overview)\n","export const SCOUT = 1\nexport const SNIPER = 2\nexport const SOLDIER = 3\nexport const DEMOMAN = 4\nexport const MEDIC = 5\nexport const HEAVY = 6\nexport const PYRO = 7\nexport const SPY = 8\nexport const ENGINEER = 9\n\nexport const JUMP_CLASSES = [SOLDIER, DEMOMAN]\n\n// None, 'Scout', 'Sniper', 'Soldier', 'Demoman', 'Medic', 'Heavy',\n// 'Pyro', 'Spy', 'Engineer'\n\nexport const CLASSINDEX_TO_NAME = [\n null, 'Scout', 'Sniper', 'Soldier', 'Demoman', 'Medic', 'Heavy', 'Pyro',\n 'Spy', 'Engineer']\n","import React, {useMemo} from 'react'\nimport {formatTime} from 'root/utils/TempusUtils'\n\nimport {Link} from 'react-router-dom'\nimport Tooltip from 'react-bootstrap/lib/Tooltip'\nimport OverlayTrigger from 'react-bootstrap/lib/OverlayTrigger'\nimport TimeAgo from 'react-timeago'\nimport SteamAvatar from 'root/components/SteamAvatar'\n\nimport './styles.styl'\n\n\nconst LeaderboardItemPanel = ({ data }) =>\n \n \n
    \n
    \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    Date\n 2014-10-09 09:40\n
    Demo\n \n download\n \n
    Tick\n 12345 → 54321\n
    Server\n \n Jump Academy (Chicago) Beginners\n \n
    \n
    \n
    \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    CP1+00:00.15
    CP2-00:20.15
    CP3+00:10.49
    Map run+00:33.75
    \n
    \n
    \n \n \n\n\nfunction LeaderboardItem({ data, firstPlace, expanded, onClick }) {\n // disable for now\n expanded = false\n onClick = () => {}\n\n const pi = data.get('player_info')\n const rank = data.get('rank')\n\n const rankElement = (\n <>\n {(rank <= 3) && (\n <> \n )}\n {`${rank}`}\n \n )\n\n const classes = [\n 'MapOverview-LeaderboardContainer-Leaderboard-LeaderboardItem',\n `rank-${rank}`,\n expanded && 'expanded'\n ].join(' ')\n\n return (\n <>\n \n \n \n \n \n {rankElement}\n \n \n \n {formatTime(data.get('duration'))}\n \n \n {/* \n {rank === 1 ?
    :\n (+{formatTime(data.get('duration') - firstPlace.get('duration'))})\n }\n */}\n \n \n \n \n {pi.get('name')}\n \n \n \n \n \n \n \n {expanded && (\n \n )}\n {expanded && (\n \n \n \n )}\n \n )\n}\n\n\nfunction propsAreEqual(a, b) {\n return (\n a.data === b.data\n && a.firstPlace === b.firstPlace\n && a.expanded === b.expanded\n )\n}\n\n\nexport default React.memo(LeaderboardItem, propsAreEqual)\n","import React from 'react'\n\nimport LeaderboardItem from './components/LeaderboardItem'\n\nimport './styles.styl'\n\n\nexport default function LeaderboardTable(\n { data, playerClass, fetchMore, toggleExpand, collapseAll, expandedRuns }\n) {\n if (data.size === 0) {\n return (\n
    \n No one has completed this.\n
    \n )\n }\n const firstPlace = data.get(0)\n return (\n
    \n
    \n
    \n
    \n
    \n \n \n \n \n \n \n \n \n \n \n \n {data ? data.map((data, idx) => {\n const runID = data.get('id')\n return (\n toggleExpand(playerClass, runID)}\n expanded={expandedRuns.includes(runID)}\n />\n )\n }) : 'nothing'}\n \n
    \n # \n \n duration\n player\n date\n
    \n
    \n {expandedRuns.size > 0 &&\n
    \n
    \n \n
    \n
    \n }\n \n
    \n )\n}\n","import React from 'react'\nimport P from 'prop-types'\nimport IP from 'react-immutable-proptypes'\n\nimport {CLASSINDEX_TO_NAME} from 'root/constants/TFClasses'\n\nimport {withRouter} from 'react-router'\nimport {Route} from 'react-router-dom'\n\nimport {DropdownButton, MenuItem} from 'react-bootstrap'\nimport {LinkContainer} from 'react-router-bootstrap'\n\nimport './styles.styl'\n\n\nfunction LeaderboardAdminDropdown({ zoneInfo, playerClass, location, match }) {\n const addRunURL = `${match.url}/addrun/${CLASSINDEX_TO_NAME[playerClass].toLowerCase()}`\n return (\n
    \n }\n bsStyle=\"default\"\n noCaret className=\"btn-dark\">\n \n \n Add run\n \n \n \n
    \n )\n}\n\n\nLeaderboardAdminDropdown.propTypes = {\n zoneInfo: IP.map,\n playerClass: P.number\n}\n\n\nexport default withRouter(LeaderboardAdminDropdown)\n","import React from 'react'\n\n\nexport default function Label({ valid, invalid, required, children, ...props}) {\n const {} = props\n return (\n \n {children}{required && *}\n \n )\n}\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { createField, fieldPresets } from 'react-advanced-form'\nimport cx from 'classnames'\n\nimport Label from '../Label'\n\n\nconst Input = ({\n fieldState: { invalid, valid, required },\n ...props\n}) => {\n const classes = cx({\n 'form-control': true\n })\n return (\n \n )\n}\n\n\nexport const InputField = (props) => {\n const { name, label, hint, disabled, fieldProps, fieldState } = props\n const { required } = fieldProps\n const { validating, validatedAsync, valid, invalid, errors } = fieldState\n // return \n const classes = cx({\n 'form-group': true,\n 'has-success': valid,\n 'has-error': invalid\n })\n console.log(errors)\n return (\n
    \n { label && (\n \n { label }\n \n ) }\n
    \n \n {errors &&\n errors.map((error, index) => (\n \n {error}\n \n ))\n }\n {props.children}\n
    \n
    \n )\n}\n\n\nexport default createField(fieldPresets.input)(InputField)\n","import React from 'react'\nimport P from 'prop-types'\nimport cx from 'classnames'\n\nimport Label from '../Label'\n\n\nconst StaticFormControl = ({ label, children, valid, invalid }) => {\n const classes = cx({\n 'form-group': true\n })\n return (\n
    \n { label && (\n \n { label }\n \n ) }\n
    \n

    \n {children}\n

    \n
    \n
    \n )\n}\n\n\nStaticFormControl.propTypes =\n { label: P.node\n , children: P.node.isRequired\n , valid: P.bool\n , invalid: P.bool\n }\n\n\nexport default StaticFormControl\n","import React from 'react'\nimport {createField, fieldPresets} from 'react-advanced-form'\nimport cx from 'classnames'\nimport styled from 'styled-components'\nimport {Link} from 'react-router-dom'\n\nimport TimeAgo from 'react-timeago'\nimport Label from 'root/components/Label'\nimport Input from 'root/components/Input'\nimport StaticFormControl from 'root/components/StaticFormControl'\n\n\nconst StyledTable = styled.table`\n width: 100%;\n\n > tbody > tr {\n > td {\n padding: 2px 4px;\n &:first-child {\n text-align: right;\n font-weight: bold;\n }\n }\n }\n`\n\n\nconst DemoInfoRow = ({ label, children }) =>\n
    \n
    \n \n {label}\n
    \n
    \n
    \n {children}\n
    \n
    \n\n\nconst DemoInfoTable = ({ demo }) => {\n // const {\n // id,\n // mapname,\n // filename,\n // date,\n // url,\n // recording,\n // requested,\n // uploader_id,\n // server_id,\n // expired,\n // deleted\n // }\n const placeholder =
    \n return (\n
    \n \n {demo\n ? \n {demo.filename}.dem\n \n : placeholder\n }\n \n \n {demo\n ? \n : placeholder\n }\n \n \n {demo\n ? {demo.server_info.name}\n : placeholder\n }\n \n
    \n )\n}\n\n\nfunction DemoInput(props) {\n return (\n \n \n \n )\n\n // return (\n //
    \n // \n //
    \n // \n // \n //
    \n //
    \n // )\n}\n\n\nexport default DemoInput\n","import React from 'react'\n\nimport {Link} from 'react-router-dom'\n\n\nexport default function PlayerSelectionInput() {\n return (\n
    \n \n \n jayess [U:1:28530124]\n \n
    \n )\n}\n","import React from 'react'\n\nimport P from 'prop-types'\n\n\nexport default function FormGroup({ label, labelWidth=2, children }) {\n return (\n
    \n \n
    \n {children}\n
    \n
    \n )\n}\n\n\nFormGroup.propTypes =\n { label: P.node\n , labelWidth: P.number\n , children: P.node.isRequired\n }\n","import React from 'react'\n\nimport P from 'prop-types'\nimport IP from 'react-immutable-proptypes'\n\nimport {Form} from 'react-advanced-form'\nimport TFIcon from 'root/components/TFIcon'\nimport Input from 'root/components/Input'\nimport DemoInput from './components/DemoInput'\nimport PlayerSelectionInput from './components/PlayerSelectionInput'\nimport StaticFormControl from 'root/components/StaticFormControl'\nimport FormGroupHorizontal from 'root/components/FormGroupHorizontal'\n\nimport {prettyZoneName} from 'root/utils/TempusUtils'\nimport {CLASSINDEX_TO_NAME} from 'root/constants/TFClasses'\n\n\nconst sampleDemo = {\n expired: false,\n mapname: 'jump_neptune_rc1',\n filename: 'auto-20180511-035332-jump_neptune_rc1',\n uploader_id: null,\n requested: false,\n date: 1526010812.63222,\n url: null,\n recording: true,\n server_id: 10,\n deleted: false,\n id: 646202,\n server_info: {\n hidden: false,\n addr: 'au1-2.tempus.xyz',\n country: 'Australia',\n id: 1,\n shortname: 'AU1',\n port: 27015,\n name: 'Jump (AU) Beginner'\n }\n}\n\n\nconst rules =\n { name:\n { startTick: ({ value }) => value.length > 6\n }\n }\n\n\nconst messages =\n { name:\n { startTick:\n { missing: 'Yep'\n , invalid: 'Must be a number.'\n }\n }\n }\n\n\nexport default function AddRunForm({ zoneInfo, mapInfo, playerClass }) {\n const {type, zoneindex, custom_name} = zoneInfo.toJS()\n const zoneName = prettyZoneName(type, zoneindex, custom_name)\n return (\n
    \n \n {mapInfo.get('name')}/{zoneName}\n \n \n \n \n \n {CLASSINDEX_TO_NAME[playerClass]}\n \n
    \n
    \n \n
    \n
    \n \n \n\n {/* */}\n {/* {['C1', 'C2', 'C3', 'C4', 'C5', 'C6'].map((z, idx) => */}\n {/* */}\n {/*
    */}\n {/* */}\n {/* */}\n {/* optional */}\n {/* */}\n {/*
    */}\n {/*
    */}\n {/* )} */}\n {/*
    */}\n\n \n )\n}\n","import React from 'react'\n\nimport P from 'prop-types'\nimport IP from 'react-immutable-proptypes'\n\nimport ReactModal from 'react-modal'\nimport {Modal, InputGroup} from 'react-bootstrap'\nimport Button from 'react-bootstrap/lib/Button'\n\nimport {Link} from 'react-router-dom'\n\nimport AddRunForm from './components/AddRunForm'\n\nimport './styles.styl'\n\n\nexport default function AddRunModal({ zoneInfo, mapInfo, playerClass, onClose }) {\n return (\n \n
    \n
    \n \n

    \n Add run\n

    \n
    \n
    \n \n
    \n
    \n \n \n
    \n
    \n \n )\n}\n\n\nAddRunModal.propTypes = {\n zoneInfo: IP.map.isRequired,\n mapInfo: IP.map.isRequired,\n onClose: P.func.isRequired\n}\n","import React from 'react'\nimport SteamAvatar from 'root/components/SteamAvatar'\nimport './styles.styl'\n\n\nexport default function PersonalRecord() {\n return
    \n return (\n
    \n
    \n PR\n \n jayess • Rank 15 • 8:11.092\n \n
    \n
    \n

    \n You have not completed this.\n

    \n
    \n
    \n )\n}\n","import React from 'react'\nimport {CLASSINDEX_TO_NAME} from 'root/constants/TFClasses'\n\nimport Col from 'react-bootstrap/lib/Col'\nimport ButtonGroup from 'react-bootstrap/lib/ButtonGroup'\nimport Button from 'react-bootstrap/lib/Button'\n\nimport {connect} from 'react-redux'\nimport {push} from 'connected-react-router'\nimport {withRouter} from 'react-router'\nimport {Route} from 'react-router-dom'\n\nimport LeaderboardTable from './components/LeaderboardTable'\nimport LeaderboardAdminDropdown from './components/LeaderboardAdminDropdown'\nimport AddRunModal from './components/AddRunModal'\n\nimport PersonalRecord from './components/PersonalRecord'\nimport {Scrollbars} from 'react-custom-scrollbars'\nimport {prettyZoneName, formatTime} from 'root/utils/TempusUtils'\nimport Difficulties from 'root/constants/Difficulties'\nimport TFIcon from 'root/components/TFIcon'\n\nimport {PERMISSIONS} from 'root/utils/loginData'\n\n\nimport './styles.styl'\n\n\nfunction Leaderboard({ data, fetching, playerClass, tier, zoneInfo, mapInfo, fetchMore, toggleExpand, collapseAll, expandedRuns, push, match }) {\n const tfClass = CLASSINDEX_TO_NAME[playerClass]\n const tfClassLower = tfClass.toLowerCase()\n const zoneName = prettyZoneName(zoneInfo.get('type'), zoneInfo.get('zoneindex'))\n const customZoneName = zoneInfo.get('custom_name')\n return (\n
    \n \n push(match.url)}\n />\n \n {/* TODO: Finish this up for small viewports\n
    \n \n Soldier\n \n \n Demoman\n \n
    \n */}\n
    \n {fetching ?
    : null}\n
    \n {PERMISSIONS.includes('___superuser') ?\n
    \n \n
    \n : null\n }\n \n {zoneName} {customZoneName ? ({customZoneName}) : ''}\n
    {Difficulties[tier]} (Tier {tier})
    \n
    \n
    \n \n fetchMore(playerClass)}\n toggleExpand={toggleExpand}\n collapseAll={collapseAll}\n expandedRuns={expandedRuns}\n />\n
    \n
    \n
    \n )\n}\n\n\nexport default withRouter(connect(null, { push })(Leaderboard))\n","import React, {useEffect} from 'react'\nimport {JUMP_CLASSES, CLASSINDEX_TO_NAME} from 'root/constants/TFClasses'\n\nimport {Switch, Route, Redirect, useParams} from 'react-router'\n\nimport {connect} from 'react-redux'\n\nimport {fetchMore, toggleExpand, collapseAll} from './actions'\n\nimport Row from 'react-bootstrap/lib/Row'\nimport Col from 'react-bootstrap/lib/Col'\nimport Leaderboard from './components/Leaderboard'\n\n\nimport './styles.styl'\n\n\nfunction Leaderboards({ data, leaderboards, fetch, fetchMore, toggleExpand, collapseAll }) {\n const {zoneType, zoneIndex} = useParams()\n\n if (leaderboards.error) {\n return (\n \n
    \n
    \n {leaderboards.error}\n
    \n
    \n \n )\n }\n else if ((leaderboards.fetching && !leaderboards.data) || !leaderboards.data) {\n return (\n
    \n \n
    \n )\n }\n return (\n <>\n {[3, 4].map((playerClass, idx) =>\n
    \n \n
    \n )}\n \n )\n}\n\n\nfunction LeaderboardContainer({ data, leaderboards, fetchMore, toggleExpand, collapseAll, match }){\n return (\n
    \n \n \n \n \n \n \n \n \n
    \n )\n}\n\nfunction mapStateToProps(state) {\n const {data} = state.app.mapOverview.mapOverview\n const {leaderboards} = state.app.mapOverview\n return {data, leaderboards}\n}\n\nexport default connect(\n mapStateToProps,\n { fetchMore, toggleExpand, collapseAll }\n)(LeaderboardContainer)\n","import React, {useEffect, useState} from 'react'\nimport P from 'prop-types'\n\nimport './styles.styl'\n\n\nexport default function Background({ mapName }) {\n const imgURL = `https://static.tempus2.xyz/web/screenshots/raw/${mapName}_1080p.jpeg`\n const [imgLoaded, setImgLoaded] = useState(false)\n useEffect(() => {\n let unmounted = false\n const image = new Image()\n image.onload = () => {\n if (!unmounted)\n setImgLoaded(true)\n }\n image.src = imgURL\n return () => unmounted = true\n }, [mapName])\n\n const styles = {\n opacity: 0\n }\n if (imgLoaded) {\n styles.backgroundImage = `url(${imgURL})`\n styles.opacity = 100\n }\n return (\n
    \n )\n}\n\n\nBackground.propTypes =\n { mapName: P.string.isRequired\n }\n","import React from 'react'\nimport P from 'prop-types'\nimport IP from 'react-immutable-proptypes'\n\nimport {Link} from 'react-router-dom'\n\n\nexport default function Author({ authors, match }) {\n let authorItem\n if (authors.size === 0) {\n authorItem =\n ???\n } else if (authors.size === 1) {\n const a = authors.get(0)\n authorItem = (\n \n {a.get('name')}\n \n )\n } else {\n authorItem = (\n \n {authors.size} authors\n \n )\n }\n return {authorItem}\n}\n\n\nAuthor.propTypes =\n { authors: IP.list.isRequired\n , match: P.object.isRequired\n }\n","import React from 'react'\nimport P from 'prop-types'\nimport IP from 'react-immutable-proptypes'\n\nimport ZoneIcon from 'root/components/ZoneIcon'\nimport TFIcon from 'root/components/TFIcon'\nimport Author from './components/Author'\n\nimport './styles.styl'\n\n\nconst Header = ({ data, match }) =>\n
    \n
    \n
    \n
    \n

    \n {data.getIn(['map_info', 'name'])}{' '}\n
    \n
    \n \n by \n \n
    \n

    \n
    \n
      \n {/* TODO: Enable when we have data for this */}\n {/*
    • */}\n {/* {'+'} */}\n {/* */}\n {/*
    • */}\n {['course', 'bonus'].map((type, idx) =>\n
    • \n {data.getIn(['zone_counts', type], type === 'course' ? 1 : 0)}\n
    • \n )}\n {['soldier', 'demoman'].map((cls, idx) =>\n
    • \n {`T${data.getIn(['tier_info', cls])}`}\n
    • \n )}\n
    • \n \n \n \n
    • \n
    \n
    \n
    \n
    \n
    \n
    \n\n\nHeader.propTypes =\n { data: IP.map.isRequired\n , match: P.object.isRequired\n }\n\n\nexport default Header\n","import React from 'react'\nimport { connect } from 'react-redux'\nimport {\n loadMapOverview,\n selectVideo\n} from './actions'\n\nimport {Switch, Route, Redirect} from 'react-router'\n\nimport DocumentTitle from 'react-document-title'\n\nimport Throbber from 'root/components/Throbber'\nimport MapOverviewNav from './components/MapOverviewNav'\nimport Overview from './scenes/Overview'\nimport Leaderboards from './scenes/Leaderboards'\nimport Authors from './scenes/Authors'\n\nimport Background from './components/Background'\nimport Header from './components/Header'\n\nimport './styles.styl'\n\n\nfunction MapOverview({ data, fetching, leaderboard, match }) {\n if (fetching || !data) {\n return (\n
    \n \n
    \n )\n }\n const mapName = data.getIn(['map_info', 'name'])\n // const bgStyle = {}\n\n return (\n \n
    \n \n
    \n
    \n
    \n \n
    \n
    \n \n \n \n \n \n \n \n \n \n No such resource.\n \n \n
    \n
    \n
    \n
    \n
    \n )\n}\n\nfunction mapStateToProps(state) {\n const { mapOverview } = state.app.mapOverview\n return mapOverview.toObject()\n}\n\nexport default connect(\n mapStateToProps,\n { loadMapOverview, selectVideo }\n)(MapOverview)\n","import React from 'react'\nimport P from 'prop-types'\n\nimport './styles.styl'\n\n\nexport default class Stats extends React.Component {\n render() {\n const ri = this.props.rankInfo\n const cri = this.props.countryRankInfo\n const pi = this.props.playerInfo\n return (\n
    \n

    {ri.points > 0 ? `Rank ${ri.rank}` : 'Unranked'} {this.props.statsType}

    \n
    \n {ri.points} Points\n
    \n
    \n \n \n \n \n {`Rank ${cri.rank} in`} {pi.country}\n
    \n
    \n )\n }\n}\n\n\nStats.propTypes =\n { playerInfo: P.object.isRequired\n , rankInfo: P.object.isRequired\n , countryRankInfo: P.object.isRequired\n , prStats: P.object.isRequired\n , wrStats: P.object.isRequired\n , topStats: P.object.isRequired\n , zoneCount: P.object.isRequired\n }\n","// from https://github.com/ReactTraining/react-router/issues/4105#issuecomment-289195202\nimport React from 'react'\nimport {Route} from 'react-router'\n\n\nconst renderMergedProps = (component, ...rest) => {\n const finalProps = Object.assign({}, ...rest)\n return (\n React.createElement(component, finalProps)\n )\n}\n\nconst PropsRoute = ({ component, ...rest }) => {\n return (\n {\n return renderMergedProps(component, routeProps, rest)\n }}/>\n )\n}\n\n\nexport default PropsRoute\n","import React from 'react'\nimport {connect} from 'react-redux'\nimport classnames from 'classnames'\nimport {loadPlayer} from './actions'\nimport {CLASSINDEX_TO_NAME, JUMP_CLASSES} from 'root/constants/TFClasses'\nimport {Link, NavLink, Redirect} from 'react-router-dom'\n\nimport TimeAgo from 'react-timeago'\nimport DocumentTitle from 'react-document-title'\nimport SteamAvatar from 'root/components/SteamAvatar'\nimport Throbber from 'root/components/Throbber'\nimport Stats from './components/Stats'\nimport PropsRoute from 'root/components/PropsRoute'\n\nimport './styles.styl'\n\n\nfunction getFormattedDate(date) {\n var year = date.getFullYear()\n var month = (1 + date.getMonth()).toString()\n month = month.length > 1 ? month : '0' + month\n var day = date.getDate().toString()\n day = day.length > 1 ? day : '0' + day\n return month + '/' + day + '/' + year\n}\n\n\nfunction capitalize(s)\n{\n return s && s[0].toUpperCase() + s.slice(1)\n}\n\n\nexport class PlayerOverview extends React.Component {\n componentWillMount() {\n this.props.loadPlayer(this.props.match.params.id)\n }\n\n componentWillReceiveProps(nextProps) {\n if (nextProps.match.params.id !== this.props.match.params.id) {\n this.props.loadPlayer(nextProps.match.params.id)\n }\n }\n\n renderClassRankStats(playerClass) {\n const cri = this.props.data.class_rank_info[playerClass]\n return (\n
      \n
    • \n {`${Math.floor(cri.points)} Points`}\n
    • \n
    • \n {`Rank ${cri.rank} (5th in United States)`}\n
    • \n
    \n )\n }\n\n getBestClass() {\n const {data} = this.props\n const cri = data.class_rank_info\n const soldier = cri[3]\n const demoman = cri[4]\n if (soldier.points > 0 && soldier.rank < demoman.rank) {\n return 'soldier'\n }\n else if (demoman.points > 0) {\n return 'demoman'\n }\n else {\n return null\n }\n }\n\n renderChatRank() {\n const {data} = this.props\n const cri = data.class_rank_info\n const soldier = cri[3]\n const demoman = cri[4]\n let title\n let tfClass\n let rank\n if (soldier.rank < demoman.rank) {\n title = soldier.title\n tfClass = 'soldier'\n rank = soldier.rank\n }\n else {\n title = demoman.title\n tfClass = 'demoman'\n rank = demoman.rank\n }\n return title\n return (\n

    \n \n {data.rank_info.points > 0\n ? \n Rank #{rank}\n \n : 'Unranked'\n }\n \n

    \n )\n }\n\n render() {\n if (!this.props.data || this.props.fetching) {\n return
    \n }\n const {data, match} = this.props\n const pi = data.player_info\n const firstSeenDate = new Date(pi.first_seen * 1000)\n const redirectURL = `${match.url}/${this.getBestClass() || 'overall'}`\n\n return (\n \n
    \n {this.props.location.pathname === match.url\n ? \n : null\n }\n
    \n
    \n
    \n \n
    \n \n Online \n
    \n Joined {getFormattedDate(firstSeenDate)}\n
    \n
    \n

    \n [{this.renderChatRank()}] {pi.name}\n

    \n
    \n {}\n
    \n
    \n
    \n \n Soldier\n \n \n Demoman\n \n \n Overall\n \n
    \n
    \n {JUMP_CLASSES.map((pc, idx) => {\n const cn = CLASSINDEX_TO_NAME[pc]\n return (\n \n )\n })}\n \n
    \n
    \n
    \n )\n }\n}\n // \n // {JUMP_CLASSES.map(pc => {\n // const playerClassName = CLASSINDEX_TO_NAME[pc]\n // const icon = \n // return (\n // \n // )\n // })}\n // }\n // rankInfo={data.rank_info}\n // countryRankInfo={data.country_rank_info}\n // playerInfo={data.player_info}\n // prStats={data.pr_stats}\n // wrStats={data.wr_stats}\n // topStats={data.top_stats}\n // zoneCount={data.zone_count} />\n // \n\n\nfunction mapStateToProps(state) {\n const {fetching, error, data} = state.app.playerOverview\n return {fetching, error, data: data ? data.toJS() : data}\n}\n\n\nexport default connect(\n mapStateToProps,\n {loadPlayer}\n)(PlayerOverview)\n","import React from 'react'\n\nimport './styles.styl'\n\n\nexport default function PlayerLeaderboardTitle ({ rankType }) {\n let icon\n if (rankType === 'overall') {\n icon = (\n \n )\n }\n else if (rankType === 'soldier') {\n icon = \n }\n else if (rankType === 'demoman') {\n icon = \n }\n return (\n

    \n {icon} Top Players — {rankType}\n

    \n )\n}\n","import React, {useEffect} from 'react'\nimport P from 'prop-types'\nimport {connect} from 'react-redux'\nimport {loadRanks} from './actions'\n\nimport {useParams} from 'react-router'\n\nimport PlayerLeaderboardTitle from './components/PlayerLeaderboardTitle'\n\nimport {Link, NavLink} from 'react-router-dom'\nimport Table from 'react-bootstrap/lib/Table'\nimport SteamAvatar from 'root/components/SteamAvatar'\nimport Throbber from 'root/components/Throbber'\n\nimport ButtonToolbar from 'react-bootstrap/lib/ButtonToolbar'\nimport ButtonGroup from 'react-bootstrap/lib/ButtonGroup'\nimport DropdownButton from 'react-bootstrap/lib/DropdownButton'\nimport Button from 'react-bootstrap/lib/Button'\n\nimport './styles.styl'\n\n\nfunction PlayerLeaderboards ({ fetching, error, data, loadRanks }) {\n const {type} = useParams()\n\n useEffect(() => {\n loadRanks(type)\n }, [type])\n\n return (\n
    \n \n \n \n \n Overall\n \n \n Soldier\n \n \n Demoman\n \n \n \n {!data ? :\n
    \n
    \n \n \n \n \n \n \n \n \n {data.get('players').map((p, idx) =>\n \n \n \n \n \n )}\n \n
    \n PlayerPoints
    \n \n #{p.get('rank')}\n \n \n \n \n \n {p.get('name')}\n \n \n {Math.round(p.get('points'))}\n
    \n
    \n

    \n {data.get('count')} total ranked players.\n

    \n
    }\n
    \n )\n\n return
    hi
    \n}\n\n\n\nclass _PlayerLeaderboards extends React.Component {\n componentDidMount() {\n this.loadRanks()\n }\n\n loadRanks() {\n // const {start} = this.props.location.query\n this.props.loadRanks(this.props.match.params.type, null)\n }\n\n componentDidUpdate(prevProps) {\n const oldRankType = prevProps.match.params.type\n const newRankType = this.props.match.params.type\n // const {start} = this.props.location.query\n // const oldStart = prevProps.location.query.start\n\n if (oldRankType !== newRankType) {\n this.loadRanks()\n }\n }\n\n renderTitle() {\n const {rankType} = this.props\n let icon\n if (rankType === 'overall') {\n icon = (\n \n )\n }\n else if (rankType === 'soldier') {\n icon = \n }\n else if (rankType === 'demoman') {\n icon = \n }\n return (\n

    \n {icon} Top Players — {rankType}\n

    \n )\n }\n\n render() {\n let content\n if (!this.props.data) {\n content = \n }\n else {\n content = (\n
    \n {this.renderTitle()}\n
    \n \n \n \n \n \n \n \n \n {this.props.data.get('players').map((p, idx) =>\n \n \n \n \n \n )}\n \n
    \n PlayerPoints
    \n \n #{p.get('rank')}\n \n \n \n \n \n {p.get('name')}\n \n \n {Math.round(p.get('points'))}\n
    \n
    \n

    \n {this.props.data.get('count')} total ranked players.\n

    \n
    \n )\n }\n return (\n
    \n {content}\n
    \n )\n }\n}\n\n\n// PlayerLeaderboards.propTypes =\n// {\n// }\n\n\nfunction mapStateToProps(state) {\n const {fetching, error, data} = state.app.playerLeaderboards\n return {fetching, error, data}\n}\n\n\nexport default connect(\n mapStateToProps,\n {loadRanks}\n)(PlayerLeaderboards)\n","import React from 'react'\nimport {Link} from 'react-router-dom'\n\nimport TimeAgo from 'react-timeago'\n\nimport './styles.styl'\n\n\nconst DemoInfo = ({demoInfo, serverInfo}) => {\n const {url, deleted, expired, recording, requested} = demoInfo\n let demoStatus\n if (url) {\n demoStatus = 'Uploaded'\n }\n else if (deleted || expired) {\n demoStatus = 'Deleted'\n }\n else if (recording) {\n if (requested) {\n demoStatus = 'Recording (upload queued)'\n }\n else {\n demoStatus = 'Recording'\n }\n }\n else if (requested) {\n demoStatus = 'Uploading'\n }\n else {\n demoStatus = 'Not uploaded'\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
    Filename{demoInfo.filename}.dem
    Server\n {serverInfo.name}\n
    Map\n \n {demoInfo.mapname}\n \n
    Status{demoStatus}
    Date
    \n )\n}\n\n\nexport default DemoInfo\n","import React from 'react'\nimport cx from 'classnames'\nimport Table from 'react-bootstrap/lib/Table'\nimport {Link} from 'react-router-dom'\nimport SteamAvatar from 'root/components/SteamAvatar'\n\nimport {prettyZoneName, formatTime} from 'root/utils/TempusUtils'\n\nimport './styles.styl'\n\n\nconst DemoRuns = ({demoRuns}) => (\n
    \n

    Runs in demo

    \n {demoRuns.length > 0\n ? \n \n \n \n \n \n \n \n \n \n \n \n {demoRuns.map((r, idx) => {\n const pi = r.player_info\n const zi = r.zone_info\n const zri = r.zone_run_info\n const runType = r.run_type\n const iconClasses = cx(\n { 'tf-icon': true\n , 'mini': true\n , 'soldier': zri.player_class === 3\n , 'demoman': zri.player_class === 4\n })\n return (\n \n \n \n \n \n \n \n \n )\n })}\n \n
    PlayerClassZoneTimeTypeTick
    \n \n  \n \n {pi.name}\n \n {prettyZoneName(zi.type, zi.index)}{formatTime(zri.duration)}\n {{wr: 'WR',\n top: 'Top',\n pr: 'PR'}[runType]}\n {zri.start_tick} → {zri.end_tick}
    \n :

    Nothing here

    \n }\n
    \n)\n\n\nexport default DemoRuns\n","import React from 'react'\nimport Button from 'react-bootstrap/lib/Button'\n\nimport {TEMPUS_PERMISSIONS} from 'root/utils/loginData'\n\n\nconst DemoDownloadButton = ({data, onClickUpload, uploading, uploadingError}) => {\n if (!data) {\n return null\n }\n const demoInfo = data.get('demo_info').toJS()\n const {deleted, expired, url, requested, recording} = demoInfo\n\n let button\n if (url) {\n button = (\n \n Download\n \n )\n }\n else if (deleted) {\n button = (\n \n )\n }\n else if (expired) {\n button = (\n \n )\n }\n else if (requested) {\n if (recording) {\n button = (\n \n )\n }\n else {\n button = (\n \n )\n }\n }\n else {\n if (TEMPUS_PERMISSIONS.includes('upload_demos')) {\n button = (\n \n \n\n \n )\n }\n else {\n button = (\n \n )\n }\n }\n\n return (\n
    \n {button}\n { uploadingError\n ? {uploadingError}\n : null\n }\n
    \n )\n}\n\n\nexport default DemoDownloadButton\n","import React from 'react'\nimport P from 'prop-types'\nimport IP from 'react-immutable-proptypes'\nimport {loadDemoOverview, requestDemoUpload} from './actions'\nimport {connect} from 'react-redux'\n\nimport DocumentTitle from 'react-document-title'\nimport Throbber from 'root/components/Throbber'\nimport DemoInfo from './components/DemoInfo'\nimport DemoRuns from './components/DemoRuns'\nimport DemoDownloadButton from './components/DemoDownloadButton'\n\nimport './styles.styl'\n\n\nclass DemoOverview extends React.Component {\n componentDidMount() {\n this.props.loadDemoOverview(this.props.match.params.id)\n }\n\n render() {\n const {fetching, error, data, uploading, uploadingError} = this.props\n let content\n if (error) {\n content =
    {error}
    \n }\n else if (fetching || !data) {\n content =

    \n }\n else {\n const demoInfo = data.get('demo_info').toJS()\n const serverInfo = data.get('server_info').toJS()\n const demoRuns = data.get('demo_runs').toJS()\n content = (\n
    \n \n this.props.requestDemoUpload(demoInfo.id)} />\n
    \n \n
    \n )\n }\n\n return (\n \n
    \n

    \n Demo Info\n

    \n \n \n {content}\n
    \n
    \n )\n }\n}\n\n\nDemoOverview.propTypes = {\n loadDemoOverview: P.func.isRequired,\n requestDemoUpload: P.func.isRequired,\n fetching: P.bool.isRequired,\n error: P.string,\n data: IP.map,\n uploading: P.bool.isRequired,\n uploadingError: P.string\n}\n\n\nfunction mapStateToProps(state) {\n const {fetching, error, data, uploading, uploadingError} = state.app.demoOverview\n return {fetching, error, data, uploading, uploadingError}\n}\n\n\nexport default connect(\n mapStateToProps,\n {loadDemoOverview, requestDemoUpload}\n)(DemoOverview)\n","import React from 'react'\nimport P from 'prop-types'\nimport IP from 'react-immutable-proptypes'\nimport cx from 'classnames'\nimport {connect} from 'react-redux'\nimport {loadRecordOverview} from './actions'\nimport {prettyZoneName, formatTime} from 'root/utils/TempusUtils'\nimport {Link} from 'react-router-dom'\nimport SteamAvatar from 'root/components/SteamAvatar'\nimport {CLASSINDEX_TO_NAME} from 'root/constants/TFClasses'\n\nimport DocumentTitle from 'react-document-title'\nimport Throbber from 'root/components/Throbber'\nimport TimeAgo from 'react-timeago'\n\nimport './styles.styl'\n\n\nclass RecordOverview extends React.Component {\n componentDidMount() {\n this.props.loadRecordOverview(this.props.match.params.id)\n }\n\n render() {\n const {fetching, error, data} = this.props\n let content\n if (error) {\n content =

    {error}

    \n }\n else if (fetching || !data) {\n content =

    \n }\n else {\n const playerInfo = data.get('player_info').toJS()\n const recordInfo = data.get('record_info').toJS()\n const zoneInfo = data.get('zone_info').toJS()\n const zoneTier = data.getIn(['tier_info', recordInfo.class.toString()])\n const mapInfo = data.get('map_info').toJS()\n const demoInfo = data.get('demo_info').toJS()\n const zoneName = prettyZoneName(zoneInfo.type, zoneInfo.zoneindex)\n const iconClasses = cx(\n { 'tf-icon': true\n , 'mini': true\n , 'soldier': recordInfo.class === 3\n , 'demoman': recordInfo.class === 4\n })\n\n content = (\n \n
    \n \n \n \n \n \n \n

    \n {playerInfo.name}\n

    \n
    \n

    \n on \n {mapInfo.name}\n \n {zoneName}\n

    \n
    \n
    \n
    \n
    \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    Time\n {formatTime(recordInfo.duration)}\n
    Class\n {CLASSINDEX_TO_NAME[recordInfo.class]}\n
    Tier\n {zoneTier}\n
    \n
    \n
    \n
    \n
    \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    Demo\n \n {demoInfo.filename}.dem\n \n
    Start Tick\n {recordInfo.demo_start_tick}\n
    End Tick\n {recordInfo.demo_end_tick}\n
    \n
    \n
    \n
    \n
    \n
    \n )\n }\n\n\n return (\n \n
    \n {content}\n
    \n
    \n )\n }\n}\n\n\nRecordOverview.propTypes = {\n loadRecordOverview: P.func.isRequired,\n fetching: P.bool.isRequired,\n error: P.string,\n data: IP.map\n}\n\n\nfunction mapStateToProps(state) {\n const {fetching, error, data} = state.app.recordOverview\n return {fetching, error, data}\n}\n\n\nexport default connect(\n mapStateToProps,\n {loadRecordOverview}\n)(RecordOverview)\n","import React from 'react'\n\nimport './styles.styl'\n\n\nconst AuthorOverview = () => {\n return
    Not yet implemented
    \n}\n\n\nexport default AuthorOverview\n","import React from 'react'\nimport P from 'prop-types'\nimport FormControl from 'react-bootstrap/lib/FormControl'\n\n\nexport default class AppSearchInput extends React.Component {\n constructor(props) {\n super(props)\n this.state = {searchValue: null}\n }\n\n startTimeout() {\n this.clearTimeout()\n this.timeoutID = window.setTimeout(this.triggerLoad.bind(this), 400)\n }\n\n clearTimeout() {\n if (this.timeoutID) {\n window.clearTimeout(this.timeoutID)\n delete this.timeoutID\n }\n }\n\n triggerLoad() {\n const s = this.state.searchValue\n if (s !== null && s.length > 0) {\n this.props.onChange(this.state.searchValue)\n }\n }\n\n onInputChange(event, blah) {\n this.setState({searchValue: event.target.value})\n this.startTimeout()\n }\n\n onInputFocus(event) {\n event.target.select()\n }\n\n onKeyPress(event) {\n if (event.key === 'Enter') {\n this.clearTimeout()\n this.triggerLoad()\n }\n }\n\n render() {\n return (\n \n )\n }\n}\n\n\nAppSearchInput.propTypes =\n { onChange: P.func.isRequired\n }\n","import React from 'react'\nimport {Link} from 'react-router-dom'\nimport SteamAvatar from 'root/components/SteamAvatar'\n\n\nexport default class AppSearchResults extends React.Component {\n renderResults(data) {\n let result = []\n data.maps.map((m) => {\n const mapName = m.get('name')\n result.push(\n \n \n Map\n \n \n {mapName}\n \n \n )\n })\n data.players.map((p) => {\n result.push(\n \n \n \n \n \n {p.get('name')}\n \n \n \n )\n })\n return result\n }\n\n render() {\n const {data, fetching, error} = this.props\n let items = []\n if (error) {\n items.push(\n {error}\n )\n }\n else if (fetching) {\n items.push(\n \n \n \n )\n }\n else if (data) {\n if (data.players.size === 0 && data.maps.size === 0 ) {\n items.push(No results.)\n }\n else {\n items = this.renderResults(data)\n }\n }\n else {\n items.push(\n Enter player or map name\n )\n }\n return (\n \n )\n }\n}\n","import React, {useState, useEffect} from 'react'\nimport {withRouter} from 'react-router'\nimport {connect} from 'react-redux'\n\nimport SteamAvatar from 'root/components/SteamAvatar'\nimport {Link} from 'react-router-dom'\nimport FormGroup from 'react-bootstrap/lib/FormGroup'\nimport AppSearchInput from './components/AppSearchInput'\nimport AppSearchResults from './components/AppSearchResults'\nimport {searchPlayersAndMaps} from './actions'\n\n\n// export default function AppSearch({ data, fetching, error, search }) {\n// const [shown, setShown] = useState()\n// useEffect(() => {\n//\n// }, [])\n// }\n\n\nclass AppSearch extends React.Component {\n constructor(props) {\n super(props)\n this.state = {shown: false}\n }\n\n componentDidMount() {\n document.addEventListener('click', this.onDocumentClick.bind(this))\n }\n\n componentWillUnmount() {\n document.removeEventListener('click', this.onDocumentClick)\n }\n\n onDocumentClick(event) {\n if (!this.refs.searchContainer.contains(event.target)) {\n this.setState({shown: false})\n }\n }\n\n onClickDismiss(event) {\n this.setState({shown: false})\n }\n\n onFocus(event) {\n this.setState({shown: true})\n }\n\n onBlur(event) {\n this.setState({shown: false})\n }\n\n render() {\n const {data, fetching, error} = this.props.searchData\n return (\n
    \n \n this.props.searchPlayersAndMaps(val)} />\n \n \n
    \n )\n }\n}\n\n\nfunction mapStateToProps(state) {\n const {search} = state.app\n return {searchData: search}\n}\n\n\nexport default withRouter(connect(\n mapStateToProps,\n {searchPlayersAndMaps}\n)(AppSearch))\n","import React from 'react'\n\nimport NavItem from 'react-bootstrap/lib/NavItem'\nimport NavDropdown from 'react-bootstrap/lib/NavDropdown'\nimport MenuItem from 'react-bootstrap/lib/MenuItem'\n\nimport {LinkContainer} from 'react-router-bootstrap'\n\nimport SteamAvatar from 'root/components/SteamAvatar'\nimport {PLAYERNAME, STEAMID, PLAYERID} from 'root/utils/loginData'\n\n\nexport default function Avatar() {\n const title = (\n \n \n \n {PLAYERNAME}\n \n \n )\n return (\n \n \n \n My profile\n \n \n \n \n Sign out\n \n \n )\n}\n","import React from 'react'\n\nimport Navbar from 'react-bootstrap/lib/Navbar'\nimport NavItem from 'react-bootstrap/lib/NavItem'\nimport NavDropdown from 'react-bootstrap/lib/NavDropdown'\nimport Nav from 'react-bootstrap/lib/Nav'\nimport MenuItem from 'react-bootstrap/lib/MenuItem'\nimport {LinkContainer} from 'react-router-bootstrap'\nimport {Link} from 'react-router-dom'\n\nimport AppSearch from '../AppSearch'\n\nimport {USERNAME} from 'root/utils/loginData'\n\nimport Avatar from './components/Avatar'\n\n\nconst AppNavbar = () =>\n \n \n \n \n Tempus Network\n \n \n \n \n\n \n \n\n \n\n \n \n \n \n \n\n\nexport default AppNavbar\n","import React from 'react'\n\nimport './styles.styl'\n\n\nconst Footer = ({ className, ...props }) =>\n \n \n \n\n\nexport default Footer\n","import React from 'react'\n\nimport ReactModal from 'react-modal'\n\nimport {withRouter, Route} from 'react-router-dom'\n\nimport Home from './scenes/Home'\nimport Maps from './scenes/Maps'\nimport MapOverview from './scenes/MapOverview'\nimport PlayerOverview from './scenes/PlayerOverview'\nimport PlayerLeaderboards from './scenes/PlayerLeaderboards'\nimport DemoOverview from './scenes/DemoOverview'\nimport RecordOverview from './scenes/RecordOverview'\nimport AuthorOverview from './scenes/AuthorOverview'\n\nimport Navbar from './components/Navbar'\nimport Footer from './components/Footer'\n\nimport './styles.styl'\n\n\nReactModal.setAppElement('#app')\n\n\nclass App extends React.Component {\n render() {\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\nexport default withRouter(App)\n","import '@babel/polyfill'\n\nimport React from 'react'\nimport ReactDOM from 'react-dom'\nimport configureStore from './store'\nimport { Provider } from 'react-redux'\nimport {createBrowserHistory} from 'history'\nimport { ConnectedRouter } from 'connected-react-router'\nimport { AppContainer } from 'react-hot-loader'\nimport App from './scenes/App'\nimport {FormProvider} from 'react-advanced-form'\n\nimport '../stylus/index.styl'\n\nconst history = createBrowserHistory()\nconst store = configureStore(history)\nfunction render(Component) {\n ReactDOM.render(\n \n \n \n \n \n \n \n \n ,\n document.getElementById('app')\n )\n}\n\nrender(App)\nif (module.hot) {\n module.hot.accept('./scenes/App/index.js', () => {\n const NextRootContainer = require('./scenes/App/index.js').default\n render(NextRootContainer)\n })\n}\n"],"sourceRoot":""}