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

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/veiculo/emissao-tfa/emissao-tfa-filter/emissao-tfa-filter.component.html":
/*!**************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/veiculo/emissao-tfa/emissao-tfa-filter/emissao-tfa-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\" id=\"emissao-tfa-filter-dialog\" tabindex=\"-1\" role=\"dialog\"\n     data-backdrop='static'>\n    <div class=\"uni-modal-dialog-md-40\">\n        <div class=\"modal-content\">\n            <div class=\"modal-header\">\n                <h6 class=\"modal-title\">{{ 'titles.emissaoTfa' | translate }}</h6>\n            </div>\n            <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\" autocomplete=\"off\">\n                <app-validacoes></app-validacoes>\n                <div class=\"modal-body\">\n                    <div class=\"row\">\n                        <div class=\"col-lg-12 col-md-12 col-sm-12\">\n                            <div class=\"row\">\n                                <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <label for=\"periodoDe\"\n                                               class=\"required\">{{\"labels.periodoDe\" | translate }}</label>\n                                        <app-data id=\"periodoDe\"\n                                                  name=\"periodoDe\"\n                                                  [(ngModel)]=\"service.filtro.dataI\"\n                                                  autofocus\n                                                  class=\"dataHora\"\n                                                  [formatDateTime]=\"mascara.getFormatData\"\n                                                  required=\"true\">\n                                        </app-data>\n                                    </div>\n                                </div>\n                                <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <label for=\"ate\"\n                                               class=\"required\">{{\"labels.ate\" | translate}}</label>\n                                        <app-data id=\"ate\"\n                                                  name=\"ate\"\n                                                  [(ngModel)]=\"service.filtro.dataF\"\n                                                  class=\"dataHora\"\n                                                  [formatDateTime]=\"mascara.getFormatData\"\n                                                  required=\"true\">\n                                        </app-data>\n                                    </div>\n                                </div>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-12 col-md-12 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <app-pesquisa-destinatario id=\"transportadora\" name=\"transportadora\" tipoDestinatario=\"T\"\n                                                           modalTitle=\"pesquisaDeTransportadora\" label=\"transportadora\"\n                                                           [(ngModel)]=\"service.filtro.destinatarioTransportadoraId\"\n                                                           showInscricao=\"false\" showCgcCpf=\"false\">\n                                </app-pesquisa-destinatario>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-12 col-md-12 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <app-pesquisa-motorista id=\"motoristaId\" name=\"motoristaId\" label=\"motorista\"\n                                    modalTitle=\"pesquisaMotorista\" [(ngModel)]=\"service.filtro.motoristaId\"\n                                    [showCpf]=\"true\" showCursos=\"false\" showDocumentos=\"false\">\n                                </app-pesquisa-motorista>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-4\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"cadastroPlacaId\">{{ 'labels.placa' | translate}}</label>\n                                <input id=\"cadastroPlacaId\" name=\"cadastroPlacaId\" maxlength=\"18\"\n                                    [(ngModel)]=\"service.filtro.cadastroPlacaId\" class=\"form-control form-control-sm\">\n                            </div>\n                        </div>\n                    </div>\n                </div>\n                <div class=\"modal-footer\">\n                    <button class=\"btn btn-success mr-1\" type=\"submit\">{{ 'buttons.pesquisar' | translate }}</button>\n                    <button type=\"button\" class=\"btn btn-default\"\n                            data-dismiss=\"modal\">{{ 'buttons.sair' | translate }}</button>\n                </div>\n            </form>\n        </div>\n    </div>\n</div>\n");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/veiculo/emissao-tfa/emissao-tfa-index/emissao-tfa-index.component.html":
/*!************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/veiculo/emissao-tfa/emissao-tfa-index/emissao-tfa-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\" [formAction]=\"actionForm\" [itemData]=\"data.regControle\"\r\n    [sisFormularioId]=\"constantes.sisFormularioId\">\r\n</app-menu-command-bar>\r\n\r\n<div class=\"section-comand-bar\">\r\n    <div class=\"table-responsive\" style=\"height: 250px; overflow: auto;\">\r\n        <table id=\"dtResumo\" class=\"table table-striped table-bordered table-hover nowrap table-sm\">\r\n            <thead>\r\n                <tr>\r\n                    <th style=\"white-space: nowrap;\">{{ 'labels.codigo' | translate}}</th>\r\n                    <th style=\"white-space: nowrap;\">{{ 'labels.chegada' | translate}}</th>\r\n                    <th style=\"white-space: nowrap;\">{{ 'labels.placaCavalo' | translate}}</th>\r\n                    <th style=\"white-space: nowrap;\">{{ 'labels.transportadora' | translate}}</th>\r\n                    <th style=\"white-space: nowrap;\">{{ 'labels.motorista' | translate}}</th>\r\n                </tr>\r\n            </thead>\r\n            <tbody>\r\n                <tr *ngFor=\"let t of service.dados; index as i\" [ngClass]=\"{'info': t == data && i == currentIndex }\"\r\n                    (click)=\"rowSelect(t,i)\">\r\n                    <td style=\"white-space: nowrap;\">{{ t.regControle }}</td>\r\n                    <td style=\"white-space: nowrap;\">{{ t.dtChegada | date: 'dd/MM/yyyy HH:mm' }}</td>\r\n                    <td style=\"white-space: nowrap;\">{{ t.placaCavalo }}</td>\r\n                    <td style=\"white-space: nowrap;\">{{ t.transportadora }}</td>\r\n                    <td style=\"white-space: nowrap;\">{{ t.motorista }}</td>\r\n                </tr>\r\n                <tr *ngIf=\"!hasDados\">\r\n                    <th colspan=\"5\" 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    <div class=\"clearfix\">&nbsp;</div>\r\n    <div class=\"table-responsive\" style=\"height: 250px; overflow: auto;\">\r\n        <table id=\"dtDetalhe\" class=\"table table-striped table-bordered table-hover nowrap table-sm\">\r\n            <thead>\r\n                <tr>\r\n                    <th style=\"white-space: nowrap;\">{{ 'labels.numeroTFA' | translate}}</th>\r\n                    <th style=\"white-space: nowrap;\">{{ 'labels.dataHoraConstatacao' | translate}}</th>\r\n                    <th style=\"white-space: nowrap;\">{{ 'labels.referente' | translate}}</th>\r\n                </tr>\r\n            </thead>\r\n            <tbody>\r\n                <tr *ngFor=\"let t of service.dadosDetalhes; index as i\"\r\n                    [ngClass]=\"{'info': t == dataTFA && i == currentIndexTFA }\" (click)=\"rowSelectTFA(t,i)\">\r\n                    <td style=\"white-space: nowrap;\">{{ t.numero }}</td>\r\n                    <td style=\"white-space: nowrap;\">{{ t.dtHrConstatacao | date: 'dd/MM/yyyy HH:mm' }}</td>\r\n                    <td style=\"white-space: nowrap;\">{{ t.referente }}</td>\r\n                </tr>\r\n                <tr *ngIf=\"!hasDadosDetalhe\">\r\n                    <th colspan=\"3\" 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</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-propriedades></app-propriedades>\r\n<app-emissao-tfa-filter (filtrar)=\"executaFiltro()\"></app-emissao-tfa-filter>\r\n<app-emissao-tfa-print-modal (outConfirma)=\"confirmaImpressao($event)\"></app-emissao-tfa-print-modal>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/veiculo/emissao-tfa/emissao-tfa-print-modal/emissao-tfa-print-modal.component.html":
/*!************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/veiculo/emissao-tfa/emissao-tfa-print-modal/emissao-tfa-print-modal.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=\"modalPrint\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\r\n  <div class=\"modal-dialog modal-sm\">\r\n    <div class=\"modal-content\">\r\n      <form class=\"form\" #frmPrint=\"ngForm\" (ngSubmit)=\"onSubmit(frmPrint)\">\r\n        <div class=\"modal-header\">\r\n          <h4 class=\"modal-title\">{{ 'titles.imprimir' | translate }}</h4>\r\n          <button type=\"button\" class=\"close\" aria-label=\"Close\" data-dismiss=\"modal\">\r\n            <span aria-hidden=\"true\">&times;</span>\r\n          </button>\r\n        </div>\r\n        <div class=\"modal-body\">\r\n          <div class=\"row\">\r\n            <div class=\"col-md-12\">\r\n              <div class=\"form-group form-group-sm\">\r\n                <label for=\"tipoImpressao\">{{'labels.tipoImpressao' | translate}}</label>\r\n                <select id=\"tipoImpressao\"\r\n                        name=\"tipoImpressao\"\r\n                        class=\"form-control form-control-sm\"\r\n                        [(ngModel)]=\"tipoSelecionado\">\r\n                    <option value=\"\">{{ 'labels.selecione' | translate}}</option>\r\n                    <option *ngFor=\"let tipo of tiposImpressao\" [value]=\"tipo.value\">{{ tipo.label | translate}}</option>\r\n                </select>\r\n              </div>\r\n            </div>\r\n          </div>\r\n        </div>\r\n        <div class=\"modal-footer\">\r\n          <button type=\"submit\" class=\"btn btn-small btn-success\" [disabled]=\"tipoSelecionado == ''\">{{ 'buttons.ok' | translate }}</button>\r\n          <button type=\"button\" class=\"btn btn-small btn-default\" data-dismiss=\"modal\">{{ 'buttons.cancelar' | translate }}</button>\r\n        </div>\r\n      </form>\r\n    </div>\r\n  </div>\r\n</div>");

/***/ }),

/***/ "./src/app/pages/veiculo/emissao-tfa/emissao-tfa-filter/emissao-tfa-filter.component.ts":
/*!**********************************************************************************************!*\
  !*** ./src/app/pages/veiculo/emissao-tfa/emissao-tfa-filter/emissao-tfa-filter.component.ts ***!
  \**********************************************************************************************/
/*! exports provided: EmissaoTfaFilterComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EmissaoTfaFilterComponent", function() { return EmissaoTfaFilterComponent; });
/* 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_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_1__ = __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_2__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _emissao_tfa_model__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../emissao-tfa.model */ "./src/app/pages/veiculo/emissao-tfa/emissao-tfa.model.ts");
/* harmony import */ var _emissao_tfa_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../emissao-tfa.constants */ "./src/app/pages/veiculo/emissao-tfa/emissao-tfa.constants.ts");
/* harmony import */ var _emissao_tfa_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../emissao-tfa.service */ "./src/app/pages/veiculo/emissao-tfa/emissao-tfa.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 EmissaoTfaFilterComponent = /** @class */ (function () {
    function EmissaoTfaFilterComponent(service) {
        this.service = service;
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.mascara = new app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["Mascaras"]();
        this.constantes = new _emissao_tfa_constants__WEBPACK_IMPORTED_MODULE_4__["EmissaoTfaConstants"]();
    }
    EmissaoTfaFilterComponent.prototype.ngOnInit = function () {
        if (!this.service.filtro) {
            this.service.filtro = new _emissao_tfa_model__WEBPACK_IMPORTED_MODULE_3__["EmissaoTfaFilter"]();
        }
    };
    EmissaoTfaFilterComponent.prototype.onSubmit = function (form) {
        if (form.invalid) {
            _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_1__["EventEmitterService"].get("formError").emit(form);
            return;
        }
        this.filtrar.emit(this.filtro);
        jQuery("#emissao-tfa-filter-dialog").modal("hide");
    };
    EmissaoTfaFilterComponent.ctorParameters = function () { return [
        { type: _emissao_tfa_service__WEBPACK_IMPORTED_MODULE_5__["EmissaoTfaService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], EmissaoTfaFilterComponent.prototype, "filtrar", void 0);
    EmissaoTfaFilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-emissao-tfa-filter",
            template: __importDefault(__webpack_require__(/*! raw-loader!./emissao-tfa-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/veiculo/emissao-tfa/emissao-tfa-filter/emissao-tfa-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_emissao_tfa_service__WEBPACK_IMPORTED_MODULE_5__["EmissaoTfaService"]])
    ], EmissaoTfaFilterComponent);
    return EmissaoTfaFilterComponent;
}());



/***/ }),

/***/ "./src/app/pages/veiculo/emissao-tfa/emissao-tfa-index/emissao-tfa-index.component.ts":
/*!********************************************************************************************!*\
  !*** ./src/app/pages/veiculo/emissao-tfa/emissao-tfa-index/emissao-tfa-index.component.ts ***!
  \********************************************************************************************/
/*! exports provided: EmissaoTfaIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EmissaoTfaIndexComponent", function() { return EmissaoTfaIndexComponent; });
/* 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_message_message_service__WEBPACK_IMPORTED_MODULE_2__ = __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_3__ = __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_4__ = __webpack_require__(/*! app/shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.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_pages_login_login_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var _emissao_tfa_model__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../emissao-tfa.model */ "./src/app/pages/veiculo/emissao-tfa/emissao-tfa.model.ts");
/* harmony import */ var _emissao_tfa_constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../emissao-tfa.constants */ "./src/app/pages/veiculo/emissao-tfa/emissao-tfa.constants.ts");
/* harmony import */ var _emissao_tfa_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../emissao-tfa.service */ "./src/app/pages/veiculo/emissao-tfa/emissao-tfa.service.ts");
/* harmony import */ var app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! app/shared/services/funcoes/number-utils/number-utils.static.service */ "./src/app/shared/services/funcoes/number-utils/number-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 EmissaoTfaIndexComponent = /** @class */ (function (_super) {
    __extends(EmissaoTfaIndexComponent, _super);
    function EmissaoTfaIndexComponent(router, funcoesService, messageService, permissoesUtils, service, loginService) {
        var _this = _super.call(this, new _emissao_tfa_constants__WEBPACK_IMPORTED_MODULE_8__["EmissaoTfaConstants"](), funcoesService) || this;
        _this.router = router;
        _this.funcoesService = funcoesService;
        _this.messageService = messageService;
        _this.permissoesUtils = permissoesUtils;
        _this.service = service;
        _this.loginService = loginService;
        _this.data = new _emissao_tfa_model__WEBPACK_IMPORTED_MODULE_7__["EmissaoTfaDto"]();
        _this.dataTFA = new _emissao_tfa_model__WEBPACK_IMPORTED_MODULE_7__["EmissaoDadosTFADto"]();
        _this.constantes = new _emissao_tfa_constants__WEBPACK_IMPORTED_MODULE_8__["EmissaoTfaConstants"]();
        _this.hasDados = false;
        _this.hasDadosDetalhe = false;
        _this.target = _this.funcoesService.getTargetLocation();
        _this.refresh = function () {
            _this.service.getDados(_this.service.filtro).subscribe(function (resp) {
                _this.service.dados = resp;
                _this.hasDados = resp && resp.length > 0;
                if (_this.hasDados) {
                    _this.rowSelect(_this.service.dados[0], 0);
                }
            });
        };
        _this.permissoes = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 2, function () {
                _super.prototype.permissoes.call(_this, _this.constantes);
            });
        };
        _this._print = function () {
            if (!_this.itemSelecionado())
                return;
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 3, function () { return jQuery("#modalPrint").modal("show"); });
        };
        return _this;
    }
    EmissaoTfaIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        var base = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () {
            base.geraDados = false;
            base.refresh();
            if (!base.service.dados || base.service.dados.length === 0) {
                if (!base.loginService.isTokenExpired()) {
                    jQuery("#emissao-tfa-filter-dialog").modal("show");
                }
            }
        }, function () { return _this.permissoesUtils.back(); }, true);
        _super.prototype.addFuncoes.call(this, [
            { action: "_print", func: function () { return _this._print; } },
        ]);
    };
    EmissaoTfaIndexComponent.prototype.filtrar = function () {
        jQuery("#emissao-tfa-filter-dialog").modal("show");
    };
    EmissaoTfaIndexComponent.prototype.executaFiltro = function () {
        this.refresh();
    };
    EmissaoTfaIndexComponent.prototype.rowSelect = function (item, index) {
        var _this = this;
        this.currentIndex = index;
        this.data = item;
        this.service.getDadosTFA({ regControle: this.data.regControle }).subscribe(function (resp) {
            _this.service.dadosDetalhes = resp;
            _this.hasDadosDetalhe = resp && resp.length > 0;
            _this.dataTFA = new _emissao_tfa_model__WEBPACK_IMPORTED_MODULE_7__["EmissaoDadosTFADto"]();
        });
    };
    EmissaoTfaIndexComponent.prototype.rowSelectTFA = function (item, index) {
        this.currentIndexTFA = index;
        this.dataTFA = item;
    };
    EmissaoTfaIndexComponent.prototype.itemSelecionado = function () {
        if (app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["NumberUtilsStaticService"].isNotPositive(this.data.regControle)) {
            this.messageService.warning("titles.emissaoTfa", "messages.selecioneUmRegistro");
            return false;
        }
        return true;
    };
    EmissaoTfaIndexComponent.prototype.itemTFASelecionado = function () {
        if (app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["NumberUtilsStaticService"].isNotPositive(this.dataTFA.codTfa)) {
            this.messageService.warning("titles.emissaoTfa", "messages.selecioneUmNumeroTFA");
            return false;
        }
        return true;
    };
    EmissaoTfaIndexComponent.prototype.confirmaImpressao = function (tipoImpressao) {
        switch (tipoImpressao) {
            case "todosTFAs":
                this.printTodosTFAs();
                break;
            case "tFASelecionado":
                this.printTFASelecionado();
                break;
            default:
                break;
        }
    };
    EmissaoTfaIndexComponent.prototype.printTodosTFAs = function () {
        if (!this.itemSelecionado())
            return;
        var reportTitulo = { titulo: 'Termo de Faktas e Avarias', subTitulo: '' };
        var modRel = this.constantes.reportId;
        this.funcoesService.reportInvoc.invocaRelatorio(modRel, reportTitulo, {
            filialId: this.loginService.getLogin().filialId,
            regControle: this.funcoesService.getValue(this.data.regControle, "I"),
            codTfa: 0
        });
    };
    EmissaoTfaIndexComponent.prototype.printTFASelecionado = function () {
        if (!this.itemTFASelecionado())
            return;
        var reportTitulo = { titulo: 'Termo de Faktas e Avarias', subTitulo: '' };
        var modRel = this.constantes.reportId;
        this.funcoesService.reportInvoc.invocaRelatorio(modRel, reportTitulo, {
            filialId: this.loginService.getLogin().filialId,
            regControle: 0,
            codTfa: this.funcoesService.getValue(this.dataTFA.codTfa, "I")
        });
    };
    EmissaoTfaIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_5__["PermissoesUtilsService"] },
        { type: _emissao_tfa_service__WEBPACK_IMPORTED_MODULE_9__["EmissaoTfaService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_6__["LoginService"] }
    ]; };
    EmissaoTfaIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-emissao-tfa-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./emissao-tfa-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/veiculo/emissao-tfa/emissao-tfa-index/emissao-tfa-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_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_5__["PermissoesUtilsService"],
            _emissao_tfa_service__WEBPACK_IMPORTED_MODULE_9__["EmissaoTfaService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_6__["LoginService"]])
    ], EmissaoTfaIndexComponent);
    return EmissaoTfaIndexComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_4__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/veiculo/emissao-tfa/emissao-tfa-print-modal/emissao-tfa-print-modal.component.ts":
/*!********************************************************************************************************!*\
  !*** ./src/app/pages/veiculo/emissao-tfa/emissao-tfa-print-modal/emissao-tfa-print-modal.component.ts ***!
  \********************************************************************************************************/
/*! exports provided: EmissaoTfaPrintModalComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EmissaoTfaPrintModalComponent", function() { return EmissaoTfaPrintModalComponent; });
/* 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_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__ = __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_funcoes_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _emissao_tfa_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../emissao-tfa.service */ "./src/app/pages/veiculo/emissao-tfa/emissao-tfa.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 EmissaoTfaPrintModalComponent = /** @class */ (function () {
    function EmissaoTfaPrintModalComponent(router, funcoes, service) {
        this.router = router;
        this.funcoes = funcoes;
        this.service = service;
        this.outConfirma = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
    }
    EmissaoTfaPrintModalComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.router.events.subscribe(function (event) {
            var params = _this.funcoes.formParams.getParams(_this.router, event);
        });
        this.tipoSelecionado = "";
        this.initListaTiposImpressao();
    };
    EmissaoTfaPrintModalComponent.prototype.initListaTiposImpressao = function () {
        this.tiposImpressao = [
            { value: "todosTFAs", label: "labels.todosTFAs" },
            { value: "tFASelecionado", label: "labels.tFASelecionado" }
        ];
    };
    EmissaoTfaPrintModalComponent.prototype.onSubmit = function (form) {
        if (form.invalid) {
            app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__["EventEmitterService"].get("formError").emit(form);
            return;
        }
        this.outConfirma.emit(this.tipoSelecionado);
        this.tipoSelecionado = "";
        jQuery("#modalPrint").modal("hide");
    };
    EmissaoTfaPrintModalComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"] },
        { type: _emissao_tfa_service__WEBPACK_IMPORTED_MODULE_4__["EmissaoTfaService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], EmissaoTfaPrintModalComponent.prototype, "outConfirma", void 0);
    EmissaoTfaPrintModalComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-emissao-tfa-print-modal",
            template: __importDefault(__webpack_require__(/*! raw-loader!./emissao-tfa-print-modal.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/veiculo/emissao-tfa/emissao-tfa-print-modal/emissao-tfa-print-modal.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_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"],
            _emissao_tfa_service__WEBPACK_IMPORTED_MODULE_4__["EmissaoTfaService"]])
    ], EmissaoTfaPrintModalComponent);
    return EmissaoTfaPrintModalComponent;
}());



/***/ }),

/***/ "./src/app/pages/veiculo/emissao-tfa/emissao-tfa.constants.ts":
/*!********************************************************************!*\
  !*** ./src/app/pages/veiculo/emissao-tfa/emissao-tfa.constants.ts ***!
  \********************************************************************/
/*! exports provided: EmissaoTfaConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EmissaoTfaConstants", function() { return EmissaoTfaConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var EmissaoTfaConstants = /** @class */ (function () {
    function EmissaoTfaConstants() {
        this.sisFormularioId = 355013;
        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" },
        ];
        this.sisSistemaId = "CTV";
        this.nomeForm = "titles.emissaoTfa";
        this.reportId = "CTV0011";
        this.reportTitulo = { "titulo": "", "subTitulo": "" };
        this.listaIndex = [
            { title: 'Imprimir', action: '_print', icon: "icon-printer", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { 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: 'Movimento' },
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
        ];
        this.listaForm = [
            { title: 'Voltar', action: 'back', icon: "icon-arrow-left", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
        ];
    }
    return EmissaoTfaConstants;
}());



/***/ }),

/***/ "./src/app/pages/veiculo/emissao-tfa/emissao-tfa.model.ts":
/*!****************************************************************!*\
  !*** ./src/app/pages/veiculo/emissao-tfa/emissao-tfa.model.ts ***!
  \****************************************************************/
/*! exports provided: EmissaoTfaFilter, EmissaoTfaDto, EmissaoDadosTFADto */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EmissaoTfaFilter", function() { return EmissaoTfaFilter; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EmissaoTfaDto", function() { return EmissaoTfaDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EmissaoDadosTFADto", function() { return EmissaoDadosTFADto; });
/* harmony import */ var app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_0__ = __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");
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};

var EmissaoTfaFilter = /** @class */ (function () {
    function EmissaoTfaFilter() {
        var dataAtual = new Date();
        this.dataI = app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["DateTimeUtilsStaticService"].addDays(dataAtual, -1);
        this.dataF = dataAtual;
        this.motoristaId = 0;
        this.destinatarioTransportadoraId = 0;
        this.cadastroPlacaId = "";
    }
    return EmissaoTfaFilter;
}());

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

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



/***/ }),

/***/ "./src/app/pages/veiculo/emissao-tfa/emissao-tfa.module.ts":
/*!*****************************************************************!*\
  !*** ./src/app/pages/veiculo/emissao-tfa/emissao-tfa.module.ts ***!
  \*****************************************************************/
/*! exports provided: EmissaoTfaModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EmissaoTfaModule", function() { return EmissaoTfaModule; });
/* 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 _emissao_tfa_filter_emissao_tfa_filter_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./emissao-tfa-filter/emissao-tfa-filter.component */ "./src/app/pages/veiculo/emissao-tfa/emissao-tfa-filter/emissao-tfa-filter.component.ts");
/* harmony import */ var _emissao_tfa_index_emissao_tfa_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./emissao-tfa-index/emissao-tfa-index.component */ "./src/app/pages/veiculo/emissao-tfa/emissao-tfa-index/emissao-tfa-index.component.ts");
/* harmony import */ var _emissao_tfa_print_modal_emissao_tfa_print_modal_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./emissao-tfa-print-modal/emissao-tfa-print-modal.component */ "./src/app/pages/veiculo/emissao-tfa/emissao-tfa-print-modal/emissao-tfa-print-modal.component.ts");
/* harmony import */ var _emissao_tfa_routing_module__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./emissao-tfa.routing.module */ "./src/app/pages/veiculo/emissao-tfa/emissao-tfa.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 EmissaoTfaModule = /** @class */ (function () {
    function EmissaoTfaModule() {
    }
    EmissaoTfaModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"], _emissao_tfa_routing_module__WEBPACK_IMPORTED_MODULE_5__["EmissaoTfaRoutingModule"]],
            declarations: [_emissao_tfa_index_emissao_tfa_index_component__WEBPACK_IMPORTED_MODULE_3__["EmissaoTfaIndexComponent"], _emissao_tfa_filter_emissao_tfa_filter_component__WEBPACK_IMPORTED_MODULE_2__["EmissaoTfaFilterComponent"], _emissao_tfa_print_modal_emissao_tfa_print_modal_component__WEBPACK_IMPORTED_MODULE_4__["EmissaoTfaPrintModalComponent"]]
        })
    ], EmissaoTfaModule);
    return EmissaoTfaModule;
}());



/***/ }),

/***/ "./src/app/pages/veiculo/emissao-tfa/emissao-tfa.routing.module.ts":
/*!*************************************************************************!*\
  !*** ./src/app/pages/veiculo/emissao-tfa/emissao-tfa.routing.module.ts ***!
  \*************************************************************************/
/*! exports provided: EmissaoTfaRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EmissaoTfaRoutingModule", function() { return EmissaoTfaRoutingModule; });
/* 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 _emissao_tfa_index_emissao_tfa_index_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./emissao-tfa-index/emissao-tfa-index.component */ "./src/app/pages/veiculo/emissao-tfa/emissao-tfa-index/emissao-tfa-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: _emissao_tfa_index_emissao_tfa_index_component__WEBPACK_IMPORTED_MODULE_2__["EmissaoTfaIndexComponent"],
        data: { breadcrumb: "emissaoTfa" }
    }
];
var EmissaoTfaRoutingModule = /** @class */ (function () {
    function EmissaoTfaRoutingModule() {
    }
    EmissaoTfaRoutingModule = __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"]]
        })
    ], EmissaoTfaRoutingModule);
    return EmissaoTfaRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/veiculo/emissao-tfa/emissao-tfa.service.ts":
/*!******************************************************************!*\
  !*** ./src/app/pages/veiculo/emissao-tfa/emissao-tfa.service.ts ***!
  \******************************************************************/
/*! exports provided: EmissaoTfaService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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



/***/ })

}]);
//# sourceMappingURL=app-pages-veiculo-emissao-tfa-emissao-tfa-module.js.map