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

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/veiculo/restricao-vagao/restricao-vagao-form/restricao-vagao-form.component.html":
/*!**********************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/veiculo/restricao-vagao/restricao-vagao-form/restricao-vagao-form.component.html ***!
  \**********************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<app-menu-command-bar [botoesComando]=\"constantes.listaForm\" [formAction]=\"actionForm\" [itemData]=\"data.cadastroPlacaId\"\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-3 col-md-6 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"numeroVagao\" class=\"required\">{{\n                                    \"labels.numeroVagao\" | translate\n                                    }}</label>\n                                <select class=\"form-control form-control-sm\" id=\"numeroVagao\" name=\"numeroVagao\"\n                                    (ngModelChange)=\"trataCapacidadeCarga($event)\" [(ngModel)]=\"data.cadastroPlacaId\"\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\" required=\"true\">\n                                    <option value=\"\">{{ \"labels.selecione\" | translate }}</option>\n                                    <option *ngFor=\"let item of vagaoPlacas\" value=\"{{ item.cadastroPlacaId }}\">{{\n                                        item.cadastroPlacaId }}\n                                    </option>\n                                </select>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"dtInclusao\" class=\"required\">{{\n                                    \"labels.dtInclusao\" | translate\n                                    }}</label>\n                                <app-data id=\"dtInclusao\" required=\"true\" name=\"dtInclusao\" [(ngModel)]=\"data.dtLista\"\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\"></app-data>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"capacVeiculo\">{{\n                                    \"labels.capacVeiculo\" | translate\n                                    }}</label>\n                                <input type=\"text\" class=\"form-control form-control-sm\" name=\"capacVeiculo\"\n                                    value=\"{{ data.capacVeiculo }}\" id=\"capacVeiculo\" disabled />\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=\"motivoListaNegraId\" class=\"required\">{{'labels.motivo' |\n                                    translate}}</label>\n                                <select id=\"motivoListaNegraId\" name=\"motivoListaNegraId\"\n                                    [(ngModel)]=\"data.motivoListaNegraId\" data-title=\"{{ 'labels.motivo' | translate }}\"\n                                    class=\"form-control form-control-sm\"\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                    required=\"true\">\n                                    <option value=\"\">{{ 'labels.selecione' | translate }}</option>\n                                    <option value=\"{{ item.motivoListaNegraId }}\"\n                                        *ngFor=\"let item of motivoListaNegras\">{{ item.descrMotivo }}</option>\n\n                                </select>\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=\"observacao\">{{\n                                    \"labels.observacao\" | translate\n                                    }}</label>\n                                <input type=\"text\" class=\"form-control form-control-sm\" name=\"observacao\"\n                                    [(ngModel)]=\"data.motivo\" [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                    id=\"observacao\" />\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-4\">\n                            <span *ngIf=\"data.sisCampoAdds\">\n                                <div *ngFor=\"let d of data.sisCampoAdds\" [class.col-lg-6]=\"!d.colunas\">\n                                    <app-campos-adicionais name=\"{{d.campo}}\" [sisCampoAdd]=\"d\"\n                                        [(ngModel)]=\"d.valorCampo\" [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                        [required]=\"d.obrigatorio === 'S'\"></app-campos-adicionais>\n                                </div>\n                            </span>\n                        </div>\n                    </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\"\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                    {{ 'buttons.salvar' | 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>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/veiculo/restricao-vagao/restricao-vagao-index/restricao-vagao-index.component.html":
/*!************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/veiculo/restricao-vagao/restricao-vagao-index/restricao-vagao-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\"\r\n    [itemData]=\"data.cadastroPlacaId\" [sisFormularioId]=\"constantes.sisFormularioId\">\r\n</app-menu-command-bar>\r\n\r\n<div class=\"section-comand-bar\">\r\n    <table id=\"dtRestricaoVagao\" class=\"table table-striped table-bordered table-hover nowrap table-sm\"></table>\r\n</div>\r\n\r\n<app-propriedades></app-propriedades>\r\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\r\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>\r\n<app-restricao-vagao-remove (motivo)=\"executeRemove($event)\"></app-restricao-vagao-remove>\r\n<app-restricao-vagao-print-modal (outConfirma)=\"confirmaImpressao($event)\"></app-restricao-vagao-print-modal>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/veiculo/restricao-vagao/restricao-vagao-print-modal/restricao-vagao-print-modal.component.html":
/*!************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/veiculo/restricao-vagao/restricao-vagao-print-modal/restricao-vagao-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\" id=\"modalPrint\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\r\n\t<div class=\"uni-modal-dialog-md-40\">\r\n\t\t<div class=\"modal-content\">\r\n\t\t\t<form class=\"form\" #frmPrint=\"ngForm\" (ngSubmit)=\"onSubmit(frmPrint)\">\r\n\t\t\t\t<div class=\"modal-header\">\r\n\t\t\t\t\t<h4 class=\"modal-title\">{{ 'titles.restricoesPlacas' | translate }}</h4>\r\n\t\t\t\t\t<button type=\"button\" class=\"close\" aria-label=\"Close\" data-dismiss=\"modal\">\r\n\t\t\t\t\t\t<span aria-hidden=\"true\">&times;</span>\r\n\t\t\t\t\t</button>\r\n\t\t\t\t</div>\r\n\t\t\t\t<div class=\"modal-body\">\r\n\t\t\t\t\t<div class=\"row\">\r\n\t\t\t\t\t\t<div class=\"col-lg-6 col-md-6 col-sm-12\">\r\n\t\t\t\t\t\t\t<div class=\"form-group form-group-sm\">\r\n\t\t\t\t\t\t\t\t<label for=\"periodoDe\" class=\"required\">{{\"labels.periodoDe\" | translate }}</label>\r\n\t\t\t\t\t\t\t\t<app-data id=\"periodoDe\" name=\"periodoDe\" [(ngModel)]=\"data.dataI\" autofocus\r\n\t\t\t\t\t\t\t\t\tclass=\"dataHora\" [formatDateTime]=\"mascara.getFormatData\" required=\"true\">\r\n\t\t\t\t\t\t\t\t</app-data>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t<div class=\"col-lg-6 col-md-6 col-sm-12\">\r\n\t\t\t\t\t\t\t<div class=\"form-group form-group-sm\">\r\n\t\t\t\t\t\t\t\t<label for=\"ate\" class=\"required\">{{\"labels.ate\" | translate}}</label>\r\n\t\t\t\t\t\t\t\t<app-data id=\"ate\" name=\"ate\" [(ngModel)]=\"data.dataF\" class=\"dataHora\"\r\n\t\t\t\t\t\t\t\t\t(executa)=\"validaData()\" [formatDateTime]=\"mascara.getFormatData\" required=\"true\">\r\n\t\t\t\t\t\t\t\t</app-data>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<div class=\"row\">\r\n\t\t\t\t\t\t<div class=\"col-lg-6 col-md-6 col-sm-12\">\r\n\t\t\t\t\t\t\t<div class=\"custom-control custom-checkbox\">\r\n\t\t\t\t\t\t\t\t<input id=\"prodAnp\" name=\"prodAnp\" [ngModel]=\"data.inativos === 'S'\"\r\n\t\t\t\t\t\t\t\t\t(ngModelChange)=\"data.inativos=$event?'S':'N'\"\r\n\t\t\t\t\t\t\t\t\tclass=\"custom-control-input checkbox-success\" type=\"checkbox\">\r\n\t\t\t\t\t\t\t\t<label class=\"custom-control-label\" for=\"prodAnp\">{{'labels.apresentarPlacasJaLiberadas'\r\n\t\t\t\t\t\t\t\t\t|\r\n\t\t\t\t\t\t\t\t\ttranslate}}</label>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t\t<div class=\"modal-footer\">\r\n\t\t\t\t\t<button type=\"submit\" class=\"btn btn-small btn-success\">{{\r\n\t\t\t\t\t\t'buttons.imprimir' | translate }}</button>\r\n\t\t\t\t\t<button type=\"button\" class=\"btn btn-small btn-default\" data-dismiss=\"modal\">{{ 'buttons.cancelar' |\r\n\t\t\t\t\t\ttranslate }}</button>\r\n\t\t\t\t</div>\r\n\t\t\t</form>\r\n\t\t</div>\r\n\t</div>\r\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/veiculo/restricao-vagao/restricao-vagao-remove/restricao-vagao-remove.component.html":
/*!**************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/veiculo/restricao-vagao/restricao-vagao-remove/restricao-vagao-remove.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=\"restricao-vagao-remove-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\r\n    <div class=\"uni-modal-dialog-md-30\">\r\n        <div class=\"modal-content\">\r\n            <div class=\"modal-header\">\r\n                <h6 class=\"modal-title\">{{ 'titles.motivoDaLiberacao' | translate }}</h6>\r\n            </div>\r\n            <div class=\"row\">\r\n                <div class=\"col-md-12 col-lg-12\">\r\n                    <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\">\r\n                        <div class=\"modal-body\">\r\n                            <div class=\"row\">\r\n                                <div class=\"col-lg-12\">\r\n                                    <div class=\"form-group form-group-sm\">\r\n                                        <label for=\"motivoListaNegraId\" [class.required]=\"true\">{{'labels.motivo' |\r\n                                            translate}}</label>\r\n                                        <select class=\"form-control form-control-sm\" id=\"motivoListaNegraId\"\r\n                                            name=\"motivoListaNegraId\" [(ngModel)]=\"motivoListaNegraId\">\r\n                                            <option value=\"\" selected=\"selected\">{{ 'labels.selecione' | translate }}\r\n                                            </option>\r\n                                            <option [value]=\"d.motivoListaNegraId\" *ngFor=\"let d of dados\">\r\n                                                {{d.descrMotivo}}</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 class=\"btn btn-success mr-1\" type=\"submit\">{{ 'buttons.confirmar' | translate\r\n                                }}</button>\r\n                            <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">{{ 'buttons.sair' |\r\n                                translate }}</button>\r\n                        </div>\r\n                    </form>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</div>");

/***/ }),

/***/ "./src/app/pages/veiculo/restricao-vagao/restricao-vagao-form/restricao-vagao-form.component.ts":
/*!******************************************************************************************************!*\
  !*** ./src/app/pages/veiculo/restricao-vagao/restricao-vagao-form/restricao-vagao-form.component.ts ***!
  \******************************************************************************************************/
/*! exports provided: RestricaoVagaoFormComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RestricaoVagaoFormComponent", function() { return RestricaoVagaoFormComponent; });
/* 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 app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.ts");
/* harmony import */ var _restricao_vagao_model__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../restricao-vagao.model */ "./src/app/pages/veiculo/restricao-vagao/restricao-vagao.model.ts");
/* harmony import */ var _restricao_vagao_constants__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../restricao-vagao.constants */ "./src/app/pages/veiculo/restricao-vagao/restricao-vagao.constants.ts");
/* harmony import */ var _restricao_vagao_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../restricao-vagao.service */ "./src/app/pages/veiculo/restricao-vagao/restricao-vagao.service.ts");
/* harmony import */ var app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! app/shared/services/funcoes/string-utils/string-utils.static.service */ "./src/app/shared/services/funcoes/string-utils/string-utils.static.service.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};













var RestricaoVagaoFormComponent = /** @class */ (function (_super) {
    __extends(RestricaoVagaoFormComponent, _super);
    function RestricaoVagaoFormComponent(router, message, activatedRoute, service, funcoes, loginService, permissoesUtils, configuracao) {
        var _this = _super.call(this, new _restricao_vagao_constants__WEBPACK_IMPORTED_MODULE_10__["RestricaoVagaoConstants"](), funcoes) || this;
        _this.router = router;
        _this.message = message;
        _this.activatedRoute = activatedRoute;
        _this.service = service;
        _this.funcoes = funcoes;
        _this.loginService = loginService;
        _this.permissoesUtils = permissoesUtils;
        _this.configuracao = configuracao;
        _this.data = new _restricao_vagao_model__WEBPACK_IMPORTED_MODULE_9__["RestricaoVagao"]();
        _this.mensagens = [];
        _this.constantes = new _restricao_vagao_constants__WEBPACK_IMPORTED_MODULE_10__["RestricaoVagaoConstants"]();
        _this.target = _this.funcoes.getTargetLocation();
        router.events.subscribe(function (event) {
            var params = _this.funcoes.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    RestricaoVagaoFormComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.vagaoPlacas = [];
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, this.permissoesUtils.getLibRotina(this.actionForm), function () {
            var id = _this.activatedRoute.snapshot.paramMap.get("id");
            _this.loadMotivos();
            if (id) {
                _this.service.getById(id).subscribe(function (resp) {
                    _this.carregaPlacas();
                    _this.data = resp;
                    _this.data.capacVeiculo = resp.capacVeiculo;
                });
            }
            else {
                _this.data = new _restricao_vagao_model__WEBPACK_IMPORTED_MODULE_9__["RestricaoVagao"]();
                _this.carregaComboPlacas();
                _this.getCamposAdicionais();
            }
        }, function () {
            _this.permissoesUtils.back();
        });
    };
    RestricaoVagaoFormComponent.prototype.onSubmit = function (form, create) {
        var _this = this;
        if (create === void 0) { create = false; }
        if (form.invalid) {
            _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_4__["EventEmitterService"].get("formError").emit(form);
            return;
        }
        this.data.logRotina = "Manut. Restrições Vagões";
        this.service
            .save(this.data, this.funcoesService.isEdit(this.actionForm))
            .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);
            }
            else {
                _this.message.saveSuccess("titles.restricaoVagao");
                if (create) {
                    _this.data = new _restricao_vagao_model__WEBPACK_IMPORTED_MODULE_9__["RestricaoVagao"]();
                    _this.router.navigate([_this.target + "/veiculo/restricaoVagao/create"]);
                }
                else {
                    _this.back();
                }
            }
        });
    };
    RestricaoVagaoFormComponent.prototype.back = function () {
        this.router.navigate([this.target + "/veiculo/restricaoVagao"]);
    };
    RestricaoVagaoFormComponent.prototype.getCamposAdicionais = function () {
        var _this = this;
        this.funcoes.camposAdicionais
            .get(this.constantes.sisFormularioId)
            .subscribe(function (data) {
            _this.data.sisCampoAdds = data;
        });
    };
    RestricaoVagaoFormComponent.prototype.carregaComboPlacas = function () {
        var _this = this;
        this.service.getPlacaVagao().subscribe(function (resp) {
            _this.vagaoPlacas = resp;
        });
    };
    RestricaoVagaoFormComponent.prototype.carregaPlacas = function () {
        var _this = this;
        this.service.getPlacas().subscribe(function (resp) {
            _this.vagaoPlacas = resp;
        });
    };
    RestricaoVagaoFormComponent.prototype.trataCapacidadeCarga = function (item) {
        if (item) {
            this.data.capacVeiculo = app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["StringUtilsStaticService"].toString(item.capacVeiculo);
        }
    };
    RestricaoVagaoFormComponent.prototype.loadMotivos = function () {
        var _this = this;
        this.service.getMotivos().subscribe(function (data) { return (_this.motivoListaNegras = data); });
    };
    RestricaoVagaoFormComponent.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: _restricao_vagao_service__WEBPACK_IMPORTED_MODULE_11__["RestricaoVagaoService"] },
        { 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"] },
        { type: app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_8__["ConfiguracaoFacade"] }
    ]; };
    RestricaoVagaoFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-restricao-vagao-form",
            template: __importDefault(__webpack_require__(/*! raw-loader!./restricao-vagao-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/veiculo/restricao-vagao/restricao-vagao-form/restricao-vagao-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"],
            _restricao_vagao_service__WEBPACK_IMPORTED_MODULE_11__["RestricaoVagaoService"],
            _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"],
            app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_8__["ConfiguracaoFacade"]])
    ], RestricaoVagaoFormComponent);
    return RestricaoVagaoFormComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__["BasePermissoes"]));



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RestricaoVagaoIndexComponent", function() { return RestricaoVagaoIndexComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _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 _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _login_login_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.ts");
/* harmony import */ var app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/shared/services/funcoes/string-utils/string-utils.static.service */ "./src/app/shared/services/funcoes/string-utils/string-utils.static.service.ts");
/* harmony import */ var _restricao_vagao_model__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../restricao-vagao.model */ "./src/app/pages/veiculo/restricao-vagao/restricao-vagao.model.ts");
/* harmony import */ var _restricao_vagao_constants__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../restricao-vagao.constants */ "./src/app/pages/veiculo/restricao-vagao/restricao-vagao.constants.ts");
/* harmony import */ var _restricao_vagao_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../restricao-vagao.service */ "./src/app/pages/veiculo/restricao-vagao/restricao-vagao.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 RestricaoVagaoIndexComponent = /** @class */ (function (_super) {
    __extends(RestricaoVagaoIndexComponent, _super);
    function RestricaoVagaoIndexComponent(router, service, datatables, message, funcoes, loginService, permissoesUtils, configuracao) {
        var _this = _super.call(this, new _restricao_vagao_constants__WEBPACK_IMPORTED_MODULE_11__["RestricaoVagaoConstants"](), funcoes) || this;
        _this.router = router;
        _this.service = service;
        _this.datatables = datatables;
        _this.message = message;
        _this.funcoes = funcoes;
        _this.loginService = loginService;
        _this.permissoesUtils = permissoesUtils;
        _this.configuracao = configuracao;
        _this.data = new _restricao_vagao_model__WEBPACK_IMPORTED_MODULE_10__["RestricaoVagao"]();
        _this.constantes = new _restricao_vagao_constants__WEBPACK_IMPORTED_MODULE_11__["RestricaoVagaoConstants"]();
        _this.target = _this.funcoes.getTargetLocation();
        _this._print = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 4, function () { return jQuery("#modalPrint").modal("show"); });
        };
        router.events.subscribe(function (event) {
            var params = _this.funcoes.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    RestricaoVagaoIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () {
            _this.refresh();
        }, function () {
            _this.permissoesUtils.back();
        }, true);
        _super.prototype.addFuncoes.call(this, [
            { action: "_print", func: function () { return _this._print; } },
        ]);
    };
    RestricaoVagaoIndexComponent.prototype.create = function () {
        this.router.navigate([this.target + "/veiculo/restricaoVagao/create"]);
    };
    RestricaoVagaoIndexComponent.prototype.refresh = function () {
        var _this = this;
        this.service.get().subscribe(function (data) {
            var columns = [
                _this.datatables.getDataString("cadastroPlacaId", "placa"),
                _this.datatables.getDataString("descrMotivoLN", "motivo"),
            ];
            _this.datatables.toDataTable({ tableId: "dtRestricaoVagao", columns: columns, data: data, orientationOrder: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_2__["EOrientationOrder"].ASC }, function (aData) {
                _this.data = aData;
            });
        });
    };
    RestricaoVagaoIndexComponent.prototype.detail = function () {
        if (this.funcoesService.isNotUndefinedOrNull(this.data.cadastroPlacaId)) {
            this.router.navigate([this.target + "/veiculo/restricaoVagao/detail/" + this.data.cadastroPlacaId]);
        }
    };
    RestricaoVagaoIndexComponent.prototype.itemSelecionado = function () {
        if (app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["StringUtilsStaticService"].isEmpty(this.data.cadastroPlacaId)) {
            this.message.warning("titles.restricaoVagao", "messages.selecioneUmRegistro");
            return false;
        }
        return true;
    };
    RestricaoVagaoIndexComponent.prototype.remove = function () {
        var _this = this;
        if (!this.itemSelecionado())
            return;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () { return __awaiter(_this, void 0, void 0, function () {
            var validationResult, mensagens;
            var _this = this;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0: return [4 /*yield*/, this.service.podeRemover({ cadastroPlacaId: this.data.cadastroPlacaId, motivoListaNegraId: this.data.motivoListaNegraId }).toPromise()];
                    case 1:
                        validationResult = _a.sent();
                        if (!validationResult.isValid) {
                            mensagens = this.message.validationResult(validationResult);
                            mensagens.forEach(function (m) { return _this.message.warning("titles.restricaoVagao", m); });
                            return [2 /*return*/];
                        }
                        this.message.removeConfirm(function () {
                            jQuery("#restricao-vagao-remove-dialog").modal("show");
                        });
                        return [2 /*return*/];
                }
            });
        }); });
    };
    RestricaoVagaoIndexComponent.prototype.executeRemove = function (motivo) {
        if (motivo === void 0) { motivo = ""; }
        return __awaiter(this, void 0, void 0, function () {
            var data;
            var _this = this;
            return __generator(this, function (_a) {
                if (!!(motivo)) {
                    data = new _restricao_vagao_model__WEBPACK_IMPORTED_MODULE_10__["RestricaoVagao"]();
                    data.cadastroPlacaId = this.data.cadastroPlacaId;
                    data.motivoListaNegraId = motivo;
                    this.service._remove(this.data).subscribe(function (validationResult) {
                        if (!validationResult.isValid) {
                            var mensagens = _this.message.validationResult(validationResult.validationResult);
                            mensagens.forEach(function (m) { return _this.message.warning("titles.restricaoVagao", m); });
                            return;
                        }
                        _this.datatables.remove("dtRestricaoVagao");
                        _this.refresh();
                    });
                }
                return [2 /*return*/];
            });
        });
    };
    RestricaoVagaoIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 5, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    RestricaoVagaoIndexComponent.prototype.properties = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 6, function () {
            _super.prototype.properties.call(_this, _this.data);
        });
    };
    RestricaoVagaoIndexComponent.prototype.confirmaImpressao = function (filtro) {
        console.log(filtro);
        this.print(filtro);
    };
    RestricaoVagaoIndexComponent.prototype.print = function (filtro) {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () {
            _this.funcoesService.reportInvoc.invocaRelatorio(_this.constantes.reportId, _this.constantes.reportTitulo, {
                dataI: filtro.dataI,
                dataF: filtro.dataF,
                inativos: app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["StringUtilsStaticService"].toString(filtro.inativos),
            });
        });
    };
    RestricaoVagaoIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _restricao_vagao_service__WEBPACK_IMPORTED_MODULE_12__["RestricaoVagaoService"] },
        { type: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_2__["DatatablesService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_7__["LoginService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"] },
        { type: app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_8__["ConfiguracaoFacade"] }
    ]; };
    RestricaoVagaoIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-restricao-vagao-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./restricao-vagao-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/veiculo/restricao-vagao/restricao-vagao-index/restricao-vagao-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _restricao_vagao_service__WEBPACK_IMPORTED_MODULE_12__["RestricaoVagaoService"],
            app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_2__["DatatablesService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_7__["LoginService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"],
            app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_8__["ConfiguracaoFacade"]])
    ], RestricaoVagaoIndexComponent);
    return RestricaoVagaoIndexComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__["BasePermissoes"]));



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RestricaoVagaoPrintModalComponent", function() { return RestricaoVagaoPrintModalComponent; });
/* 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 _restricao_vagao_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../restricao-vagao.service */ "./src/app/pages/veiculo/restricao-vagao/restricao-vagao.service.ts");
/* harmony import */ var _restricao_vagao_model__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../restricao-vagao.model */ "./src/app/pages/veiculo/restricao-vagao/restricao-vagao.model.ts");
/* harmony import */ var app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/funcoes/date-time-utils/date-time-utils.static.service */ "./src/app/shared/services/funcoes/date-time-utils/date-time-utils.static.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.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 RestricaoVagaoPrintModalComponent = /** @class */ (function () {
    function RestricaoVagaoPrintModalComponent(router, funcoes, service, messageService) {
        this.router = router;
        this.funcoes = funcoes;
        this.service = service;
        this.messageService = messageService;
        this.outConfirma = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.mascara = new app_config_enumerables__WEBPACK_IMPORTED_MODULE_8__["Mascaras"]();
    }
    RestricaoVagaoPrintModalComponent.prototype.ngOnInit = function () {
        this.init();
    };
    RestricaoVagaoPrintModalComponent.prototype.init = function () {
        this.data = new _restricao_vagao_model__WEBPACK_IMPORTED_MODULE_5__["RestricaoVagaoFilter"]();
    };
    RestricaoVagaoPrintModalComponent.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;
        }
        if (!this.validaData())
            return;
        this.outConfirma.emit(this.data);
        jQuery("#modalPrint").modal("hide");
    };
    RestricaoVagaoPrintModalComponent.prototype.validaData = function () {
        if (app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_6__["DateTimeUtilsStaticService"].menorA(this.data.dataF, this.data.dataI, ['H', 'M'])) {
            this.messageService.warning("titles.restricaoVagao", "messages.periodoDeMaiorQueAte");
            return false;
        }
        return true;
    };
    RestricaoVagaoPrintModalComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"] },
        { type: _restricao_vagao_service__WEBPACK_IMPORTED_MODULE_4__["RestricaoVagaoService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], RestricaoVagaoPrintModalComponent.prototype, "outConfirma", void 0);
    RestricaoVagaoPrintModalComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-restricao-vagao-print-modal",
            template: __importDefault(__webpack_require__(/*! raw-loader!./restricao-vagao-print-modal.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/veiculo/restricao-vagao/restricao-vagao-print-modal/restricao-vagao-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"],
            _restricao_vagao_service__WEBPACK_IMPORTED_MODULE_4__["RestricaoVagaoService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"]])
    ], RestricaoVagaoPrintModalComponent);
    return RestricaoVagaoPrintModalComponent;
}());



/***/ }),

/***/ "./src/app/pages/veiculo/restricao-vagao/restricao-vagao-remove/restricao-vagao-remove.component.ts":
/*!**********************************************************************************************************!*\
  !*** ./src/app/pages/veiculo/restricao-vagao/restricao-vagao-remove/restricao-vagao-remove.component.ts ***!
  \**********************************************************************************************************/
/*! exports provided: RestricaoVagaoRemoveComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RestricaoVagaoRemoveComponent", function() { return RestricaoVagaoRemoveComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_pages_cadastro_motivo_lista_negra_motivo_lista_negra_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/pages/cadastro/motivo-lista-negra/motivo-lista-negra.service */ "./src/app/pages/cadastro/motivo-lista-negra/motivo-lista-negra.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 RestricaoVagaoRemoveComponent = /** @class */ (function () {
    function RestricaoVagaoRemoveComponent(motivoListaNegraService) {
        this.motivoListaNegraService = motivoListaNegraService;
        this.motivo = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.motivoListaNegraId = "";
    }
    RestricaoVagaoRemoveComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.motivoListaNegraService.get().subscribe(function (resp) {
            _this.dados = resp.filter(function (c) { return c.tipoMotivo === "L"; });
        });
    };
    RestricaoVagaoRemoveComponent.prototype.onSubmit = function (form) {
        if (!form.invalid) {
            jQuery("#restricao-vagao-remove-dialog").modal("hide");
            this.motivo.emit(this.motivoListaNegraId);
        }
    };
    RestricaoVagaoRemoveComponent.ctorParameters = function () { return [
        { type: app_pages_cadastro_motivo_lista_negra_motivo_lista_negra_service__WEBPACK_IMPORTED_MODULE_1__["MotivoListaNegraService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], RestricaoVagaoRemoveComponent.prototype, "motivo", void 0);
    RestricaoVagaoRemoveComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-restricao-vagao-remove",
            template: __importDefault(__webpack_require__(/*! raw-loader!./restricao-vagao-remove.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/veiculo/restricao-vagao/restricao-vagao-remove/restricao-vagao-remove.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [app_pages_cadastro_motivo_lista_negra_motivo_lista_negra_service__WEBPACK_IMPORTED_MODULE_1__["MotivoListaNegraService"]])
    ], RestricaoVagaoRemoveComponent);
    return RestricaoVagaoRemoveComponent;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RestricaoVagaoConstants", function() { return RestricaoVagaoConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var RestricaoVagaoConstants = /** @class */ (function () {
    function RestricaoVagaoConstants() {
        this.sisFormularioId = 375037;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.inclusao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.exclusao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 3, acao: "labels.consulta" },
            { sisFormularioId: this.sisFormularioId, libRotina: 4, acao: "labels.impressao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 5, acao: "labels.permissoes" },
            { sisFormularioId: this.sisFormularioId, libRotina: 6, acao: "labels.propriedades" }
        ];
        this.sisSistemaId = "CAD";
        this.nomeForm = "titles.restricaoVagao";
        this.reportId = "CTV0015";
        this.tabela = "ListaNegraPlaca";
        this.reportTitulo = { "titulo": "", "subTitulo": "" };
        this.listaIndex = [
            { title: 'Novo', action: 'create', icon: "icon-plus", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Visualizar', action: 'detail', icon: "icon-eye", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Excluir', action: 'remove', icon: "icon-close", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Atualizar', action: 'refresh', icon: "icon-reload", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Imprimir', action: '_print', icon: "icon-printer", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'Propriedade', action: 'properties', icon: "icon-menu", exibeButton: true, eximeMenu: true, menuName: 'Movimento' }
        ];
        this.listaForm = [
            { title: 'Voltar', action: 'back', icon: "icon-arrow-left", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
        ];
    }
    return RestricaoVagaoConstants;
}());



/***/ }),

/***/ "./src/app/pages/veiculo/restricao-vagao/restricao-vagao.model.ts":
/*!************************************************************************!*\
  !*** ./src/app/pages/veiculo/restricao-vagao/restricao-vagao.model.ts ***!
  \************************************************************************/
/*! exports provided: RestricaoVagao, RestricaoVagaoDto, RestricaoVagaoPlacaDto, RestricaoVagaoFilter */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RestricaoVagao", function() { return RestricaoVagao; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RestricaoVagaoDto", function() { return RestricaoVagaoDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RestricaoVagaoPlacaDto", function() { return RestricaoVagaoPlacaDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RestricaoVagaoFilter", function() { return RestricaoVagaoFilter; });
/* 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");
/* harmony import */ var _shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_1__ = __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 RestricaoVagao = /** @class */ (function (_super) {
    __extends(RestricaoVagao, _super);
    function RestricaoVagao() {
        var _this = _super.call(this) || this;
        _this.motivo = "";
        _this.flagLista = "S";
        _this.cadastroPlacaId = "";
        _this.motivoListaNegraId = "";
        return _this;
    }
    return RestricaoVagao;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_1__["BaseModel"]));

var RestricaoVagaoDto = /** @class */ (function (_super) {
    __extends(RestricaoVagaoDto, _super);
    function RestricaoVagaoDto() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return RestricaoVagaoDto;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_1__["BaseModel"]));

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

var RestricaoVagaoFilter = /** @class */ (function () {
    function RestricaoVagaoFilter() {
        this.dataI = app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["DateTimeUtilsStaticService"].addDays(new Date(), -30);
        this.dataF = new Date();
        this.inativos = "S";
    }
    return RestricaoVagaoFilter;
}());



/***/ }),

/***/ "./src/app/pages/veiculo/restricao-vagao/restricao-vagao.module.ts":
/*!*************************************************************************!*\
  !*** ./src/app/pages/veiculo/restricao-vagao/restricao-vagao.module.ts ***!
  \*************************************************************************/
/*! exports provided: RestricaoVagaoModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RestricaoVagaoModule", function() { return RestricaoVagaoModule; });
/* 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 _restricao_vagao_routing_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./restricao-vagao.routing.module */ "./src/app/pages/veiculo/restricao-vagao/restricao-vagao.routing.module.ts");
/* harmony import */ var _restricao_vagao_index_restricao_vagao_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./restricao-vagao-index/restricao-vagao-index.component */ "./src/app/pages/veiculo/restricao-vagao/restricao-vagao-index/restricao-vagao-index.component.ts");
/* harmony import */ var _restricao_vagao_form_restricao_vagao_form_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./restricao-vagao-form/restricao-vagao-form.component */ "./src/app/pages/veiculo/restricao-vagao/restricao-vagao-form/restricao-vagao-form.component.ts");
/* harmony import */ var _restricao_vagao_remove_restricao_vagao_remove_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./restricao-vagao-remove/restricao-vagao-remove.component */ "./src/app/pages/veiculo/restricao-vagao/restricao-vagao-remove/restricao-vagao-remove.component.ts");
/* harmony import */ var _restricao_vagao_print_modal_restricao_vagao_print_modal_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./restricao-vagao-print-modal/restricao-vagao-print-modal.component */ "./src/app/pages/veiculo/restricao-vagao/restricao-vagao-print-modal/restricao-vagao-print-modal.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 RestricaoVagaoModule = /** @class */ (function () {
    function RestricaoVagaoModule() {
    }
    RestricaoVagaoModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
            imports: [_shared_shared_module__WEBPACK_IMPORTED_MODULE_0__["SharedModule"], _restricao_vagao_routing_module__WEBPACK_IMPORTED_MODULE_2__["RestricaoVagaoRoutingModule"]],
            declarations: [
                _restricao_vagao_index_restricao_vagao_index_component__WEBPACK_IMPORTED_MODULE_3__["RestricaoVagaoIndexComponent"],
                _restricao_vagao_form_restricao_vagao_form_component__WEBPACK_IMPORTED_MODULE_4__["RestricaoVagaoFormComponent"],
                _restricao_vagao_remove_restricao_vagao_remove_component__WEBPACK_IMPORTED_MODULE_5__["RestricaoVagaoRemoveComponent"],
                _restricao_vagao_print_modal_restricao_vagao_print_modal_component__WEBPACK_IMPORTED_MODULE_6__["RestricaoVagaoPrintModalComponent"]
            ]
        })
    ], RestricaoVagaoModule);
    return RestricaoVagaoModule;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RestricaoVagaoRoutingModule", function() { return RestricaoVagaoRoutingModule; });
/* 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 _restricao_vagao_index_restricao_vagao_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./restricao-vagao-index/restricao-vagao-index.component */ "./src/app/pages/veiculo/restricao-vagao/restricao-vagao-index/restricao-vagao-index.component.ts");
/* harmony import */ var _restricao_vagao_form_restricao_vagao_form_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./restricao-vagao-form/restricao-vagao-form.component */ "./src/app/pages/veiculo/restricao-vagao/restricao-vagao-form/restricao-vagao-form.component.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};





var MRoutes = [
    {
        path: "",
        component: _restricao_vagao_index_restricao_vagao_index_component__WEBPACK_IMPORTED_MODULE_3__["RestricaoVagaoIndexComponent"],
        data: { breadcrumb: "restricaoVagao", formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index } }
    },
    {
        path: "create",
        component: _restricao_vagao_form_restricao_vagao_form_component__WEBPACK_IMPORTED_MODULE_4__["RestricaoVagaoFormComponent"],
        data: {
            breadcrumb: "restricaoVagao",
            formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].create }
        }
    },
    {
        path: "edit/:id",
        component: _restricao_vagao_form_restricao_vagao_form_component__WEBPACK_IMPORTED_MODULE_4__["RestricaoVagaoFormComponent"],
        data: {
            breadcrumb: "restricaoVagao",
            formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].edit }
        }
    },
    {
        path: "detail/:id",
        component: _restricao_vagao_form_restricao_vagao_form_component__WEBPACK_IMPORTED_MODULE_4__["RestricaoVagaoFormComponent"],
        data: {
            breadcrumb: "restricaoVagao",
            formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].detail }
        }
    }
];
var RestricaoVagaoRoutingModule = /** @class */ (function () {
    function RestricaoVagaoRoutingModule() {
    }
    RestricaoVagaoRoutingModule = __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"]]
        })
    ], RestricaoVagaoRoutingModule);
    return RestricaoVagaoRoutingModule;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RestricaoVagaoService", function() { return RestricaoVagaoService; });
/* 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 rxjs_internal_operators_catchError__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs/internal/operators/catchError */ "./node_modules/rxjs/internal/operators/catchError.js");
/* harmony import */ var rxjs_internal_operators_catchError__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(rxjs_internal_operators_catchError__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var app_app_error_handler__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/app.error-handler */ "./src/app/app.error-handler.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 RestricaoVagaoService = /** @class */ (function (_super) {
    __extends(RestricaoVagaoService, _super);
    function RestricaoVagaoService(http) {
        return _super.call(this, http, "veiculos/restricaoVagao") || this;
    }
    RestricaoVagaoService.prototype.getPlacaVagao = function () {
        return this.http.
            get(environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/veiculos/restricaoVagao/getPlacaVagao")
            .pipe(Object(rxjs_internal_operators_catchError__WEBPACK_IMPORTED_MODULE_4__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    RestricaoVagaoService.prototype.getMotivos = function () {
        return this.http
            .get(environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/veiculos/restricaoVagao/getMotivos")
            .pipe(Object(rxjs_internal_operators_catchError__WEBPACK_IMPORTED_MODULE_4__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    RestricaoVagaoService.prototype.getPlacas = function () {
        return this.http.
            get(environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/veiculos/restricaoVagao/getPlacas")
            .pipe(Object(rxjs_internal_operators_catchError__WEBPACK_IMPORTED_MODULE_4__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    RestricaoVagaoService.prototype.podeRemover = function (filter) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/veiculos/restricaoVagao/podeRemover", filter)
            .pipe(Object(rxjs_internal_operators_catchError__WEBPACK_IMPORTED_MODULE_4__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    RestricaoVagaoService.prototype._remove = function (data) {
        return this.http
            .put(environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/veiculos/restricaoVagao/remove", data)
            .pipe(Object(rxjs_internal_operators_catchError__WEBPACK_IMPORTED_MODULE_4__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    RestricaoVagaoService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"] }
    ]; };
    RestricaoVagaoService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"]])
    ], RestricaoVagaoService);
    return RestricaoVagaoService;
}(_shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_2__["BaseService"]));



/***/ })

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