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

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/veiculo/baixa-tag/baixa-tag-index/baixa-tag-index.component.html":
/*!******************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/veiculo/baixa-tag/baixa-tag-index/baixa-tag-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.numCracha\"\n    [sisFormularioId]=\"constantes.sisFormularioId\">\n</app-menu-command-bar>\n\n<div class=\"row\">\n    <div class=\"col-lg-12\">\n        <div class=\"section-comand-bar\">\n            <app-form-legenda></app-form-legenda>\n            <div class=\"card-body widget-body\">\n                <form class=\"form\" #f=\"ngForm\" (ngSubmit)=\"onSubmit(f)\">\n                    <app-validacoes></app-validacoes>\n                    <div class=\"row\">\n                        <div class=\"col-lg-2 col-md-6 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"numeroTag\" class=\"required\"> {{ 'labels.numeroTag' | translate }}\n                                </label>\n                                <input autofocus id=\"numeroTag\" name=\"numeroTag\" maxlength=\"10\" required=\"true\"\n                                    [(ngModel)]=\"data.numCracha\" class=\"form-control form-control-sm text-right\"\n                                    (keypress)=\"funcoesService.apenasNumeros($event)\" type=\"text\"\n                                    (blur)=\"getDadosByTag()\" />\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-2 col-md-4 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"regControle\">{{ 'labels.regControle' | translate}}</label>\n                                <input id=\"regControle\" name=\"regControle\" type=\"text\" [(ngModel)]=\"data.regControle\"\n                                    class=\"form-control form-control-sm\" [disabled]=\"true\">\n                            </div>\n                        </div>\n                        <div class=\"col-lg-2 col-md-4 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"codCheckList\">{{ 'labels.checklist' | translate}}</label>\n                                <input id=\"codCheckList\" name=\"codCheckList\" type=\"text\" [(ngModel)]=\"data.codCheckList\"\n                                    class=\"form-control form-control-sm\" [disabled]=\"true\">\n                            </div>\n                        </div>\n                    </div>\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=\"motorista\">{{ 'labels.motorista' | translate}}</label>\n                                <input id=\"motorista\" name=\"motorista\" type=\"text\" [(ngModel)]=\"data.descrMotorista\"\n                                    class=\"form-control form-control-sm\" [disabled]=\"true\">\n                            </div>\n                        </div>\n                    </div>\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=\"transportadora\">{{ 'labels.transportadora' | translate}}</label>\n                                <input id=\"transportadora\" name=\"transportadora\" type=\"text\"\n                                    [(ngModel)]=\"data.descrTransportadora\" class=\"form-control form-control-sm\"\n                                    [disabled]=\"true\">\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-2 col-md-4 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"placaCavalo\">{{'labels.placaCavalo' | translate}}</label>\n                                <input type=\"text\" id=\"placaCavalo\" name=\"placaCavalo\"\n                                    class=\"form-control form-control-sm uppercase\" [(ngModel)]=\"data.placaCavalo\"\n                                    [disabled]=\"true\">\n                            </div>\n                        </div>\n                        <div class=\"col-lg-2 col-md-4 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"placaCarreta1\">{{'labels.placaCarreta1' | translate}}</label>\n                                <input type=\"text\" id=\"placaCarreta1\" name=\"placaCarreta1\"\n                                    class=\"form-control form-control-sm uppercase\" [(ngModel)]=\"data.placaCarreta1\"\n                                    [disabled]=\"true\">\n                            </div>\n                        </div>\n                        <div class=\"col-lg-2 col-md-4 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"placaCarreta2\">{{'labels.placaCarreta2' | translate}}</label>\n                                <input type=\"text\" id=\"placaCarreta2\" name=\"placaCarreta2\"\n                                    class=\"form-control form-control-sm uppercase\" [(ngModel)]=\"data.placaCarreta2\"\n                                    [disabled]=\"true\">\n                            </div>\n                        </div>\n                    </div>\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=\"cliente\">{{ 'labels.cliente' | translate}}</label>\n                                <input id=\"cliente\" name=\"cliente\" type=\"text\" [(ngModel)]=\"data.descrCliente\"\n                                    class=\"form-control form-control-sm\" [disabled]=\"true\">\n                            </div>\n                        </div>\n                    </div>\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=\"entrVeiculo\"> {{ 'labels.entrVeiculo' | translate }} </label>\n                                <div class=\"row\">\n                                    <div class=\"col-6\">\n                                        <input id=\"entrVeiculo\" name=\"entrVeiculo\" type=\"text\"\n                                            [(ngModel)]=\"data.operInc\" class=\"form-control form-control-sm\"\n                                            [disabled]=\"true\">\n                                    </div>\n                                    <div class=\"col-6\">\n                                        <app-data-h-m-s id=\"dtOperInc\" name=\"dtOperInc\" [(ngModel)]=\"data.dtOperInc\"\n                                            [disabled]=\"true\">\n                                        </app-data-h-m-s>\n                                    </div>\n                                </div>\n                            </div>\n                        </div>\n                    </div>\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=\"liberacaoTag\"> {{ 'labels.liberacaoTag' | translate }} </label>\n                                <div class=\"row\">\n                                    <div class=\"col-6\">\n                                        <input id=\"liberacaoTag\" name=\"liberacaoTag\" type=\"text\"\n                                            [(ngModel)]=\"data.operPort\" class=\"form-control form-control-sm\"\n                                            [disabled]=\"true\">\n                                    </div>\n                                    <div class=\"col-6\">\n                                        <app-data-h-m-s id=\"dtOperPort\" name=\"dtOperPort\" [(ngModel)]=\"data.dtOperPort\"\n                                            [disabled]=\"true\">\n                                        </app-data-h-m-s>\n                                    </div>\n                                </div>\n                            </div>\n                        </div>\n                    </div>\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=\"filial\">{{ 'labels.filial' | translate}}</label>\n                                <input id=\"filial\" name=\"filial\" type=\"text\" [(ngModel)]=\"data.descrFilial\"\n                                    class=\"form-control form-control-sm\" [disabled]=\"true\">\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                            <div class=\"painel-mensagem border py-4 text-center fw-bold\"\n                                [ngClass]=\"[corPainel, piscar ? 'piscar' : '']\">\n                                {{ mensagem }}\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"clearfix\">&nbsp;</div>\n                    <div class=\"row\">\n                        <div class=\"col-12\">\n                            <div class=\"form-group\">\n                                <button class=\"btn btn-success mr-2\" type=\"submit\" [disabled]=\"data.acao !== 0\">\n                                    <i class=\"fa fa-check\"></i>\n                                    {{ 'buttons.liberar' | translate }}\n                                </button>\n                            </div>\n                        </div>\n                    </div>\n                </form>\n            </div>\n        </div>\n    </div>\n</div>\n\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BaixaTagIndexComponent", function() { return BaixaTagIndexComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _login_login_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _baixa_tag_model__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../baixa-tag.model */ "./src/app/pages/veiculo/baixa-tag/baixa-tag.model.ts");
/* harmony import */ var _baixa_tag_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../baixa-tag.constants */ "./src/app/pages/veiculo/baixa-tag/baixa-tag.constants.ts");
/* harmony import */ var _baixa_tag_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../baixa-tag.service */ "./src/app/pages/veiculo/baixa-tag/baixa-tag.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 __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
    return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
    function verb(n) { return function (v) { return step([n, v]); }; }
    function step(op) {
        if (f) throw new TypeError("Generator is already executing.");
        while (_) try {
            if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
            if (y = 0, t) op = [op[0] & 2, t.value];
            switch (op[0]) {
                case 0: case 1: t = op; break;
                case 4: _.label++; return { value: op[1], done: false };
                case 5: _.label++; y = op[1]; op = [0]; continue;
                case 7: op = _.ops.pop(); _.trys.pop(); continue;
                default:
                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                    if (t[2]) _.ops.pop();
                    _.trys.pop(); continue;
            }
            op = body.call(thisArg, _);
        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
    }
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};











var BaixaTagIndexComponent = /** @class */ (function (_super) {
    __extends(BaixaTagIndexComponent, _super);
    function BaixaTagIndexComponent(router, message, activatedRoute, service, funcoes, loginService, permissoesUtils) {
        var _this = _super.call(this, new _baixa_tag_constants__WEBPACK_IMPORTED_MODULE_9__["BaixaTagConstants"](), funcoes) || this;
        _this.router = router;
        _this.message = message;
        _this.activatedRoute = activatedRoute;
        _this.service = service;
        _this.funcoes = funcoes;
        _this.loginService = loginService;
        _this.permissoesUtils = permissoesUtils;
        _this.data = new _baixa_tag_model__WEBPACK_IMPORTED_MODULE_8__["BaixaTag"]();
        _this.mensagens = [];
        _this.constantes = new _baixa_tag_constants__WEBPACK_IMPORTED_MODULE_9__["BaixaTagConstants"]();
        _this.target = _this.funcoes.getTargetLocation();
        _this.mensagemPadrao = "Informe o Número de Crachá";
        _this.mensagem = _this.mensagemPadrao;
        _this.corPainel = '';
        _this.piscar = false;
        return _this;
    }
    BaixaTagIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () {
            if (!_this.loginService.isTokenExpired()) {
                _this.data = new _baixa_tag_model__WEBPACK_IMPORTED_MODULE_8__["BaixaTag"]();
                _this.mensagemPadrao = _this.message.translate('messages.informeNumeroCracha');
                _this.mensagem = _this.mensagemPadrao;
            }
        }, function () {
            _this.permissoesUtils.back();
        }, true);
    };
    BaixaTagIndexComponent.prototype.onSubmit = function (form) {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () { return __awaiter(_this, void 0, void 0, function () {
            var _this = this;
            return __generator(this, function (_a) {
                _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_4__["EventEmitterService"].get("formError").emit(form);
                if (form.invalid) {
                    this.funcoes.backToTop();
                    return [2 /*return*/];
                }
                if (this.data.acao !== 0) {
                    this.message.warning("titles.baixaTag", this.message.translate("messages.acaoNaoPermitidaVeiculoSituacao", { descrSitVeiculo: this.data.descrSitVeiculo }));
                    this.clearData();
                    return [2 /*return*/];
                }
                this.mensagem = this.message.translate('messages.gravandoLiberacao');
                this.service
                    .liberarTag(this.data.regControle)
                    .subscribe(function (validationResult) {
                    _this.mensagens = _this.message.validationResult(validationResult);
                    if (!validationResult.isValid) {
                        _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_4__["EventEmitterService"].get("backError").emit(_this.mensagens);
                        _this.funcoes.backToTop();
                    }
                    else {
                        _this.message.saveSuccess("titles.baixaTag");
                        _this.clearData();
                        _this.mensagem = _this.mensagemPadrao;
                    }
                });
                return [2 /*return*/];
            });
        }); });
    };
    BaixaTagIndexComponent.prototype.getDadosByTag = function () {
        var _this = this;
        _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_4__["EventEmitterService"].get("formError").emit();
        if (!this.data.numCracha) {
            this.clearData();
            this.mensagem = this.mensagemPadrao;
            return;
        }
        this.service.getDadosByTag(this.data.numCracha).subscribe(function (resp) {
            if (!!resp) {
                _this.data = resp;
                _this.trataMensagem(_this.data);
            }
            else {
                _this.clearData(_this.data.numCracha);
                _this.mensagem = _this.message.translate('messages.tagNaoEncontrado');
            }
        });
    };
    BaixaTagIndexComponent.prototype.trataMensagem = function (data) {
        switch (data.acao) {
            case 0:
                this.mensagem = this.message.translate('messages.liberacaoAutorizada');
                break;
            case 1:
                this.mensagem = this.message.translate('messages.veiculoLiberado');
                break;
            default:
                this.mensagem = !!data.descrSitVeiculo ? data.descrSitVeiculo.trim() : this.mensagemPadrao;
                break;
        }
        if (data.acao === 9) {
            this.exibirMensagem('amarelo');
        }
        else if (data.acao !== 0) {
            this.exibirMensagem('vermelho');
        }
    };
    BaixaTagIndexComponent.prototype.exibirMensagem = function (cor) {
        var _this = this;
        if (cor === void 0) { cor = ''; }
        this.corPainel = cor;
        this.piscar = true;
        setTimeout(function () {
            _this.corPainel = '';
            _this.piscar = false;
            _this.clearData();
            _this.mensagem = _this.mensagemPadrao;
        }, 3000);
    };
    BaixaTagIndexComponent.prototype.clearData = function (numCracha) {
        if (numCracha === void 0) { numCracha = ''; }
        this.data = new _baixa_tag_model__WEBPACK_IMPORTED_MODULE_8__["BaixaTag"]();
        this.data.numCracha = numCracha;
        this.funcoes.focus('numeroTag');
    };
    BaixaTagIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    BaixaTagIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"] },
        { type: _baixa_tag_service__WEBPACK_IMPORTED_MODULE_10__["BaixaTagService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_6__["LoginService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"] }
    ]; };
    BaixaTagIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-baixa-tag-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./baixa-tag-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/veiculo/baixa-tag/baixa-tag-index/baixa-tag-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./baixa-tag-index.scss */ "./src/app/pages/veiculo/baixa-tag/baixa-tag-index/baixa-tag-index.scss")).default]
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"],
            _baixa_tag_service__WEBPACK_IMPORTED_MODULE_10__["BaixaTagService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_6__["LoginService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"]])
    ], BaixaTagIndexComponent);
    return BaixaTagIndexComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/veiculo/baixa-tag/baixa-tag-index/baixa-tag-index.scss":
/*!******************************************************************************!*\
  !*** ./src/app/pages/veiculo/baixa-tag/baixa-tag-index/baixa-tag-index.scss ***!
  \******************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = (".painel-mensagem {\n  min-height: 70px;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  padding: 16px;\n  font-size: 1.5rem;\n}\n\n.painel-mensagem.amarelo {\n  background-color: yellow;\n}\n\n.painel-mensagem.vermelho {\n  background-color: red;\n  color: #FFFFFF;\n}\n\n.painel-mensagem.piscar {\n  -webkit-animation: piscar-fundo 0.13s infinite alternate;\n          animation: piscar-fundo 0.13s infinite alternate;\n}\n\n@-webkit-keyframes piscar-fundo {\n  from {\n    background-color: transparent;\n  }\n  to {\n    /* usa a cor da classe (amarelo/vermelho) */\n  }\n}\n\n@keyframes piscar-fundo {\n  from {\n    background-color: transparent;\n  }\n  to {\n    /* usa a cor da classe (amarelo/vermelho) */\n  }\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvcGFnZXMvdmVpY3Vsby9iYWl4YS10YWcvYmFpeGEtdGFnLWluZGV4L0M6XFxDb3Jwb3JhdGVcXENvcnBvcmF0ZVdlYkRlc2VudlxcX3VuaXNvbHV0aW9uL3NyY1xcYXBwXFxwYWdlc1xcdmVpY3Vsb1xcYmFpeGEtdGFnXFxiYWl4YS10YWctaW5kZXhcXGJhaXhhLXRhZy1pbmRleC5zY3NzIiwic3JjL2FwcC9wYWdlcy92ZWljdWxvL2JhaXhhLXRhZy9iYWl4YS10YWctaW5kZXgvYmFpeGEtdGFnLWluZGV4LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRSxnQkFBQTtFQUNBLGFBQUE7RUFDQSxtQkFBQTtFQUNBLHVCQUFBO0VBQ0EsYUFBQTtFQUNBLGlCQUFBO0FDQ0Y7O0FERUE7RUFDRSx3QkFBQTtBQ0NGOztBREVBO0VBQ0UscUJBQUE7RUFDQSxjQUFBO0FDQ0Y7O0FERUE7RUFDRSx3REFBQTtVQUFBLGdEQUFBO0FDQ0Y7O0FERUE7RUFDRTtJQUNFLDZCQUFBO0VDQ0Y7RURDQTtJQUNFLDJDQUFBO0VDQ0Y7QUFDRjs7QURQQTtFQUNFO0lBQ0UsNkJBQUE7RUNDRjtFRENBO0lBQ0UsMkNBQUE7RUNDRjtBQUNGIiwiZmlsZSI6InNyYy9hcHAvcGFnZXMvdmVpY3Vsby9iYWl4YS10YWcvYmFpeGEtdGFnLWluZGV4L2JhaXhhLXRhZy1pbmRleC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLnBhaW5lbC1tZW5zYWdlbSB7XHJcbiAgbWluLWhlaWdodDogNzBweDtcclxuICBkaXNwbGF5OiBmbGV4O1xyXG4gIGFsaWduLWl0ZW1zOiBjZW50ZXI7XHJcbiAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XHJcbiAgcGFkZGluZzogMTZweDsgICAgIFxyXG4gIGZvbnQtc2l6ZTogMS41cmVtO1xyXG59XHJcblxyXG4ucGFpbmVsLW1lbnNhZ2VtLmFtYXJlbG8ge1xyXG4gIGJhY2tncm91bmQtY29sb3I6IHllbGxvdztcclxufVxyXG5cclxuLnBhaW5lbC1tZW5zYWdlbS52ZXJtZWxobyB7XHJcbiAgYmFja2dyb3VuZC1jb2xvcjogcmVkO1xyXG4gIGNvbG9yOiAjRkZGRkZGOyBcclxufVxyXG5cclxuLnBhaW5lbC1tZW5zYWdlbS5waXNjYXIge1xyXG4gIGFuaW1hdGlvbjogcGlzY2FyLWZ1bmRvIDAuMTNzIGluZmluaXRlIGFsdGVybmF0ZTtcclxufVxyXG5cclxuQGtleWZyYW1lcyBwaXNjYXItZnVuZG8ge1xyXG4gIGZyb20ge1xyXG4gICAgYmFja2dyb3VuZC1jb2xvcjogdHJhbnNwYXJlbnQ7XHJcbiAgfVxyXG4gIHRvIHtcclxuICAgIC8qIHVzYSBhIGNvciBkYSBjbGFzc2UgKGFtYXJlbG8vdmVybWVsaG8pICovXHJcbiAgfVxyXG59XHJcbiIsIi5wYWluZWwtbWVuc2FnZW0ge1xuICBtaW4taGVpZ2h0OiA3MHB4O1xuICBkaXNwbGF5OiBmbGV4O1xuICBhbGlnbi1pdGVtczogY2VudGVyO1xuICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgcGFkZGluZzogMTZweDtcbiAgZm9udC1zaXplOiAxLjVyZW07XG59XG5cbi5wYWluZWwtbWVuc2FnZW0uYW1hcmVsbyB7XG4gIGJhY2tncm91bmQtY29sb3I6IHllbGxvdztcbn1cblxuLnBhaW5lbC1tZW5zYWdlbS52ZXJtZWxobyB7XG4gIGJhY2tncm91bmQtY29sb3I6IHJlZDtcbiAgY29sb3I6ICNGRkZGRkY7XG59XG5cbi5wYWluZWwtbWVuc2FnZW0ucGlzY2FyIHtcbiAgYW5pbWF0aW9uOiBwaXNjYXItZnVuZG8gMC4xM3MgaW5maW5pdGUgYWx0ZXJuYXRlO1xufVxuXG5Aa2V5ZnJhbWVzIHBpc2Nhci1mdW5kbyB7XG4gIGZyb20ge1xuICAgIGJhY2tncm91bmQtY29sb3I6IHRyYW5zcGFyZW50O1xuICB9XG4gIHRvIHtcbiAgICAvKiB1c2EgYSBjb3IgZGEgY2xhc3NlIChhbWFyZWxvL3Zlcm1lbGhvKSAqL1xuICB9XG59Il19 */");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BaixaTagConstants", function() { return BaixaTagConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var BaixaTagConstants = /** @class */ (function () {
    function BaixaTagConstants() {
        this.sisFormularioId = 230104;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.consulta" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.liberar" },
            { sisFormularioId: this.sisFormularioId, libRotina: 3, acao: "labels.permissoes" }
        ];
        this.sisSistemaId = "CAD";
        this.nomeForm = "titles.baixaTag";
        this.reportId = "CTV0000";
        this.reportTitulo = { "titulo": "Baixa Tag", "subTitulo": "" };
        this.listaIndex = [
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' }
        ];
    }
    return BaixaTagConstants;
}());



/***/ }),

/***/ "./src/app/pages/veiculo/baixa-tag/baixa-tag.model.ts":
/*!************************************************************!*\
  !*** ./src/app/pages/veiculo/baixa-tag/baixa-tag.model.ts ***!
  \************************************************************/
/*! exports provided: BaixaTag */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BaixaTag", function() { return BaixaTag; });
/* harmony import */ var _shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../shared/services/base/base.model */ "./src/app/shared/services/base/base.model.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};

var BaixaTag = /** @class */ (function (_super) {
    __extends(BaixaTag, _super);
    function BaixaTag() {
        return _super.call(this) || this;
    }
    return BaixaTag;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));



/***/ }),

/***/ "./src/app/pages/veiculo/baixa-tag/baixa-tag.module.ts":
/*!*************************************************************!*\
  !*** ./src/app/pages/veiculo/baixa-tag/baixa-tag.module.ts ***!
  \*************************************************************/
/*! exports provided: BaixaTagModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BaixaTagModule", function() { return BaixaTagModule; });
/* harmony import */ var _shared_shared_module__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../shared/shared.module */ "./src/app/shared/shared.module.ts");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _baixa_tag_routing_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./baixa-tag.routing.module */ "./src/app/pages/veiculo/baixa-tag/baixa-tag.routing.module.ts");
/* harmony import */ var _baixa_tag_index_baixa_tag_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./baixa-tag-index/baixa-tag-index.component */ "./src/app/pages/veiculo/baixa-tag/baixa-tag-index/baixa-tag-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 BaixaTagModule = /** @class */ (function () {
    function BaixaTagModule() {
    }
    BaixaTagModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
            imports: [_shared_shared_module__WEBPACK_IMPORTED_MODULE_0__["SharedModule"], _baixa_tag_routing_module__WEBPACK_IMPORTED_MODULE_2__["BaixaTagRoutingModule"]],
            declarations: [
                _baixa_tag_index_baixa_tag_index_component__WEBPACK_IMPORTED_MODULE_3__["BaixaTagIndexComponent"]
            ]
        })
    ], BaixaTagModule);
    return BaixaTagModule;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BaixaTagRoutingModule", function() { return BaixaTagRoutingModule; });
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _config_enumerables__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _baixa_tag_index_baixa_tag_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./baixa-tag-index/baixa-tag-index.component */ "./src/app/pages/veiculo/baixa-tag/baixa-tag-index/baixa-tag-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: _baixa_tag_index_baixa_tag_index_component__WEBPACK_IMPORTED_MODULE_3__["BaixaTagIndexComponent"],
        data: { breadcrumb: "baixaTag", formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index } }
    }
];
var BaixaTagRoutingModule = /** @class */ (function () {
    function BaixaTagRoutingModule() {
    }
    BaixaTagRoutingModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
            imports: [_angular_router__WEBPACK_IMPORTED_MODULE_0__["RouterModule"].forChild(MRoutes)],
            exports: [_angular_router__WEBPACK_IMPORTED_MODULE_0__["RouterModule"]]
        })
    ], BaixaTagRoutingModule);
    return BaixaTagRoutingModule;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BaixaTagService", function() { return BaixaTagService; });
/* 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 rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
/* harmony import */ var _app_error_handler__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../app.error-handler */ "./src/app/app.error-handler.ts");
/* harmony import */ var _shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../shared/services/base/base.service */ "./src/app/shared/services/base/base.service.ts");
/* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../environments/environment */ "./src/environments/environment.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 BaixaTagService = /** @class */ (function (_super) {
    __extends(BaixaTagService, _super);
    function BaixaTagService(http) {
        return _super.call(this, http, "veiculos/baixaTag") || this;
    }
    BaixaTagService.prototype.getDadosByTag = function (tag) {
        return this.http
            .get(_environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].service_url + "/api/v1/veiculos/baixaTag/getDadosByTag/" + tag)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    BaixaTagService.prototype.liberarTag = function (regControle) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].service_url + "/api/v1/veiculos/baixaTag/liberarTag", regControle)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    BaixaTagService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"] }
    ]; };
    BaixaTagService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"]])
    ], BaixaTagService);
    return BaixaTagService;
}(_shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_4__["BaseService"]));



/***/ })

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