(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-relatorios-anp-volume-mensal-anp-volume-mensal-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/relatorios/anp-volume-mensal/anp-volume-mensal-filter/anp-volume-mensal-filter.component.html":
/*!***********************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/relatorios/anp-volume-mensal/anp-volume-mensal-filter/anp-volume-mensal-filter.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=\"modal fade\" id=\"anp-volume-mensal-filter-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\r\n    <div class=\"uni-modal-dialog-md-40\">\r\n        <div class=\"modal-content\">\r\n            <div class=\"modal-header\">\r\n                <h6 class=\"modal-title\">{{ 'titles.anpVolumeMensal' | translate }}</h6>\r\n            </div>\r\n            <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\">\r\n                <app-validacoes></app-validacoes>\r\n                <div class=\"modal-body\">\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-3 col-md-6 col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"referencia\" class=\"required\">{{\"labels.referencia\" | translate }}</label>\r\n                                <input id=\"referencia\" name=\"referencia\" [(ngModel)]=\"service.filtro.referencia\"\r\n                                    placeholder=\"___/_____\"\r\n                                    [dropSpecialCharacters]=\"false\"\r\n                                    class=\"form-control form-control-sm\" type=\"text\" required=\"true\"\r\n                                    mask=\"00/0000\">\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <app-pesquisa-destinatario id=\"destinatarioIdCliente\"\r\n                                                           name=\"destinatarioIdCliente\"\r\n                                                           label=\"cliente\"\r\n                                                           modalTitle=\"pesquisaDeCliente\"\r\n                                                           [(ngModel)]=\"service.filtro.destinatarioIdCliente\"\r\n                                                           tipoDestinatario=\"C\"\r\n                                                           showCgcCpf=\"false\"\r\n                                                           showInscricao=\"false\"\r\n                                                           [inSelected]=\"cliente\"\r\n                                                           (outSelected)=\"cliente = $event\">\r\n                                </app-pesquisa-destinatario>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <app-pesquisa-material id=\"materialId\"\r\n                                                       name=\"materialId\"\r\n                                                       label=\"produto\"\r\n                                                       modalTitle=\"pesquisaDeProduto\"\r\n                                                       [(ngModel)]=\"service.filtro.materialId\"\r\n                                                       [inSelected]=\"material\"\r\n                                                       (outSelected)=\"material = $event\">\r\n                                </app-pesquisa-material>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n                <div class=\"modal-footer\">\r\n                    <button class=\"btn btn-success mr-1\" type=\"submit\">{{ 'buttons.pesquisar' | translate }}\r\n                    </button>\r\n                    <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">Sair</button>\r\n                </div>\r\n            </form>\r\n        </div>\r\n    </div>\r\n</div>\r\n");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/relatorios/anp-volume-mensal/anp-volume-mensal-index/anp-volume-mensal-index.component.html":
/*!*********************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/relatorios/anp-volume-mensal/anp-volume-mensal-index/anp-volume-mensal-index.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 [botoesComando]=\"constantes.listaIndex\" [sisFormularioId]=\"constantes.sisFormularioId\">\r\n</app-menu-command-bar>\r\n\r\n<div class=\"section-comand-bar\">\r\n    <table id=\"dtAnpVolumeMensal\"\r\n        class=\"table table-striped table-bordered table-hover nowrap table-sm table-responsive\">\r\n        <thead>\r\n            <tr>\r\n                <th>{{ 'labels.produto' | translate}}</th>\r\n                <th>{{ 'labels.cliente' | translate}}</th>\r\n                <th style=\"text-align: center; white-space: nowrap;\" *ngFor=\"let dia of service.diasDoMes\">{{\r\n                    'labels.dia' | translate}} {{\r\n                    dia }}</th>\r\n            </tr>\r\n        </thead>\r\n        <tbody>\r\n            <tr *ngFor=\"let t of dados\">\r\n                <td style=\"white-space: nowrap;\">{{ t.descrMater }}</td>\r\n                <td style=\"white-space: nowrap;\">{{ t.cliente }}</td>\r\n                <td style=\"text-align: right;\">{{ t.dia1 | formatCurrency }}</td>\r\n                <td style=\"text-align: right;\">{{ t.dia2 | formatCurrency }}</td>\r\n                <td style=\"text-align: right;\">{{ t.dia3 | formatCurrency }}</td>\r\n                <td style=\"text-align: right;\">{{ t.dia4 | formatCurrency }}</td>\r\n                <td style=\"text-align: right;\">{{ t.dia5 | formatCurrency }}</td>\r\n                <td style=\"text-align: right;\">{{ t.dia6 | formatCurrency }}</td>\r\n                <td style=\"text-align: right;\">{{ t.dia7 | formatCurrency }}</td>\r\n                <td style=\"text-align: right;\">{{ t.dia8 | formatCurrency }}</td>\r\n                <td style=\"text-align: right;\">{{ t.dia9 | formatCurrency }}</td>\r\n                <td style=\"text-align: right;\">{{ t.dia10 | formatCurrency }}</td>\r\n                <td style=\"text-align: right;\">{{ t.dia11 | formatCurrency }}</td>\r\n                <td style=\"text-align: right;\">{{ t.dia12 | formatCurrency }}</td>\r\n                <td style=\"text-align: right;\">{{ t.dia13 | formatCurrency }}</td>\r\n                <td style=\"text-align: right;\">{{ t.dia14 | formatCurrency }}</td>\r\n                <td style=\"text-align: right;\">{{ t.dia15 | formatCurrency }}</td>\r\n                <td style=\"text-align: right;\">{{ t.dia16 | formatCurrency }}</td>\r\n                <td style=\"text-align: right;\">{{ t.dia17 | formatCurrency }}</td>\r\n                <td style=\"text-align: right;\">{{ t.dia18 | formatCurrency }}</td>\r\n                <td style=\"text-align: right;\">{{ t.dia19 | formatCurrency }}</td>\r\n                <td style=\"text-align: right;\">{{ t.dia20 | formatCurrency }}</td>\r\n                <td style=\"text-align: right;\">{{ t.dia21 | formatCurrency }}</td>\r\n                <td style=\"text-align: right;\">{{ t.dia22 | formatCurrency }}</td>\r\n                <td style=\"text-align: right;\">{{ t.dia23 | formatCurrency }}</td>\r\n                <td style=\"text-align: right;\">{{ t.dia24 | formatCurrency }}</td>\r\n                <td style=\"text-align: right;\">{{ t.dia25 | formatCurrency }}</td>\r\n                <td style=\"text-align: right;\">{{ t.dia26 | formatCurrency }}</td>\r\n                <td style=\"text-align: right;\">{{ t.dia27 | formatCurrency }}</td>\r\n                <td style=\"text-align: right;\">{{ t.dia28 | formatCurrency }}</td>\r\n                <td style=\"text-align: right;\">{{ t.dia29 | formatCurrency }}</td>\r\n                <td style=\"text-align: right;\">{{ t.dia30 | formatCurrency }}</td>\r\n                <td style=\"text-align: right;\">{{ t.dia31 | formatCurrency }}</td>\r\n            </tr>\r\n            <tr *ngIf=\"!hasDados\">\r\n                <th colspan=\"34\" style=\"text-align: center\">\r\n                    {{ \"messages.nenhumRegistroEncontrado\" | translate }}\r\n                </th>\r\n            </tr>\r\n        </tbody>\r\n    </table>\r\n</div>\r\n\r\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\r\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>\r\n<app-anp-volume-mensal-filter [data]=\"filtro\" (filtrar)=\"executaFiltro($event)\"></app-anp-volume-mensal-filter>");

/***/ }),

/***/ "./src/app/pages/relatorios/anp-volume-mensal/anp-volume-mensal-filter/anp-volume-mensal-filter.component.ts":
/*!*******************************************************************************************************************!*\
  !*** ./src/app/pages/relatorios/anp-volume-mensal/anp-volume-mensal-filter/anp-volume-mensal-filter.component.ts ***!
  \*******************************************************************************************************************/
/*! exports provided: AnpVolumeMensalFilterComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AnpVolumeMensalFilterComponent", function() { return AnpVolumeMensalFilterComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* 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 _anp_volume_mensal_model__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../anp-volume-mensal.model */ "./src/app/pages/relatorios/anp-volume-mensal/anp-volume-mensal.model.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _anp_volume_mensal_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../anp-volume-mensal.service */ "./src/app/pages/relatorios/anp-volume-mensal/anp-volume-mensal.service.ts");
/* harmony import */ var app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/funcoes/date-time-utils/date-time-utils.static.service */ "./src/app/shared/services/funcoes/date-time-utils/date-time-utils.static.service.ts");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.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 __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};








var AnpVolumeMensalFilterComponent = /** @class */ (function () {
    function AnpVolumeMensalFilterComponent(loginService, funcoes, message, service) {
        this.loginService = loginService;
        this.funcoes = funcoes;
        this.message = message;
        this.service = service;
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.filialId = loginService.getLogin().filialId;
    }
    AnpVolumeMensalFilterComponent.prototype.ngOnInit = function () {
        this.service.filtro = this.data;
    };
    AnpVolumeMensalFilterComponent.prototype.onSubmit = function (form) {
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_7__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        var ref = this.funcoes.dateTimeUtils.getPeriodo(this.service.filtro.referencia);
        if (ref.error) {
            this.message.warning('titles.anpVolumeMensal', 'messages.periodoInformadoInvalido');
            return;
        }
        var sData = this.service.filtro.referencia;
        var iDataMes = sData.substr(0, 2);
        var iDataAno = sData.substr(3, 5);
        this.service.diasDoMes = app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_6__["DateTimeUtilsStaticService"].getDaysOfMonth(iDataMes, iDataAno);
        this.service.filtro.referencia = ref.periodo;
        if (!form.invalid) {
            jQuery("#anp-volume-mensal-filter-dialog").modal("hide");
            this.filtrar.emit(this.service.filtro);
        }
    };
    AnpVolumeMensalFilterComponent.ctorParameters = function () { return [
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_1__["LoginService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"] },
        { type: _anp_volume_mensal_service__WEBPACK_IMPORTED_MODULE_5__["AnpVolumeMensalService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", _anp_volume_mensal_model__WEBPACK_IMPORTED_MODULE_3__["AnpVolumeMensalFiltro"])
    ], AnpVolumeMensalFilterComponent.prototype, "data", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], AnpVolumeMensalFilterComponent.prototype, "filtrar", void 0);
    AnpVolumeMensalFilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-anp-volume-mensal-filter",
            template: __importDefault(__webpack_require__(/*! raw-loader!./anp-volume-mensal-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/relatorios/anp-volume-mensal/anp-volume-mensal-filter/anp-volume-mensal-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_1__["LoginService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"],
            _anp_volume_mensal_service__WEBPACK_IMPORTED_MODULE_5__["AnpVolumeMensalService"]])
    ], AnpVolumeMensalFilterComponent);
    return AnpVolumeMensalFilterComponent;
}());



/***/ }),

/***/ "./src/app/pages/relatorios/anp-volume-mensal/anp-volume-mensal-index/anp-volume-mensal-index.component.ts":
/*!*****************************************************************************************************************!*\
  !*** ./src/app/pages/relatorios/anp-volume-mensal/anp-volume-mensal-index/anp-volume-mensal-index.component.ts ***!
  \*****************************************************************************************************************/
/*! exports provided: AnpVolumeMensalIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AnpVolumeMensalIndexComponent", function() { return AnpVolumeMensalIndexComponent; });
/* 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_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _shared_services_funcoes_excel_excel_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../shared/services/funcoes/excel/excel.service */ "./src/app/shared/services/funcoes/excel/excel.service.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_5__ = __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_message_message_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _login_login_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var _anp_volume_mensal_constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../anp-volume-mensal.constants */ "./src/app/pages/relatorios/anp-volume-mensal/anp-volume-mensal.constants.ts");
/* harmony import */ var _anp_volume_mensal_model__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../anp-volume-mensal.model */ "./src/app/pages/relatorios/anp-volume-mensal/anp-volume-mensal.model.ts");
/* harmony import */ var _anp_volume_mensal_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../anp-volume-mensal.service */ "./src/app/pages/relatorios/anp-volume-mensal/anp-volume-mensal.service.ts");
/* harmony import */ var xlsx__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! xlsx */ "./node_modules/xlsx/xlsx.js");
/* harmony import */ var xlsx__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(xlsx__WEBPACK_IMPORTED_MODULE_11__);
/* harmony import */ var exceljs_dist_exceljs_min_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! exceljs/dist/exceljs.min.js */ "./node_modules/exceljs/dist/exceljs.min.js");
/* harmony import */ var exceljs_dist_exceljs_min_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(exceljs_dist_exceljs_min_js__WEBPACK_IMPORTED_MODULE_12__);
/* harmony import */ var file_saver__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! file-saver */ "./node_modules/file-saver/dist/FileSaver.min.js");
/* harmony import */ var file_saver__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(file_saver__WEBPACK_IMPORTED_MODULE_13__);
/* harmony import */ var app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! app/shared/services/funcoes/number-utils/number-utils.static.service */ "./src/app/shared/services/funcoes/number-utils/number-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! app/shared/services/funcoes/string-utils/string-utils.static.service */ "./src/app/shared/services/funcoes/string-utils/string-utils.static.service.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 AnpVolumeMensalIndexComponent = /** @class */ (function (_super) {
    __extends(AnpVolumeMensalIndexComponent, _super);
    function AnpVolumeMensalIndexComponent(router, messageService, permissoesUtils, service, excelService, loginService, funcoesService) {
        var _this = _super.call(this, new _anp_volume_mensal_constants__WEBPACK_IMPORTED_MODULE_8__["AnpVolumeMensalConstants"](), funcoesService) || this;
        _this.router = router;
        _this.messageService = messageService;
        _this.permissoesUtils = permissoesUtils;
        _this.service = service;
        _this.excelService = excelService;
        _this.loginService = loginService;
        _this.funcoesService = funcoesService;
        _this.data = new _anp_volume_mensal_model__WEBPACK_IMPORTED_MODULE_9__["AnpVolumeMensal"]();
        _this.constantes = new _anp_volume_mensal_constants__WEBPACK_IMPORTED_MODULE_8__["AnpVolumeMensalConstants"]();
        _this.filtro = new _anp_volume_mensal_model__WEBPACK_IMPORTED_MODULE_9__["AnpVolumeMensalFiltro"]();
        _this.filtrar = function () {
            jQuery("#anp-volume-mensal-filter-dialog").modal("show");
        };
        _this.executaFiltro = function (event) {
            _this.data = event;
            _this.refresh();
        };
        _this.permissoes = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 2, function () {
                _super.prototype.permissoes.call(_this, _this.constantes);
            });
        };
        _this.export = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 4, function () {
                if (!_this.dados || _this.dados.length === 0) {
                    _this.messageService.warning('titles.exportandoExcel', 'messages.naoExistemDadosParaExportacao');
                    return;
                }
                // Define o nome do mês por extenso
                var sData = _this.service.filtro.referencia;
                var iDataMes = sData.substr(0, 2);
                var iDataAno = sData.substr(3, 5);
                var monthName = new Intl.DateTimeFormat('pt-br', { month: 'long' }).format(new Date(iDataAno, iDataMes - 1));
                var monthNameUppercase = monthName.toUpperCase();
                // Define o nome do arquivo
                var excelFileName = _this.messageService.getTranslates("titles", "anpVolumeMensal");
                // Define o título e subtítulo
                var title = "VOLUME MENSAL ANP";
                var subtitle = monthNameUppercase + " ( VOLUME DE FECHAMENTO DO DIA )";
                // Cria o array de dados com as colunas necessárias
                var headerRow = ["Produto", "Cliente"];
                var contentRows = [];
                // Adiciona as colunas do cabeçalho referente aos dias
                var dayHeaders = [];
                for (var i = 1; i <= _this.service.diasDoMes.length; i++) {
                    dayHeaders.push("Dia " + i);
                    headerRow.push("Dia " + i);
                }
                var workbook = new exceljs_dist_exceljs_min_js__WEBPACK_IMPORTED_MODULE_12__["Workbook"]();
                var worksheet = workbook.addWorksheet(excelFileName);
                worksheet.addRow([title]);
                worksheet.addRow([subtitle]);
                worksheet.addRow(headerRow);
                // Personalisa Título (Linha 1)
                var rowTitle = worksheet.getRow(1);
                rowTitle.height = 50;
                rowTitle.eachCell(function (cell) {
                    cell.font = { bold: true, size: 24 };
                    cell.alignment = { horizontal: 'center', vertical: 'middle' };
                });
                // Personalisa Subtítulo (Linha 2)
                var rowSubTitle = worksheet.getRow(2);
                rowSubTitle.height = 30;
                rowSubTitle.eachCell(function (cell) {
                    cell.font = { bold: true, size: 12 };
                    cell.alignment = { horizontal: 'center', vertical: 'middle' };
                });
                // Personalisa a linha 3
                var row3 = worksheet.getRow(3);
                row3.eachCell(function (cell) {
                    cell.font = { bold: true };
                    cell.alignment = { horizontal: 'center', vertical: 'middle' };
                    cell.fill = {
                        type: "pattern",
                        pattern: "solid",
                        fgColor: { argb: "FFFFCC00" },
                    };
                    cell.border = {
                        top: { style: "thin" },
                        left: { style: "thin" },
                        bottom: { style: "thin" },
                        right: { style: "thin" },
                    };
                });
                // Adiciona as linhas de conteúdo e trata os tipos
                _this.dados.forEach(function (item) {
                    var row = [];
                    row.push({ value: item.descrMater, type: 'string' });
                    row.push({ value: item.cliente, type: 'string' });
                    row.push({ value: item.dia1 != null ? item.dia1 : 0 });
                    row.push({ value: item.dia2 != null ? item.dia2 : 0 });
                    row.push({ value: item.dia3 != null ? item.dia3 : 0 });
                    row.push({ value: item.dia4 != null ? item.dia4 : 0 });
                    row.push({ value: item.dia5 != null ? item.dia5 : 0 });
                    row.push({ value: item.dia6 != null ? item.dia6 : 0 });
                    row.push({ value: item.dia7 != null ? item.dia7 : 0 });
                    row.push({ value: item.dia8 != null ? item.dia8 : 0 });
                    row.push({ value: item.dia9 != null ? item.dia9 : 0 });
                    row.push({ value: item.dia10 != null ? item.dia10 : 0 });
                    row.push({ value: item.dia11 != null ? item.dia11 : 0 });
                    row.push({ value: item.dia12 != null ? item.dia12 : 0 });
                    row.push({ value: item.dia13 != null ? item.dia13 : 0 });
                    row.push({ value: item.dia14 != null ? item.dia14 : 0 });
                    row.push({ value: item.dia15 != null ? item.dia15 : 0 });
                    row.push({ value: item.dia16 != null ? item.dia16 : 0 });
                    row.push({ value: item.dia17 != null ? item.dia17 : 0 });
                    row.push({ value: item.dia18 != null ? item.dia18 : 0 });
                    row.push({ value: item.dia19 != null ? item.dia19 : 0 });
                    row.push({ value: item.dia20 != null ? item.dia20 : 0 });
                    row.push({ value: item.dia21 != null ? item.dia21 : 0 });
                    row.push({ value: item.dia22 != null ? item.dia22 : 0 });
                    row.push({ value: item.dia23 != null ? item.dia23 : 0 });
                    row.push({ value: item.dia24 != null ? item.dia24 : 0 });
                    row.push({ value: item.dia25 != null ? item.dia25 : 0 });
                    row.push({ value: item.dia26 != null ? item.dia26 : 0 });
                    row.push({ value: item.dia27 != null ? item.dia27 : 0 });
                    row.push({ value: item.dia28 != null ? item.dia28 : 0 });
                    row.push({ value: item.dia29 != null ? item.dia29 : 0 });
                    row.push({ value: item.dia30 != null ? item.dia30 : 0 });
                    row.push({ value: item.dia31 != null ? item.dia31 : 0 });
                    contentRows.push(row.map(function (cell) { return cell.value; }));
                });
                contentRows.forEach(function (row) {
                    var excelRow = worksheet.addRow(row);
                    excelRow.eachCell(function (cell) {
                        // Trata as células do tipo number
                        if (!isNaN(parseFloat(cell.value))) {
                            cell.numFmt = '#,##0'; // Formato sem casas decimais e com separador de milhares
                        }
                    });
                });
                // Obtém a letra da última coluna para ser utilizado no merge do título e subtítulo
                var lastColumnLetter = xlsx__WEBPACK_IMPORTED_MODULE_11__["utils"].encode_col(_this.service.diasDoMes.length + 1);
                // Define o merge das células para o título e subtítulo
                worksheet.mergeCells("A1:" + lastColumnLetter + "1");
                worksheet.mergeCells("A2:" + lastColumnLetter + "2");
                // Define a largura das colunas
                worksheet.getColumn(1).width = 30;
                worksheet.getColumn(2).width = 30;
                for (var i = 3; i <= _this.service.diasDoMes.length + 2; i++) {
                    worksheet.getColumn(i).width = 11;
                }
                // Converte o workbook em buffer e retorna o arquivo
                workbook.xlsx.writeBuffer().then(function (buffer) {
                    var blob = new Blob([buffer], { type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8' });
                    file_saver__WEBPACK_IMPORTED_MODULE_13__["saveAs"](blob, excelFileName + '_export_' + new Date().getTime());
                });
            });
        };
        return _this;
    }
    AnpVolumeMensalIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () {
            if (!_this.loginService.isTokenExpired()) {
                jQuery("#anp-volume-mensal-filter-dialog").modal("show");
            }
        }, function () { return _this.permissoesUtils.back(); }, true);
        _super.prototype.addFuncoes.call(this, [
            { action: 'export', func: function () { return _this.export; } },
        ]);
    };
    AnpVolumeMensalIndexComponent.prototype.refresh = function () {
        var _this = this;
        this.service.getDados(this.filtro).subscribe(function (resp) {
            _this.dados = resp;
        });
    };
    Object.defineProperty(AnpVolumeMensalIndexComponent.prototype, "hasDados", {
        get: function () {
            if (!this.dados)
                return false;
            return this.dados && this.dados.length > 0;
        },
        enumerable: true,
        configurable: true
    });
    AnpVolumeMensalIndexComponent.prototype.print = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () {
            if (!_this.dados || _this.dados.length === 0) {
                _this.messageService.warning('titles.anpVolumeMensal', 'messages.naoExistemDadosParaImpresso');
                return;
            }
            _this.constantes.paramRelatorio = {
                filialId: _this.loginService.getLogin().filialId,
                referencia: app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_15__["StringUtilsStaticService"].toString(_this.service.filtro.referencia),
                destinatarioIdCliente: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["NumberUtilsStaticService"].toNumber(_this.service.filtro.destinatarioIdCliente),
                materialId: app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_15__["StringUtilsStaticService"].toString(_this.service.filtro.materialId)
            };
            _super.prototype.print.call(_this);
        });
    };
    AnpVolumeMensalIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__["MessageService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_5__["PermissoesUtilsService"] },
        { type: _anp_volume_mensal_service__WEBPACK_IMPORTED_MODULE_10__["AnpVolumeMensalService"] },
        { type: _shared_services_funcoes_excel_excel_service__WEBPACK_IMPORTED_MODULE_3__["ExcelService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_7__["LoginService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] }
    ]; };
    AnpVolumeMensalIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-anp-volume-mensal-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./anp-volume-mensal-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/relatorios/anp-volume-mensal/anp-volume-mensal-index/anp-volume-mensal-index.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_6__["MessageService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_5__["PermissoesUtilsService"],
            _anp_volume_mensal_service__WEBPACK_IMPORTED_MODULE_10__["AnpVolumeMensalService"],
            _shared_services_funcoes_excel_excel_service__WEBPACK_IMPORTED_MODULE_3__["ExcelService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_7__["LoginService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"]])
    ], AnpVolumeMensalIndexComponent);
    return AnpVolumeMensalIndexComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_2__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/relatorios/anp-volume-mensal/anp-volume-mensal.constants.ts":
/*!***********************************************************************************!*\
  !*** ./src/app/pages/relatorios/anp-volume-mensal/anp-volume-mensal.constants.ts ***!
  \***********************************************************************************/
/*! exports provided: AnpVolumeMensalConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AnpVolumeMensalConstants", function() { return AnpVolumeMensalConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var AnpVolumeMensalConstants = /** @class */ (function () {
    function AnpVolumeMensalConstants() {
        this.sisFormularioId = 255064;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.consulta" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.permissoes" },
            { sisFormularioId: this.sisFormularioId, libRotina: 3, acao: "labels.impressao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 4, acao: "labels.exportExcel" },
        ];
        this.nomeForm = "titles.anpVolumeMensal";
        this.reportId = "REL0197";
        this.reportTitulo = { "titulo": "Volume Mensal", "subTitulo": "" };
        this.listaIndex = [
            { title: 'Atualizar', action: 'refresh', icon: "icon-reload", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Pesquisar', action: 'filtrar', icon: "icon-search", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Imprimir', action: 'print', icon: "icon-printer", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'exportExcel', action: 'export', icon: "fa fa-file-excel-o", exibeButton: true, eximeMenu: true, menuName: 'Arquivo', depitem: false },
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
        ];
    }
    return AnpVolumeMensalConstants;
}());



/***/ }),

/***/ "./src/app/pages/relatorios/anp-volume-mensal/anp-volume-mensal.model.ts":
/*!*******************************************************************************!*\
  !*** ./src/app/pages/relatorios/anp-volume-mensal/anp-volume-mensal.model.ts ***!
  \*******************************************************************************/
/*! exports provided: AnpVolumeMensal, AnpVolumeMensalFiltro */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AnpVolumeMensal", function() { return AnpVolumeMensal; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AnpVolumeMensalFiltro", function() { return AnpVolumeMensalFiltro; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var AnpVolumeMensal = /** @class */ (function () {
    function AnpVolumeMensal() {
    }
    return AnpVolumeMensal;
}());

var AnpVolumeMensalFiltro = /** @class */ (function () {
    function AnpVolumeMensalFiltro() {
        this.filialId = 0;
        this.destinatarioIdCliente = 0;
        this.materialId = "";
    }
    return AnpVolumeMensalFiltro;
}());



/***/ }),

/***/ "./src/app/pages/relatorios/anp-volume-mensal/anp-volume-mensal.module.ts":
/*!********************************************************************************!*\
  !*** ./src/app/pages/relatorios/anp-volume-mensal/anp-volume-mensal.module.ts ***!
  \********************************************************************************/
/*! exports provided: AnpVolumeMensalModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AnpVolumeMensalModule", function() { return AnpVolumeMensalModule; });
/* 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 _anp_volume_mensal_filter_anp_volume_mensal_filter_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./anp-volume-mensal-filter/anp-volume-mensal-filter.component */ "./src/app/pages/relatorios/anp-volume-mensal/anp-volume-mensal-filter/anp-volume-mensal-filter.component.ts");
/* harmony import */ var _anp_volume_mensal_index_anp_volume_mensal_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./anp-volume-mensal-index/anp-volume-mensal-index.component */ "./src/app/pages/relatorios/anp-volume-mensal/anp-volume-mensal-index/anp-volume-mensal-index.component.ts");
/* harmony import */ var _anp_volume_mensal_routing_module__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./anp-volume-mensal.routing.module */ "./src/app/pages/relatorios/anp-volume-mensal/anp-volume-mensal.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 AnpVolumeMensalModule = /** @class */ (function () {
    function AnpVolumeMensalModule() {
    }
    AnpVolumeMensalModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"], _anp_volume_mensal_routing_module__WEBPACK_IMPORTED_MODULE_4__["AnpVolumeMensalRoutingModule"]],
            declarations: [_anp_volume_mensal_index_anp_volume_mensal_index_component__WEBPACK_IMPORTED_MODULE_3__["AnpVolumeMensalIndexComponent"], _anp_volume_mensal_filter_anp_volume_mensal_filter_component__WEBPACK_IMPORTED_MODULE_2__["AnpVolumeMensalFilterComponent"]]
        })
    ], AnpVolumeMensalModule);
    return AnpVolumeMensalModule;
}());



/***/ }),

/***/ "./src/app/pages/relatorios/anp-volume-mensal/anp-volume-mensal.routing.module.ts":
/*!****************************************************************************************!*\
  !*** ./src/app/pages/relatorios/anp-volume-mensal/anp-volume-mensal.routing.module.ts ***!
  \****************************************************************************************/
/*! exports provided: AnpVolumeMensalRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AnpVolumeMensalRoutingModule", function() { return AnpVolumeMensalRoutingModule; });
/* 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 _anp_volume_mensal_index_anp_volume_mensal_index_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./anp-volume-mensal-index/anp-volume-mensal-index.component */ "./src/app/pages/relatorios/anp-volume-mensal/anp-volume-mensal-index/anp-volume-mensal-index.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: _anp_volume_mensal_index_anp_volume_mensal_index_component__WEBPACK_IMPORTED_MODULE_2__["AnpVolumeMensalIndexComponent"],
        data: { breadcrumb: "anpVolumeMensal" }
    }
];
var AnpVolumeMensalRoutingModule = /** @class */ (function () {
    function AnpVolumeMensalRoutingModule() {
    }
    AnpVolumeMensalRoutingModule = __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"]]
        })
    ], AnpVolumeMensalRoutingModule);
    return AnpVolumeMensalRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/relatorios/anp-volume-mensal/anp-volume-mensal.service.ts":
/*!*********************************************************************************!*\
  !*** ./src/app/pages/relatorios/anp-volume-mensal/anp-volume-mensal.service.ts ***!
  \*********************************************************************************/
/*! exports provided: AnpVolumeMensalService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AnpVolumeMensalService", function() { return AnpVolumeMensalService; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js");
/* harmony import */ var _shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../shared/services/base/base.service */ "./src/app/shared/services/base/base.service.ts");
/* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var _app_error_handler__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../app.error-handler */ "./src/app/app.error-handler.ts");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
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 AnpVolumeMensalService = /** @class */ (function (_super) {
    __extends(AnpVolumeMensalService, _super);
    function AnpVolumeMensalService(http) {
        var _this = _super.call(this, http, "relatorios/anpVolumeMensal") || this;
        _this.http = http;
        return _this;
    }
    AnpVolumeMensalService.prototype.getDados = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/relatorios/anpVolumeMensal/getDados", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    AnpVolumeMensalService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"] }
    ]; };
    AnpVolumeMensalService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"]])
    ], AnpVolumeMensalService);
    return AnpVolumeMensalService;
}(_shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_2__["BaseService"]));



/***/ })

}]);
//# sourceMappingURL=app-pages-relatorios-anp-volume-mensal-anp-volume-mensal-module.js.map