Index: src/mapservice-webclient/dist/webclient/main-es2015.js
===================================================================
--- src/mapservice-webclient/dist/webclient/main-es2015.js	(revision 2edb5e705c339251898dca17cb4b3c8b6672ddc6)
+++ src/mapservice-webclient/dist/webclient/main-es2015.js	(revision 2edb5e705c339251898dca17cb4b3c8b6672ddc6)
@@ -0,0 +1,6285 @@
+(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["main"],{
+
+/***/ "+noA":
+/*!*****************************************!*\
+  !*** ./src/app/helpers/log.paramter.ts ***!
+  \*****************************************/
+/*! exports provided: LogParameter */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LogParameter", function() { return LogParameter; });
+/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
+
+class LogParameter {
+    constructor() { }
+    ;
+    getAddParameter(water, device = undefined, gauge = undefined) {
+        var result = {};
+        if (water)
+            result['water'] = JSON.stringify(water);
+        if (device)
+            result['device'] = JSON.stringify(device);
+        if (gauge)
+            result['gauge'] = JSON.stringify(gauge);
+        return result;
+    }
+}
+LogParameter.ɵfac = function LogParameter_Factory(t) { return new (t || LogParameter)(); };
+LogParameter.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: LogParameter, factory: LogParameter.ɵfac });
+
+
+/***/ }),
+
+/***/ 0:
+/*!***************************!*\
+  !*** multi ./src/main.ts ***!
+  \***************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+module.exports = __webpack_require__(/*! /home/joachim/gnuboat/src/mapservice-webclient/src/main.ts */"zUnb");
+
+
+/***/ }),
+
+/***/ "2YK/":
+/*!***********************************************************!*\
+  !*** ./src-gen/gnuboat-mapservice/model/gaugeCreation.ts ***!
+  \***********************************************************/
+/*! no exports provided */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/**
+ * GNUBoat Mapservice API
+ * API to upload log files with water depth to GNUBoat server
+ *
+ * The version of the OpenAPI document: v1
+ * Contact: info@engsas.de
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+
+
+
+/***/ }),
+
+/***/ "2afY":
+/*!********************************************************************!*\
+  !*** ./src-gen/gnuboat-mapservice/model/gaugeGeoJsonProperties.ts ***!
+  \********************************************************************/
+/*! no exports provided */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/**
+ * GNUBoat Mapservice API
+ * API to upload log files with water depth to GNUBoat server
+ *
+ * The version of the OpenAPI document: v1
+ * Contact: info@engsas.de
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+
+
+
+/***/ }),
+
+/***/ "3LUQ":
+/*!*******************************************!*\
+  !*** ./src/app/services/alert.service.ts ***!
+  \*******************************************/
+/*! exports provided: AlertService */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AlertService", function() { return AlertService; });
+/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/router */ "tyNb");
+/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs */ "qCKp");
+/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ "fXoL");
+
+
+
+
+class AlertService {
+    constructor(router) {
+        this.router = router;
+        this.subject = new rxjs__WEBPACK_IMPORTED_MODULE_1__["Subject"]();
+        this.keepAfterNavigationChange = false;
+        // clear alert message on route change
+        router.events.subscribe(event => {
+            if (event instanceof _angular_router__WEBPACK_IMPORTED_MODULE_0__["NavigationStart"]) {
+                if (this.keepAfterNavigationChange) {
+                    // only keep for a single location change
+                    this.keepAfterNavigationChange = false;
+                }
+                else {
+                    // clear alert
+                    this.subject.next();
+                }
+            }
+        });
+    }
+    success(message, keepAfterNavigationChange = false) {
+        this.keepAfterNavigationChange = keepAfterNavigationChange;
+        this.subject.next({ type: 'success', text: message });
+    }
+    error(message, keepAfterNavigationChange = false) {
+        this.keepAfterNavigationChange = keepAfterNavigationChange;
+        this.subject.next({ type: 'error', text: message });
+    }
+    getMessage() {
+        return this.subject.asObservable();
+    }
+}
+AlertService.ɵfac = function AlertService_Factory(t) { return new (t || AlertService)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵinject"](_angular_router__WEBPACK_IMPORTED_MODULE_0__["Router"])); };
+AlertService.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineInjectable"]({ token: AlertService, factory: AlertService.ɵfac, providedIn: 'root' });
+
+
+/***/ }),
+
+/***/ "41wK":
+/*!*********************************************************!*\
+  !*** ./src-gen/gnuboat-mapservice/api/tiles.service.ts ***!
+  \*********************************************************/
+/*! exports provided: TilesService */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TilesService", function() { return TilesService; });
+/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common/http */ "tk/3");
+/* harmony import */ var _encoder__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../encoder */ "gZ76");
+/* harmony import */ var _variables__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../variables */ "L3f3");
+/* harmony import */ var _configuration__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../configuration */ "rr0t");
+/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/core */ "fXoL");
+
+
+
+
+
+
+
+class TilesService {
+    constructor(httpClient, basePath, configuration) {
+        this.httpClient = httpClient;
+        this.basePath = 'https://gnuboat.engsas.com/mapservice/v1';
+        this.defaultHeaders = new _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpHeaders"]();
+        this.configuration = new _configuration__WEBPACK_IMPORTED_MODULE_3__["Configuration"]();
+        if (configuration) {
+            this.configuration = configuration;
+        }
+        if (typeof this.configuration.basePath !== 'string') {
+            if (typeof basePath !== 'string') {
+                basePath = this.basePath;
+            }
+            this.configuration.basePath = basePath;
+        }
+        this.encoder = this.configuration.encoder || new _encoder__WEBPACK_IMPORTED_MODULE_1__["CustomHttpParameterCodec"]();
+    }
+    addToHttpParams(httpParams, value, key) {
+        if (typeof value === "object" && value instanceof Date === false) {
+            httpParams = this.addToHttpParamsRecursive(httpParams, value);
+        }
+        else {
+            httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
+        }
+        return httpParams;
+    }
+    addToHttpParamsRecursive(httpParams, value, key) {
+        if (value == null) {
+            return httpParams;
+        }
+        if (typeof value === "object") {
+            if (Array.isArray(value)) {
+                value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
+            }
+            else if (value instanceof Date) {
+                if (key != null) {
+                    httpParams = httpParams.append(key, value.toISOString().substr(0, 10));
+                }
+                else {
+                    throw Error("key may not be null if value is Date");
+                }
+            }
+            else {
+                Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
+            }
+        }
+        else if (key != null) {
+            httpParams = httpParams.append(key, value);
+        }
+        else {
+            throw Error("key may not be null if value is not object or array");
+        }
+        return httpParams;
+    }
+    tilesTileGet(accuracy, resolution, zoom, xTile, yTile, observe = 'body', reportProgress = false, options) {
+        if (accuracy === null || accuracy === undefined) {
+            throw new Error('Required parameter accuracy was null or undefined when calling tilesTileGet.');
+        }
+        if (resolution === null || resolution === undefined) {
+            throw new Error('Required parameter resolution was null or undefined when calling tilesTileGet.');
+        }
+        if (zoom === null || zoom === undefined) {
+            throw new Error('Required parameter zoom was null or undefined when calling tilesTileGet.');
+        }
+        if (xTile === null || xTile === undefined) {
+            throw new Error('Required parameter xTile was null or undefined when calling tilesTileGet.');
+        }
+        if (yTile === null || yTile === undefined) {
+            throw new Error('Required parameter yTile was null or undefined when calling tilesTileGet.');
+        }
+        let headers = this.defaultHeaders;
+        let httpHeaderAcceptSelected = options && options.httpHeaderAccept;
+        if (httpHeaderAcceptSelected === undefined) {
+            // to determine the Accept header
+            const httpHeaderAccepts = [
+                'image/_*',
+                'application/problem+json'
+            ];
+            httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
+        }
+        if (httpHeaderAcceptSelected !== undefined) {
+            headers = headers.set('Accept', httpHeaderAcceptSelected);
+        }
+        return this.httpClient.get(`${this.configuration.basePath}/tiles/gnuboat/${encodeURIComponent(String(accuracy))}/${encodeURIComponent(String(resolution))}/${encodeURIComponent(String(zoom))}/${encodeURIComponent(String(xTile))}/${encodeURIComponent(String(yTile))}.png`, {
+            responseType: "blob",
+            withCredentials: this.configuration.withCredentials,
+            headers: headers,
+            observe: observe,
+            reportProgress: reportProgress
+        });
+    }
+}
+TilesService.ɵfac = function TilesService_Factory(t) { return new (t || TilesService)(_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](_variables__WEBPACK_IMPORTED_MODULE_2__["BASE_PATH"], 8), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](_configuration__WEBPACK_IMPORTED_MODULE_3__["Configuration"], 8)); };
+TilesService.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineInjectable"]({ token: TilesService, factory: TilesService.ɵfac, providedIn: 'root' });
+
+
+/***/ }),
+
+/***/ "4IkO":
+/*!*******************************!*\
+  !*** ./src/app/logs/index.ts ***!
+  \*******************************/
+/*! exports provided: LogsComponent */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony import */ var _logs_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./logs.component */ "GMR4");
+/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LogsComponent", function() { return _logs_component__WEBPACK_IMPORTED_MODULE_0__["LogsComponent"]; });
+
+
+
+
+/***/ }),
+
+/***/ "6o2f":
+/*!*******************************************!*\
+  !*** ./src/app/water/waters.component.ts ***!
+  \*******************************************/
+/*! exports provided: WatersComponent */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "WatersComponent", function() { return WatersComponent; });
+/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
+/* harmony import */ var _src_gen_gnuboat_mapservice__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../src-gen/gnuboat-mapservice */ "zZ2Q");
+/* harmony import */ var _services__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../services */ "o0su");
+/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ "fXoL");
+/* harmony import */ var _components_alert_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../components/alert.component */ "kyU9");
+/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/router */ "tyNb");
+/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/common */ "ofXK");
+/* harmony import */ var _water_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./water.component */ "KBB4");
+
+
+
+
+
+
+
+
+
+
+function WatersComponent_div_10_Template(rf, ctx) { if (rf & 1) {
+    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 6);
+    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](1, "gnuboat-water", 7);
+    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
+} if (rf & 2) {
+    const water_r1 = ctx.$implicit;
+    const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
+    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1);
+    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("water", water_r1)("user", ctx_r0.currentUser);
+} }
+class WatersComponent {
+    constructor(watersService, authenticationService, usersService) {
+        this.watersService = watersService;
+        this.authenticationService = authenticationService;
+        this.usersService = usersService;
+        this.waters = [];
+        this.currentUserSubscription = this.authenticationService.currentUser.subscribe(user => {
+            this.currentUser = user;
+            if (user) {
+                this.usersService.configuration.username = user.username;
+                this.usersService.configuration.password = this.authenticationService.currentUserPassword;
+            }
+        });
+        this.watersService.watersGet(undefined, undefined, undefined, "name", 0, 25).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_0__["first"])()).subscribe(waters => {
+            this.waters = waters;
+        });
+    }
+    ngOnInit() {
+    }
+    ngOnDestroy() {
+        // unsubscribe to ensure no memory leaks
+        this.currentUserSubscription.unsubscribe();
+    }
+}
+WatersComponent.ɵfac = function WatersComponent_Factory(t) { return new (t || WatersComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_src_gen_gnuboat_mapservice__WEBPACK_IMPORTED_MODULE_1__["WatersService"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_services__WEBPACK_IMPORTED_MODULE_2__["AuthenticationService"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_src_gen_gnuboat_mapservice__WEBPACK_IMPORTED_MODULE_1__["UsersService"])); };
+WatersComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineComponent"]({ type: WatersComponent, selectors: [["gnuboat-waters"]], decls: 11, vars: 1, consts: [[1, "header"], ["data", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtrustConstantResourceUrl"] `/resources/gnuboat-water.svg`, 1, "svg-icon"], ["routerLink", "/mygnuboat/water/add", 1, "pure-button", "button-add"], [1, "content"], [1, "pure-g"], ["class", "pure-u-1 pure-u-md-1-3", 4, "ngFor", "ngForOf"], [1, "pure-u-1", "pure-u-md-1-3"], [3, "water", "user"]], template: function WatersComponent_Template(rf, ctx) { if (rf & 1) {
+        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 0);
+        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](1, "h1");
+        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](2, "object", 1);
+        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](3, "Waters");
+        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](4, "alert");
+        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](5, "p");
+        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](6, "a", 2);
+        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](7, "Add Water");
+        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](8, "div", 3);
+        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](9, "div", 4);
+        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](10, WatersComponent_div_10_Template, 2, 2, "div", 5);
+        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
+    } if (rf & 2) {
+        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](10);
+        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngForOf", ctx.waters);
+    } }, directives: [_components_alert_component__WEBPACK_IMPORTED_MODULE_4__["AlertComponent"], _angular_router__WEBPACK_IMPORTED_MODULE_5__["RouterLinkWithHref"], _angular_common__WEBPACK_IMPORTED_MODULE_6__["NgForOf"], _water_component__WEBPACK_IMPORTED_MODULE_7__["WaterComponent"]], encapsulation: 2 });
+
+
+/***/ }),
+
+/***/ "6rF9":
+/*!**********************************!*\
+  !*** ./src/app/helpers/index.ts ***!
+  \**********************************/
+/*! exports provided: AuthInterceptor, ErrorInterceptor, LogParameter */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony import */ var _auth_interceptor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./auth.interceptor */ "cJIb");
+/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AuthInterceptor", function() { return _auth_interceptor__WEBPACK_IMPORTED_MODULE_0__["AuthInterceptor"]; });
+
+/* harmony import */ var _error_interceptor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./error.interceptor */ "fC4O");
+/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ErrorInterceptor", function() { return _error_interceptor__WEBPACK_IMPORTED_MODULE_1__["ErrorInterceptor"]; });
+
+/* harmony import */ var _log_paramter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./log.paramter */ "+noA");
+/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LogParameter", function() { return _log_paramter__WEBPACK_IMPORTED_MODULE_2__["LogParameter"]; });
+
+
+
+
+
+
+/***/ }),
+
+/***/ "7wVF":
+/*!*********************************************!*\
+  !*** ./src/app/mygnuboat/user.component.ts ***!
+  \*********************************************/
+/*! exports provided: UserComponent */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UserComponent", function() { return UserComponent; });
+/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
+/* harmony import */ var _src_gen_gnuboat_mapservice__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../src-gen/gnuboat-mapservice */ "zZ2Q");
+/* harmony import */ var _services__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../services */ "o0su");
+/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../helpers */ "6rF9");
+/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/core */ "fXoL");
+/* harmony import */ var _components_alert_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../components/alert.component */ "kyU9");
+/* harmony import */ var _logs_logs_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../logs/logs.component */ "GMR4");
+/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/router */ "tyNb");
+/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/common */ "ofXK");
+/* harmony import */ var _water_water_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../water/water.component */ "KBB4");
+
+
+
+
+
+
+
+
+
+
+
+
+
+function UserComponent_div_15_Template(rf, ctx) { if (rf & 1) {
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "div", 17);
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](1, "gnuboat-water", 18);
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
+} if (rf & 2) {
+    const water_r3 = ctx.$implicit;
+    const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]();
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1);
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("water", water_r3)("user", ctx_r0.currentUser);
+} }
+const _c0 = function () { return ["/mygnuboat/log/add"]; };
+function UserComponent_tr_36_Template(rf, ctx) { if (rf & 1) {
+    const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵgetCurrentView"]();
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "tr");
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](1, "td", 19);
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](2);
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](3, "td", 20);
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](4);
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](5, "td", 21);
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](6);
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](7, "td", 22);
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](8, "a", 23);
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](9, "Add Logfile");
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](10, "td", 22);
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](11, "button", 24);
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function UserComponent_tr_36_Template_button_click_11_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r6); const device_r4 = ctx.$implicit; const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](); return ctx_r5.deviceDelete(device_r4); });
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](12, "Delete");
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
+} if (rf & 2) {
+    const device_r4 = ctx.$implicit;
+    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]();
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1);
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpropertyInterpolate1"]("title", "Device Id = ", device_r4.deviceId, "");
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1);
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](device_r4.name);
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate1"]("", device_r4.sensorDepth * 100, "cm");
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](device_r4.comment);
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpureFunction0"](6, _c0))("queryParams", ctx_r1.logParameter.getAddParameter(undefined, device_r4));
+} }
+function UserComponent_tr_46_Template(rf, ctx) { if (rf & 1) {
+    const _r9 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵgetCurrentView"]();
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "tr");
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](1, "td", 25);
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](2);
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](3, "td", 22);
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](4, "button", 24);
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function UserComponent_tr_46_Template_button_click_4_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r9); const apiKey_r7 = ctx.$implicit; const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](); return ctx_r8.apiKeyDelete(apiKey_r7); });
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](5, "Delete");
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
+} if (rf & 2) {
+    const apiKey_r7 = ctx.$implicit;
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](apiKey_r7);
+} }
+class UserComponent {
+    constructor(authenticationService, usersService, watersService, devicesService, logsService, alertService, logParameter) {
+        this.authenticationService = authenticationService;
+        this.usersService = usersService;
+        this.watersService = watersService;
+        this.devicesService = devicesService;
+        this.logsService = logsService;
+        this.alertService = alertService;
+        this.logParameter = logParameter;
+        this.apiKeys = [];
+        this.waters = [];
+        this.devices = [];
+        this.logs = [];
+        this.currentUserSubscription = this.authenticationService.currentUser.subscribe(user => {
+            this.currentUser = user;
+            this.usersService.configuration.username = user.username;
+            this.usersService.configuration.password = this.authenticationService.currentUserPassword;
+            this.watersService.configuration.username = user.username;
+            this.watersService.configuration.password = this.authenticationService.currentUserPassword;
+            this.devicesService.configuration.username = user.username;
+            this.devicesService.configuration.password = this.authenticationService.currentUserPassword;
+            this.logsService.configuration.username = user.username;
+            this.logsService.configuration.password = this.authenticationService.currentUserPassword;
+            this.watersService.watersGet(undefined, user.username, user.username).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_0__["first"])()).subscribe(waters => {
+                this.waters = waters;
+            });
+            this.devicesService.devicesGet().pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_0__["first"])()).subscribe(devices => {
+                this.devices = devices;
+            });
+            this.logsService.logsGet(user.username).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_0__["first"])()).subscribe(logs => {
+                this.logs = logs;
+            });
+        });
+    }
+    ngOnInit() {
+        this.apiKeys = this.currentUser.apiKeys;
+    }
+    ngOnDestroy() {
+        // unsubscribe to ensure no memory leaks
+        this.currentUserSubscription.unsubscribe();
+    }
+    deviceDelete(device) {
+        this.devicesService.devicesDeviceDelete(device.deviceId).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_0__["first"])()).subscribe(devices => {
+            this.devices = devices;
+        }, error => {
+            this.alertService.error(error);
+        });
+    }
+    apiKeyDelete(apiKey) {
+        this.usersService.usersApiKeyDelete(apiKey).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_0__["first"])()).subscribe(keys => {
+            this.apiKeys = keys;
+        }, error => {
+            this.alertService.error(error);
+        });
+    }
+    apiKeyCreate() {
+        this.usersService.usersApiKeyCreate().pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_0__["first"])()).subscribe(keys => {
+            this.apiKeys = keys;
+        }, error => {
+            this.alertService.error(error);
+        });
+    }
+}
+UserComponent.ɵfac = function UserComponent_Factory(t) { return new (t || UserComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_services__WEBPACK_IMPORTED_MODULE_2__["AuthenticationService"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_src_gen_gnuboat_mapservice__WEBPACK_IMPORTED_MODULE_1__["UsersService"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_src_gen_gnuboat_mapservice__WEBPACK_IMPORTED_MODULE_1__["WatersService"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_src_gen_gnuboat_mapservice__WEBPACK_IMPORTED_MODULE_1__["DevicesService"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_src_gen_gnuboat_mapservice__WEBPACK_IMPORTED_MODULE_1__["LogsService"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_services__WEBPACK_IMPORTED_MODULE_2__["AlertService"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_helpers__WEBPACK_IMPORTED_MODULE_3__["LogParameter"])); };
+UserComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineComponent"]({ type: UserComponent, selectors: [["ng-component"]], features: [_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵProvidersFeature"]([_helpers__WEBPACK_IMPORTED_MODULE_3__["LogParameter"]])], decls: 47, vars: 5, consts: [[1, "header"], [1, "content"], [3, "logs"], [1, "content-subhead"], ["data", _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtrustConstantResourceUrl"] `/resources/gnuboat-water.svg`, 1, "svg-icon"], ["name", "waters"], ["routerLink", "water/add", 1, "pure-button", "button-add"], [1, "pure-g"], ["class", "pure-u-1 pure-u-md-1-3", 4, "ngFor", "ngForOf"], ["data", _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtrustConstantResourceUrl"] `/resources/gnuboat-device.svg`, 1, "svg-icon"], ["name", "devices"], ["routerLink", "device/add", 1, "pure-button", "button-add"], ["id", "devices", 1, "pure-table", "pure-table-horizontal", "pure-table-striped"], [4, "ngFor", "ngForOf"], ["name", "apikeys"], [1, "button-add", "pure-button", 3, "click"], ["id", "apiKeys", 1, "pure-table", "pure-table-striped", "pure-table-horizontal"], [1, "pure-u-1", "pure-u-md-1-3"], [3, "water", "user"], ["id", "name", 3, "title"], ["id", "sensorDepth"], ["id", "comment"], ["id", "button"], [1, "button-add", "pure-button", 3, "routerLink", "queryParams"], [1, "button-remove", "pure-button", 3, "click"], ["id", "key"]], template: function UserComponent_Template(rf, ctx) { if (rf & 1) {
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "div", 0);
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](1, "h1");
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](2);
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](3, "alert");
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](4, "div", 1);
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](5, "gnuboat-logs", 2);
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](6, "h2", 3);
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](7, "object", 4);
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](8, "My Waters");
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](9, "div");
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](10, "a", 5);
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](11, "p");
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](12, "a", 6);
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](13, "Add Water");
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](14, "div", 7);
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](15, UserComponent_div_15_Template, 2, 2, "div", 8);
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](16, "h2", 3);
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](17, "object", 9);
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](18, "Devices");
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](19, "div");
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](20, "a", 10);
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](21, "p");
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](22, "a", 11);
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](23, "Add Device");
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](24, "table", 12);
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](25, "thead");
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](26, "tr");
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](27, "th");
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](28, "Name");
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](29, "th");
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](30, "Sensor Depth");
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](31, "th");
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](32, "Comment");
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](33, "th");
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](34, "th");
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](35, "tbody");
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](36, UserComponent_tr_36_Template, 13, 7, "tr", 13);
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](37, "h2", 3);
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](38, "Your API keys");
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](39, "div");
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](40, "a", 14);
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](41, "div");
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](42, "a", 15);
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function UserComponent_Template_a_click_42_listener() { return ctx.apiKeyCreate(); });
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](43, "Create New Api Key");
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](44, "table", 16);
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](45, "tbody");
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](46, UserComponent_tr_46_Template, 6, 1, "tr", 13);
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
+    } if (rf & 2) {
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate1"]("Welcome to ", ctx.currentUser.firstName, "'s GNUBoat!");
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](3);
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("logs", ctx.logs);
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](10);
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngForOf", ctx.waters);
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](21);
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngForOf", ctx.devices);
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](10);
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngForOf", ctx.apiKeys);
+    } }, directives: [_components_alert_component__WEBPACK_IMPORTED_MODULE_5__["AlertComponent"], _logs_logs_component__WEBPACK_IMPORTED_MODULE_6__["LogsComponent"], _angular_router__WEBPACK_IMPORTED_MODULE_7__["RouterLinkWithHref"], _angular_common__WEBPACK_IMPORTED_MODULE_8__["NgForOf"], _water_water_component__WEBPACK_IMPORTED_MODULE_9__["WaterComponent"]], encapsulation: 2 });
+
+
+/***/ }),
+
+/***/ "9MRL":
+/*!***********************************************************************!*\
+  !*** ./src-gen/gnuboat-mapservice/model/logEntryGeoJsonProperties.ts ***!
+  \***********************************************************************/
+/*! no exports provided */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/**
+ * GNUBoat Mapservice API
+ * API to upload log files with water depth to GNUBoat server
+ *
+ * The version of the OpenAPI document: v1
+ * Contact: info@engsas.de
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+
+
+
+/***/ }),
+
+/***/ "9ORU":
+/*!********************************!*\
+  !*** ./src/app/water/index.ts ***!
+  \********************************/
+/*! exports provided: WatersComponent, WaterComponent, WaterDetailsComponent, GaugesComponent */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony import */ var _waters_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./waters.component */ "6o2f");
+/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WatersComponent", function() { return _waters_component__WEBPACK_IMPORTED_MODULE_0__["WatersComponent"]; });
+
+/* harmony import */ var _water_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./water.component */ "KBB4");
+/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WaterComponent", function() { return _water_component__WEBPACK_IMPORTED_MODULE_1__["WaterComponent"]; });
+
+/* harmony import */ var _waterdetails_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./waterdetails.component */ "f2EE");
+/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WaterDetailsComponent", function() { return _waterdetails_component__WEBPACK_IMPORTED_MODULE_2__["WaterDetailsComponent"]; });
+
+/* harmony import */ var _gauges_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./gauges.component */ "QBuW");
+/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GaugesComponent", function() { return _gauges_component__WEBPACK_IMPORTED_MODULE_3__["GaugesComponent"]; });
+
+
+
+
+
+
+
+/***/ }),
+
+/***/ "9vUh":
+/*!****************************************!*\
+  !*** ./src/app/home/home.component.ts ***!
+  \****************************************/
+/*! exports provided: HomeComponent */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HomeComponent", function() { return HomeComponent; });
+/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
+/* harmony import */ var _map_map_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../map/map.component */ "cNoH");
+
+
+class HomeComponent {
+    constructor() {
+        this.mapViewportStyleClass = 'home-map';
+    }
+    ngOnInit() {
+    }
+    ngOnDestroy() {
+    }
+}
+HomeComponent.ɵfac = function HomeComponent_Factory(t) { return new (t || HomeComponent)(); };
+HomeComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: HomeComponent, selectors: [["ng-component"]], decls: 1, vars: 1, consts: [[3, "viewportStyleClass"]], template: function HomeComponent_Template(rf, ctx) { if (rf & 1) {
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "gnuboat-map", 0);
+    } if (rf & 2) {
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("viewportStyleClass", ctx.mapViewportStyleClass);
+    } }, directives: [_map_map_component__WEBPACK_IMPORTED_MODULE_1__["MapComponent"]], encapsulation: 2 });
+
+
+/***/ }),
+
+/***/ "A0OO":
+/*!*************************************************!*\
+  !*** ./src-gen/gnuboat-mapservice/model/log.ts ***!
+  \*************************************************/
+/*! no exports provided */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+
+
+
+/***/ }),
+
+/***/ "AytR":
+/*!*****************************************!*\
+  !*** ./src/environments/environment.ts ***!
+  \*****************************************/
+/*! exports provided: environment */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "environment", function() { return environment; });
+// This file can be replaced during build by using the `fileReplacements` array.
+// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`.
+// The list of file replacements can be found in `angular.json`.
+const environment = {
+    production: false,
+    API_BASE_PATH: 'http://localhost:8080/mapservice/v1',
+    OVERPASS_API_PATH: 'https://overpass-api.de/api/interpreter',
+    OSM_TILE_SERVER: 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png'
+};
+/*
+ * For easier debugging in development mode, you can import the following file
+ * to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`.
+ *
+ * This import should be commented out in production mode because it will have a negative impact
+ * on performance if an error is thrown.
+ */
+// import 'zone.js/dist/zone-error';  // Included with Angular CLI.
+
+
+/***/ }),
+
+/***/ "CMJz":
+/*!***************************************************!*\
+  !*** ./src-gen/gnuboat-mapservice/model/gauge.ts ***!
+  \***************************************************/
+/*! no exports provided */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+
+
+
+/***/ }),
+
+/***/ "DXLJ":
+/*!*********************************************************!*\
+  !*** ./src-gen/gnuboat-mapservice/model/logMetaData.ts ***!
+  \*********************************************************/
+/*! no exports provided */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+
+
+
+/***/ }),
+
+/***/ "E5AE":
+/*!*********************************************************!*\
+  !*** ./src-gen/gnuboat-mapservice/model/geoJsonType.ts ***!
+  \*********************************************************/
+/*! exports provided: GeoJsonType */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GeoJsonType", function() { return GeoJsonType; });
+/**
+ * GNUBoat Mapservice API
+ * API to upload log files with water depth to GNUBoat server
+ *
+ * The version of the OpenAPI document: v1
+ * Contact: info@engsas.de
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+const GeoJsonType = {
+    Feature: 'Feature',
+    Point: 'Point',
+    FeatureCollection: 'FeatureCollection'
+};
+
+
+/***/ }),
+
+/***/ "EYEx":
+/*!************************************************************!*\
+  !*** ./src-gen/gnuboat-mapservice/model/deviceCreation.ts ***!
+  \************************************************************/
+/*! no exports provided */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/**
+ * GNUBoat Mapservice API
+ * API to upload log files with water depth to GNUBoat server
+ *
+ * The version of the OpenAPI document: v1
+ * Contact: info@engsas.de
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+
+
+
+/***/ }),
+
+/***/ "Ex7r":
+/*!*****************************************!*\
+  !*** ./src/app/user/login.component.ts ***!
+  \*****************************************/
+/*! exports provided: LoginComponent */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LoginComponent", function() { return LoginComponent; });
+/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/router */ "tyNb");
+/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
+/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
+/* harmony import */ var _services__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../services */ "o0su");
+/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/core */ "fXoL");
+/* harmony import */ var _components_alert_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../components/alert.component */ "kyU9");
+/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/common */ "ofXK");
+
+
+
+
+
+
+
+
+
+
+function LoginComponent_span_11_Template(rf, ctx) { if (rf & 1) {
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "span", 13);
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](1, "Username is required.");
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
+} }
+function LoginComponent_span_16_Template(rf, ctx) { if (rf & 1) {
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "span", 13);
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](1, "Password is required.");
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
+} }
+function LoginComponent_img_20_Template(rf, ctx) { if (rf & 1) {
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](0, "img", 14);
+} }
+const _c0 = function (a0) { return { "is-invalid": a0 }; };
+class LoginComponent {
+    constructor(formBuilder, route, router, authenticationService, alertService) {
+        this.formBuilder = formBuilder;
+        this.route = route;
+        this.router = router;
+        this.authenticationService = authenticationService;
+        this.alertService = alertService;
+        this.loading = false;
+        this.submitted = false;
+        // redirect to home if already logged in
+        if (this.authenticationService.currentUserValue) {
+            this.router.navigate(['/']);
+        }
+    }
+    ngOnInit() {
+        this.loginForm = this.formBuilder.group({
+            username: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
+            password: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required]
+        });
+        // get return url from route parameters or default to '/'
+        if (this.route.snapshot.queryParams['returnUrl']) {
+            this.returnUrl = this.route.snapshot.queryParams['returnUrl'];
+        }
+        else {
+            this.returnUrl = '/mygnuboat';
+        }
+        if (this.route.snapshot.queryParams['fragment']) {
+            this.returnUrlFragment = this.route.snapshot.queryParams['fragment'];
+        }
+        else {
+            this.returnUrlFragment = "";
+        }
+    }
+    // convenience getter for easy access to form fields
+    get f() { return this.loginForm.controls; }
+    onSubmit() {
+        this.submitted = true;
+        // stop here if form is invalid
+        if (this.loginForm.invalid) {
+            this.alertService.error("Please enter all necessary data");
+            return;
+        }
+        this.loading = true;
+        this.authenticationService.login(this.f.username.value, this.f.password.value)
+            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["first"])())
+            .subscribe(data => {
+            this.router.navigate([this.returnUrl], { fragment: this.returnUrlFragment });
+        }, error => {
+            this.alertService.error(error);
+            this.loading = false;
+        });
+    }
+}
+LoginComponent.ɵfac = function LoginComponent_Factory(t) { return new (t || LoginComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_0__["ActivatedRoute"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_0__["Router"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_services__WEBPACK_IMPORTED_MODULE_3__["AuthenticationService"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_services__WEBPACK_IMPORTED_MODULE_3__["AlertService"])); };
+LoginComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineComponent"]({ type: LoginComponent, selectors: [["ng-component"]], decls: 23, vars: 11, consts: [[1, "header"], [1, "content"], [1, "pure-form", "pure-form-aligned", 3, "formGroup", "ngSubmit"], [1, "pure-control-group"], ["for", "username"], ["type", "text", "formControlName", "username", 1, "form-control", 3, "ngClass"], ["class", "pure-form-message-inline", 4, "ngIf"], ["for", "password"], ["type", "password", "formControlName", "password", 1, "form-control", 3, "ngClass"], [1, "pure-controls"], [1, "pure-button", "pure-button-primary", "gnuboat-button", 3, "disabled"], ["class", "processing", "src", "/resources/processing.svg", 4, "ngIf"], ["routerLink", "/register", 1, "pure-button"], [1, "pure-form-message-inline"], ["src", "/resources/processing.svg", 1, "processing"]], template: function LoginComponent_Template(rf, ctx) { if (rf & 1) {
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "div", 0);
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](1, "h1");
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](2, "Login");
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](3, "alert");
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](4, "div", 1);
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](5, "form", 2);
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("ngSubmit", function LoginComponent_Template_form_ngSubmit_5_listener() { return ctx.onSubmit(); });
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](6, "fieldset");
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](7, "div", 3);
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](8, "label", 4);
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](9, "Username:");
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](10, "input", 5);
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](11, LoginComponent_span_11_Template, 2, 0, "span", 6);
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](12, "div", 3);
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](13, "label", 7);
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](14, "Password:");
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](15, "input", 8);
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](16, LoginComponent_span_16_Template, 2, 0, "span", 6);
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](17, "div", 9);
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](18, "button", 10);
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](19, "Login");
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](20, LoginComponent_img_20_Template, 1, 0, "img", 11);
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](21, "button", 12);
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](22, "Register");
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
+    } if (rf & 2) {
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](5);
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("formGroup", ctx.loginForm);
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](5);
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpureFunction1"](7, _c0, ctx.submitted && ctx.f.username.errors));
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1);
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", ctx.submitted && ctx.f.username.errors);
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](4);
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpureFunction1"](9, _c0, ctx.submitted && ctx.f.password.errors));
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1);
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", ctx.submitted && ctx.f.password.errors);
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("disabled", ctx.loading);
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", ctx.loading);
+    } }, directives: [_components_alert_component__WEBPACK_IMPORTED_MODULE_5__["AlertComponent"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormGroupDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormControlName"], _angular_common__WEBPACK_IMPORTED_MODULE_6__["NgClass"], _angular_common__WEBPACK_IMPORTED_MODULE_6__["NgIf"], _angular_router__WEBPACK_IMPORTED_MODULE_0__["RouterLink"]], encapsulation: 2 });
+
+
+/***/ }),
+
+/***/ "FCLh":
+/*!***********************************************!*\
+  !*** ./src-gen/gnuboat-mapservice/api/api.ts ***!
+  \***********************************************/
+/*! exports provided: DevicesService, LogsService, TilesService, UsersService, WatersService, APIS */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "APIS", function() { return APIS; });
+/* harmony import */ var _devices_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./devices.service */ "yGm/");
+/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DevicesService", function() { return _devices_service__WEBPACK_IMPORTED_MODULE_0__["DevicesService"]; });
+
+/* harmony import */ var _logs_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./logs.service */ "xA3V");
+/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LogsService", function() { return _logs_service__WEBPACK_IMPORTED_MODULE_1__["LogsService"]; });
+
+/* harmony import */ var _tiles_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./tiles.service */ "41wK");
+/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TilesService", function() { return _tiles_service__WEBPACK_IMPORTED_MODULE_2__["TilesService"]; });
+
+/* harmony import */ var _users_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./users.service */ "d1NA");
+/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UsersService", function() { return _users_service__WEBPACK_IMPORTED_MODULE_3__["UsersService"]; });
+
+/* harmony import */ var _waters_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./waters.service */ "qRYB");
+/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WatersService", function() { return _waters_service__WEBPACK_IMPORTED_MODULE_4__["WatersService"]; });
+
+
+
+
+
+
+
+
+
+
+
+const APIS = [_devices_service__WEBPACK_IMPORTED_MODULE_0__["DevicesService"], _logs_service__WEBPACK_IMPORTED_MODULE_1__["LogsService"], _tiles_service__WEBPACK_IMPORTED_MODULE_2__["TilesService"], _users_service__WEBPACK_IMPORTED_MODULE_3__["UsersService"], _waters_service__WEBPACK_IMPORTED_MODULE_4__["WatersService"]];
+
+
+/***/ }),
+
+/***/ "Fm0j":
+/*!********************************************************!*\
+  !*** ./src-gen/gnuboat-mapservice/model/logGeoJson.ts ***!
+  \********************************************************/
+/*! no exports provided */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+
+
+
+/***/ }),
+
+/***/ "GMR4":
+/*!****************************************!*\
+  !*** ./src/app/logs/logs.component.ts ***!
+  \****************************************/
+/*! exports provided: LogsComponent */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LogsComponent", function() { return LogsComponent; });
+/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
+/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "tyNb");
+/* harmony import */ var _src_gen_gnuboat_mapservice__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../src-gen/gnuboat-mapservice */ "zZ2Q");
+/* harmony import */ var _services__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../services */ "o0su");
+/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../helpers */ "6rF9");
+/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/common */ "ofXK");
+
+
+
+
+
+
+
+
+
+
+
+const _c0 = function () { return ["/mygnuboat/log/add"]; };
+function LogsComponent_p_5_Template(rf, ctx) { if (rf & 1) {
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "p");
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "a", 7);
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Add Logfile");
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+} if (rf & 2) {
+    const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](2, _c0))("queryParams", ctx_r0.logParameter.getAddParameter(ctx_r0.water, ctx_r0.device, ctx_r0.gauge));
+} }
+function LogsComponent_ng_container_27_tr_1_img_14_Template(rf, ctx) { if (rf & 1) {
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "img", 16);
+} if (rf & 2) {
+    const log_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate1"]("title", "Status: ", log_r5.processingState.label, "");
+} }
+function LogsComponent_ng_container_27_tr_1_img_15_Template(rf, ctx) { if (rf & 1) {
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "img", 17);
+} if (rf & 2) {
+    const log_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate1"]("title", "Status: ", log_r5.processingState.label, "");
+} }
+function LogsComponent_ng_container_27_tr_1_img_16_Template(rf, ctx) { if (rf & 1) {
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "img", 16);
+} if (rf & 2) {
+    const log_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate1"]("title", "Status: ", log_r5.processingState.label, "");
+} }
+function LogsComponent_ng_container_27_tr_1_img_17_Template(rf, ctx) { if (rf & 1) {
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "img", 17);
+} if (rf & 2) {
+    const log_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate1"]("title", "Status: ", log_r5.processingState.label, "");
+} }
+function LogsComponent_ng_container_27_tr_1_img_18_Template(rf, ctx) { if (rf & 1) {
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "img", 18);
+} if (rf & 2) {
+    const log_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate1"]("title", "Status: ", log_r5.processingState.label, "");
+} }
+function LogsComponent_ng_container_27_tr_1_img_19_Template(rf, ctx) { if (rf & 1) {
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "img", 19);
+} if (rf & 2) {
+    const log_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate1"]("title", "Status: ", log_r5.processingState.label, "");
+} }
+function LogsComponent_ng_container_27_tr_1_img_20_Template(rf, ctx) { if (rf & 1) {
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "img", 20);
+} if (rf & 2) {
+    const log_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate1"]("title", "Status: ", log_r5.processingState.label, "");
+} }
+function LogsComponent_ng_container_27_tr_1_button_24_Template(rf, ctx) { if (rf & 1) {
+    const _r23 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "button", 21);
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function LogsComponent_ng_container_27_tr_1_button_24_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r23); const log_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit; const ctx_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r21.logDelete(log_r5); });
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "Delete");
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+} }
+function LogsComponent_ng_container_27_tr_1_Template(rf, ctx) { if (rf & 1) {
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr");
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "td");
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "td");
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4);
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "td");
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6);
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "td");
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8);
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "td");
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10);
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "td");
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12);
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "td", 9);
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](14, LogsComponent_ng_container_27_tr_1_img_14_Template, 1, 1, "img", 10);
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](15, LogsComponent_ng_container_27_tr_1_img_15_Template, 1, 1, "img", 11);
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](16, LogsComponent_ng_container_27_tr_1_img_16_Template, 1, 1, "img", 10);
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](17, LogsComponent_ng_container_27_tr_1_img_17_Template, 1, 1, "img", 11);
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](18, LogsComponent_ng_container_27_tr_1_img_18_Template, 1, 1, "img", 12);
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](19, LogsComponent_ng_container_27_tr_1_img_19_Template, 1, 1, "img", 13);
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](20, LogsComponent_ng_container_27_tr_1_img_20_Template, 1, 1, "img", 14);
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "td");
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](22);
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "td");
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](24, LogsComponent_ng_container_27_tr_1_button_24_Template, 2, 0, "button", 15);
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+} if (rf & 2) {
+    const log_r5 = ctx.$implicit;
+    const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](log_r5.water.label);
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](log_r5.device.label);
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](log_r5.gauge.label);
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](log_r5.gaugeLevel);
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx_r4.printDate(log_r5.start));
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx_r4.printDate(log_r5.end));
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngSwitch", log_r5.processingState.id);
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngSwitchCase", 2);
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngSwitchCase", 3);
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngSwitchCase", 4);
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngSwitchCase", 5);
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngSwitchCase", 6);
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngSwitchCase", 7);
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](log_r5.comment);
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx_r4.currentUser || ctx_r4.currentUser.username == log_r5.submitter);
+} }
+function LogsComponent_ng_container_27_Template(rf, ctx) { if (rf & 1) {
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, LogsComponent_ng_container_27_tr_1_Template, 25, 15, "tr", 8);
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
+} if (rf & 2) {
+    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r1.logs);
+} }
+function LogsComponent_ng_template_28_Template(rf, ctx) { if (rf & 1) {
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr");
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "td", 22);
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "No Logfiles");
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+} }
+class LogsComponent {
+    constructor(alertService, authenticationService, logsService, logParameter, router) {
+        this.alertService = alertService;
+        this.authenticationService = authenticationService;
+        this.logsService = logsService;
+        this.logParameter = logParameter;
+        this.router = router;
+        this.water = undefined;
+        this.logs = [];
+        this.device = undefined;
+        this.gauge = undefined;
+        this.currentUser = undefined;
+        this.currentUserSubscription = this.authenticationService.currentUser.subscribe(user => {
+            this.currentUser = user;
+            if (user) {
+                this.logsService.configuration.username = user.username;
+                this.logsService.configuration.password = this.authenticationService.currentUserPassword;
+            }
+        });
+    }
+    ngOnInit() {
+        this.currentUserSubscription = this.authenticationService.currentUser.subscribe(user => {
+            this.currentUser = user;
+        });
+    }
+    ngOnChanges(changes) {
+        //     if((!this.logs || this.logs.length < 1) && 'water' in changes && this.water){
+        if ('water' in changes && this.water) {
+            this.logs = this.water.logs;
+        }
+    }
+    ngOnDestroy() {
+        // unsubscribe to ensure no memory leaks
+        this.currentUserSubscription.unsubscribe();
+    }
+    printDate(dateString) {
+        let options = {
+            day: "numeric", month: "numeric", year: "numeric",
+            hour: "2-digit", minute: "2-digit"
+        };
+        var date = new Date(dateString);
+        return date.toLocaleDateString('de-De', options);
+    }
+    logDelete(log) {
+        if (!this.currentUser) {
+            this.router.navigate(['/login'], { queryParams: { returnUrl: this.router.url } });
+            return;
+        }
+        if (this.currentUser.username != log.submitter) {
+            this.alertService.error('You have not submitted the log and therefore could not delete it');
+            return;
+        }
+        this.logsService.logsLogDelete(log.logId).subscribe(result => {
+            this.alertService.success('Log deleted');
+        }, error => {
+            this.alertService.error(error);
+        });
+    }
+}
+LogsComponent.ɵfac = function LogsComponent_Factory(t) { return new (t || LogsComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_services__WEBPACK_IMPORTED_MODULE_3__["AlertService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_services__WEBPACK_IMPORTED_MODULE_3__["AuthenticationService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_src_gen_gnuboat_mapservice__WEBPACK_IMPORTED_MODULE_2__["LogsService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_helpers__WEBPACK_IMPORTED_MODULE_4__["LogParameter"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"])); };
+LogsComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: LogsComponent, selectors: [["gnuboat-logs"]], inputs: { water: "water", logs: "logs", device: "device", gauge: "gauge" }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([_helpers__WEBPACK_IMPORTED_MODULE_4__["LogParameter"]]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]], decls: 30, vars: 3, consts: [[1, "content-subhead"], ["data", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtrustConstantResourceUrl"] `/resources/gnuboat-logfile.svg`, 1, "svg-icon"], ["name", "logfiles"], [4, "ngIf"], ["id", "logsTable", 1, "pure-table", "pure-table-horizontal", "pure-table-striped"], [4, "ngIf", "ngIfElse"], ["noLogs", ""], [1, "pure-button", "button-add", 3, "routerLink", "queryParams"], [4, "ngFor", "ngForOf"], [3, "ngSwitch"], ["class", "pure-img state-icon", "src", "/resources/log-queued.svg", 3, "title", 4, "ngSwitchCase"], ["class", "pure-img state-icon processing", "src", "/resources/processing.svg", 3, "title", 4, "ngSwitchCase"], ["class", "pure-img state-icon", "src", "/resources/log-deployed.svg", 3, "title", 4, "ngSwitchCase"], ["class", "pure-img state-icon", "src", "/resources/log-excluded.svg", 3, "title", 4, "ngSwitchCase"], ["class", "pure-img state-icon", "src", "/resources/log-undefined.svg", 3, "title", 4, "ngSwitchDefault"], ["class", "button-remove pure-button", 3, "click", 4, "ngIf"], ["src", "/resources/log-queued.svg", 1, "pure-img", "state-icon", 3, "title"], ["src", "/resources/processing.svg", 1, "pure-img", "state-icon", "processing", 3, "title"], ["src", "/resources/log-deployed.svg", 1, "pure-img", "state-icon", 3, "title"], ["src", "/resources/log-excluded.svg", 1, "pure-img", "state-icon", 3, "title"], ["src", "/resources/log-undefined.svg", 1, "pure-img", "state-icon", 3, "title"], [1, "button-remove", "pure-button", 3, "click"], ["colspan", "9"]], template: function LogsComponent_Template(rf, ctx) { if (rf & 1) {
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "h2", 0);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "object", 1);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Logfiles");
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div");
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](4, "a", 2);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, LogsComponent_p_5_Template, 3, 3, "p", 3);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "table", 4);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "thead");
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "tr");
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "th");
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, "Water");
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "th");
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, "Device");
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "th");
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](14, "Gauge");
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "th");
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](16, "Gauge Height");
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "th");
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](18, "Start");
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "th");
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](20, "End");
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "th");
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](22, "Status");
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "th");
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](24, "Comment");
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](25, "th");
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](26, "tbody");
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](27, LogsComponent_ng_container_27_Template, 2, 1, "ng-container", 5);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](28, LogsComponent_ng_template_28_Template, 3, 0, "ng-template", null, 6, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+    } if (rf & 2) {
+        const _r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](29);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.currentUser);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](22);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.logs && ctx.logs.length > 0)("ngIfElse", _r2);
+    } }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_5__["NgIf"], _angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterLinkWithHref"], _angular_common__WEBPACK_IMPORTED_MODULE_5__["NgForOf"], _angular_common__WEBPACK_IMPORTED_MODULE_5__["NgSwitch"], _angular_common__WEBPACK_IMPORTED_MODULE_5__["NgSwitchCase"], _angular_common__WEBPACK_IMPORTED_MODULE_5__["NgSwitchDefault"]], encapsulation: 2 });
+
+
+/***/ }),
+
+/***/ "JN2I":
+/*!**********************************************************!*\
+  !*** ./src-gen/gnuboat-mapservice/model/gaugeGeoJson.ts ***!
+  \**********************************************************/
+/*! no exports provided */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+
+
+
+/***/ }),
+
+/***/ "KBB4":
+/*!******************************************!*\
+  !*** ./src/app/water/water.component.ts ***!
+  \******************************************/
+/*! exports provided: WaterComponent */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "WaterComponent", function() { return WaterComponent; });
+/* harmony import */ var _map__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../map */ "TAPr");
+/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../helpers */ "6rF9");
+/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ "fXoL");
+/* harmony import */ var _map_map_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../map/map.component */ "cNoH");
+/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/router */ "tyNb");
+/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/common */ "ofXK");
+
+
+
+
+
+
+
+const _c0 = ["mapComponent"];
+function WaterComponent_span_10_Template(rf, ctx) { if (rf & 1) {
+    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "span");
+    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
+    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
+} if (rf & 2) {
+    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
+    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
+    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]("", ctx_r1.water.gauges.length, " Gauges");
+} }
+function WaterComponent_ng_template_11_Template(rf, ctx) { if (rf & 1) {
+    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "span");
+    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, "No Gauges");
+    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
+} }
+function WaterComponent_span_14_Template(rf, ctx) { if (rf & 1) {
+    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "span");
+    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
+    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
+} if (rf & 2) {
+    const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
+    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
+    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]("", ctx_r4.water.logs.length, " Logs");
+} }
+function WaterComponent_ng_template_15_Template(rf, ctx) { if (rf & 1) {
+    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "span");
+    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, "No Logs");
+    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
+} }
+function WaterComponent_span_22_Template(rf, ctx) { if (rf & 1) {
+    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "span");
+    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, "Edit / ");
+    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
+} }
+const _c1 = function (a1) { return ["/water", a1]; };
+const _c2 = function () { return ["/mygnuboat/log/add"]; };
+class WaterComponent {
+    constructor(logParameter) {
+        this.logParameter = logParameter;
+        this.mapViewportStyleClass = "water-map";
+        this.mapControlsShow = false;
+        this.mapLogsShow = false;
+        this.mapLogoShow = false;
+    }
+    ngOnInit() {
+    }
+    ngOnDestroy() {
+    }
+}
+WaterComponent.ɵfac = function WaterComponent_Factory(t) { return new (t || WaterComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_helpers__WEBPACK_IMPORTED_MODULE_1__["LogParameter"])); };
+WaterComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineComponent"]({ type: WaterComponent, selectors: [["gnuboat-water"]], viewQuery: function WaterComponent_Query(rf, ctx) { if (rf & 1) {
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵviewQuery"](_c0, 1);
+    } if (rf & 2) {
+        let _t;
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵloadQuery"]()) && (ctx.mapComponent = _t.first);
+    } }, inputs: { water: "water", user: "user" }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵProvidersFeature"]([_helpers__WEBPACK_IMPORTED_MODULE_1__["LogParameter"]])], decls: 24, vars: 20, consts: [[1, "water"], [1, "water-background"], [3, "viewportStyleClass", "controlsShow", "logsShow", "logoShow", "water"], ["mapComponent", ""], [1, "water-content"], [3, "routerLink"], [4, "ngIf", "ngIfElse"], ["noGauges", ""], ["noLogs", ""], [1, "button-add", "pure-button", 3, "routerLink", "queryParams"], [1, "pure-button", "water-edit", 3, "routerLink"], [4, "ngIf"]], template: function WaterComponent_Template(rf, ctx) { if (rf & 1) {
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 0);
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 1);
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](2, "gnuboat-map", 2, 3);
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "div", 4);
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "a", 5);
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "h2");
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](7);
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "ul");
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "li");
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](10, WaterComponent_span_10_Template, 2, 1, "span", 6);
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](11, WaterComponent_ng_template_11_Template, 2, 0, "ng-template", null, 7, _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplateRefExtractor"]);
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](13, " / ");
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](14, WaterComponent_span_14_Template, 2, 1, "span", 6);
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](15, WaterComponent_ng_template_15_Template, 2, 0, "ng-template", null, 8, _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplateRefExtractor"]);
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](17, "li");
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](18, "a", 9);
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](19, "Add Logfile");
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](20, "li");
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](21, "a", 10);
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](22, WaterComponent_span_22_Template, 2, 0, "span", 11);
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](23, "Details");
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
+    } if (rf & 2) {
+        const _r2 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵreference"](12);
+        const _r5 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵreference"](16);
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("viewportStyleClass", ctx.mapViewportStyleClass)("controlsShow", ctx.mapControlsShow)("logsShow", ctx.mapLogsShow)("logoShow", ctx.mapLogoShow)("water", ctx.water);
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction1"](15, _c1, ctx.water.waterId));
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](ctx.water.name);
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.water.gauges)("ngIfElse", _r2);
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.water.logs)("ngIfElse", _r5);
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction0"](17, _c2))("queryParams", ctx.logParameter.getAddParameter(ctx.water));
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction1"](18, _c1, ctx.water.waterId));
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.user);
+    } }, directives: [_map_map_component__WEBPACK_IMPORTED_MODULE_3__["MapComponent"], _angular_router__WEBPACK_IMPORTED_MODULE_4__["RouterLinkWithHref"], _angular_common__WEBPACK_IMPORTED_MODULE_5__["NgIf"]], encapsulation: 2 });
+
+
+/***/ }),
+
+/***/ "L3f3":
+/*!*************************************************!*\
+  !*** ./src-gen/gnuboat-mapservice/variables.ts ***!
+  \*************************************************/
+/*! exports provided: BASE_PATH, COLLECTION_FORMATS */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BASE_PATH", function() { return BASE_PATH; });
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "COLLECTION_FORMATS", function() { return COLLECTION_FORMATS; });
+/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
+
+const BASE_PATH = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('basePath');
+const COLLECTION_FORMATS = {
+    'csv': ',',
+    'tsv': '   ',
+    'ssv': ' ',
+    'pipes': '|'
+};
+
+
+/***/ }),
+
+/***/ "MIzB":
+/*!************************************!*\
+  !*** ./src/app/mygnuboat/index.ts ***!
+  \************************************/
+/*! exports provided: UserComponent, WaterAddComponent, GaugeEditComponent, DeviceAddComponent, LogAddComponent */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony import */ var _user_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./user.component */ "7wVF");
+/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UserComponent", function() { return _user_component__WEBPACK_IMPORTED_MODULE_0__["UserComponent"]; });
+
+/* harmony import */ var _wateradd_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./wateradd.component */ "ntd+");
+/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WaterAddComponent", function() { return _wateradd_component__WEBPACK_IMPORTED_MODULE_1__["WaterAddComponent"]; });
+
+/* harmony import */ var _gaugeedit_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./gaugeedit.component */ "QjgA");
+/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GaugeEditComponent", function() { return _gaugeedit_component__WEBPACK_IMPORTED_MODULE_2__["GaugeEditComponent"]; });
+
+/* harmony import */ var _deviceadd_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./deviceadd.component */ "qRIy");
+/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeviceAddComponent", function() { return _deviceadd_component__WEBPACK_IMPORTED_MODULE_3__["DeviceAddComponent"]; });
+
+/* harmony import */ var _logadd_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./logadd.component */ "SaVV");
+/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LogAddComponent", function() { return _logadd_component__WEBPACK_IMPORTED_MODULE_4__["LogAddComponent"]; });
+
+
+
+
+
+
+
+
+/***/ }),
+
+/***/ "Nppq":
+/*!***********************************************************!*\
+  !*** ./src-gen/gnuboat-mapservice/model/waterCreation.ts ***!
+  \***********************************************************/
+/*! no exports provided */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+
+
+
+/***/ }),
+
+/***/ "OHu5":
+/*!*******************************!*\
+  !*** ./src/app/user/index.ts ***!
+  \*******************************/
+/*! exports provided: RegisterComponent, LoginComponent */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony import */ var _register_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./register.component */ "nTIC");
+/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RegisterComponent", function() { return _register_component__WEBPACK_IMPORTED_MODULE_0__["RegisterComponent"]; });
+
+/* harmony import */ var _login_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./login.component */ "Ex7r");
+/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginComponent", function() { return _login_component__WEBPACK_IMPORTED_MODULE_1__["LoginComponent"]; });
+
+
+
+
+
+/***/ }),
+
+/***/ "QBuW":
+/*!*******************************************!*\
+  !*** ./src/app/water/gauges.component.ts ***!
+  \*******************************************/
+/*! exports provided: GaugesComponent */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GaugesComponent", function() { return GaugesComponent; });
+/* harmony import */ var _src_gen_gnuboat_mapservice__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../src-gen/gnuboat-mapservice */ "zZ2Q");
+/* harmony import */ var _map__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../map */ "TAPr");
+/* harmony import */ var _services__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../services */ "o0su");
+/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../helpers */ "6rF9");
+/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/core */ "fXoL");
+/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/common */ "ofXK");
+/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/router */ "tyNb");
+
+
+
+
+
+
+
+
+
+
+function GaugesComponent_ng_container_19_tr_1_ng_container_10_Template(rf, ctx) { if (rf & 1) {
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementContainerStart"](0);
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](1);
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementContainerEnd"]();
+} if (rf & 2) {
+    const gauge_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]().$implicit;
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1);
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate1"](" ", gauge_r4.comment, " ");
+} }
+const _c0 = function () { return ["/mygnuboat/log/add"]; };
+const _c1 = function (a1) { return ["/water", a1]; };
+function GaugesComponent_ng_container_19_tr_1_Template(rf, ctx) { if (rf & 1) {
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "tr");
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](1, "td", 6);
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](2);
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](3, "td");
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](4);
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](5, "td");
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](6);
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](7, "td");
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](8);
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](9, "td");
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](10, GaugesComponent_ng_container_19_tr_1_ng_container_10_Template, 2, 1, "ng-container", 7);
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](11, "td");
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](12, "a", 8);
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](13, "Add Logfile");
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](14, "td");
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](15, "a", 9);
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](16, "Edit");
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
+} if (rf & 2) {
+    const gauge_r4 = ctx.$implicit;
+    const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](2);
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1);
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpropertyInterpolate1"]("title", "Gauge Id = ", gauge_r4.gaugeId, "");
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1);
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](gauge_r4.name);
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](ctx_r3.decimalDegreesToDegreesMinutesSeconds(gauge_r4.location[1], ctx_r3.Coordinate.Latitude));
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](ctx_r3.decimalDegreesToDegreesMinutesSeconds(gauge_r4.location[0], ctx_r3.Coordinate.Longitude));
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](gauge_r4.referenceWaterLevelGaugeHeight);
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", gauge_r4.comment);
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpureFunction0"](9, _c0))("queryParams", ctx_r3.logParameter.getAddParameter(ctx_r3.water, undefined, gauge_r4));
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](3);
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpureFunction1"](10, _c1, ctx_r3.water.waterId));
+} }
+function GaugesComponent_ng_container_19_Template(rf, ctx) { if (rf & 1) {
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementContainerStart"](0);
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](1, GaugesComponent_ng_container_19_tr_1_Template, 17, 12, "tr", 5);
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementContainerEnd"]();
+} if (rf & 2) {
+    const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]();
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1);
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngForOf", ctx_r0.water.gauges);
+} }
+function GaugesComponent_ng_template_20_Template(rf, ctx) { if (rf & 1) {
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "tr");
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](1, "td", 10);
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](2, "No Gauges");
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
+    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
+} }
+var Coordinate;
+(function (Coordinate) {
+    Coordinate[Coordinate["Latitude"] = 1] = "Latitude";
+    Coordinate[Coordinate["Longitude"] = 2] = "Longitude";
+})(Coordinate || (Coordinate = {}));
+class GaugesComponent {
+    constructor(watersService, alertService, authenticationService, logParameter) {
+        this.watersService = watersService;
+        this.alertService = alertService;
+        this.authenticationService = authenticationService;
+        this.logParameter = logParameter;
+        this.Coordinate = Coordinate;
+        this.currentUser = undefined;
+    }
+    ngOnInit() {
+        this.currentUserSubscription = this.authenticationService.currentUser.subscribe(user => {
+            this.currentUser = user;
+            if (user) {
+                this.watersService.configuration.username = user.username;
+                this.watersService.configuration.password = this.authenticationService.currentUserPassword;
+            }
+        });
+    }
+    ngOnDestroy() {
+    }
+    decimalDegreesToDegreesMinutesSeconds(decimalDegrees, coordinate) {
+        var degrees = Math.trunc(decimalDegrees);
+        var minutes = Math.trunc((decimalDegrees - degrees) * 60);
+        var seconds = (decimalDegrees - degrees - minutes / 60) * 3600;
+        var prefix = "";
+        switch (coordinate) {
+            case Coordinate.Latitude:
+                prefix = (degrees > 0) ? 'N' : 'S';
+                break;
+            case Coordinate.Longitude:
+                prefix = (degrees > 0) ? 'E' : 'W';
+                break;
+        }
+        return prefix + " " + degrees.toString() + "° " + minutes.toString() + "'" + seconds.toPrecision(4) + "''";
+    }
+}
+GaugesComponent.ɵfac = function GaugesComponent_Factory(t) { return new (t || GaugesComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_src_gen_gnuboat_mapservice__WEBPACK_IMPORTED_MODULE_0__["WatersService"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_services__WEBPACK_IMPORTED_MODULE_2__["AlertService"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_services__WEBPACK_IMPORTED_MODULE_2__["AuthenticationService"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_helpers__WEBPACK_IMPORTED_MODULE_3__["LogParameter"])); };
+GaugesComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineComponent"]({ type: GaugesComponent, selectors: [["gnuboat-gauges"]], inputs: { water: "water", mapComponent: "mapComponent" }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵProvidersFeature"]([_helpers__WEBPACK_IMPORTED_MODULE_3__["LogParameter"]])], decls: 22, vars: 2, consts: [[1, "content-subhead"], ["data", _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtrustConstantResourceUrl"] `/resources/gnuboat-gauge.svg`, 1, "svg-icon"], ["id", "gaugesTable", 1, "pure-table", "pure-table-horizontal", "pure-table-striped"], [4, "ngIf", "ngIfElse"], ["noGauges", ""], [4, "ngFor", "ngForOf"], [3, "title"], [4, "ngIf"], [1, "pure-button", "button-add", 3, "routerLink", "queryParams"], [1, "pure-button", 3, "routerLink"], ["colspan", "7"]], template: function GaugesComponent_Template(rf, ctx) { if (rf & 1) {
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "h2", 0);
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](1, "object", 1);
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](2, "Gauges");
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](3, "table", 2);
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](4, "thead");
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](5, "tr");
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](6, "th");
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](7, "Name");
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](8, "th");
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](9, "Latitude");
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](10, "th");
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](11, "Longitude");
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](12, "th");
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](13, "Reference Gauge Height");
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](14, "th");
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](15, "Comment");
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](16, "th");
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](17, "th");
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](18, "tbody");
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](19, GaugesComponent_ng_container_19_Template, 2, 1, "ng-container", 3);
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](20, GaugesComponent_ng_template_20_Template, 3, 0, "ng-template", null, 4, _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplateRefExtractor"]);
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
+    } if (rf & 2) {
+        const _r1 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵreference"](21);
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](19);
+        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", ctx.water && ctx.water.gauges && ctx.water.gauges.length > 0)("ngIfElse", _r1);
+    } }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_5__["NgIf"], _angular_common__WEBPACK_IMPORTED_MODULE_5__["NgForOf"], _angular_router__WEBPACK_IMPORTED_MODULE_6__["RouterLinkWithHref"]], encapsulation: 2 });
+
+
+/***/ }),
+
+/***/ "QjgA":
+/*!**************************************************!*\
+  !*** ./src/app/mygnuboat/gaugeedit.component.ts ***!
+  \**************************************************/
+/*! exports provided: GaugeEditComponent */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GaugeEditComponent", function() { return GaugeEditComponent; });
+/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
+/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
+/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ "qCKp");
+/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
+/* harmony import */ var _src_gen_gnuboat_mapservice__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../src-gen/gnuboat-mapservice */ "zZ2Q");
+/* harmony import */ var _services__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../services */ "o0su");
+/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/common */ "ofXK");
+
+
+
+
+
+
+
+
+
+
+
+function GaugeEditComponent_div_0_Template(rf, ctx) { if (rf & 1) {
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 29);
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "h2");
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵi18n"](2, 30);
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+} if (rf & 2) {
+    const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵi18nExp"](ctx_r0.water.name);
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵi18nApply"](2);
+} }
+function GaugeEditComponent_span_9_Template(rf, ctx) { if (rf & 1) {
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span", 31);
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵi18n"](1, 32);
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+} }
+function GaugeEditComponent_span_15_Template(rf, ctx) { if (rf & 1) {
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span", 31);
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵi18n"](1, 33);
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+} }
+function GaugeEditComponent_span_21_Template(rf, ctx) { if (rf & 1) {
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span", 31);
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵi18n"](1, 34);
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+} }
+function GaugeEditComponent_span_27_Template(rf, ctx) { if (rf & 1) {
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span", 31);
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵi18n"](1, 35);
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+} }
+class GaugeEditComponent {
+    constructor(watersService, alertService, authenticationService, formBuilder) {
+        this.watersService = watersService;
+        this.alertService = alertService;
+        this.authenticationService = authenticationService;
+        this.formBuilder = formBuilder;
+        this.currentUser = undefined;
+        this.cancel = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
+        this.gaugeCreated = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
+    }
+    ngOnInit() {
+        this.currentUserSubscription = this.authenticationService.currentUser.subscribe(user => {
+            this.currentUser = user;
+            if (user) {
+                this.watersService.configuration.username = user.username;
+                this.watersService.configuration.password = this.authenticationService.currentUserPassword;
+            }
+        });
+        this.gaugeForm = this.formBuilder.group({
+            name: [, _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required],
+            latitude: [, _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required],
+            longitude: [, _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required],
+            referenceWaterLevelGaugeHeight: [, _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required],
+            comment: [],
+        });
+        this.updateFormValues();
+    }
+    ngOnDestroy() {
+    }
+    set gauge(gauge) {
+        this._gauge = gauge;
+        this.updateFormValues();
+        let el = document.getElementById("gaugeEditName");
+        el.scrollIntoView();
+    }
+    updateFormValues() {
+        if (this.gaugeForm && this._gauge) {
+            this.gaugeForm.patchValue({
+                name: this._gauge.name,
+                longitude: this._gauge.location[0],
+                latitude: this._gauge.location[1],
+                referenceWaterLevelGaugeHeight: this._gauge.referenceWaterLevelGaugeHeight,
+                comment: this._gauge.comment,
+            });
+        }
+    }
+    addGauge() {
+        // stop here if form is invalid
+        if (this.gaugeForm.invalid) {
+            this.alertService.error("Please enter all necessary data");
+            return;
+        }
+        this._gauge.name = this.gaugeForm.get('name').value;
+        this._gauge.location = [this.gaugeForm.get('longitude').value, this.gaugeForm.get('latitude').value];
+        this._gauge.referenceWaterLevelGaugeHeight = this.gaugeForm.get('referenceWaterLevelGaugeHeight').value;
+        this._gauge.comment = this.gaugeForm.get('comment').value;
+        this.watersService.watersGaugeCreate(this.water.waterId, this._gauge).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["first"])()).subscribe(result => {
+            this.gaugeCreated.emit(result);
+            this._gauge = undefined;
+            this.gaugeForm.reset();
+            this.gaugeForm.clearValidators();
+        }, error => {
+            this.alertService.error(error);
+        });
+    }
+    cancelEditing() {
+        this._gauge = undefined;
+        this.gaugeForm.reset();
+        this.gaugeForm.clearValidators();
+        this.cancel.emit();
+    }
+}
+GaugeEditComponent.ɵfac = function GaugeEditComponent_Factory(t) { return new (t || GaugeEditComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_src_gen_gnuboat_mapservice__WEBPACK_IMPORTED_MODULE_4__["WatersService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_services__WEBPACK_IMPORTED_MODULE_5__["AlertService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_services__WEBPACK_IMPORTED_MODULE_5__["AuthenticationService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormBuilder"])); };
+GaugeEditComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: GaugeEditComponent, selectors: [["gnuboat-gauge-edit"]], inputs: { water: "water", gauge: "gauge" }, outputs: { cancel: "cancel", gaugeCreated: "gaugeCreated" }, decls: 38, vars: 7, consts: function () { let i18n_0; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
+        const MSG_EXTERNAL_gaugeEditName$$SRC_APP_MYGNUBOAT_GAUGEEDIT_COMPONENT_TS_1 = goog.getMsg("Name:");
+        i18n_0 = MSG_EXTERNAL_gaugeEditName$$SRC_APP_MYGNUBOAT_GAUGEEDIT_COMPONENT_TS_1;
+    }
+    else {
+        i18n_0 = $localize `:@@gaugeEditName␟616e206cb4f25bd5885fc35925365e43cf5fb929␟7658402240953727096:Name:`;
+    } let i18n_2; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
+        const MSG_EXTERNAL_1020859659887325667$$SRC_APP_MYGNUBOAT_GAUGEEDIT_COMPONENT_TS_3 = goog.getMsg("Name of Gauge");
+        i18n_2 = MSG_EXTERNAL_1020859659887325667$$SRC_APP_MYGNUBOAT_GAUGEEDIT_COMPONENT_TS_3;
+    }
+    else {
+        i18n_2 = $localize `:␟87796cdf3ff1e4a4890beb20272671b9a2bda611␟1020859659887325667:Name of Gauge`;
+    } let i18n_4; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
+        const MSG_EXTERNAL_gaugeEditLatitude$$SRC_APP_MYGNUBOAT_GAUGEEDIT_COMPONENT_TS_5 = goog.getMsg("Latitude:");
+        i18n_4 = MSG_EXTERNAL_gaugeEditLatitude$$SRC_APP_MYGNUBOAT_GAUGEEDIT_COMPONENT_TS_5;
+    }
+    else {
+        i18n_4 = $localize `:@@gaugeEditLatitude␟4e0ad02a8a2295d1f317fcdbe9057c5e460c8dd0␟6691856122567960400:Latitude:`;
+    } let i18n_6; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
+        const MSG_EXTERNAL_gaugeEditLongitude$$SRC_APP_MYGNUBOAT_GAUGEEDIT_COMPONENT_TS_7 = goog.getMsg("Longitude:");
+        i18n_6 = MSG_EXTERNAL_gaugeEditLongitude$$SRC_APP_MYGNUBOAT_GAUGEEDIT_COMPONENT_TS_7;
+    }
+    else {
+        i18n_6 = $localize `:@@gaugeEditLongitude␟284b2009235fd44e3da87a60adb793608ee5d02c␟1113549170516305374:Longitude:`;
+    } let i18n_8; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
+        const MSG_EXTERNAL_gaugeEditReferenceWaterLevelGaugeHeight$$SRC_APP_MYGNUBOAT_GAUGEEDIT_COMPONENT_TS_9 = goog.getMsg("Gauge Height Reference Water Level:");
+        i18n_8 = MSG_EXTERNAL_gaugeEditReferenceWaterLevelGaugeHeight$$SRC_APP_MYGNUBOAT_GAUGEEDIT_COMPONENT_TS_9;
+    }
+    else {
+        i18n_8 = $localize `:@@gaugeEditReferenceWaterLevelGaugeHeight␟89f32820b7ac84682cb3f6e46804a26075e04dee␟5846044266052805760:Gauge Height Reference Water Level:`;
+    } let i18n_10; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
+        const MSG_EXTERNAL_gaugeEditComment$$SRC_APP_MYGNUBOAT_GAUGEEDIT_COMPONENT_TS_11 = goog.getMsg("Comment:");
+        i18n_10 = MSG_EXTERNAL_gaugeEditComment$$SRC_APP_MYGNUBOAT_GAUGEEDIT_COMPONENT_TS_11;
+    }
+    else {
+        i18n_10 = $localize `:@@gaugeEditComment␟96e41129ef5d2fa12b7a6ffcab608e9af04d8cbd␟872792317034860453:Comment:`;
+    } let i18n_12; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
+        const MSG_EXTERNAL_gaugeButtonAdd$$SRC_APP_MYGNUBOAT_GAUGEEDIT_COMPONENT_TS_13 = goog.getMsg("Add");
+        i18n_12 = MSG_EXTERNAL_gaugeButtonAdd$$SRC_APP_MYGNUBOAT_GAUGEEDIT_COMPONENT_TS_13;
+    }
+    else {
+        i18n_12 = $localize `:@@gaugeButtonAdd␟f6755cff4957d5c3c89bafce5651f1b6fa2b1fd9␟3249513483374643425:Add`;
+    } let i18n_14; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
+        const MSG_EXTERNAL_gaugeaddTitle$$SRC_APP_MYGNUBOAT_GAUGEEDIT_COMPONENT_TS__15 = goog.getMsg("Add a new Gauge to {$interpolation}", { "interpolation": "\uFFFD0\uFFFD" });
+        i18n_14 = MSG_EXTERNAL_gaugeaddTitle$$SRC_APP_MYGNUBOAT_GAUGEEDIT_COMPONENT_TS__15;
+    }
+    else {
+        i18n_14 = $localize `:@@gaugeaddTitle␟4a4bc6ee2170dc7a2f18c29de4a3b97dd7266b8a␟2037897628365666937:Add a new Gauge to ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;
+    } let i18n_16; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
+        const MSG_EXTERNAL_gaugeNameRequired$$SRC_APP_MYGNUBOAT_GAUGEEDIT_COMPONENT_TS__17 = goog.getMsg("Name is required.");
+        i18n_16 = MSG_EXTERNAL_gaugeNameRequired$$SRC_APP_MYGNUBOAT_GAUGEEDIT_COMPONENT_TS__17;
+    }
+    else {
+        i18n_16 = $localize `:@@gaugeNameRequired␟541087322c34e8b26954fd67ff4fc80d1a6c1b33␟4444753420973870540:Name is required.`;
+    } let i18n_18; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
+        const MSG_EXTERNAL_gaugeLatitudeRequired$$SRC_APP_MYGNUBOAT_GAUGEEDIT_COMPONENT_TS__19 = goog.getMsg("Latitude is required.");
+        i18n_18 = MSG_EXTERNAL_gaugeLatitudeRequired$$SRC_APP_MYGNUBOAT_GAUGEEDIT_COMPONENT_TS__19;
+    }
+    else {
+        i18n_18 = $localize `:@@gaugeLatitudeRequired␟83376835482106ab6db74cb61a76b6e3247bcf1d␟359746990905750303:Latitude is required.`;
+    } let i18n_20; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
+        const MSG_EXTERNAL_gaugeLongitudeRequired$$SRC_APP_MYGNUBOAT_GAUGEEDIT_COMPONENT_TS__21 = goog.getMsg("Longitude is required.");
+        i18n_20 = MSG_EXTERNAL_gaugeLongitudeRequired$$SRC_APP_MYGNUBOAT_GAUGEEDIT_COMPONENT_TS__21;
+    }
+    else {
+        i18n_20 = $localize `:@@gaugeLongitudeRequired␟ce46de58238d73eeb0d11e84a9ed4ff777b84e8b␟947832037198147866:Longitude is required.`;
+    } let i18n_22; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
+        const MSG_EXTERNAL_gaugeReferenceWaterLevelGaugeHeightRequired$$SRC_APP_MYGNUBOAT_GAUGEEDIT_COMPONENT_TS__23 = goog.getMsg("Reference Gauge Height is required.");
+        i18n_22 = MSG_EXTERNAL_gaugeReferenceWaterLevelGaugeHeightRequired$$SRC_APP_MYGNUBOAT_GAUGEEDIT_COMPONENT_TS__23;
+    }
+    else {
+        i18n_22 = $localize `:@@gaugeReferenceWaterLevelGaugeHeightRequired␟47549dadf2f25a1a478490d7a73fefb13c735629␟2759965436677198358:Reference Gauge Height is required.`;
+    } return [["class", "header", 4, "ngIf"], [1, "content"], [1, "pure-form", "pure-form-aligned", 3, "formGroup", "ngSubmit"], [1, "pure-control-group"], ["for", "name"], i18n_0, ["id", "gaugeEditName", "formControlName", "name", "type", "text", "placeholder", i18n_2, "required", ""], ["gaugeNameInput", ""], ["class", "pure-form-message-inline", 4, "ngIf"], ["for", "latitude"], i18n_4, ["formControlName", "latitude", "type", "number", "required", ""], ["gaugeLatitudeInput", ""], ["for", "longitude"], i18n_6, ["formControlName", "longitude", "type", "number", "required", ""], ["gaugeLongitudeInput", ""], ["for", "referenceWaterLevelGaugeHeight"], i18n_8, ["formControlName", "referenceWaterLevelGaugeHeight", "type", "number", "title", "The gauge height (Stage) of the reference Water Level is used to calculate and show the water depth at the map", "required", ""], ["gaugeReferenceWaterLevelGaugeHeightInput", ""], ["for", "comment"], i18n_10, ["formControlName", "comment"], ["gaugeCommentInput", ""], [1, "pure-controls"], [1, "pure-button", "pure-button-primary", "button-add", 3, "disabled"], i18n_12, [1, "pure-button", 3, "mousedown"], [1, "header"], i18n_14, [1, "pure-form-message-inline"], i18n_16, i18n_18, i18n_20, i18n_22]; }, template: function GaugeEditComponent_Template(rf, ctx) { if (rf & 1) {
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, GaugeEditComponent_div_0_Template, 3, 1, "div", 0);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 1);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "form", 2);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngSubmit", function GaugeEditComponent_Template_form_ngSubmit_2_listener() { return ctx.addGauge(); });
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "fieldset");
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 3);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "label", 4);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵi18n"](6, 5);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](7, "input", 6, 7);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](9, GaugeEditComponent_span_9_Template, 2, 0, "span", 8);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "div", 3);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "label", 9);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵi18n"](12, 10);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](13, "input", 11, 12);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](15, GaugeEditComponent_span_15_Template, 2, 0, "span", 8);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "div", 3);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "label", 13);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵi18n"](18, 14);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](19, "input", 15, 16);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](21, GaugeEditComponent_span_21_Template, 2, 0, "span", 8);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "div", 3);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "label", 17);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵi18n"](24, 18);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](25, "input", 19, 20);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](27, GaugeEditComponent_span_27_Template, 2, 0, "span", 8);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](28, "div", 3);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](29, "label", 21);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵi18n"](30, 22);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](31, "textarea", 23, 24);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](33, "div", 25);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](34, "button", 26);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵi18n"](35, 27);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](36, "button", 28);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("mousedown", function GaugeEditComponent_Template_button_mousedown_36_listener() { return ctx.cancelEditing(); });
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](37, "Cancel");
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+    } if (rf & 2) {
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.water && ctx._gauge);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx.gaugeForm);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.gaugeForm.controls["name"].errors);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.gaugeForm.controls["latitude"].errors);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.gaugeForm.controls["longitude"].errors);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.gaugeForm.controls["referenceWaterLevelGaugeHeight"].errors);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", ctx.gaugeForm.pristine || ctx.gaugeForm.invalid);
+    } }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_6__["NgIf"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormGroupDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControlName"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["RequiredValidator"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["NumberValueAccessor"]], encapsulation: 2 });
+
+
+/***/ }),
+
+/***/ "SaVV":
+/*!***********************************************!*\
+  !*** ./src/app/mygnuboat/logadd.component.ts ***!
+  \***********************************************/
+/*! exports provided: LogAddComponent */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LogAddComponent", function() { return LogAddComponent; });
+/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
+/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
+/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ "qCKp");
+/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
+/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/router */ "tyNb");
+/* harmony import */ var _src_gen_gnuboat_mapservice__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../src-gen/gnuboat-mapservice */ "zZ2Q");
+/* harmony import */ var _services__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../services */ "o0su");
+/* harmony import */ var _components_alert_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../components/alert.component */ "kyU9");
+/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/common */ "ofXK");
+
+
+
+
+
+
+// import { MapComponent } from '../map';
+
+
+
+
+
+
+
+
+const _c0 = ["logFileInput"];
+function LogAddComponent_img_12_Template(rf, ctx) { if (rf & 1) {
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "img", 35);
+} }
+function LogAddComponent_span_13_Template(rf, ctx) { if (rf & 1) {
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span", 36);
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵi18n"](1, 37);
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+} }
+function LogAddComponent_img_19_Template(rf, ctx) { if (rf & 1) {
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "img", 35);
+} }
+function LogAddComponent_span_20_Template(rf, ctx) { if (rf & 1) {
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span", 36);
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵi18n"](1, 38);
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+} }
+function LogAddComponent_span_26_Template(rf, ctx) { if (rf & 1) {
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span", 36);
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵi18n"](1, 39);
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+} }
+function LogAddComponent_img_32_Template(rf, ctx) { if (rf & 1) {
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "img", 35);
+} }
+function LogAddComponent_span_33_Template(rf, ctx) { if (rf & 1) {
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span", 36);
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵi18n"](1, 40);
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+} }
+function LogAddComponent_span_39_Template(rf, ctx) { if (rf & 1) {
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span", 36);
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵi18n"](1, 41);
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+} }
+function LogAddComponent_img_46_Template(rf, ctx) { if (rf & 1) {
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "img", 35);
+} }
+class LogAddComponent {
+    constructor(logsService, watersService, devicesService, alertService, authenticationService, formBuilder, _route, router) {
+        this.logsService = logsService;
+        this.watersService = watersService;
+        this.devicesService = devicesService;
+        this.alertService = alertService;
+        this.authenticationService = authenticationService;
+        this.formBuilder = formBuilder;
+        this._route = _route;
+        this.router = router;
+        this.water = undefined;
+        this.device = undefined;
+        this.gauge = undefined;
+        this.currentUser = undefined;
+        this.cancel = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
+        this.isProcessingWater = false;
+        this.isProcessingDevice = false;
+        this.isProcessingGauge = false;
+        this.isUploading = false;
+    }
+    ngOnInit() {
+        this.currentUserSubscription = this.authenticationService.currentUser.subscribe(user => {
+            this.currentUser = user;
+            if (user) {
+                this.logsService.configuration.username = user.username;
+                this.logsService.configuration.password = this.authenticationService.currentUserPassword;
+            }
+        });
+        this.routeSubcription = this._route.queryParams.subscribe(params => {
+            if ('gauge' in params) {
+                var gauge = JSON.parse(params['gauge']);
+                this.gauge = {};
+                this.gauge.label = gauge.name;
+                this.gauge.value = gauge.name;
+                this.gauge.id = gauge.gaugeId;
+                this.gauge.originalObject = gauge;
+            }
+            if ('water' in params || (this.gauge && 'water' in this.gauge.originalObject)) {
+                var water = ('water' in params) ? JSON.parse(params['water']) : this.gauge.originalObject['water'];
+                this.water = {};
+                this.water.label = water.name;
+                this.water.value = water.name;
+                this.water.id = water.waterId;
+                this.water.originalObject = water;
+            }
+            if ('device' in params) {
+                var device = JSON.parse(params['device']);
+                this.device = {};
+                this.device.label = device.name;
+                this.device.value = device.name;
+                this.device.id = device.deviceId;
+                this.device.originalObject = device;
+            }
+        });
+        this.logForm = this.formBuilder.group({
+            water: [, _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required],
+            device: [, _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required],
+            gauge: [, _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required],
+            gaugeHeight: [, _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required],
+            logfile: [, _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required],
+            comment: [],
+        });
+        this.updateFormValues();
+        jQuery('#logEditWater').autocomplete({
+            minLength: 3,
+            source: [],
+            select: (event, ui) => { this.waterSelected(event, ui); }
+        });
+        jQuery('#logEditDevice').autocomplete({
+            minLength: 3,
+            source: [],
+            select: (event, ui) => { this.deviceSelected(event, ui); }
+        });
+        jQuery('#logEditGauge').autocomplete({
+            minLength: (this.water) ? 0 : 3,
+            source: [],
+            select: (event, ui) => { this.gaugeSelected(event, ui); }
+        });
+        if (this.water) {
+            var gaugeCompletion = [];
+            var gauges = this.water.originalObject['gauges'];
+            for (var i = 0; i < gauges.length; i++) {
+                var gauge = {};
+                gauge.id = gauges[i].gaugeId;
+                gauge.value = gauges[i].name;
+                gauge.label = gauges[i].name;
+                gaugeCompletion.push(gauge);
+            }
+            this.setupGaugeCompletion(gaugeCompletion);
+        }
+        // get existing Waters from GnuBoat
+        this.logForm.get('water').valueChanges.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["filter"])(value => value && value.length == 3), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["debounceTime"])(300), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["tap"])(() => this.isProcessingWater = true), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["switchMap"])(value => this.watersService.watersGet(value).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["finalize"])(() => this.isProcessingWater = false)))).subscribe(waters => {
+            this.getWaters(waters);
+        });
+        // get existing Devices from GnuBoat
+        this.logForm.get('device').valueChanges.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["filter"])(value => value && value.length == 3), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["debounceTime"])(300), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["tap"])(() => this.isProcessingDevice = true), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["switchMap"])(value => this.devicesService.devicesGet(value).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["finalize"])(() => this.isProcessingDevice = false)))).subscribe(devices => {
+            this.getDevices(devices);
+        });
+        // get existing Gauges from GnuBoat
+        this.logForm.get('gauge').valueChanges.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["filter"])(value => value && value.length == 3), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["debounceTime"])(300), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["tap"])(() => this.isProcessingGauge = true), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["switchMap"])(value => this.watersService.watersGaugesGet(this.water.id, value).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["finalize"])(() => this.isProcessingGauge = false)))).subscribe(gauges => {
+            this.getGauges(gauges);
+        });
+    }
+    ngOnDestroy() {
+        this.currentUserSubscription.unsubscribe();
+        this.routeSubcription.unsubscribe();
+    }
+    updateFormValues() {
+        if (this.logForm) {
+            this.logForm.patchValue({
+                water: (this.water) ? this.water.label : "",
+                device: (this.device) ? this.device.label : "",
+                gauge: (this.gauge) ? this.gauge.label : "",
+            });
+        }
+        (this.logForm.get('water').value) ? this.logForm.get('gauge').enable() : this.logForm.get('gauge').disable();
+        this.logForm.updateValueAndValidity();
+    }
+    addLog() {
+        // stop here if form is invalid
+        if (this.logForm.invalid) {
+            this.alertService.error("Please enter all necessary data");
+            return;
+        }
+        if (!this.water || !this.device || !this.gauge) {
+            this.alertService.error("Please enter all necessary data");
+            return;
+        }
+        var logCreation = {};
+        logCreation.water = this.water.id;
+        logCreation.device = this.device.id;
+        logCreation.gauge = this.gauge.id;
+        logCreation.gaugeHeight = this.logForm.get('gaugeHeight').value;
+        logCreation.comment = (this.logForm.get('comment').value == undefined) ? "" : this.logForm.get('comment').value;
+        let fileReader = new FileReader();
+        this.isUploading = true;
+        //this.logsService.logsLogCreate(JSON.stringify(logCreation), this.logForm.get('logfile').value).pipe(first()).subscribe(result => {
+        fileReader.onload = (e) => {
+            if (fileReader.result == null) {
+                this.alertService.error("Could not read log file");
+                this.isUploading = false;
+                return;
+            }
+            this.logsService.logsLogCreate(logCreation).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["first"])()).subscribe(result => {
+                this.logsService.logsLogUpload(result.logId, new Blob([fileReader.result], { type: 'text/plain' })).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["first"])()).subscribe(resultUpload => {
+                    this.isUploading = false;
+                    this.logForm.reset();
+                    this.logForm.clearValidators();
+                    this.router.navigate(['/water', logCreation.water]);
+                }, errorUpload => {
+                    this.alertService.error(errorUpload);
+                    this.isUploading = false;
+                });
+            }, error => {
+                this.alertService.error(error);
+                this.isUploading = false;
+            });
+        };
+        fileReader.readAsArrayBuffer(this.logFileInput.nativeElement.files[0]);
+    }
+    cancelEditing() {
+        this.logForm.reset();
+        this.logForm.clearValidators();
+        this.cancel.emit();
+    }
+    getWaters(waters) {
+        var waterCompletion = [];
+        for (var i = 0; i < waters.length; i++) {
+            var water = {};
+            water.id = waters[i].waterId;
+            water.value = waters[i].name;
+            water.label = waters[i].name;
+            water.originalObject = waters[i];
+            waterCompletion.push(water);
+        }
+        // set the elements to the autocompletion list
+        jQuery('#logEditWater').autocomplete("option", "source", waterCompletion);
+        // open the autocompletion list
+        jQuery('#logEditWater').autocomplete("search", this.logForm.get('water').value);
+    }
+    waterSelected(event, ui) {
+        this.water = ui.item;
+        this.logForm.updateValueAndValidity();
+        var gaugeCompletion = [];
+        for (var i = 0; i < ui.item.originalObject.gauges.length; i++) {
+            var gauge = {};
+            gauge.id = ui.item.originalObject.gauges[i].gaugeId;
+            gauge.value = ui.item.originalObject.gauges[i].name;
+            gauge.label = ui.item.originalObject.gauges[i].name;
+            gaugeCompletion.push(gauge);
+        }
+        jQuery('#logEditGauge').autocomplete("option", "minLength", 0);
+        this.setupGaugeCompletion(gaugeCompletion);
+        this.updateFormValues();
+    }
+    getDevices(devices) {
+        var deviceCompletion = [];
+        for (var i = 0; i < devices.length; i++) {
+            var device = {};
+            device.id = devices[i].deviceId;
+            device.value = devices[i].name;
+            device.label = devices[i].name;
+            deviceCompletion.push(device);
+        }
+        // set the elements to the autocompletion list
+        jQuery('#logEditDevice').autocomplete("option", "source", deviceCompletion);
+        // open the autocompletion list
+        jQuery('#logEditDevice').autocomplete("search", this.logForm.get('device').value);
+    }
+    deviceSelected(event, ui) {
+        this.device = ui.item;
+        this.updateFormValues();
+    }
+    getGauges(gauges) {
+        var gaugeCompletion = [];
+        for (var i = 0; i < gauges.length; i++) {
+            var gauge = {};
+            gauge.id = gauges[i].gaugeId;
+            gauge.value = gauges[i].name;
+            gauge.label = gauges[i].name;
+            gaugeCompletion.push(gauge);
+        }
+        this.setupGaugeCompletion(gaugeCompletion);
+    }
+    setupGaugeCompletion(gaugeCompletion) {
+        // set the elements to the autocompletion list
+        jQuery('#logEditGauge').autocomplete("option", "source", gaugeCompletion);
+        // open the autocompletion list
+        jQuery('#logEditGauge').autocomplete("search", this.logForm.get('gauge').value);
+    }
+    gaugeSelected(event, ui) {
+        this.gauge = ui.item;
+        this.updateFormValues();
+    }
+}
+LogAddComponent.ɵfac = function LogAddComponent_Factory(t) { return new (t || LogAddComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_src_gen_gnuboat_mapservice__WEBPACK_IMPORTED_MODULE_5__["LogsService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_src_gen_gnuboat_mapservice__WEBPACK_IMPORTED_MODULE_5__["WatersService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_src_gen_gnuboat_mapservice__WEBPACK_IMPORTED_MODULE_5__["DevicesService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_services__WEBPACK_IMPORTED_MODULE_6__["AlertService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_services__WEBPACK_IMPORTED_MODULE_6__["AuthenticationService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_4__["ActivatedRoute"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_4__["Router"])); };
+LogAddComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: LogAddComponent, selectors: [["gnuboat-log-add"]], viewQuery: function LogAddComponent_Query(rf, ctx) { if (rf & 1) {
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵviewQuery"](_c0, 1);
+    } if (rf & 2) {
+        let _t;
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.logFileInput = _t.first);
+    } }, inputs: { water: "water", device: "device", gauge: "gauge" }, outputs: { cancel: "cancel" }, decls: 51, vars: 11, consts: function () { let i18n_1; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
+        const MSG_EXTERNAL_logAddTitle$$SRC_APP_MYGNUBOAT_LOGADD_COMPONENT_TS_2 = goog.getMsg("Add a new Log");
+        i18n_1 = MSG_EXTERNAL_logAddTitle$$SRC_APP_MYGNUBOAT_LOGADD_COMPONENT_TS_2;
+    }
+    else {
+        i18n_1 = $localize `:@@logAddTitle␟6e15ec5e24042c70d278ba7919f1f22b98da8c4d␟5276023314238517641:Add a new Log`;
+    } let i18n_3; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
+        const MSG_EXTERNAL_logEditWater$$SRC_APP_MYGNUBOAT_LOGADD_COMPONENT_TS_4 = goog.getMsg("Water:");
+        i18n_3 = MSG_EXTERNAL_logEditWater$$SRC_APP_MYGNUBOAT_LOGADD_COMPONENT_TS_4;
+    }
+    else {
+        i18n_3 = $localize `:@@logEditWater␟3fe5e24f5be930a2b913c38eebe1e9f2498ceac8␟8544097686337078941:Water:`;
+    } let i18n_5; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
+        const MSG_EXTERNAL_3389994882033960886$$SRC_APP_MYGNUBOAT_LOGADD_COMPONENT_TS_6 = goog.getMsg("Water where the logged data belongs to");
+        i18n_5 = MSG_EXTERNAL_3389994882033960886$$SRC_APP_MYGNUBOAT_LOGADD_COMPONENT_TS_6;
+    }
+    else {
+        i18n_5 = $localize `:␟98a340d734af4784a6da5b051621eaabe834336c␟3389994882033960886:Water where the logged data belongs to`;
+    } let i18n_7; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
+        const MSG_EXTERNAL_logEditGauge$$SRC_APP_MYGNUBOAT_LOGADD_COMPONENT_TS_8 = goog.getMsg("Gauge:");
+        i18n_7 = MSG_EXTERNAL_logEditGauge$$SRC_APP_MYGNUBOAT_LOGADD_COMPONENT_TS_8;
+    }
+    else {
+        i18n_7 = $localize `:@@logEditGauge␟4415257db5ecbb583acd5fbb0b5b1fdf50c97aef␟9003461997693281664:Gauge:`;
+    } let i18n_9; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
+        const MSG_EXTERNAL_8771286106126615689$$SRC_APP_MYGNUBOAT_LOGADD_COMPONENT_TS_10 = goog.getMsg("Gauge measured in");
+        i18n_9 = MSG_EXTERNAL_8771286106126615689$$SRC_APP_MYGNUBOAT_LOGADD_COMPONENT_TS_10;
+    }
+    else {
+        i18n_9 = $localize `:␟36bc69a34c55aaabc970860ef4dec23b0e06f686␟8771286106126615689:Gauge measured in`;
+    } let i18n_11; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
+        const MSG_EXTERNAL_logEditGaugeHeight$$SRC_APP_MYGNUBOAT_LOGADD_COMPONENT_TS_12 = goog.getMsg("Gauge Height (Stage) in metre:");
+        i18n_11 = MSG_EXTERNAL_logEditGaugeHeight$$SRC_APP_MYGNUBOAT_LOGADD_COMPONENT_TS_12;
+    }
+    else {
+        i18n_11 = $localize `:@@logEditGaugeHeight␟9f053067bc1c40fa5b704eca40b6d49bdec48f29␟5764946672313343537:Gauge Height (Stage) in metre:`;
+    } let i18n_13; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
+        const MSG_EXTERNAL_5359421901574936400$$SRC_APP_MYGNUBOAT_LOGADD_COMPONENT_TS_14 = goog.getMsg("Level as number with . as decimal seperator");
+        i18n_13 = MSG_EXTERNAL_5359421901574936400$$SRC_APP_MYGNUBOAT_LOGADD_COMPONENT_TS_14;
+    }
+    else {
+        i18n_13 = $localize `:␟d4915cafac52ba0b37bde47df608e5110138308e␟5359421901574936400:Level as number with . as decimal seperator`;
+    } let i18n_15; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
+        const MSG_EXTERNAL_logEditDevice$$SRC_APP_MYGNUBOAT_LOGADD_COMPONENT_TS_16 = goog.getMsg("Device:");
+        i18n_15 = MSG_EXTERNAL_logEditDevice$$SRC_APP_MYGNUBOAT_LOGADD_COMPONENT_TS_16;
+    }
+    else {
+        i18n_15 = $localize `:@@logEditDevice␟5e9272a5fe59404f637fb8343fe594f9d840aae8␟8067885942233821820:Device:`;
+    } let i18n_17; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
+        const MSG_EXTERNAL_6690842742111842657$$SRC_APP_MYGNUBOAT_LOGADD_COMPONENT_TS_18 = goog.getMsg("Device used for logging");
+        i18n_17 = MSG_EXTERNAL_6690842742111842657$$SRC_APP_MYGNUBOAT_LOGADD_COMPONENT_TS_18;
+    }
+    else {
+        i18n_17 = $localize `:␟3b70c5e96cc2a0a586d02306c5251d504b7a18f9␟6690842742111842657:Device used for logging`;
+    } let i18n_19; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
+        const MSG_EXTERNAL_logEditFile$$SRC_APP_MYGNUBOAT_LOGADD_COMPONENT_TS_20 = goog.getMsg("Logfile:");
+        i18n_19 = MSG_EXTERNAL_logEditFile$$SRC_APP_MYGNUBOAT_LOGADD_COMPONENT_TS_20;
+    }
+    else {
+        i18n_19 = $localize `:@@logEditFile␟5123f1da2143102e0d190692a9c71c61feb7e4dd␟3826823411314679528:Logfile:`;
+    } let i18n_21; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
+        const MSG_EXTERNAL_logEditComment$$SRC_APP_MYGNUBOAT_LOGADD_COMPONENT_TS_22 = goog.getMsg("Comment:");
+        i18n_21 = MSG_EXTERNAL_logEditComment$$SRC_APP_MYGNUBOAT_LOGADD_COMPONENT_TS_22;
+    }
+    else {
+        i18n_21 = $localize `:@@logEditComment␟96e41129ef5d2fa12b7a6ffcab608e9af04d8cbd␟872792317034860453:Comment:`;
+    } let i18n_23; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
+        const MSG_EXTERNAL_logButtonAdd$$SRC_APP_MYGNUBOAT_LOGADD_COMPONENT_TS_24 = goog.getMsg("Add");
+        i18n_23 = MSG_EXTERNAL_logButtonAdd$$SRC_APP_MYGNUBOAT_LOGADD_COMPONENT_TS_24;
+    }
+    else {
+        i18n_23 = $localize `:@@logButtonAdd␟f6755cff4957d5c3c89bafce5651f1b6fa2b1fd9␟3249513483374643425:Add`;
+    } let i18n_25; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
+        const MSG_EXTERNAL_logWaterRequired$$SRC_APP_MYGNUBOAT_LOGADD_COMPONENT_TS__26 = goog.getMsg("Water is required.");
+        i18n_25 = MSG_EXTERNAL_logWaterRequired$$SRC_APP_MYGNUBOAT_LOGADD_COMPONENT_TS__26;
+    }
+    else {
+        i18n_25 = $localize `:@@logWaterRequired␟d473305d4c72e1f050254147599b4611484020b2␟259140155653744296:Water is required.`;
+    } let i18n_27; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
+        const MSG_EXTERNAL_logGaugeRequired$$SRC_APP_MYGNUBOAT_LOGADD_COMPONENT_TS__28 = goog.getMsg("Gauge is required.");
+        i18n_27 = MSG_EXTERNAL_logGaugeRequired$$SRC_APP_MYGNUBOAT_LOGADD_COMPONENT_TS__28;
+    }
+    else {
+        i18n_27 = $localize `:@@logGaugeRequired␟aef0f4f5c2ee55bb55716b6fddd857118bf5d4d8␟7006240767005844549:Gauge is required.`;
+    } let i18n_29; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
+        const MSG_EXTERNAL_logGaugeHeightRequired$$SRC_APP_MYGNUBOAT_LOGADD_COMPONENT_TS__30 = goog.getMsg("Level of gauge is required.");
+        i18n_29 = MSG_EXTERNAL_logGaugeHeightRequired$$SRC_APP_MYGNUBOAT_LOGADD_COMPONENT_TS__30;
+    }
+    else {
+        i18n_29 = $localize `:@@logGaugeHeightRequired␟e1371fad77ac299455fc6566d067051b05581e3c␟2514946971223976852:Level of gauge is required.`;
+    } let i18n_31; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
+        const MSG_EXTERNAL_logDeviceRequired$$SRC_APP_MYGNUBOAT_LOGADD_COMPONENT_TS__32 = goog.getMsg("Device is required.");
+        i18n_31 = MSG_EXTERNAL_logDeviceRequired$$SRC_APP_MYGNUBOAT_LOGADD_COMPONENT_TS__32;
+    }
+    else {
+        i18n_31 = $localize `:@@logDeviceRequired␟544a3a3f388029669e2bf1e003947c02a468d7f5␟3577197732437117405:Device is required.`;
+    } let i18n_33; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
+        const MSG_EXTERNAL_logLogFileRequired$$SRC_APP_MYGNUBOAT_LOGADD_COMPONENT_TS__34 = goog.getMsg("Logfile is required.");
+        i18n_33 = MSG_EXTERNAL_logLogFileRequired$$SRC_APP_MYGNUBOAT_LOGADD_COMPONENT_TS__34;
+    }
+    else {
+        i18n_33 = $localize `:@@logLogFileRequired␟ac68874819dd65cc31abb6f8e46b8f3806b4d999␟2134246091287354565:Logfile is required.`;
+    } return [[1, "header"], i18n_1, [1, "content"], [1, "pure-form", "pure-form-aligned", 3, "formGroup", "ngSubmit"], [1, "pure-control-group"], ["for", "water"], i18n_3, ["id", "logEditWater", "ngModel", "", "formControlName", "water", "type", "text", "placeholder", i18n_5, "required", ""], ["logWaterInput", ""], ["class", "processing", "src", "/resources/processing.svg", 4, "ngIf"], ["class", "pure-form-message-inline", 4, "ngIf"], ["for", "gauge"], i18n_7, ["id", "logEditGauge", "ngModel", "", "formControlName", "gauge", "type", "text", "placeholder", i18n_9, "required", ""], ["logGaugeInput", ""], ["for", "gaugeHeight"], i18n_11, ["ngModel", "", "formControlName", "gaugeHeight", "type", "number", "placeholder", i18n_13, "required", ""], ["logGaugeHeightInput", ""], ["for", "device"], i18n_15, ["id", "logEditDevice", "ngModel", "", "formControlName", "device", "type", "text", "placeholder", i18n_17, "required", ""], ["logDeviceInput", ""], ["for", "logEditFile"], i18n_19, ["type", "file", "id", "logEditFile", "ngModel", "", "formControlName", "logfile", "required", ""], ["logFileInput", ""], ["for", "comment"], i18n_21, ["ngModel", "", "formControlName", "comment"], ["logCommentInput", ""], [1, "pure-controls"], [1, "pure-button", "pure-button-primary", "button-add", 3, "disabled"], i18n_23, [1, "pure-button", 3, "mousedown"], ["src", "/resources/processing.svg", 1, "processing"], [1, "pure-form-message-inline"], i18n_25, i18n_27, i18n_29, i18n_31, i18n_33]; }, template: function LogAddComponent_Template(rf, ctx) { if (rf & 1) {
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "h1");
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵi18n"](2, 1);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "alert");
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 2);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "form", 3);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngSubmit", function LogAddComponent_Template_form_ngSubmit_5_listener() { return ctx.addLog(); });
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "fieldset");
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 4);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "label", 5);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵi18n"](9, 6);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](10, "input", 7, 8);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](12, LogAddComponent_img_12_Template, 1, 0, "img", 9);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](13, LogAddComponent_span_13_Template, 2, 0, "span", 10);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "div", 4);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "label", 11);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵi18n"](16, 12);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](17, "input", 13, 14);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](19, LogAddComponent_img_19_Template, 1, 0, "img", 9);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](20, LogAddComponent_span_20_Template, 2, 0, "span", 10);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "div", 4);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "label", 15);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵi18n"](23, 16);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](24, "input", 17, 18);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](26, LogAddComponent_span_26_Template, 2, 0, "span", 10);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "div", 4);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](28, "label", 19);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵi18n"](29, 20);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](30, "input", 21, 22);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](32, LogAddComponent_img_32_Template, 1, 0, "img", 9);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](33, LogAddComponent_span_33_Template, 2, 0, "span", 10);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](34, "div", 4);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](35, "label", 23);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵi18n"](36, 24);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](37, "input", 25, 26);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](39, LogAddComponent_span_39_Template, 2, 0, "span", 10);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](40, "div", 4);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](41, "label", 27);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵi18n"](42, 28);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](43, "textarea", 29, 30);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](45, "div", 31);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](46, LogAddComponent_img_46_Template, 1, 0, "img", 9);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](47, "button", 32);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵi18n"](48, 33);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](49, "button", 34);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("mousedown", function LogAddComponent_Template_button_mousedown_49_listener() { return ctx.cancelEditing(); });
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](50, "Cancel");
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+    } if (rf & 2) {
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx.logForm);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.isProcessingWater);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.logForm.controls["water"].errors);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.isProcessingGauge);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.logForm.controls["gauge"].errors);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.logForm.controls["gaugeHeight"].errors);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.isProcessingDevice);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.logForm.controls["device"].errors);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.logForm.controls["logfile"].errors);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.isUploading);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", ctx.logForm.pristine || ctx.logForm.invalid);
+    } }, directives: [_components_alert_component__WEBPACK_IMPORTED_MODULE_7__["AlertComponent"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormGroupDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControlName"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["RequiredValidator"], _angular_common__WEBPACK_IMPORTED_MODULE_8__["NgIf"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["NumberValueAccessor"]], encapsulation: 2 });
+
+
+/***/ }),
+
+/***/ "Sy1n":
+/*!**********************************!*\
+  !*** ./src/app/app.component.ts ***!
+  \**********************************/
+/*! exports provided: AppComponent */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AppComponent", function() { return AppComponent; });
+/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/router */ "tyNb");
+/* harmony import */ var _services__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./services */ "o0su");
+/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ "fXoL");
+/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/common */ "ofXK");
+
+
+
+
+
+
+function AppComponent_li_34_Template(rf, ctx) { if (rf & 1) {
+    const _r4 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
+    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "li", 6);
+    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "a", 25);
+    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AppComponent_li_34_Template_a_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r4); const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r3.logout(); });
+    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, "Logout");
+    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
+    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
+} }
+function AppComponent_li_35_Template(rf, ctx) { if (rf & 1) {
+    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "li", 6);
+    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "a", 26);
+    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, "Login");
+    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
+    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
+} }
+function AppComponent_a_36_Template(rf, ctx) { if (rf & 1) {
+    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "a", 27);
+    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, "Register");
+    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
+} }
+class AppComponent {
+    constructor(router, authenticationService) {
+        this.router = router;
+        this.authenticationService = authenticationService;
+        this.authenticationService.currentUser.subscribe(x => this.currentUser = x);
+    }
+    logout() {
+        this.authenticationService.logout();
+        this.router.navigate(['/login']);
+    }
+}
+AppComponent.ɵfac = function AppComponent_Factory(t) { return new (t || AppComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_0__["Router"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_services__WEBPACK_IMPORTED_MODULE_1__["AuthenticationService"])); };
+AppComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineComponent"]({ type: AppComponent, selectors: [["app"]], decls: 48, vars: 3, consts: [["id", "layout", 1, ""], ["id", "menuLink", 1, "menu-link"], ["id", "menu", 1, ""], [1, "pure-menu"], ["routerLink", "home", 1, "pure-menu-heading"], [1, "pure-menu-list"], [1, "pure-menu-item"], ["routerLink", "home", 1, "pure-menu-link"], ["data", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtrustConstantResourceUrl"] `/resources/gnuboat-map.svg`, 1, "svg-icon-logfile"], ["routerLink", "water", 1, "pure-menu-link"], ["data", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtrustConstantResourceUrl"] `/resources/gnuboat-water.svg`, 1, "svg-icon"], [1, "pure-menu-heading"], ["routerLink", "mygnuboat", "fragment", "logfiles", 1, "pure-menu-link"], ["data", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtrustConstantResourceUrl"] `/resources/gnuboat-logfile.svg`, 1, "svg-icon-logfile"], ["routerLink", "mygnuboat", "fragment", "waters", 1, "pure-menu-link"], ["routerLink", "mygnuboat", "fragment", "devices", 1, "pure-menu-link"], ["data", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtrustConstantResourceUrl"] `/resources/gnuboat-device.svg`, 1, "svg-icon-device"], ["routerLink", "mygnuboat", "fragment", "apikeys", 1, "pure-menu-link"], ["class", "pure-menu-item", 4, "ngIf"], ["class", "pure-menu-heading", "routerLink", "register", 4, "ngIf"], [1, "main"], [1, "footer"], [1, "pure-g"], [1, "pure-u-1-2"], ["href", "trac.engsas.de/gnuboat"], [1, "pure-menu-link", 3, "click"], ["routerLink", "login", 1, "pure-menu-link"], ["routerLink", "register", 1, "pure-menu-heading"]], template: function AppComponent_Template(rf, ctx) { if (rf & 1) {
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 0);
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "nav");
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "a", 1);
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](3, "span");
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "div", 2);
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "div", 3);
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "a", 4);
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](7, "GNUBoat");
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "ul", 5);
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "li", 6);
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "a", 7);
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](11, "object", 8);
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](12, "Map");
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](13, "li", 6);
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](14, "a", 9);
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](15, "object", 10);
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](16, "Waters");
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](17, "li", 11);
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](18, "My GNUBoat");
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](19, "li", 6);
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](20, "a", 12);
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](21, "object", 13);
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](22, "Logfiles");
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](23, "li", 6);
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](24, "a", 14);
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](25, "object", 10);
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](26, "Waters");
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](27, "li", 6);
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](28, "a", 15);
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](29, "object", 16);
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](30, "Devices");
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](31, "li", 6);
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](32, "a", 17);
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](33, "Api Keys");
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](34, AppComponent_li_34_Template, 3, 0, "li", 18);
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](35, AppComponent_li_35_Template, 3, 0, "li", 18);
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](36, AppComponent_a_36_Template, 2, 0, "a", 19);
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](37, "div", 20);
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](38, "router-outlet");
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](39, "div", 21);
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](40, "div", 22);
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](41, "div", 23);
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](42, "p");
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](43, "a", 24);
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](44, "Visit GNUBoat Project");
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](45, "div", 23);
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](46, "p");
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](47, "This software uses several open source componentes");
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
+    } if (rf & 2) {
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](34);
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.currentUser);
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !ctx.currentUser);
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
+        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !ctx.currentUser);
+    } }, directives: [_angular_router__WEBPACK_IMPORTED_MODULE_0__["RouterLinkWithHref"], _angular_common__WEBPACK_IMPORTED_MODULE_3__["NgIf"], _angular_router__WEBPACK_IMPORTED_MODULE_0__["RouterOutlet"]], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJhcHAuY29tcG9uZW50LmNzcyJ9 */"] });
+
+
+/***/ }),
+
+/***/ "TAPr":
+/*!******************************!*\
+  !*** ./src/app/map/index.ts ***!
+  \******************************/
+/*! exports provided: MapComponent */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony import */ var _map_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./map.component */ "cNoH");
+/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MapComponent", function() { return _map_component__WEBPACK_IMPORTED_MODULE_0__["MapComponent"]; });
+
+
+
+
+/***/ }),
+
+/***/ "U+S2":
+/*!**********************************************************!*\
+  !*** ./src-gen/gnuboat-mapservice/model/userCreation.ts ***!
+  \**********************************************************/
+/*! no exports provided */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/**
+ * GNUBoat Mapservice API
+ * API to upload log files with water depth to GNUBoat server
+ *
+ * The version of the OpenAPI document: v1
+ * Contact: info@engsas.de
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+
+
+
+/***/ }),
+
+/***/ "UTcu":
+/*!**************************************!*\
+  !*** ./src/app/guards/auth.guard.ts ***!
+  \**************************************/
+/*! exports provided: AuthGuard */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AuthGuard", function() { return AuthGuard; });
+/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/router */ "tyNb");
+/* harmony import */ var _services__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../services */ "o0su");
+/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ "fXoL");
+
+
+
+
+
+class AuthGuard {
+    constructor(router, authenticationService) {
+        this.router = router;
+        this.authenticationService = authenticationService;
+    }
+    canActivate(route, state) {
+        const currentUser = this.authenticationService.currentUserValue;
+        if (currentUser) {
+            // authorised 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, fragment: route.fragment } });
+        return false;
+    }
+}
+AuthGuard.ɵfac = function AuthGuard_Factory(t) { return new (t || AuthGuard)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵinject"](_angular_router__WEBPACK_IMPORTED_MODULE_0__["Router"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵinject"](_services__WEBPACK_IMPORTED_MODULE_1__["AuthenticationService"])); };
+AuthGuard.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineInjectable"]({ token: AuthGuard, factory: AuthGuard.ɵfac, providedIn: 'root' });
+
+
+/***/ }),
+
+/***/ "VN7w":
+/*!*************************************************!*\
+  !*** ./src/app/services/osmoverpass.service.ts ***!
+  \*************************************************/
+/*! exports provided: OsmOverpassService */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OsmOverpassService", function() { return OsmOverpassService; });
+/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
+/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common/http */ "tk/3");
+/* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../environments/environment */ "AytR");
+/* harmony import */ var _alert_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./alert.service */ "3LUQ");
+/* harmony import */ var _src_gen_gnuboat_mapservice__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../src-gen/gnuboat-mapservice */ "zZ2Q");
+/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/core */ "fXoL");
+
+
+
+
+
+
+
+
+var osmtogeojson = __webpack_require__(/*! osmtogeojson */ "E6f0");
+class OsmOverpassService {
+    constructor(http, alertService) {
+        this.http = http;
+        this.alertService = alertService;
+        this.overpassHeaders = new _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpHeaders"]({ 'Content-Type': 'text/xml' }).set('Accept', 'text/xml');
+    }
+    findWaters(name) {
+        var query = '[timeout:25];( rel[name~"' + name + '"][natural="water"]; rel[name~"' + name + '"][type="waterway"]; ); out center;';
+        return this.http.get(_environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].OVERPASS_API_PATH + "?data=" + query, { observe: 'response', responseType: 'text', headers: this.overpassHeaders }).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_0__["map"])(res => osmtogeojson(jQuery.parseXML(res.body))));
+    }
+    getElement(id, osmType) {
+        var osmTypeQuery = undefined;
+        if (osmType == _src_gen_gnuboat_mapservice__WEBPACK_IMPORTED_MODULE_4__["OsmType"].Relation) {
+            osmTypeQuery = 'rel';
+        }
+        else if (osmType == _src_gen_gnuboat_mapservice__WEBPACK_IMPORTED_MODULE_4__["OsmType"].Way) {
+            osmTypeQuery = 'way';
+        }
+        else {
+            this.alertService.error("Type " + osmType + " then relation from Overpass API requested!");
+            return;
+        }
+        var query = '[timeout:25];( ' + osmTypeQuery + '(' + id + '); ); out body; >; out skel qt;';
+        return this.http.get(_environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].OVERPASS_API_PATH + "?data=" + query, { observe: 'response', responseType: 'text', headers: this.overpassHeaders }).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_0__["map"])(res => osmtogeojson(jQuery.parseXML(res.body))));
+    }
+}
+OsmOverpassService.ɵfac = function OsmOverpassService_Factory(t) { return new (t || OsmOverpassService)(_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"]), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵinject"](_alert_service__WEBPACK_IMPORTED_MODULE_3__["AlertService"])); };
+OsmOverpassService.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdefineInjectable"]({ token: OsmOverpassService, factory: OsmOverpassService.ɵfac });
+
+
+/***/ }),
+
+/***/ "ZAI4":
+/*!*******************************!*\
+  !*** ./src/app/app.module.ts ***!
+  \*******************************/
+/*! exports provided: AppModule */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AppModule", function() { return AppModule; });
+/* harmony import */ var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/platform-browser */ "jhN1");
+/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
+/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common/http */ "tk/3");
+/* harmony import */ var _app_routing__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./app.routing */ "beVS");
+/* harmony import */ var _app_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./app.component */ "Sy1n");
+/* harmony import */ var _src_gen_gnuboat_mapservice__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../src-gen/gnuboat-mapservice */ "zZ2Q");
+/* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../environments/environment */ "AytR");
+/* harmony import */ var _components_alert_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./components/alert.component */ "kyU9");
+/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./helpers */ "6rF9");
+/* harmony import */ var _home___WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./home/ */ "wn6f");
+/* harmony import */ var _user__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./user */ "OHu5");
+/* harmony import */ var _water__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./water */ "9ORU");
+/* harmony import */ var _map__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./map */ "TAPr");
+/* harmony import */ var _mygnuboat__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./mygnuboat */ "MIzB");
+/* harmony import */ var _logs__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./logs */ "4IkO");
+/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @angular/core */ "fXoL");
+/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @angular/router */ "tyNb");
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+class AppModule {
+}
+AppModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵdefineNgModule"]({ type: AppModule, bootstrap: [_app_component__WEBPACK_IMPORTED_MODULE_4__["AppComponent"]] });
+AppModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵdefineInjector"]({ factory: function AppModule_Factory(t) { return new (t || AppModule)(); }, providers: [
+        { provide: _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HTTP_INTERCEPTORS"], useClass: _helpers__WEBPACK_IMPORTED_MODULE_8__["AuthInterceptor"], multi: true },
+        { provide: _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HTTP_INTERCEPTORS"], useClass: _helpers__WEBPACK_IMPORTED_MODULE_8__["ErrorInterceptor"], multi: true },
+        { provide: _src_gen_gnuboat_mapservice__WEBPACK_IMPORTED_MODULE_5__["BASE_PATH"], useValue: _environments_environment__WEBPACK_IMPORTED_MODULE_6__["environment"].API_BASE_PATH }
+    ], imports: [[
+            _angular_platform_browser__WEBPACK_IMPORTED_MODULE_0__["BrowserModule"],
+            _angular_forms__WEBPACK_IMPORTED_MODULE_1__["ReactiveFormsModule"],
+            _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpClientModule"],
+            _src_gen_gnuboat_mapservice__WEBPACK_IMPORTED_MODULE_5__["ApiModule"],
+            _app_routing__WEBPACK_IMPORTED_MODULE_3__["routing"],
+        ]] });
+(function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵsetNgModuleScope"](AppModule, { declarations: [_app_component__WEBPACK_IMPORTED_MODULE_4__["AppComponent"],
+        _components_alert_component__WEBPACK_IMPORTED_MODULE_7__["AlertComponent"],
+        _home___WEBPACK_IMPORTED_MODULE_9__["HomeComponent"],
+        _user__WEBPACK_IMPORTED_MODULE_10__["LoginComponent"],
+        _user__WEBPACK_IMPORTED_MODULE_10__["RegisterComponent"],
+        _mygnuboat__WEBPACK_IMPORTED_MODULE_13__["UserComponent"],
+        _water__WEBPACK_IMPORTED_MODULE_11__["WatersComponent"],
+        _water__WEBPACK_IMPORTED_MODULE_11__["WaterComponent"],
+        _water__WEBPACK_IMPORTED_MODULE_11__["WaterDetailsComponent"],
+        _water__WEBPACK_IMPORTED_MODULE_11__["GaugesComponent"],
+        _map__WEBPACK_IMPORTED_MODULE_12__["MapComponent"],
+        _mygnuboat__WEBPACK_IMPORTED_MODULE_13__["WaterAddComponent"],
+        _mygnuboat__WEBPACK_IMPORTED_MODULE_13__["GaugeEditComponent"],
+        _mygnuboat__WEBPACK_IMPORTED_MODULE_13__["DeviceAddComponent"],
+        _mygnuboat__WEBPACK_IMPORTED_MODULE_13__["LogAddComponent"],
+        _logs__WEBPACK_IMPORTED_MODULE_14__["LogsComponent"]], imports: [_angular_platform_browser__WEBPACK_IMPORTED_MODULE_0__["BrowserModule"],
+        _angular_forms__WEBPACK_IMPORTED_MODULE_1__["ReactiveFormsModule"],
+        _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpClientModule"],
+        _src_gen_gnuboat_mapservice__WEBPACK_IMPORTED_MODULE_5__["ApiModule"], _angular_router__WEBPACK_IMPORTED_MODULE_16__["RouterModule"]] }); })();
+
+
+/***/ }),
+
+/***/ "aBq8":
+/*!**********************************************************!*\
+  !*** ./src-gen/gnuboat-mapservice/model/geoJsonPoint.ts ***!
+  \**********************************************************/
+/*! no exports provided */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/**
+ * GNUBoat Mapservice API
+ * API to upload log files with water depth to GNUBoat server
+ *
+ * The version of the OpenAPI document: v1
+ * Contact: info@engsas.de
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+
+
+
+/***/ }),
+
+/***/ "auXs":
+/*!*********************************!*\
+  !*** ./src/app/guards/index.ts ***!
+  \*********************************/
+/*! exports provided: AuthGuard */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony import */ var _auth_guard__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./auth.guard */ "UTcu");
+/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AuthGuard", function() { return _auth_guard__WEBPACK_IMPORTED_MODULE_0__["AuthGuard"]; });
+
+
+
+
+/***/ }),
+
+/***/ "beVS":
+/*!********************************!*\
+  !*** ./src/app/app.routing.ts ***!
+  \********************************/
+/*! exports provided: routing */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "routing", function() { return routing; });
+/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/router */ "tyNb");
+/* harmony import */ var _guards__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./guards */ "auXs");
+/* harmony import */ var _user__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./user */ "OHu5");
+/* harmony import */ var _water__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./water */ "9ORU");
+/* harmony import */ var _mygnuboat__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./mygnuboat */ "MIzB");
+/* harmony import */ var _home__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./home */ "wn6f");
+
+
+
+
+
+
+const routes = [
+    { path: '', component: _home__WEBPACK_IMPORTED_MODULE_5__["HomeComponent"] },
+    { path: 'login', component: _user__WEBPACK_IMPORTED_MODULE_2__["LoginComponent"] },
+    { path: 'mygnuboat', component: _mygnuboat__WEBPACK_IMPORTED_MODULE_4__["UserComponent"], canActivate: [_guards__WEBPACK_IMPORTED_MODULE_1__["AuthGuard"]] },
+    { path: 'mygnuboat/water/add', component: _mygnuboat__WEBPACK_IMPORTED_MODULE_4__["WaterAddComponent"], canActivate: [_guards__WEBPACK_IMPORTED_MODULE_1__["AuthGuard"]] },
+    { path: 'mygnuboat/device/add', component: _mygnuboat__WEBPACK_IMPORTED_MODULE_4__["DeviceAddComponent"], canActivate: [_guards__WEBPACK_IMPORTED_MODULE_1__["AuthGuard"]] },
+    { path: 'mygnuboat/log/add', component: _mygnuboat__WEBPACK_IMPORTED_MODULE_4__["LogAddComponent"], canActivate: [_guards__WEBPACK_IMPORTED_MODULE_1__["AuthGuard"]] },
+    { path: 'water', component: _water__WEBPACK_IMPORTED_MODULE_3__["WatersComponent"] },
+    { path: 'water/:id', component: _water__WEBPACK_IMPORTED_MODULE_3__["WaterDetailsComponent"] },
+    { path: 'register', component: _user__WEBPACK_IMPORTED_MODULE_2__["RegisterComponent"] },
+    // otherwise redirect to home
+    { path: '**', redirectTo: '' }
+];
+const routing = _angular_router__WEBPACK_IMPORTED_MODULE_0__["RouterModule"].forRoot(routes, { relativeLinkResolution: 'legacy' });
+
+
+/***/ }),
+
+/***/ "cJIb":
+/*!*********************************************!*\
+  !*** ./src/app/helpers/auth.interceptor.ts ***!
+  \*********************************************/
+/*! exports provided: AuthInterceptor */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AuthInterceptor", function() { return AuthInterceptor; });
+/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common/http */ "tk/3");
+/* harmony import */ var _services__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../services */ "o0su");
+/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ "fXoL");
+
+
+
+
+class AuthInterceptor {
+    constructor(authenticationService) {
+        this.authenticationService = authenticationService;
+    }
+    intercept(request, next) {
+        // add authorization header with jwt token if available
+        let currentUser = this.authenticationService.currentUserValue;
+        if (currentUser && currentUser.apiKeys.length > 0) {
+            request = request.clone({
+                setHeaders: {
+                    'X-API-KEY': `${currentUser.apiKeys[0]}`
+                }
+            });
+        }
+        return next.handle(request);
+    }
+}
+AuthInterceptor.ɵfac = function AuthInterceptor_Factory(t) { return new (t || AuthInterceptor)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵinject"](_services__WEBPACK_IMPORTED_MODULE_1__["AuthenticationService"])); };
+AuthInterceptor.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineInjectable"]({ token: AuthInterceptor, factory: AuthInterceptor.ɵfac });
+
+
+/***/ }),
+
+/***/ "cNoH":
+/*!**************************************!*\
+  !*** ./src/app/map/map.component.ts ***!
+  \**************************************/
+/*! exports provided: MapComponent */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MapComponent", function() { return MapComponent; });
+/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
+/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
+/* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../environments/environment */ "AytR");
+/* harmony import */ var _src_gen_gnuboat_mapservice__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../src-gen/gnuboat-mapservice */ "zZ2Q");
+/* harmony import */ var _services__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../services */ "o0su");
+/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/common */ "ofXK");
+
+
+
+
+
+
+
+
+
+const _c0 = ["mapElement"];
+function MapComponent_img_4_Template(rf, ctx) { if (rf & 1) {
+    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "img", 5);
+} }
+class MapComponent {
+    constructor(logsService, osmOverpassService) {
+        this.logsService = logsService;
+        this.osmOverpassService = osmOverpassService;
+        this._mapViewportStyleClass = "";
+        this.map = undefined;
+        this.mapControl = undefined;
+        this.osmLayer = undefined;
+        this.gaugesLayer = undefined;
+        this.logsLayer = undefined;
+        this.water = undefined;
+        this.logoShow = true;
+        this.controlsShow = true;
+        this.logsShow = true;
+        this.clickedRight = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
+    }
+    ngOnInit() {
+        //this.mapSetup();
+    }
+    ngOnDestroy() {
+    }
+    ngOnChanges(changes) {
+        if ('water' in changes && this.water && this.map) {
+            if (!changes.water.previousValue || changes.water.currentValue.waterId != changes.water.previousValue.waterId) {
+                this.addWaterToMap(this.water);
+            }
+            // replace gauges with (possible) changed ones
+            this.addGaugesToMap(changes.water.currentValue.gauges);
+        }
+    }
+    ngAfterViewInit() {
+        if (!this.map) {
+            this.mapSetup();
+        }
+    }
+    getMap() {
+        return this.map;
+    }
+    set viewportStyleClass(styleClass) {
+        this._mapViewportStyleClass = styleClass;
+    }
+    mapSetup() {
+        this.map = L.map(this.mapElement.nativeElement, {
+            center: [48.43, 10.04],
+            zoom: 17,
+            zoomControl: this.controlsShow,
+        });
+        this.map.on('contextmenu', (event) => {
+            var point = {};
+            point.latitude = event.latlng.lat;
+            point.longitude = event.latlng.lng;
+            this.clickedRight.emit(point);
+            return event;
+        });
+        var layer_openstreetmap = L.tileLayer(_environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].OSM_TILE_SERVER, { attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>, <a href="http://www.openseamap.org">OpenSeaMap</a>, <a href="http://gnuboat.engsas.de">GNUBoat</a> contributors' }).addTo(this.map);
+        var layer_openseamap = L.tileLayer('http://tiles.openseamap.org/seamark/{z}/{x}/{y}.png', { attribute: '&copy; <a href="http://www.openseamap.org">OpenSeaMap</a> contributors' }).addTo(this.map);
+        var baselayers = {
+            "Map": layer_openstreetmap,
+        };
+        var overlays = { "Seamarks": layer_openseamap };
+        // add GNUBoat layers
+        var layer_gnuboat_accuracy_low = L.tileLayer(_environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].API_BASE_PATH + '/tiles/gnuboat/low/256/{z}/{x}/{y}.png', { tms: true, opacity: 0.5, zIndex: 98, attribute: '&copy; <a href="http://gnuboat.engsas.de">GNUBoat</a> contributors' });
+        var layer_gnuboat_accuracy_high = L.tileLayer(_environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].API_BASE_PATH + '/tiles/gnuboat/high/256/{z}/{x}/{y}.png', { tms: true, opacity: 0.5, zIndex: 98, attribute: '&copy; <a href="http://gnuboat.engsas.de">GNUBoat</a> contributors' }).addTo(this.map);
+        overlays["GNUBoat Low Accuracy"] = layer_gnuboat_accuracy_low;
+        overlays["GNUBoat High Accuracy"] = layer_gnuboat_accuracy_high;
+        if (this.controlsShow) {
+            // add layer control
+            this.mapControl = L.control.layers(baselayers, overlays, { hideSingleBase: true, sortLayers: true, }).addTo(this.map);
+            // add scale
+            L.control.scale().addTo(this.map);
+        }
+        if (this.water) {
+            this.addWaterToMap(this.water);
+        }
+    }
+    addOsmElement(id, osmType) {
+        if (!this.osmLayer) {
+            this.osmLayer = this.addGeoJsonLayer();
+            if (this.mapControl)
+                this.mapControl.addOverlay(this.osmLayer, "OSM Data");
+        }
+        this.osmLayer.clearLayers();
+        this.osmOverpassService.getElement(id, osmType).subscribe(res => {
+            this.osmLayer.addData(res);
+            this.map.fitBounds(this.osmLayer.getBounds());
+        });
+    }
+    addGeoJsonLayer(options = {}) {
+        return L.geoJSON(undefined, options).addTo(this.map);
+    }
+    addWaterToMap(water) {
+        this.addOsmElement(water.osmId, water.osmType);
+        if ('gauges' in water) {
+            this.addGaugesToMap(water.gauges);
+        }
+        if (this.logsShow && 'logs' in water) {
+            this.addLogs(water.logs);
+        }
+    }
+    addGaugesToMap(gauges) {
+        /* currently openapi-generators typescript-angular plugin isn't able to handle content types, which are not plain json
+           therefore we convert the gauges here and add them to the map. The API as defined, supports geo+json format already
+         */
+        if (this.gaugesLayer) {
+            this.gaugesLayer.clearLayers();
+        }
+        if (!gauges || gauges.length < 1) {
+            return;
+        }
+        if (!this.gaugesLayer) {
+            this.gaugesLayer = this.addGeoJsonLayer({
+                onEachFeature: this.gaugesMarkerPopup,
+                pointToLayer: this.gaugesMarker
+            });
+            if (this.mapControl)
+                this.mapControl.addOverlay(this.gaugesLayer, "Gauges");
+        }
+        gauges.forEach(gauge => {
+            var gaugeGeoJson = {};
+            gaugeGeoJson.type = "Feature";
+            gaugeGeoJson.geometry = {};
+            gaugeGeoJson.geometry.type = "Point";
+            gaugeGeoJson.geometry.coordinates = [];
+            gaugeGeoJson.geometry.coordinates.push(gauge.location[0]);
+            gaugeGeoJson.geometry.coordinates.push(gauge.location[1]);
+            gaugeGeoJson.properties = {};
+            gaugeGeoJson.properties.name = gauge.name;
+            gaugeGeoJson.properties.manager = gauge.manager;
+            gaugeGeoJson.properties.comment = gauge.comment;
+            this.gaugesLayer.addData(gaugeGeoJson);
+        });
+    }
+    addLogs(logs) {
+        if (logs && logs.length < 1) {
+            return;
+        }
+        logs.forEach(logMetaData => {
+            // if possible later on, add apllication/geo+json as Accept header
+            this.logsService.logsLogGetById(logMetaData.logId).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["first"])()).subscribe(log => {
+                this.addLogToMap(log);
+            });
+        });
+    }
+    addLogToMap(log) {
+        /* currently openapi-generators typescript-angular plugin isn't able to handle content types, which are not plain json
+           therefore we convert the logs here and add them to the map. The API as defined, supports geo+json format already
+         */
+        if (!log || log.entries.length < 1)
+            return;
+        if (!this.logsLayer) {
+            this.logsLayer = this.addGeoJsonLayer({
+                style: MapComponent.logsStyle,
+                pointToLayer: function (feature, latlng) {
+                    return L.circleMarker(latlng, { radius: 1.5 });
+                }
+            });
+            if (this.mapControl)
+                this.mapControl.addOverlay(this.logsLayer, "Logs");
+            this.logsLayer.remove();
+        }
+        var logGeoJson = {};
+        logGeoJson.type = "FeatureCollection";
+        logGeoJson.features = [];
+        var i = 0;
+        log.entries.forEach(entry => {
+            var logEntryGeoJson = {};
+            logEntryGeoJson.type = 'Feature';
+            logEntryGeoJson.geometry = {};
+            logEntryGeoJson.geometry.type = "Point";
+            logEntryGeoJson.geometry.coordinates = [];
+            logEntryGeoJson.geometry.coordinates.push(entry.location[0]);
+            logEntryGeoJson.geometry.coordinates.push(entry.location[1]);
+            logEntryGeoJson.properties = {};
+            logEntryGeoJson.properties.datetime = entry.datetime;
+            logEntryGeoJson.properties.waterDepth = entry.waterDepth;
+            logGeoJson.features.push(logEntryGeoJson);
+        });
+        this.logsLayer.addData(logGeoJson);
+    }
+    gaugesMarker(feature, latlng) {
+        /** var markerOptions = {
+          radius: 8,
+          fillColor: "#ff7800",
+          color: "#000",
+          weight: 1,
+          opacity: 1,
+          fillOpacity: 0.8,
+          background: 'url("/resources/gnuboat-gauge.svg") no-repeat left center'
+        };
+        return L.circleMarker(latlng, markerOptions); */
+        var myIcon = L.icon({
+            iconUrl: '/resources/gnuboat-gauge.svg',
+            iconSize: [32, 32],
+        });
+        return L.marker(latlng, { icon: myIcon });
+    }
+    gaugesMarkerPopup(feature, layer) {
+        if (feature.properties && feature.properties.name) {
+            layer.bindPopup(feature.properties.name);
+        }
+    }
+    static logsStyle(feature) {
+        return { 'color': MapComponent.waterDepthToColor(feature.properties.waterDepth) };
+    }
+    static waterDepthToColor(waterDepth) {
+        var lastIndex = undefined;
+        for (var indexAbs in MapComponent.logsWaterDepthPalette) {
+            if (waterDepth < Number(indexAbs)) {
+                if (lastIndex) {
+                    return MapComponent.logsWaterDepthPalette[lastIndex];
+                }
+                else {
+                    return '#FF0000';
+                }
+            }
+            lastIndex = indexAbs;
+        }
+        if (lastIndex) {
+            return MapComponent.logsWaterDepthPalette[lastIndex];
+        }
+        else {
+            return '#FF0000';
+        }
+    }
+}
+MapComponent.logsWaterDepthPalette = { 0: '#00008B', 2: '#1E90FF', 6: ' #ADD8E6', 10: '#F0F8FF' };
+MapComponent.ɵfac = function MapComponent_Factory(t) { return new (t || MapComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_src_gen_gnuboat_mapservice__WEBPACK_IMPORTED_MODULE_3__["LogsService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_services__WEBPACK_IMPORTED_MODULE_4__["OsmOverpassService"])); };
+MapComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: MapComponent, selectors: [["gnuboat-map"]], viewQuery: function MapComponent_Query(rf, ctx) { if (rf & 1) {
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵviewQuery"](_c0, 3);
+    } if (rf & 2) {
+        let _t;
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.mapElement = _t.first);
+    } }, inputs: { water: "water", logoShow: "logoShow", controlsShow: "controlsShow", logsShow: "logsShow", viewportStyleClass: "viewportStyleClass" }, outputs: { clickedRight: "clickedRight" }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([_services__WEBPACK_IMPORTED_MODULE_4__["OsmOverpassService"]]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]], decls: 5, vars: 2, consts: [[3, "ngClass"], ["mapElement", ""], [1, "leaflet-top", "map-middle"], [1, "leaflet-control"], ["id", "logo", "src", "resources/gnuboat-256-256-transparent.png", 4, "ngIf"], ["id", "logo", "src", "resources/gnuboat-256-256-transparent.png"]], template: function MapComponent_Template(rf, ctx) { if (rf & 1) {
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0, 1);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 2);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 3);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, MapComponent_img_4_Template, 1, 0, "img", 4);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
+    } if (rf & 2) {
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", ctx._mapViewportStyleClass);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
+        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.logoShow);
+    } }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_5__["NgClass"], _angular_common__WEBPACK_IMPORTED_MODULE_5__["NgIf"]], encapsulation: 2 });
+
+
+/***/ }),
+
+/***/ "d1NA":
+/*!*********************************************************!*\
+  !*** ./src-gen/gnuboat-mapservice/api/users.service.ts ***!
+  \*********************************************************/
+/*! exports provided: UsersService */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UsersService", function() { return UsersService; });
+/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common/http */ "tk/3");
+/* harmony import */ var _encoder__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../encoder */ "gZ76");
+/* harmony import */ var _variables__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../variables */ "L3f3");
+/* harmony import */ var _configuration__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../configuration */ "rr0t");
+/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/core */ "fXoL");
+
+
+
+
+
+
+
+class UsersService {
+    constructor(httpClient, basePath, configuration) {
+        this.httpClient = httpClient;
+        this.basePath = 'https://gnuboat.engsas.com/mapservice/v1';
+        this.defaultHeaders = new _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpHeaders"]();
+        this.configuration = new _configuration__WEBPACK_IMPORTED_MODULE_3__["Configuration"]();
+        if (configuration) {
+            this.configuration = configuration;
+        }
+        if (typeof this.configuration.basePath !== 'string') {
+            if (typeof basePath !== 'string') {
+                basePath = this.basePath;
+            }
+            this.configuration.basePath = basePath;
+        }
+        this.encoder = this.configuration.encoder || new _encoder__WEBPACK_IMPORTED_MODULE_1__["CustomHttpParameterCodec"]();
+    }
+    addToHttpParams(httpParams, value, key) {
+        if (typeof value === "object" && value instanceof Date === false) {
+            httpParams = this.addToHttpParamsRecursive(httpParams, value);
+        }
+        else {
+            httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
+        }
+        return httpParams;
+    }
+    addToHttpParamsRecursive(httpParams, value, key) {
+        if (value == null) {
+            return httpParams;
+        }
+        if (typeof value === "object") {
+            if (Array.isArray(value)) {
+                value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
+            }
+            else if (value instanceof Date) {
+                if (key != null) {
+                    httpParams = httpParams.append(key, value.toISOString().substr(0, 10));
+                }
+                else {
+                    throw Error("key may not be null if value is Date");
+                }
+            }
+            else {
+                Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
+            }
+        }
+        else if (key != null) {
+            httpParams = httpParams.append(key, value);
+        }
+        else {
+            throw Error("key may not be null if value is not object or array");
+        }
+        return httpParams;
+    }
+    userOptions(observe = 'body', reportProgress = false, options) {
+        let headers = this.defaultHeaders;
+        let httpHeaderAcceptSelected = options && options.httpHeaderAccept;
+        if (httpHeaderAcceptSelected === undefined) {
+            // to determine the Accept header
+            const httpHeaderAccepts = [
+                'application/json'
+            ];
+            httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
+        }
+        if (httpHeaderAcceptSelected !== undefined) {
+            headers = headers.set('Accept', httpHeaderAcceptSelected);
+        }
+        let responseType = 'json';
+        if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
+            responseType = 'text';
+        }
+        return this.httpClient.options(`${this.configuration.basePath}/user`, {
+            responseType: responseType,
+            withCredentials: this.configuration.withCredentials,
+            headers: headers,
+            observe: observe,
+            reportProgress: reportProgress
+        });
+    }
+    usersActivate(activationCode, observe = 'body', reportProgress = false, options) {
+        if (activationCode === null || activationCode === undefined) {
+            throw new Error('Required parameter activationCode was null or undefined when calling usersActivate.');
+        }
+        let headers = this.defaultHeaders;
+        let httpHeaderAcceptSelected = options && options.httpHeaderAccept;
+        if (httpHeaderAcceptSelected === undefined) {
+            // to determine the Accept header
+            const httpHeaderAccepts = [];
+            httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
+        }
+        if (httpHeaderAcceptSelected !== undefined) {
+            headers = headers.set('Accept', httpHeaderAcceptSelected);
+        }
+        let responseType = 'json';
+        if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
+            responseType = 'text';
+        }
+        return this.httpClient.get(`${this.configuration.basePath}/user/activate/${encodeURIComponent(String(activationCode))}`, {
+            responseType: responseType,
+            withCredentials: this.configuration.withCredentials,
+            headers: headers,
+            observe: observe,
+            reportProgress: reportProgress
+        });
+    }
+    usersApiKeyCreate(observe = 'body', reportProgress = false, options) {
+        let headers = this.defaultHeaders;
+        let credential;
+        // authentication (basicAuth) required
+        credential = this.configuration.lookupCredential('basicAuth');
+        if (credential) {
+            headers = headers.set('Authorization', 'Basic ' + credential);
+        }
+        let httpHeaderAcceptSelected = options && options.httpHeaderAccept;
+        if (httpHeaderAcceptSelected === undefined) {
+            // to determine the Accept header
+            const httpHeaderAccepts = [
+                'application/json',
+                'application/problem+json'
+            ];
+            httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
+        }
+        if (httpHeaderAcceptSelected !== undefined) {
+            headers = headers.set('Accept', httpHeaderAcceptSelected);
+        }
+        let responseType = 'json';
+        if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
+            responseType = 'text';
+        }
+        return this.httpClient.get(`${this.configuration.basePath}/user/apikey_create`, {
+            responseType: responseType,
+            withCredentials: this.configuration.withCredentials,
+            headers: headers,
+            observe: observe,
+            reportProgress: reportProgress
+        });
+    }
+    usersApiKeyDelete(apiKey, observe = 'body', reportProgress = false, options) {
+        if (apiKey === null || apiKey === undefined) {
+            throw new Error('Required parameter apiKey was null or undefined when calling usersApiKeyDelete.');
+        }
+        let headers = this.defaultHeaders;
+        let credential;
+        // authentication (basicAuth) required
+        credential = this.configuration.lookupCredential('basicAuth');
+        if (credential) {
+            headers = headers.set('Authorization', 'Basic ' + credential);
+        }
+        let httpHeaderAcceptSelected = options && options.httpHeaderAccept;
+        if (httpHeaderAcceptSelected === undefined) {
+            // to determine the Accept header
+            const httpHeaderAccepts = [
+                'application/json',
+                'application/problem+json'
+            ];
+            httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
+        }
+        if (httpHeaderAcceptSelected !== undefined) {
+            headers = headers.set('Accept', httpHeaderAcceptSelected);
+        }
+        let responseType = 'json';
+        if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
+            responseType = 'text';
+        }
+        return this.httpClient.delete(`${this.configuration.basePath}/user/${encodeURIComponent(String(apiKey))}`, {
+            responseType: responseType,
+            withCredentials: this.configuration.withCredentials,
+            headers: headers,
+            observe: observe,
+            reportProgress: reportProgress
+        });
+    }
+    usersGet(observe = 'body', reportProgress = false, options) {
+        let headers = this.defaultHeaders;
+        let credential;
+        // authentication (apiKeyAuth) required
+        credential = this.configuration.lookupCredential('apiKeyAuth');
+        if (credential) {
+            headers = headers.set('X-API-KEY', credential);
+        }
+        // authentication (basicAuth) required
+        credential = this.configuration.lookupCredential('basicAuth');
+        if (credential) {
+            headers = headers.set('Authorization', 'Basic ' + credential);
+        }
+        let httpHeaderAcceptSelected = options && options.httpHeaderAccept;
+        if (httpHeaderAcceptSelected === undefined) {
+            // to determine the Accept header
+            const httpHeaderAccepts = [
+                'application/json',
+                'application/problem+json'
+            ];
+            httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
+        }
+        if (httpHeaderAcceptSelected !== undefined) {
+            headers = headers.set('Accept', httpHeaderAcceptSelected);
+        }
+        let responseType = 'json';
+        if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
+            responseType = 'text';
+        }
+        return this.httpClient.get(`${this.configuration.basePath}/user`, {
+            responseType: responseType,
+            withCredentials: this.configuration.withCredentials,
+            headers: headers,
+            observe: observe,
+            reportProgress: reportProgress
+        });
+    }
+    usersRegister(userCreation, observe = 'body', reportProgress = false, options) {
+        let headers = this.defaultHeaders;
+        let httpHeaderAcceptSelected = options && options.httpHeaderAccept;
+        if (httpHeaderAcceptSelected === undefined) {
+            // to determine the Accept header
+            const httpHeaderAccepts = [
+                'application/json',
+                'application/problem+json'
+            ];
+            httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
+        }
+        if (httpHeaderAcceptSelected !== undefined) {
+            headers = headers.set('Accept', httpHeaderAcceptSelected);
+        }
+        // to determine the Content-Type header
+        const consumes = [
+            'application/json'
+        ];
+        const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
+        if (httpContentTypeSelected !== undefined) {
+            headers = headers.set('Content-Type', httpContentTypeSelected);
+        }
+        let responseType = 'json';
+        if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
+            responseType = 'text';
+        }
+        return this.httpClient.post(`${this.configuration.basePath}/user`, userCreation, {
+            responseType: responseType,
+            withCredentials: this.configuration.withCredentials,
+            headers: headers,
+            observe: observe,
+            reportProgress: reportProgress
+        });
+    }
+}
+UsersService.ɵfac = function UsersService_Factory(t) { return new (t || UsersService)(_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](_variables__WEBPACK_IMPORTED_MODULE_2__["BASE_PATH"], 8), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](_configuration__WEBPACK_IMPORTED_MODULE_3__["Configuration"], 8)); };
+UsersService.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineInjectable"]({ token: UsersService, factory: UsersService.ɵfac, providedIn: 'root' });
+
+
+/***/ }),
+
+/***/ "ds4A":
+/*!****************************************************!*\
+  !*** ./src-gen/gnuboat-mapservice/model/device.ts ***!
+  \****************************************************/
+/*! no exports provided */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+
+
+
+/***/ }),
+
+/***/ "e5J+":
+/*!**************************************************!*\
+  !*** ./src-gen/gnuboat-mapservice/model/user.ts ***!
+  \**************************************************/
+/*! no exports provided */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/**
+ * GNUBoat Mapservice API
+ * API to upload log files with water depth to GNUBoat server
+ *
+ * The version of the OpenAPI document: v1
+ * Contact: info@engsas.de
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+
+
+
+/***/ }),
+
+/***/ "ej43":
+/*!****************************************************!*\
+  !*** ./src/app/services/authentication.service.ts ***!
+  \****************************************************/
+/*! exports provided: AuthenticationService */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AuthenticationService", function() { return AuthenticationService; });
+/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ "qCKp");
+/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
+/* harmony import */ var _src_gen_gnuboat_mapservice__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../src-gen/gnuboat-mapservice */ "zZ2Q");
+/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ "fXoL");
+
+
+
+
+
+class AuthenticationService {
+    constructor(usersService) {
+        this.usersService = usersService;
+        this.currentUserSubject = new rxjs__WEBPACK_IMPORTED_MODULE_0__["BehaviorSubject"](null);
+        this.currentUser = this.currentUserSubject.asObservable();
+    }
+    get currentUserValue() {
+        return this.currentUserSubject.value;
+    }
+    login(username, password) {
+        this.usersService.configuration.username = username;
+        this.usersService.configuration.password = password;
+        return this.usersService.usersGet().pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["map"])(user => {
+            if (user && user.username == username) {
+                this.currentUserPassword = password;
+                this.currentUserSubject.next(user);
+            }
+            return user;
+        }));
+    }
+    logout() {
+        this.currentUserSubject.next(null);
+    }
+}
+AuthenticationService.ɵfac = function AuthenticationService_Factory(t) { return new (t || AuthenticationService)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵinject"](_src_gen_gnuboat_mapservice__WEBPACK_IMPORTED_MODULE_2__["UsersService"])); };
+AuthenticationService.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineInjectable"]({ token: AuthenticationService, factory: AuthenticationService.ɵfac, providedIn: 'root' });
+
+
+/***/ }),
+
+/***/ "f2EE":
+/*!*************************************************!*\
+  !*** ./src/app/water/waterdetails.component.ts ***!
+  \*************************************************/
+/*! exports provided: WaterDetailsComponent */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "WaterDetailsComponent", function() { return WaterDetailsComponent; });
+/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/router */ "tyNb");
+/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs */ "qCKp");
+/* harmony import */ var _src_gen_gnuboat_mapservice__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../src-gen/gnuboat-mapservice */ "zZ2Q");
+/* harmony import */ var _map__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../map */ "TAPr");
+/* harmony import */ var _services__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../services */ "o0su");
+/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/core */ "fXoL");
+/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/common */ "ofXK");
+/* harmony import */ var _components_alert_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../components/alert.component */ "kyU9");
+/* harmony import */ var _map_map_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../map/map.component */ "cNoH");
+/* harmony import */ var _logs_logs_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../logs/logs.component */ "GMR4");
+/* harmony import */ var _gauges_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./gauges.component */ "QBuW");
+/* harmony import */ var _mygnuboat_gaugeedit_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../mygnuboat/gaugeedit.component */ "QjgA");
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+const _c0 = ["mapComponent"];
+function WaterDetailsComponent_h1_1_Template(rf, ctx) { if (rf & 1) {
+    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "h1");
+    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "object", 8);
+    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2);
+    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
+} if (rf & 2) {
+    const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]();
+    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
+    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate"](ctx_r0.water.name);
+} }
+function WaterDetailsComponent_p_4_Template(rf, ctx) { if (rf & 1) {
+    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "p");
+    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, "Right click on Map to add new Gauges");
+    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
+} }
+function WaterDetailsComponent_gnuboat_gauge_edit_9_Template(rf, ctx) { if (rf & 1) {
+    const _r5 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"]();
+    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "gnuboat-gauge-edit", 9);
+    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("cancel", function WaterDetailsComponent_gnuboat_gauge_edit_9_Template_gnuboat_gauge_edit_cancel_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r5); const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](); return ctx_r4.gaugeEditingCanceled(); })("gaugeCreated", function WaterDetailsComponent_gnuboat_gauge_edit_9_Template_gnuboat_gauge_edit_gaugeCreated_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r5); const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](); return ctx_r6.gaugeCreated($event); });
+    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
+} if (rf & 2) {
+    const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]();
+    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("water", ctx_r3.water)("gauge", ctx_r3.gaugeEditing);
+} }
+class WaterDetailsComponent {
+    constructor(route, router, watersService, alertService, authenticationService) {
+        this.route = route;
+        this.router = router;
+        this.watersService = watersService;
+        this.alertService = alertService;
+        this.authenticationService = authenticationService;
+        this.water = undefined;
+        this.mapViewportStyleClass = "water-edit-map";
+        this.mapLogoShow = false;
+        this.mapControlsShow = true;
+        this.mapLogsShow = true;
+        this.currentUser = undefined;
+        this.gaugeEditing = undefined;
+        this.waterId = undefined;
+    }
+    ngOnInit() {
+        this.currentUserSubscription = this.authenticationService.currentUser.subscribe(user => {
+            this.currentUser = user;
+            if (user) {
+                this.watersService.configuration.username = user.username;
+                this.watersService.configuration.password = this.authenticationService.currentUserPassword;
+            }
+        });
+        this.waterId = Number(this.route.snapshot.paramMap.get('id'));
+        this.getWater();
+        this.interval = setInterval(() => {
+            this.getWater();
+        }, 60000);
+    }
+    ngOnDestroy() {
+    }
+    getWater() {
+        this.watersService.watersGetById(this.waterId).subscribe(water => {
+            this.water = water;
+        }, error => {
+            this.alertService.error(error);
+        });
+    }
+    mapClicked(point) {
+        if (!this.currentUser) {
+            this.router.navigate(['/login'], { queryParams: { returnUrl: this.router.url } });
+            return;
+        }
+        if (this.gaugeEditing) {
+            this.alertService.error("Please finish or abort your currently edited gauge before creating a new one!");
+            return;
+        }
+        this.gaugeEditing = {};
+        this.gaugeEditing.location = [];
+        this.gaugeEditing.location.push(point.longitude);
+        this.gaugeEditing.location.push(point.latitude);
+        this.gaugeEditing.comment = "";
+        (window['gnuboat-gauge-edit']) ? window['gnuboat-gauge-edit'].scrollIntoView() : '';
+    }
+    gaugeEditingCanceled() {
+        this.gaugeEditing = undefined;
+    }
+    gaugeCreated(gauge) {
+        this.water.gauges.push(gauge);
+        this.water = Object.assign({}, this.water);
+        this.gaugeEditing = undefined;
+    }
+}
+WaterDetailsComponent.ɵfac = function WaterDetailsComponent_Factory(t) { return new (t || WaterDetailsComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_0__["ActivatedRoute"]), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_0__["Router"]), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_src_gen_gnuboat_mapservice__WEBPACK_IMPORTED_MODULE_2__["WatersService"]), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_services__WEBPACK_IMPORTED_MODULE_4__["AlertService"]), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_services__WEBPACK_IMPORTED_MODULE_4__["AuthenticationService"])); };
+WaterDetailsComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdefineComponent"]({ type: WaterDetailsComponent, selectors: [["ng-component"]], viewQuery: function WaterDetailsComponent_Query(rf, ctx) { if (rf & 1) {
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵviewQuery"](_c0, 3);
+    } if (rf & 2) {
+        let _t;
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵloadQuery"]()) && (ctx.mapComponent = _t.first);
+    } }, inputs: { water: "water" }, decls: 10, vars: 11, consts: [[1, "header"], [4, "ngIf"], [1, "content"], [3, "viewportStyleClass", "controlsShow", "logsShow", "logoShow", "water", "clickedRight"], ["mapComponent", ""], [3, "water"], [3, "water", "mapComponent"], [3, "water", "gauge", "cancel", "gaugeCreated", 4, "ngIf"], ["data", _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtrustConstantResourceUrl"] `/resources/gnuboat-water.svg`, 1, "svg-icon"], [3, "water", "gauge", "cancel", "gaugeCreated"]], template: function WaterDetailsComponent_Template(rf, ctx) { if (rf & 1) {
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 0);
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](1, WaterDetailsComponent_h1_1_Template, 3, 1, "h1", 1);
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](2, "alert");
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](3, "div", 2);
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](4, WaterDetailsComponent_p_4_Template, 2, 0, "p", 1);
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](5, "gnuboat-map", 3, 4);
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("clickedRight", function WaterDetailsComponent_Template_gnuboat_map_clickedRight_5_listener($event) { return ctx.mapClicked($event); });
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](7, "gnuboat-logs", 5);
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](8, "gnuboat-gauges", 6);
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](9, WaterDetailsComponent_gnuboat_gauge_edit_9_Template, 1, 2, "gnuboat-gauge-edit", 7);
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
+    } if (rf & 2) {
+        const _r2 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵreference"](6);
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1);
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx.water);
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](3);
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx.currentUser);
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1);
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("viewportStyleClass", ctx.mapViewportStyleClass)("controlsShow", ctx.mapControlsShow)("logsShow", ctx.mapLogsShow)("logoShow", ctx.mapLogoShow)("water", ctx.water);
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("water", ctx.water);
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1);
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("water", ctx.water)("mapComponent", _r2);
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1);
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx.gaugeEditing);
+    } }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_6__["NgIf"], _components_alert_component__WEBPACK_IMPORTED_MODULE_7__["AlertComponent"], _map_map_component__WEBPACK_IMPORTED_MODULE_8__["MapComponent"], _logs_logs_component__WEBPACK_IMPORTED_MODULE_9__["LogsComponent"], _gauges_component__WEBPACK_IMPORTED_MODULE_10__["GaugesComponent"], _mygnuboat_gaugeedit_component__WEBPACK_IMPORTED_MODULE_11__["GaugeEditComponent"]], encapsulation: 2 });
+
+
+/***/ }),
+
+/***/ "fC4O":
+/*!**********************************************!*\
+  !*** ./src/app/helpers/error.interceptor.ts ***!
+  \**********************************************/
+/*! exports provided: ErrorInterceptor */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ErrorInterceptor", function() { return ErrorInterceptor; });
+/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common/http */ "tk/3");
+/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs */ "qCKp");
+/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
+/* harmony import */ var _services__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../services */ "o0su");
+/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/core */ "fXoL");
+
+
+
+
+
+
+class ErrorInterceptor {
+    constructor(authenticationService) {
+        this.authenticationService = authenticationService;
+    }
+    intercept(request, next) {
+        return next.handle(request).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(err => {
+            if (err.status === 401) {
+                // auto logout if 401 response returned from api
+                this.authenticationService.logout();
+                location.reload(true);
+            }
+            const error = err.error.message || err.statusText;
+            return Object(rxjs__WEBPACK_IMPORTED_MODULE_1__["throwError"])(error);
+        }));
+    }
+}
+ErrorInterceptor.ɵfac = function ErrorInterceptor_Factory(t) { return new (t || ErrorInterceptor)(_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](_services__WEBPACK_IMPORTED_MODULE_3__["AuthenticationService"])); };
+ErrorInterceptor.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineInjectable"]({ token: ErrorInterceptor, factory: ErrorInterceptor.ɵfac });
+
+
+/***/ }),
+
+/***/ "fgzW":
+/*!*********************************************************!*\
+  !*** ./src-gen/gnuboat-mapservice/model/logCreation.ts ***!
+  \*********************************************************/
+/*! no exports provided */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/**
+ * GNUBoat Mapservice API
+ * API to upload log files with water depth to GNUBoat server
+ *
+ * The version of the OpenAPI document: v1
+ * Contact: info@engsas.de
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+
+
+
+/***/ }),
+
+/***/ "gZ76":
+/*!***********************************************!*\
+  !*** ./src-gen/gnuboat-mapservice/encoder.ts ***!
+  \***********************************************/
+/*! exports provided: CustomHttpParameterCodec */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CustomHttpParameterCodec", function() { return CustomHttpParameterCodec; });
+/**
+ * Custom HttpParameterCodec
+ * Workaround for https://github.com/angular/angular/issues/18261
+ */
+class CustomHttpParameterCodec {
+    encodeKey(k) {
+        return encodeURIComponent(k);
+    }
+    encodeValue(v) {
+        return encodeURIComponent(v);
+    }
+    decodeKey(k) {
+        return decodeURIComponent(k);
+    }
+    decodeValue(v) {
+        return decodeURIComponent(v);
+    }
+}
+
+
+/***/ }),
+
+/***/ "hN/g":
+/*!**************************!*\
+  !*** ./src/polyfills.ts ***!
+  \**************************/
+/*! no exports provided */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony import */ var _angular_localize_init__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/localize/init */ "N/DB");
+/* harmony import */ var _angular_localize_init__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_angular_localize_init__WEBPACK_IMPORTED_MODULE_0__);
+/* harmony import */ var zone_js_dist_zone__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zone.js/dist/zone */ "pDpN");
+/* harmony import */ var zone_js_dist_zone__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(zone_js_dist_zone__WEBPACK_IMPORTED_MODULE_1__);
+/* harmony import */ var core_js_es6_reflect__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/es6/reflect */ "VbrY");
+/* harmony import */ var core_js_es6_reflect__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_es6_reflect__WEBPACK_IMPORTED_MODULE_2__);
+/* harmony import */ var core_js_es7_reflect__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/es7/reflect */ "FZcq");
+/* harmony import */ var core_js_es7_reflect__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_es7_reflect__WEBPACK_IMPORTED_MODULE_3__);
+/***************************************************************************************************
+ * Load `$localize` onto the global scope - used if i18n tags appear in Angular templates.
+ */
+
+/**
+ * This file includes polyfills needed by Angular and is loaded before the app.
+ * You can add your own extra polyfills to this file.
+ *
+ * This file is divided into 2 sections:
+ *   1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers.
+ *   2. Application imports. Files imported after ZoneJS that should be loaded before your main
+ *      file.
+ *
+ * The current setup is for so-called "evergreen" browsers; the last versions of browsers that
+ * automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera),
+ * Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile.
+ *
+ * Learn more in https://angular.io/guide/browser-support
+ */
+/***************************************************************************************************
+ * BROWSER POLYFILLS
+ */
+/** IE10 and IE11 requires the following for NgClass support on SVG elements */
+// import 'classlist.js';  // Run `npm install --save classlist.js`.
+/**
+ * Web Animations `@angular/platform-browser/animations`
+ * Only required if AnimationBuilder is used within the application and using IE/Edge or Safari.
+ * Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0).
+ */
+// import 'web-animations-js';  // Run `npm install --save web-animations-js`.
+/**
+ * By default, zone.js will patch all possible macroTask and DomEvents
+ * user can disable parts of macroTask/DomEvents patch by setting following flags
+ * because those flags need to be set before `zone.js` being loaded, and webpack
+ * will put import in the top of bundle, so user need to create a separate file
+ * in this directory (for example: zone-flags.ts), and put the following flags
+ * into that file, and then add the following code before importing zone.js.
+ * import './zone-flags.ts';
+ *
+ * The flags allowed in zone-flags.ts are listed here.
+ *
+ * The following flags will work for all browsers.
+ *
+ * (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame
+ * (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick
+ * (window as any).__zone_symbol__BLACK_LISTED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames
+ *
+ *  in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js
+ *  with the following flag, it will bypass `zone.js` patch for IE/Edge
+ *
+ *  (window as any).__Zone_enable_cross_context_check = true;
+ *
+ */
+/***************************************************************************************************
+ * Zone JS is required by default for Angular itself.
+ */
+ // Included with Angular CLI.
+/***************************************************************************************************
+ * APPLICATION IMPORTS
+ */
+
+
+
+
+/***/ }),
+
+/***/ "iZLE":
+/*!***************************************************!*\
+  !*** ./src-gen/gnuboat-mapservice/model/order.ts ***!
+  \***************************************************/
+/*! exports provided: Order */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Order", function() { return Order; });
+/**
+ * GNUBoat Mapservice API
+ * API to upload log files with water depth to GNUBoat server
+ *
+ * The version of the OpenAPI document: v1
+ * Contact: info@engsas.de
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+const Order = {
+    Desc: 'desc',
+    Asc: 'asc'
+};
+
+
+/***/ }),
+
+/***/ "ibp5":
+/*!****************************************************!*\
+  !*** ./src-gen/gnuboat-mapservice/model/models.ts ***!
+  \****************************************************/
+/*! exports provided: GeoJsonType, Order, OsmType */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony import */ var _device__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./device */ "ds4A");
+/* empty/unused harmony star reexport *//* harmony import */ var _deviceCreation__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./deviceCreation */ "EYEx");
+/* empty/unused harmony star reexport *//* harmony import */ var _gauge__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./gauge */ "CMJz");
+/* empty/unused harmony star reexport *//* harmony import */ var _gaugeCreation__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./gaugeCreation */ "2YK/");
+/* empty/unused harmony star reexport *//* harmony import */ var _gaugeGeoJson__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./gaugeGeoJson */ "JN2I");
+/* empty/unused harmony star reexport *//* harmony import */ var _gaugeGeoJsonProperties__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./gaugeGeoJsonProperties */ "2afY");
+/* empty/unused harmony star reexport *//* harmony import */ var _geoJsonPoint__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./geoJsonPoint */ "aBq8");
+/* empty/unused harmony star reexport *//* harmony import */ var _geoJsonType__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./geoJsonType */ "E5AE");
+/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GeoJsonType", function() { return _geoJsonType__WEBPACK_IMPORTED_MODULE_7__["GeoJsonType"]; });
+
+/* harmony import */ var _httpError__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./httpError */ "njee");
+/* empty/unused harmony star reexport *//* harmony import */ var _itemBase__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./itemBase */ "oiUv");
+/* empty/unused harmony star reexport *//* harmony import */ var _log__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./log */ "A0OO");
+/* empty/unused harmony star reexport *//* harmony import */ var _logCreation__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./logCreation */ "fgzW");
+/* empty/unused harmony star reexport *//* harmony import */ var _logEntry__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./logEntry */ "waET");
+/* empty/unused harmony star reexport *//* harmony import */ var _logEntryGeoJson__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./logEntryGeoJson */ "w4RW");
+/* empty/unused harmony star reexport *//* harmony import */ var _logEntryGeoJsonProperties__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./logEntryGeoJsonProperties */ "9MRL");
+/* empty/unused harmony star reexport *//* harmony import */ var _logGeoJson__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./logGeoJson */ "Fm0j");
+/* empty/unused harmony star reexport *//* harmony import */ var _logMetaData__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./logMetaData */ "DXLJ");
+/* empty/unused harmony star reexport *//* harmony import */ var _order__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./order */ "iZLE");
+/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Order", function() { return _order__WEBPACK_IMPORTED_MODULE_17__["Order"]; });
+
+/* harmony import */ var _osmType__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./osmType */ "kEF2");
+/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "OsmType", function() { return _osmType__WEBPACK_IMPORTED_MODULE_18__["OsmType"]; });
+
+/* harmony import */ var _user__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./user */ "e5J+");
+/* empty/unused harmony star reexport *//* harmony import */ var _userCreation__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./userCreation */ "U+S2");
+/* empty/unused harmony star reexport *//* harmony import */ var _water__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./water */ "usUh");
+/* empty/unused harmony star reexport *//* harmony import */ var _waterCreation__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./waterCreation */ "Nppq");
+/* empty/unused harmony star reexport */
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+/***/ }),
+
+/***/ "if/4":
+/*!**************************************************!*\
+  !*** ./src-gen/gnuboat-mapservice/api.module.ts ***!
+  \**************************************************/
+/*! exports provided: ApiModule */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ApiModule", function() { return ApiModule; });
+/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
+/* harmony import */ var _configuration__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./configuration */ "rr0t");
+/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common/http */ "tk/3");
+
+
+
+
+
+class ApiModule {
+    constructor(parentModule, http) {
+        if (parentModule) {
+            throw new Error('ApiModule is already loaded. Import in your base AppModule only.');
+        }
+        if (!http) {
+            throw new Error('You need to import the HttpClientModule in your AppModule! \n' +
+                'See also https://github.com/angular/angular/issues/20575');
+        }
+    }
+    static forRoot(configurationFactory) {
+        return {
+            ngModule: ApiModule,
+            providers: [{ provide: _configuration__WEBPACK_IMPORTED_MODULE_1__["Configuration"], useFactory: configurationFactory }]
+        };
+    }
+}
+ApiModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({ type: ApiModule });
+ApiModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({ factory: function ApiModule_Factory(t) { return new (t || ApiModule)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](ApiModule, 12), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpClient"], 8)); }, providers: [], imports: [[]] });
+
+
+/***/ }),
+
+/***/ "kEF2":
+/*!*****************************************************!*\
+  !*** ./src-gen/gnuboat-mapservice/model/osmType.ts ***!
+  \*****************************************************/
+/*! exports provided: OsmType */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OsmType", function() { return OsmType; });
+/**
+ * GNUBoat Mapservice API
+ * API to upload log files with water depth to GNUBoat server
+ *
+ * The version of the OpenAPI document: v1
+ * Contact: info@engsas.de
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+const OsmType = {
+    Node: 'Node',
+    Way: 'Way',
+    Relation: 'Relation'
+};
+
+
+/***/ }),
+
+/***/ "kyU9":
+/*!***********************************************!*\
+  !*** ./src/app/components/alert.component.ts ***!
+  \***********************************************/
+/*! exports provided: AlertComponent */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AlertComponent", function() { return AlertComponent; });
+/* harmony import */ var _services__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../services */ "o0su");
+/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
+/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common */ "ofXK");
+
+
+
+
+const _c0 = function (a0, a1, a2) { return { "alert": a0, "alert-success": a1, "alert-danger": a2 }; };
+function AlertComponent_div_0_Template(rf, ctx) { if (rf & 1) {
+    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 1);
+    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
+    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
+} if (rf & 2) {
+    const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
+    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction3"](2, _c0, ctx_r0.message, ctx_r0.message.type === "success", ctx_r0.message.type === "error"));
+    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
+    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx_r0.message.text);
+} }
+class AlertComponent {
+    constructor(alertService) {
+        this.alertService = alertService;
+    }
+    ngOnInit() {
+        this.subscription = this.alertService.getMessage().subscribe(message => {
+            this.message = message;
+        });
+    }
+    ngOnDestroy() {
+        this.subscription.unsubscribe();
+    }
+}
+AlertComponent.ɵfac = function AlertComponent_Factory(t) { return new (t || AlertComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_services__WEBPACK_IMPORTED_MODULE_0__["AlertService"])); };
+AlertComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: AlertComponent, selectors: [["alert"]], decls: 1, vars: 1, consts: [[3, "ngClass", 4, "ngIf"], [3, "ngClass"]], template: function AlertComponent_Template(rf, ctx) { if (rf & 1) {
+        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](0, AlertComponent_div_0_Template, 2, 6, "div", 0);
+    } if (rf & 2) {
+        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.message);
+    } }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_2__["NgIf"], _angular_common__WEBPACK_IMPORTED_MODULE_2__["NgClass"]], encapsulation: 2 });
+
+
+/***/ }),
+
+/***/ "nTIC":
+/*!********************************************!*\
+  !*** ./src/app/user/register.component.ts ***!
+  \********************************************/
+/*! exports provided: RegisterComponent */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RegisterComponent", function() { return RegisterComponent; });
+/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/router */ "tyNb");
+/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
+/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
+/* harmony import */ var _services__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../services */ "o0su");
+/* harmony import */ var _src_gen_gnuboat_mapservice__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../src-gen/gnuboat-mapservice */ "zZ2Q");
+/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/core */ "fXoL");
+/* harmony import */ var _components_alert_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../components/alert.component */ "kyU9");
+/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/common */ "ofXK");
+
+
+
+
+
+
+
+
+
+
+
+
+function RegisterComponent_div_11_div_1_Template(rf, ctx) { if (rf & 1) {
+    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div");
+    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, "First Name is required");
+    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
+} }
+function RegisterComponent_div_11_Template(rf, ctx) { if (rf & 1) {
+    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 21);
+    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](1, RegisterComponent_div_11_div_1_Template, 2, 0, "div", 22);
+    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
+} if (rf & 2) {
+    const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]();
+    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1);
+    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r0.f.firstName.errors.required);
+} }
+function RegisterComponent_div_16_div_1_Template(rf, ctx) { if (rf & 1) {
+    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div");
+    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, "Last Name is required");
+    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
+} }
+function RegisterComponent_div_16_Template(rf, ctx) { if (rf & 1) {
+    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 21);
+    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](1, RegisterComponent_div_16_div_1_Template, 2, 0, "div", 22);
+    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
+} if (rf & 2) {
+    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]();
+    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1);
+    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r1.f.lastName.errors.required);
+} }
+function RegisterComponent_div_21_div_1_Template(rf, ctx) { if (rf & 1) {
+    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div");
+    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, "Username is required");
+    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
+} }
+function RegisterComponent_div_21_Template(rf, ctx) { if (rf & 1) {
+    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 21);
+    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](1, RegisterComponent_div_21_div_1_Template, 2, 0, "div", 22);
+    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
+} if (rf & 2) {
+    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]();
+    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1);
+    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r2.f.username.errors.required);
+} }
+function RegisterComponent_div_26_div_1_Template(rf, ctx) { if (rf & 1) {
+    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div");
+    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, "Password is required");
+    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
+} }
+function RegisterComponent_div_26_div_2_Template(rf, ctx) { if (rf & 1) {
+    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div");
+    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, "Password must be at least 6 characters");
+    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
+} }
+function RegisterComponent_div_26_Template(rf, ctx) { if (rf & 1) {
+    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 21);
+    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](1, RegisterComponent_div_26_div_1_Template, 2, 0, "div", 22);
+    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](2, RegisterComponent_div_26_div_2_Template, 2, 0, "div", 22);
+    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
+} if (rf & 2) {
+    const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]();
+    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1);
+    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r3.f.password.errors.required);
+    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1);
+    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r3.f.password.errors.minlength);
+} }
+function RegisterComponent_div_31_div_1_Template(rf, ctx) { if (rf & 1) {
+    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div");
+    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, "E-Mail is required");
+    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
+} }
+function RegisterComponent_div_31_Template(rf, ctx) { if (rf & 1) {
+    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 21);
+    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](1, RegisterComponent_div_31_div_1_Template, 2, 0, "div", 22);
+    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
+} if (rf & 2) {
+    const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]();
+    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1);
+    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r4.f.email.errors.required);
+} }
+function RegisterComponent_div_38_div_1_Template(rf, ctx) { if (rf & 1) {
+    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div");
+    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, "Accepting the license is required");
+    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
+} }
+function RegisterComponent_div_38_Template(rf, ctx) { if (rf & 1) {
+    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 21);
+    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](1, RegisterComponent_div_38_div_1_Template, 2, 0, "div", 22);
+    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
+} if (rf & 2) {
+    const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]();
+    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1);
+    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r5.f.licenseAccepted.errors.required);
+} }
+function RegisterComponent_img_42_Template(rf, ctx) { if (rf & 1) {
+    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](0, "img", 23);
+} }
+const _c0 = function (a0) { return { "is-invalid": a0 }; };
+class RegisterComponent {
+    constructor(formBuilder, router, authenticationService, userService, alertService) {
+        this.formBuilder = formBuilder;
+        this.router = router;
+        this.authenticationService = authenticationService;
+        this.userService = userService;
+        this.alertService = alertService;
+        this.loading = false;
+        this.submitted = false;
+        // redirect to home if already logged in
+        if (this.authenticationService.currentUserValue) {
+            this.router.navigate(['/']);
+        }
+    }
+    ngOnInit() {
+        this.registerForm = this.formBuilder.group({
+            firstName: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
+            lastName: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
+            username: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
+            password: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].minLength(6)]],
+            email: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
+            licenseAccepted: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required]
+        });
+    }
+    // convenience getter for easy access to form fields
+    get f() { return this.registerForm.controls; }
+    onSubmit() {
+        this.submitted = true;
+        // stop here if form is invalid
+        if (this.registerForm.invalid) {
+            return;
+        }
+        this.loading = true;
+        this.userService.usersRegister(this.registerForm.value)
+            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["first"])())
+            .subscribe(data => {
+            this.alertService.success('Registration successful', true);
+            this.router.navigate(['/login']);
+        }, error => {
+            this.alertService.error(error);
+            this.loading = false;
+        });
+    }
+}
+RegisterComponent.ɵfac = function RegisterComponent_Factory(t) { return new (t || RegisterComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_0__["Router"]), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_services__WEBPACK_IMPORTED_MODULE_3__["AuthenticationService"]), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_src_gen_gnuboat_mapservice__WEBPACK_IMPORTED_MODULE_4__["UsersService"]), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_services__WEBPACK_IMPORTED_MODULE_3__["AlertService"])); };
+RegisterComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdefineComponent"]({ type: RegisterComponent, selectors: [["ng-component"]], decls: 45, vars: 27, consts: [[1, "header"], [1, "content"], [1, "pure-form", "pure-form-aligned", 3, "formGroup", "ngSubmit"], [1, "pure-control-group"], ["for", "firstName"], ["type", "text", "formControlName", "firstName", 3, "ngClass"], ["class", "invalid-feedback", 4, "ngIf"], ["for", "lastName"], ["type", "text", "formControlName", "lastName", 3, "ngClass"], ["for", "username"], ["type", "text", "formControlName", "username", 3, "ngClass"], ["for", "password"], ["type", "password", "formControlName", "password", 3, "ngClass"], ["type", "email", "formControlName", "email", 3, "ngClass"], ["for", "licenseAccepted"], ["id", "licenseAccepted", "type", "checkbox", "formControlName", "licenseAccepted", 3, "ngClass"], ["href", "https://www.opendatacommons.org/licenses/odbl/summary/index.html", "target", "_blank"], [1, "pure-controls"], [1, "pure-button", "pure-button-primary", "button-add", 3, "disabled"], ["class", "pl-3 processing", "src", "/resources/processing.svg", 4, "ngIf"], ["routerLink", "/login", 1, "pure-button"], [1, "invalid-feedback"], [4, "ngIf"], ["src", "/resources/processing.svg", 1, "pl-3", "processing"]], template: function RegisterComponent_Template(rf, ctx) { if (rf & 1) {
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 0);
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](1, "h1");
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2, "Register");
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](3, "alert");
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](4, "div", 1);
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](5, "form", 2);
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("ngSubmit", function RegisterComponent_Template_form_ngSubmit_5_listener() { return ctx.onSubmit(); });
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](6, "fieldset");
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](7, "div", 3);
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](8, "label", 4);
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](9, "First Name");
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](10, "input", 5);
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](11, RegisterComponent_div_11_Template, 2, 1, "div", 6);
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](12, "div", 3);
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](13, "label", 7);
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](14, "Last Name");
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](15, "input", 8);
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](16, RegisterComponent_div_16_Template, 2, 1, "div", 6);
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](17, "div", 3);
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](18, "label", 9);
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](19, "Username");
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](20, "input", 10);
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](21, RegisterComponent_div_21_Template, 2, 1, "div", 6);
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](22, "div", 3);
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](23, "label", 11);
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](24, "Password");
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](25, "input", 12);
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](26, RegisterComponent_div_26_Template, 3, 2, "div", 6);
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](27, "div", 3);
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](28, "label", 11);
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](29, "E-Mail");
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](30, "input", 13);
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](31, RegisterComponent_div_31_Template, 2, 1, "div", 6);
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](32, "div", 3);
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](33, "label", 14);
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](34, "input", 15);
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](35, " I agree to upload all date under the ");
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](36, "a", 16);
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](37, "Open Data Commons Open Database License (ODbL)");
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](38, RegisterComponent_div_38_Template, 2, 1, "div", 6);
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](39, "div", 17);
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](40, "button", 18);
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](41, "Register");
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](42, RegisterComponent_img_42_Template, 1, 0, "img", 19);
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](43, "a", 20);
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](44, "Cancel");
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
+    } if (rf & 2) {
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](5);
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("formGroup", ctx.registerForm);
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](5);
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpureFunction1"](15, _c0, ctx.submitted && ctx.f.firstName.errors));
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1);
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx.submitted && ctx.f.firstName.errors);
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](4);
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpureFunction1"](17, _c0, ctx.submitted && ctx.f.lastName.errors));
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1);
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx.submitted && ctx.f.lastName.errors);
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](4);
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpureFunction1"](19, _c0, ctx.submitted && ctx.f.username.errors));
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1);
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx.submitted && ctx.f.username.errors);
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](4);
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpureFunction1"](21, _c0, ctx.submitted && ctx.f.password.errors));
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1);
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx.submitted && ctx.f.password.errors);
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](4);
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpureFunction1"](23, _c0, ctx.submitted && ctx.f.email.errors));
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1);
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx.submitted && ctx.f.email.errors);
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](3);
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpureFunction1"](25, _c0, ctx.submitted && ctx.f.licenseAccepted.errors));
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](4);
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx.submitted && ctx.f.licenseAccepted.errors);
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("disabled", ctx.loading);
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
+        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx.loading);
+    } }, directives: [_components_alert_component__WEBPACK_IMPORTED_MODULE_6__["AlertComponent"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormGroupDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormControlName"], _angular_common__WEBPACK_IMPORTED_MODULE_7__["NgClass"], _angular_common__WEBPACK_IMPORTED_MODULE_7__["NgIf"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["CheckboxControlValueAccessor"], _angular_router__WEBPACK_IMPORTED_MODULE_0__["RouterLinkWithHref"]], encapsulation: 2 });
+
+
+/***/ }),
+
+/***/ "njee":
+/*!*******************************************************!*\
+  !*** ./src-gen/gnuboat-mapservice/model/httpError.ts ***!
+  \*******************************************************/
+/*! no exports provided */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/**
+ * GNUBoat Mapservice API
+ * API to upload log files with water depth to GNUBoat server
+ *
+ * The version of the OpenAPI document: v1
+ * Contact: info@engsas.de
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+
+
+
+/***/ }),
+
+/***/ "ntd+":
+/*!*************************************************!*\
+  !*** ./src/app/mygnuboat/wateradd.component.ts ***!
+  \*************************************************/
+/*! exports provided: WaterAddComponent */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "WaterAddComponent", function() { return WaterAddComponent; });
+/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ "qCKp");
+/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
+/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
+/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/router */ "tyNb");
+/* harmony import */ var _src_gen_gnuboat_mapservice__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../src-gen/gnuboat-mapservice */ "zZ2Q");
+/* harmony import */ var _services__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../services */ "o0su");
+/* harmony import */ var _map__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../map */ "TAPr");
+/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/core */ "fXoL");
+/* harmony import */ var _components_alert_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../components/alert.component */ "kyU9");
+/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/common */ "ofXK");
+/* harmony import */ var _map_map_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../map/map.component */ "cNoH");
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+const _c0 = ["mapComponent"];
+const _c1 = ["waterNameInput"];
+function WaterAddComponent_img_15_Template(rf, ctx) { if (rf & 1) {
+    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](0, "img", 19);
+} }
+function WaterAddComponent_span_16_Template(rf, ctx) { if (rf & 1) {
+    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "span", 20);
+    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵi18n"](1, 21);
+    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
+} }
+function WaterAddComponent_button_18_Template(rf, ctx) { if (rf & 1) {
+    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "button", 22);
+    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵi18n"](1, 23);
+    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
+} if (rf & 2) {
+    const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
+    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("disabled", !ctx_r3.waterChoosen || !ctx_r3.currentUser);
+} }
+function WaterAddComponent_button_19_Template(rf, ctx) { if (rf & 1) {
+    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "button", 22);
+    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵi18n"](1, 24);
+    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
+} if (rf & 2) {
+    const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
+    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("disabled", !ctx_r4.waterChoosen || !ctx_r4.currentUser);
+} }
+function WaterAddComponent_img_21_Template(rf, ctx) { if (rf & 1) {
+    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](0, "img", 19);
+} }
+var Origin;
+(function (Origin) {
+    Origin[Origin["GNUBOAT"] = 1] = "GNUBOAT";
+    Origin[Origin["OSM"] = 2] = "OSM";
+})(Origin || (Origin = {}));
+class WaterAddComponent {
+    constructor(formBuilder, watersService, osmOverpassService, alertService, authenticationService, router, route) {
+        this.formBuilder = formBuilder;
+        this.watersService = watersService;
+        this.osmOverpassService = osmOverpassService;
+        this.alertService = alertService;
+        this.authenticationService = authenticationService;
+        this.router = router;
+        this.route = route;
+        this.mapViewportStyleClass = 'water-add-map';
+        this.mapControlsShow = false;
+        this.Origin = Origin;
+        this.waterChoosen = undefined;
+        this.currentUser = undefined;
+        this.isProcessingGnuBoat = false;
+        this.isProcessingOverpass = false;
+        this.isProcessingRelation = false;
+        this.filteredWatersGnuBoat = new Map();
+        this.filteredWatersOverpass = new Map();
+        this.map = undefined;
+        this.mapLogoShow = false;
+        this.mapLogsShow = false;
+        this.geoJsonLayer = undefined;
+        this.currentUserSubscription = this.authenticationService.currentUser.subscribe(user => {
+            this.currentUser = user;
+            this.watersService.configuration.username = user.username;
+            this.watersService.configuration.password = this.authenticationService.currentUserPassword;
+        });
+    }
+    ngOnInit() {
+        this.watersForm = this.formBuilder.group({
+            name: [, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]
+        });
+        jQuery('#waterNameAutocomplete').autocomplete({
+            minLength: 3,
+            source: [],
+            select: (event, ui) => { this.waterSelected(event, ui); }
+        });
+        // get existing Waters from GnuBoat
+        this.watersForm.get('name').valueChanges.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["filter"])(value => value.length == 3), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["debounceTime"])(300), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["tap"])(() => this.isProcessingGnuBoat = true), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["switchMap"])(value => this.watersService.watersGet(value).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["finalize"])(() => this.isProcessingGnuBoat = false)))).subscribe(waters => {
+            this.getGnuBoatWaters(waters);
+        });
+        // get existing Waters from OpenStreetmap Overpass API
+        this.watersForm.get('name').valueChanges.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["filter"])(value => value.length == 3), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["debounceTime"])(300), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["tap"])(() => this.isProcessingOverpass = true), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["switchMap"])(value => this.osmOverpassService.findWaters(value).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["finalize"])(() => this.isProcessingOverpass = false)))).subscribe(res => {
+            this.getOverpassWaters(res);
+        });
+    }
+    ngOnDestroy() {
+    }
+    ngAfterViewInit() {
+        this.map = this.mapComponent.getMap();
+        this.geoJsonLayer = L.geoJSON().addTo(this.map);
+    }
+    getGnuBoatWaters(waters) {
+        this.filteredWatersGnuBoat.clear();
+        for (var i = 0; i < waters.length; i++) {
+            var water = {};
+            water.value = waters[i].name;
+            water.label = water.value + " (GNUBoat)";
+            water.origin = Origin.GNUBOAT;
+            water.id = waters[i].waterId;
+            water.osmId = waters[i].osmId;
+            water.osmType = waters[i].osmType;
+            this.filteredWatersGnuBoat.set(water.id, water);
+        }
+        this.buildAutoCompletor();
+    }
+    getOverpassWaters(geojson) {
+        this.filteredWatersOverpass.clear();
+        if ('features' in geojson) {
+            geojson.features.forEach((feature) => {
+                var water = {};
+                water.value = feature.properties.name;
+                water.label = water.value + " (OSM)";
+                ;
+                water.origin = Origin.OSM;
+                water.id = Number(feature.properties.id.replace(/\D/g, ''));
+                water.osmId = water.id;
+                if (feature.properties.id.replace(/\/\d+/g, '').toLowerCase() == "relation") {
+                    water.osmType = _src_gen_gnuboat_mapservice__WEBPACK_IMPORTED_MODULE_4__["OsmType"].Relation;
+                }
+                else {
+                    console.log(["Unidentified OSM Type", feature.properties.id.replace(/\/\d+/g, '')]);
+                }
+                this.filteredWatersOverpass.set(water.id, water);
+            });
+        }
+        this.buildAutoCompletor();
+    }
+    getOverpassRelation(id, osmType) {
+        this.geoJsonLayer.clearLayers();
+        this.mapComponent.addOsmElement(id, osmType);
+    }
+    buildAutoCompletor() {
+        var waterCompletion = [];
+        this.filteredWatersGnuBoat.forEach((value, key) => {
+            waterCompletion.push(value);
+        });
+        this.filteredWatersOverpass.forEach((value, key) => {
+            waterCompletion.push(value);
+        });
+        // set the elements to the autocompletion list
+        jQuery('#waterNameAutocomplete').autocomplete("option", "source", waterCompletion);
+        // open the autocompletion list
+        jQuery('#waterNameAutocomplete').autocomplete("search", jQuery('#waterNameAutocomplete').val());
+    }
+    waterSelected(event, ui) {
+        this.waterChoosen = ui.item;
+        if (!ui.item.osmId || !ui.item.osmType) {
+            return;
+        }
+        this.getOverpassRelation(ui.item.osmId, ui.item.osmType);
+    }
+    addWater() {
+        // stop here if form is invalid
+        if (this.watersForm.invalid) {
+            this.alertService.error("Please enter all necessary data");
+            return;
+        }
+        if (!this.waterChoosen) {
+            this.alertService.error("No water selected!");
+            return;
+        }
+        if (this.waterChoosen.value != this.waterNameInput.nativeElement.value) {
+            this.alertService.error("Water selected has different name than entered in name field!");
+            return;
+        }
+        var id = undefined;
+        if (this.waterChoosen.origin == Origin.GNUBOAT) {
+            this.router.navigate(['/water', this.waterChoosen.id]);
+        }
+        if (this.waterChoosen.origin == Origin.OSM) {
+            var water = {};
+            water.name = this.waterChoosen.value;
+            water.osmId = this.waterChoosen.id;
+            water.osmType = this.waterChoosen.osmType;
+            this.watersService.watersCreate(water).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["first"])()).subscribe(result => {
+                if (water.name == result.name) {
+                    this.router.navigate(['/water', result.waterId]);
+                }
+                else {
+                    console.log(result);
+                    // do some error handling here!
+                    this.alertService.error("Could not add water!");
+                }
+            }, error => {
+                this.alertService.error(error);
+            });
+        }
+    }
+}
+WaterAddComponent.ɵfac = function WaterAddComponent_Factory(t) { return new (t || WaterAddComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"](_src_gen_gnuboat_mapservice__WEBPACK_IMPORTED_MODULE_4__["WatersService"]), _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"](_services__WEBPACK_IMPORTED_MODULE_5__["OsmOverpassService"]), _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"](_services__WEBPACK_IMPORTED_MODULE_5__["AlertService"]), _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"](_services__WEBPACK_IMPORTED_MODULE_5__["AuthenticationService"]), _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"]), _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_3__["ActivatedRoute"])); };
+WaterAddComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdefineComponent"]({ type: WaterAddComponent, selectors: [["ng-component"]], viewQuery: function WaterAddComponent_Query(rf, ctx) { if (rf & 1) {
+        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵviewQuery"](_c0, 1);
+        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵviewQuery"](_c1, 1);
+    } if (rf & 2) {
+        let _t;
+        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵloadQuery"]()) && (ctx.mapComponent = _t.first);
+        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵloadQuery"]()) && (ctx.waterNameInput = _t.first);
+    } }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵProvidersFeature"]([_services__WEBPACK_IMPORTED_MODULE_5__["OsmOverpassService"]])], decls: 24, vars: 10, consts: function () { let i18n_2; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
+        const MSG_EXTERNAL_wateraddTitle$$SRC_APP_MYGNUBOAT_WATERADD_COMPONENT_TS_3 = goog.getMsg("{$startTagObject}{$closeTagObject}Add a new Water", { "startTagObject": "\uFFFD#3\uFFFD", "closeTagObject": "\uFFFD/#3\uFFFD" });
+        i18n_2 = MSG_EXTERNAL_wateraddTitle$$SRC_APP_MYGNUBOAT_WATERADD_COMPONENT_TS_3;
+    }
+    else {
+        i18n_2 = $localize `:@@wateraddTitle␟07a814b542ed5c77fdd1418d32af9c2a69e37067␟1503542668491126145:${"\uFFFD#3\uFFFD"}:START_TAG_OBJECT:${"\uFFFD/#3\uFFFD"}:CLOSE_TAG_OBJECT:Add a new Water`;
+    } let i18n_4; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
+        const MSG_EXTERNAL_waterAddName$$SRC_APP_MYGNUBOAT_WATERADD_COMPONENT_TS_5 = goog.getMsg("Name:");
+        i18n_4 = MSG_EXTERNAL_waterAddName$$SRC_APP_MYGNUBOAT_WATERADD_COMPONENT_TS_5;
+    }
+    else {
+        i18n_4 = $localize `:@@waterAddName␟616e206cb4f25bd5885fc35925365e43cf5fb929␟7658402240953727096:Name:`;
+    } let i18n_6; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
+        const MSG_EXTERNAL_5866076180880331164$$SRC_APP_MYGNUBOAT_WATERADD_COMPONENT_TS_7 = goog.getMsg("Name of Water");
+        i18n_6 = MSG_EXTERNAL_5866076180880331164$$SRC_APP_MYGNUBOAT_WATERADD_COMPONENT_TS_7;
+    }
+    else {
+        i18n_6 = $localize `:␟ad1cf55a5798fc11fd75dcd508c8561fe086beb9␟5866076180880331164:Name of Water`;
+    } let i18n_8; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
+        const MSG_EXTERNAL_waterNameRequired$$SRC_APP_MYGNUBOAT_WATERADD_COMPONENT_TS__9 = goog.getMsg("Watername is required.");
+        i18n_8 = MSG_EXTERNAL_waterNameRequired$$SRC_APP_MYGNUBOAT_WATERADD_COMPONENT_TS__9;
+    }
+    else {
+        i18n_8 = $localize `:@@waterNameRequired␟965d956cedfe49676e79e0b87161d5bff7661fa5␟3958642272853103661:Watername is required.`;
+    } let i18n_10; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
+        const MSG_EXTERNAL_waterButtonAdd$$SRC_APP_MYGNUBOAT_WATERADD_COMPONENT_TS__11 = goog.getMsg("Add");
+        i18n_10 = MSG_EXTERNAL_waterButtonAdd$$SRC_APP_MYGNUBOAT_WATERADD_COMPONENT_TS__11;
+    }
+    else {
+        i18n_10 = $localize `:@@waterButtonAdd␟f6755cff4957d5c3c89bafce5651f1b6fa2b1fd9␟3249513483374643425:Add`;
+    } let i18n_12; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
+        const MSG_EXTERNAL_waterButtonChoose$$SRC_APP_MYGNUBOAT_WATERADD_COMPONENT_TS__13 = goog.getMsg("Choose");
+        i18n_12 = MSG_EXTERNAL_waterButtonChoose$$SRC_APP_MYGNUBOAT_WATERADD_COMPONENT_TS__13;
+    }
+    else {
+        i18n_12 = $localize `:@@waterButtonChoose␟9fabdfadf0453602acf388171bd4f758df47e1a7␟5698046514233867599:Choose`;
+    } return [[1, "header"], i18n_2, ["data", _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtrustConstantResourceUrl"] `/resources/gnuboat-water.svg`, 1, "svg-icon"], [1, "content"], [1, "pure-g"], [1, "pure-u-2-3"], [1, "pure-form", "pure-form-aligned", 3, "formGroup", "ngSubmit"], [1, "pure-control-group"], ["for", "name"], i18n_4, ["id", "waterNameAutocomplete", "formControlName", "name", "type", "text", "placeholder", i18n_6, "required", ""], ["waterNameInput", ""], ["class", "processing", "src", "/resources/processing.svg", 4, "ngIf"], ["class", "pure-form-message-inline", 4, "ngIf"], [1, "pure-controls"], ["class", "pure-button pure-button-primary button-add", 3, "disabled", 4, "ngIf"], [1, "pure-u-1-3"], [3, "viewportStyleClass", "controlsShow", "logoShow", "logsShow"], ["mapComponent", ""], ["src", "/resources/processing.svg", 1, "processing"], [1, "pure-form-message-inline"], i18n_8, [1, "pure-button", "pure-button-primary", "button-add", 3, "disabled"], i18n_10, i18n_12]; }, template: function WaterAddComponent_Template(rf, ctx) { if (rf & 1) {
+        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div", 0);
+        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](1, "h1");
+        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵi18nStart"](2, 1);
+        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](3, "object", 2);
+        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵi18nEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](4, "alert");
+        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](5, "div", 3);
+        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](6, "div", 4);
+        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](7, "div", 5);
+        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](8, "form", 6);
+        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("ngSubmit", function WaterAddComponent_Template_form_ngSubmit_8_listener() { return ctx.addWater(); });
+        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](9, "fieldset");
+        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](10, "div", 7);
+        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](11, "label", 8);
+        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵi18n"](12, 9);
+        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](13, "input", 10, 11);
+        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](15, WaterAddComponent_img_15_Template, 1, 0, "img", 12);
+        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](16, WaterAddComponent_span_16_Template, 2, 0, "span", 13);
+        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](17, "div", 14);
+        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](18, WaterAddComponent_button_18_Template, 2, 1, "button", 15);
+        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](19, WaterAddComponent_button_19_Template, 2, 1, "button", 15);
+        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](20, "div", 16);
+        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](21, WaterAddComponent_img_21_Template, 1, 0, "img", 12);
+        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](22, "gnuboat-map", 17, 18);
+        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
+    } if (rf & 2) {
+        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](8);
+        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("formGroup", ctx.watersForm);
+        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](7);
+        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx.isProcessingGnuBoat || ctx.isProcessingOverpass);
+        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](1);
+        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx.watersForm.controls["name"].errors);
+        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
+        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", !ctx.waterChoosen || ctx.waterChoosen.origin != ctx.Origin.GNUBOAT);
+        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](1);
+        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx.waterChoosen && ctx.waterChoosen.origin == ctx.Origin.GNUBOAT);
+        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
+        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx.isProcessingRelation);
+        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](1);
+        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("viewportStyleClass", ctx.mapViewportStyleClass)("controlsShow", ctx.mapControlsShow)("logoShow", ctx.mapLogoShow)("logsShow", ctx.mapLogsShow);
+    } }, directives: [_components_alert_component__WEBPACK_IMPORTED_MODULE_8__["AlertComponent"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormGroupDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControlName"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["RequiredValidator"], _angular_common__WEBPACK_IMPORTED_MODULE_9__["NgIf"], _map_map_component__WEBPACK_IMPORTED_MODULE_10__["MapComponent"]], encapsulation: 2 });
+
+
+/***/ }),
+
+/***/ "o0su":
+/*!***********************************!*\
+  !*** ./src/app/services/index.ts ***!
+  \***********************************/
+/*! exports provided: AlertService, AuthenticationService, OsmOverpassService */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony import */ var _alert_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./alert.service */ "3LUQ");
+/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AlertService", function() { return _alert_service__WEBPACK_IMPORTED_MODULE_0__["AlertService"]; });
+
+/* harmony import */ var _authentication_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./authentication.service */ "ej43");
+/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AuthenticationService", function() { return _authentication_service__WEBPACK_IMPORTED_MODULE_1__["AuthenticationService"]; });
+
+/* harmony import */ var _osmoverpass_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./osmoverpass.service */ "VN7w");
+/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "OsmOverpassService", function() { return _osmoverpass_service__WEBPACK_IMPORTED_MODULE_2__["OsmOverpassService"]; });
+
+
+
+
+
+
+/***/ }),
+
+/***/ "oiUv":
+/*!******************************************************!*\
+  !*** ./src-gen/gnuboat-mapservice/model/itemBase.ts ***!
+  \******************************************************/
+/*! no exports provided */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/**
+ * GNUBoat Mapservice API
+ * API to upload log files with water depth to GNUBoat server
+ *
+ * The version of the OpenAPI document: v1
+ * Contact: info@engsas.de
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+
+
+
+/***/ }),
+
+/***/ "qRIy":
+/*!**************************************************!*\
+  !*** ./src/app/mygnuboat/deviceadd.component.ts ***!
+  \**************************************************/
+/*! exports provided: DeviceAddComponent */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeviceAddComponent", function() { return DeviceAddComponent; });
+/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ "qCKp");
+/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
+/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
+/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/router */ "tyNb");
+/* harmony import */ var _src_gen_gnuboat_mapservice__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../src-gen/gnuboat-mapservice */ "zZ2Q");
+/* harmony import */ var _services__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../services */ "o0su");
+/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/core */ "fXoL");
+/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/common */ "ofXK");
+
+
+//import { switchMap, debounceTime, tap, finalize, filter } from 'rxjs/operators';
+
+
+
+
+
+
+
+
+
+
+function DeviceAddComponent_span_11_Template(rf, ctx) { if (rf & 1) {
+    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "span", 22);
+    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵi18n"](1, 23);
+    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
+} }
+function DeviceAddComponent_span_19_Template(rf, ctx) { if (rf & 1) {
+    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "span", 22);
+    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵi18n"](1, 24);
+    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
+} }
+class DeviceAddComponent {
+    constructor(formBuilder, devicesService, alertService, authenticationService, router) {
+        this.formBuilder = formBuilder;
+        this.devicesService = devicesService;
+        this.alertService = alertService;
+        this.authenticationService = authenticationService;
+        this.router = router;
+        this.currentUserSubscription = this.authenticationService.currentUser.subscribe(user => {
+            this.currentUser = user;
+            this.devicesService.configuration.username = user.username;
+            this.devicesService.configuration.password = this.authenticationService.currentUserPassword;
+        });
+    }
+    ngOnInit() {
+        this.devicesForm = this.formBuilder.group({
+            name: [, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required],
+            sensorDepth: [, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required],
+            comment: [],
+        });
+    }
+    ngOnDestroy() {
+    }
+    addDevice() {
+        // stop here if form is invalid
+        if (this.devicesForm.invalid) {
+            this.alertService.error("Please enter all necessary data");
+            return;
+        }
+        var device = {};
+        device.name = this.devicesForm.get('name').value;
+        device.sensorDepth = this.devicesForm.get('sensorDepth').value / 100;
+        if (this.devicesForm.get('comment').value) {
+            device.comment = this.devicesForm.get('comment').value;
+        }
+        else {
+            device.comment = '';
+        }
+        this.devicesService.devicesCreate(device).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["first"])()).subscribe(result => {
+            if (device.name == result.name) {
+                this.router.navigate(['/mygnuboat']);
+            }
+            else {
+                console.log(result);
+                // do some error handling here!
+                this.alertService.error("Could not add device!");
+            }
+        }, error => {
+            this.alertService.error(error);
+        });
+    }
+    cancelEditing() {
+        this.router.navigate(['/mygnuboat']);
+    }
+}
+DeviceAddComponent.ɵfac = function DeviceAddComponent_Factory(t) { return new (t || DeviceAddComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdirectiveInject"](_src_gen_gnuboat_mapservice__WEBPACK_IMPORTED_MODULE_4__["DevicesService"]), _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdirectiveInject"](_services__WEBPACK_IMPORTED_MODULE_5__["AlertService"]), _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdirectiveInject"](_services__WEBPACK_IMPORTED_MODULE_5__["AuthenticationService"]), _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"])); };
+DeviceAddComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdefineComponent"]({ type: DeviceAddComponent, selectors: [["ng-component"]], decls: 30, vars: 4, consts: function () { let i18n_0; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
+        const MSG_EXTERNAL_deviceaddTitle$$SRC_APP_MYGNUBOAT_DEVICEADD_COMPONENT_TS_1 = goog.getMsg("Add a new Device");
+        i18n_0 = MSG_EXTERNAL_deviceaddTitle$$SRC_APP_MYGNUBOAT_DEVICEADD_COMPONENT_TS_1;
+    }
+    else {
+        i18n_0 = $localize `:@@deviceaddTitle␟02b0e404258ae0f38cdc0a248c15f45e5ef3bb3b␟2631079662194939396:Add a new Device`;
+    } let i18n_2; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
+        const MSG_EXTERNAL_deviceEditName$$SRC_APP_MYGNUBOAT_DEVICEADD_COMPONENT_TS_3 = goog.getMsg("Name:");
+        i18n_2 = MSG_EXTERNAL_deviceEditName$$SRC_APP_MYGNUBOAT_DEVICEADD_COMPONENT_TS_3;
+    }
+    else {
+        i18n_2 = $localize `:@@deviceEditName␟616e206cb4f25bd5885fc35925365e43cf5fb929␟7658402240953727096:Name:`;
+    } let i18n_4; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
+        const MSG_EXTERNAL_4268034752503309278$$SRC_APP_MYGNUBOAT_DEVICEADD_COMPONENT_TS_5 = goog.getMsg("Name of Device");
+        i18n_4 = MSG_EXTERNAL_4268034752503309278$$SRC_APP_MYGNUBOAT_DEVICEADD_COMPONENT_TS_5;
+    }
+    else {
+        i18n_4 = $localize `:␟9a36b287229cfbce7525ea51ce88d070e8960b5d␟4268034752503309278:Name of Device`;
+    } let i18n_6; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
+        const MSG_EXTERNAL_deviceEditSensorDepth$$SRC_APP_MYGNUBOAT_DEVICEADD_COMPONENT_TS_7 = goog.getMsg("Sensor Depth:");
+        i18n_6 = MSG_EXTERNAL_deviceEditSensorDepth$$SRC_APP_MYGNUBOAT_DEVICEADD_COMPONENT_TS_7;
+    }
+    else {
+        i18n_6 = $localize `:@@deviceEditSensorDepth␟f49c8261e048ef66223f420d9a3a16e28ef1e105␟6964567358702715848:Sensor Depth:`;
+    } let i18n_8; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
+        const MSG_EXTERNAL_deviceEditComment$$SRC_APP_MYGNUBOAT_DEVICEADD_COMPONENT_TS_9 = goog.getMsg("Comment:");
+        i18n_8 = MSG_EXTERNAL_deviceEditComment$$SRC_APP_MYGNUBOAT_DEVICEADD_COMPONENT_TS_9;
+    }
+    else {
+        i18n_8 = $localize `:@@deviceEditComment␟96e41129ef5d2fa12b7a6ffcab608e9af04d8cbd␟872792317034860453:Comment:`;
+    } let i18n_10; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
+        const MSG_EXTERNAL_deviceButtonAdd$$SRC_APP_MYGNUBOAT_DEVICEADD_COMPONENT_TS_11 = goog.getMsg("Add");
+        i18n_10 = MSG_EXTERNAL_deviceButtonAdd$$SRC_APP_MYGNUBOAT_DEVICEADD_COMPONENT_TS_11;
+    }
+    else {
+        i18n_10 = $localize `:@@deviceButtonAdd␟f6755cff4957d5c3c89bafce5651f1b6fa2b1fd9␟3249513483374643425:Add`;
+    } let i18n_12; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
+        const MSG_EXTERNAL_deviceNameRequired$$SRC_APP_MYGNUBOAT_DEVICEADD_COMPONENT_TS__13 = goog.getMsg("Name is required.");
+        i18n_12 = MSG_EXTERNAL_deviceNameRequired$$SRC_APP_MYGNUBOAT_DEVICEADD_COMPONENT_TS__13;
+    }
+    else {
+        i18n_12 = $localize `:@@deviceNameRequired␟541087322c34e8b26954fd67ff4fc80d1a6c1b33␟4444753420973870540:Name is required.`;
+    } let i18n_14; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
+        const MSG_EXTERNAL_deviceSensorDepthRequired$$SRC_APP_MYGNUBOAT_DEVICEADD_COMPONENT_TS__15 = goog.getMsg("Sensor Depth is required.");
+        i18n_14 = MSG_EXTERNAL_deviceSensorDepthRequired$$SRC_APP_MYGNUBOAT_DEVICEADD_COMPONENT_TS__15;
+    }
+    else {
+        i18n_14 = $localize `:@@deviceSensorDepthRequired␟6f73b1cdf75e7b167c6f587067be96c0ce914767␟5781133826951020538:Sensor Depth is required.`;
+    } return [[1, "header"], i18n_0, [1, "content"], [1, "pure-form", "pure-form-aligned", 3, "formGroup", "ngSubmit"], [1, "pure-control-group"], ["for", "name"], i18n_2, ["id", "deviceEditName", "formControlName", "name", "type", "text", "placeholder", i18n_4, "required", ""], ["deviceNameInput", ""], ["class", "pure-form-message-inline", 4, "ngIf"], ["for", "sensorDepth"], i18n_6, ["formControlName", "sensorDepth", "type", "number", "placeholder", "cm", "min", "0", "required", ""], ["deviceSensorDepthInput", ""], ["for", "comment"], i18n_8, ["formControlName", "comment"], ["deviceCommentInput", ""], [1, "pure-controls"], [1, "pure-button", "pure-button-primary", "button-add", 3, "disabled"], i18n_10, [1, "pure-button", 3, "mousedown"], [1, "pure-form-message-inline"], i18n_12, i18n_14]; }, template: function DeviceAddComponent_Template(rf, ctx) { if (rf & 1) {
+        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 0);
+        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](1, "h2");
+        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵi18n"](2, 1);
+        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](3, "div", 2);
+        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](4, "form", 3);
+        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("ngSubmit", function DeviceAddComponent_Template_form_ngSubmit_4_listener() { return ctx.addDevice(); });
+        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](5, "fieldset");
+        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](6, "div", 4);
+        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](7, "label", 5);
+        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵi18n"](8, 6);
+        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](9, "input", 7, 8);
+        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](11, DeviceAddComponent_span_11_Template, 2, 0, "span", 9);
+        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](12, "div", 4);
+        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](13, "label", 10);
+        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵi18n"](14, 11);
+        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](15, "input", 12, 13);
+        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](17, "span");
+        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](18, "cm");
+        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](19, DeviceAddComponent_span_19_Template, 2, 0, "span", 9);
+        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](20, "div", 4);
+        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](21, "label", 14);
+        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵi18n"](22, 15);
+        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](23, "textarea", 16, 17);
+        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](25, "div", 18);
+        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](26, "button", 19);
+        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵi18n"](27, 20);
+        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](28, "button", 21);
+        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("mousedown", function DeviceAddComponent_Template_button_mousedown_28_listener() { return ctx.cancelEditing(); });
+        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](29, "Cancel");
+        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
+        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
+    } if (rf & 2) {
+        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](4);
+        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("formGroup", ctx.devicesForm);
+        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](7);
+        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx.devicesForm.controls["name"].errors);
+        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](8);
+        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx.devicesForm.controls["sensorDepth"].errors);
+        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](7);
+        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("disabled", ctx.devicesForm.pristine || ctx.devicesForm.invalid);
+    } }, directives: [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormGroupDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControlName"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["RequiredValidator"], _angular_common__WEBPACK_IMPORTED_MODULE_7__["NgIf"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NumberValueAccessor"]], encapsulation: 2 });
+
+
+/***/ }),
+
+/***/ "qRYB":
+/*!**********************************************************!*\
+  !*** ./src-gen/gnuboat-mapservice/api/waters.service.ts ***!
+  \**********************************************************/
+/*! exports provided: WatersService */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "WatersService", function() { return WatersService; });
+/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common/http */ "tk/3");
+/* harmony import */ var _encoder__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../encoder */ "gZ76");
+/* harmony import */ var _variables__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../variables */ "L3f3");
+/* harmony import */ var _configuration__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../configuration */ "rr0t");
+/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/core */ "fXoL");
+
+
+
+
+
+
+
+class WatersService {
+    constructor(httpClient, basePath, configuration) {
+        this.httpClient = httpClient;
+        this.basePath = 'https://gnuboat.engsas.com/mapservice/v1';
+        this.defaultHeaders = new _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpHeaders"]();
+        this.configuration = new _configuration__WEBPACK_IMPORTED_MODULE_3__["Configuration"]();
+        if (configuration) {
+            this.configuration = configuration;
+        }
+        if (typeof this.configuration.basePath !== 'string') {
+            if (typeof basePath !== 'string') {
+                basePath = this.basePath;
+            }
+            this.configuration.basePath = basePath;
+        }
+        this.encoder = this.configuration.encoder || new _encoder__WEBPACK_IMPORTED_MODULE_1__["CustomHttpParameterCodec"]();
+    }
+    addToHttpParams(httpParams, value, key) {
+        if (typeof value === "object" && value instanceof Date === false) {
+            httpParams = this.addToHttpParamsRecursive(httpParams, value);
+        }
+        else {
+            httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
+        }
+        return httpParams;
+    }
+    addToHttpParamsRecursive(httpParams, value, key) {
+        if (value == null) {
+            return httpParams;
+        }
+        if (typeof value === "object") {
+            if (Array.isArray(value)) {
+                value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
+            }
+            else if (value instanceof Date) {
+                if (key != null) {
+                    httpParams = httpParams.append(key, value.toISOString().substr(0, 10));
+                }
+                else {
+                    throw Error("key may not be null if value is Date");
+                }
+            }
+            else {
+                Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
+            }
+        }
+        else if (key != null) {
+            httpParams = httpParams.append(key, value);
+        }
+        else {
+            throw Error("key may not be null if value is not object or array");
+        }
+        return httpParams;
+    }
+    watersCreate(waterCreation, observe = 'body', reportProgress = false, options) {
+        let headers = this.defaultHeaders;
+        let credential;
+        // authentication (apiKeyAuth) required
+        credential = this.configuration.lookupCredential('apiKeyAuth');
+        if (credential) {
+            headers = headers.set('X-API-KEY', credential);
+        }
+        // authentication (basicAuth) required
+        credential = this.configuration.lookupCredential('basicAuth');
+        if (credential) {
+            headers = headers.set('Authorization', 'Basic ' + credential);
+        }
+        let httpHeaderAcceptSelected = options && options.httpHeaderAccept;
+        if (httpHeaderAcceptSelected === undefined) {
+            // to determine the Accept header
+            const httpHeaderAccepts = [
+                'application/json',
+                'application/problem+json'
+            ];
+            httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
+        }
+        if (httpHeaderAcceptSelected !== undefined) {
+            headers = headers.set('Accept', httpHeaderAcceptSelected);
+        }
+        // to determine the Content-Type header
+        const consumes = [
+            'application/json'
+        ];
+        const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
+        if (httpContentTypeSelected !== undefined) {
+            headers = headers.set('Content-Type', httpContentTypeSelected);
+        }
+        let responseType = 'json';
+        if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
+            responseType = 'text';
+        }
+        return this.httpClient.post(`${this.configuration.basePath}/waters`, waterCreation, {
+            responseType: responseType,
+            withCredentials: this.configuration.withCredentials,
+            headers: headers,
+            observe: observe,
+            reportProgress: reportProgress
+        });
+    }
+    watersGaugeCreate(waterId, gaugeCreation, observe = 'body', reportProgress = false, options) {
+        if (waterId === null || waterId === undefined) {
+            throw new Error('Required parameter waterId was null or undefined when calling watersGaugeCreate.');
+        }
+        let headers = this.defaultHeaders;
+        let credential;
+        // authentication (apiKeyAuth) required
+        credential = this.configuration.lookupCredential('apiKeyAuth');
+        if (credential) {
+            headers = headers.set('X-API-KEY', credential);
+        }
+        // authentication (basicAuth) required
+        credential = this.configuration.lookupCredential('basicAuth');
+        if (credential) {
+            headers = headers.set('Authorization', 'Basic ' + credential);
+        }
+        let httpHeaderAcceptSelected = options && options.httpHeaderAccept;
+        if (httpHeaderAcceptSelected === undefined) {
+            // to determine the Accept header
+            const httpHeaderAccepts = [
+                'application/json',
+                'application/geo+json',
+                'application/problem+json'
+            ];
+            httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
+        }
+        if (httpHeaderAcceptSelected !== undefined) {
+            headers = headers.set('Accept', httpHeaderAcceptSelected);
+        }
+        // to determine the Content-Type header
+        const consumes = [
+            'application/json'
+        ];
+        const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
+        if (httpContentTypeSelected !== undefined) {
+            headers = headers.set('Content-Type', httpContentTypeSelected);
+        }
+        let responseType = 'json';
+        if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
+            responseType = 'text';
+        }
+        return this.httpClient.post(`${this.configuration.basePath}/waters/${encodeURIComponent(String(waterId))}/gauges`, gaugeCreation, {
+            responseType: responseType,
+            withCredentials: this.configuration.withCredentials,
+            headers: headers,
+            observe: observe,
+            reportProgress: reportProgress
+        });
+    }
+    watersGaugeGetById(waterId, gaugeId, observe = 'body', reportProgress = false, options) {
+        if (waterId === null || waterId === undefined) {
+            throw new Error('Required parameter waterId was null or undefined when calling watersGaugeGetById.');
+        }
+        if (gaugeId === null || gaugeId === undefined) {
+            throw new Error('Required parameter gaugeId was null or undefined when calling watersGaugeGetById.');
+        }
+        let headers = this.defaultHeaders;
+        let httpHeaderAcceptSelected = options && options.httpHeaderAccept;
+        if (httpHeaderAcceptSelected === undefined) {
+            // to determine the Accept header
+            const httpHeaderAccepts = [
+                'application/json',
+                'application/geo+json',
+                'application/problem+json'
+            ];
+            httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
+        }
+        if (httpHeaderAcceptSelected !== undefined) {
+            headers = headers.set('Accept', httpHeaderAcceptSelected);
+        }
+        let responseType = 'json';
+        if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
+            responseType = 'text';
+        }
+        return this.httpClient.get(`${this.configuration.basePath}/waters/${encodeURIComponent(String(waterId))}/gauges/${encodeURIComponent(String(gaugeId))}`, {
+            responseType: responseType,
+            withCredentials: this.configuration.withCredentials,
+            headers: headers,
+            observe: observe,
+            reportProgress: reportProgress
+        });
+    }
+    watersGaugesGet(waterId, name, manager, orderBy, offset, limit, observe = 'body', reportProgress = false, options) {
+        if (waterId === null || waterId === undefined) {
+            throw new Error('Required parameter waterId was null or undefined when calling watersGaugesGet.');
+        }
+        let queryParameters = new _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpParams"]({ encoder: this.encoder });
+        if (name !== undefined && name !== null) {
+            queryParameters = this.addToHttpParams(queryParameters, name, 'name');
+        }
+        if (manager !== undefined && manager !== null) {
+            queryParameters = this.addToHttpParams(queryParameters, manager, 'manager');
+        }
+        if (orderBy !== undefined && orderBy !== null) {
+            queryParameters = this.addToHttpParams(queryParameters, orderBy, 'order_by');
+        }
+        if (offset !== undefined && offset !== null) {
+            queryParameters = this.addToHttpParams(queryParameters, offset, 'offset');
+        }
+        if (limit !== undefined && limit !== null) {
+            queryParameters = this.addToHttpParams(queryParameters, limit, 'limit');
+        }
+        let headers = this.defaultHeaders;
+        let httpHeaderAcceptSelected = options && options.httpHeaderAccept;
+        if (httpHeaderAcceptSelected === undefined) {
+            // to determine the Accept header
+            const httpHeaderAccepts = [
+                'application/json',
+                'application/geo+json'
+            ];
+            httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
+        }
+        if (httpHeaderAcceptSelected !== undefined) {
+            headers = headers.set('Accept', httpHeaderAcceptSelected);
+        }
+        let responseType = 'json';
+        if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
+            responseType = 'text';
+        }
+        return this.httpClient.get(`${this.configuration.basePath}/waters/${encodeURIComponent(String(waterId))}/gauges`, {
+            params: queryParameters,
+            responseType: responseType,
+            withCredentials: this.configuration.withCredentials,
+            headers: headers,
+            observe: observe,
+            reportProgress: reportProgress
+        });
+    }
+    watersGet(name, manager, stakeholder, orderBy, offset, limit, observe = 'body', reportProgress = false, options) {
+        let queryParameters = new _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpParams"]({ encoder: this.encoder });
+        if (name !== undefined && name !== null) {
+            queryParameters = this.addToHttpParams(queryParameters, name, 'name');
+        }
+        if (manager !== undefined && manager !== null) {
+            queryParameters = this.addToHttpParams(queryParameters, manager, 'manager');
+        }
+        if (stakeholder !== undefined && stakeholder !== null) {
+            queryParameters = this.addToHttpParams(queryParameters, stakeholder, 'stakeholder');
+        }
+        if (orderBy !== undefined && orderBy !== null) {
+            queryParameters = this.addToHttpParams(queryParameters, orderBy, 'order_by');
+        }
+        if (offset !== undefined && offset !== null) {
+            queryParameters = this.addToHttpParams(queryParameters, offset, 'offset');
+        }
+        if (limit !== undefined && limit !== null) {
+            queryParameters = this.addToHttpParams(queryParameters, limit, 'limit');
+        }
+        let headers = this.defaultHeaders;
+        let httpHeaderAcceptSelected = options && options.httpHeaderAccept;
+        if (httpHeaderAcceptSelected === undefined) {
+            // to determine the Accept header
+            const httpHeaderAccepts = [
+                'application/json',
+                'application/problem+json'
+            ];
+            httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
+        }
+        if (httpHeaderAcceptSelected !== undefined) {
+            headers = headers.set('Accept', httpHeaderAcceptSelected);
+        }
+        let responseType = 'json';
+        if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
+            responseType = 'text';
+        }
+        return this.httpClient.get(`${this.configuration.basePath}/waters`, {
+            params: queryParameters,
+            responseType: responseType,
+            withCredentials: this.configuration.withCredentials,
+            headers: headers,
+            observe: observe,
+            reportProgress: reportProgress
+        });
+    }
+    watersGetById(id, observe = 'body', reportProgress = false, options) {
+        if (id === null || id === undefined) {
+            throw new Error('Required parameter id was null or undefined when calling watersGetById.');
+        }
+        let headers = this.defaultHeaders;
+        let httpHeaderAcceptSelected = options && options.httpHeaderAccept;
+        if (httpHeaderAcceptSelected === undefined) {
+            // to determine the Accept header
+            const httpHeaderAccepts = [
+                'application/json',
+                'application/problem+json'
+            ];
+            httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
+        }
+        if (httpHeaderAcceptSelected !== undefined) {
+            headers = headers.set('Accept', httpHeaderAcceptSelected);
+        }
+        let responseType = 'json';
+        if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
+            responseType = 'text';
+        }
+        return this.httpClient.get(`${this.configuration.basePath}/waters/${encodeURIComponent(String(id))}`, {
+            responseType: responseType,
+            withCredentials: this.configuration.withCredentials,
+            headers: headers,
+            observe: observe,
+            reportProgress: reportProgress
+        });
+    }
+}
+WatersService.ɵfac = function WatersService_Factory(t) { return new (t || WatersService)(_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](_variables__WEBPACK_IMPORTED_MODULE_2__["BASE_PATH"], 8), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](_configuration__WEBPACK_IMPORTED_MODULE_3__["Configuration"], 8)); };
+WatersService.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineInjectable"]({ token: WatersService, factory: WatersService.ɵfac, providedIn: 'root' });
+
+
+/***/ }),
+
+/***/ "rr0t":
+/*!*****************************************************!*\
+  !*** ./src-gen/gnuboat-mapservice/configuration.ts ***!
+  \*****************************************************/
+/*! exports provided: Configuration */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Configuration", function() { return Configuration; });
+class Configuration {
+    constructor(configurationParameters = {}) {
+        this.apiKeys = configurationParameters.apiKeys;
+        this.username = configurationParameters.username;
+        this.password = configurationParameters.password;
+        this.accessToken = configurationParameters.accessToken;
+        this.basePath = configurationParameters.basePath;
+        this.withCredentials = configurationParameters.withCredentials;
+        this.encoder = configurationParameters.encoder;
+        if (configurationParameters.credentials) {
+            this.credentials = configurationParameters.credentials;
+        }
+        else {
+            this.credentials = {};
+        }
+        // init default apiKeyAuth credential
+        if (!this.credentials['apiKeyAuth']) {
+            this.credentials['apiKeyAuth'] = () => {
+                return this.apiKeys['apiKeyAuth'] || this.apiKeys['X-API-KEY'];
+            };
+        }
+        // init default basicAuth credential
+        if (!this.credentials['basicAuth']) {
+            this.credentials['basicAuth'] = () => {
+                if (this.username || this.password) {
+                    return btoa(this.username + ':' + this.password);
+                }
+            };
+        }
+    }
+    /**
+     * Select the correct content-type to use for a request.
+     * Uses {@link Configuration#isJsonMime} to determine the correct content-type.
+     * If no content type is found return the first found type if the contentTypes is not empty
+     * @param contentTypes - the array of content types that are available for selection
+     * @returns the selected content-type or <code>undefined</code> if no selection could be made.
+     */
+    selectHeaderContentType(contentTypes) {
+        if (contentTypes.length === 0) {
+            return undefined;
+        }
+        const type = contentTypes.find((x) => this.isJsonMime(x));
+        if (type === undefined) {
+            return contentTypes[0];
+        }
+        return type;
+    }
+    /**
+     * Select the correct accept content-type to use for a request.
+     * Uses {@link Configuration#isJsonMime} to determine the correct accept content-type.
+     * If no content type is found return the first found type if the contentTypes is not empty
+     * @param accepts - the array of content types that are available for selection.
+     * @returns the selected content-type or <code>undefined</code> if no selection could be made.
+     */
+    selectHeaderAccept(accepts) {
+        if (accepts.length === 0) {
+            return undefined;
+        }
+        const type = accepts.find((x) => this.isJsonMime(x));
+        if (type === undefined) {
+            return accepts[0];
+        }
+        return type;
+    }
+    /**
+     * Check if the given MIME is a JSON MIME.
+     * JSON MIME examples:
+     *   application/json
+     *   application/json; charset=UTF8
+     *   APPLICATION/JSON
+     *   application/vnd.company+json
+     * @param mime - MIME (Multipurpose Internet Mail Extensions)
+     * @return True if the given MIME is JSON, false otherwise.
+     */
+    isJsonMime(mime) {
+        const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
+        return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
+    }
+    lookupCredential(key) {
+        const value = this.credentials[key];
+        return typeof value === 'function'
+            ? value()
+            : value;
+    }
+}
+
+
+/***/ }),
+
+/***/ "usUh":
+/*!***************************************************!*\
+  !*** ./src-gen/gnuboat-mapservice/model/water.ts ***!
+  \***************************************************/
+/*! no exports provided */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+
+
+
+/***/ }),
+
+/***/ "w4RW":
+/*!*************************************************************!*\
+  !*** ./src-gen/gnuboat-mapservice/model/logEntryGeoJson.ts ***!
+  \*************************************************************/
+/*! no exports provided */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+
+
+
+/***/ }),
+
+/***/ "waET":
+/*!******************************************************!*\
+  !*** ./src-gen/gnuboat-mapservice/model/logEntry.ts ***!
+  \******************************************************/
+/*! no exports provided */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/**
+ * GNUBoat Mapservice API
+ * API to upload log files with water depth to GNUBoat server
+ *
+ * The version of the OpenAPI document: v1
+ * Contact: info@engsas.de
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+
+
+
+/***/ }),
+
+/***/ "wn6f":
+/*!*******************************!*\
+  !*** ./src/app/home/index.ts ***!
+  \*******************************/
+/*! exports provided: HomeComponent */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony import */ var _home_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./home.component */ "9vUh");
+/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HomeComponent", function() { return _home_component__WEBPACK_IMPORTED_MODULE_0__["HomeComponent"]; });
+
+
+
+
+/***/ }),
+
+/***/ "xA3V":
+/*!********************************************************!*\
+  !*** ./src-gen/gnuboat-mapservice/api/logs.service.ts ***!
+  \********************************************************/
+/*! exports provided: LogsService */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LogsService", function() { return LogsService; });
+/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common/http */ "tk/3");
+/* harmony import */ var _encoder__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../encoder */ "gZ76");
+/* harmony import */ var _variables__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../variables */ "L3f3");
+/* harmony import */ var _configuration__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../configuration */ "rr0t");
+/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/core */ "fXoL");
+
+
+
+
+
+
+
+class LogsService {
+    constructor(httpClient, basePath, configuration) {
+        this.httpClient = httpClient;
+        this.basePath = 'https://gnuboat.engsas.com/mapservice/v1';
+        this.defaultHeaders = new _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpHeaders"]();
+        this.configuration = new _configuration__WEBPACK_IMPORTED_MODULE_3__["Configuration"]();
+        if (configuration) {
+            this.configuration = configuration;
+        }
+        if (typeof this.configuration.basePath !== 'string') {
+            if (typeof basePath !== 'string') {
+                basePath = this.basePath;
+            }
+            this.configuration.basePath = basePath;
+        }
+        this.encoder = this.configuration.encoder || new _encoder__WEBPACK_IMPORTED_MODULE_1__["CustomHttpParameterCodec"]();
+    }
+    addToHttpParams(httpParams, value, key) {
+        if (typeof value === "object" && value instanceof Date === false) {
+            httpParams = this.addToHttpParamsRecursive(httpParams, value);
+        }
+        else {
+            httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
+        }
+        return httpParams;
+    }
+    addToHttpParamsRecursive(httpParams, value, key) {
+        if (value == null) {
+            return httpParams;
+        }
+        if (typeof value === "object") {
+            if (Array.isArray(value)) {
+                value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
+            }
+            else if (value instanceof Date) {
+                if (key != null) {
+                    httpParams = httpParams.append(key, value.toISOString().substr(0, 10));
+                }
+                else {
+                    throw Error("key may not be null if value is Date");
+                }
+            }
+            else {
+                Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
+            }
+        }
+        else if (key != null) {
+            httpParams = httpParams.append(key, value);
+        }
+        else {
+            throw Error("key may not be null if value is not object or array");
+        }
+        return httpParams;
+    }
+    logsGet(submitter, orderBy, offset, limit, observe = 'body', reportProgress = false, options) {
+        let queryParameters = new _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpParams"]({ encoder: this.encoder });
+        if (submitter !== undefined && submitter !== null) {
+            queryParameters = this.addToHttpParams(queryParameters, submitter, 'submitter');
+        }
+        if (orderBy !== undefined && orderBy !== null) {
+            queryParameters = this.addToHttpParams(queryParameters, orderBy, 'order_by');
+        }
+        if (offset !== undefined && offset !== null) {
+            queryParameters = this.addToHttpParams(queryParameters, offset, 'offset');
+        }
+        if (limit !== undefined && limit !== null) {
+            queryParameters = this.addToHttpParams(queryParameters, limit, 'limit');
+        }
+        let headers = this.defaultHeaders;
+        let httpHeaderAcceptSelected = options && options.httpHeaderAccept;
+        if (httpHeaderAcceptSelected === undefined) {
+            // to determine the Accept header
+            const httpHeaderAccepts = [
+                'application/json',
+                'application/problem+json'
+            ];
+            httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
+        }
+        if (httpHeaderAcceptSelected !== undefined) {
+            headers = headers.set('Accept', httpHeaderAcceptSelected);
+        }
+        let responseType = 'json';
+        if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
+            responseType = 'text';
+        }
+        return this.httpClient.get(`${this.configuration.basePath}/logs`, {
+            params: queryParameters,
+            responseType: responseType,
+            withCredentials: this.configuration.withCredentials,
+            headers: headers,
+            observe: observe,
+            reportProgress: reportProgress
+        });
+    }
+    logsLogCreate(logCreation, observe = 'body', reportProgress = false, options) {
+        let headers = this.defaultHeaders;
+        let credential;
+        // authentication (apiKeyAuth) required
+        credential = this.configuration.lookupCredential('apiKeyAuth');
+        if (credential) {
+            headers = headers.set('X-API-KEY', credential);
+        }
+        // authentication (basicAuth) required
+        credential = this.configuration.lookupCredential('basicAuth');
+        if (credential) {
+            headers = headers.set('Authorization', 'Basic ' + credential);
+        }
+        let httpHeaderAcceptSelected = options && options.httpHeaderAccept;
+        if (httpHeaderAcceptSelected === undefined) {
+            // to determine the Accept header
+            const httpHeaderAccepts = [
+                'application/json',
+                'application/problem+json'
+            ];
+            httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
+        }
+        if (httpHeaderAcceptSelected !== undefined) {
+            headers = headers.set('Accept', httpHeaderAcceptSelected);
+        }
+        // to determine the Content-Type header
+        const consumes = [
+            'application/json'
+        ];
+        const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
+        if (httpContentTypeSelected !== undefined) {
+            headers = headers.set('Content-Type', httpContentTypeSelected);
+        }
+        let responseType = 'json';
+        if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
+            responseType = 'text';
+        }
+        return this.httpClient.post(`${this.configuration.basePath}/logs`, logCreation, {
+            responseType: responseType,
+            withCredentials: this.configuration.withCredentials,
+            headers: headers,
+            observe: observe,
+            reportProgress: reportProgress
+        });
+    }
+    logsLogDelete(logId, observe = 'body', reportProgress = false, options) {
+        if (logId === null || logId === undefined) {
+            throw new Error('Required parameter logId was null or undefined when calling logsLogDelete.');
+        }
+        let headers = this.defaultHeaders;
+        let credential;
+        // authentication (apiKeyAuth) required
+        credential = this.configuration.lookupCredential('apiKeyAuth');
+        if (credential) {
+            headers = headers.set('X-API-KEY', credential);
+        }
+        // authentication (basicAuth) required
+        credential = this.configuration.lookupCredential('basicAuth');
+        if (credential) {
+            headers = headers.set('Authorization', 'Basic ' + credential);
+        }
+        let httpHeaderAcceptSelected = options && options.httpHeaderAccept;
+        if (httpHeaderAcceptSelected === undefined) {
+            // to determine the Accept header
+            const httpHeaderAccepts = [
+                'application/json',
+                'application/problem+json'
+            ];
+            httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
+        }
+        if (httpHeaderAcceptSelected !== undefined) {
+            headers = headers.set('Accept', httpHeaderAcceptSelected);
+        }
+        let responseType = 'json';
+        if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
+            responseType = 'text';
+        }
+        return this.httpClient.delete(`${this.configuration.basePath}/logs/${encodeURIComponent(String(logId))}`, {
+            responseType: responseType,
+            withCredentials: this.configuration.withCredentials,
+            headers: headers,
+            observe: observe,
+            reportProgress: reportProgress
+        });
+    }
+    logsLogGetById(logId, observe = 'body', reportProgress = false, options) {
+        if (logId === null || logId === undefined) {
+            throw new Error('Required parameter logId was null or undefined when calling logsLogGetById.');
+        }
+        let headers = this.defaultHeaders;
+        let httpHeaderAcceptSelected = options && options.httpHeaderAccept;
+        if (httpHeaderAcceptSelected === undefined) {
+            // to determine the Accept header
+            const httpHeaderAccepts = [
+                'application/json',
+                'application/geo+json',
+                'application/problem+json'
+            ];
+            httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
+        }
+        if (httpHeaderAcceptSelected !== undefined) {
+            headers = headers.set('Accept', httpHeaderAcceptSelected);
+        }
+        let responseType = 'json';
+        if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
+            responseType = 'text';
+        }
+        return this.httpClient.get(`${this.configuration.basePath}/logs/${encodeURIComponent(String(logId))}`, {
+            responseType: responseType,
+            withCredentials: this.configuration.withCredentials,
+            headers: headers,
+            observe: observe,
+            reportProgress: reportProgress
+        });
+    }
+    logsLogUpload(logId, body, observe = 'body', reportProgress = false, options) {
+        if (logId === null || logId === undefined) {
+            throw new Error('Required parameter logId was null or undefined when calling logsLogUpload.');
+        }
+        let headers = this.defaultHeaders;
+        let credential;
+        // authentication (apiKeyAuth) required
+        credential = this.configuration.lookupCredential('apiKeyAuth');
+        if (credential) {
+            headers = headers.set('X-API-KEY', credential);
+        }
+        // authentication (basicAuth) required
+        credential = this.configuration.lookupCredential('basicAuth');
+        if (credential) {
+            headers = headers.set('Authorization', 'Basic ' + credential);
+        }
+        let httpHeaderAcceptSelected = options && options.httpHeaderAccept;
+        if (httpHeaderAcceptSelected === undefined) {
+            // to determine the Accept header
+            const httpHeaderAccepts = [
+                'application/json',
+                'application/problem+json'
+            ];
+            httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
+        }
+        if (httpHeaderAcceptSelected !== undefined) {
+            headers = headers.set('Accept', httpHeaderAcceptSelected);
+        }
+        // to determine the Content-Type header
+        const consumes = [
+            'text/plain'
+        ];
+        const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
+        if (httpContentTypeSelected !== undefined) {
+            headers = headers.set('Content-Type', httpContentTypeSelected);
+        }
+        let responseType = 'json';
+        if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
+            responseType = 'text';
+        }
+        return this.httpClient.post(`${this.configuration.basePath}/logs/${encodeURIComponent(String(logId))}`, body, {
+            responseType: responseType,
+            withCredentials: this.configuration.withCredentials,
+            headers: headers,
+            observe: observe,
+            reportProgress: reportProgress
+        });
+    }
+}
+LogsService.ɵfac = function LogsService_Factory(t) { return new (t || LogsService)(_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](_variables__WEBPACK_IMPORTED_MODULE_2__["BASE_PATH"], 8), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](_configuration__WEBPACK_IMPORTED_MODULE_3__["Configuration"], 8)); };
+LogsService.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineInjectable"]({ token: LogsService, factory: LogsService.ɵfac, providedIn: 'root' });
+
+
+/***/ }),
+
+/***/ "yGm/":
+/*!***********************************************************!*\
+  !*** ./src-gen/gnuboat-mapservice/api/devices.service.ts ***!
+  \***********************************************************/
+/*! exports provided: DevicesService */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DevicesService", function() { return DevicesService; });
+/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common/http */ "tk/3");
+/* harmony import */ var _encoder__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../encoder */ "gZ76");
+/* harmony import */ var _variables__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../variables */ "L3f3");
+/* harmony import */ var _configuration__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../configuration */ "rr0t");
+/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/core */ "fXoL");
+
+
+
+
+
+
+
+class DevicesService {
+    constructor(httpClient, basePath, configuration) {
+        this.httpClient = httpClient;
+        this.basePath = 'https://gnuboat.engsas.com/mapservice/v1';
+        this.defaultHeaders = new _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpHeaders"]();
+        this.configuration = new _configuration__WEBPACK_IMPORTED_MODULE_3__["Configuration"]();
+        if (configuration) {
+            this.configuration = configuration;
+        }
+        if (typeof this.configuration.basePath !== 'string') {
+            if (typeof basePath !== 'string') {
+                basePath = this.basePath;
+            }
+            this.configuration.basePath = basePath;
+        }
+        this.encoder = this.configuration.encoder || new _encoder__WEBPACK_IMPORTED_MODULE_1__["CustomHttpParameterCodec"]();
+    }
+    addToHttpParams(httpParams, value, key) {
+        if (typeof value === "object" && value instanceof Date === false) {
+            httpParams = this.addToHttpParamsRecursive(httpParams, value);
+        }
+        else {
+            httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
+        }
+        return httpParams;
+    }
+    addToHttpParamsRecursive(httpParams, value, key) {
+        if (value == null) {
+            return httpParams;
+        }
+        if (typeof value === "object") {
+            if (Array.isArray(value)) {
+                value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
+            }
+            else if (value instanceof Date) {
+                if (key != null) {
+                    httpParams = httpParams.append(key, value.toISOString().substr(0, 10));
+                }
+                else {
+                    throw Error("key may not be null if value is Date");
+                }
+            }
+            else {
+                Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
+            }
+        }
+        else if (key != null) {
+            httpParams = httpParams.append(key, value);
+        }
+        else {
+            throw Error("key may not be null if value is not object or array");
+        }
+        return httpParams;
+    }
+    devicesCreate(deviceCreation, observe = 'body', reportProgress = false, options) {
+        let headers = this.defaultHeaders;
+        let credential;
+        // authentication (apiKeyAuth) required
+        credential = this.configuration.lookupCredential('apiKeyAuth');
+        if (credential) {
+            headers = headers.set('X-API-KEY', credential);
+        }
+        // authentication (basicAuth) required
+        credential = this.configuration.lookupCredential('basicAuth');
+        if (credential) {
+            headers = headers.set('Authorization', 'Basic ' + credential);
+        }
+        let httpHeaderAcceptSelected = options && options.httpHeaderAccept;
+        if (httpHeaderAcceptSelected === undefined) {
+            // to determine the Accept header
+            const httpHeaderAccepts = [
+                'application/json',
+                'application/problem+json'
+            ];
+            httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
+        }
+        if (httpHeaderAcceptSelected !== undefined) {
+            headers = headers.set('Accept', httpHeaderAcceptSelected);
+        }
+        // to determine the Content-Type header
+        const consumes = [
+            'application/json'
+        ];
+        const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
+        if (httpContentTypeSelected !== undefined) {
+            headers = headers.set('Content-Type', httpContentTypeSelected);
+        }
+        let responseType = 'json';
+        if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
+            responseType = 'text';
+        }
+        return this.httpClient.post(`${this.configuration.basePath}/devices`, deviceCreation, {
+            responseType: responseType,
+            withCredentials: this.configuration.withCredentials,
+            headers: headers,
+            observe: observe,
+            reportProgress: reportProgress
+        });
+    }
+    devicesDeviceDelete(id, observe = 'body', reportProgress = false, options) {
+        if (id === null || id === undefined) {
+            throw new Error('Required parameter id was null or undefined when calling devicesDeviceDelete.');
+        }
+        let headers = this.defaultHeaders;
+        let credential;
+        // authentication (apiKeyAuth) required
+        credential = this.configuration.lookupCredential('apiKeyAuth');
+        if (credential) {
+            headers = headers.set('X-API-KEY', credential);
+        }
+        // authentication (basicAuth) required
+        credential = this.configuration.lookupCredential('basicAuth');
+        if (credential) {
+            headers = headers.set('Authorization', 'Basic ' + credential);
+        }
+        let httpHeaderAcceptSelected = options && options.httpHeaderAccept;
+        if (httpHeaderAcceptSelected === undefined) {
+            // to determine the Accept header
+            const httpHeaderAccepts = [
+                'application/json',
+                'application/problem+json'
+            ];
+            httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
+        }
+        if (httpHeaderAcceptSelected !== undefined) {
+            headers = headers.set('Accept', httpHeaderAcceptSelected);
+        }
+        let responseType = 'json';
+        if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
+            responseType = 'text';
+        }
+        return this.httpClient.delete(`${this.configuration.basePath}/devices/${encodeURIComponent(String(id))}`, {
+            responseType: responseType,
+            withCredentials: this.configuration.withCredentials,
+            headers: headers,
+            observe: observe,
+            reportProgress: reportProgress
+        });
+    }
+    devicesGet(name, orderBy, offset, limit, observe = 'body', reportProgress = false, options) {
+        let queryParameters = new _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpParams"]({ encoder: this.encoder });
+        if (name !== undefined && name !== null) {
+            queryParameters = this.addToHttpParams(queryParameters, name, 'name');
+        }
+        if (orderBy !== undefined && orderBy !== null) {
+            queryParameters = this.addToHttpParams(queryParameters, orderBy, 'order_by');
+        }
+        if (offset !== undefined && offset !== null) {
+            queryParameters = this.addToHttpParams(queryParameters, offset, 'offset');
+        }
+        if (limit !== undefined && limit !== null) {
+            queryParameters = this.addToHttpParams(queryParameters, limit, 'limit');
+        }
+        let headers = this.defaultHeaders;
+        let credential;
+        // authentication (apiKeyAuth) required
+        credential = this.configuration.lookupCredential('apiKeyAuth');
+        if (credential) {
+            headers = headers.set('X-API-KEY', credential);
+        }
+        // authentication (basicAuth) required
+        credential = this.configuration.lookupCredential('basicAuth');
+        if (credential) {
+            headers = headers.set('Authorization', 'Basic ' + credential);
+        }
+        let httpHeaderAcceptSelected = options && options.httpHeaderAccept;
+        if (httpHeaderAcceptSelected === undefined) {
+            // to determine the Accept header
+            const httpHeaderAccepts = [
+                'application/json',
+                'application/problem+json'
+            ];
+            httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
+        }
+        if (httpHeaderAcceptSelected !== undefined) {
+            headers = headers.set('Accept', httpHeaderAcceptSelected);
+        }
+        let responseType = 'json';
+        if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
+            responseType = 'text';
+        }
+        return this.httpClient.get(`${this.configuration.basePath}/devices`, {
+            params: queryParameters,
+            responseType: responseType,
+            withCredentials: this.configuration.withCredentials,
+            headers: headers,
+            observe: observe,
+            reportProgress: reportProgress
+        });
+    }
+    devicesGetById(id, observe = 'body', reportProgress = false, options) {
+        if (id === null || id === undefined) {
+            throw new Error('Required parameter id was null or undefined when calling devicesGetById.');
+        }
+        let headers = this.defaultHeaders;
+        let credential;
+        // authentication (apiKeyAuth) required
+        credential = this.configuration.lookupCredential('apiKeyAuth');
+        if (credential) {
+            headers = headers.set('X-API-KEY', credential);
+        }
+        // authentication (basicAuth) required
+        credential = this.configuration.lookupCredential('basicAuth');
+        if (credential) {
+            headers = headers.set('Authorization', 'Basic ' + credential);
+        }
+        let httpHeaderAcceptSelected = options && options.httpHeaderAccept;
+        if (httpHeaderAcceptSelected === undefined) {
+            // to determine the Accept header
+            const httpHeaderAccepts = [
+                'application/json',
+                'application/problem+json'
+            ];
+            httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
+        }
+        if (httpHeaderAcceptSelected !== undefined) {
+            headers = headers.set('Accept', httpHeaderAcceptSelected);
+        }
+        let responseType = 'json';
+        if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
+            responseType = 'text';
+        }
+        return this.httpClient.get(`${this.configuration.basePath}/devices/${encodeURIComponent(String(id))}`, {
+            responseType: responseType,
+            withCredentials: this.configuration.withCredentials,
+            headers: headers,
+            observe: observe,
+            reportProgress: reportProgress
+        });
+    }
+}
+DevicesService.ɵfac = function DevicesService_Factory(t) { return new (t || DevicesService)(_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](_variables__WEBPACK_IMPORTED_MODULE_2__["BASE_PATH"], 8), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](_configuration__WEBPACK_IMPORTED_MODULE_3__["Configuration"], 8)); };
+DevicesService.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineInjectable"]({ token: DevicesService, factory: DevicesService.ɵfac, providedIn: 'root' });
+
+
+/***/ }),
+
+/***/ "zUnb":
+/*!*********************!*\
+  !*** ./src/main.ts ***!
+  \*********************/
+/*! no exports provided */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony import */ var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/platform-browser */ "jhN1");
+/* harmony import */ var _polyfills__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./polyfills */ "hN/g");
+/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ "fXoL");
+/* harmony import */ var _app_app_module__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./app/app.module */ "ZAI4");
+/* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./environments/environment */ "AytR");
+
+
+
+
+
+if (_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].production) {
+    Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["enableProdMode"])();
+}
+_angular_platform_browser__WEBPACK_IMPORTED_MODULE_0__["platformBrowser"]().bootstrapModule(_app_app_module__WEBPACK_IMPORTED_MODULE_3__["AppModule"])
+    .catch(err => console.error(err));
+
+
+/***/ }),
+
+/***/ "zZ2Q":
+/*!*********************************************!*\
+  !*** ./src-gen/gnuboat-mapservice/index.ts ***!
+  \*********************************************/
+/*! exports provided: DevicesService, LogsService, TilesService, UsersService, WatersService, APIS, GeoJsonType, Order, OsmType, BASE_PATH, COLLECTION_FORMATS, Configuration, ApiModule */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony import */ var _api_api__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./api/api */ "FCLh");
+/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DevicesService", function() { return _api_api__WEBPACK_IMPORTED_MODULE_0__["DevicesService"]; });
+
+/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LogsService", function() { return _api_api__WEBPACK_IMPORTED_MODULE_0__["LogsService"]; });
+
+/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TilesService", function() { return _api_api__WEBPACK_IMPORTED_MODULE_0__["TilesService"]; });
+
+/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UsersService", function() { return _api_api__WEBPACK_IMPORTED_MODULE_0__["UsersService"]; });
+
+/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WatersService", function() { return _api_api__WEBPACK_IMPORTED_MODULE_0__["WatersService"]; });
+
+/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "APIS", function() { return _api_api__WEBPACK_IMPORTED_MODULE_0__["APIS"]; });
+
+/* harmony import */ var _model_models__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./model/models */ "ibp5");
+/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GeoJsonType", function() { return _model_models__WEBPACK_IMPORTED_MODULE_1__["GeoJsonType"]; });
+
+/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Order", function() { return _model_models__WEBPACK_IMPORTED_MODULE_1__["Order"]; });
+
+/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "OsmType", function() { return _model_models__WEBPACK_IMPORTED_MODULE_1__["OsmType"]; });
+
+/* harmony import */ var _variables__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./variables */ "L3f3");
+/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BASE_PATH", function() { return _variables__WEBPACK_IMPORTED_MODULE_2__["BASE_PATH"]; });
+
+/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "COLLECTION_FORMATS", function() { return _variables__WEBPACK_IMPORTED_MODULE_2__["COLLECTION_FORMATS"]; });
+
+/* harmony import */ var _configuration__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./configuration */ "rr0t");
+/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Configuration", function() { return _configuration__WEBPACK_IMPORTED_MODULE_3__["Configuration"]; });
+
+/* harmony import */ var _api_module__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./api.module */ "if/4");
+/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ApiModule", function() { return _api_module__WEBPACK_IMPORTED_MODULE_4__["ApiModule"]; });
+
+
+
+
+
+
+
+
+/***/ }),
+
+/***/ "zn8P":
+/*!******************************************************!*\
+  !*** ./$$_lazy_route_resource lazy namespace object ***!
+  \******************************************************/
+/*! no static exports found */
+/***/ (function(module, exports) {
+
+function webpackEmptyAsyncContext(req) {
+	// Here Promise.resolve().then() is used instead of new Promise() to prevent
+	// uncaught exception popping up in devtools
+	return Promise.resolve().then(function() {
+		var e = new Error("Cannot find module '" + req + "'");
+		e.code = 'MODULE_NOT_FOUND';
+		throw e;
+	});
+}
+webpackEmptyAsyncContext.keys = function() { return []; };
+webpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext;
+module.exports = webpackEmptyAsyncContext;
+webpackEmptyAsyncContext.id = "zn8P";
+
+/***/ })
+
+},[[0,"runtime","vendor"]]]);
+//# sourceMappingURL=main-es2015.js.map
