webpackJsonp([1,4],{ /***/ 151: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_rxjs_add_operator_map__ = __webpack_require__(679); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_rxjs_add_operator_map___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_rxjs_add_operator_map__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_http__ = __webpack_require__(310); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return DataService; }); var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var DataService = (function () { function DataService(http) { this.http = http; this.getUrl = '/webapi/data'; this.usageUrl = '/webapi/usage'; this.nameUrl = '/webapi/name'; this.deviceUrl = '/webapi/device'; } DataService.prototype.get = function (id) { var lineChartData$ = this.http .get((this.getUrl + "/" + id + "/group/hour"), { headers: this.getHeaders() }) .map(mapData); return lineChartData$; }; DataService.prototype.usage = function (id) { var usageData$ = this.http .get((this.usageUrl + "/" + id), { headers: this.getHeaders() }) .map(mapUsage); return usageData$; }; DataService.prototype.name = function (id) { var nameData$ = this.http .get((this.nameUrl + "/" + id), { headers: this.getHeaders() }) .map(mapName); return nameData$; }; DataService.prototype.devices = function () { var devices$ = this.http .get(("" + this.deviceUrl), { headers: this.getHeaders() }) .map(mapDevice); return devices$; }; DataService.prototype.getHeaders = function () { var headers = new __WEBPACK_IMPORTED_MODULE_2__angular_http__["b" /* Headers */](); headers.append('Accept', 'application/json'); return headers; }; DataService = __decorate([ __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Injectable"])(), __metadata('design:paramtypes', [(typeof (_a = typeof __WEBPACK_IMPORTED_MODULE_2__angular_http__["c" /* Http */] !== 'undefined' && __WEBPACK_IMPORTED_MODULE_2__angular_http__["c" /* Http */]) === 'function' && _a) || Object]) ], DataService); return DataService; var _a; }()); function mapData(response) { var TOE1S = response.json().map(toe1ToData); var TOE2S = response.json().map(toe2ToData); var HOV = response.json().map(hovToData); var TTE1S = response.json().map(tte1ToData); var TTE2S = response.json().map(tte2ToData); var HTV = response.json().map(htvToData); var HT = response.json().map(htToData); var times = response.json().map(timeToData); var Toe1Line = ({ data: TOE1S, label: "Totaal Energieverbruik tarief 1" }); var Toe2Line = ({ data: TOE2S, label: "Totaal Energieverbruik tarief 2" }); var HovLine = ({ data: HOV, label: "Huidig Energieverbruik" }); var Tte1Line = ({ data: TTE1S, label: "Totaal terug Energieverbruik tarief 1" }); var Tte2Line = ({ data: TTE2S, label: "Totaal terug Energieverbruik tarief 2" }); var HtvLine = ({ data: HTV, label: "Huidig terug Energieverbruik" }); var HtLine = ({ data: HT, label: "Huidig Tarief" }); var label = ({ data: times }); var graph = ({ TOE1: Toe1Line, TOE2: Toe2Line, HOV: HovLine, TTE1: Tte1Line, TTE2: Tte2Line, HTV: HtvLine, HT: HtLine, labels: label }); return graph; } function toe1ToData(r) { var TOE1 = r.TOE1; return TOE1; } function toe2ToData(r) { var TOE2 = r.TOE2; return TOE2; } function hovToData(r) { var HOV = r.HOV; return HOV; } function tte1ToData(r) { var TTE1 = r.TTE1; return TTE1; } function tte2ToData(r) { var TTE2 = r.TTE2; return TTE2; } function htvToData(r) { var HTV = r.HTV; return HTV; } function htToData(r) { var HT = r.HT; return HT; } function timeToData(r) { var times = r.time.substring(11, 19); return times; } function mapUsage(response) { var usage = response.json().map(toUsage); return usage[0]; } function toUsage(r) { var htname = "night"; if (r.HT == 2) { htname = "day"; } var usage = ({ HOV: r.HOV, HTV: r.HTV, HT: r.HT, HTN: htname, TOE1: r.TOE1, TOE2: r.TOE2, TTE1: r.TTE1, TTE2: r.TTE2, tarief1: r.tarief1, tarief2: r.tarief2 }); return usage; } function mapName(response) { var name = response.json().map(toName); return name[0]; } function toName(r) { return r.name; } function mapDevice(response) { var devices = response.json().map(toDevice); return devices; } function toDevice(r) { var device = ({ sn: r.SN, name: r.name }); return device; } //# sourceMappingURL=C:/Users/avans/Documents/Angular/Smarthome-local/mean-app/src/data.service.js.map /***/ }), /***/ 333: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return DashboardComponent; }); var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var DashboardComponent = (function () { function DashboardComponent() { } DashboardComponent = __decorate([ __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Component"])({ selector: 'dashboard', template: __webpack_require__(672) }), __metadata('design:paramtypes', []) ], DashboardComponent); return DashboardComponent; }()); //# sourceMappingURL=C:/Users/avans/Documents/Angular/Smarthome-local/mean-app/src/dashboard.component.js.map /***/ }), /***/ 334: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_router__ = __webpack_require__(214); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_ng2_charts_ng2_charts__ = __webpack_require__(236); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_ng2_charts_ng2_charts___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_ng2_charts_ng2_charts__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_rxjs_observable_IntervalObservable__ = __webpack_require__(682); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_rxjs_observable_IntervalObservable___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_rxjs_observable_IntervalObservable__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__data_service__ = __webpack_require__(151); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return DetailComponent; }); var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var DetailComponent = (function () { function DetailComponent(dataService, route) { this.dataService = dataService; this.route = route; this.id = 'Loading'; this.name = "Loading"; this.hov = 0; this.htv = 0; this.ht = "loading"; this.money = 0; this.loaded = false; this.lineChartOptions = { responsive: true, title: { display: true, position: 'left', text: 'Watt' } }; this.lineChartColors = [ { backgroundColor: 'rgba(148,159,177,0.2)', borderColor: 'rgba(148,159,177,1)', pointBackgroundColor: 'rgba(148,159,177,1)', pointBorderColor: '#fff', pointHoverBackgroundColor: '#fff', pointHoverBorderColor: 'rgba(148,159,177,0.8)' } ]; this.lineChartLegend = true; this.lineChartType = 'line'; } DetailComponent.prototype.ngOnInit = function () { var _this = this; this.id = this.route.snapshot.params['id']; this.refreshData(this.id); this.subscription = __WEBPACK_IMPORTED_MODULE_3_rxjs_observable_IntervalObservable__["IntervalObservable"].create(7500).subscribe(function (n) { return _this.refreshData(_this.id); }); }; DetailComponent.prototype.ngOnDestroy = function () { this.subscription.unsubscribe(); }; DetailComponent.prototype.refreshData = function (id) { var _this = this; console.log("Refreshing data for ", this.id); this.dataService .get(id) .subscribe(function (res) { _this.label = res.labels; _this.data1 = res.HOV; _this.data2 = res.HTV; _this.data3 = res.TOE2; _this.data4 = res.TTE2; _this.loaded = true; _this.chart.chart.update(); }); this.dataService .usage(id) .subscribe(function (res) { _this.hov = res.HOV; _this.htv = res.HTV; _this.ht = res.HTN; _this.money = ((res.TOE1 - res.TTE1) * res.tarief1) + ((res.TOE2 - res.TTE2) * res.tarief2); }); this.dataService .name(id) .subscribe(function (res) { _this.name = res; }); }; __decorate([ __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["ViewChild"])(__WEBPACK_IMPORTED_MODULE_2_ng2_charts_ng2_charts__["BaseChartDirective"]), __metadata('design:type', (typeof (_a = typeof __WEBPACK_IMPORTED_MODULE_2_ng2_charts_ng2_charts__["BaseChartDirective"] !== 'undefined' && __WEBPACK_IMPORTED_MODULE_2_ng2_charts_ng2_charts__["BaseChartDirective"]) === 'function' && _a) || Object) ], DetailComponent.prototype, "chart", void 0); DetailComponent = __decorate([ __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Component"])({ selector: 'detail', template: __webpack_require__(673) }), __metadata('design:paramtypes', [(typeof (_b = typeof __WEBPACK_IMPORTED_MODULE_4__data_service__["a" /* DataService */] !== 'undefined' && __WEBPACK_IMPORTED_MODULE_4__data_service__["a" /* DataService */]) === 'function' && _b) || Object, (typeof (_c = typeof __WEBPACK_IMPORTED_MODULE_1__angular_router__["b" /* ActivatedRoute */] !== 'undefined' && __WEBPACK_IMPORTED_MODULE_1__angular_router__["b" /* ActivatedRoute */]) === 'function' && _c) || Object]) ], DetailComponent); return DetailComponent; var _a, _b, _c; }()); //# sourceMappingURL=C:/Users/avans/Documents/Angular/Smarthome-local/mean-app/src/detail.component.js.map /***/ }), /***/ 335: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__data_service__ = __webpack_require__(151); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_router__ = __webpack_require__(214); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return DeviceComponent; }); var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var DeviceComponent = (function () { function DeviceComponent(router, dataService) { this.router = router; this.dataService = dataService; } DeviceComponent.prototype.ngOnInit = function () { var _this = this; this.dataService .devices() .subscribe(function (res) { _this.devices = res; }); }; DeviceComponent.prototype.goToDetails = function (id) { this.router.navigate(['/detail', id]); }; DeviceComponent = __decorate([ __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Component"])({ selector: 'device', template: __webpack_require__(674) }), __metadata('design:paramtypes', [(typeof (_a = typeof __WEBPACK_IMPORTED_MODULE_2__angular_router__["c" /* Router */] !== 'undefined' && __WEBPACK_IMPORTED_MODULE_2__angular_router__["c" /* Router */]) === 'function' && _a) || Object, (typeof (_b = typeof __WEBPACK_IMPORTED_MODULE_1__data_service__["a" /* DataService */] !== 'undefined' && __WEBPACK_IMPORTED_MODULE_1__data_service__["a" /* DataService */]) === 'function' && _b) || Object]) ], DeviceComponent); return DeviceComponent; var _a, _b; }()); //# sourceMappingURL=C:/Users/avans/Documents/Angular/Smarthome-local/mean-app/src/device.component.js.map /***/ }), /***/ 389: /***/ (function(module, exports) { function webpackEmptyContext(req) { throw new Error("Cannot find module '" + req + "'."); } webpackEmptyContext.keys = function() { return []; }; webpackEmptyContext.resolve = webpackEmptyContext; module.exports = webpackEmptyContext; webpackEmptyContext.id = 389; /***/ }), /***/ 390: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_platform_browser_dynamic__ = __webpack_require__(477); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(0); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__environments_environment__ = __webpack_require__(513); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__app_app_module__ = __webpack_require__(509); if (__WEBPACK_IMPORTED_MODULE_2__environments_environment__["a" /* environment */].production) { __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__["enableProdMode"])(); } __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_platform_browser_dynamic__["a" /* platformBrowserDynamic */])().bootstrapModule(__WEBPACK_IMPORTED_MODULE_3__app_app_module__["a" /* AppModule */]); //# sourceMappingURL=C:/Users/avans/Documents/Angular/Smarthome-local/mean-app/src/main.js.map /***/ }), /***/ 507: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_router__ = __webpack_require__(214); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__dashboard_component__ = __webpack_require__(333); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__device_component__ = __webpack_require__(335); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__detail_component__ = __webpack_require__(334); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AppRoutingModule; }); var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var routes = [ { path: '', redirectTo: '/dashboard', pathMatch: 'full' }, { path: 'dashboard', component: __WEBPACK_IMPORTED_MODULE_2__dashboard_component__["a" /* DashboardComponent */] }, { path: 'device', component: __WEBPACK_IMPORTED_MODULE_3__device_component__["a" /* DeviceComponent */] }, { path: 'detail/:id', component: __WEBPACK_IMPORTED_MODULE_4__detail_component__["a" /* DetailComponent */] } ]; var AppRoutingModule = (function () { function AppRoutingModule() { } AppRoutingModule = __decorate([ __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["NgModule"])({ imports: [__WEBPACK_IMPORTED_MODULE_1__angular_router__["a" /* RouterModule */].forRoot(routes)], exports: [__WEBPACK_IMPORTED_MODULE_1__angular_router__["a" /* RouterModule */]] }), __metadata('design:paramtypes', []) ], AppRoutingModule); return AppRoutingModule; }()); //# sourceMappingURL=C:/Users/avans/Documents/Angular/Smarthome-local/mean-app/src/app-routing.module.js.map /***/ }), /***/ 508: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AppComponent; }); var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var AppComponent = (function () { function AppComponent() { } AppComponent = __decorate([ __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Component"])({ selector: 'app-root', template: __webpack_require__(670), styles: [__webpack_require__(669)] }), __metadata('design:paramtypes', []) ], AppComponent); return AppComponent; }()); //# sourceMappingURL=C:/Users/avans/Documents/Angular/Smarthome-local/mean-app/src/app.component.js.map /***/ }), /***/ 509: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_platform_browser__ = __webpack_require__(148); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(0); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_forms__ = __webpack_require__(468); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_http__ = __webpack_require__(310); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_ng2_charts_ng2_charts__ = __webpack_require__(236); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_ng2_charts_ng2_charts___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_ng2_charts_ng2_charts__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__app_routing_module__ = __webpack_require__(507); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__app_component__ = __webpack_require__(508); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__chart_component__ = __webpack_require__(510); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__dashboard_component__ = __webpack_require__(333); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__device_component__ = __webpack_require__(335); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__detail_component__ = __webpack_require__(334); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__data_service__ = __webpack_require__(151); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AppModule; }); var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var AppModule = (function () { function AppModule() { } AppModule = __decorate([ __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__["NgModule"])({ declarations: [ __WEBPACK_IMPORTED_MODULE_6__app_component__["a" /* AppComponent */], __WEBPACK_IMPORTED_MODULE_7__chart_component__["a" /* LineChartComponent */], __WEBPACK_IMPORTED_MODULE_8__dashboard_component__["a" /* DashboardComponent */], __WEBPACK_IMPORTED_MODULE_9__device_component__["a" /* DeviceComponent */], __WEBPACK_IMPORTED_MODULE_10__detail_component__["a" /* DetailComponent */] ], imports: [ __WEBPACK_IMPORTED_MODULE_0__angular_platform_browser__["a" /* BrowserModule */], __WEBPACK_IMPORTED_MODULE_2__angular_forms__["a" /* FormsModule */], __WEBPACK_IMPORTED_MODULE_3__angular_http__["a" /* HttpModule */], __WEBPACK_IMPORTED_MODULE_4_ng2_charts_ng2_charts__["ChartsModule"], __WEBPACK_IMPORTED_MODULE_5__app_routing_module__["a" /* AppRoutingModule */] ], providers: [__WEBPACK_IMPORTED_MODULE_11__data_service__["a" /* DataService */]], bootstrap: [__WEBPACK_IMPORTED_MODULE_6__app_component__["a" /* AppComponent */]] }), __metadata('design:paramtypes', []) ], AppModule); return AppModule; }()); //# sourceMappingURL=C:/Users/avans/Documents/Angular/Smarthome-local/mean-app/src/app.module.js.map /***/ }), /***/ 510: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__data_service__ = __webpack_require__(151); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__line_data__ = __webpack_require__(512); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_ng2_charts_ng2_charts__ = __webpack_require__(236); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_ng2_charts_ng2_charts___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_ng2_charts_ng2_charts__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__label_data__ = __webpack_require__(511); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return LineChartComponent; }); var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var LineChartComponent = (function () { function LineChartComponent(dataService) { this.dataService = dataService; // lineChart this.lineChartData = [ { data: [0, 0, 0, 0, 0, 0, 0], label: 'Verbruik' } ]; this.lineChartLabels = ['-1', '-2', '-3', '-4', '-5', '-6', '-7']; this.lineChartOptions = { responsive: true, title: { display: true, position: 'left', text: 'Watt' } }; this.lineChartColors = [ { backgroundColor: 'rgba(148,159,177,0.2)', borderColor: 'rgba(148,159,177,1)', pointBackgroundColor: 'rgba(148,159,177,1)', pointBorderColor: '#fff', pointHoverBackgroundColor: '#fff', pointHoverBorderColor: 'rgba(148,159,177,0.8)' } ]; this.lineChartLegend = true; this.lineChartType = 'line'; } LineChartComponent.prototype.ngOnInit = function () { this.lineChartLabels = this.label.data.slice(); var newDataSet = []; var newLine = { data: this.data.data, label: this.data.label }; newDataSet.push(newLine); this.lineChartData = newDataSet; }; LineChartComponent.prototype.ngOnChanges = function () { if (this.chart.chart != undefined) { this.chart.chart.update(); } }; __decorate([ __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Input"])(), __metadata('design:type', (typeof (_a = typeof __WEBPACK_IMPORTED_MODULE_2__line_data__["a" /* LineData */] !== 'undefined' && __WEBPACK_IMPORTED_MODULE_2__line_data__["a" /* LineData */]) === 'function' && _a) || Object) ], LineChartComponent.prototype, "data", void 0); __decorate([ __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Input"])(), __metadata('design:type', (typeof (_b = typeof __WEBPACK_IMPORTED_MODULE_4__label_data__["a" /* LabelData */] !== 'undefined' && __WEBPACK_IMPORTED_MODULE_4__label_data__["a" /* LabelData */]) === 'function' && _b) || Object) ], LineChartComponent.prototype, "label", void 0); __decorate([ __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["ViewChild"])(__WEBPACK_IMPORTED_MODULE_3_ng2_charts_ng2_charts__["BaseChartDirective"]), __metadata('design:type', (typeof (_c = typeof __WEBPACK_IMPORTED_MODULE_3_ng2_charts_ng2_charts__["BaseChartDirective"] !== 'undefined' && __WEBPACK_IMPORTED_MODULE_3_ng2_charts_ng2_charts__["BaseChartDirective"]) === 'function' && _c) || Object) ], LineChartComponent.prototype, "chart", void 0); LineChartComponent = __decorate([ __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Component"])({ selector: 'line-chart', template: __webpack_require__(671) }), __metadata('design:paramtypes', [(typeof (_d = typeof __WEBPACK_IMPORTED_MODULE_1__data_service__["a" /* DataService */] !== 'undefined' && __WEBPACK_IMPORTED_MODULE_1__data_service__["a" /* DataService */]) === 'function' && _d) || Object]) ], LineChartComponent); return LineChartComponent; var _a, _b, _c, _d; }()); //# sourceMappingURL=C:/Users/avans/Documents/Angular/Smarthome-local/mean-app/src/chart.component.js.map /***/ }), /***/ 511: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return LabelData; }); var LabelData = (function () { function LabelData() { } return LabelData; }()); //# sourceMappingURL=C:/Users/avans/Documents/Angular/Smarthome-local/mean-app/src/label-data.js.map /***/ }), /***/ 512: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return LineData; }); var LineData = (function () { function LineData() { } return LineData; }()); //# sourceMappingURL=C:/Users/avans/Documents/Angular/Smarthome-local/mean-app/src/line-data.js.map /***/ }), /***/ 513: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return environment; }); // The file contents for the current environment will overwrite these during build. // The build system defaults to the dev environment which uses `environment.ts`, but if you do // `ng build --env=prod` then `environment.prod.ts` will be used instead. // The list of which env maps to which file can be found in `angular-cli.json`. var environment = { production: false }; //# sourceMappingURL=C:/Users/avans/Documents/Angular/Smarthome-local/mean-app/src/environment.js.map /***/ }), /***/ 669: /***/ (function(module, exports) { module.exports = "" /***/ }), /***/ 670: /***/ (function(module, exports) { module.exports = "
\r\n\r\n \r\n\r\n
\r\n\r\n
\r\n
\r\n

Energiemeter Avans

\r\n
\r\n
\r\n\r\n
\r\n\r\n
\r\n \r\n
\r\n\r\n
\r\n" /***/ }), /***/ 671: /***/ (function(module, exports) { module.exports = "
\r\n\r\n
" /***/ }), /***/ 672: /***/ (function(module, exports) { module.exports = "
\r\n\t\r\n
" /***/ }), /***/ 673: /***/ (function(module, exports) { module.exports = "\r\n\r\n\t
\r\n\t\t

{{name}}

\r\n\t
\r\n\r\n\t
\r\n\t\t
\r\n\t\t\tHuidig opgenomen vermogen: {{hov}} kW
\r\n\t\t\tHuidig teruggeleverd vermogen: {{htv}} kW
\r\n\t\t\tHuidig tarief: {{ht}}
\r\n\t\t\tTotale kosten: €{{money}}\r\n\t\t
\r\n\t
\r\n\r\n\r\n\t
\r\n\t\t
\r\n\t\t\t\r\n\t\t
\r\n\t
\r\n\r\n\t
\r\n\t\t\r\n\t
\r\n\r\n\t
\r\n\t\t\r\n\t
\r\n\r\n\t
\r\n\t\t\r\n\t
\r\n\r\n
\r\n" /***/ }), /***/ 674: /***/ (function(module, exports) { module.exports = "
\r\n\r\n\r\n\r\n
" /***/ }), /***/ 700: /***/ (function(module, exports, __webpack_require__) { module.exports = __webpack_require__(390); /***/ }) },[700]); //# sourceMappingURL=main.bundle.map