(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-especificos-cattalini-relatorios-relatorio-gerencial-relatorio-gerencial-module"],{

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<app-menu-command-bar [sisFormularioId]=\"constantes.sisFormularioId\" [botoesComando]=\"constantes.listaForm\">\n</app-menu-command-bar>\n\n<div class=\"row\">\n    <div class=\"col-lg-12\">\n        <div class=\"section-comand-bar\">\n            <div class=\"\">\n                <app-form-legenda></app-form-legenda>\n                <div class=\"card-body widget-body\">\n                    <form class=\"form\" #descargas=\"ngForm\" (ngSubmit)=\"onSubmit(descargas)\">\n                        <app-validacoes></app-validacoes>\n                        <div class=\"row\">\n                            <div class=\"col-lg-8\">\n                                <div class=\"row\">\n                                    <div class=\"col-lg-6\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"periodoDe\"\n                                                class=\"required\">{{\"labels.periodoDe\" | translate }}</label>\n                                            <app-data id=\"periodoDe\" name=\"periodoDe\" [(ngModel)]=\"data.dataInicial\" autofocus\n                                                class=\"dataHora\" [formatDateTime]=\"mascara.getFormatData\"\n                                                required=\"true\">\n                                            </app-data>\n                                        </div>\n                                    </div>\n                                    <div class=\"col-lg-6\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"ate\" class=\"required\">{{\"labels.ate\" | translate}}</label>\n                                            <app-data id=\"ate\" name=\"ate\" maxlength=\"1\" [(ngModel)]=\"data.dataFinal\"\n                                                class=\"dataHora\" [formatDateTime]=\"mascara.getFormatData\"\n                                                required=\"true\">\n                                            </app-data>\n                                        </div>\n                                    </div>\n                                </div>\n\n                                <app-card-container tituloCard=\"saldo\">\n                                    <div class=\"row\">\n                                        <div class=\"col-md-6 col-sm-12\">\n                                            <div class=\"form-group\">\n                                                <div class=\"custom-control custom-radio custom-control-inline\">\n                                                    <input id=\"radioDefault\"\n                                                           type=\"radio\"\n                                                           name=\"radioDefault\"\n                                                           class=\"custom-control-input radio-success\"\n                                                           value=\"1\"\n                                                           [(ngModel)]=\"data.tipoSaldo\"/> \n                                                    <label class=\"custom-control-label\"\n                                                        for=\"radioDefault\">{{ 'labels.contabil' | translate }}</label>\n                                                </div>\n                                                <div class=\"custom-control custom-radio custom-control-inline\">\n                                                    <input id=\"radioPrimary\"\n                                                            type=\"radio\"\n                                                            name=\"radioPrimary\"\n                                                            class=\"custom-control-input radio-success\"\n                                                            value=\"2\"\n                                                            [(ngModel)]=\"data.tipoSaldo\"/>\n                                                    <label class=\"custom-control-label\"\n                                                        for=\"radioPrimary\">{{ 'labels.fiscal' | translate }}</label>\n                                                </div>\n                                            </div>\n                                        </div>\n                                    </div>\n                                </app-card-container>\n                                \n                                <app-card-container>\n                                    <div class=\"custom-control custom-checkbox\">\n                                        <input id=\"todos\"\n                                            name=\"todos\"\n                                            [ngModel]=\"data.todos === 'S'\"\n                                            (ngModelChange)=\"selecionarTodos($event)\"\n                                            class=\"custom-control-input checkbox-success\"\n                                            type=\"checkbox\">\n                                        <label class=\"custom-control-label\" for=\"todos\">\n                                            {{'labels.todos' | translate}}\n                                        </label>\n                                    </div>\n\n                                    <div class=\"custom-control custom-checkbox\">\n                                        <input id=\"navios\"\n                                            name=\"navios\"\n                                            [ngModel]=\"data.navios === 'S'\"\n                                            (ngModelChange)=\"data.navios = $event ? 'S' : 'N'\"\n                                            class=\"custom-control-input checkbox-success\"\n                                            type=\"checkbox\"\n                                            (change)=\"changeSelecaoBanda($event, '02')\">\n                                        <label class=\"custom-control-label\" for=\"navios\">\n                                            {{'labels.naviosPosicaoAte7Dias' | translate}}\n                                        </label>\n                                    </div>\n\n                                    <div class=\"custom-control custom-checkbox\">\n                                        <input id=\"estoque\"\n                                            name=\"estoque\"\n                                            [ngModel]=\"data.estoque === 'S'\"\n                                            (ngModelChange)=\"data.estoque = $event ? 'S' : 'N'\"\n                                            class=\"custom-control-input checkbox-success\"\n                                            type=\"checkbox\"\n                                            (change)=\"changeSelecaoBanda($event, '03')\">\n                                        <label class=\"custom-control-label\" for=\"estoque\">\n                                            {{'labels.estoque' | translate}}\n                                        </label>\n                                    </div>\n\n                                    <div class=\"custom-control custom-checkbox\">\n                                        <input id=\"movimentosGrupo\"\n                                            name=\"movimentosGrupo\"\n                                            [ngModel]=\"data.movimentosGrupo === 'S'\"\n                                            (ngModelChange)=\"data.movimentosGrupo = $event ? 'S' : 'N'\"\n                                            class=\"custom-control-input checkbox-success\"\n                                            type=\"checkbox\"\n                                            (change)=\"changeSelecaoBanda($event, '04')\">\n                                        <label class=\"custom-control-label\" for=\"movimentosGrupo\">\n                                            {{'labels.movimentosGrupo' | translate}}\n                                        </label>\n                                    </div>\n\n                                    <div class=\"custom-control custom-checkbox\">\n                                        <input id=\"movimentosModal\"\n                                            name=\"movimentosModal\"\n                                            [ngModel]=\"data.movimentosModal === 'S'\"\n                                            (ngModelChange)=\"data.movimentosModal = $event ? 'S' : 'N'\"\n                                            class=\"custom-control-input checkbox-success\"\n                                            type=\"checkbox\"\n                                            (change)=\"changeSelecaoBanda($event, '05')\">\n                                        <label class=\"custom-control-label\" for=\"movimentosModal\">\n                                            {{'labels.movimentosModal' | translate}}\n                                        </label>\n                                    </div>\n\n                                    <div class=\"custom-control custom-checkbox\">\n                                        <input id=\"faturamento\"\n                                            name=\"faturamento\"\n                                            [ngModel]=\"data.faturamento === 'S'\"\n                                            (ngModelChange)=\"data.faturamento = $event ? 'S' : 'N'\"\n                                            class=\"custom-control-input checkbox-success\"\n                                            type=\"checkbox\"\n                                            (change)=\"changeSelecaoBanda($event, '06')\">\n                                        <label class=\"custom-control-label\" for=\"faturamento\">\n                                            {{'labels.faturamento' | translate}}\n                                        </label>\n                                    </div>\n\n                                    <div class=\"custom-control custom-checkbox\">\n                                        <input id=\"naviosOperandoPeriodo\"\n                                            name=\"naviosOperandoPeriodo\"\n                                            [ngModel]=\"data.naviosOperandoPeriodo === 'S'\"\n                                            (ngModelChange)=\"data.naviosOperandoPeriodo = $event ? 'S' : 'N'\"\n                                            class=\"custom-control-input checkbox-success\"\n                                            type=\"checkbox\"\n                                            (change)=\"changeSelecaoBanda($event, '07')\">\n                                        <label class=\"custom-control-label\" for=\"naviosOperandoPeriodo\">\n                                            {{'labels.naviosOperandoNoPeriodo' | translate}}\n                                        </label>\n                                    </div>\n\n                                    <div class=\"custom-control custom-checkbox\">\n                                        <input id=\"naviosAguardandoPeriodo\"\n                                            name=\"naviosAguardandoPeriodo\"\n                                            [ngModel]=\"data.naviosAguardandoPeriodo === 'S'\"\n                                            (ngModelChange)=\"data.naviosAguardandoPeriodo = $event ? 'S' : 'N'\"\n                                            class=\"custom-control-input checkbox-success\"\n                                            type=\"checkbox\"\n                                            (change)=\"changeSelecaoBanda($event, '08')\">\n                                        <label class=\"custom-control-label\" for=\"naviosAguardandoPeriodo\">\n                                            {{'labels.naviosAguardandoNoPeriodo' | translate}}\n                                        </label>\n                                    </div>\n\n                                    <div class=\"custom-control custom-checkbox\">\n                                        <input id=\"resumoNaviosMes\"\n                                            name=\"resumoNaviosMes\"\n                                            [ngModel]=\"data.resumoNaviosMes === 'S'\"\n                                            (ngModelChange)=\"data.resumoNaviosMes = $event ? 'S' : 'N'\"\n                                            class=\"custom-control-input checkbox-success\"\n                                            type=\"checkbox\"\n                                            (change)=\"changeSelecaoBanda($event, '09')\">\n                                        <label class=\"custom-control-label\" for=\"resumoNaviosMes\">\n                                            {{'labels.resumoNaviosMes' | translate}}\n                                        </label>\n                                    </div>\n\n                                    <div class=\"custom-control custom-checkbox\">\n                                        <input id=\"compromissoPool\"\n                                            name=\"compromissoPool\"\n                                            [ngModel]=\"data.compromissoPool === 'S'\"\n                                            (ngModelChange)=\"data.compromissoPool = $event ? 'S' : 'N'\"\n                                            class=\"custom-control-input checkbox-success\"\n                                            type=\"checkbox\"\n                                            (change)=\"changeSelecaoBanda($event, '10')\">\n                                        <label class=\"custom-control-label\" for=\"compromissoPool\">\n                                            {{'labels.compromissoPool' | translate}}\n                                        </label>\n                                    </div>\n\n                                    <div class=\"custom-control custom-checkbox\">\n                                        <input id=\"previsaoFaturamento\"\n                                            name=\"previsaoFaturamento\"\n                                            [ngModel]=\"data.previsaoFaturamento === 'S'\"\n                                            (ngModelChange)=\"data.previsaoFaturamento = $event ? 'S' : 'N'\"\n                                            class=\"custom-control-input checkbox-success\"\n                                            type=\"checkbox\"\n                                            (change)=\"changeSelecaoBanda($event, '11')\">\n                                        <label class=\"custom-control-label\" for=\"previsaoFaturamento\">\n                                            {{'labels.previsaoFaturamento' | translate}}\n                                        </label>\n                                    </div>\n                                </app-card-container>\n                            </div>\n                        </div>\n                        <div class=\"form-group mt-4\">\n                            <button class=\"btn btn-success mr-2\" type=\"submit\">\n                                {{ 'buttons.gerarRelatorio' | translate }}\n                            </button>\n                            <button class=\"btn btn-success mr-2\" (click)=\"export(descargas)\" type=\"button\">{{\n                                'buttons.exportarExcel' | translate }}\n                            </button>\n                            <button class=\"btn btn-success mr-2\" (click)=\"sendMail(descargas)\" type=\"button\">{{\n                                'buttons.enviarEmail' | translate }}\n                            </button>\n                        </div>\n                    </form>\n                </div>\n            </div>\n        </div>\n    </div>\n</div>\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>\n<app-email [reportId]=\"constantes.reportId\"\n           [titulo]=\"constantes.reportTitulo.titulo\"\n           [subTitulo]=\"constantes.reportTitulo.subTitulo\"\n           [data]=\"constantes.paramRelatorio\"></app-email>\n");

/***/ }),

/***/ "./src/app/pages/especificos/cattalini/relatorios/relatorio-gerencial/relatorio-gerencial-form/relatorio-gerencial-form.component.ts":
/*!*******************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cattalini/relatorios/relatorio-gerencial/relatorio-gerencial-form/relatorio-gerencial-form.component.ts ***!
  \*******************************************************************************************************************************************/
/*! exports provided: RelatorioGerencialFormComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RelatorioGerencialFormComponent", function() { return RelatorioGerencialFormComponent; });
/* 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 _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _relatorio_gerencial_model__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../relatorio-gerencial.model */ "./src/app/pages/especificos/cattalini/relatorios/relatorio-gerencial/relatorio-gerencial.model.ts");
/* harmony import */ var _relatorio_gerencial_constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../relatorio-gerencial.constants */ "./src/app/pages/especificos/cattalini/relatorios/relatorio-gerencial/relatorio-gerencial.constants.ts");
/* harmony import */ var _config_enumerables__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _login_login_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../../login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _shared_services_funcoes_excel_excel_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../../../../shared/services/funcoes/excel/excel.service */ "./src/app/shared/services/funcoes/excel/excel.service.ts");
/* harmony import */ var _shared_components_report_report_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../../../../shared/components/report/report.service */ "./src/app/shared/components/report/report.service.ts");
/* harmony import */ var app_pages_login_login_model__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! app/pages/login/login.model */ "./src/app/pages/login/login.model.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
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 __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};














var RelatorioGerencialFormComponent = /** @class */ (function (_super) {
    __extends(RelatorioGerencialFormComponent, _super);
    function RelatorioGerencialFormComponent(router, messageService, permissoesUtils, funcoesService, loginService, excelService, reportService) {
        var _this = _super.call(this, new _relatorio_gerencial_constants__WEBPACK_IMPORTED_MODULE_7__["RelatorioGerencialConstants"](), funcoesService) || this;
        _this.router = router;
        _this.messageService = messageService;
        _this.permissoesUtils = permissoesUtils;
        _this.funcoesService = funcoesService;
        _this.loginService = loginService;
        _this.excelService = excelService;
        _this.reportService = reportService;
        _this.data = new _relatorio_gerencial_model__WEBPACK_IMPORTED_MODULE_6__["RelatorioGerencial"]();
        _this.mensagens = [];
        _this.constantes = new _relatorio_gerencial_constants__WEBPACK_IMPORTED_MODULE_7__["RelatorioGerencialConstants"]();
        _this.dadosLogin = new app_pages_login_login_model__WEBPACK_IMPORTED_MODULE_13__["Login"]();
        _this.target = _this.funcoesService.getTargetLocation();
        _this.mascara = new _config_enumerables__WEBPACK_IMPORTED_MODULE_8__["Mascaras"]();
        _this.export = function (form) {
            if (form.invalid) {
                _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_4__["EventEmitterService"].get("formError").emit(form);
                return;
            }
            _this.printParams();
            _this.reportService.exportEspecificos(_this.constantes.sisFormularioId, _this.constantes.paramRelatorio).subscribe(function (resp) {
                var headerDictionary = {};
                var options = {
                    headerJsonKeys: true,
                    headerDictionary: headerDictionary
                };
                // const dados = Object.values(resp[0]).filter(r => r !== null);
                _this.excelService.exportAsExcelFile(resp, _this.messageService.getTranslates("titles", "relatorioGerencial"), options);
            });
        };
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        _this.dadosLogin = loginService.getLogin();
        return _this;
    }
    RelatorioGerencialFormComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () { }, function () { return _this.permissoesUtils.back(); }, true);
    };
    RelatorioGerencialFormComponent.prototype.selecionarTodos = function (event) {
        if (event) {
            this.data.todos = "S";
            this.data.navios = "S";
            this.data.estoque = "S";
            this.data.movimentosGrupo = "S";
            this.data.movimentosModal = "S";
            this.data.faturamento = "S";
            this.data.naviosOperandoPeriodo = "S";
            this.data.naviosAguardandoPeriodo = "S";
            this.data.resumoNaviosMes = "S";
            this.data.compromissoPool = "S";
            this.data.previsaoFaturamento = "S";
            this.data.codigosBandasSelecionadas = [];
            this.data.codigosBandasSelecionadas.push("02", "03", "04", "05", "06", "07", "08", "09", "10", "11");
        }
        else {
            this.data.todos = "N";
            this.data.navios = "N";
            this.data.estoque = "N";
            this.data.movimentosGrupo = "N";
            this.data.movimentosModal = "N";
            this.data.faturamento = "N";
            this.data.naviosOperandoPeriodo = "N";
            this.data.naviosAguardandoPeriodo = "N";
            this.data.resumoNaviosMes = "N";
            this.data.compromissoPool = "N";
            this.data.previsaoFaturamento = "N";
            this.data.codigosBandasSelecionadas = [];
        }
    };
    RelatorioGerencialFormComponent.prototype.changeSelecaoBanda = function (event, banda) {
        if (event.target.checked) {
            this.data.codigosBandasSelecionadas.push(banda);
        }
        else {
            this.data.codigosBandasSelecionadas = this.data.codigosBandasSelecionadas.filter(function (b) { return b !== banda; });
        }
        this.data.todos = this.data.codigosBandasSelecionadas.length === 10 ? "S" : "N";
    };
    RelatorioGerencialFormComponent.prototype.onSubmit = function (form) {
        if (form.invalid) {
            _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_4__["EventEmitterService"].get("formError").emit(form);
            this.funcoesService.backToTop();
            return;
        }
        this.constantes.reportTitulo.subTitulo = '';
        this.printParams();
        this.print(null, true);
    };
    RelatorioGerencialFormComponent.prototype.getCodigosBandasSelecionadas = function () {
        this.data.codigosBandasSelecionadas = [];
        if (this.data.todos === "S") {
            this.data.codigosBandasSelecionadas.push("02", "03", "04", "05", "06", "07", "08", "09", "10", "11");
        }
        else {
            if (this.data.navios === "S") {
                this.data.codigosBandasSelecionadas.push("02");
            }
            if (this.data.estoque === "S") {
                this.data.codigosBandasSelecionadas.push("03");
            }
            if (this.data.movimentosGrupo === "S") {
                this.data.codigosBandasSelecionadas.push("04");
            }
            if (this.data.movimentosModal === "S") {
                this.data.codigosBandasSelecionadas.push("05");
            }
            if (this.data.faturamento === "S") {
                this.data.codigosBandasSelecionadas.push("06");
            }
            if (this.data.naviosOperandoPeriodo === "S") {
                this.data.codigosBandasSelecionadas.push("07");
            }
            if (this.data.naviosAguardandoPeriodo === "S") {
                this.data.codigosBandasSelecionadas.push("08");
            }
            if (this.data.resumoNaviosMes === "S") {
                this.data.codigosBandasSelecionadas.push("09");
            }
            if (this.data.compromissoPool === "S") {
                this.data.codigosBandasSelecionadas.push("10");
            }
            if (this.data.previsaoFaturamento === "S") {
                this.data.codigosBandasSelecionadas.push("11");
            }
        }
    };
    RelatorioGerencialFormComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    RelatorioGerencialFormComponent.prototype.onCancelar = function () {
        this.data = new _relatorio_gerencial_model__WEBPACK_IMPORTED_MODULE_6__["RelatorioGerencial"]();
    };
    RelatorioGerencialFormComponent.prototype.printParams = function () {
        var bandas = this.data.codigosBandasSelecionadas.join(",");
        this.constantes.paramRelatorio = {
            filialId: this.dadosLogin.filialId,
            colaboradorId: this.dadosLogin.colaboradorId,
            dataInicial: this.data.dataInicial,
            dataFinal: this.data.dataFinal,
            tipoSaldo: this.data.tipoSaldo,
            bandasSelecionadas: bandas
        };
    };
    RelatorioGerencialFormComponent.prototype.sendMail = function (form) {
        if (form.invalid) {
            _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_4__["EventEmitterService"].get("formError").emit(form);
            return;
        }
        this.printParams();
        _super.prototype.sendMail.call(this, this.constantes, true);
    };
    RelatorioGerencialFormComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_10__["PermissoesUtilsService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_9__["LoginService"] },
        { type: _shared_services_funcoes_excel_excel_service__WEBPACK_IMPORTED_MODULE_11__["ExcelService"] },
        { type: _shared_components_report_report_service__WEBPACK_IMPORTED_MODULE_12__["ReportService"] }
    ]; };
    RelatorioGerencialFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-relatorio-gerencial-form",
            template: __importDefault(__webpack_require__(/*! raw-loader!./relatorio-gerencial-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cattalini/relatorios/relatorio-gerencial/relatorio-gerencial-form/relatorio-gerencial-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_10__["PermissoesUtilsService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_9__["LoginService"],
            _shared_services_funcoes_excel_excel_service__WEBPACK_IMPORTED_MODULE_11__["ExcelService"],
            _shared_components_report_report_service__WEBPACK_IMPORTED_MODULE_12__["ReportService"]])
    ], RelatorioGerencialFormComponent);
    return RelatorioGerencialFormComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/cattalini/relatorios/relatorio-gerencial/relatorio-gerencial.constants.ts":
/*!*************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cattalini/relatorios/relatorio-gerencial/relatorio-gerencial.constants.ts ***!
  \*************************************************************************************************************/
/*! exports provided: RelatorioGerencialConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RelatorioGerencialConstants", function() { return RelatorioGerencialConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var RelatorioGerencialConstants = /** @class */ (function () {
    function RelatorioGerencialConstants() {
        this.sisFormularioId = 125037;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.consulta" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.permissoes" }
        ];
        this.sisSistemaId = "REL";
        this.nomeForm = "titles.relatorioGerencial";
        this.reportId = "CAT0018";
        this.reportTitulo = { "titulo": "Relatório Gerencial", "subTitulo": "" };
        this.listaForm = [
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' }
        ];
    }
    return RelatorioGerencialConstants;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cattalini/relatorios/relatorio-gerencial/relatorio-gerencial.model.ts":
/*!*********************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cattalini/relatorios/relatorio-gerencial/relatorio-gerencial.model.ts ***!
  \*********************************************************************************************************/
/*! exports provided: RelatorioGerencial */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RelatorioGerencial", function() { return RelatorioGerencial; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var RelatorioGerencial = /** @class */ (function () {
    function RelatorioGerencial() {
        this.dataInicial = new Date(),
            this.dataFinal = new Date(),
            this.tipoSaldo = "1",
            this.todos = "S";
        this.navios = "S";
        this.estoque = "S";
        this.movimentosGrupo = "S";
        this.movimentosModal = "S";
        this.faturamento = "S";
        this.naviosOperandoPeriodo = "S";
        this.naviosAguardandoPeriodo = "S";
        this.resumoNaviosMes = "S";
        this.compromissoPool = "S";
        this.previsaoFaturamento = "S";
        this.codigosBandasSelecionadas = ["02", "03", "04", "05", "06", "07", "08", "09", "10", "11"];
    }
    return RelatorioGerencial;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cattalini/relatorios/relatorio-gerencial/relatorio-gerencial.module.ts":
/*!**********************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cattalini/relatorios/relatorio-gerencial/relatorio-gerencial.module.ts ***!
  \**********************************************************************************************************/
/*! exports provided: RelatorioGerencialModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RelatorioGerencialModule", function() { return RelatorioGerencialModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _shared_shared_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../shared/shared.module */ "./src/app/shared/shared.module.ts");
/* harmony import */ var _relatorio_gerencial_form_relatorio_gerencial_form_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./relatorio-gerencial-form/relatorio-gerencial-form.component */ "./src/app/pages/especificos/cattalini/relatorios/relatorio-gerencial/relatorio-gerencial-form/relatorio-gerencial-form.component.ts");
/* harmony import */ var _relatorio_gerencial_routing_module__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./relatorio-gerencial.routing.module */ "./src/app/pages/especificos/cattalini/relatorios/relatorio-gerencial/relatorio-gerencial.routing.module.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 __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};




var RelatorioGerencialModule = /** @class */ (function () {
    function RelatorioGerencialModule() {
    }
    RelatorioGerencialModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"], _relatorio_gerencial_routing_module__WEBPACK_IMPORTED_MODULE_3__["RelatorioGerencialRoutingModule"]],
            declarations: [_relatorio_gerencial_form_relatorio_gerencial_form_component__WEBPACK_IMPORTED_MODULE_2__["RelatorioGerencialFormComponent"]]
        })
    ], RelatorioGerencialModule);
    return RelatorioGerencialModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cattalini/relatorios/relatorio-gerencial/relatorio-gerencial.routing.module.ts":
/*!******************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cattalini/relatorios/relatorio-gerencial/relatorio-gerencial.routing.module.ts ***!
  \******************************************************************************************************************/
/*! exports provided: RelatorioGerencialRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RelatorioGerencialRoutingModule", function() { return RelatorioGerencialRoutingModule; });
/* 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 _config_enumerables__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _relatorio_gerencial_form_relatorio_gerencial_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./relatorio-gerencial-form/relatorio-gerencial-form.component */ "./src/app/pages/especificos/cattalini/relatorios/relatorio-gerencial/relatorio-gerencial-form/relatorio-gerencial-form.component.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 __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};




var MRoutes = [
    {
        path: "",
        component: _relatorio_gerencial_form_relatorio_gerencial_form_component__WEBPACK_IMPORTED_MODULE_3__["RelatorioGerencialFormComponent"],
        data: {
            breadcrumb: "relatorioGerencial",
            formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index }
        }
    },
];
var RelatorioGerencialRoutingModule = /** @class */ (function () {
    function RelatorioGerencialRoutingModule() {
    }
    RelatorioGerencialRoutingModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"].forChild(MRoutes)],
            exports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"]],
        })
    ], RelatorioGerencialRoutingModule);
    return RelatorioGerencialRoutingModule;
}());



/***/ })

}]);
//# sourceMappingURL=app-pages-especificos-cattalini-relatorios-relatorio-gerencial-relatorio-gerencial-module.js.map