/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) /******/ return installedModules[moduleId].exports; /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ exports: {}, /******/ id: moduleId, /******/ loaded: false /******/ }; /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ // Flag the module as loaded /******/ module.loaded = true; /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ // __webpack_public_path__ /******/ __webpack_require__.p = ""; /******/ // Load entry module and return exports /******/ return __webpack_require__(0); /******/ }) /************************************************************************/ /******/ ([ /* 0 */ /***/ function(module, exports, __webpack_require__) { eval("module.exports = __webpack_require__(274);\n\n\n/*****************\n ** WEBPACK FOOTER\n ** multi main\n ** module id = 0\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///multi_main?"); /***/ }, /* 1 */ /***/ function(module, exports, __webpack_require__) { eval("/* WEBPACK VAR INJECTION */(function(process) {'use strict';\n\nexports.__esModule = true;\nexports.replaceLocation = exports.pushLocation = exports.startListener = exports.getCurrentLocation = exports.go = exports.getUserConfirmation = undefined;\n\nvar _BrowserProtocol = __webpack_require__(271);\n\nObject.defineProperty(exports, 'getUserConfirmation', {\n enumerable: true,\n get: function get() {\n return _BrowserProtocol.getUserConfirmation;\n }\n});\nObject.defineProperty(exports, 'go', {\n enumerable: true,\n get: function get() {\n return _BrowserProtocol.go;\n }\n});\n\nvar _warning = __webpack_require__(266);\n\nvar _warning2 = _interopRequireDefault(_warning);\n\nvar _LocationUtils = __webpack_require__(267);\n\nvar _DOMUtils = __webpack_require__(272);\n\nvar _DOMStateStorage = __webpack_require__(509);\n\nvar _PathUtils = __webpack_require__(265);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar HashChangeEvent = 'hashchange';\n\nvar getHashPath = function getHashPath() {\n // We can't use window.location.hash here because it's not\n // consistent across browsers - Firefox will pre-decode it!\n var href = window.location.href;\n var hashIndex = href.indexOf('#');\n return hashIndex === -1 ? '' : href.substring(hashIndex + 1);\n};\n\nvar pushHashPath = function pushHashPath(path) {\n return window.location.hash = path;\n};\n\nvar replaceHashPath = function replaceHashPath(path) {\n var hashIndex = window.location.href.indexOf('#');\n\n window.location.replace(window.location.href.slice(0, hashIndex >= 0 ? hashIndex : 0) + '#' + path);\n};\n\nvar getCurrentLocation = exports.getCurrentLocation = function getCurrentLocation(pathCoder, queryKey) {\n var path = pathCoder.decodePath(getHashPath());\n var key = (0, _PathUtils.getQueryStringValueFromPath)(path, queryKey);\n\n var state = void 0;\n if (key) {\n path = (0, _PathUtils.stripQueryStringValueFromPath)(path, queryKey);\n state = (0, _DOMStateStorage.readState)(key);\n }\n\n var init = (0, _PathUtils.parsePath)(path);\n init.state = state;\n\n return (0, _LocationUtils.createLocation)(init, undefined, key);\n};\n\nvar prevLocation = void 0;\n\nvar startListener = exports.startListener = function startListener(listener, pathCoder, queryKey) {\n var handleHashChange = function handleHashChange() {\n var path = getHashPath();\n var encodedPath = pathCoder.encodePath(path);\n\n if (path !== encodedPath) {\n // Always be sure we have a properly-encoded hash.\n replaceHashPath(encodedPath);\n } else {\n var currentLocation = getCurrentLocation(pathCoder, queryKey);\n\n if (prevLocation && currentLocation.key && prevLocation.key === currentLocation.key) return; // Ignore extraneous hashchange events\n\n prevLocation = currentLocation;\n\n listener(currentLocation);\n }\n };\n\n // Ensure the hash is encoded properly.\n var path = getHashPath();\n var encodedPath = pathCoder.encodePath(path);\n\n if (path !== encodedPath) replaceHashPath(encodedPath);\n\n (0, _DOMUtils.addEventListener)(window, HashChangeEvent, handleHashChange);\n\n return function () {\n return (0, _DOMUtils.removeEventListener)(window, HashChangeEvent, handleHashChange);\n };\n};\n\nvar updateLocation = function updateLocation(location, pathCoder, queryKey, updateHash) {\n var state = location.state,\n key = location.key;\n\n\n var path = pathCoder.encodePath((0, _PathUtils.createPath)(location));\n\n if (state !== undefined) {\n path = (0, _PathUtils.addQueryStringValueToPath)(path, queryKey, key);\n (0, _DOMStateStorage.saveState)(key, state);\n }\n\n prevLocation = location;\n\n updateHash(path);\n};\n\nvar pushLocation = exports.pushLocation = function pushLocation(location, pathCoder, queryKey) {\n return updateLocation(location, pathCoder, queryKey, function (path) {\n if (getHashPath() !== path) {\n pushHashPath(path);\n } else {\n process.env.NODE_ENV !== 'production' ? (0, _warning2.default)(false, 'You cannot PUSH the same path using hash history') : void 0;\n }\n });\n};\n\nvar replaceLocation = exports.replaceLocation = function replaceLocation(location, pathCoder, queryKey) {\n return updateLocation(location, pathCoder, queryKey, function (path) {\n if (getHashPath() !== path) replaceHashPath(path);\n });\n};\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(176)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/history/lib/HashProtocol.js\n ** module id = 1\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/history/lib/HashProtocol.js?"); /***/ }, /* 2 */ /***/ function(module, exports, __webpack_require__) { eval("\"use strict\";\r\nvar APIClient = (function () {\r\n function APIClient() {\r\n this.headers = {};\r\n this.host = '';\r\n }\r\n APIClient.prototype.setHeaders = function (headers) {\r\n this.headers = headers;\r\n };\r\n Object.defineProperty(APIClient.prototype, \"token\", {\r\n get: function () {\r\n return localStorage.getItem('authToken');\r\n },\r\n set: function (token) {\r\n if (!token)\r\n localStorage.removeItem('authToken');\r\n else\r\n localStorage.setItem('authToken', token);\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n APIClient.prototype.Get = function (path, query) {\r\n return this.call('GET', path, query);\r\n };\r\n APIClient.prototype.Post = function (path, body, query) {\r\n return this.call('POST', path, query, body);\r\n };\r\n APIClient.prototype.Put = function (path, body, query) {\r\n return this.call('PUT', path, query, body);\r\n };\r\n APIClient.prototype.Delete = function (path, body, query) {\r\n return this.call('DELETE', path, query, body);\r\n };\r\n APIClient.prototype.call = function (method, path, query, body) {\r\n var _this = this;\r\n var defaultHeaders = {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n };\r\n if (this.headers) {\r\n for (var h in this.headers)\r\n defaultHeaders[h] = this.headers[h];\r\n }\r\n if (this.token)\r\n defaultHeaders.Authorization = \"Bearer \" + this.token;\r\n var queryStr = '';\r\n if (query) {\r\n queryStr += '?';\r\n var vars = [];\r\n for (var q in query)\r\n vars.push(q + \"=\" + query[q]);\r\n queryStr += vars.join('&');\r\n }\r\n return fetch(\"\" + this.host + path + queryStr, {\r\n method: method.toUpperCase(),\r\n headers: defaultHeaders,\r\n body: body ? JSON.stringify(body) : undefined\r\n }).then(function (response) {\r\n try {\r\n return response.json();\r\n }\r\n catch (err) {\r\n console.log(\"\" + _this.host + path + queryStr, err.toString());\r\n return Promise.reject(err);\r\n }\r\n }).catch(function (err) {\r\n console.log(\"\" + _this.host + path + queryStr, err.toString());\r\n return Promise.reject(err);\r\n });\r\n };\r\n return APIClient;\r\n}());\r\nexports.APIClient = APIClient;\r\nexports.apiClient = new APIClient();\r\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./client/src/libs/api.client.ts\n ** module id = 2\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./client/src/libs/api.client.ts?"); /***/ }, /* 3 */ /***/ function(module, exports, __webpack_require__) { eval("\"use strict\";\r\nvar home_component_1 = __webpack_require__(15);\r\nvar groups_component_1 = __webpack_require__(16);\r\nvar games_component_1 = __webpack_require__(17);\r\nvar routes = [\r\n {\r\n path: '/',\r\n component: home_component_1.HomeComponent,\r\n indexRoute: { component: groups_component_1.GroupsComponent },\r\n childRoutes: [\r\n {\r\n path: 'groups',\r\n component: groups_component_1.GroupsComponent\r\n },\r\n {\r\n path: 'groups/:group',\r\n component: groups_component_1.GroupsComponent\r\n },\r\n {\r\n path: 'games/:game',\r\n component: games_component_1.GamesComponent\r\n }\r\n ]\r\n },\r\n {\r\n path: '/login',\r\n component: home_component_1.HomeComponent,\r\n indexRoute: { component: groups_component_1.GroupsComponent },\r\n childRoutes: [\r\n {\r\n path: 'groups',\r\n component: groups_component_1.GroupsComponent\r\n },\r\n {\r\n path: 'groups/:group',\r\n component: groups_component_1.GroupsComponent\r\n },\r\n {\r\n path: 'games/:game',\r\n component: games_component_1.GamesComponent\r\n }\r\n ]\r\n },\r\n {\r\n path: '/champions',\r\n component: home_component_1.HomeComponent,\r\n indexRoute: { component: groups_component_1.GroupsComponent },\r\n childRoutes: [\r\n {\r\n path: 'groups',\r\n component: groups_component_1.GroupsComponent\r\n },\r\n {\r\n path: 'groups/:group',\r\n component: groups_component_1.GroupsComponent\r\n },\r\n {\r\n path: 'games/:game',\r\n component: games_component_1.GamesComponent\r\n }\r\n ]\r\n }];\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.default = routes;\r\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./client/src/routes/index.ts\n ** module id = 3\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./client/src/routes/index.ts?"); /***/ }, /* 4 */ /***/ function(module, exports, __webpack_require__) { eval("'use strict';\n\nmodule.exports = __webpack_require__(18);\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/react-dom/index.js\n ** module id = 4\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/react-dom/index.js?"); /***/ }, /* 5 */ /***/ function(module, exports, __webpack_require__) { eval("'use strict';\n\nmodule.exports = __webpack_require__(19);\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/react/react.js\n ** module id = 5\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/react/react.js?"); /***/ }, /* 6 */ /***/ function(module, exports, __webpack_require__) { eval("'use strict';\n\nexports.__esModule = true;\nexports.createMemoryHistory = exports.hashHistory = exports.browserHistory = exports.applyRouterMiddleware = exports.formatPattern = exports.useRouterHistory = exports.match = exports.routerShape = exports.locationShape = exports.RouterContext = exports.createRoutes = exports.Route = exports.Redirect = exports.IndexRoute = exports.IndexRedirect = exports.withRouter = exports.IndexLink = exports.Link = exports.Router = undefined;\n\nvar _RouteUtils = __webpack_require__(21);\n\nObject.defineProperty(exports, 'createRoutes', {\n enumerable: true,\n get: function get() {\n return _RouteUtils.createRoutes;\n }\n});\n\nvar _PropTypes = __webpack_require__(22);\n\nObject.defineProperty(exports, 'locationShape', {\n enumerable: true,\n get: function get() {\n return _PropTypes.locationShape;\n }\n});\nObject.defineProperty(exports, 'routerShape', {\n enumerable: true,\n get: function get() {\n return _PropTypes.routerShape;\n }\n});\n\nvar _PatternUtils = __webpack_require__(23);\n\nObject.defineProperty(exports, 'formatPattern', {\n enumerable: true,\n get: function get() {\n return _PatternUtils.formatPattern;\n }\n});\n\nvar _Router2 = __webpack_require__(24);\n\nvar _Router3 = _interopRequireDefault(_Router2);\n\nvar _Link2 = __webpack_require__(25);\n\nvar _Link3 = _interopRequireDefault(_Link2);\n\nvar _IndexLink2 = __webpack_require__(26);\n\nvar _IndexLink3 = _interopRequireDefault(_IndexLink2);\n\nvar _withRouter2 = __webpack_require__(27);\n\nvar _withRouter3 = _interopRequireDefault(_withRouter2);\n\nvar _IndexRedirect2 = __webpack_require__(28);\n\nvar _IndexRedirect3 = _interopRequireDefault(_IndexRedirect2);\n\nvar _IndexRoute2 = __webpack_require__(29);\n\nvar _IndexRoute3 = _interopRequireDefault(_IndexRoute2);\n\nvar _Redirect2 = __webpack_require__(20);\n\nvar _Redirect3 = _interopRequireDefault(_Redirect2);\n\nvar _Route2 = __webpack_require__(30);\n\nvar _Route3 = _interopRequireDefault(_Route2);\n\nvar _RouterContext2 = __webpack_require__(31);\n\nvar _RouterContext3 = _interopRequireDefault(_RouterContext2);\n\nvar _match2 = __webpack_require__(32);\n\nvar _match3 = _interopRequireDefault(_match2);\n\nvar _useRouterHistory2 = __webpack_require__(33);\n\nvar _useRouterHistory3 = _interopRequireDefault(_useRouterHistory2);\n\nvar _applyRouterMiddleware2 = __webpack_require__(34);\n\nvar _applyRouterMiddleware3 = _interopRequireDefault(_applyRouterMiddleware2);\n\nvar _browserHistory2 = __webpack_require__(35);\n\nvar _browserHistory3 = _interopRequireDefault(_browserHistory2);\n\nvar _hashHistory2 = __webpack_require__(36);\n\nvar _hashHistory3 = _interopRequireDefault(_hashHistory2);\n\nvar _createMemoryHistory2 = __webpack_require__(37);\n\nvar _createMemoryHistory3 = _interopRequireDefault(_createMemoryHistory2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.Router = _Router3.default; /* components */\n\nexports.Link = _Link3.default;\nexports.IndexLink = _IndexLink3.default;\nexports.withRouter = _withRouter3.default;\n\n/* components (configuration) */\n\nexports.IndexRedirect = _IndexRedirect3.default;\nexports.IndexRoute = _IndexRoute3.default;\nexports.Redirect = _Redirect3.default;\nexports.Route = _Route3.default;\n\n/* utils */\n\nexports.RouterContext = _RouterContext3.default;\nexports.match = _match3.default;\nexports.useRouterHistory = _useRouterHistory3.default;\nexports.applyRouterMiddleware = _applyRouterMiddleware3.default;\n\n/* histories */\n\nexports.browserHistory = _browserHistory3.default;\nexports.hashHistory = _hashHistory3.default;\nexports.createMemoryHistory = _createMemoryHistory3.default;\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/react-router/lib/index.js\n ** module id = 6\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/react-router/lib/index.js?"); /***/ }, /* 7 */ /***/ function(module, exports, __webpack_require__) { eval("var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [\n\t__webpack_require__(39),\n\t__webpack_require__(55),\n\t__webpack_require__(40),\n\t__webpack_require__(41),\n\t__webpack_require__(42),\n\t__webpack_require__(43),\n\t__webpack_require__(44),\n\t__webpack_require__(45),\n\t__webpack_require__(46),\n\t__webpack_require__(47),\n\t__webpack_require__(48),\n\t__webpack_require__(49),\n\t__webpack_require__(50),\n\t__webpack_require__(51),\n\t__webpack_require__(52),\n\t__webpack_require__(53),\n\t__webpack_require__(54),\n\t__webpack_require__(38),\n\t__webpack_require__(56),\n\t__webpack_require__(57),\n\t__webpack_require__(58),\n\t__webpack_require__(59),\n\t__webpack_require__(60),\n\t__webpack_require__(61),\n\t__webpack_require__(62),\n\t__webpack_require__(63),\n\t__webpack_require__(64),\n\t__webpack_require__(65),\n\t__webpack_require__(66),\n\t__webpack_require__(67),\n\t__webpack_require__(68),\n\t__webpack_require__(69),\n\t__webpack_require__(70)\n], __WEBPACK_AMD_DEFINE_RESULT__ = function( jQuery ) {\n\n\"use strict\";\n\nreturn jQuery;\n\n}.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/jquery/src/jquery.js\n ** module id = 7\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/jquery/src/jquery.js?"); /***/ }, /* 8 */ /***/ function(module, exports, __webpack_require__) { eval("// style-loader: Adds some css to the DOM by adding a