(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-especificos-aldc-relatorios-descargas-descargas-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/aldc/relatorios/descargas/descargas-form/descargas-form.component.html":
/*!************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/aldc/relatorios/descargas/descargas-form/descargas-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\" #descargaPorNota=\"ngForm\" (ngSubmit)=\"onSubmit(descargaPorNota)\">\n                        <app-validacoes></app-validacoes>\n                        <div class=\"row\">\n                            <div class=\"col-lg-3 col-md-4 col-sm-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"periodoDe\" class=\"required\">{{\"labels.periodoDe\" | translate }}</label>\n                                    <app-data-h-m id=\"periodoDe\" name=\"periodoDe\" [(ngModel)]=\"data.dataIni\" autofocus\n                                        [formatDateTime]=\"mascara.getFormatData\" [required]=\"true\"></app-data-h-m>\n                                </div>\n                            </div>\n                            <div class=\"col-lg-3 col-md-4 col-sm-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"ate\" class=\"required\">{{\"labels.ate\" | translate}}</label>\n                                    <app-data-h-m-s id=\"ate\" name=\"ate\" maxlength=\"1\" [(ngModel)]=\"data.dataFim\"\n                                        [required]=\"true\"></app-data-h-m-s>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-6 col-md-8 col-sm-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <app-pesquisa-destinatario id=\"destinatarioIdCliente\" name=\"destinatarioIdCliente\"\n                                        label=\"cliente\" modalTitle=\"cliente\"\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                        [(ngModel)]=\"data.destinatarioIdCliente\" showCgcCpf=\"false\"\n                                        showInscricao=\"false\" (outModel)=\"trataDest($event)\">\n                                    </app-pesquisa-destinatario>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-6 col-md-8 col-sm-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <app-pesquisa-destinatario id=\"destinatarioIdEmitente\" name=\"destinatarioIdEmitente\"\n                                        label=\"emitente\" modalTitle=\"emitente\" [(ngModel)]=\"data.destinatarioIdEmitente\"\n                                        showCgcCpf=\"false\" showInscricao=\"false\" (outModel)=\"trataEmitente($event)\">\n                                    </app-pesquisa-destinatario>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-6 col-md-8 col-sm-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <app-pesquisa-destinatario id=\"destinatarioIdTransportadora\"\n                                        name=\"destinatarioIdTransportadora\" label=\"transportadora\"\n                                        modalTitle=\"transportadora\" [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                        [(ngModel)]=\"data.destinatarioIdTransportadora\" tipoDestinatario=\"T\"\n                                        showCgcCpf=\"false\" showInscricao=\"false\" (outModel)=\"trataTransp($event)\">\n                                    </app-pesquisa-destinatario>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-6 col-md-8 col-sm-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <app-pesquisa-material id=\"materialId\" name=\"materialId\" label=\"produto\"\n                                        modalTitle=\"produto\" [(ngModel)]=\"data.materialId\">\n                                    </app-pesquisa-material>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-3\">\n                                <div class=\"form-group form-group-sm\">\n                                    <app-pesquisa-saldo-lote-deposito id=\"deposito\" name=\"deposito\" [label]=\"'deposito'\"\n                                        [modalTitle]=\"'deposito'\" [field]=\"'tanqueId'\" [options]=\"saldoDepositoOptions\"\n                                        [(ngModel)]=\"data.tanqueId\">\n                                    </app-pesquisa-saldo-lote-deposito>\n                                </div>\n                            </div>\n                            <div class=\"col-lg-3 col-md-4 col-sm-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"grupoClienteId\">{{ 'labels.grupo' | translate}}</label>\n                                    <app-combo-grupo-cliente name=\"grupoClienteId\" id=\"grupoClienteId\"\n                                        [(ngModel)]=\"data.grupoClienteId\">\n                                    </app-combo-grupo-cliente>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-3 col-md-4 col-sm-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"tipoTransporte\">{{\"labels.tipoTransporte\" | translate}}</label>\n                                    <select id=\"tipoTransporte\" name=\"tipoTransporte\" [(ngModel)]=\"data.tipoTransporteId\"\n                                        class=\"form-control form-control-sm\">\n                                        <option value=\"T\">{{'labels.todos'|translate}}</option>\n                                        <option value=\"R\">{{'labels.rodoviario'|translate}}</option>\n                                        <option value=\"F\">{{'labels.ferroviario'|translate}}</option>\n                                    </select>\n                                </div>\n                            </div>\n                            <div class=\"col-3\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"placa\">{{\"labels.placa\" | translate}}</label>\n                                    <input type=\"text\" id=\"placa\" name=\"placa\" class=\"form-control form-control-sm\"\n                                        [(ngModel)]=\"data.placa\">\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-3\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"notaFiscal\">{{\"labels.notaFiscal\" | translate}}</label>\n                                    <input type=\"text\" id=\"notaFiscal\" name=\"notaFiscal\" mask=\"999999999\"\n                                        class=\"form-control form-control-sm\" [(ngModel)]=\"data.notaFiscal\">\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <button class=\"btn btn-success mr-2\" type=\"submit\"\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                        {{ 'buttons.gerarRelatorio' | translate }}\n                                    </button>\n                                    <button class=\"btn btn-success mr-2\" (click)=\"export(descargaPorNota)\"\n                                        type=\"button\">{{\n                                        'buttons.exportarExcel' | translate }}\n                                    </button>\n                                    <button class=\"btn btn-success mr-2\" (click)=\"sendMail(descargaPorNota)\"\n                                        type=\"button\">{{\n                                        'buttons.enviarEmail' | translate }}\n                                    </button>\n                                </div>\n                            </div>\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\" [titulo]=\"constantes.reportTitulo.titulo\"\n    [subTitulo]=\"constantes.reportTitulo.subTitulo\" [data]=\"constantes.paramRelatorio\"></app-email>");

/***/ }),

/***/ "./src/app/pages/especificos/aldc/relatorios/descargas/descargas-form/descargas-form.component.ts":
/*!********************************************************************************************************!*\
  !*** ./src/app/pages/especificos/aldc/relatorios/descargas/descargas-form/descargas-form.component.ts ***!
  \********************************************************************************************************/
/*! exports provided: DescargasFormComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescargasFormComponent", function() { return DescargasFormComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_shared_services_funcoes_excel_excel_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/shared/services/funcoes/excel/excel.service */ "./src/app/shared/services/funcoes/excel/excel.service.ts");
/* harmony import */ var app_shared_components_report_report_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/shared/components/report/report.service */ "./src/app/shared/components/report/report.service.ts");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! app/shared/services/funcoes/string-utils/string-utils.static.service */ "./src/app/shared/services/funcoes/string-utils/string-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_12__ = __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 _descargas_constants__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../descargas.constants */ "./src/app/pages/especificos/aldc/relatorios/descargas/descargas.constants.ts");
/* harmony import */ var _descargas_model__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../descargas.model */ "./src/app/pages/especificos/aldc/relatorios/descargas/descargas.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 DescargasFormComponent = /** @class */ (function (_super) {
    __extends(DescargasFormComponent, _super);
    function DescargasFormComponent(router, messageService, activatedRoute, permissoesUtils, funcoesService, loginService, excelService, reportService) {
        var _this = _super.call(this, new _descargas_constants__WEBPACK_IMPORTED_MODULE_13__["DescargasConstants"](), funcoesService) || this;
        _this.router = router;
        _this.messageService = messageService;
        _this.activatedRoute = activatedRoute;
        _this.permissoesUtils = permissoesUtils;
        _this.funcoesService = funcoesService;
        _this.loginService = loginService;
        _this.excelService = excelService;
        _this.reportService = reportService;
        _this.mensagens = [];
        _this.constantes = new _descargas_constants__WEBPACK_IMPORTED_MODULE_13__["DescargasConstants"]();
        _this.dataAtual = new Date();
        _this.data = new _descargas_model__WEBPACK_IMPORTED_MODULE_14__["Descargas"]();
        _this.target = _this.funcoesService.getTargetLocation();
        _this.mascara = new app_config_enumerables__WEBPACK_IMPORTED_MODULE_3__["Mascaras"]();
        _this.export = function (form) {
            if (!_this.validatePeriodoAte())
                return;
            if (!_this.printParams(form))
                return;
            _this.reportService.exportEspecificos(_this.constantes.sisFormularioId, _this.constantes.paramRelatorio).subscribe(function (resp) {
                var headerDictionary = {};
                var options = {
                    headerJsonKeys: true,
                    headerDictionary: headerDictionary
                };
                var dados = [];
                resp.forEach(function (item) {
                    if (item.dtNF) {
                        var dtAut = new Date(item.dtNF);
                        var hora = dtAut.getHours();
                        var minuto = dtAut.getMinutes();
                        var horario = '';
                        if (hora === 0 && minuto === 0) {
                            horario = '';
                        }
                        else if (hora === 0) {
                            horario = minuto.toString().padStart(2, '0');
                        }
                        else if (minuto === 0) {
                            horario = hora.toString().padStart(2, '0');
                        }
                        else {
                            horario =
                                hora.toString().padStart(2, '0') + ":" +
                                    ("" + minuto.toString().padStart(2, '0'));
                        }
                        item.dtNF =
                            dtAut.getDate().toString().padStart(2, '0') + "/" +
                                ((dtAut.getMonth() + 1).toString().padStart(2, '0') + "/") +
                                ("" + dtAut.getFullYear()) +
                                (horario ? " " + horario : '');
                    }
                    if (!!item.dtAutorizacao) {
                        var dtAut = new Date(item.dtAutorizacao);
                        item.dtAutorizacao = dtAut.getDate().toString().padStart(2, '0') + "/" +
                            ((dtAut.getMonth() + 1).toString().padStart(2, '0') + "/") +
                            (dtAut.getFullYear() + " " + dtAut.getHours().toString().padStart(2, '0') + ":") +
                            ("" + dtAut.getMinutes().toString().padStart(2, '0'));
                    }
                    if (!!item.dtSaida) {
                        var dtSai = new Date(item.dtSaida);
                        item.dtSaida = dtSai.getDate().toString().padStart(2, '0') + "/" +
                            ((dtSai.getMonth() + 1).toString().padStart(2, '0') + "/") +
                            (dtSai.getFullYear() + " " + dtSai.getHours().toString().padStart(2, '0') + ":") +
                            ("" + dtSai.getMinutes().toString().padStart(2, '0'));
                    }
                    if (!!item.dtDescarga) {
                        var dtDes = new Date(item.dtDescarga);
                        item.dtDescarga = dtDes.getDate().toString().padStart(2, '0') + "/" +
                            ((dtDes.getMonth() + 1).toString().padStart(2, '0') + "/") +
                            (dtDes.getFullYear() + " " + dtDes.getHours().toString().padStart(2, '0') + ":") +
                            ("" + dtDes.getMinutes().toString().padStart(2, '0'));
                    }
                    if (!!item.dtChegada) {
                        var dtChe = new Date(item.dtChegada);
                        item.dtChegada = dtChe.getDate().toString().padStart(2, '0') + "/" +
                            ((dtChe.getMonth() + 1).toString().padStart(2, '0') + "/") +
                            (dtChe.getFullYear() + " " + dtChe.getHours().toString().padStart(2, '0') + ":") +
                            ("" + dtChe.getMinutes().toString().padStart(2, '0'));
                    }
                    var d = {
                        'ticket': item.ticket,
                        '_codCli': item.coddest,
                        'cliente': item.descrcli,
                        'codProduto': item.material,
                        'produto': item.descrmater,
                        'AO': item.autorizacao,
                        'notaFiscal': item.docto,
                        'serie': item.serie,
                        'dtNotaFiscal': item.dtNF,
                        '_dtAutorizacao': item.dtAutorizacao,
                        '_dtChegada': item.dtChegada,
                        'transportadora': item.descrTransp,
                        'placa': item.placa,
                        '_dtSaida': item.dtSaida,
                        'deposito': item.deposito,
                        'dtDescarga': item.dtDescarga,
                        'bruto': item.bruto,
                        'tara': item.tara,
                        '_kiloDestino': item.kilosDestino,
                        'diferenca': item.diferenca,
                        'retencao': item.retencao,
                        'kilosDestinoLiq': item.kilosDestinoLiq,
                        'KilosOrigem': item.kilosOrigem
                    };
                    dados.push(d);
                });
                _this.excelService.exportAsExcelFile(dados, _this.messageService.getTranslates("titles", "descargas"), options);
            });
        };
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        _this.filialId = loginService.getLogin().filialId;
        return _this;
    }
    DescargasFormComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () { }, function () { return _this.permissoesUtils.back(); }, true);
    };
    DescargasFormComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    DescargasFormComponent.prototype.trataDest = function (destinatario) {
        this.data.cliente = destinatario;
    };
    DescargasFormComponent.prototype.trataEmitente = function (destinatario) {
        this.data.emitente = destinatario;
    };
    DescargasFormComponent.prototype.trataTransp = function (destinatario) {
        this.data.transportadora = destinatario;
    };
    DescargasFormComponent.prototype.onSubmit = function (form) {
        if (!this.validatePeriodoAte())
            return;
        if (!this.printParams(form))
            return;
        this.print(null, true);
    };
    DescargasFormComponent.prototype.printParams = function (form) {
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_10__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return false;
        }
        this.constantes.paramRelatorio = {
            filialId: this.filialId,
            dtIni: this.data.dataIni,
            dtFim: this.data.dataFim,
            destinatarioIdCliente: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["NumberUtilsStaticService"].toNumber(this.data.destinatarioIdCliente),
            destinatarioIdEmitente: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["NumberUtilsStaticService"].toNumber(this.data.destinatarioIdEmitente),
            materialId: app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["StringUtilsStaticService"].toString(this.data.materialId),
            destinatarioIdTransportadora: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["NumberUtilsStaticService"].toNumber(this.data.destinatarioIdTransportadora),
            grupoClienteId: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["NumberUtilsStaticService"].toNumber(this.data.grupoClienteId),
            tanqueId: app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["StringUtilsStaticService"].toString(this.data.tanqueId),
            tipoTransporteId: app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["StringUtilsStaticService"].toString(this.data.tipoTransporteId),
            notaFiscal: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["NumberUtilsStaticService"].toNumber(this.data.notaFiscal),
            placa: app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["StringUtilsStaticService"].toString(this.data.placa)
        };
        return true;
    };
    DescargasFormComponent.prototype.sendMail = function (form) {
        if (!this.validatePeriodoAte())
            return;
        if (!this.printParams(form))
            return;
        _super.prototype.sendMail.call(this, this.constantes);
    };
    Object.defineProperty(DescargasFormComponent.prototype, "saldoDepositoOptions", {
        get: function () {
            return {
                destinatarioIdCliente: 0,
                materialId: "",
                sitLote: 'A',
                modo: 0,
                tipoSaldo: 0,
                osgId: 0,
                dataMovimento: new Date(),
                tipoAgrupa: 'D',
                geraArquivo: 'N'
            };
        },
        enumerable: true,
        configurable: true
    });
    DescargasFormComponent.prototype.validatePeriodoAte = function () {
        if (!this.data.dataIni)
            return;
        if (!this.data.dataFim)
            return;
        if (this.funcoesService.dateTimeUtils.maiorOuIgualA(this.data.dataIni, this.data.dataFim, ['H', 'M'])) {
            this.messageService.warning("titles.descargas", "messages.ateMenorPeriodoDe");
            return false;
        }
        return true;
    };
    DescargasFormComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_5__["PermissoesUtilsService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__["FuncoesService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_7__["LoginService"] },
        { type: app_shared_services_funcoes_excel_excel_service__WEBPACK_IMPORTED_MODULE_8__["ExcelService"] },
        { type: app_shared_components_report_report_service__WEBPACK_IMPORTED_MODULE_9__["ReportService"] }
    ]; };
    DescargasFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-descargas-form",
            template: __importDefault(__webpack_require__(/*! raw-loader!./descargas-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/aldc/relatorios/descargas/descargas-form/descargas-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_5__["PermissoesUtilsService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__["FuncoesService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_7__["LoginService"],
            app_shared_services_funcoes_excel_excel_service__WEBPACK_IMPORTED_MODULE_8__["ExcelService"],
            app_shared_components_report_report_service__WEBPACK_IMPORTED_MODULE_9__["ReportService"]])
    ], DescargasFormComponent);
    return DescargasFormComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_2__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/aldc/relatorios/descargas/descargas.constants.ts":
/*!************************************************************************************!*\
  !*** ./src/app/pages/especificos/aldc/relatorios/descargas/descargas.constants.ts ***!
  \************************************************************************************/
/*! exports provided: DescargasConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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



/***/ }),

/***/ "./src/app/pages/especificos/aldc/relatorios/descargas/descargas.model.ts":
/*!********************************************************************************!*\
  !*** ./src/app/pages/especificos/aldc/relatorios/descargas/descargas.model.ts ***!
  \********************************************************************************/
/*! exports provided: Descargas */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Descargas", function() { return Descargas; });
/* harmony import */ var app_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/shared/services/base/base.model */ "./src/app/shared/services/base/base.model.ts");
/* harmony import */ var app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/pages/cadastro/destinatario/destinatario.model */ "./src/app/pages/cadastro/destinatario/destinatario.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 __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};


var Descargas = /** @class */ (function (_super) {
    __extends(Descargas, _super);
    function Descargas() {
        var _this = _super.call(this) || this;
        _this.filialId = 0;
        var currentDate = new Date();
        currentDate.setDate(currentDate.getDate());
        currentDate.setHours(0);
        currentDate.setMinutes(0);
        currentDate.setSeconds(0);
        _this.dataIni = currentDate;
        _this.dataFim = new Date();
        ;
        _this.cliente = new app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_1__["Destinatario"]();
        _this.emitente = new app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_1__["Destinatario"]();
        _this.transportadora = new app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_1__["Destinatario"]();
        return _this;
    }
    return Descargas;
}(app_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));



/***/ }),

/***/ "./src/app/pages/especificos/aldc/relatorios/descargas/descargas.module.ts":
/*!*********************************************************************************!*\
  !*** ./src/app/pages/especificos/aldc/relatorios/descargas/descargas.module.ts ***!
  \*********************************************************************************/
/*! exports provided: DescargasModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescargasModule", function() { return DescargasModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/shared/shared.module */ "./src/app/shared/shared.module.ts");
/* harmony import */ var _descargas_form_descargas_form_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./descargas-form/descargas-form.component */ "./src/app/pages/especificos/aldc/relatorios/descargas/descargas-form/descargas-form.component.ts");
/* harmony import */ var _descargas_routing_module__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./descargas.routing.module */ "./src/app/pages/especificos/aldc/relatorios/descargas/descargas.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 DescargasModule = /** @class */ (function () {
    function DescargasModule() {
    }
    DescargasModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [app_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"], _descargas_routing_module__WEBPACK_IMPORTED_MODULE_3__["DescargasRoutingModule"]],
            declarations: [_descargas_form_descargas_form_component__WEBPACK_IMPORTED_MODULE_2__["DescargasFormComponent"]],
            providers: []
        })
    ], DescargasModule);
    return DescargasModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/aldc/relatorios/descargas/descargas.routing.module.ts":
/*!*****************************************************************************************!*\
  !*** ./src/app/pages/especificos/aldc/relatorios/descargas/descargas.routing.module.ts ***!
  \*****************************************************************************************/
/*! exports provided: DescargasRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescargasRoutingModule", function() { return DescargasRoutingModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _descargas_form_descargas_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./descargas-form/descargas-form.component */ "./src/app/pages/especificos/aldc/relatorios/descargas/descargas-form/descargas-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: _descargas_form_descargas_form_component__WEBPACK_IMPORTED_MODULE_3__["DescargasFormComponent"],
        data: { breadcrumb: "descargas", formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index } }
    },
];
var DescargasRoutingModule = /** @class */ (function () {
    function DescargasRoutingModule() {
    }
    DescargasRoutingModule = __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"]],
        })
    ], DescargasRoutingModule);
    return DescargasRoutingModule;
}());



/***/ })

}]);
//# sourceMappingURL=app-pages-especificos-aldc-relatorios-descargas-descargas-module.js.map