(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-dashboard-dashboard-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/dashboard/dashboard.component.html":
/*!************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/dashboard/dashboard.component.html ***!
  \************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div class=\"row\">\r\n    <div class=\"col-lg-12\">\r\n        <div class=\"row\">\r\n            <div class=\"col-lg-6 col-md-12\" *ngIf=\"movimentacaoDeProdutoPorDia\">\r\n                <app-gra-movimentacao-prod [showExport]=\"false\"></app-gra-movimentacao-prod>\r\n            </div>\r\n            <div class=\"col-lg-6 col-md-12\" *ngIf=\"movimentacaoDeVeiculo\">\r\n                <app-gra-movimentacao-vehiculo [showExport]=\"false\"></app-gra-movimentacao-vehiculo>\r\n            </div>\r\n            <div class=\"col-lg-6 col-md-12\" *ngIf=\"movimentacaoDeVeiculoHorario\">\r\n                <app-gra-movimentacao-vehiculo-horario [showExport]=\"false\"></app-gra-movimentacao-vehiculo-horario>\r\n            </div>\r\n            <div class=\"col-lg-6 col-md-12\" *ngIf=\"situacaoVeiculo\">\r\n                <app-gra-situacao-vehiculo [showExport]=\"false\"></app-gra-situacao-vehiculo>\r\n            </div>\r\n            <div class=\"col-lg-6 col-md-12\" *ngIf=\"tempoOperacao\">\r\n                <app-gra-tempo-operacao [showExport]=\"false\"></app-gra-tempo-operacao>\r\n            </div>\r\n            <div class=\"col-lg-6 col-md-12\" *ngIf=\"linhaPorHora\">\r\n                <app-gra-linha-por-hora [showExport]=\"false\"></app-gra-linha-por-hora>\r\n            </div>\r\n            <div class=\"col-lg-6 col-md-12\" *ngIf=\"linhaPorDia\">\r\n                <app-gra-linha-por-dia [showExport]=\"false\"></app-gra-linha-por-dia>\r\n            </div>\r\n            <div class=\"col-lg-6 col-md-12\" *ngIf=\"linhaPorMes\">\r\n                <app-gra-linha-por-mes [showExport]=\"false\"></app-gra-linha-por-mes>\r\n            </div>\r\n            <div class=\"col-lg-6 col-md-12\" *ngIf=\"barraPorHora\">\r\n                <app-gra-barra-por-hora [showExport]=\"false\"></app-gra-barra-por-hora>\r\n            </div>\r\n            <div class=\"col-lg-6 col-md-12\" *ngIf=\"saldosPorDia\">\r\n                <app-gra-saldos-por-dia [showExport]=\"false\"></app-gra-saldos-por-dia>\r\n            </div>\r\n            <div class=\"col-lg-6 col-md-12\" *ngIf=\"graBarraPorMes\">\r\n                <app-gra-barra-mes [showExport]=\"false\"></app-gra-barra-mes>\r\n            </div>\r\n            <div class=\"col-lg-6 col-md-12\" *ngIf=\"graBarraPorDia\">\r\n                <app-gra-barra-dia [showExport]=\"false\"></app-gra-barra-dia>\r\n            </div>\r\n            <div class=\"col-lg-6 col-md-12\" *ngIf=\"indicadorDePerformanceLinhaBarra\">\r\n                <app-gra-barra-ageo [showExport]=\"false\"></app-gra-barra-ageo>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</div>\r\n\r\n<div class=\"clearfix\">&nbsp;</div>\r\n");

/***/ }),

/***/ "./src/app/pages/dashboard/dashboard.component.ts":
/*!********************************************************!*\
  !*** ./src/app/pages/dashboard/dashboard.component.ts ***!
  \********************************************************/
/*! exports provided: DashboardComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DashboardComponent", function() { return DashboardComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_app_settings__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/app.settings */ "./src/app/app.settings.ts");
/* harmony import */ var _theme_components_menu_menu_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../theme/components/menu/menu.service */ "./src/app/theme/components/menu/menu.service.ts");
/* harmony import */ var _login_login_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../login/login.service */ "./src/app/pages/login/login.service.ts");
var __decorate = (undefined && undefined.__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 = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
    return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
    function verb(n) { return function (v) { return step([n, v]); }; }
    function step(op) {
        if (f) throw new TypeError("Generator is already executing.");
        while (_) try {
            if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
            if (y = 0, t) op = [op[0] & 2, t.value];
            switch (op[0]) {
                case 0: case 1: t = op; break;
                case 4: _.label++; return { value: op[1], done: false };
                case 5: _.label++; y = op[1]; op = [0]; continue;
                case 7: op = _.ops.pop(); _.trys.pop(); continue;
                default:
                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                    if (t[2]) _.ops.pop();
                    _.trys.pop(); continue;
            }
            op = body.call(thisArg, _);
        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
    }
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};





var DashboardComponent = /** @class */ (function () {
    function DashboardComponent(router, loginService, appSettings) {
        this.router = router;
        this.loginService = loginService;
        this.appSettings = appSettings;
        this.movimentacaoDeProdutoPorDia = false;
        this.movimentacaoDeVeiculo = false;
        this.movimentacaoDeVeiculoHorario = false;
        this.situacaoVeiculo = false;
        this.tempoOperacao = false;
        this.linhaPorHora = false;
        this.linhaPorDia = false;
        this.linhaPorMes = false;
        this.barraPorHora = false;
        this.saldosPorDia = false;
        this.graBarraPorMes = false;
        this.graBarraPorDia = false;
        this.indicadorDePerformanceLinhaBarra = false;
    }
    DashboardComponent.prototype.ngOnInit = function () {
        return __awaiter(this, void 0, void 0, function () {
            var _this = this;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0: return [4 /*yield*/, this.appSettings.getFavoritos()];
                    case 1:
                        _a.sent();
                        this.appSettings.settings.favoritos.filter(function (g) { return g.grafico === 'S'; }).map(function (grafic) {
                            if (grafic.tipoGrafico === "movimentacaoProdutoDia") {
                                _this.movimentacaoDeProdutoPorDia = true;
                            }
                            if (grafic.tipoGrafico === "movimentacaoVehiculos") {
                                _this.movimentacaoDeVeiculo = true;
                            }
                            if (grafic.tipoGrafico === "movimentacaoDeVeiculoHorario") {
                                _this.movimentacaoDeVeiculoHorario = true;
                            }
                            if (grafic.tipoGrafico === "situacaoVeículo") {
                                _this.situacaoVeiculo = true;
                            }
                            if (grafic.tipoGrafico === "tempoOperacao") {
                                _this.tempoOperacao = true;
                            }
                            if (grafic.tipoGrafico === "linhaPorHora") {
                                _this.linhaPorHora = true;
                            }
                            if (grafic.tipoGrafico === "linhaPorDia") {
                                _this.linhaPorDia = true;
                            }
                            if (grafic.tipoGrafico === "linhaPorMes") {
                                _this.linhaPorMes = true;
                            }
                            if (grafic.tipoGrafico === "barraPorHora") {
                                _this.barraPorHora = true;
                            }
                            if (grafic.tipoGrafico === "saldosPorDia") {
                                _this.saldosPorDia = true;
                            }
                            if (grafic.tipoGrafico === "graBarraMes") {
                                _this.graBarraPorMes = true;
                            }
                            if (grafic.tipoGrafico === "graBarraPorDia") {
                                _this.graBarraPorDia = true;
                            }
                            if (grafic.tipoGrafico === "indicadorDePerformanceBarraLinha") {
                                _this.indicadorDePerformanceLinhaBarra = true;
                            }
                        });
                        return [2 /*return*/];
                }
            });
        });
    };
    DashboardComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_4__["LoginService"] },
        { type: app_app_settings__WEBPACK_IMPORTED_MODULE_2__["AppSettings"] }
    ]; };
    DashboardComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-dashboard",
            template: __importDefault(__webpack_require__(/*! raw-loader!./dashboard.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/dashboard/dashboard.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            providers: [_theme_components_menu_menu_service__WEBPACK_IMPORTED_MODULE_3__["MenuService"]]
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_4__["LoginService"],
            app_app_settings__WEBPACK_IMPORTED_MODULE_2__["AppSettings"]])
    ], DashboardComponent);
    return DashboardComponent;
}());



/***/ }),

/***/ "./src/app/pages/dashboard/dashboard.module.ts":
/*!*****************************************************!*\
  !*** ./src/app/pages/dashboard/dashboard.module.ts ***!
  \*****************************************************/
/*! exports provided: routes, DashboardModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "routes", function() { return routes; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DashboardModule", function() { return DashboardModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _dashboard_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./dashboard.component */ "./src/app/pages/dashboard/dashboard.component.ts");
/* harmony import */ var _shared_shared_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../shared/shared.module */ "./src/app/shared/shared.module.ts");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
var __decorate = (undefined && undefined.__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 __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};




var routes = [
    {
        path: '', component: _dashboard_component__WEBPACK_IMPORTED_MODULE_1__["DashboardComponent"], pathMatch: 'full',
        data: { breadcrumb: "" }
    }
];
var DashboardModule = /** @class */ (function () {
    function DashboardModule() {
    }
    DashboardModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [
                _shared_shared_module__WEBPACK_IMPORTED_MODULE_2__["SharedModule"],
                _angular_router__WEBPACK_IMPORTED_MODULE_3__["RouterModule"].forChild(routes)
            ],
            declarations: [
                _dashboard_component__WEBPACK_IMPORTED_MODULE_1__["DashboardComponent"]
            ]
        })
    ], DashboardModule);
    return DashboardModule;
}());



/***/ })

}]);
//# sourceMappingURL=app-pages-dashboard-dashboard-module.js.map