(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-consultas-consulta-historico-mov-veiculo-consulta-historico-mov-veiculo-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/consultas/consulta-historico-mov-veiculo/consulta-historico-mov-veiculo-filter/consulta-historico-mov-veiculo-filter.component.html":
/*!*************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/consultas/consulta-historico-mov-veiculo/consulta-historico-mov-veiculo-filter/consulta-historico-mov-veiculo-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=\"consulta-hist-mov-veic-filter-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop='static'>\r\n    <div class=\"uni-modal-dialog-md-45\">\r\n        <div class=\"modal-content\">\r\n            <div class=\"modal-header\">\r\n                <h5 class=\"modal-title\">{{ 'titles.consultaHistoricoMovVeiculo'  | translate }}</h5>\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\" mb-1>\r\n                        <div class=\"col-lg-6 col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"periodoDe\">{{ 'labels.periodoDe' | translate }}</label>\r\n                                <app-data id=\"periodoDe\"\r\n                                        name=\"periodoDe\"\r\n                                        [(ngModel)]=\"filtro.dataI\"\r\n                                        data-title=\"{{'labels.periodoDe' | translate}}\"\r\n                                        [formatDateTime]=\"mascara.getFormatDataHorMinSeg\"\r\n                                        showFormatDateTime=\"true\">\r\n                                </app-data>\r\n                            </div>\r\n                        </div>\r\n\r\n                        <div class=\"col-lg-6 col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"ate\">{{ 'labels.ate' | translate }}</label>\r\n                                <app-data id=\"ate\"\r\n                                        name=\"ate\"\r\n                                        [(ngModel)]=\"filtro.dataF\"\r\n                                        data-title=\"{{'labels.ate' | translate}}\"\r\n                                        [formatDateTime]=\"mascara.getFormatDataHorMinSeg\"\r\n                                        showFormatDateTime=\"true\">\r\n                                </app-data>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-6 col-md-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"placa\">{{\"labels.placa\" | translate}}</label>\r\n                                <input id=\"placa\" name=\"placa\" type=\"text\" class=\"form-control form-control-sm\"\r\n                                       [(ngModel)]=\"data.placa\">\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-12\">\r\n                            <app-pesquisa-material\r\n                                    [(ngModel)]=\"data.materialId\"\r\n                                    id=\"produto\"\r\n                                    name=\"produto\"\r\n                                    label=\"produto\"\r\n                                    modalTitle=\"pesquisaDeProduto\">\r\n                            </app-pesquisa-material>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-12\">\r\n                            <app-pesquisa-destinatario\r\n                                    [(ngModel)]=\"data.destinatarioIdCliente\"\r\n                                    id=\"cliente\"\r\n                                    name=\"cliente\"\r\n                                    label=\"cliente\"\r\n                                    modalTitle=\"pesquisaDeCliente\"\r\n                                    tipoDestinatario=\"C\"\r\n                                    showCgcCpf=\"false\"\r\n                                    showInscricao=\"false\">\r\n                            </app-pesquisa-destinatario>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-12\">\r\n                            <app-pesquisa-destinatario\r\n                                    [(ngModel)]=\"data.destinatarioIdTransportadora\"\r\n                                    id=\"destinatarioIdTransportadora\"\r\n                                    name=\"destinatarioIdTransportadora\"\r\n                                    label=\"transportadora\"\r\n                                    modalTitle=\"pesquisaTransportadora\"\r\n                                    tipoDestinatario=\"T\"\r\n                                    showCgcCpf=\"false\"\r\n                                    showInscricao=\"false\">\r\n                            </app-pesquisa-destinatario>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-12\">\r\n                            <app-pesquisa-motorista id=\"motoristaId\" label=\"motorista\" name=\"motoristaId\"\r\n                                                    [(ngModel)]=\"filtro.motoristaId\"\r\n                                                    showCursos=\"false\" showDocumentos=\"false\">\r\n                            </app-pesquisa-motorista>\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.consultar' | translate }}</button>\r\n                    <button type=\"button\" class=\"btn btn-default\"\r\n                            data-dismiss=\"modal\">{{ 'buttons.sair' | translate }}</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/consultas/consulta-historico-mov-veiculo/consulta-historico-mov-veiculo-index/consulta-historico-mov-veiculo-index.component.html":
/*!***********************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/consultas/consulta-historico-mov-veiculo/consulta-historico-mov-veiculo-index/consulta-historico-mov-veiculo-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\"\r\n                      [sisFormularioId]=\"constantes.sisFormularioId\">\r\n</app-menu-command-bar>\r\n\r\n<div class=\"section-comand-bar\">\r\n    <table id=\"dtConsulta\" class=\"table table-striped table-bordered table-hover nowrap table-sm\"></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-consulta-historico-mov-veiculo-filter [data]=\"filtro\"\r\n                                           (filtrar)=\"executaFiltro($event)\"></app-consulta-historico-mov-veiculo-filter>\r\n");

/***/ }),

/***/ "./src/app/pages/consultas/consulta-historico-mov-veiculo/consulta-historico-mov-veiculo-filter/consulta-historico-mov-veiculo-filter.component.ts":
/*!*********************************************************************************************************************************************************!*\
  !*** ./src/app/pages/consultas/consulta-historico-mov-veiculo/consulta-historico-mov-veiculo-filter/consulta-historico-mov-veiculo-filter.component.ts ***!
  \*********************************************************************************************************************************************************/
/*! exports provided: ConsultaHistoricoMovVeiculoFilterComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConsultaHistoricoMovVeiculoFilterComponent", function() { return ConsultaHistoricoMovVeiculoFilterComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.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_pages_login_login_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var _consulta_historico_mov_veiculo_model__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../consulta-historico-mov-veiculo.model */ "./src/app/pages/consultas/consulta-historico-mov-veiculo/consulta-historico-mov-veiculo.model.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 ConsultaHistoricoMovVeiculoFilterComponent = /** @class */ (function () {
    function ConsultaHistoricoMovVeiculoFilterComponent(message, loginService) {
        this.message = message;
        this.loginService = loginService;
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.mascara = new app_config_enumerables__WEBPACK_IMPORTED_MODULE_3__["Mascaras"]();
    }
    ConsultaHistoricoMovVeiculoFilterComponent.prototype.ngOnInit = function () {
        this.filtro = this.data;
        this.filtro.filialId = this.loginService.getLogin().filialId;
        this.filtro.colaboradorId = +this.loginService.getLogin().colaboradorId;
    };
    ConsultaHistoricoMovVeiculoFilterComponent.prototype.onSubmit = function (form) {
        if (form.invalid) {
            _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__["EventEmitterService"].get("formError").emit(form);
            return;
        }
        this.filtrar.emit(this.filtro);
        jQuery("#consulta-hist-mov-veic-filter-dialog").modal("hide");
    };
    ConsultaHistoricoMovVeiculoFilterComponent.ctorParameters = function () { return [
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_1__["MessageService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_4__["LoginService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", _consulta_historico_mov_veiculo_model__WEBPACK_IMPORTED_MODULE_5__["ConsultaHistoricoMovVeiculoFiltro"])
    ], ConsultaHistoricoMovVeiculoFilterComponent.prototype, "data", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], ConsultaHistoricoMovVeiculoFilterComponent.prototype, "filtrar", void 0);
    ConsultaHistoricoMovVeiculoFilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-consulta-historico-mov-veiculo-filter",
            template: __importDefault(__webpack_require__(/*! raw-loader!./consulta-historico-mov-veiculo-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/consultas/consulta-historico-mov-veiculo/consulta-historico-mov-veiculo-filter/consulta-historico-mov-veiculo-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_1__["MessageService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_4__["LoginService"]])
    ], ConsultaHistoricoMovVeiculoFilterComponent);
    return ConsultaHistoricoMovVeiculoFilterComponent;
}());



/***/ }),

/***/ "./src/app/pages/consultas/consulta-historico-mov-veiculo/consulta-historico-mov-veiculo-index/consulta-historico-mov-veiculo-index.component.ts":
/*!*******************************************************************************************************************************************************!*\
  !*** ./src/app/pages/consultas/consulta-historico-mov-veiculo/consulta-historico-mov-veiculo-index/consulta-historico-mov-veiculo-index.component.ts ***!
  \*******************************************************************************************************************************************************/
/*! exports provided: ConsultaHistoricoMovVeiculoIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConsultaHistoricoMovVeiculoIndexComponent", function() { return ConsultaHistoricoMovVeiculoIndexComponent; });
/* 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_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.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 app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var app_pages_cadastro_lote_lote_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/pages/cadastro/lote/lote.service */ "./src/app/pages/cadastro/lote/lote.service.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__ = __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 _consulta_historico_mov_veiculo_constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../consulta-historico-mov-veiculo.constants */ "./src/app/pages/consultas/consulta-historico-mov-veiculo/consulta-historico-mov-veiculo.constants.ts");
/* harmony import */ var _consulta_historico_mov_veiculo_model__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../consulta-historico-mov-veiculo.model */ "./src/app/pages/consultas/consulta-historico-mov-veiculo/consulta-historico-mov-veiculo.model.ts");
/* harmony import */ var _consulta_historico_mov_veiculo_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../consulta-historico-mov-veiculo.service */ "./src/app/pages/consultas/consulta-historico-mov-veiculo/consulta-historico-mov-veiculo.service.ts");
/* harmony import */ var _shared_services_funcoes_excel_excel_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../../shared/services/funcoes/excel/excel.service */ "./src/app/shared/services/funcoes/excel/excel.service.ts");
/* harmony import */ var _login_login_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_13__ = __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_14__ = __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 ConsultaHistoricoMovVeiculoIndexComponent = /** @class */ (function (_super) {
    __extends(ConsultaHistoricoMovVeiculoIndexComponent, _super);
    function ConsultaHistoricoMovVeiculoIndexComponent(router, datatablesService, messageService, permissoesUtils, consultaSaldoService, loteService, excelService, loginService, funcoesService) {
        var _this = _super.call(this, new _consulta_historico_mov_veiculo_constants__WEBPACK_IMPORTED_MODULE_8__["ConsultaHistoricoMovVeiculoConstants"](), funcoesService) || this;
        _this.router = router;
        _this.datatablesService = datatablesService;
        _this.messageService = messageService;
        _this.permissoesUtils = permissoesUtils;
        _this.consultaSaldoService = consultaSaldoService;
        _this.loteService = loteService;
        _this.excelService = excelService;
        _this.loginService = loginService;
        _this.funcoesService = funcoesService;
        _this.data = new _consulta_historico_mov_veiculo_model__WEBPACK_IMPORTED_MODULE_9__["ConsultaHistoricoMovVeiculo"]();
        _this.constantes = new _consulta_historico_mov_veiculo_constants__WEBPACK_IMPORTED_MODULE_8__["ConsultaHistoricoMovVeiculoConstants"]();
        _this.filtro = new _consulta_historico_mov_veiculo_model__WEBPACK_IMPORTED_MODULE_9__["ConsultaHistoricoMovVeiculoFiltro"]();
        _this.hasDados = false;
        _this.filtrar = function () {
            jQuery("#consulta-hist-mov-veic-filter-dialog").modal("show");
            _this.hasDados = false;
        };
        _this.executaFiltro = function (event) {
            _this.data = event;
            _this.onRefresh();
        };
        _this.permissoes = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 2, function () {
                _super.prototype.permissoes.call(_this, _this.constantes);
            });
        };
        _this.print = function () {
            var filter = {};
            filter = {
                dataI: _this.filtro.dataI,
                dataF: _this.filtro.dataF,
                placa: app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["StringUtilsStaticService"].toString(_this.filtro.placa),
                materialId: app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["StringUtilsStaticService"].toString(_this.filtro.materialId),
                destinatarioIdCliente: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["NumberUtilsStaticService"].toNumber(_this.filtro.destinatarioIdCliente),
                destinatarioIdTransportadora: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["NumberUtilsStaticService"].toNumber(_this.filtro.destinatarioIdTransportadora),
                motoristaId: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["NumberUtilsStaticService"].toNumber(_this.filtro.motoristaId)
            };
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 3, function () {
                var reportTitulo = {
                    titulo: _this.messageService.getTranslates('titles', 'consultaHistoricoMovVeiculo'),
                    subTitulo: ''
                };
                _this.funcoesService.reportInvoc.invocaRelatorio(_this.constantes.reportId, reportTitulo, filter);
            });
        };
        _this.export = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 4, function () {
                var headerDictionary = {
                    "placa1": "placaCarreta1",
                    "placa2": "placaCarreta2",
                    "coddest": "codigo",
                    "cliCGCCPF": "cnpjCpf",
                    "cliRazaoSocial": "razaoSocial",
                    "cliEstado": "estado",
                    "transportNome": "transportadora",
                    "transportCNPJ": "cnpj",
                    "motoristaNome": "motorista",
                    "motoristaCPF": "cpf",
                    "motoristaCNH": "cnh"
                };
                var rs = _this.dados;
                rs.forEach(function (c) {
                    delete c.filialId;
                });
                var options = {
                    headerObject: undefined,
                    headerJsonKeys: true,
                    headerDictionary: headerDictionary
                };
                _this.excelService.exportAsExcelFile(rs, 'ConsultaHistoricoMovVeiculo', options);
            });
        };
        return _this;
    }
    ConsultaHistoricoMovVeiculoIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () {
            if (!_this.loginService.isTokenExpired()) {
                jQuery("#consulta-hist-mov-veic-filter-dialog").modal("show");
            }
        }, function () {
            _this.permissoesUtils.back();
        }, true);
        _super.prototype.addFuncoes.call(this, [
            { action: 'export', func: function () { return _this.export; } },
        ]);
    };
    ConsultaHistoricoMovVeiculoIndexComponent.prototype.onRefresh = function () {
        var _this = this;
        this.consultaSaldoService.getDados(this.filtro).subscribe(function (resp) {
            _this.dados = resp;
            _this.columns = [
                _this.datatablesService.getDataString("tipo", "tipo"),
                _this.datatablesService.getDataString("placa", "placa"),
                _this.datatablesService.getDataString("placa1", "carreta1"),
                _this.datatablesService.getDataString("placa2", "carreta2"),
                _this.datatablesService.getDataDateTime("entrada", "entrada"),
                _this.datatablesService.getDataDateTime("saida", "saida"),
                _this.datatablesService.getDataString("coddest", "codigo"),
                _this.datatablesService.getDataString("cliente", "cliente"),
                _this.datatablesService.getDataString("cliRazaoSocial", "razaoSocial"),
                _this.datatablesService.getDataString("cliCGCCPF", "cnpj"),
                _this.datatablesService.getDataString("cliEstado", "estado"),
                _this.datatablesService.getDataDouble("pesoBruto", "pesoBruto"),
                _this.datatablesService.getDataDouble("pesoTara", "pesoTara"),
                _this.datatablesService.getDataDouble("pesoLiquido", "pesoLiquido"),
                _this.datatablesService.getDataString("deposito", "deposito"),
                _this.datatablesService.getDataString("material", "codigo"),
                _this.datatablesService.getDataString("produto", "produto"),
                _this.datatablesService.getDataString("transportNome", "transportadora"),
                _this.datatablesService.getDataString("transportCNPJ", "cnpj"),
                _this.datatablesService.getDataString("nrConhecimento", "nrConhecimento"),
                _this.datatablesService.getDataDateTime("dtConhecimento", "dtConhecimento"),
                _this.datatablesService.getDataString("motoristaNome", "motorista"),
                _this.datatablesService.getDataString("motoristaCPF", "cpf"),
                _this.datatablesService.getDataString("motoristaCNH", "cnh"),
            ];
            _this.datatablesService.datatable("dtConsulta", _this.columns, resp, function (aData) {
            });
            if (resp) {
                _this.hasDados = true;
            }
        });
    };
    ConsultaHistoricoMovVeiculoIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_2__["DatatablesService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"] },
        { type: _consulta_historico_mov_veiculo_service__WEBPACK_IMPORTED_MODULE_10__["ConsultaHistoricoMovVeiculoService"] },
        { type: app_pages_cadastro_lote_lote_service__WEBPACK_IMPORTED_MODULE_6__["LoteService"] },
        { type: _shared_services_funcoes_excel_excel_service__WEBPACK_IMPORTED_MODULE_11__["ExcelService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_12__["LoginService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] }
    ]; };
    ConsultaHistoricoMovVeiculoIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-consulta-historico-mov-veiculo-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./consulta-historico-mov-veiculo-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/consultas/consulta-historico-mov-veiculo/consulta-historico-mov-veiculo-index/consulta-historico-mov-veiculo-index.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_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_2__["DatatablesService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"],
            _consulta_historico_mov_veiculo_service__WEBPACK_IMPORTED_MODULE_10__["ConsultaHistoricoMovVeiculoService"],
            app_pages_cadastro_lote_lote_service__WEBPACK_IMPORTED_MODULE_6__["LoteService"],
            _shared_services_funcoes_excel_excel_service__WEBPACK_IMPORTED_MODULE_11__["ExcelService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_12__["LoginService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"]])
    ], ConsultaHistoricoMovVeiculoIndexComponent);
    return ConsultaHistoricoMovVeiculoIndexComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/consultas/consulta-historico-mov-veiculo/consulta-historico-mov-veiculo.constants.ts":
/*!************************************************************************************************************!*\
  !*** ./src/app/pages/consultas/consulta-historico-mov-veiculo/consulta-historico-mov-veiculo.constants.ts ***!
  \************************************************************************************************************/
/*! exports provided: ConsultaHistoricoMovVeiculoConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConsultaHistoricoMovVeiculoConstants", function() { return ConsultaHistoricoMovVeiculoConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var ConsultaHistoricoMovVeiculoConstants = /** @class */ (function () {
    function ConsultaHistoricoMovVeiculoConstants() {
        this.sisFormularioId = 125040;
        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.sisSistemaId = "CON";
        this.nomeForm = "titles.consultaHistoricoMovVeiculo";
        this.reportId = "CON0003";
        this.listaIndex = [
            { 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 ConsultaHistoricoMovVeiculoConstants;
}());



/***/ }),

/***/ "./src/app/pages/consultas/consulta-historico-mov-veiculo/consulta-historico-mov-veiculo.model.ts":
/*!********************************************************************************************************!*\
  !*** ./src/app/pages/consultas/consulta-historico-mov-veiculo/consulta-historico-mov-veiculo.model.ts ***!
  \********************************************************************************************************/
/*! exports provided: ConsultaHistoricoMovVeiculo, ConsultaHistoricoMovVeiculoFiltro */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConsultaHistoricoMovVeiculo", function() { return ConsultaHistoricoMovVeiculo; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConsultaHistoricoMovVeiculoFiltro", function() { return ConsultaHistoricoMovVeiculoFiltro; });
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! moment */ "./node_modules/moment/moment.js");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_0__);
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};

var ConsultaHistoricoMovVeiculo = /** @class */ (function () {
    function ConsultaHistoricoMovVeiculo() {
    }
    return ConsultaHistoricoMovVeiculo;
}());

var ConsultaHistoricoMovVeiculoFiltro = /** @class */ (function () {
    function ConsultaHistoricoMovVeiculoFiltro() {
        this.filialId = 0;
        this.colaboradorId = 0;
        this.dataI = moment__WEBPACK_IMPORTED_MODULE_0__().startOf('month').toDate();
        this.dataF = new Date();
        this.placa = "";
        this.materialId = "";
        this.destinatarioIdCliente = 0;
        this.destinatarioIdTransportadora = 0;
        this.motoristaId = 0;
    }
    return ConsultaHistoricoMovVeiculoFiltro;
}());



/***/ }),

/***/ "./src/app/pages/consultas/consulta-historico-mov-veiculo/consulta-historico-mov-veiculo.module.ts":
/*!*********************************************************************************************************!*\
  !*** ./src/app/pages/consultas/consulta-historico-mov-veiculo/consulta-historico-mov-veiculo.module.ts ***!
  \*********************************************************************************************************/
/*! exports provided: ConsultaHistoricoMovVeiculoModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConsultaHistoricoMovVeiculoModule", function() { return ConsultaHistoricoMovVeiculoModule; });
/* 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 _consulta_historico_mov_veiculo_routing_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./consulta-historico-mov-veiculo.routing.module */ "./src/app/pages/consultas/consulta-historico-mov-veiculo/consulta-historico-mov-veiculo.routing.module.ts");
/* harmony import */ var _consulta_historico_mov_veiculo_index_consulta_historico_mov_veiculo_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./consulta-historico-mov-veiculo-index/consulta-historico-mov-veiculo-index.component */ "./src/app/pages/consultas/consulta-historico-mov-veiculo/consulta-historico-mov-veiculo-index/consulta-historico-mov-veiculo-index.component.ts");
/* harmony import */ var _consulta_historico_mov_veiculo_filter_consulta_historico_mov_veiculo_filter_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./consulta-historico-mov-veiculo-filter/consulta-historico-mov-veiculo-filter.component */ "./src/app/pages/consultas/consulta-historico-mov-veiculo/consulta-historico-mov-veiculo-filter/consulta-historico-mov-veiculo-filter.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 ConsultaHistoricoMovVeiculoModule = /** @class */ (function () {
    function ConsultaHistoricoMovVeiculoModule() {
    }
    ConsultaHistoricoMovVeiculoModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"], _consulta_historico_mov_veiculo_routing_module__WEBPACK_IMPORTED_MODULE_2__["ConsultaHistoricoMovVeiculoRoutingModule"]],
            declarations: [_consulta_historico_mov_veiculo_index_consulta_historico_mov_veiculo_index_component__WEBPACK_IMPORTED_MODULE_3__["ConsultaHistoricoMovVeiculoIndexComponent"], _consulta_historico_mov_veiculo_filter_consulta_historico_mov_veiculo_filter_component__WEBPACK_IMPORTED_MODULE_4__["ConsultaHistoricoMovVeiculoFilterComponent"]]
        })
    ], ConsultaHistoricoMovVeiculoModule);
    return ConsultaHistoricoMovVeiculoModule;
}());



/***/ }),

/***/ "./src/app/pages/consultas/consulta-historico-mov-veiculo/consulta-historico-mov-veiculo.routing.module.ts":
/*!*****************************************************************************************************************!*\
  !*** ./src/app/pages/consultas/consulta-historico-mov-veiculo/consulta-historico-mov-veiculo.routing.module.ts ***!
  \*****************************************************************************************************************/
/*! exports provided: ConsultaHistoricoMovVeiculoRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConsultaHistoricoMovVeiculoRoutingModule", function() { return ConsultaHistoricoMovVeiculoRoutingModule; });
/* 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 _consulta_historico_mov_veiculo_index_consulta_historico_mov_veiculo_index_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./consulta-historico-mov-veiculo-index/consulta-historico-mov-veiculo-index.component */ "./src/app/pages/consultas/consulta-historico-mov-veiculo/consulta-historico-mov-veiculo-index/consulta-historico-mov-veiculo-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: _consulta_historico_mov_veiculo_index_consulta_historico_mov_veiculo_index_component__WEBPACK_IMPORTED_MODULE_2__["ConsultaHistoricoMovVeiculoIndexComponent"],
        data: { breadcrumb: "consultaHistoricoMovVeiculo" }
    }
];
var ConsultaHistoricoMovVeiculoRoutingModule = /** @class */ (function () {
    function ConsultaHistoricoMovVeiculoRoutingModule() {
    }
    ConsultaHistoricoMovVeiculoRoutingModule = __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"]]
        })
    ], ConsultaHistoricoMovVeiculoRoutingModule);
    return ConsultaHistoricoMovVeiculoRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/consultas/consulta-historico-mov-veiculo/consulta-historico-mov-veiculo.service.ts":
/*!**********************************************************************************************************!*\
  !*** ./src/app/pages/consultas/consulta-historico-mov-veiculo/consulta-historico-mov-veiculo.service.ts ***!
  \**********************************************************************************************************/
/*! exports provided: ConsultaHistoricoMovVeiculoService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConsultaHistoricoMovVeiculoService", function() { return ConsultaHistoricoMovVeiculoService; });
/* 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 ConsultaHistoricoMovVeiculoService = /** @class */ (function (_super) {
    __extends(ConsultaHistoricoMovVeiculoService, _super);
    function ConsultaHistoricoMovVeiculoService(http) {
        var _this = _super.call(this, http, "consultas/consultaHistoricoMovVeiculo") || this;
        _this.http = http;
        return _this;
    }
    ConsultaHistoricoMovVeiculoService.prototype.getDados = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/consultas/consultaHistoricoMovVeiculo/getDados", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    ConsultaHistoricoMovVeiculoService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"] }
    ]; };
    ConsultaHistoricoMovVeiculoService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"]])
    ], ConsultaHistoricoMovVeiculoService);
    return ConsultaHistoricoMovVeiculoService;
}(_shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_2__["BaseService"]));



/***/ })

}]);
//# sourceMappingURL=app-pages-consultas-consulta-historico-mov-veiculo-consulta-historico-mov-veiculo-module.js.map