webpackJsonp([1,5],Array(18).concat([ /* 18 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_http__ = __webpack_require__(13); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AppConfig; }); var AppConfig = (function () { function AppConfig() { this.apiUrl = ''; this.apiAwardPath = '/awardings/'; this.apiDecorationPath = '/decorations/'; this.apiAuthenticationPath = '/authenticate'; this.apiRankPath = '/ranks/'; this.apiSquadPath = '/squads/'; this.apiUserPath = '/users/'; } AppConfig.prototype.getAuthenticationHeader = function () { var currentUser = JSON.parse(localStorage.getItem('currentUser')); var headers = new __WEBPACK_IMPORTED_MODULE_0__angular_http__["b" /* Headers */](); headers.append('x-access-token', currentUser.token); return headers; }; return AppConfig; }()); //# sourceMappingURL=app.config.js.map /***/ }), /* 19 */, /* 20 */, /* 21 */, /* 22 */, /* 23 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_http__ = __webpack_require__(13); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_router__ = __webpack_require__(4); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__login_service_login_service__ = __webpack_require__(39); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return HttpClient; }); var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var HttpClient = (function () { function HttpClient(router, loginService, http) { this.router = router; this.loginService = loginService; this.http = http; } HttpClient.prototype.createAuthorizationHeader = function () { var currentUser = JSON.parse(localStorage.getItem('currentUser')); if (new Date().getTime() <= Date.parse(currentUser.tokenExpireDate)) { var headers = new __WEBPACK_IMPORTED_MODULE_1__angular_http__["b" /* Headers */](); headers.append('x-access-token', currentUser.token); return headers; } else { this.loginService.logout(); this.router.navigate(['/login']); } }; HttpClient.prototype.get = function (url, searchParams) { var headers = this.createAuthorizationHeader(); var options = { headers: headers }; if (searchParams) { options.search = searchParams; } return this.http.get(url, options); }; HttpClient.prototype.post = function (url, data) { var headers = this.createAuthorizationHeader(); return this.http.post(url, data, { headers: headers }); }; HttpClient.prototype.patch = function (url, data) { var headers = this.createAuthorizationHeader(); return this.http.patch(url, data, { headers: headers }); }; HttpClient.prototype.delete = function (url) { var headers = this.createAuthorizationHeader(); return this.http.delete(url, { headers: headers }); }; HttpClient.prototype.request = function (requestUrl, options) { if (options.method === __WEBPACK_IMPORTED_MODULE_1__angular_http__["e" /* RequestMethod */].Post) { return this.post(requestUrl, options.body); } if (options.method === __WEBPACK_IMPORTED_MODULE_1__angular_http__["e" /* RequestMethod */].Patch) { return this.patch(requestUrl, options.body); } }; return HttpClient; }()); HttpClient = __decorate([ __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["l" /* Injectable */])(), __metadata("design:paramtypes", [typeof (_a = typeof __WEBPACK_IMPORTED_MODULE_2__angular_router__["a" /* Router */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_2__angular_router__["a" /* Router */]) === "function" && _a || Object, typeof (_b = typeof __WEBPACK_IMPORTED_MODULE_3__login_service_login_service__["a" /* LoginService */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_3__login_service_login_service__["a" /* LoginService */]) === "function" && _b || Object, typeof (_c = typeof __WEBPACK_IMPORTED_MODULE_1__angular_http__["f" /* Http */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_1__angular_http__["f" /* Http */]) === "function" && _c || Object]) ], HttpClient); var _a, _b, _c; //# sourceMappingURL=http-client.js.map /***/ }), /* 24 */, /* 25 */, /* 26 */, /* 27 */, /* 28 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_http__ = __webpack_require__(13); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__stores_decoration_store__ = __webpack_require__(53); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__app_config__ = __webpack_require__(18); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__http_client__ = __webpack_require__(23); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return DecorationService; }); var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var DecorationService = (function () { function DecorationService(http, decorationStore, config) { this.http = http; this.decorationStore = decorationStore; this.config = config; this.decorations$ = decorationStore.items$; } DecorationService.prototype.findDecorations = function (query, fractionFilter) { var _this = this; if (query === void 0) { query = ''; } var searchParams = new __WEBPACK_IMPORTED_MODULE_1__angular_http__["c" /* URLSearchParams */](); searchParams.append('q', query); if (fractionFilter) { searchParams.append('fractFilter', fractionFilter); } this.http.get(this.config.apiUrl + this.config.apiDecorationPath, searchParams) .map(function (res) { return res.json(); }) .do(function (squads) { _this.decorationStore.dispatch({ type: __WEBPACK_IMPORTED_MODULE_2__stores_decoration_store__["b" /* LOAD */], data: squads }); }).subscribe(function (_) { }); return this.decorations$; }; DecorationService.prototype.getDecoration = function (id) { return this.http.get(this.config.apiUrl + this.config.apiDecorationPath + id) .map(function (res) { return res.json(); }); }; /** * For creating new data with POST or * update existing with patch PATCH */ DecorationService.prototype.submitDecoration = function (decoration, imageFile) { var _this = this; var requestUrl = this.config.apiUrl + this.config.apiDecorationPath; var requestMethod; var accessType; var body; if (decoration._id) { requestUrl += decoration._id; requestMethod = __WEBPACK_IMPORTED_MODULE_1__angular_http__["e" /* RequestMethod */].Patch; accessType = __WEBPACK_IMPORTED_MODULE_2__stores_decoration_store__["c" /* EDIT */]; } else { requestMethod = __WEBPACK_IMPORTED_MODULE_1__angular_http__["e" /* RequestMethod */].Post; accessType = __WEBPACK_IMPORTED_MODULE_2__stores_decoration_store__["d" /* ADD */]; } if (imageFile) { body = new FormData(); Object.keys(decoration).map(function (objectKey) { if (decoration[objectKey]) { body.append(objectKey, decoration[objectKey]); } }); body.append('image', imageFile, imageFile.name); } else { body = decoration; } var options = new __WEBPACK_IMPORTED_MODULE_1__angular_http__["d" /* RequestOptions */]({ body: body, method: requestMethod, }); return this.http.request(requestUrl, options) .map(function (res) { return res.json(); }) .do(function (savedDecoration) { var action = { type: accessType, data: savedDecoration }; _this.decorationStore.dispatch(action); }); }; DecorationService.prototype.deleteDecoration = function (decoration) { var _this = this; return this.http.delete(this.config.apiUrl + this.config.apiDecorationPath + decoration._id) .do(function (res) { _this.decorationStore.dispatch({ type: __WEBPACK_IMPORTED_MODULE_2__stores_decoration_store__["e" /* REMOVE */], data: decoration }); }); }; return DecorationService; }()); DecorationService = __decorate([ __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["l" /* Injectable */])(), __metadata("design:paramtypes", [typeof (_a = typeof __WEBPACK_IMPORTED_MODULE_4__http_client__["a" /* HttpClient */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_4__http_client__["a" /* HttpClient */]) === "function" && _a || Object, typeof (_b = typeof __WEBPACK_IMPORTED_MODULE_2__stores_decoration_store__["a" /* DecorationStore */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_2__stores_decoration_store__["a" /* DecorationStore */]) === "function" && _b || Object, typeof (_c = typeof __WEBPACK_IMPORTED_MODULE_3__app_config__["a" /* AppConfig */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_3__app_config__["a" /* AppConfig */]) === "function" && _c || Object]) ], DecorationService); var _a, _b, _c; //# sourceMappingURL=decoration.service.js.map /***/ }), /* 29 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_http__ = __webpack_require__(13); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__stores_squad_store__ = __webpack_require__(88); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__app_config__ = __webpack_require__(18); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__http_client__ = __webpack_require__(23); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return SquadService; }); var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var SquadService = (function () { function SquadService(http, squadStore, config) { this.http = http; this.squadStore = squadStore; this.config = config; this.squads$ = squadStore.items$; } SquadService.prototype.findSquads = function (query, fractionFilter) { var _this = this; if (query === void 0) { query = ''; } if (fractionFilter === void 0) { fractionFilter = ''; } var searchParams = new __WEBPACK_IMPORTED_MODULE_1__angular_http__["c" /* URLSearchParams */](); searchParams.append('q', query); searchParams.append('fractFilter', fractionFilter); this.http.get(this.config.apiUrl + this.config.apiSquadPath, searchParams) .map(function (res) { return res.json(); }) .do(function (squads) { _this.squadStore.dispatch({ type: __WEBPACK_IMPORTED_MODULE_2__stores_squad_store__["b" /* LOAD */], data: squads }); }).subscribe(function (_) { }); return this.squads$; }; SquadService.prototype.getSquad = function (id) { return this.http.get(this.config.apiUrl + this.config.apiSquadPath + id) .map(function (res) { return res.json(); }); }; /** * For creating new data with POST or * update existing with patch PATCH */ SquadService.prototype.submitSquad = function (squad, imageFile) { var _this = this; var requestUrl = this.config.apiUrl + this.config.apiSquadPath; var requestMethod; var accessType; var body; if (squad._id) { requestUrl += squad._id; requestMethod = __WEBPACK_IMPORTED_MODULE_1__angular_http__["e" /* RequestMethod */].Patch; accessType = __WEBPACK_IMPORTED_MODULE_2__stores_squad_store__["c" /* EDIT */]; } else { requestMethod = __WEBPACK_IMPORTED_MODULE_1__angular_http__["e" /* RequestMethod */].Post; accessType = __WEBPACK_IMPORTED_MODULE_2__stores_squad_store__["d" /* ADD */]; } if (imageFile) { body = new FormData(); Object.keys(squad).map(function (objectKey) { if (squad[objectKey]) { body.append(objectKey, squad[objectKey]); } }); body.append('image', imageFile, imageFile.name); } else { body = squad; } var options = new __WEBPACK_IMPORTED_MODULE_1__angular_http__["d" /* RequestOptions */]({ body: body, method: requestMethod }); return this.http.request(requestUrl, options) .map(function (res) { return res.json(); }) .do(function (savedSquad) { var action = { type: accessType, data: savedSquad }; _this.squadStore.dispatch(action); }); }; SquadService.prototype.deleteSquad = function (squad) { var _this = this; return this.http.delete(this.config.apiUrl + this.config.apiSquadPath + squad._id) .do(function (res) { _this.squadStore.dispatch({ type: __WEBPACK_IMPORTED_MODULE_2__stores_squad_store__["e" /* REMOVE */], data: squad }); }); }; return SquadService; }()); SquadService = __decorate([ __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["l" /* Injectable */])(), __metadata("design:paramtypes", [typeof (_a = typeof __WEBPACK_IMPORTED_MODULE_4__http_client__["a" /* HttpClient */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_4__http_client__["a" /* HttpClient */]) === "function" && _a || Object, typeof (_b = typeof __WEBPACK_IMPORTED_MODULE_2__stores_squad_store__["a" /* SquadStore */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_2__stores_squad_store__["a" /* SquadStore */]) === "function" && _b || Object, typeof (_c = typeof __WEBPACK_IMPORTED_MODULE_3__app_config__["a" /* AppConfig */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_3__app_config__["a" /* AppConfig */]) === "function" && _c || Object]) ], SquadService); var _a, _b, _c; //# sourceMappingURL=squad.service.js.map /***/ }), /* 30 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_http__ = __webpack_require__(13); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__stores_user_store__ = __webpack_require__(89); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__app_config__ = __webpack_require__(18); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__http_client__ = __webpack_require__(23); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return UserService; }); var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var UserService = (function () { function UserService(http, userStore, config) { this.http = http; this.userStore = userStore; this.config = config; this.users$ = userStore.items$; } UserService.prototype.findUsers = function (query, fractionFilter) { var _this = this; if (query === void 0) { query = ''; } var searchParams = new __WEBPACK_IMPORTED_MODULE_1__angular_http__["c" /* URLSearchParams */](); searchParams.append('q', query); if (fractionFilter) { searchParams.append('fractFilter', fractionFilter); } this.http.get(this.config.apiUrl + this.config.apiUserPath, searchParams) .map(function (res) { return res.json(); }) .do(function (users) { _this.userStore.dispatch({ type: __WEBPACK_IMPORTED_MODULE_2__stores_user_store__["b" /* LOAD */], data: users }); }).subscribe(function (_) { }); return this.users$; }; UserService.prototype.getUser = function (_id) { return this.http.get(this.config.apiUrl + this.config.apiUserPath + _id) .map(function (res) { return res.json(); }); }; UserService.prototype.submitUser = function (user) { var _this = this; return this.http.post(this.config.apiUrl + this.config.apiUserPath, user) .map(function (res) { return res.json(); }) .do(function (savedUser) { var action = { type: __WEBPACK_IMPORTED_MODULE_2__stores_user_store__["c" /* ADD */], data: savedUser }; _this.userStore.dispatch(action); }); }; UserService.prototype.updateUser = function (user) { var _this = this; return this.http.patch(this.config.apiUrl + this.config.apiUserPath + user._id, user) .map(function (res) { return res.json(); }) .do(function (savedUser) { var action = { type: __WEBPACK_IMPORTED_MODULE_2__stores_user_store__["d" /* EDIT */], data: savedUser }; _this.userStore.dispatch(action); }); }; UserService.prototype.deleteUser = function (user) { var _this = this; return this.http.delete(this.config.apiUrl + this.config.apiUserPath + user._id) .do(function (res) { _this.userStore.dispatch({ type: __WEBPACK_IMPORTED_MODULE_2__stores_user_store__["e" /* REMOVE */], data: user }); }); }; return UserService; }()); UserService = __decorate([ __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["l" /* Injectable */])(), __metadata("design:paramtypes", [typeof (_a = typeof __WEBPACK_IMPORTED_MODULE_4__http_client__["a" /* HttpClient */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_4__http_client__["a" /* HttpClient */]) === "function" && _a || Object, typeof (_b = typeof __WEBPACK_IMPORTED_MODULE_2__stores_user_store__["a" /* UserStore */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_2__stores_user_store__["a" /* UserStore */]) === "function" && _b || Object, typeof (_c = typeof __WEBPACK_IMPORTED_MODULE_3__app_config__["a" /* AppConfig */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_3__app_config__["a" /* AppConfig */]) === "function" && _c || Object]) ], UserService); var _a, _b, _c; //# sourceMappingURL=user.service.js.map /***/ }), /* 31 */, /* 32 */, /* 33 */, /* 34 */, /* 35 */, /* 36 */, /* 37 */, /* 38 */, /* 39 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_http__ = __webpack_require__(13); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_rxjs_add_operator_map__ = __webpack_require__(104); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_rxjs_add_operator_map___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_rxjs_add_operator_map__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__app_config__ = __webpack_require__(18); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__app_tokens__ = __webpack_require__(50); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return LoginService; }); var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var __param = (this && this.__param) || function (paramIndex, decorator) { return function (target, key) { decorator(target, key, paramIndex); } }; var LoginService = (function () { function LoginService(authEnabled, http, config) { if (authEnabled === void 0) { authEnabled = false; } this.authEnabled = authEnabled; this.http = http; this.config = config; } LoginService.prototype.login = function (username, password) { return this.http.post(this.config.apiUrl + this.config.apiAuthenticationPath, { username: username, password: password }) .map(function (response) { // login successful if there's a jwt token in the response var user = response.json(); if (user && user.token) { // store user details and jwt token in local storage to keep user logged in between page refreshes localStorage.setItem('currentUser', JSON.stringify(user)); } }); }; LoginService.prototype.logout = function () { // remove user from local storage localStorage.removeItem('currentUser'); }; LoginService.prototype.isLoggedIn = function () { return !this.authEnabled || localStorage.getItem('currentUser') != null; }; return LoginService; }()); LoginService = __decorate([ __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["l" /* Injectable */])(), __param(0, __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["j" /* Optional */])()), __param(0, __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["k" /* Inject */])(__WEBPACK_IMPORTED_MODULE_4__app_tokens__["a" /* AUTH_ENABLED */])), __metadata("design:paramtypes", [Object, typeof (_a = typeof __WEBPACK_IMPORTED_MODULE_1__angular_http__["f" /* Http */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_1__angular_http__["f" /* Http */]) === "function" && _a || Object, typeof (_b = typeof __WEBPACK_IMPORTED_MODULE_3__app_config__["a" /* AppConfig */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_3__app_config__["a" /* AppConfig */]) === "function" && _b || Object]) ], LoginService); var _a, _b; //# sourceMappingURL=login-service.js.map /***/ }), /* 40 */, /* 41 */, /* 42 */, /* 43 */, /* 44 */, /* 45 */ /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__(3)(false); // imports // module exports.push([module.i, "h3 {\n margin-left: 4%;\n margin-top: 60px;\n}\n\n.overview {\n position:fixed;\n overflow-y:scroll;\n overflow-x:hidden;\n bottom: 10px;\n width: 100%;\n border-left: thin solid lightgrey;\n padding-left: 10px;\n padding-top: 20px;\n margin-left: 10px;\n height: 100vh;\n}\n\n.fraction-blufor {\n font-size: large;\n color: mediumblue;\n font-weight: bold;\n}\n\n.fraction-opfor {\n font-size: large;\n color: red;\n font-weight: bold;\n}\n\n.div-table {\n display: table;\n border-radius: 10px;\n margin-left: 8%;\n width: auto;\n background-color: rgba(240, 248, 255, 0.29);\n border-spacing: 5px; /* cellspacing:poor IE support for this */\n}\n\n.div-table-row {\n display: table-row;\n width: auto;\n clear: both;\n}\n\n.div-table-col {\n float: left; /* fix for buggy browsers */\n display: table-column;\n padding: 5px 15px 5px 15px;\n}\n\n.div-table-head {\n font-weight: bold;\n}\n\n.content {\n font-size: large;\n}\n\n.content-xs {\n width: 100px;\n}\n\n.content-s {\n width: 150px;\n}\n\n.content-m {\n width: 200px;\n}\n\n.content-m-flex {\n min-width: 200px;\n max-width: 600px;\n}\n\n.content-l {\n width: 300px;\n}\n\n.content-xl {\n width: 350px;\n}\n\n.content-xxl {\n width: 500px;\n}\n", ""]); // exports /*** EXPORTS FROM exports-loader ***/ module.exports = module.exports.toString(); /***/ }), /* 46 */, /* 47 */, /* 48 */, /* 49 */, /* 50 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AUTH_ENABLED; }); /* unused harmony export SOCKET_IO */ var AUTH_ENABLED = new __WEBPACK_IMPORTED_MODULE_0__angular_core__["_16" /* OpaqueToken */]('AUTH_ENABLED'); var SOCKET_IO = new __WEBPACK_IMPORTED_MODULE_0__angular_core__["_16" /* OpaqueToken */]('socket-io'); //# sourceMappingURL=app.tokens.js.map /***/ }), /* 51 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_router__ = __webpack_require__(4); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return LoginGuard; }); var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var LoginGuard = (function () { function LoginGuard(router) { this.router = router; } LoginGuard.prototype.canActivate = function (route, state) { if (localStorage.getItem('currentUser')) { // logged in so return true return true; } // not logged in so redirect to login page with the return url this.router.navigate(['/login'], { queryParams: { returnUrl: state.url } }); return false; }; return LoginGuard; }()); LoginGuard = __decorate([ __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["l" /* Injectable */])(), __metadata("design:paramtypes", [typeof (_a = typeof __WEBPACK_IMPORTED_MODULE_1__angular_router__["a" /* Router */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_1__angular_router__["a" /* Router */]) === "function" && _a || Object]) ], LoginGuard); var _a; //# sourceMappingURL=login.guard.js.map /***/ }), /* 52 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_http__ = __webpack_require__(13); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__stores_decoration_store__ = __webpack_require__(53); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__stores_rank_store__ = __webpack_require__(87); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__app_config__ = __webpack_require__(18); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__http_client__ = __webpack_require__(23); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return RankService; }); var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var RankService = (function () { function RankService(http, rankStore, config) { this.http = http; this.rankStore = rankStore; this.config = config; this.ranks$ = rankStore.items$; } RankService.prototype.findRanks = function (query, fractionFilter) { var _this = this; if (query === void 0) { query = ''; } var searchParams = new __WEBPACK_IMPORTED_MODULE_1__angular_http__["c" /* URLSearchParams */](); searchParams.append('q', query); if (fractionFilter) { searchParams.append('fractFilter', fractionFilter); } this.http.get(this.config.apiUrl + this.config.apiRankPath, searchParams) .map(function (res) { return res.json(); }) .do(function (squads) { _this.rankStore.dispatch({ type: __WEBPACK_IMPORTED_MODULE_2__stores_decoration_store__["b" /* LOAD */], data: squads }); }).subscribe(function (_) { }); return this.ranks$; }; RankService.prototype.getRank = function (id) { return this.http.get(this.config.apiUrl + this.config.apiRankPath + id) .map(function (res) { return res.json(); }); }; /** * send PATCH request to update db entry * * @param rank - Rank object with data to update, must contain _id * @returns {Observable} */ RankService.prototype.updateRank = function (rank) { var _this = this; var options = new __WEBPACK_IMPORTED_MODULE_1__angular_http__["d" /* RequestOptions */]({ body: rank, method: __WEBPACK_IMPORTED_MODULE_1__angular_http__["e" /* RequestMethod */].Patch }); return this.http.request(this.config.apiUrl + this.config.apiRankPath + rank._id, options) .map(function (res) { return res.json(); }) .do(function (savedRank) { var action = { type: __WEBPACK_IMPORTED_MODULE_3__stores_rank_store__["b" /* EDIT */], data: savedRank }; _this.rankStore.dispatch(action); }); }; /** * sends PATCH with multiform data to * update rank graphic with newly provided file * * @param rankID - id of rank to be updated * @param imageFile - new image file to upload */ RankService.prototype.updateRankGraphic = function (rankId, imageFile) { var _this = this; var formData = new FormData(); formData.append('_id', rankId); formData.append('image', imageFile, imageFile.name); // provide token as query value, because there is no actual body // and x-access-token is ignored in multipart request return this.http.patch(this.config.apiUrl + this.config.apiRankPath + rankId, formData) .map(function (res) { return res.json(); }) .do(function (savedDecoration) { var action = { type: __WEBPACK_IMPORTED_MODULE_3__stores_rank_store__["b" /* EDIT */], data: savedDecoration }; _this.rankStore.dispatch(action); }); }; return RankService; }()); RankService = __decorate([ __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["l" /* Injectable */])(), __metadata("design:paramtypes", [typeof (_a = typeof __WEBPACK_IMPORTED_MODULE_5__http_client__["a" /* HttpClient */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_5__http_client__["a" /* HttpClient */]) === "function" && _a || Object, typeof (_b = typeof __WEBPACK_IMPORTED_MODULE_3__stores_rank_store__["a" /* RankStore */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_3__stores_rank_store__["a" /* RankStore */]) === "function" && _b || Object, typeof (_c = typeof __WEBPACK_IMPORTED_MODULE_4__app_config__["a" /* AppConfig */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_4__app_config__["a" /* AppConfig */]) === "function" && _c || Object]) ], RankService); var _a, _b, _c; //# sourceMappingURL=rank.service.js.map /***/ }), /* 53 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_rxjs_BehaviorSubject__ = __webpack_require__(36); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_rxjs_BehaviorSubject___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_rxjs_BehaviorSubject__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return LOAD; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return ADD; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return EDIT; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return REMOVE; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return DecorationStore; }); var LOAD = 'LOAD'; var ADD = 'ADD'; var EDIT = 'EDIT'; var REMOVE = 'REMOVE'; var DecorationStore = (function () { function DecorationStore() { this.decorations = []; this.items$ = new __WEBPACK_IMPORTED_MODULE_0_rxjs_BehaviorSubject__["BehaviorSubject"]([]); } DecorationStore.prototype.dispatch = function (action) { this.decorations = this._reduce(this.decorations, action); this.items$.next(this.decorations); }; DecorationStore.prototype._reduce = function (decorations, action) { switch (action.type) { case LOAD: return action.data.slice(); case ADD: return decorations.concat([action.data]); case EDIT: return decorations.map(function (decoration) { var editedDecoration = action.data; if (decoration._id !== editedDecoration._id) { return decoration; } return editedDecoration; }); case REMOVE: return decorations.filter(function (decoration) { return decoration._id !== action.data._id; }); default: return decorations; } }; return DecorationStore; }()); //# sourceMappingURL=decoration.store.js.map /***/ }), /* 54 */, /* 55 */, /* 56 */, /* 57 */, /* 58 */, /* 59 */, /* 60 */, /* 61 */, /* 62 */, /* 63 */, /* 64 */, /* 65 */, /* 66 */, /* 67 */, /* 68 */, /* 69 */, /* 70 */, /* 71 */, /* 72 */ /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__(3)(false); // imports // module exports.push([module.i, "h3 {\n margin-left: -20px;\n}\n\nlabel {\n display: block;\n}\n\n.ng-touched.ng-invalid {\n border-color: red;\n}\n\n.overview {\n position: fixed;\n width: 25%;\n border-left: thin solid lightgrey;\n padding-left: 50px;\n padding-top: 20px;\n margin-left: 10px;\n height: 100vh;\n}\n", ""]); // exports /*** EXPORTS FROM exports-loader ***/ module.exports = module.exports.toString(); /***/ }), /* 73 */, /* 74 */, /* 75 */, /* 76 */, /* 77 */, /* 78 */, /* 79 */, /* 80 */, /* 81 */, /* 82 */, /* 83 */, /* 84 */, /* 85 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return DecorationComponent; }); var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var DecorationComponent = (function () { function DecorationComponent() { } return DecorationComponent; }()); DecorationComponent = __decorate([ __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["_3" /* Component */])({ selector: 'decorations', template: __webpack_require__(247), styles: [__webpack_require__(221)] }), __metadata("design:paramtypes", []) ], DecorationComponent); //# sourceMappingURL=decoration.component.js.map /***/ }), /* 86 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__app_config__ = __webpack_require__(18); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__http_client__ = __webpack_require__(23); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AwardingService; }); var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var AwardingService = (function () { function AwardingService(http, config) { this.http = http; this.config = config; } /** * get awards array with populated decorations */ AwardingService.prototype.getUserAwardings = function (userId) { return this.http.get(this.config.apiUrl + this.config.apiAwardPath + '?userId=' + userId); }; AwardingService.prototype.addAwarding = function (award) { return this.http.post(this.config.apiUrl + this.config.apiAwardPath, award); }; AwardingService.prototype.deleteAwarding = function (awardingId) { return this.http.delete(this.config.apiUrl + this.config.apiAwardPath + awardingId); }; return AwardingService; }()); AwardingService = __decorate([ __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["l" /* Injectable */])(), __metadata("design:paramtypes", [typeof (_a = typeof __WEBPACK_IMPORTED_MODULE_2__http_client__["a" /* HttpClient */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_2__http_client__["a" /* HttpClient */]) === "function" && _a || Object, typeof (_b = typeof __WEBPACK_IMPORTED_MODULE_1__app_config__["a" /* AppConfig */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_1__app_config__["a" /* AppConfig */]) === "function" && _b || Object]) ], AwardingService); var _a, _b; //# sourceMappingURL=awarding.service.js.map /***/ }), /* 87 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_rxjs_BehaviorSubject__ = __webpack_require__(36); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_rxjs_BehaviorSubject___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_rxjs_BehaviorSubject__); /* unused harmony export LOAD */ /* unused harmony export ADD */ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return EDIT; }); /* unused harmony export REMOVE */ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return RankStore; }); var LOAD = 'LOAD'; var ADD = 'ADD'; var EDIT = 'EDIT'; var REMOVE = 'REMOVE'; var RankStore = (function () { function RankStore() { this.ranks = []; this.items$ = new __WEBPACK_IMPORTED_MODULE_0_rxjs_BehaviorSubject__["BehaviorSubject"]([]); } RankStore.prototype.dispatch = function (action) { this.ranks = this._reduce(this.ranks, action); this.items$.next(this.ranks); }; RankStore.prototype._reduce = function (ranks, action) { switch (action.type) { case LOAD: return action.data.slice(); case ADD: return ranks.concat([action.data]); case EDIT: return ranks.map(function (decoration) { var editedRank = action.data; if (decoration._id !== editedRank._id) { return decoration; } return editedRank; }); case REMOVE: return ranks.filter(function (decoration) { return decoration._id !== action.data._id; }); default: return ranks; } }; return RankStore; }()); //# sourceMappingURL=rank.store.js.map /***/ }), /* 88 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_rxjs_BehaviorSubject__ = __webpack_require__(36); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_rxjs_BehaviorSubject___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_rxjs_BehaviorSubject__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return LOAD; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return ADD; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return EDIT; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return REMOVE; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return SquadStore; }); var LOAD = 'LOAD'; var ADD = 'ADD'; var EDIT = 'EDIT'; var REMOVE = 'REMOVE'; var SquadStore = (function () { function SquadStore() { this.squads = []; this.items$ = new __WEBPACK_IMPORTED_MODULE_0_rxjs_BehaviorSubject__["BehaviorSubject"]([]); } SquadStore.prototype.dispatch = function (action) { this.squads = this._reduce(this.squads, action); this.items$.next(this.squads); }; SquadStore.prototype._reduce = function (squads, action) { switch (action.type) { case LOAD: return action.data.slice(); case ADD: return squads.concat([action.data]); case EDIT: return squads.map(function (squad) { var editedSquad = action.data; if (squad._id !== editedSquad._id) { return squad; } return editedSquad; }); case REMOVE: return squads.filter(function (squad) { return squad._id !== action.data._id; }); default: return squads; } }; return SquadStore; }()); //# sourceMappingURL=squad.store.js.map /***/ }), /* 89 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_rxjs_BehaviorSubject__ = __webpack_require__(36); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_rxjs_BehaviorSubject___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_rxjs_BehaviorSubject__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return LOAD; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return ADD; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return EDIT; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return REMOVE; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return UserStore; }); var LOAD = 'LOAD'; var ADD = 'ADD'; var EDIT = 'EDIT'; var REMOVE = 'REMOVE'; var UserStore = (function () { function UserStore() { this.users = []; this.items$ = new __WEBPACK_IMPORTED_MODULE_0_rxjs_BehaviorSubject__["BehaviorSubject"]([]); } UserStore.prototype.dispatch = function (action) { this.users = this._reduce(this.users, action); this.items$.next(this.users); }; UserStore.prototype._reduce = function (users, action) { switch (action.type) { case LOAD: return action.data.slice(); case ADD: return users.concat([action.data]); case EDIT: return users.map(function (user) { var editedUser = action.data; if (user._id !== editedUser._id) { return user; } return editedUser; }); case REMOVE: return users.filter(function (user) { return user._id !== action.data._id; }); default: return users; } }; return UserStore; }()); //# sourceMappingURL=user.store.js.map /***/ }), /* 90 */, /* 91 */, /* 92 */, /* 93 */, /* 94 */, /* 95 */, /* 96 */, /* 97 */, /* 98 */, /* 99 */, /* 100 */, /* 101 */, /* 102 */, /* 103 */, /* 104 */, /* 105 */, /* 106 */, /* 107 */, /* 108 */, /* 109 */, /* 110 */, /* 111 */, /* 112 */, /* 113 */, /* 114 */, /* 115 */, /* 116 */, /* 117 */, /* 118 */, /* 119 */, /* 120 */ /***/ (function(module, exports) { function webpackEmptyContext(req) { throw new Error("Cannot find module '" + req + "'."); } webpackEmptyContext.keys = function() { return []; }; webpackEmptyContext.resolve = webpackEmptyContext; module.exports = webpackEmptyContext; webpackEmptyContext.id = 120; /***/ }), /* 121 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_platform_browser_dynamic__ = __webpack_require__(129); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__app_app_module__ = __webpack_require__(131); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__environments_environment__ = __webpack_require__(161); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rxjs_add_observable_of__ = __webpack_require__(272); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rxjs_add_observable_of___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_rxjs_add_observable_of__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_rxjs_add_operator_retryWhen__ = __webpack_require__(284); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_rxjs_add_operator_retryWhen___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_rxjs_add_operator_retryWhen__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_rxjs_add_observable_fromEvent__ = __webpack_require__(269); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_rxjs_add_observable_fromEvent___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_rxjs_add_observable_fromEvent__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_rxjs_add_observable_from__ = __webpack_require__(268); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_rxjs_add_observable_from___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_rxjs_add_observable_from__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_rxjs_add_observable_range__ = __webpack_require__(273); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_rxjs_add_observable_range___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_rxjs_add_observable_range__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_rxjs_add_observable_timer__ = __webpack_require__(274); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_rxjs_add_observable_timer___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_9_rxjs_add_observable_timer__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_rxjs_add_observable_merge__ = __webpack_require__(271); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_rxjs_add_observable_merge___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10_rxjs_add_observable_merge__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_rxjs_add_observable_interval__ = __webpack_require__(270); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_rxjs_add_observable_interval___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_11_rxjs_add_observable_interval__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12_rxjs_add_operator_filter__ = __webpack_require__(281); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12_rxjs_add_operator_filter___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_12_rxjs_add_operator_filter__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13_rxjs_add_operator_debounceTime__ = __webpack_require__(277); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13_rxjs_add_operator_debounceTime___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_13_rxjs_add_operator_debounceTime__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_14_rxjs_add_operator_distinctUntilChanged__ = __webpack_require__(279); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_14_rxjs_add_operator_distinctUntilChanged___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_14_rxjs_add_operator_distinctUntilChanged__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_15_rxjs_add_operator_mergeMap__ = __webpack_require__(282); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_15_rxjs_add_operator_mergeMap___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_15_rxjs_add_operator_mergeMap__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_16_rxjs_add_operator_switchMap__ = __webpack_require__(285); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_16_rxjs_add_operator_switchMap___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_16_rxjs_add_operator_switchMap__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_17_rxjs_add_operator_do__ = __webpack_require__(280); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_17_rxjs_add_operator_do___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_17_rxjs_add_operator_do__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_18_rxjs_add_operator_map__ = __webpack_require__(104); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_18_rxjs_add_operator_map___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_18_rxjs_add_operator_map__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_19_rxjs_add_operator_retry__ = __webpack_require__(283); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_19_rxjs_add_operator_retry___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_19_rxjs_add_operator_retry__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_20_rxjs_add_operator_bufferCount__ = __webpack_require__(275); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_20_rxjs_add_operator_bufferCount___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_20_rxjs_add_operator_bufferCount__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_21_rxjs_add_operator_bufferTime__ = __webpack_require__(276); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_21_rxjs_add_operator_bufferTime___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_21_rxjs_add_operator_bufferTime__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_22_rxjs_add_operator_take__ = __webpack_require__(286); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_22_rxjs_add_operator_take___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_22_rxjs_add_operator_take__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_23_rxjs_add_operator_delay__ = __webpack_require__(278); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_23_rxjs_add_operator_delay___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_23_rxjs_add_operator_delay__); if (__WEBPACK_IMPORTED_MODULE_3__environments_environment__["a" /* environment */].production) { __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["a" /* enableProdMode */])(); } __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_platform_browser_dynamic__["a" /* platformBrowserDynamic */])().bootstrapModule(__WEBPACK_IMPORTED_MODULE_2__app_app_module__["a" /* AppModule */]); //# sourceMappingURL=main.js.map /***/ }), /* 122 */, /* 123 */, /* 124 */, /* 125 */, /* 126 */, /* 127 */, /* 128 */, /* 129 */, /* 130 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_router__ = __webpack_require__(4); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__services_login_service_login_service__ = __webpack_require__(39); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_platform_browser__ = __webpack_require__(22); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__app_tokens__ = __webpack_require__(50); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AppComponent; }); var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var __param = (this && this.__param) || function (paramIndex, decorator) { return function (target, key) { decorator(target, key, paramIndex); } }; var AppComponent = (function () { function AppComponent(authEnabled, loginService, activatedRoute, router, titleService) { this.authEnabled = authEnabled; this.loginService = loginService; this.activatedRoute = activatedRoute; this.router = router; this.titleService = titleService; } AppComponent.prototype.ngOnInit = function () { var _this = this; this.defaultTitle = this.titleService.getTitle(); this.router.events .filter(function (event) { return event instanceof __WEBPACK_IMPORTED_MODULE_1__angular_router__["d" /* NavigationEnd */]; }) .subscribe(function (event) { _this.setBrowserTitle(); }); }; AppComponent.prototype.setBrowserTitle = function () { var title = this.defaultTitle; var route = this.activatedRoute; // firstChild gibt die Haupt-Kindroute der übergebenen Route zurück while (route.firstChild) { route = route.firstChild; title = route.snapshot.data['title'] || title; } this.titleService.setTitle(title); }; AppComponent.prototype.logout = function () { this.loginService.logout(); this.router.navigate(['login']); return false; }; return AppComponent; }()); AppComponent = __decorate([ __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["_3" /* Component */])({ selector: 'app-root', template: __webpack_require__(243), styles: [__webpack_require__(217)] }), __param(0, __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["j" /* Optional */])()), __param(0, __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["k" /* Inject */])(__WEBPACK_IMPORTED_MODULE_4__app_tokens__["a" /* AUTH_ENABLED */])), __metadata("design:paramtypes", [Object, typeof (_a = typeof __WEBPACK_IMPORTED_MODULE_2__services_login_service_login_service__["a" /* LoginService */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_2__services_login_service_login_service__["a" /* LoginService */]) === "function" && _a || Object, typeof (_b = typeof __WEBPACK_IMPORTED_MODULE_1__angular_router__["c" /* ActivatedRoute */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_1__angular_router__["c" /* ActivatedRoute */]) === "function" && _b || Object, typeof (_c = typeof __WEBPACK_IMPORTED_MODULE_1__angular_router__["a" /* Router */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_1__angular_router__["a" /* Router */]) === "function" && _c || Object, typeof (_d = typeof __WEBPACK_IMPORTED_MODULE_3__angular_platform_browser__["b" /* Title */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_3__angular_platform_browser__["b" /* Title */]) === "function" && _d || Object]) ], AppComponent); var _a, _b, _c, _d; //# sourceMappingURL=app.component.js.map /***/ }), /* 131 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_platform_browser__ = __webpack_require__(22); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_forms__ = __webpack_require__(9); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_http__ = __webpack_require__(13); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__app_component__ = __webpack_require__(130); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__services_login_service_login_service__ = __webpack_require__(39); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__services_stores_user_store__ = __webpack_require__(89); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__show_error_show_error_component__ = __webpack_require__(148); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__models_app_validators__ = __webpack_require__(140); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__app_routing__ = __webpack_require__(132); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__app_tokens__ = __webpack_require__(50); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__services_user_service_user_service__ = __webpack_require__(30); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__users_user_list_user_item_component__ = __webpack_require__(156); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__services_squad_service_squad_service__ = __webpack_require__(29); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__services_stores_squad_store__ = __webpack_require__(88); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__services_stores_decoration_store__ = __webpack_require__(53); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_16__services_decoration_service_decoration_service__ = __webpack_require__(28); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_17__squads_squad_list_squad_item_component__ = __webpack_require__(150); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_18__decorations_decoration_component__ = __webpack_require__(85); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_19__ranks_rank_list_rank_item_component__ = __webpack_require__(143); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_20__services_stores_rank_store__ = __webpack_require__(87); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_21__services_rank_service_rank_service__ = __webpack_require__(52); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_22__decorations_decoration_list_decoration_item_component__ = __webpack_require__(133); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_23__app_config__ = __webpack_require__(18); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_24__login_login_guard__ = __webpack_require__(51); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_25__services_awarding_service_awarding_service__ = __webpack_require__(86); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_26__services_http_client__ = __webpack_require__(23); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AppModule; }); var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var AppModule = (function () { function AppModule() { } return AppModule; }()); AppModule = __decorate([ __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["b" /* NgModule */])({ imports: [__WEBPACK_IMPORTED_MODULE_1__angular_platform_browser__["a" /* BrowserModule */], __WEBPACK_IMPORTED_MODULE_2__angular_forms__["a" /* FormsModule */], __WEBPACK_IMPORTED_MODULE_2__angular_forms__["b" /* ReactiveFormsModule */], __WEBPACK_IMPORTED_MODULE_9__app_routing__["a" /* appRouting */], __WEBPACK_IMPORTED_MODULE_3__angular_http__["a" /* HttpModule */]], providers: [ __WEBPACK_IMPORTED_MODULE_26__services_http_client__["a" /* HttpClient */], __WEBPACK_IMPORTED_MODULE_5__services_login_service_login_service__["a" /* LoginService */], __WEBPACK_IMPORTED_MODULE_24__login_login_guard__["a" /* LoginGuard */], __WEBPACK_IMPORTED_MODULE_11__services_user_service_user_service__["a" /* UserService */], __WEBPACK_IMPORTED_MODULE_6__services_stores_user_store__["a" /* UserStore */], __WEBPACK_IMPORTED_MODULE_13__services_squad_service_squad_service__["a" /* SquadService */], __WEBPACK_IMPORTED_MODULE_14__services_stores_squad_store__["a" /* SquadStore */], __WEBPACK_IMPORTED_MODULE_16__services_decoration_service_decoration_service__["a" /* DecorationService */], __WEBPACK_IMPORTED_MODULE_15__services_stores_decoration_store__["a" /* DecorationStore */], __WEBPACK_IMPORTED_MODULE_21__services_rank_service_rank_service__["a" /* RankService */], __WEBPACK_IMPORTED_MODULE_20__services_stores_rank_store__["a" /* RankStore */], __WEBPACK_IMPORTED_MODULE_25__services_awarding_service_awarding_service__["a" /* AwardingService */], __WEBPACK_IMPORTED_MODULE_23__app_config__["a" /* AppConfig */], __WEBPACK_IMPORTED_MODULE_1__angular_platform_browser__["b" /* Title */], __WEBPACK_IMPORTED_MODULE_9__app_routing__["b" /* routingProviders */], { provide: __WEBPACK_IMPORTED_MODULE_10__app_tokens__["a" /* AUTH_ENABLED */], useValue: true } ], declarations: [ __WEBPACK_IMPORTED_MODULE_4__app_component__["a" /* AppComponent */], __WEBPACK_IMPORTED_MODULE_9__app_routing__["c" /* routingComponents */], __WEBPACK_IMPORTED_MODULE_18__decorations_decoration_component__["a" /* DecorationComponent */], __WEBPACK_IMPORTED_MODULE_22__decorations_decoration_list_decoration_item_component__["a" /* DecorationItemComponent */], __WEBPACK_IMPORTED_MODULE_19__ranks_rank_list_rank_item_component__["a" /* RankItemComponent */], __WEBPACK_IMPORTED_MODULE_12__users_user_list_user_item_component__["a" /* UserItemComponent */], __WEBPACK_IMPORTED_MODULE_17__squads_squad_list_squad_item_component__["a" /* SquadItemComponent */], __WEBPACK_IMPORTED_MODULE_7__show_error_show_error_component__["a" /* ShowErrorComponent */], __WEBPACK_IMPORTED_MODULE_8__models_app_validators__["a" /* APPLICATION_VALIDATORS */] ], bootstrap: [__WEBPACK_IMPORTED_MODULE_4__app_component__["a" /* AppComponent */]] }) ], AppModule); //# sourceMappingURL=app.module.js.map /***/ }), /* 132 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_router__ = __webpack_require__(4); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__login_index__ = __webpack_require__(138); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__not_found_not_found_component__ = __webpack_require__(142); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__login_login_guard__ = __webpack_require__(51); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__users_users_routing__ = __webpack_require__(160); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__squads_squads_routing__ = __webpack_require__(154); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__decorations_decoration_routing__ = __webpack_require__(136); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__ranks_ranks_routing__ = __webpack_require__(147); /* unused harmony export appRoutes */ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return appRouting; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return routingComponents; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return routingProviders; }); var appRoutes = [ { path: 'login', component: __WEBPACK_IMPORTED_MODULE_1__login_index__["a" /* LoginComponent */] }, { path: 'cc-users', children: __WEBPACK_IMPORTED_MODULE_4__users_users_routing__["a" /* usersRoutes */], canActivate: [__WEBPACK_IMPORTED_MODULE_3__login_login_guard__["a" /* LoginGuard */]] }, { path: '', redirectTo: '/cc-users', pathMatch: 'full' }, { path: 'cc-squads', children: __WEBPACK_IMPORTED_MODULE_5__squads_squads_routing__["a" /* squadsRoutes */], canActivate: [__WEBPACK_IMPORTED_MODULE_3__login_login_guard__["a" /* LoginGuard */]] }, { path: 'cc-decorations', children: __WEBPACK_IMPORTED_MODULE_6__decorations_decoration_routing__["a" /* decorationsRoutes */], canActivate: [__WEBPACK_IMPORTED_MODULE_3__login_login_guard__["a" /* LoginGuard */]] }, { path: 'cc-ranks', children: __WEBPACK_IMPORTED_MODULE_7__ranks_ranks_routing__["a" /* ranksRoutes */], canActivate: [__WEBPACK_IMPORTED_MODULE_3__login_login_guard__["a" /* LoginGuard */]] }, /** Redirect Konfigurationen **/ { path: '404', component: __WEBPACK_IMPORTED_MODULE_2__not_found_not_found_component__["a" /* NotFoundComponent */] }, { path: '**', redirectTo: '/404' }, ]; var appRouting = __WEBPACK_IMPORTED_MODULE_0__angular_router__["b" /* RouterModule */].forRoot(appRoutes); var routingComponents = [__WEBPACK_IMPORTED_MODULE_1__login_index__["a" /* LoginComponent */], __WEBPACK_IMPORTED_MODULE_2__not_found_not_found_component__["a" /* NotFoundComponent */]].concat(__WEBPACK_IMPORTED_MODULE_4__users_users_routing__["b" /* usersRoutingComponents */], __WEBPACK_IMPORTED_MODULE_5__squads_squads_routing__["b" /* squadsRoutingComponents */], __WEBPACK_IMPORTED_MODULE_6__decorations_decoration_routing__["b" /* decorationsRoutingComponents */], __WEBPACK_IMPORTED_MODULE_7__ranks_ranks_routing__["b" /* ranksRoutingComponents */]); var routingProviders = [__WEBPACK_IMPORTED_MODULE_3__login_login_guard__["a" /* LoginGuard */]]; //# sourceMappingURL=app.routing.js.map /***/ }), /* 133 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_router__ = __webpack_require__(4); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return DecorationItemComponent; }); var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var DecorationItemComponent = (function () { function DecorationItemComponent(router) { this.router = router; this.decorationSelected = new __WEBPACK_IMPORTED_MODULE_0__angular_core__["r" /* EventEmitter */](); } DecorationItemComponent.prototype.select = function () { this.decorationSelected.emit(this.decoration._id); }; DecorationItemComponent.prototype.ngAfterViewChecked = function () { //var taskId = (this.task ? this.task.id : ''); // console.log(`Task ${taskId} checked ${++this.checkCounter} times`) }; return DecorationItemComponent; }()); DecorationItemComponent = __decorate([ __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["_3" /* Component */])({ selector: 'pjm-decoration-item', template: __webpack_require__(244), styles: [__webpack_require__(218)], changeDetection: __WEBPACK_IMPORTED_MODULE_0__angular_core__["_4" /* ChangeDetectionStrategy */].OnPush, inputs: ['decoration', 'selected'], outputs: ['decorationSelected'], }), __metadata("design:paramtypes", [typeof (_a = typeof __WEBPACK_IMPORTED_MODULE_1__angular_router__["a" /* Router */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_1__angular_router__["a" /* Router */]) === "function" && _a || Object]) ], DecorationItemComponent); var _a; //# sourceMappingURL=decoration-item.component.js.map /***/ }), /* 134 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_common__ = __webpack_require__(17); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_forms__ = __webpack_require__(9); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_router__ = __webpack_require__(4); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rxjs_Observable__ = __webpack_require__(0); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rxjs_Observable___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_rxjs_Observable__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__services_decoration_service_decoration_service__ = __webpack_require__(28); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return DecorationListComponent; }); var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var DecorationListComponent = (function () { function DecorationListComponent(decorationService, router, route, location) { this.decorationService = decorationService; this.router = router; this.route = route; this.location = location; this.selectedDecorationId = null; this.searchTerm = new __WEBPACK_IMPORTED_MODULE_2__angular_forms__["f" /* FormControl */](); } DecorationListComponent.prototype.ngOnInit = function () { var _this = this; this.decorations$ = this.decorationService.decorations$; var paramsStream = this.route.queryParams .map(function (params) { return decodeURI(params['query'] || ''); }) .do(function (query) { return _this.searchTerm.setValue(query); }); var searchTermStream = this.searchTerm.valueChanges .debounceTime(400) .do(function (query) { return _this.adjustBrowserUrl(query); }); __WEBPACK_IMPORTED_MODULE_4_rxjs_Observable__["Observable"].merge(paramsStream, searchTermStream) .distinctUntilChanged() .switchMap(function (query) { return _this.decorationService.findDecorations(query, _this.fractionRadioSelect); }) .subscribe(); }; DecorationListComponent.prototype.openNewSquadForm = function () { this.router.navigate([{ outlets: { 'right': ['new'] } }], { relativeTo: this.route }); }; DecorationListComponent.prototype.selectDecoration = function (decorationId) { this.selectedDecorationId = decorationId; this.router.navigate([{ outlets: { 'right': ['overview', decorationId] } }], { relativeTo: this.route }); }; DecorationListComponent.prototype.filterSquadsByFraction = function (query, fractionFilter) { if (query === void 0) { query = ''; } this.decorations$ = this.decorationService.findDecorations(query, fractionFilter); }; DecorationListComponent.prototype.adjustBrowserUrl = function (queryString) { if (queryString === void 0) { queryString = ''; } var absoluteUrl = this.location.path().split('?')[0]; var queryPart = queryString !== '' ? "query=" + queryString : ''; this.location.replaceState(absoluteUrl, queryPart); }; return DecorationListComponent; }()); DecorationListComponent = __decorate([ __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["_3" /* Component */])({ selector: 'decoration-list', template: __webpack_require__(245), styles: [__webpack_require__(219)] }), __metadata("design:paramtypes", [typeof (_a = typeof __WEBPACK_IMPORTED_MODULE_5__services_decoration_service_decoration_service__["a" /* DecorationService */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_5__services_decoration_service_decoration_service__["a" /* DecorationService */]) === "function" && _a || Object, typeof (_b = typeof __WEBPACK_IMPORTED_MODULE_3__angular_router__["a" /* Router */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_3__angular_router__["a" /* Router */]) === "function" && _b || Object, typeof (_c = typeof __WEBPACK_IMPORTED_MODULE_3__angular_router__["c" /* ActivatedRoute */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_3__angular_router__["c" /* ActivatedRoute */]) === "function" && _c || Object, typeof (_d = typeof __WEBPACK_IMPORTED_MODULE_1__angular_common__["e" /* Location */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_1__angular_common__["e" /* Location */]) === "function" && _d || Object]) ], DecorationListComponent); var _a, _b, _c, _d; //# sourceMappingURL=decoration-list.component.js.map /***/ }), /* 135 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_router__ = __webpack_require__(4); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__services_decoration_service_decoration_service__ = __webpack_require__(28); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return DecorationOverviewComponent; }); var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var DecorationOverviewComponent = (function () { function DecorationOverviewComponent(router, route, decorationService) { this.router = router; this.route = route; this.decorationService = decorationService; this.showSuccessLabel = false; this.showImageError = false; } DecorationOverviewComponent.prototype.ngOnInit = function () { var _this = this; this.route.params.subscribe(function (params) { _this.decorationService.getDecoration(params['id']).subscribe(function (decoration) { _this.decoration = decoration; _this.previewImage = 'resource/decoration/' + _this.decoration._id + '.png?' + Date.now(); }); }); }; // register file change and save to fileList DecorationOverviewComponent.prototype.fileChange = function (event) { if (!event.target.files[0].name.endsWith('.png')) { this.showImageError = true; this.fileList = undefined; } else { this.showImageError = false; this.fileList = event.target.files; } }; DecorationOverviewComponent.prototype.update = function (attrName, inputField) { var _this = this; var inputValue = inputField.value; if (inputValue.length > 0 && (this.decoration[attrName] !== inputValue || attrName === 'description')) { var updateObject = { _id: this.decoration._id }; updateObject[attrName] = inputValue; this.decorationService.submitDecoration(updateObject) .subscribe(function (decoration) { _this.decoration = decoration; if (attrName != 'description') { inputField.value = ''; } _this.showSuccessLabel = true; setTimeout(function () { _this.showSuccessLabel = false; }, 2000); }); } }; DecorationOverviewComponent.prototype.updateGraphic = function (fileInput) { var _this = this; if (this.fileList && this.fileList.length > 0) { var file = this.fileList[0]; this.decorationService.submitDecoration({ _id: this.decoration._id }, file) .subscribe(function (res) { setTimeout(function () { _this.previewImage = 'resource/decoration/' + _this.decoration._id + '.png?' + Date.now(); }, 300); fileInput.value = ''; _this.showSuccessLabel = true; setTimeout(function () { _this.showSuccessLabel = false; }, 2000); }); } }; DecorationOverviewComponent.prototype.deleteDecoration = function (confirm) { var _this = this; if (confirm.toLowerCase() === this.decoration.name.toLocaleLowerCase()) { this.decorationService.deleteDecoration(this.decoration) .subscribe(function (res) { _this.router.navigate(['../..'], { relativeTo: _this.route }); }); } }; return DecorationOverviewComponent; }()); DecorationOverviewComponent = __decorate([ __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["_3" /* Component */])({ template: __webpack_require__(246), styles: [__webpack_require__(220), __webpack_require__(45)], }), __metadata("design:paramtypes", [typeof (_a = typeof __WEBPACK_IMPORTED_MODULE_1__angular_router__["a" /* Router */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_1__angular_router__["a" /* Router */]) === "function" && _a || Object, typeof (_b = typeof __WEBPACK_IMPORTED_MODULE_1__angular_router__["c" /* ActivatedRoute */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_1__angular_router__["c" /* ActivatedRoute */]) === "function" && _b || Object, typeof (_c = typeof __WEBPACK_IMPORTED_MODULE_2__services_decoration_service_decoration_service__["a" /* DecorationService */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_2__services_decoration_service_decoration_service__["a" /* DecorationService */]) === "function" && _c || Object]) ], DecorationOverviewComponent); var _a, _b, _c; //# sourceMappingURL=decoration-overview.component.js.map /***/ }), /* 136 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__decoration_component__ = __webpack_require__(85); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__decoration_list_decoration_list_component__ = __webpack_require__(134); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__new_decoration_new_decoration_component__ = __webpack_require__(137); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__decoration_overview_decoration_overview_component__ = __webpack_require__(135); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return decorationsRoutes; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return decorationsRoutingComponents; }); var decorationsRoutes = [{ path: '', component: __WEBPACK_IMPORTED_MODULE_0__decoration_component__["a" /* DecorationComponent */], children: [ { path: '', component: __WEBPACK_IMPORTED_MODULE_1__decoration_list_decoration_list_component__["a" /* DecorationListComponent */] } ] }, { path: 'new', component: __WEBPACK_IMPORTED_MODULE_2__new_decoration_new_decoration_component__["a" /* CreateDecorationComponent */], outlet: 'right' }, { path: 'overview/:id', component: __WEBPACK_IMPORTED_MODULE_3__decoration_overview_decoration_overview_component__["a" /* DecorationOverviewComponent */], outlet: 'right' }]; var decorationsRoutingComponents = [__WEBPACK_IMPORTED_MODULE_0__decoration_component__["a" /* DecorationComponent */], __WEBPACK_IMPORTED_MODULE_1__decoration_list_decoration_list_component__["a" /* DecorationListComponent */], __WEBPACK_IMPORTED_MODULE_3__decoration_overview_decoration_overview_component__["a" /* DecorationOverviewComponent */], __WEBPACK_IMPORTED_MODULE_2__new_decoration_new_decoration_component__["a" /* CreateDecorationComponent */]]; //# sourceMappingURL=decoration.routing.js.map /***/ }), /* 137 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_router__ = __webpack_require__(4); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_forms__ = __webpack_require__(9); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__services_decoration_service_decoration_service__ = __webpack_require__(28); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return CreateDecorationComponent; }); var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var CreateDecorationComponent = (function () { function CreateDecorationComponent(route, router, decorationService) { this.route = route; this.router = router; this.decorationService = decorationService; this.decoration = { name: '', fraction: '', sortingNumber: 0 }; this.saved = false; this.showImageError = false; } CreateDecorationComponent.prototype.ngOnInit = function () { }; CreateDecorationComponent.prototype.fileChange = function (event) { if (!event.target.files[0].name.endsWith('.png')) { this.showImageError = true; this.fileList = undefined; } else { this.showImageError = false; this.fileList = event.target.files; } }; CreateDecorationComponent.prototype.saveDecoration = function () { var _this = this; if (this.fileList) { var file = this.fileList[0]; this.decorationService.submitDecoration(this.decoration, file) .subscribe(function (decoration) { _this.saved = true; _this.router.navigate(['../overview', decoration._id], { relativeTo: _this.route }); }); } else { return window.alert("Bild ist ein Pflichtfeld"); } }; CreateDecorationComponent.prototype.cancel = function () { //this.location.back(); this.router.navigate(['/cc-decorations']); return false; }; CreateDecorationComponent.prototype.canDeactivate = function () { if (this.saved || !this.form.dirty) { return true; } return window.confirm("Ihr Formular besitzt ungespeicherte \u00C4nderungen, m\u00F6chten Sie die Seite wirklich verlassen?"); }; return CreateDecorationComponent; }()); __decorate([ __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["_15" /* ViewChild */])(__WEBPACK_IMPORTED_MODULE_2__angular_forms__["e" /* NgForm */]), __metadata("design:type", typeof (_a = typeof __WEBPACK_IMPORTED_MODULE_2__angular_forms__["e" /* NgForm */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_2__angular_forms__["e" /* NgForm */]) === "function" && _a || Object) ], CreateDecorationComponent.prototype, "form", void 0); CreateDecorationComponent = __decorate([ __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["_3" /* Component */])({ template: __webpack_require__(248), styles: [__webpack_require__(222), __webpack_require__(72)] }), __metadata("design:paramtypes", [typeof (_b = typeof __WEBPACK_IMPORTED_MODULE_1__angular_router__["c" /* ActivatedRoute */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_1__angular_router__["c" /* ActivatedRoute */]) === "function" && _b || Object, typeof (_c = typeof __WEBPACK_IMPORTED_MODULE_1__angular_router__["a" /* Router */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_1__angular_router__["a" /* Router */]) === "function" && _c || Object, typeof (_d = typeof __WEBPACK_IMPORTED_MODULE_3__services_decoration_service_decoration_service__["a" /* DecorationService */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_3__services_decoration_service_decoration_service__["a" /* DecorationService */]) === "function" && _d || Object]) ], CreateDecorationComponent); var _a, _b, _c, _d; //# sourceMappingURL=new-decoration.component.js.map /***/ }), /* 138 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__login_component__ = __webpack_require__(139); /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__login_component__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__login_guard__ = __webpack_require__(51); /* unused harmony namespace reexport */ //# sourceMappingURL=index.js.map /***/ }), /* 139 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_router__ = __webpack_require__(4); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__services_login_service_login_service__ = __webpack_require__(39); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return LoginComponent; }); var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var LoginComponent = (function () { function LoginComponent(route, router, loginService) { this.route = route; this.router = router; this.loginService = loginService; this.showErrorLabel = false; this.loading = false; } LoginComponent.prototype.ngOnInit = function () { // reset login status this.loginService.logout(); // get return url from route parameters or default to '/' this.returnUrl = this.route.snapshot.queryParams['returnUrl'] || '/'; }; LoginComponent.prototype.login = function (username, password) { var _this = this; if (username.length > 0 && password.length > 0) { this.loading = true; this.loginService.login(username, password) .subscribe(function (data) { _this.router.navigate([_this.returnUrl]); }, function (error) { _this.showErrorLabel = true; setTimeout(function () { _this.showErrorLabel = false; }, 4000); _this.loading = false; }); } }; return LoginComponent; }()); LoginComponent = __decorate([ __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["_3" /* Component */])({ template: __webpack_require__(249), styles: [__webpack_require__(223)] }), __metadata("design:paramtypes", [typeof (_a = typeof __WEBPACK_IMPORTED_MODULE_1__angular_router__["c" /* ActivatedRoute */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_1__angular_router__["c" /* ActivatedRoute */]) === "function" && _a || Object, typeof (_b = typeof __WEBPACK_IMPORTED_MODULE_1__angular_router__["a" /* Router */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_1__angular_router__["a" /* Router */]) === "function" && _b || Object, typeof (_c = typeof __WEBPACK_IMPORTED_MODULE_2__services_login_service_login_service__["a" /* LoginService */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_2__services_login_service_login_service__["a" /* LoginService */]) === "function" && _c || Object]) ], LoginComponent); var _a, _b, _c; //# sourceMappingURL=login.component.js.map /***/ }), /* 140 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_forms__ = __webpack_require__(9); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__services_user_service_user_service__ = __webpack_require__(30); /* unused harmony export asyncIfNotBacklogThenAssignee */ /* unused harmony export ifNotBacklogThanAssignee */ /* unused harmony export IfNotBacklogThanAssigneeValidatorDirective */ /* unused harmony export EmailValidatorDirective */ /* unused harmony export emailValidator */ /* unused harmony export emailValidator2 */ /* unused harmony export UserExistsValidatorDirective */ /* unused harmony export EmailValidatorWithFunctionDirective */ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return APPLICATION_VALIDATORS; }); var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; function asyncIfNotBacklogThenAssignee(control) { var promise = new Promise(function (resolve, reject) { setTimeout(function () { resolve(ifNotBacklogThanAssignee(control)); }, 500); }); return promise; } function ifNotBacklogThanAssignee(formGroup) { var nameControl = formGroup.get('assignee.name'); var stateControl = formGroup.get('state'); if (!nameControl || !stateControl) { return null; } if (stateControl.value !== 'BACKLOG' && (!nameControl.value || nameControl.value === '')) { return { 'assigneeRequired': true }; } return null; } var IfNotBacklogThanAssigneeValidatorDirective = IfNotBacklogThanAssigneeValidatorDirective_1 = (function () { function IfNotBacklogThanAssigneeValidatorDirective() { } IfNotBacklogThanAssigneeValidatorDirective.prototype.validate = function (formGroup) { var nameControl = formGroup.get('assignee.name'); var stateControl = formGroup.get('state'); if (!nameControl || !stateControl) { return null; } if (stateControl.value !== 'BACKLOG' && (!nameControl.value || nameControl.value === '')) { return { 'assigneeRequired': true }; } return null; }; return IfNotBacklogThanAssigneeValidatorDirective; }()); IfNotBacklogThanAssigneeValidatorDirective = IfNotBacklogThanAssigneeValidatorDirective_1 = __decorate([ __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["c" /* Directive */])({ selector: '[ifNotBacklogThanAssignee]', providers: [ { provide: __WEBPACK_IMPORTED_MODULE_1__angular_forms__["c" /* NG_VALIDATORS */], useExisting: IfNotBacklogThanAssigneeValidatorDirective_1, multi: true } ] }) ], IfNotBacklogThanAssigneeValidatorDirective); var EmailValidatorDirective = EmailValidatorDirective_1 = (function () { function EmailValidatorDirective() { } EmailValidatorDirective.prototype.validate = function (control) { var re = /^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i; if (!control.value || control.value === '' || re.test(control.value)) { return null; } else { return { 'invalidEMail': true }; } }; return EmailValidatorDirective; }()); EmailValidatorDirective = EmailValidatorDirective_1 = __decorate([ __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["c" /* Directive */])({ selector: '[emailValidator]', providers: [{ provide: __WEBPACK_IMPORTED_MODULE_1__angular_forms__["c" /* NG_VALIDATORS */], useExisting: EmailValidatorDirective_1, multi: true }] }) ], EmailValidatorDirective); function emailValidator(control) { return new EmailValidatorDirective().validate(control); } function emailValidator2(control) { var re = /^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i; if (!control.value || control.value === '' || re.test(control.value)) { return null; } else { return { 'invalidEMail': true }; } } var UserExistsValidatorDirective = UserExistsValidatorDirective_1 = (function () { function UserExistsValidatorDirective(userService) { this.userService = userService; } return UserExistsValidatorDirective; }()); UserExistsValidatorDirective = UserExistsValidatorDirective_1 = __decorate([ __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["c" /* Directive */])({ selector: '[pjmUserExistsValidator]', providers: [ { provide: __WEBPACK_IMPORTED_MODULE_1__angular_forms__["d" /* NG_ASYNC_VALIDATORS */], useExisting: __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["d" /* forwardRef */])(function () { return UserExistsValidatorDirective_1; }), multi: true } ] }), __metadata("design:paramtypes", [typeof (_a = typeof __WEBPACK_IMPORTED_MODULE_2__services_user_service_user_service__["a" /* UserService */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_2__services_user_service_user_service__["a" /* UserService */]) === "function" && _a || Object]) ], UserExistsValidatorDirective); var EmailValidatorWithFunctionDirective = (function () { function EmailValidatorWithFunctionDirective() { } return EmailValidatorWithFunctionDirective; }()); EmailValidatorWithFunctionDirective = __decorate([ __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["c" /* Directive */])({ selector: '[emailValidator]', providers: [ { provide: __WEBPACK_IMPORTED_MODULE_1__angular_forms__["c" /* NG_VALIDATORS */], useValue: emailValidator, multi: true } ] }) ], EmailValidatorWithFunctionDirective); var APPLICATION_VALIDATORS = [IfNotBacklogThanAssigneeValidatorDirective, EmailValidatorDirective]; var IfNotBacklogThanAssigneeValidatorDirective_1, EmailValidatorDirective_1, UserExistsValidatorDirective_1, _a; //# sourceMappingURL=app-validators.js.map /***/ }), /* 141 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "states", function() { return states; }); /* harmony export (immutable) */ __webpack_exports__["createInitialTask"] = createInitialTask; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "stateGroups", function() { return stateGroups; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "stateTexts", function() { return stateTexts; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "statesAsObjects", function() { return statesAsObjects; }); var states = ['BACKLOG', 'IN_PROGRESS', 'TEST', 'COMPLETED']; function createInitialTask() { return { assignee: {}, tags: [], state: states[0] }; } var stateGroups = [ { label: 'Planung', states: ['BACKLOG'] }, { label: 'Entwicklung', states: ['IN_PROGRESS', 'TEST'] }, { label: 'In Produktion', states: ['COMPLETED'] } ]; var stateTexts = { 'BACKLOG': 'Backlog', 'IN_PROGRESS': 'In Bearbeitung', 'TEST': 'Im Test', 'COMPLETED': 'Abgeschlossen' }; var statesAsObjects = [{ name: 'BACKLOG', text: 'Backlog' }, { name: 'IN_PROGRESS', text: 'In Bearbeitung' }, { name: 'TEST', text: 'Test' }, { name: 'COMPLETED', text: 'Abgeschlossen' }]; //# sourceMappingURL=model-interfaces.js.map /***/ }), /* 142 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return NotFoundComponent; }); var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var NotFoundComponent = (function () { function NotFoundComponent() { } NotFoundComponent.prototype.ngOnInit = function () { }; return NotFoundComponent; }()); NotFoundComponent = __decorate([ __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["_3" /* Component */])({ selector: 'app-not-found', template: __webpack_require__(250), styles: [__webpack_require__(224)] }), __metadata("design:paramtypes", []) ], NotFoundComponent); //# sourceMappingURL=not-found.component.js.map /***/ }), /* 143 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_router__ = __webpack_require__(4); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return RankItemComponent; }); var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var RankItemComponent = (function () { function RankItemComponent(router) { this.router = router; this.rankSelected = new __WEBPACK_IMPORTED_MODULE_0__angular_core__["r" /* EventEmitter */](); this.rankDelete = new __WEBPACK_IMPORTED_MODULE_0__angular_core__["r" /* EventEmitter */](); } RankItemComponent.prototype.select = function () { this.rankSelected.emit(this.rank._id); }; RankItemComponent.prototype.delete = function () { this.rankSelected.emit(this.rank); }; RankItemComponent.prototype.ngAfterViewChecked = function () { //var taskId = (this.task ? this.task.id : ''); // console.log(`Task ${taskId} checked ${++this.checkCounter} times`) }; return RankItemComponent; }()); RankItemComponent = __decorate([ __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["_3" /* Component */])({ selector: 'pjm-rank-item', template: __webpack_require__(251), styles: [__webpack_require__(225)], changeDetection: __WEBPACK_IMPORTED_MODULE_0__angular_core__["_4" /* ChangeDetectionStrategy */].OnPush, inputs: ['rank', 'selected'], outputs: ['rankSelected', 'rankDelete'], }), __metadata("design:paramtypes", [typeof (_a = typeof __WEBPACK_IMPORTED_MODULE_1__angular_router__["a" /* Router */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_1__angular_router__["a" /* Router */]) === "function" && _a || Object]) ], RankItemComponent); var _a; //# sourceMappingURL=rank-item.component.js.map /***/ }), /* 144 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_common__ = __webpack_require__(17); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_forms__ = __webpack_require__(9); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_router__ = __webpack_require__(4); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rxjs_Observable__ = __webpack_require__(0); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rxjs_Observable___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_rxjs_Observable__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__services_rank_service_rank_service__ = __webpack_require__(52); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return RankListComponent; }); var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var RankListComponent = (function () { function RankListComponent(rankService, router, route, location) { this.rankService = rankService; this.router = router; this.route = route; this.location = location; this.selectedRankId = null; this.searchTerm = new __WEBPACK_IMPORTED_MODULE_2__angular_forms__["f" /* FormControl */](); } RankListComponent.prototype.ngOnInit = function () { var _this = this; this.ranks$ = this.rankService.ranks$; var paramsStream = this.route.queryParams .map(function (params) { return decodeURI(params['query'] || ''); }) .do(function (query) { return _this.searchTerm.setValue(query); }); var searchTermStream = this.searchTerm.valueChanges .debounceTime(400) .do(function (query) { return _this.adjustBrowserUrl(query); }); __WEBPACK_IMPORTED_MODULE_4_rxjs_Observable__["Observable"].merge(paramsStream, searchTermStream) .distinctUntilChanged() .switchMap(function (query) { return _this.rankService.findRanks(query, _this.fractionRadioSelect); }) .subscribe(); }; RankListComponent.prototype.openNewRankForm = function () { this.router.navigate([{ outlets: { 'right': ['new'] } }], { relativeTo: this.route }); }; RankListComponent.prototype.selectRank = function (rankId) { this.selectedRankId = rankId; this.router.navigate([{ outlets: { 'right': ['overview', rankId] } }], { relativeTo: this.route }); }; RankListComponent.prototype.filterRanksByFraction = function (query, fractionFilter) { if (query === void 0) { query = ''; } this.ranks$ = this.rankService.findRanks(query, fractionFilter); }; RankListComponent.prototype.adjustBrowserUrl = function (queryString) { if (queryString === void 0) { queryString = ''; } var absoluteUrl = this.location.path().split('?')[0]; var queryPart = queryString !== '' ? "query=" + queryString : ''; this.location.replaceState(absoluteUrl, queryPart); }; return RankListComponent; }()); RankListComponent = __decorate([ __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["_3" /* Component */])({ selector: 'rank-list', template: __webpack_require__(252), styles: [__webpack_require__(226)] }), __metadata("design:paramtypes", [typeof (_a = typeof __WEBPACK_IMPORTED_MODULE_5__services_rank_service_rank_service__["a" /* RankService */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_5__services_rank_service_rank_service__["a" /* RankService */]) === "function" && _a || Object, typeof (_b = typeof __WEBPACK_IMPORTED_MODULE_3__angular_router__["a" /* Router */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_3__angular_router__["a" /* Router */]) === "function" && _b || Object, typeof (_c = typeof __WEBPACK_IMPORTED_MODULE_3__angular_router__["c" /* ActivatedRoute */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_3__angular_router__["c" /* ActivatedRoute */]) === "function" && _c || Object, typeof (_d = typeof __WEBPACK_IMPORTED_MODULE_1__angular_common__["e" /* Location */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_1__angular_common__["e" /* Location */]) === "function" && _d || Object]) ], RankListComponent); var _a, _b, _c, _d; //# sourceMappingURL=rank-list.component.js.map /***/ }), /* 145 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_router__ = __webpack_require__(4); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__services_rank_service_rank_service__ = __webpack_require__(52); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return RankOverviewComponent; }); var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var RankOverviewComponent = (function () { function RankOverviewComponent(route, rankService) { this.route = route; this.rankService = rankService; this.showSuccessLabel = false; this.showImageError = false; } RankOverviewComponent.prototype.ngOnInit = function () { var _this = this; this.route.params.subscribe(function (params) { _this.rankService.getRank(params['id']).subscribe(function (rank) { _this.rank = rank; _this.imagePreview = 'resource/rank/' + rank._id + '.png?' + Date.now(); }); }); }; /** * register change on file input and save to local fileList * @param event */ RankOverviewComponent.prototype.fileChange = function (event) { if (!event.target.files[0].name.endsWith('.png')) { this.showImageError = true; this.fileList = undefined; } else { this.showImageError = false; this.fileList = event.target.files; } }; RankOverviewComponent.prototype.update = function (attrName, inputField) { var _this = this; var inputValue = inputField.value; if (inputValue.length > 0 && this.rank[attrName] !== inputValue) { var updateObject = { _id: this.rank._id }; updateObject[attrName] = inputValue; this.rankService.updateRank(updateObject) .subscribe(function (rank) { _this.rank = rank; inputField.value = ''; _this.showSuccessLabel = true; setTimeout(function () { _this.showSuccessLabel = false; }, 2000); }); } }; RankOverviewComponent.prototype.updateGraphic = function (fileInput) { var _this = this; if (this.fileList && this.fileList.length > 0) { var file = this.fileList[0]; this.rankService.updateRankGraphic(this.rank._id, file) .subscribe(function (res) { setTimeout(function () { _this.imagePreview = 'resource/rank/' + _this.rank._id + '.png?' + Date.now(); }, 300); fileInput.value = ''; _this.showSuccessLabel = true; setTimeout(function () { _this.showSuccessLabel = false; }, 2000); }); } }; return RankOverviewComponent; }()); RankOverviewComponent = __decorate([ __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["_3" /* Component */])({ template: __webpack_require__(253), styles: [__webpack_require__(227), __webpack_require__(45)], }), __metadata("design:paramtypes", [typeof (_a = typeof __WEBPACK_IMPORTED_MODULE_1__angular_router__["c" /* ActivatedRoute */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_1__angular_router__["c" /* ActivatedRoute */]) === "function" && _a || Object, typeof (_b = typeof __WEBPACK_IMPORTED_MODULE_2__services_rank_service_rank_service__["a" /* RankService */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_2__services_rank_service_rank_service__["a" /* RankService */]) === "function" && _b || Object]) ], RankOverviewComponent); var _a, _b; //# sourceMappingURL=rank-overview.component.js.map /***/ }), /* 146 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return RankComponent; }); var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var RankComponent = (function () { function RankComponent() { } return RankComponent; }()); RankComponent = __decorate([ __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["_3" /* Component */])({ selector: 'ranks', template: __webpack_require__(254), styles: [__webpack_require__(228)] }), __metadata("design:paramtypes", []) ], RankComponent); //# sourceMappingURL=ranks.component.js.map /***/ }), /* 147 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ranks_component__ = __webpack_require__(146); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__rank_list_rank_list_component__ = __webpack_require__(144); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__rank_overview_rank_overview_component__ = __webpack_require__(145); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ranksRoutes; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return ranksRoutingComponents; }); var ranksRoutes = [{ path: '', component: __WEBPACK_IMPORTED_MODULE_0__ranks_component__["a" /* RankComponent */], children: [ { path: '', component: __WEBPACK_IMPORTED_MODULE_1__rank_list_rank_list_component__["a" /* RankListComponent */] } ] }, { path: 'overview/:id', component: __WEBPACK_IMPORTED_MODULE_2__rank_overview_rank_overview_component__["a" /* RankOverviewComponent */], outlet: 'right' }]; var ranksRoutingComponents = [__WEBPACK_IMPORTED_MODULE_0__ranks_component__["a" /* RankComponent */], __WEBPACK_IMPORTED_MODULE_1__rank_list_rank_list_component__["a" /* RankListComponent */], __WEBPACK_IMPORTED_MODULE_2__rank_overview_rank_overview_component__["a" /* RankOverviewComponent */]]; //# sourceMappingURL=ranks.routing.js.map /***/ }), /* 148 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_forms__ = __webpack_require__(9); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ShowErrorComponent; }); var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var ShowErrorComponent = (function () { function ShowErrorComponent(ngForm) { this.displayName = ''; this.form = ngForm.form; } Object.defineProperty(ShowErrorComponent.prototype, "errorMessages", { get: function () { var control = this.form.get(this.controlPath); var messages = []; if (!control || !(control.touched) || !control.errors) { return null; } for (var code in control.errors) { // Berechnung der lesbaren Fehlermeldungen if (control.errors.hasOwnProperty(code)) { var error = control.errors[code]; var message = ''; switch (code) { case 'required': message = this.displayName + " ist ein Pflichtfeld"; break; case 'minlength': message = this.displayName + " muss mindestens " + error.requiredLength + " Zeichen enthalten"; break; case 'maxlength': message = this.displayName + " darf maximal " + error.requiredLength + " Zeichen enthalten"; break; case 'invalidEMail': message = "Bitte geben Sie eine g\u00FCltige E-Mail Adresse an"; break; case 'userNotFound': message = "Der eingetragene Benutzer existiert nicht."; break; default: message = name + " ist nicht valide"; } messages.push(message); } } return messages; }, enumerable: true, configurable: true }); return ShowErrorComponent; }()); __decorate([ __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["n" /* Input */])('path'), __metadata("design:type", Object) ], ShowErrorComponent.prototype, "controlPath", void 0); __decorate([ __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["n" /* Input */])('text'), __metadata("design:type", Object) ], ShowErrorComponent.prototype, "displayName", void 0); ShowErrorComponent = __decorate([ __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["_3" /* Component */])({ selector: 'show-error', template: "\n
\n
\n {{errorMessage}}\n
\n
" }), __metadata("design:paramtypes", [typeof (_a = typeof __WEBPACK_IMPORTED_MODULE_1__angular_forms__["e" /* NgForm */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_1__angular_forms__["e" /* NgForm */]) === "function" && _a || Object]) ], ShowErrorComponent); var _a; //# sourceMappingURL=show-error.component.js.map /***/ }), /* 149 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_router__ = __webpack_require__(4); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_forms__ = __webpack_require__(9); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__services_squad_service_squad_service__ = __webpack_require__(29); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return CreateSquadComponent; }); var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var CreateSquadComponent = (function () { function CreateSquadComponent(route, router, squadService) { this.route = route; this.router = router; this.squadService = squadService; this.squad = { name: '', fraction: '', sortingNumber: 0 }; this.saved = false; this.showImageError = false; } CreateSquadComponent.prototype.ngOnInit = function () { }; CreateSquadComponent.prototype.fileChange = function (event) { if (!event.target.files[0].name.endsWith('.png')) { this.showImageError = true; this.fileList = undefined; } else { this.showImageError = false; this.fileList = event.target.files; } }; CreateSquadComponent.prototype.saveSquad = function () { var _this = this; if (this.fileList) { var file = this.fileList[0]; this.squadService.submitSquad(this.squad, file) .subscribe(function (squad) { _this.saved = true; _this.router.navigate(['../overview', squad._id], { relativeTo: _this.route }); }); } else { return window.alert("Bild ist ein Pflichtfeld"); } }; CreateSquadComponent.prototype.cancel = function () { //this.location.back(); this.router.navigate(['/cc-squads']); return false; }; CreateSquadComponent.prototype.canDeactivate = function () { if (this.saved || !this.form.dirty) { return true; } return window.confirm("Ihr Formular besitzt ungespeicherte \u00C4nderungen, m\u00F6chten Sie die Seite wirklich verlassen?"); }; return CreateSquadComponent; }()); __decorate([ __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["_15" /* ViewChild */])(__WEBPACK_IMPORTED_MODULE_2__angular_forms__["e" /* NgForm */]), __metadata("design:type", typeof (_a = typeof __WEBPACK_IMPORTED_MODULE_2__angular_forms__["e" /* NgForm */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_2__angular_forms__["e" /* NgForm */]) === "function" && _a || Object) ], CreateSquadComponent.prototype, "form", void 0); CreateSquadComponent = __decorate([ __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["_3" /* Component */])({ template: __webpack_require__(255), styles: [__webpack_require__(229), __webpack_require__(72)] }), __metadata("design:paramtypes", [typeof (_b = typeof __WEBPACK_IMPORTED_MODULE_1__angular_router__["c" /* ActivatedRoute */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_1__angular_router__["c" /* ActivatedRoute */]) === "function" && _b || Object, typeof (_c = typeof __WEBPACK_IMPORTED_MODULE_1__angular_router__["a" /* Router */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_1__angular_router__["a" /* Router */]) === "function" && _c || Object, typeof (_d = typeof __WEBPACK_IMPORTED_MODULE_3__services_squad_service_squad_service__["a" /* SquadService */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_3__services_squad_service_squad_service__["a" /* SquadService */]) === "function" && _d || Object]) ], CreateSquadComponent); var _a, _b, _c, _d; //# sourceMappingURL=new-squad.component.js.map /***/ }), /* 150 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_router__ = __webpack_require__(4); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return SquadItemComponent; }); var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var SquadItemComponent = (function () { function SquadItemComponent(router) { this.router = router; this.squadSelected = new __WEBPACK_IMPORTED_MODULE_0__angular_core__["r" /* EventEmitter */](); this.squadDelete = new __WEBPACK_IMPORTED_MODULE_0__angular_core__["r" /* EventEmitter */](); } SquadItemComponent.prototype.select = function () { this.squadSelected.emit(this.squad._id); }; SquadItemComponent.prototype.delete = function () { this.squadDelete.emit(this.squad); }; SquadItemComponent.prototype.ngAfterViewChecked = function () { //var taskId = (this.task ? this.task.id : ''); // console.log(`Task ${taskId} checked ${++this.checkCounter} times`) }; return SquadItemComponent; }()); SquadItemComponent = __decorate([ __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["_3" /* Component */])({ selector: 'pjm-squad-item', template: __webpack_require__(256), styles: [__webpack_require__(230)], changeDetection: __WEBPACK_IMPORTED_MODULE_0__angular_core__["_4" /* ChangeDetectionStrategy */].OnPush, inputs: ['squad', 'selected'], outputs: ['squadSelected', 'squadDelete'], }), __metadata("design:paramtypes", [typeof (_a = typeof __WEBPACK_IMPORTED_MODULE_1__angular_router__["a" /* Router */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_1__angular_router__["a" /* Router */]) === "function" && _a || Object]) ], SquadItemComponent); var _a; //# sourceMappingURL=squad-item.component.js.map /***/ }), /* 151 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_common__ = __webpack_require__(17); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_forms__ = __webpack_require__(9); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_router__ = __webpack_require__(4); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rxjs_Observable__ = __webpack_require__(0); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rxjs_Observable___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_rxjs_Observable__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__services_squad_service_squad_service__ = __webpack_require__(29); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return SquadListComponent; }); var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var SquadListComponent = (function () { function SquadListComponent(squadService, router, route, location) { this.squadService = squadService; this.router = router; this.route = route; this.location = location; this.selectedSquadId = null; this.searchTerm = new __WEBPACK_IMPORTED_MODULE_2__angular_forms__["f" /* FormControl */](); } SquadListComponent.prototype.ngOnInit = function () { var _this = this; this.squads$ = this.squadService.squads$; var paramsStream = this.route.queryParams .map(function (params) { return decodeURI(params['query'] || ''); }) .do(function (query) { return _this.searchTerm.setValue(query); }); var searchTermStream = this.searchTerm.valueChanges .debounceTime(400) .do(function (query) { return _this.adjustBrowserUrl(query); }); __WEBPACK_IMPORTED_MODULE_4_rxjs_Observable__["Observable"].merge(paramsStream, searchTermStream) .distinctUntilChanged() .switchMap(function (query) { return _this.squadService.findSquads(query, _this.fractionRadioSelect); }) .subscribe(); }; SquadListComponent.prototype.openNewSquadForm = function () { this.router.navigate([{ outlets: { 'right': ['new'] } }], { relativeTo: this.route }); }; SquadListComponent.prototype.selectSquad = function (squadId) { this.selectedSquadId = squadId; this.router.navigate([{ outlets: { 'right': ['overview', squadId] } }], { relativeTo: this.route }); }; SquadListComponent.prototype.filterSquadsByFraction = function (query, fractionFilter) { if (query === void 0) { query = ''; } this.squads$ = this.squadService.findSquads(query, fractionFilter); }; SquadListComponent.prototype.adjustBrowserUrl = function (queryString) { if (queryString === void 0) { queryString = ''; } var absoluteUrl = this.location.path().split('?')[0]; var queryPart = queryString !== '' ? "query=" + queryString : ''; this.location.replaceState(absoluteUrl, queryPart); }; return SquadListComponent; }()); SquadListComponent = __decorate([ __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["_3" /* Component */])({ selector: 'squad-list', template: __webpack_require__(257), styles: [__webpack_require__(231)] }), __metadata("design:paramtypes", [typeof (_a = typeof __WEBPACK_IMPORTED_MODULE_5__services_squad_service_squad_service__["a" /* SquadService */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_5__services_squad_service_squad_service__["a" /* SquadService */]) === "function" && _a || Object, typeof (_b = typeof __WEBPACK_IMPORTED_MODULE_3__angular_router__["a" /* Router */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_3__angular_router__["a" /* Router */]) === "function" && _b || Object, typeof (_c = typeof __WEBPACK_IMPORTED_MODULE_3__angular_router__["c" /* ActivatedRoute */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_3__angular_router__["c" /* ActivatedRoute */]) === "function" && _c || Object, typeof (_d = typeof __WEBPACK_IMPORTED_MODULE_1__angular_common__["e" /* Location */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_1__angular_common__["e" /* Location */]) === "function" && _d || Object]) ], SquadListComponent); var _a, _b, _c, _d; //# sourceMappingURL=squad-list.component.js.map /***/ }), /* 152 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_router__ = __webpack_require__(4); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__services_squad_service_squad_service__ = __webpack_require__(29); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return SquadOverviewComponent; }); var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var SquadOverviewComponent = (function () { function SquadOverviewComponent(router, route, squadService) { this.router = router; this.route = route; this.squadService = squadService; this.showSuccessLabel = false; this.showImageError = false; } SquadOverviewComponent.prototype.ngOnInit = function () { var _this = this; this.route.params.subscribe(function (params) { _this.squadService.getSquad(params['id']).subscribe(function (squad) { _this.squad = squad; _this.imagePreview = 'resource/squad/' + squad._id + '.png?' + Date.now(); }); }); }; /** * register file change and save to fileList */ SquadOverviewComponent.prototype.fileChange = function (event) { if (!event.target.files[0].name.endsWith('.png')) { this.showImageError = true; this.fileList = undefined; } else { this.showImageError = false; this.fileList = event.target.files; } }; SquadOverviewComponent.prototype.update = function (attrName, inputField) { var _this = this; var inputValue = inputField.value; if (inputValue.length > 0 && this.squad[attrName] !== inputValue) { var updateObject = { _id: this.squad._id }; updateObject[attrName] = inputValue; this.squadService.submitSquad(updateObject) .subscribe(function (squad) { _this.squad = squad; inputField.value = ''; _this.showSuccessLabel = true; setTimeout(function () { _this.showSuccessLabel = false; }, 2000); }); } }; SquadOverviewComponent.prototype.updateGraphic = function (fileInput) { var _this = this; if (this.fileList && this.fileList.length > 0) { var file = this.fileList[0]; this.squadService.submitSquad({ _id: this.squad._id }, file) .subscribe(function (res) { setTimeout(function () { _this.imagePreview = 'resource/squad/' + _this.squad._id + '.png?' + Date.now(); }, 300); fileInput.value = ''; _this.showSuccessLabel = true; setTimeout(function () { _this.showSuccessLabel = false; }, 2000); }); } }; SquadOverviewComponent.prototype.deleteSquad = function (confirm) { var _this = this; if (confirm.toLowerCase() === this.squad.name.toLocaleLowerCase()) { this.squadService.deleteSquad(this.squad) .subscribe(function (res) { _this.router.navigate(['../..'], { relativeTo: _this.route }); }); } }; return SquadOverviewComponent; }()); SquadOverviewComponent = __decorate([ __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["_3" /* Component */])({ template: __webpack_require__(258), styles: [__webpack_require__(232), __webpack_require__(45)], }), __metadata("design:paramtypes", [typeof (_a = typeof __WEBPACK_IMPORTED_MODULE_1__angular_router__["a" /* Router */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_1__angular_router__["a" /* Router */]) === "function" && _a || Object, typeof (_b = typeof __WEBPACK_IMPORTED_MODULE_1__angular_router__["c" /* ActivatedRoute */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_1__angular_router__["c" /* ActivatedRoute */]) === "function" && _b || Object, typeof (_c = typeof __WEBPACK_IMPORTED_MODULE_2__services_squad_service_squad_service__["a" /* SquadService */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_2__services_squad_service_squad_service__["a" /* SquadService */]) === "function" && _c || Object]) ], SquadOverviewComponent); var _a, _b, _c; //# sourceMappingURL=squad-overview.component.js.map /***/ }), /* 153 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return SquadComponent; }); var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var SquadComponent = (function () { function SquadComponent() { } return SquadComponent; }()); SquadComponent = __decorate([ __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["_3" /* Component */])({ selector: 'users', template: __webpack_require__(259), styles: [__webpack_require__(233)] }), __metadata("design:paramtypes", []) ], SquadComponent); //# sourceMappingURL=squads.component.js.map /***/ }), /* 154 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__squads_component__ = __webpack_require__(153); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__squad_overview_squad_overview_component__ = __webpack_require__(152); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__squad_list_squad_list_component__ = __webpack_require__(151); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__new_squad_new_squad_component__ = __webpack_require__(149); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return squadsRoutes; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return squadsRoutingComponents; }); var squadsRoutes = [{ path: '', component: __WEBPACK_IMPORTED_MODULE_0__squads_component__["a" /* SquadComponent */], children: [ { path: '', component: __WEBPACK_IMPORTED_MODULE_2__squad_list_squad_list_component__["a" /* SquadListComponent */] } ] }, { path: 'new', component: __WEBPACK_IMPORTED_MODULE_3__new_squad_new_squad_component__["a" /* CreateSquadComponent */], outlet: 'right' }, { path: 'overview/:id', component: __WEBPACK_IMPORTED_MODULE_1__squad_overview_squad_overview_component__["a" /* SquadOverviewComponent */], outlet: 'right' }]; var squadsRoutingComponents = [__WEBPACK_IMPORTED_MODULE_0__squads_component__["a" /* SquadComponent */], __WEBPACK_IMPORTED_MODULE_2__squad_list_squad_list_component__["a" /* SquadListComponent */], __WEBPACK_IMPORTED_MODULE_1__squad_overview_squad_overview_component__["a" /* SquadOverviewComponent */], __WEBPACK_IMPORTED_MODULE_3__new_squad_new_squad_component__["a" /* CreateSquadComponent */]]; //# sourceMappingURL=squads.routing.js.map /***/ }), /* 155 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_router__ = __webpack_require__(4); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_forms__ = __webpack_require__(9); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__services_user_service_user_service__ = __webpack_require__(30); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return CreateUserComponent; }); var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var CreateUserComponent = (function () { function CreateUserComponent(route, router, userService) { this.route = route; this.router = router; this.userService = userService; this.user = {}; this.saved = false; } CreateUserComponent.prototype.ngOnInit = function () { }; CreateUserComponent.prototype.saveUser = function () { var _this = this; this.userService.submitUser(this.user) .subscribe(function (user) { _this.saved = true; _this.router.navigate(['../overview', user._id], { relativeTo: _this.route }); }); }; CreateUserComponent.prototype.cancel = function () { //this.location.back(); this.router.navigate(['/cc-users']); return false; }; CreateUserComponent.prototype.canDeactivate = function () { if (this.saved || !this.form.dirty) { return true; } return window.confirm("Ihr Formular besitzt ungespeicherte \u00C4nderungen, m\u00F6chten Sie die Seite wirklich verlassen?"); }; return CreateUserComponent; }()); __decorate([ __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["_15" /* ViewChild */])(__WEBPACK_IMPORTED_MODULE_2__angular_forms__["e" /* NgForm */]), __metadata("design:type", typeof (_a = typeof __WEBPACK_IMPORTED_MODULE_2__angular_forms__["e" /* NgForm */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_2__angular_forms__["e" /* NgForm */]) === "function" && _a || Object) ], CreateUserComponent.prototype, "form", void 0); CreateUserComponent = __decorate([ __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["_3" /* Component */])({ template: __webpack_require__(260), styles: [__webpack_require__(234), __webpack_require__(72)] }), __metadata("design:paramtypes", [typeof (_b = typeof __WEBPACK_IMPORTED_MODULE_1__angular_router__["c" /* ActivatedRoute */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_1__angular_router__["c" /* ActivatedRoute */]) === "function" && _b || Object, typeof (_c = typeof __WEBPACK_IMPORTED_MODULE_1__angular_router__["a" /* Router */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_1__angular_router__["a" /* Router */]) === "function" && _c || Object, typeof (_d = typeof __WEBPACK_IMPORTED_MODULE_3__services_user_service_user_service__["a" /* UserService */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_3__services_user_service_user_service__["a" /* UserService */]) === "function" && _d || Object]) ], CreateUserComponent); var _a, _b, _c, _d; //# sourceMappingURL=new-user.component.js.map /***/ }), /* 156 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_router__ = __webpack_require__(4); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return UserItemComponent; }); var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var UserItemComponent = (function () { function UserItemComponent(router) { this.router = router; this.userSelected = new __WEBPACK_IMPORTED_MODULE_0__angular_core__["r" /* EventEmitter */](); this.userDelete = new __WEBPACK_IMPORTED_MODULE_0__angular_core__["r" /* EventEmitter */](); } UserItemComponent.prototype.select = function () { this.userSelected.emit(this.user._id); }; UserItemComponent.prototype.delete = function () { this.userDelete.emit(this.user); }; UserItemComponent.prototype.ngAfterViewChecked = function () { //var taskId = (this.task ? this.task.id : ''); // console.log(`Task ${taskId} checked ${++this.checkCounter} times`) }; return UserItemComponent; }()); UserItemComponent = __decorate([ __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["_3" /* Component */])({ selector: 'pjm-user-item', template: __webpack_require__(261), styles: [__webpack_require__(235)], changeDetection: __WEBPACK_IMPORTED_MODULE_0__angular_core__["_4" /* ChangeDetectionStrategy */].OnPush, inputs: ['user', 'selected'], outputs: ['userSelected', 'userDelete'] }), __metadata("design:paramtypes", [typeof (_a = typeof __WEBPACK_IMPORTED_MODULE_1__angular_router__["a" /* Router */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_1__angular_router__["a" /* Router */]) === "function" && _a || Object]) ], UserItemComponent); var _a; //# sourceMappingURL=user-item.component.js.map /***/ }), /* 157 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_common__ = __webpack_require__(17); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_forms__ = __webpack_require__(9); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_router__ = __webpack_require__(4); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rxjs_Observable__ = __webpack_require__(0); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rxjs_Observable___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_rxjs_Observable__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__services_user_service_user_service__ = __webpack_require__(30); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return UserListComponent; }); var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var UserListComponent = (function () { function UserListComponent(userService, router, route, location) { this.userService = userService; this.router = router; this.route = route; this.location = location; this.selectedUserId = null; this.searchTerm = new __WEBPACK_IMPORTED_MODULE_2__angular_forms__["f" /* FormControl */](); } UserListComponent.prototype.ngOnInit = function () { var _this = this; this.users$ = this.userService.users$; var paramsStream = this.route.queryParams .map(function (params) { return decodeURI(params['query'] || ''); }) .do(function (query) { return _this.searchTerm.setValue(query); }); var searchTermStream = this.searchTerm.valueChanges .debounceTime(400) .do(function (query) { return _this.adjustBrowserUrl(query); }); __WEBPACK_IMPORTED_MODULE_4_rxjs_Observable__["Observable"].merge(paramsStream, searchTermStream) .distinctUntilChanged() .switchMap(function (query) { return _this.userService.findUsers(query, _this.fractionRadioSelect); }) .subscribe(); }; UserListComponent.prototype.openNewUserForm = function () { this.router.navigate([{ outlets: { 'right': ['new'] } }], { relativeTo: this.route }); }; UserListComponent.prototype.selectUser = function (userId) { this.selectedUserId = userId; this.router.navigate([{ outlets: { 'right': ['overview', userId] } }], { relativeTo: this.route }); }; UserListComponent.prototype.filterUsersByFraction = function (query, fractionFilter) { if (query === void 0) { query = ''; } this.users$ = this.userService.findUsers(query, fractionFilter); }; UserListComponent.prototype.adjustBrowserUrl = function (queryString) { if (queryString === void 0) { queryString = ''; } var absoluteUrl = this.location.path().split('?')[0]; var queryPart = queryString !== '' ? "query=" + queryString : ''; this.location.replaceState(absoluteUrl, queryPart); }; return UserListComponent; }()); UserListComponent = __decorate([ __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["_3" /* Component */])({ selector: 'squad-list', template: __webpack_require__(262), styles: [__webpack_require__(236)] }), __metadata("design:paramtypes", [typeof (_a = typeof __WEBPACK_IMPORTED_MODULE_5__services_user_service_user_service__["a" /* UserService */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_5__services_user_service_user_service__["a" /* UserService */]) === "function" && _a || Object, typeof (_b = typeof __WEBPACK_IMPORTED_MODULE_3__angular_router__["a" /* Router */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_3__angular_router__["a" /* Router */]) === "function" && _b || Object, typeof (_c = typeof __WEBPACK_IMPORTED_MODULE_3__angular_router__["c" /* ActivatedRoute */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_3__angular_router__["c" /* ActivatedRoute */]) === "function" && _c || Object, typeof (_d = typeof __WEBPACK_IMPORTED_MODULE_1__angular_common__["e" /* Location */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_1__angular_common__["e" /* Location */]) === "function" && _d || Object]) ], UserListComponent); var _a, _b, _c, _d; //# sourceMappingURL=user-list.component.js.map /***/ }), /* 158 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_router__ = __webpack_require__(4); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__models_model_interfaces__ = __webpack_require__(141); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__services_user_service_user_service__ = __webpack_require__(30); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__services_squad_service_squad_service__ = __webpack_require__(29); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__services_decoration_service_decoration_service__ = __webpack_require__(28); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__services_awarding_service_awarding_service__ = __webpack_require__(86); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return UserOverviewComponent; }); var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var UserOverviewComponent = (function () { function UserOverviewComponent(router, route, userService, squadService, decorationService, awardingService) { this.router = router; this.route = route; this.userService = userService; this.squadService = squadService; this.decorationService = decorationService; this.awardingService = awardingService; this.model = __WEBPACK_IMPORTED_MODULE_2__models_model_interfaces__; this.showSuccessLabel = false; this.decoPreviewDisplay = 'none'; } UserOverviewComponent.prototype.ngOnInit = function () { var _this = this; this.route.params.subscribe(function (params) { _this.userService.getUser(params['id']).subscribe(function (user) { _this.user = user; }); }); this.squadService.findSquads().subscribe(function (squads) { _this.squads = squads; }); this.decorationService.findDecorations().subscribe(function (decorations) { _this.decorations = decorations; }); }; UserOverviewComponent.prototype.toggleDecoPreview = function (descriptionField, decorationId, image) { this.decoPreviewDisplay = 'flex'; // visible & keep same height for all children var description = this.decorations.find(function (decoration) { return decoration._id === decorationId; }).description; image.src = 'resource/decoration/' + decorationId + '.png'; descriptionField.innerHTML = description; }; UserOverviewComponent.prototype.update = function (attrName, value, inputField) { var _this = this; if (attrName === 'squadId' && value === '---') { value = null; } if (value !== '' && (attrName !== 'rankLvl' || attrName === 'rankLvl' && value >= 0 && value <= 22)) { var updateObject = { _id: this.user._id }; updateObject[attrName] = value; this.userService.updateUser(updateObject) .subscribe(function (user) { _this.user = user; if (inputField) { inputField.value = ''; } _this.showSuccessLabel = true; setTimeout(function () { _this.showSuccessLabel = false; }, 2000); }); } }; UserOverviewComponent.prototype.deleteUser = function (confirm) { var _this = this; if (confirm.toLowerCase() === this.user.username.toLocaleLowerCase()) { this.userService.deleteUser(this.user) .subscribe(function (res) { _this.router.navigate(['../..'], { relativeTo: _this.route }); }); } }; UserOverviewComponent.prototype.deleteAwarding = function (awardingId) { var _this = this; this.awardingService.deleteAwarding(awardingId).subscribe(function (res) { _this.awardingService.getUserAwardings(_this.user._id) .map(function (res) { return res.json(); }) .subscribe(function (awards) { _this.user.awards = awards; _this.showSuccessLabel = true; setTimeout(function () { _this.showSuccessLabel = false; }, 2000); }); }); }; UserOverviewComponent.prototype.addAwarding = function (decorationField, reasonField, previewImage, descriptionField) { var _this = this; var decorationId = decorationField.value; var reason = reasonField.value; if (decorationId && reason.length > 0) { var award = { "userId": this.user._id, "decorationId": decorationId, "reason": reason, "date": Date.now() }; this.awardingService.addAwarding(award).subscribe(function () { _this.awardingService.getUserAwardings(_this.user._id) .map(function (res) { return res.json(); }) .subscribe(function (awards) { _this.user.awards = awards; _this.decoPreviewDisplay = 'none'; decorationField.value = undefined; reasonField.value = ''; previewImage.src = ''; descriptionField.innerHTML = ''; _this.showSuccessLabel = true; setTimeout(function () { _this.showSuccessLabel = false; }, 2000); }); }); } }; return UserOverviewComponent; }()); UserOverviewComponent = __decorate([ __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["_3" /* Component */])({ template: __webpack_require__(263), styles: [__webpack_require__(237), __webpack_require__(45)], }), __metadata("design:paramtypes", [typeof (_a = typeof __WEBPACK_IMPORTED_MODULE_1__angular_router__["a" /* Router */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_1__angular_router__["a" /* Router */]) === "function" && _a || Object, typeof (_b = typeof __WEBPACK_IMPORTED_MODULE_1__angular_router__["c" /* ActivatedRoute */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_1__angular_router__["c" /* ActivatedRoute */]) === "function" && _b || Object, typeof (_c = typeof __WEBPACK_IMPORTED_MODULE_3__services_user_service_user_service__["a" /* UserService */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_3__services_user_service_user_service__["a" /* UserService */]) === "function" && _c || Object, typeof (_d = typeof __WEBPACK_IMPORTED_MODULE_4__services_squad_service_squad_service__["a" /* SquadService */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_4__services_squad_service_squad_service__["a" /* SquadService */]) === "function" && _d || Object, typeof (_e = typeof __WEBPACK_IMPORTED_MODULE_5__services_decoration_service_decoration_service__["a" /* DecorationService */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_5__services_decoration_service_decoration_service__["a" /* DecorationService */]) === "function" && _e || Object, typeof (_f = typeof __WEBPACK_IMPORTED_MODULE_6__services_awarding_service_awarding_service__["a" /* AwardingService */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_6__services_awarding_service_awarding_service__["a" /* AwardingService */]) === "function" && _f || Object]) ], UserOverviewComponent); var _a, _b, _c, _d, _e, _f; //# sourceMappingURL=user-overview.component.js.map /***/ }), /* 159 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return UsersComponent; }); var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var UsersComponent = (function () { function UsersComponent() { } return UsersComponent; }()); UsersComponent = __decorate([ __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["_3" /* Component */])({ selector: 'users', template: __webpack_require__(264), styles: [__webpack_require__(238)] }), __metadata("design:paramtypes", []) ], UsersComponent); //# sourceMappingURL=users.component.js.map /***/ }), /* 160 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__users_component__ = __webpack_require__(159); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__user_overview_user_overview_component__ = __webpack_require__(158); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__user_list_user_list_component__ = __webpack_require__(157); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__new_user_new_user_component__ = __webpack_require__(155); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return usersRoutes; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return usersRoutingComponents; }); var usersRoutes = [{ path: '', component: __WEBPACK_IMPORTED_MODULE_0__users_component__["a" /* UsersComponent */], children: [ { path: '', component: __WEBPACK_IMPORTED_MODULE_2__user_list_user_list_component__["a" /* UserListComponent */] } ] }, { path: 'new', component: __WEBPACK_IMPORTED_MODULE_3__new_user_new_user_component__["a" /* CreateUserComponent */], outlet: 'right' }, { path: 'overview/:id', component: __WEBPACK_IMPORTED_MODULE_1__user_overview_user_overview_component__["a" /* UserOverviewComponent */], outlet: 'right' }]; var usersRoutingComponents = [__WEBPACK_IMPORTED_MODULE_0__users_component__["a" /* UsersComponent */], __WEBPACK_IMPORTED_MODULE_2__user_list_user_list_component__["a" /* UserListComponent */], __WEBPACK_IMPORTED_MODULE_1__user_overview_user_overview_component__["a" /* UserOverviewComponent */], __WEBPACK_IMPORTED_MODULE_3__new_user_new_user_component__["a" /* CreateUserComponent */]]; //# sourceMappingURL=users.routing.js.map /***/ }), /* 161 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return environment; }); // The file contents for the current environment will overwrite these during build. // The build system defaults to the dev environment which uses `environment.ts`, but if you do // `ng build --env=prod` then `environment.prod.ts` will be used instead. // The list of which env maps to which file can be found in `.angular-cli.json`. // The file contents for the current environment will overwrite these during build. var environment = { production: false, e2eMode: false }; //# sourceMappingURL=environment.js.map /***/ }), /* 162 */, /* 163 */, /* 164 */, /* 165 */, /* 166 */, /* 167 */, /* 168 */, /* 169 */, /* 170 */, /* 171 */, /* 172 */, /* 173 */, /* 174 */, /* 175 */, /* 176 */, /* 177 */, /* 178 */, /* 179 */, /* 180 */, /* 181 */, /* 182 */, /* 183 */, /* 184 */, /* 185 */, /* 186 */, /* 187 */, /* 188 */, /* 189 */, /* 190 */, /* 191 */, /* 192 */, /* 193 */, /* 194 */, /* 195 */, /* 196 */, /* 197 */, /* 198 */, /* 199 */, /* 200 */, /* 201 */, /* 202 */, /* 203 */, /* 204 */, /* 205 */, /* 206 */, /* 207 */, /* 208 */, /* 209 */, /* 210 */, /* 211 */, /* 212 */, /* 213 */, /* 214 */, /* 215 */, /* 216 */, /* 217 */ /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__(3)(false); // imports // module exports.push([module.i, "ul {\n list-style-type: none;\n margin: 0;\n padding: 0;\n}\n\nli {\n display: inline;\n}\n\n.content {\n padding-left: 15px;\n padding-right: 15px;\n}\n\n.right {\n float: right;\n width: 300px;\n}\n\n.left {\n float: left;\n width: calc(100% - 300px);\n}\n", ""]); // exports /*** EXPORTS FROM exports-loader ***/ module.exports = module.exports.toString(); /***/ }), /* 218 */ /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__(3)(false); // imports // module exports.push([module.i, "div.squad-list-entry, a.squad-list-entry {\n padding: 8px;\n width: 475px;\n border-radius: 2px;\n border: lightgrey solid 1px;\n cursor: pointer;\n margin-bottom: -1px;\n}\n\n.marked {\n background: lightgrey;\n}\n\nspan {\n cursor: pointer;\n}\n\na {\n font-size: x-large;\n font-weight: 700;\n}\n\nsmall {\n color: grey;\n}\n\n.trash {\n padding-top: 18px;\n font-size: 17px;\n margin-left: -10px;\n}\n\n.selected {\n background-color: aliceblue;\n}\n\n@-webkit-keyframes fadeIn {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n\n@keyframes fadeIn {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n\n.fade-in {\n opacity: 0; /* make things invisible upon start */\n -webkit-animation: fadeIn ease-in 1; /* call our keyframe named fadeIn, use animattion ease-in and repeat it only 1 time */\n animation: fadeIn ease-in 1;\n\n -webkit-animation-fill-mode: forwards; /* this makes sure that after animation is done we remain at the last keyframe value (opacity: 1)*/\n animation-fill-mode: forwards;\n\n -webkit-animation-duration: 0.5s;\n animation-duration: 0.5s;\n}\n", ""]); // exports /*** EXPORTS FROM exports-loader ***/ module.exports = module.exports.toString(); /***/ }), /* 219 */ /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__(3)(false); // imports // module exports.push([module.i, ".search-bar {\n padding-top: 20px;\n padding-bottom: 20px;\n}\n\n.decoration-list {\n width: 100%;\n}\n", ""]); // exports /*** EXPORTS FROM exports-loader ***/ module.exports = module.exports.toString(); /***/ }), /* 220 */ /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__(3)(false); // imports // module exports.push([module.i, "", ""]); // exports /*** EXPORTS FROM exports-loader ***/ module.exports = module.exports.toString(); /***/ }), /* 221 */ /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__(3)(false); // imports // module exports.push([module.i, "", ""]); // exports /*** EXPORTS FROM exports-loader ***/ module.exports = module.exports.toString(); /***/ }), /* 222 */ /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__(3)(false); // imports // module exports.push([module.i, "", ""]); // exports /*** EXPORTS FROM exports-loader ***/ module.exports = module.exports.toString(); /***/ }), /* 223 */ /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__(3)(false); // imports // module exports.push([module.i, ".form-signin {\n max-width: 330px;\n padding: 15px;\n margin: 0 auto;\n}\n\n.form-signin .form-signin-heading, .form-signin .checkbox {\n margin-bottom: 10px;\n}\n\n.form-signin .checkbox {\n font-weight: normal;\n}\n\n.form-signin .form-control {\n position: relative;\n font-size: 16px;\n height: auto;\n padding: 10px;\n box-sizing: border-box;\n}\n\n.form-signin .form-control:focus {\n z-index: 2;\n}\n\n.form-signin input[type=\"text\"] {\n margin-bottom: 5px;\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n}\n\n.form-signin input[type=\"password\"] {\n margin-bottom: 10px;\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n}\n\n.account-wall {\n margin-top: 20px;\n padding: 40px 0px 20px 0px;\n background-color: #f7f7f7;\n box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.3);\n}\n\n.login-title {\n color: #555;\n font-size: 18px;\n font-weight: 400;\n display: block;\n}\n\n.profile-img {\n width: 96px;\n height: 96px;\n margin: 0 auto 10px;\n display: block;\n border-radius: 50%;\n}\n\n.need-help {\n margin-top: 10px;\n}\n\n.new-account {\n display: block;\n margin-top: 10px;\n}\n\n/* Loading Animation */\n.glyphicon-refresh-animate {\n -webkit-animation: spin 0.9s linear infinite;\n animation: spin 0.9s linear infinite;\n}\n\n@-webkit-keyframes spin {\n 0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }\n 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); }\n}\n\n@keyframes spin {\n 0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }\n 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); }\n}\n", ""]); // exports /*** EXPORTS FROM exports-loader ***/ module.exports = module.exports.toString(); /***/ }), /* 224 */ /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__(3)(false); // imports // module exports.push([module.i, "", ""]); // exports /*** EXPORTS FROM exports-loader ***/ module.exports = module.exports.toString(); /***/ }), /* 225 */ /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__(3)(false); // imports // module exports.push([module.i, "div.rank-list-entry, a.rank-list-entry {\n padding: 8px;\n width: 475px;\n border-radius: 2px;\n border: lightgrey solid 1px;\n cursor: pointer;\n margin-bottom: -1px;\n}\n\n.marked {\n background: lightgrey;\n}\n\nspan {\n cursor: pointer;\n}\n\na {\n font-size: x-large;\n font-weight: 700;\n}\n\nsmall {\n color: grey;\n}\n\n.trash {\n padding-top: 18px;\n font-size: 17px;\n margin-left: -10px;\n}\n\n.selected {\n background-color: aliceblue;\n}\n\n@-webkit-keyframes fadeIn {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n\n@keyframes fadeIn {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n\n.fade-in {\n opacity: 0; /* make things invisible upon start */\n -webkit-animation: fadeIn ease-in 1; /* call our keyframe named fadeIn, use animattion ease-in and repeat it only 1 time */\n animation: fadeIn ease-in 1;\n\n -webkit-animation-fill-mode: forwards; /* this makes sure that after animation is done we remain at the last keyframe value (opacity: 1)*/\n animation-fill-mode: forwards;\n\n -webkit-animation-duration: 0.5s;\n animation-duration: 0.5s;\n}\n", ""]); // exports /*** EXPORTS FROM exports-loader ***/ module.exports = module.exports.toString(); /***/ }), /* 226 */ /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__(3)(false); // imports // module exports.push([module.i, ".search-bar {\n padding-top: 20px;\n padding-bottom: 20px;\n}\n\n.rank-list {\n width: 100%;\n}\n", ""]); // exports /*** EXPORTS FROM exports-loader ***/ module.exports = module.exports.toString(); /***/ }), /* 227 */ /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__(3)(false); // imports // module exports.push([module.i, "", ""]); // exports /*** EXPORTS FROM exports-loader ***/ module.exports = module.exports.toString(); /***/ }), /* 228 */ /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__(3)(false); // imports // module exports.push([module.i, "#left {\n width: 320px;\n float: left;\n padding-right: 10px;\n}\n\n#right {\n overflow: hidden\n}\n", ""]); // exports /*** EXPORTS FROM exports-loader ***/ module.exports = module.exports.toString(); /***/ }), /* 229 */ /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__(3)(false); // imports // module exports.push([module.i, "", ""]); // exports /*** EXPORTS FROM exports-loader ***/ module.exports = module.exports.toString(); /***/ }), /* 230 */ /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__(3)(false); // imports // module exports.push([module.i, "div.squad-list-entry, a.squad-list-entry {\n padding: 8px;\n width: 475px;\n border-radius: 2px;\n border: lightgrey solid 1px;\n cursor: pointer;\n margin-bottom: -1px;\n}\n\n.marked {\n background: lightgrey;\n}\n\nspan {\n cursor: pointer;\n}\n\na {\n font-size: x-large;\n font-weight: 700;\n}\n\nsmall {\n color: grey;\n}\n\n.trash {\n padding-top: 18px;\n font-size: 17px;\n margin-left: -10px;\n}\n\n.selected {\n background-color: aliceblue;\n}\n\n@-webkit-keyframes fadeIn {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n\n@keyframes fadeIn {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n\n.fade-in {\n opacity: 0; /* make things invisible upon start */\n -webkit-animation: fadeIn ease-in 1; /* call our keyframe named fadeIn, use animattion ease-in and repeat it only 1 time */\n animation: fadeIn ease-in 1;\n\n -webkit-animation-fill-mode: forwards; /* this makes sure that after animation is done we remain at the last keyframe value (opacity: 1)*/\n animation-fill-mode: forwards;\n\n -webkit-animation-duration: 0.5s;\n animation-duration: 0.5s;\n}\n", ""]); // exports /*** EXPORTS FROM exports-loader ***/ module.exports = module.exports.toString(); /***/ }), /* 231 */ /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__(3)(false); // imports // module exports.push([module.i, ".search-bar {\n padding-top: 20px;\n padding-bottom: 20px;\n}\n\n.squad-list {\n width: 100%;\n}\n", ""]); // exports /*** EXPORTS FROM exports-loader ***/ module.exports = module.exports.toString(); /***/ }), /* 232 */ /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__(3)(false); // imports // module exports.push([module.i, "", ""]); // exports /*** EXPORTS FROM exports-loader ***/ module.exports = module.exports.toString(); /***/ }), /* 233 */ /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__(3)(false); // imports // module exports.push([module.i, "#left {\n width: 320px;\n float: left;\n padding-right: 10px;\n}\n\n#right {\n overflow: hidden\n}\n", ""]); // exports /*** EXPORTS FROM exports-loader ***/ module.exports = module.exports.toString(); /***/ }), /* 234 */ /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__(3)(false); // imports // module exports.push([module.i, "", ""]); // exports /*** EXPORTS FROM exports-loader ***/ module.exports = module.exports.toString(); /***/ }), /* 235 */ /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__(3)(false); // imports // module exports.push([module.i, "div.user-list-entry, a.user-list-entry {\n padding: 8px;\n width: 475px;\n border-radius: 2px;\n border: lightgrey solid 1px;\n cursor: pointer;\n margin-bottom: -1px;\n}\n\n.marked {\n background: lightgrey;\n}\n\nspan {\n cursor: pointer;\n}\n\na {\n font-size: x-large;\n font-weight: 700;\n}\n\nsmall {\n color: grey;\n}\n\n.trash {\n padding-top: 18px;\n font-size: 17px;\n margin-left: -10px;\n}\n\n.selected {\n background-color: aliceblue;\n}\n\n@-webkit-keyframes fadeIn {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n\n@keyframes fadeIn {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n\n.fade-in {\n opacity: 0; /* make things invisible upon start */\n -webkit-animation: fadeIn ease-in 1; /* call our keyframe named fadeIn, use animattion ease-in and repeat it only 1 time */\n animation: fadeIn ease-in 1;\n\n -webkit-animation-fill-mode: forwards; /* this makes sure that after animation is done we remain at the last keyframe value (opacity: 1)*/\n animation-fill-mode: forwards;\n\n -webkit-animation-duration: 0.5s;\n animation-duration: 0.5s;\n}\n", ""]); // exports /*** EXPORTS FROM exports-loader ***/ module.exports = module.exports.toString(); /***/ }), /* 236 */ /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__(3)(false); // imports // module exports.push([module.i, ".search-bar {\n padding-top: 20px;\n padding-bottom: 20px;\n}\n\n.user-list {\n width: 100%;\n}\n\n.fraction-blufor {\n color: mediumblue;\n font-weight: bold;\n}\n\n.fraction-opfor {\n color: red;\n font-weight: bold;\n}\n", ""]); // exports /*** EXPORTS FROM exports-loader ***/ module.exports = module.exports.toString(); /***/ }), /* 237 */ /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__(3)(false); // imports // module exports.push([module.i, ".decoration-preview {\n background-color: white;\n padding: 5px;\n}\n", ""]); // exports /*** EXPORTS FROM exports-loader ***/ module.exports = module.exports.toString(); /***/ }), /* 238 */ /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__(3)(false); // imports // module exports.push([module.i, "", ""]); // exports /*** EXPORTS FROM exports-loader ***/ module.exports = module.exports.toString(); /***/ }), /* 239 */, /* 240 */, /* 241 */, /* 242 */, /* 243 */ /***/ (function(module, exports) { module.exports = "
\n \n\n
\n
\n
\n \n
\n
\n \n
\n
\n \n
\n
\n" /***/ }), /* 244 */ /***/ (function(module, exports) { module.exports = "
\n\n
\n
\n \n {{decoration.name}}\n \n
\n CSAT\n NATO\n Global\n - Sortierung: {{decoration.sortingNumber}}\n
\n
\n
\n" /***/ }), /* 245 */ /***/ (function(module, exports) { module.exports = "
\n

Übersicht

\n
\n
\n \n \n \n
\n \n Neue Auszeichnung hinzufügen\n \n
\n\n
\n \n \n \n \n
\n\n
\n \n \n
\n\n
\n" /***/ }), /* 246 */ /***/ (function(module, exports) { module.exports = "
\n

Auszeichnung-Details\n \n Erfolgreich gespeichert\n \n

\n
\n
\n\n\n
\n
\n
\n \n
\n
\n {{decoration.name}}\n
\n
\n \n
\n \n
\n
\n
\n \n
\n
\n CSAT\n
\n
\n NATO\n
\n
\n
\n
\n
\n
\n \n
\n
\n Orden\n
\n
\n Ribbon\n
\n
\n
\n
\n
\n\n
\n
\n
\n
\n \n
\n
\n {{decoration.sortingNumber}}\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
\n \n
\n
\n \n
\n
\n \n \n \n Bild muss im PNG Format vorliegen\n \n
\n
\n \n Bestätigen\n
\n
\n
\n\n
\n
\n
\n
\n \n
\n
\n \n
\n \n\n
\n
\n\n\n
\n
\n
\n" /***/ }), /* 247 */ /***/ (function(module, exports) { module.exports = "\n" /***/ }), /* 248 */ /***/ (function(module, exports) { module.exports = "
\n

Neue Auszeichnung hinzufügen

\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\n
\n \n \n \n
\n\n
\n \n \n \n Bild muss im PNG Format vorliegen\n \n
\n\n \n \n
\n" /***/ }), /* 249 */ /***/ (function(module, exports) { module.exports = "
\n\n
\n \n\n \n \n\n \n \n\n\n
\n \n \n Login fehlgeschlagen\n \n
\n\n\n
\n\n\n
\n\n" /***/ }), /* 250 */ /***/ (function(module, exports) { module.exports = "

Oops, diese Seite kennen wir nicht...

\n" /***/ }), /* 251 */ /***/ (function(module, exports) { module.exports = "
\n\n
\n
\n \n {{rank.name}}\n \n
\n CSAT\n NATO\n - Stufe {{rank.level}}\n
\n
\n
\n" /***/ }), /* 252 */ /***/ (function(module, exports) { module.exports = "
\n

Übersicht

\n
\n
\n \n \n \n
\n
\n\n
\n \n \n \n \n
\n\n
\n \n \n
\n\n
\n" /***/ }), /* 253 */ /***/ (function(module, exports) { module.exports = "
\n

Rang-Details\n \n Erfolgreich gespeichert\n \n

\n
\n
\n\n\n
\n
\n
\n \n
\n
\n {{rank.name}}\n
\n
\n \n
\n \n
\n
\n
\n \n
\n
\n CSAT\n
\n
\n NATO\n
\n
\n
\n
\n
\n
\n \n
\n
\n {{rank.level}}\n
\n
\n
\n
\n
\n\n
\n
\n
\n
\n \n
\n
\n \n
\n
\n \n \n \n Bild muss im PNG Format vorliegen\n \n
\n
\n \n Bestätigen\n
\n
\n
\n\n\n
\n
\n
\n" /***/ }), /* 254 */ /***/ (function(module, exports) { module.exports = "\n" /***/ }), /* 255 */ /***/ (function(module, exports) { module.exports = "
\n

Neues Squad hinzufügen

\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 Bild muss im PNG Format vorliegen\n \n
\n\n \n \n \n
\n" /***/ }), /* 256 */ /***/ (function(module, exports) { module.exports = "
\n\n
\n
\n \n {{squad.name}}\n \n
\n CSAT\n NATO\n
\n
\n
\n" /***/ }), /* 257 */ /***/ (function(module, exports) { module.exports = "
\n

Übersicht

\n
\n
\n \n \n \n
\n \n Neues Squad hinzufügen\n \n
\n\n
\n \n \n \n \n
\n\n
\n \n \n
\n\n
\n" /***/ }), /* 258 */ /***/ (function(module, exports) { module.exports = "
\n

Squad-Details\n \n Erfolgreich gespeichert\n \n

\n
\n
\n\n\n
\n
\n
\n \n
\n
\n {{squad.name}}\n
\n
\n \n
\n \n
\n
\n \n
\n
\n CSAT\n
\n
\n NATO\n
\n
\n
\n
\n\n
\n
\n
\n
\n \n
\n
\n {{squad.sortingNumber}}\n
\n
\n \n
\n \n
\n
\n\n
\n
\n
\n
\n \n
\n
\n \n
\n
\n \n \n \n Bild muss im PNG Format vorliegen\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
\n
\n
\n" /***/ }), /* 259 */ /***/ (function(module, exports) { module.exports = "\n" /***/ }), /* 260 */ /***/ (function(module, exports) { module.exports = "
\n

Neuen Teilnehmer hinzufügen

\n\n
\n \n \n\n \n
\n\n \n\n \n
\n" /***/ }), /* 261 */ /***/ (function(module, exports) { module.exports = "
\n\n
\n
\n \n {{user.username}}\n \n
\n CSAT - {{user.squad.name}}\n NATO - {{user.squad.name}}\n ohne Squad/Fraktion\n
\n
\n
\n" /***/ }), /* 262 */ /***/ (function(module, exports) { module.exports = "
\n

Übersicht

\n
\n
\n \n \n \n
\n \n Neuen Teilnehmer hinzufügen\n \n
\n\n
\n \n \n \n \n
\n\n
\n \n \n
\n
\n
\n" /***/ }), /* 263 */ /***/ (function(module, exports) { module.exports = "
\n

Teilnehmer-Details\n \n Erfolgreich gespeichert\n \n

\n
\n
\n\n\n
\n
\n
\n \n
\n
\n {{user.username}}\n
\n
\n \n
\n \n
\n
\n
\n \n
\n
\n Ohne Fraktion\n
\n
\n CSAT\n
\n
\n NATO\n
\n
\n
\n
\n
\n\n
\n
\n
\n
\n \n
\n
Ohne Squad
\n
{{user.squad.name}}
\n
\n \n
\n \n
\n
\n\n
\n
\n
\n
\n \n
\n
Ohne Rang
\n
{{user.rank.name}}
\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
\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
\n
\n Bild\n
\n
\n Bezeichnung\n
\n
\n Begründung\n
\n
\n Datum\n
\n
\n  \n
\n
\n
\n
\n \n
\n
\n \n
\n\n
\n {{award.decorationId.name}}\n
\n
\n {{award.reason}}\n
\n
\n {{award.date | date: 'dd.MM.yyyy'}}\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
\n
\n
\n" /***/ }), /* 264 */ /***/ (function(module, exports) { module.exports = "\n" /***/ }), /* 265 */, /* 266 */, /* 267 */, /* 268 */, /* 269 */, /* 270 */, /* 271 */, /* 272 */, /* 273 */, /* 274 */, /* 275 */, /* 276 */, /* 277 */, /* 278 */, /* 279 */, /* 280 */, /* 281 */, /* 282 */, /* 283 */, /* 284 */, /* 285 */, /* 286 */, /* 287 */, /* 288 */, /* 289 */, /* 290 */, /* 291 */, /* 292 */, /* 293 */, /* 294 */, /* 295 */, /* 296 */, /* 297 */, /* 298 */, /* 299 */, /* 300 */, /* 301 */, /* 302 */, /* 303 */, /* 304 */, /* 305 */, /* 306 */, /* 307 */, /* 308 */, /* 309 */, /* 310 */, /* 311 */, /* 312 */, /* 313 */, /* 314 */, /* 315 */, /* 316 */, /* 317 */, /* 318 */, /* 319 */, /* 320 */, /* 321 */, /* 322 */, /* 323 */, /* 324 */, /* 325 */, /* 326 */, /* 327 */, /* 328 */, /* 329 */, /* 330 */, /* 331 */, /* 332 */, /* 333 */, /* 334 */, /* 335 */, /* 336 */, /* 337 */ /***/ (function(module, exports, __webpack_require__) { module.exports = __webpack_require__(121); /***/ }) ]),[337]); //# sourceMappingURL=main.bundle.js.map