(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-especificos-vopak-movimentos-reprovar-veiculo-reprovar-veiculo-module"],{

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<app-menu-command-bar [sisFormularioId]=\"constantes.sisFormularioId\" [botoesComando]=\"constantes.listaForm\"\n    [itemData]=\"data.regPlaneja\">\n</app-menu-command-bar>\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=\"regPlaneja\" class=\"required\">\n                                    {{ \"labels.numeroOS\" | translate }}\n                                </label>\n                                <div class=\"input-group\">\n                                    <input type=\"text\" id=\"regPlaneja\" name=\"regPlaneja\"\n                                        class=\"form-control form-control-sm\" required=\"true\"\n                                        [(ngModel)]=\"data.regPlaneja\" mask=\"999999999\" (blur)=\"pesquisaNumeroOS()\">\n                                    <div class=\"input-group-prepend\">\n                                        <button type=\"button\" class=\"input-group-text\" data-toggle=\"modal\"\n                                            (click)=\"pesquisaNumeroOS()\">\n                                            <i class=\"fa fa-search\"></i>\n                                        </button>\n                                    </div>\n                                </div>\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=\"registro\">{{'labels.registro' | translate}}</label>\n                                <input id=\"registro\" name=\"registro\" [(ngModel)]=\"data.entradaVeiculoId\"\n                                    class=\"form-control form-control-sm\" type=\"text\" disabled>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-6 col-sm-12\">\n                            <app-input-description label=\"cliente\" [valueID]=\"data.destinatarioIdCliente\"\n                                [valueDescription]=\"data.cliente\">\n                            </app-input-description>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-6 col-sm-12\">\n                            <app-input-description label=\"motorista\" [valueID]=\"data.motoristaId\"\n                                [valueDescription]=\"data.nomeMoto\">\n                            </app-input-description>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-6 col-sm-12\">\n                            <app-input-description label=\"transportadora\" [valueID]=\"data.destinatarioIdTransportadora\"\n                                [valueDescription]=\"data.nomeTransp\">\n                            </app-input-description>\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=\"placaCavalo\">{{'labels.placaCavalo' | translate}}</label>\n                                <input id=\"placaCavalo\" name=\"placaCavalo\" [(ngModel)]=\"data.cadastroPlacaIdCavalo\"\n                                    class=\"form-control form-control-sm\" type=\"text\" disabled>\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=\"placaCarreta1\">{{'labels.placaCarreta1' | translate}}</label>\n                                <input id=\"placaCarreta1\" name=\"placaCarreta1\"\n                                    [(ngModel)]=\"data.cadastroPlacaIdCarreta1\" class=\"form-control form-control-sm\"\n                                    type=\"text\" disabled>\n                            </div>\n                        </div>\n                        <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"placaCarreta2\">{{'labels.placaCarreta2' | translate}}</label>\n                                <input id=\"placaCarreta2\" name=\"placaCarreta2\"\n                                    [(ngModel)]=\"data.cadastroPlacaIdCarreta2\" class=\"form-control form-control-sm\"\n                                    type=\"text\" 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=\"motivoDaReprovacao\" class=\"required\">{{'labels.motivoDaReprovacao' |\n                                    translate}}</label>\n                                <app-combo-padrao id=\"motivoDaReprovacao\" name=\"motivoDaReprovacao\"\n                                    tabela=\"CliVopMotivoRepVeiculo\" descricao=\"DescrMotivo\" chave=\"RegMotivo\"\n                                    ativos=\"true\" [(ngModel)]=\"data.regMotivo\" [disabled]=\"!podeAlterar\"\n                                    required=\"true\">\n                                </app-combo-padrao>\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\">\n                                <label for=\"observacao\" class=\"required\">{{'labels.observacoes' | translate}}</label>\n                                <textarea id=\"observacao\" name=\"observacao\" [(ngModel)]=\"data.observ\"\n                                    class=\"form-control\" type=\"text\" [disabled]=\"!podeAlterar\" rows=\"3\" maxlength=\"70\"\n                                    required=\"true\"></textarea>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"clearfix\">&nbsp;</div>\n                    <div class=\"form-group\">\n                        <button class=\"btn btn-success mr-2\" type=\"submit\" [disabled]=\"!podeAlterar\">\n                            {{ 'buttons.reprovar' | translate }}\n                        </button>\n                        <button class=\"btn btn-default\" type=\"button\" (click)=\"limpaCampos()\">\n                            {{ 'buttons.cancelar' | translate }}\n                        </button>\n                    </div>\n                </form>\n            </div>\n        </div>\n    </div>\n</div>\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>");

/***/ }),

/***/ "./src/app/pages/especificos/vopak/movimentos/reprovar-veiculo/reprovar-veiculo-form/reprovar-veiculo-form.component.ts":
/*!******************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/movimentos/reprovar-veiculo/reprovar-veiculo-form/reprovar-veiculo-form.component.ts ***!
  \******************************************************************************************************************************/
/*! exports provided: ReprovarVeiculoFormComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReprovarVeiculoFormComponent", function() { return ReprovarVeiculoFormComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/shared/services/funcoes/number-utils/number-utils.static.service */ "./src/app/shared/services/funcoes/number-utils/number-utils.static.service.ts");
/* harmony import */ var app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/pages/cadastro/destinatario/destinatario.service */ "./src/app/pages/cadastro/destinatario/destinatario.service.ts");
/* harmony import */ var _reprovar_veiculo_model__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../reprovar-veiculo.model */ "./src/app/pages/especificos/vopak/movimentos/reprovar-veiculo/reprovar-veiculo.model.ts");
/* harmony import */ var _reprovar_veiculo_constants__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../reprovar-veiculo.constants */ "./src/app/pages/especificos/vopak/movimentos/reprovar-veiculo/reprovar-veiculo.constants.ts");
/* harmony import */ var _reprovar_veiculo_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../reprovar-veiculo.service */ "./src/app/pages/especificos/vopak/movimentos/reprovar-veiculo/reprovar-veiculo.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 ReprovarVeiculoFormComponent = /** @class */ (function (_super) {
    __extends(ReprovarVeiculoFormComponent, _super);
    function ReprovarVeiculoFormComponent(funcoes, permissoesUtils, loginService, messageService, service, destinatarioService) {
        var _this = _super.call(this, new _reprovar_veiculo_constants__WEBPACK_IMPORTED_MODULE_11__["ReprovarVeiculoConstants"](), funcoes) || this;
        _this.funcoes = funcoes;
        _this.permissoesUtils = permissoesUtils;
        _this.loginService = loginService;
        _this.messageService = messageService;
        _this.service = service;
        _this.destinatarioService = destinatarioService;
        _this.data = new _reprovar_veiculo_model__WEBPACK_IMPORTED_MODULE_10__["ReprovarVeiculo"]();
        _this.mensagens = [];
        _this.constantes = new _reprovar_veiculo_constants__WEBPACK_IMPORTED_MODULE_11__["ReprovarVeiculoConstants"]();
        _this.mascara = new app_config_enumerables__WEBPACK_IMPORTED_MODULE_1__["Mascaras"]();
        _this.podeAlterar = false;
        _this.disabledEditar = false;
        _this.target = _this.funcoesService.getTargetLocation();
        return _this;
    }
    ReprovarVeiculoFormComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () { }, function () { return _this.permissoesUtils.back(); }, true);
    };
    ReprovarVeiculoFormComponent.prototype.onSubmit = function (form, create) {
        var _this = this;
        if (create === void 0) { create = false; }
        _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_5__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            this.funcoesService.backToTop();
            return;
        }
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () { return __awaiter(_this, void 0, void 0, function () {
            var validationResult, mensagens, message;
            var _this = this;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0: return [4 /*yield*/, this.service.podeReprovar({
                            destinatarioIdCliente: this.data.destinatarioIdCliente,
                            regMotivo: this.data.regMotivo
                        }).toPromise()];
                    case 1:
                        validationResult = _a.sent();
                        if (!validationResult.isValid) {
                            mensagens = this.messageService.validationResult(validationResult);
                            mensagens.forEach(function (m) { return _this.messageService.warning("titles.reprovarVeiculo", m); });
                            return [2 /*return*/];
                        }
                        message = this.messageService.translate("messages.confirmaReprovacaoDeVeiculo");
                        this.messageService.confirm("titles.reprovarVeiculo", message, null, function () {
                            _this.executeReprovacaoVeiculo();
                        });
                        return [2 /*return*/];
                }
            });
        }); });
    };
    ReprovarVeiculoFormComponent.prototype.executeReprovacaoVeiculo = 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.reprovacaoVeiculo({
                            regPlaneja: this.data.regPlaneja,
                            entradaVeiculoId: this.data.entradaVeiculoId,
                            regMotivo: this.data.regMotivo,
                            observ: this.data.observ,
                            destinatarioIdCliente: this.data.destinatarioIdCliente
                        }).toPromise()];
                    case 1:
                        validationResult = _a.sent();
                        if (!validationResult.isValid) {
                            mensagens = this.messageService.validationResult(validationResult);
                            mensagens.forEach(function (m) { return _this.messageService.warning("titles.reprovarVeiculo", m); });
                            return [2 /*return*/];
                        }
                        else {
                            this.messageService.success("titles.reprovarVeiculo", "messages.veiculoReprovadoComSucesso");
                            this.limpaCampos();
                        }
                        return [2 /*return*/];
                }
            });
        });
    };
    ReprovarVeiculoFormComponent.prototype.pesquisaNumeroOS = function () {
        var _this = this;
        if (app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["NumberUtilsStaticService"].isPositive(this.data.regPlaneja)) {
            this.service.getByNumeroOS({ regPlaneja: this.data.regPlaneja }).subscribe(function (resp) {
                if (resp) {
                    _this.data = resp;
                    _this.data.regMotivo = resp.regMotivo === 0 ? "" : resp.regMotivo;
                    _this.disabledEditar = true;
                }
                else {
                    _this.messageService.warning("titles.reprovarVeiculo", "messages.ordemDeServicoNaoLocalizada");
                    _this.limpaCampos();
                    return;
                }
            });
        }
        else {
            this.messageService.warning("titles.reprovarVeiculo", "messages.informeNumeroDaOrdemDeServico");
            this.limpaCampos();
            return;
        }
    };
    ReprovarVeiculoFormComponent.prototype.limpaCampos = function () {
        this.data = new _reprovar_veiculo_model__WEBPACK_IMPORTED_MODULE_10__["ReprovarVeiculo"]();
        this.podeAlterar = false;
        this.disabledEditar = false;
    };
    ReprovarVeiculoFormComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    ReprovarVeiculoFormComponent.prototype.edit = function () {
        var _this = this;
        if (!this.data.regPlaneja)
            return;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
            _this.service.podeAlterar({ entradaVeiculoId: _this.data.entradaVeiculoId, regPlaneja: _this.data.regPlaneja }).subscribe(function (resp) {
                if (!resp.isValid) {
                    var mensagens = _this.messageService.validationResult(resp);
                    mensagens.forEach(function (m) { return _this.messageService.warning("titles.reprovarVeiculo", m); });
                    return;
                }
                else {
                    _this.podeAlterar = true;
                }
            });
        });
    };
    ReprovarVeiculoFormComponent.ctorParameters = function () { return [
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__["FuncoesService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_3__["PermissoesUtilsService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__["LoginService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"] },
        { type: _reprovar_veiculo_service__WEBPACK_IMPORTED_MODULE_12__["ReprovarVeiculoService"] },
        { type: app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_9__["DestinatarioService"] }
    ]; };
    ReprovarVeiculoFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-reprovar-veiculo-form",
            template: __importDefault(__webpack_require__(/*! raw-loader!./reprovar-veiculo-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/movimentos/reprovar-veiculo/reprovar-veiculo-form/reprovar-veiculo-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__["FuncoesService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_3__["PermissoesUtilsService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__["LoginService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"],
            _reprovar_veiculo_service__WEBPACK_IMPORTED_MODULE_12__["ReprovarVeiculoService"],
            app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_9__["DestinatarioService"]])
    ], ReprovarVeiculoFormComponent);
    return ReprovarVeiculoFormComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_4__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/vopak/movimentos/reprovar-veiculo/reprovar-veiculo.constants.ts":
/*!***************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/movimentos/reprovar-veiculo/reprovar-veiculo.constants.ts ***!
  \***************************************************************************************************/
/*! exports provided: ReprovarVeiculoConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReprovarVeiculoConstants", function() { return ReprovarVeiculoConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var ReprovarVeiculoConstants = /** @class */ (function () {
    function ReprovarVeiculoConstants() {
        this.sisFormularioId = 375038;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.consulta" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.alteracao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 3, acao: "labels.permissoes" },
            { sisFormularioId: this.sisFormularioId, libRotina: 4, acao: "labels.reprovar" }
        ];
        this.sisSistemaId = "CAD";
        this.nomeForm = "titles.reprovarVeiculo";
        this.reportId = "0";
        this.reportTitulo = { "titulo": "", "subTitulo": "" };
        this.listaForm = [
            { title: 'Editar', action: 'edit', icon: "icon-pencil", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' }
        ];
    }
    return ReprovarVeiculoConstants;
}());



/***/ }),

/***/ "./src/app/pages/especificos/vopak/movimentos/reprovar-veiculo/reprovar-veiculo.model.ts":
/*!***********************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/movimentos/reprovar-veiculo/reprovar-veiculo.model.ts ***!
  \***********************************************************************************************/
/*! exports provided: ReprovarVeiculo */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReprovarVeiculo", function() { return ReprovarVeiculo; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var ReprovarVeiculo = /** @class */ (function () {
    function ReprovarVeiculo() {
        this.regPlaneja = "";
        this.entradaVeiculoId = "";
        this.destinatarioIdCliente = "";
        this.cliente = "";
        this.motoristaId = "";
        this.nomeMoto = "";
        this.destinatarioIdTransportadora = "";
        this.cadastroPlacaIdCavalo = "";
        this.cadastroPlacaIdCarreta1 = "";
        this.cadastroPlacaIdCarreta2 = "";
    }
    return ReprovarVeiculo;
}());



/***/ }),

/***/ "./src/app/pages/especificos/vopak/movimentos/reprovar-veiculo/reprovar-veiculo.module.ts":
/*!************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/movimentos/reprovar-veiculo/reprovar-veiculo.module.ts ***!
  \************************************************************************************************/
/*! exports provided: ReprovarVeiculoModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReprovarVeiculoModule", function() { return ReprovarVeiculoModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _shared_shared_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../shared/shared.module */ "./src/app/shared/shared.module.ts");
/* harmony import */ var _reprovar_veiculo_routing_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./reprovar-veiculo.routing.module */ "./src/app/pages/especificos/vopak/movimentos/reprovar-veiculo/reprovar-veiculo.routing.module.ts");
/* harmony import */ var _reprovar_veiculo_form_reprovar_veiculo_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./reprovar-veiculo-form/reprovar-veiculo-form.component */ "./src/app/pages/especificos/vopak/movimentos/reprovar-veiculo/reprovar-veiculo-form/reprovar-veiculo-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 ReprovarVeiculoModule = /** @class */ (function () {
    function ReprovarVeiculoModule() {
    }
    ReprovarVeiculoModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"], _reprovar_veiculo_routing_module__WEBPACK_IMPORTED_MODULE_2__["ReprovarVeiculoRoutingModule"]],
            declarations: [_reprovar_veiculo_form_reprovar_veiculo_form_component__WEBPACK_IMPORTED_MODULE_3__["ReprovarVeiculoFormComponent"]]
        })
    ], ReprovarVeiculoModule);
    return ReprovarVeiculoModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/vopak/movimentos/reprovar-veiculo/reprovar-veiculo.routing.module.ts":
/*!********************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/movimentos/reprovar-veiculo/reprovar-veiculo.routing.module.ts ***!
  \********************************************************************************************************/
/*! exports provided: ReprovarVeiculoRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReprovarVeiculoRoutingModule", function() { return ReprovarVeiculoRoutingModule; });
/* 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 _config_enumerables__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _reprovar_veiculo_form_reprovar_veiculo_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./reprovar-veiculo-form/reprovar-veiculo-form.component */ "./src/app/pages/especificos/vopak/movimentos/reprovar-veiculo/reprovar-veiculo-form/reprovar-veiculo-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: _reprovar_veiculo_form_reprovar_veiculo_form_component__WEBPACK_IMPORTED_MODULE_3__["ReprovarVeiculoFormComponent"],
        data: { breadcrumb: "reprovarVeiculo", formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index } }
    }
];
var ReprovarVeiculoRoutingModule = /** @class */ (function () {
    function ReprovarVeiculoRoutingModule() {
    }
    ReprovarVeiculoRoutingModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"].forChild(MRoutes)],
            exports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"]],
        })
    ], ReprovarVeiculoRoutingModule);
    return ReprovarVeiculoRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/vopak/movimentos/reprovar-veiculo/reprovar-veiculo.service.ts":
/*!*************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/movimentos/reprovar-veiculo/reprovar-veiculo.service.ts ***!
  \*************************************************************************************************/
/*! exports provided: ReprovarVeiculoService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReprovarVeiculoService", function() { return ReprovarVeiculoService; });
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_shared_services_base_specifics_base_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/base/specifics.base.service */ "./src/app/shared/services/base/specifics.base.service.ts");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
/* harmony import */ var app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/app.error-handler */ "./src/app/app.error-handler.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 ReprovarVeiculoService = /** @class */ (function (_super) {
    __extends(ReprovarVeiculoService, _super);
    function ReprovarVeiculoService(http) {
        var _this = _super.call(this, http, "vopak/reprovarVeiculo") || this;
        _this.http = http;
        return _this;
    }
    ReprovarVeiculoService.prototype.getByNumeroOS = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/vopak/reprovarVeiculo/getByNumeroOS", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    ReprovarVeiculoService.prototype.podeAlterar = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/vopak/reprovarVeiculo/podeAlterar", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    ReprovarVeiculoService.prototype.podeReprovar = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/vopak/reprovarVeiculo/podeReprovar", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    ReprovarVeiculoService.prototype.reprovacaoVeiculo = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/vopak/reprovarVeiculo/reprovacaoVeiculo", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    ReprovarVeiculoService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"] }
    ]; };
    ReprovarVeiculoService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"]])
    ], ReprovarVeiculoService);
    return ReprovarVeiculoService;
}(app_shared_services_base_specifics_base_service__WEBPACK_IMPORTED_MODULE_2__["SpecificsBaseService"]));



/***/ })

}]);
//# sourceMappingURL=app-pages-especificos-vopak-movimentos-reprovar-veiculo-reprovar-veiculo-module.js.map