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

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/movimentos/manutencao-veiculos-automacao/manutencao-veiculos-automacao-baia/manutencao-veiculos-automacao-baia.component.html":
/*!*************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/movimentos/manutencao-veiculos-automacao/manutencao-veiculos-automacao-baia/manutencao-veiculos-automacao-baia.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=\"manutencao-veiculos-automacao-baia-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\r\n    <div class=\"uni-modal-dialog-md-50\">\r\n        <div class=\"modal-content\">\r\n            <div class=\"modal-header\">\r\n                <h6 class=\"modal-title\">{{ 'titles.alteracaoDeBaia' | translate }}</h6>\r\n            </div>\r\n            <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\">\r\n                <app-validacoes></app-validacoes>\r\n                <div class=\"modal-body\">\r\n                    <div class=\"table-responsive\" style=\"overflow: auto; max-height: 500px;\">\r\n                        <table id=\"dtAlteracaoBaia\"\r\n                            class=\"table table-striped table-bordered table-hover nowrap table-sm\">\r\n                            <thead>\r\n                                <tr>\r\n                                    <th>{{ 'labels.codigo' | translate }}</th>\r\n                                    <th>{{ 'labels.plataforma' | translate }}</th>\r\n                                    <th>{{ 'labels.baia' | translate }}</th>\r\n                                    <th>{{ 'labels.tipo' | translate }}</th>\r\n                                </tr>\r\n                            </thead>\r\n                            <tbody>\r\n                                <tr *ngFor=\"let t of dadosAlteracaoBaia; index as i\"\r\n                                    [ngClass]=\"{'info': t == dataAlteracaoBaia && i == currentIndex ? true : false}\"\r\n                                    (click)=\"rowSelect(t,i)\">\r\n                                    <td>{{ t.plataformaId }}</td>\r\n                                    <td>{{ t.descrPlataforma }}</td>\r\n                                    <td>{{ t.numeroBaia }}</td>\r\n                                    <td>{{ t.descrTipo }}</td>\r\n                                </tr>\r\n                                <tr *ngIf=\"!hasDados\">\r\n                                    <th colspan=\"4\" style=\"text-align: center\">\r\n                                        {{ \"messages.nenhumRegistroEncontrado\" | translate }}\r\n                                    </th>\r\n                                </tr>\r\n                            </tbody>\r\n                        </table>\r\n                    </div>\r\n                </div>\r\n                <div class=\"modal-footer\">\r\n                    <button class=\"btn btn-success mr-1\" type=\"submit\">{{ 'buttons.selecionar' | translate }}\r\n                    </button>\r\n                    <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">cancelar</button>\r\n                </div>\r\n            </form>\r\n        </div>\r\n    </div>\r\n</div>\r\n<app-motiva-motorista (ok)=\"outMotivaMotorista($event)\"></app-motiva-motorista>");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div class=\"modal fade\" id=\"manutencao-veiculos-automacao-filter-dialog\" tabindex=\"-1\" role=\"dialog\"\r\n    data-backdrop=\"static\">\r\n    <div class=\"modal-dialog modal-sm\">\r\n        <div class=\"modal-content\">\r\n            <form class=\"form\" #frm=\"ngForm\" (ngSubmit)=\"onSubmit(frm)\">\r\n                <div class=\"modal-header\">\r\n                    <h4 class=\"modal-title\">{{ 'titles.placa' | translate }}</h4>\r\n                    <button type=\"button\" class=\"close\" aria-label=\"Close\" data-dismiss=\"modal\">\r\n                        <span aria-hidden=\"true\">&times;</span>\r\n                    </button>\r\n                </div>\r\n                <div class=\"modal-body\">\r\n                    <app-validacoes [formErrorId]=\"'MVAFilter'\"></app-validacoes>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-md-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"placa\" class=\"required\">{{'labels.placa' | translate}}</label>\r\n                                <input id=\"placa\" name=\"placa\" [(ngModel)]=\"service.filter.cadastroPlacaId\"\r\n                                    class=\"form-control form-control-sm\" type=\"text\" required />\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.pesquisar' | translate }}\r\n                    </button>\r\n                    <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">{{ 'buttons.sair' | translate\r\n                        }}</button>\r\n                </div>\r\n            </form>\r\n        </div>\r\n    </div>\r\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/movimentos/manutencao-veiculos-automacao/manutencao-veiculos-automacao-index/manutencao-veiculos-automacao-index.component.html":
/*!***************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/movimentos/manutencao-veiculos-automacao/manutencao-veiculos-automacao-index/manutencao-veiculos-automacao-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\"\n    [itemData]=\"data.entradaVeiculoId\" [sisFormularioId]=\"constantes.sisFormularioId\">\n</app-menu-command-bar>\n\n<div class=\"section-comand-bar\">\n    <app-validacoes></app-validacoes>\n    <div class=\"clearfix\">\n        <ul class=\"nav nav-tabs\">\n            <li class=\"nav-item\">\n                <a class=\"nav-link active show\" data-toggle=\"tab\" href=\"#da\">{{\"labels.dados\" | translate }}</a>\n            </li>\n            <li class=\"nav-item\">\n                <a class=\"nav-link\" data-toggle=\"tab\" href=\"#or\" (click)=\"getOrdensCarregamento()\">{{\n                    \"labels.ordensDeCarregamento\" | translate }}</a>\n            </li>\n        </ul>\n    </div>\n    <div class=\"tab-content top\">\n        <!-- ABA DADOS -->\n        <div class=\"tab-pane active show\" id=\"da\">\n            <div class=\"row\">\n                <div class=\"clearfix\">&nbsp;</div>\n                <div class=\"col-md-12 col-lg-12\">\n                    <table id=\"dtManutencaoVeiculosAutomacao\"\n                        class=\"table table-striped table-bordered table-hover nowrap table-sm\"></table>\n                </div>\n            </div>\n        </div>\n\n        <!-- ABA ORDENS DE CARREGAMENTO -->\n        <div class=\"tab-pane\" id=\"or\">\n            <div class=\"container-buttons\">\n                <div class=\"btn-group\">\n                    <app-menu-button title=\"{{ 'buttons.editar' | translate }}\" [icon]=\"'icon-pencil'\"\n                        [disabled]=\"!dataOrdemCarregamento?.entradaVeiculoId\" (click)=\"edit()\">\n                    </app-menu-button>\n                    <app-menu-button title=\"{{ 'buttons.excluir' | translate }}\" [icon]=\"'icon-close'\"\n                        [disabled]=\"!dataOrdemCarregamento?.entradaVeiculoId\" (click)=\"delete()\">\n                    </app-menu-button>\n                </div>\n            </div>\n            <div class=\"table-responsive\" style=\"overflow: auto; max-height: 500px;\">\n                <table id=\"dtOrdensCarregamento\" class=\"table table-striped table-bordered table-hover nowrap table-sm\">\n                    <thead>\n                        <tr>\n                            <th>{{ 'labels.numero' | translate }}</th>\n                            <th>{{ 'labels.sequencia' | translate }}</th>\n                            <th>{{ 'labels.tipo' | translate }}</th>\n                            <th>{{ 'labels.status' | translate }}</th>\n                        </tr>\n                    </thead>\n                    <tbody>\n                        <tr *ngFor=\"let t of dadosOrdensCarregamento; index as i\"\n                            [ngClass]=\"{'info': t == dataOrdemCarregamento && i == currentIndex ? true : false}\"\n                            (click)=\"rowSelect(t,i)\">\n                            <td>{{ t.entradaVeiculoId }}</td>\n                            <td>{{ t.sequencia }}</td>\n                            <td>{{ t.tipo }}</td>\n                            <td>{{ t.descrStatus }}</td>\n                        </tr>\n                        <tr *ngIf=\"!hasDados\">\n                            <th colspan=\"4\" style=\"text-align: center\">\n                                {{ \"messages.nenhumRegistroEncontrado\" | translate }}\n                            </th>\n                        </tr>\n                    </tbody>\n                </table>\n            </div>\n        </div>\n    </div>\n</div>\n<div class=\"row\">\n    <div class=\"col-lg-3 col-sm-12\">\n        <button class=\"btn btn-secondary btn-block\" (click)=\"ordemComplementar()\" type=\"button\"\n            [disabled]=\"!data?.entradaVeiculoId\">\n            {{ 'buttons.ordemComplementar' | translate }}\n        </button>\n    </div>\n    <div class=\"col-lg-3 col-sm-12\">\n        <button class=\"btn btn-block btn-success\" (click)=\"alterarBaia()\" type=\"button\"\n            [disabled]=\"!data?.entradaVeiculoId\">\n            {{ 'buttons.alterarBaia' | translate }}\n        </button>\n    </div>\n    <div class=\"col-lg-3 col-sm-12\">\n        <button class=\"btn btn-block btn-info\" (click)=\"obrigarPesagem()\" type=\"button\"\n            [disabled]=\"!data?.entradaVeiculoId\">\n            {{ 'buttons.obrigarPesagem' | translate }}\n        </button>\n    </div>\n</div>\n\n<app-propriedades></app-propriedades>\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>\n<app-manutencao-veiculos-automacao-filter (filtrar)=\"executaFiltro()\"></app-manutencao-veiculos-automacao-filter>\n<app-manutencao-veiculos-automacao-ordem (_refresh)=\"_refresh($event)\"></app-manutencao-veiculos-automacao-ordem>\n<app-manutencao-veiculos-automacao-baia (_refresh)=\"_refresh($event)\"></app-manutencao-veiculos-automacao-baia>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/movimentos/manutencao-veiculos-automacao/manutencao-veiculos-automacao-ordem/manutencao-veiculos-automacao-ordem.component.html":
/*!***************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/movimentos/manutencao-veiculos-automacao/manutencao-veiculos-automacao-ordem/manutencao-veiculos-automacao-ordem.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=\"manutencao-veiculos-automacao-ordem-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\r\n    <div class=\"uni-modal-dialog-md-50\">\r\n        <div class=\"modal-content\">\r\n            <div class=\"modal-header\">\r\n                <h6 class=\"modal-title\">{{ 'titles.ordemComplementarDeCarga' | translate }}</h6>\r\n            </div>\r\n            <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\">\r\n                <app-validacoes></app-validacoes>\r\n                <div class=\"modal-body\">\r\n                    <div class=\"row\">\r\n                        <div class=\"col-12\">\r\n                            <fieldset class=\"fieldset\">\r\n                                <legend>{{'labels.compartimentos' | translate}}</legend>\r\n                                <div class=\"row\">\r\n                                    <div class=\"col-lg-4 col-md-6 col-sm-12\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <label for=\"placaContainer\">{{\r\n                                                \"labels.placaContainer\" | translate\r\n                                                }}</label>\r\n                                            <select class=\"form-control form-control-sm\" id=\"placaContainer\"\r\n                                                name=\"placaContainer\" [(ngModel)]=\"data.cadastroPlacaId1\"\r\n                                                (ngModelChange)=\"trataCompartimento($event, 1)\">\r\n                                                <option value=\"\">{{ \"labels.selecione\" | translate }}</option>\r\n                                                <option *ngFor=\"let item of placasContainers\"\r\n                                                    value=\"{{ item.cadastroPlacaId }}\">{{\r\n                                                    item.cadastroPlacaId }}\r\n                                                </option>\r\n                                            </select>\r\n                                        </div>\r\n                                    </div>\r\n                                    <div class=\"col-lg-4 col-md-6 col-sm-12\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <label for=\"compart\">{{\r\n                                                \"labels.compart\" | translate\r\n                                                }}</label>\r\n                                            <select class=\"form-control form-control-sm\" id=\"compart\" name=\"compart\"\r\n                                                [(ngModel)]=\"data.comp1\">\r\n                                                <option value=\"\">{{ \"labels.selecione\" | translate }}</option>\r\n                                                <option *ngFor=\"let item of compartimentos1\"\r\n                                                    value=\"{{ item.numCompartimento }}\">{{\r\n                                                    item.numCompartimento }}\r\n                                                </option>\r\n                                            </select>\r\n                                        </div>\r\n                                    </div>\r\n                                    <div class=\"col-lg-4 col-md-6 col-sm-12\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <label for=\"quantid\">{{'labels.quantidade' |\r\n                                                translate}}</label>\r\n                                            <input id=\"quantid\" name=\"quantid\" [(ngModel)]=\"data.quantid1\" maxlength=\"9\"\r\n                                                class=\"form-control form-control-sm\" type=\"text\" currencyMask\r\n                                                [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\">\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"row\">\r\n                                    <div class=\"col-lg-4 col-md-6 col-sm-12\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <select class=\"form-control form-control-sm\" id=\"placaContainer\"\r\n                                                name=\"placaContainer\" [(ngModel)]=\"data.cadastroPlacaId2\"\r\n                                                (ngModelChange)=\"trataCompartimento($event, 2)\">\r\n                                                <option value=\"\">{{ \"labels.selecione\" | translate }}</option>\r\n                                                <option *ngFor=\"let item of placasContainers\"\r\n                                                    value=\"{{ item.cadastroPlacaId }}\">{{\r\n                                                    item.cadastroPlacaId }}\r\n                                                </option>\r\n                                            </select>\r\n                                        </div>\r\n                                    </div>\r\n                                    <div class=\"col-lg-4 col-md-6 col-sm-12\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <select class=\"form-control form-control-sm\" id=\"compart\" name=\"compart\"\r\n                                                [(ngModel)]=\"data.comp2\">\r\n                                                <option value=\"\">{{ \"labels.selecione\" | translate }}</option>\r\n                                                <option *ngFor=\"let item of compartimentos2\"\r\n                                                    value=\"{{ item.numCompartimento }}\">{{\r\n                                                    item.numCompartimento }}\r\n                                                </option>\r\n                                            </select>\r\n                                        </div>\r\n                                    </div>\r\n                                    <div class=\"col-lg-4 col-md-6 col-sm-12\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <input id=\"quantid\" name=\"quantid\" [(ngModel)]=\"data.quantid2\" maxlength=\"9\"\r\n                                                class=\"form-control form-control-sm\" type=\"text\" currencyMask\r\n                                                [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\">\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"row\">\r\n                                    <div class=\"col-lg-4 col-md-6 col-sm-12\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <select class=\"form-control form-control-sm\" id=\"placaContainer\"\r\n                                                name=\"placaContainer\" [(ngModel)]=\"data.cadastroPlacaId3\"\r\n                                                (ngModelChange)=\"trataCompartimento($event, 3)\">\r\n                                                <option value=\"\">{{ \"labels.selecione\" | translate }}</option>\r\n                                                <option *ngFor=\"let item of placasContainers\"\r\n                                                    value=\"{{ item.cadastroPlacaId }}\">{{\r\n                                                    item.cadastroPlacaId }}\r\n                                                </option>\r\n                                            </select>\r\n                                        </div>\r\n                                    </div>\r\n                                    <div class=\"col-lg-4 col-md-6 col-sm-12\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <select class=\"form-control form-control-sm\" id=\"compart\" name=\"compart\"\r\n                                                [(ngModel)]=\"data.comp3\">\r\n                                                <option value=\"\">{{ \"labels.selecione\" | translate }}</option>\r\n                                                <option *ngFor=\"let item of compartimentos3\"\r\n                                                    value=\"{{ item.numCompartimento }}\">{{\r\n                                                    item.numCompartimento }}\r\n                                                </option>\r\n                                            </select>\r\n                                        </div>\r\n                                    </div>\r\n                                    <div class=\"col-lg-4 col-md-6 col-sm-12\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <input id=\"quantid\" name=\"quantid\" [(ngModel)]=\"data.quantid3\" maxlength=\"9\"\r\n                                                class=\"form-control form-control-sm\" type=\"text\" currencyMask\r\n                                                [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\">\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"row\">\r\n                                    <div class=\"col-lg-4 col-md-6 col-sm-12\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <select class=\"form-control form-control-sm\" id=\"placaContainer\"\r\n                                                name=\"placaContainer\" [(ngModel)]=\"data.cadastroPlacaId4\"\r\n                                                (ngModelChange)=\"trataCompartimento($event, 4)\">\r\n                                                <option value=\"\">{{ \"labels.selecione\" | translate }}</option>\r\n                                                <option *ngFor=\"let item of placasContainers\"\r\n                                                    value=\"{{ item.cadastroPlacaId }}\">{{\r\n                                                    item.cadastroPlacaId }}\r\n                                                </option>\r\n                                            </select>\r\n                                        </div>\r\n                                    </div>\r\n                                    <div class=\"col-lg-4 col-md-6 col-sm-12\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <select class=\"form-control form-control-sm\" id=\"compart\" name=\"compart\"\r\n                                                [(ngModel)]=\"data.comp4\">\r\n                                                <option value=\"\">{{ \"labels.selecione\" | translate }}</option>\r\n                                                <option *ngFor=\"let item of compartimentos4\"\r\n                                                    value=\"{{ item.numCompartimento }}\">{{\r\n                                                    item.numCompartimento }}\r\n                                                </option>\r\n                                            </select>\r\n                                        </div>\r\n                                    </div>\r\n                                    <div class=\"col-lg-4 col-md-6 col-sm-12\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <input id=\"quantid\" name=\"quantid\" [(ngModel)]=\"data.quantid4\" maxlength=\"9\"\r\n                                                class=\"form-control form-control-sm\" type=\"text\" currencyMask\r\n                                                [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\">\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"row\">\r\n                                    <div class=\"col-lg-4 col-md-6 col-sm-12\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <select class=\"form-control form-control-sm\" id=\"placaContainer\"\r\n                                                name=\"placaContainer\" [(ngModel)]=\"data.cadastroPlacaId5\"\r\n                                                (ngModelChange)=\"trataCompartimento($event, 5)\">\r\n                                                <option value=\"\">{{ \"labels.selecione\" | translate }}</option>\r\n                                                <option *ngFor=\"let item of placasContainers\"\r\n                                                    value=\"{{ item.cadastroPlacaId }}\">{{\r\n                                                    item.cadastroPlacaId }}\r\n                                                </option>\r\n                                            </select>\r\n                                        </div>\r\n                                    </div>\r\n                                    <div class=\"col-lg-4 col-md-6 col-sm-12\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <select class=\"form-control form-control-sm\" id=\"compart\" name=\"compart\"\r\n                                                [(ngModel)]=\"data.comp5\">\r\n                                                <option value=\"\">{{ \"labels.selecione\" | translate }}</option>\r\n                                                <option *ngFor=\"let item of compartimentos5\"\r\n                                                    value=\"{{ item.numCompartimento }}\">{{\r\n                                                    item.numCompartimento }}\r\n                                                </option>\r\n                                            </select>\r\n                                        </div>\r\n                                    </div>\r\n                                    <div class=\"col-lg-4 col-md-6 col-sm-12\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <input id=\"quantid\" name=\"quantid\" [(ngModel)]=\"data.quantid5\" maxlength=\"9\"\r\n                                                class=\"form-control form-control-sm\" type=\"text\" currencyMask\r\n                                                [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\">\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"row\">\r\n                                    <div class=\"col-lg-4 col-md-6 col-sm-12\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <select class=\"form-control form-control-sm\" id=\"placaContainer\"\r\n                                                name=\"placaContainer\" [(ngModel)]=\"data.cadastroPlacaId6\"\r\n                                                (ngModelChange)=\"trataCompartimento($event, 6)\">\r\n                                                <option value=\"\">{{ \"labels.selecione\" | translate }}</option>\r\n                                                <option *ngFor=\"let item of placasContainers\"\r\n                                                    value=\"{{ item.cadastroPlacaId }}\">{{\r\n                                                    item.cadastroPlacaId }}\r\n                                                </option>\r\n                                            </select>\r\n                                        </div>\r\n                                    </div>\r\n                                    <div class=\"col-lg-4 col-md-6 col-sm-12\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <select class=\"form-control form-control-sm\" id=\"compart\" name=\"compart\"\r\n                                                [(ngModel)]=\"data.comp6\">\r\n                                                <option value=\"\">{{ \"labels.selecione\" | translate }}</option>\r\n                                                <option *ngFor=\"let item of compartimentos6\"\r\n                                                    value=\"{{ item.numCompartimento }}\">{{\r\n                                                    item.numCompartimento }}\r\n                                                </option>\r\n                                            </select>\r\n                                        </div>\r\n                                    </div>\r\n                                    <div class=\"col-lg-4 col-md-6 col-sm-12\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <input id=\"quantid\" name=\"quantid\" [(ngModel)]=\"data.quantid6\" maxlength=\"9\"\r\n                                                class=\"form-control form-control-sm\" type=\"text\" currencyMask\r\n                                                [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\">\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"row\">\r\n                                    <div class=\"col-lg-4 col-md-6 col-sm-12\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <select class=\"form-control form-control-sm\" id=\"placaContainer\"\r\n                                                name=\"placaContainer\" [(ngModel)]=\"data.cadastroPlacaId7\"\r\n                                                (ngModelChange)=\"trataCompartimento($event, 7)\">\r\n                                                <option value=\"\">{{ \"labels.selecione\" | translate }}</option>\r\n                                                <option *ngFor=\"let item of placasContainers\"\r\n                                                    value=\"{{ item.cadastroPlacaId }}\">{{\r\n                                                    item.cadastroPlacaId }}\r\n                                                </option>\r\n                                            </select>\r\n                                        </div>\r\n                                    </div>\r\n                                    <div class=\"col-lg-4 col-md-6 col-sm-12\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <select class=\"form-control form-control-sm\" id=\"compart\" name=\"compart\"\r\n                                                [(ngModel)]=\"data.comp7\">\r\n                                                <option value=\"\">{{ \"labels.selecione\" | translate }}</option>\r\n                                                <option *ngFor=\"let item of compartimentos7\"\r\n                                                    value=\"{{ item.numCompartimento }}\">{{\r\n                                                    item.numCompartimento }}\r\n                                                </option>\r\n                                            </select>\r\n                                        </div>\r\n                                    </div>\r\n                                    <div class=\"col-lg-4 col-md-6 col-sm-12\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <input id=\"quantid\" name=\"quantid\" [(ngModel)]=\"data.quantid7\" maxlength=\"9\"\r\n                                                class=\"form-control form-control-sm\" type=\"text\" currencyMask\r\n                                                [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\">\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"row\">\r\n                                    <div class=\"col-lg-4 col-md-6 col-sm-12\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <select class=\"form-control form-control-sm\" id=\"placaContainer\"\r\n                                                name=\"placaContainer\" [(ngModel)]=\"data.cadastroPlacaId8\"\r\n                                                (ngModelChange)=\"trataCompartimento($event, 8)\">\r\n                                                <option value=\"\">{{ \"labels.selecione\" | translate }}</option>\r\n                                                <option *ngFor=\"let item of placasContainers\"\r\n                                                    value=\"{{ item.cadastroPlacaId }}\">{{\r\n                                                    item.cadastroPlacaId }}\r\n                                                </option>\r\n                                            </select>\r\n                                        </div>\r\n                                    </div>\r\n                                    <div class=\"col-lg-4 col-md-6 col-sm-12\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <select class=\"form-control form-control-sm\" id=\"compart\" name=\"compart\"\r\n                                                [(ngModel)]=\"data.comp8\">\r\n                                                <option value=\"\">{{ \"labels.selecione\" | translate }}</option>\r\n                                                <option *ngFor=\"let item of compartimentos8\"\r\n                                                    value=\"{{ item.numCompartimento }}\">{{\r\n                                                    item.numCompartimento }}\r\n                                                </option>\r\n                                            </select>\r\n                                        </div>\r\n                                    </div>\r\n                                    <div class=\"col-lg-4 col-md-6 col-sm-12\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <input id=\"quantid\" name=\"quantid\" [(ngModel)]=\"data.quantid8\" maxlength=\"9\"\r\n                                                class=\"form-control form-control-sm\" type=\"text\" currencyMask\r\n                                                [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\">\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"row\">\r\n                                    <div class=\"col-lg-4 col-md-6 col-sm-12\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <select class=\"form-control form-control-sm\" id=\"placaContainer\"\r\n                                                name=\"placaContainer\" [(ngModel)]=\"data.cadastroPlacaId9\"\r\n                                                (ngModelChange)=\"trataCompartimento($event, 9)\">\r\n                                                <option value=\"\">{{ \"labels.selecione\" | translate }}</option>\r\n                                                <option *ngFor=\"let item of placasContainers\"\r\n                                                    value=\"{{ item.cadastroPlacaId }}\">{{\r\n                                                    item.cadastroPlacaId }}\r\n                                                </option>\r\n                                            </select>\r\n                                        </div>\r\n                                    </div>\r\n                                    <div class=\"col-lg-4 col-md-6 col-sm-12\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <select class=\"form-control form-control-sm\" id=\"compart\" name=\"compart\"\r\n                                                [(ngModel)]=\"data.comp9\">\r\n                                                <option value=\"\">{{ \"labels.selecione\" | translate }}</option>\r\n                                                <option *ngFor=\"let item of compartimentos9\"\r\n                                                    value=\"{{ item.numCompartimento }}\">{{\r\n                                                    item.numCompartimento }}\r\n                                                </option>\r\n                                            </select>\r\n                                        </div>\r\n                                    </div>\r\n                                    <div class=\"col-lg-4 col-md-6 col-sm-12\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <input id=\"quantid\" name=\"quantid\" [(ngModel)]=\"data.quantid9\" maxlength=\"9\"\r\n                                                class=\"form-control form-control-sm\" type=\"text\" currencyMask\r\n                                                [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\">\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"row\">\r\n                                    <div class=\"col-lg-4 col-md-6 col-sm-12\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <select class=\"form-control form-control-sm\" id=\"placaContainer\"\r\n                                                name=\"placaContainer\" [(ngModel)]=\"data.cadastroPlacaId10\"\r\n                                                (ngModelChange)=\"trataCompartimento($event, 10)\">\r\n                                                <option value=\"\">{{ \"labels.selecione\" | translate }}</option>\r\n                                                <option *ngFor=\"let item of placasContainers\"\r\n                                                    value=\"{{ item.cadastroPlacaId }}\">{{\r\n                                                    item.cadastroPlacaId }}\r\n                                                </option>\r\n                                            </select>\r\n                                        </div>\r\n                                    </div>\r\n                                    <div class=\"col-lg-4 col-md-6 col-sm-12\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <select class=\"form-control form-control-sm\" id=\"compart\" name=\"compart\"\r\n                                                [(ngModel)]=\"data.comp10\">\r\n                                                <option value=\"\">{{ \"labels.selecione\" | translate }}</option>\r\n                                                <option *ngFor=\"let item of compartimentos10\"\r\n                                                    value=\"{{ item.numCompartimento }}\">{{\r\n                                                    item.numCompartimento }}\r\n                                                </option>\r\n                                            </select>\r\n                                        </div>\r\n                                    </div>\r\n                                    <div class=\"col-lg-4 col-md-6 col-sm-12\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <input id=\"quantid\" name=\"quantid\" [(ngModel)]=\"data.quantid10\"\r\n                                                maxlength=\"9\" class=\"form-control form-control-sm\" type=\"text\"\r\n                                                currencyMask\r\n                                                [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\">\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                            </fieldset>\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.ok' | translate }}\r\n                    </button>\r\n                    <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">cancelar</button>\r\n                </div>\r\n            </form>\r\n        </div>\r\n    </div>\r\n</div>");

/***/ }),

/***/ "./src/app/pages/especificos/vopak/movimentos/manutencao-veiculos-automacao/manutencao-veiculos-automacao-baia/manutencao-veiculos-automacao-baia.component.ts":
/*!*********************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/movimentos/manutencao-veiculos-automacao/manutencao-veiculos-automacao-baia/manutencao-veiculos-automacao-baia.component.ts ***!
  \*********************************************************************************************************************************************************************/
/*! exports provided: ManutencaoVeiculosAutomacaoBaiaComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ManutencaoVeiculosAutomacaoBaiaComponent", function() { return ManutencaoVeiculosAutomacaoBaiaComponent; });
/* 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_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 app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var _manutencao_veiculos_automacao_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../manutencao-veiculos-automacao.service */ "./src/app/pages/especificos/vopak/movimentos/manutencao-veiculos-automacao/manutencao-veiculos-automacao.service.ts");
/* harmony import */ var _manutencao_veiculos_automacao_model__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../manutencao-veiculos-automacao.model */ "./src/app/pages/especificos/vopak/movimentos/manutencao-veiculos-automacao/manutencao-veiculos-automacao.model.ts");
/* harmony import */ var app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_8__ = __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 app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/shared/services/funcoes/number-utils/number-utils.static.service */ "./src/app/shared/services/funcoes/number-utils/number-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! app/shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.ts");
/* harmony import */ var _manutencao_veiculos_automacao_constants__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../manutencao-veiculos-automacao.constants */ "./src/app/pages/especificos/vopak/movimentos/manutencao-veiculos-automacao/manutencao-veiculos-automacao.constants.ts");
/* harmony import */ var app_pages_veiculo_check_list_check_list_facade__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! app/pages/veiculo/check-list/check-list.facade */ "./src/app/pages/veiculo/check-list/check-list.facade.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 __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 ManutencaoVeiculosAutomacaoBaiaComponent = /** @class */ (function () {
    function ManutencaoVeiculosAutomacaoBaiaComponent(funcoesService, messageService, service, loginService, configuracao, checkListFacade) {
        var _this = this;
        this.funcoesService = funcoesService;
        this.messageService = messageService;
        this.service = service;
        this.loginService = loginService;
        this.configuracao = configuracao;
        this.checkListFacade = checkListFacade;
        this.dataAlteracaoBaia = new _manutencao_veiculos_automacao_model__WEBPACK_IMPORTED_MODULE_7__["ManutencaoVeiculosAutomacaoBaiaDto"]();
        this.dadosAlteracaoBaia = [];
        this.hasDados = false;
        this.constantes = new _manutencao_veiculos_automacao_constants__WEBPACK_IMPORTED_MODULE_11__["ManutencaoVeiculosAutomacaoConstants"]();
        this.mascara = new app_config_enumerables__WEBPACK_IMPORTED_MODULE_1__["Mascaras"]();
        this._refresh = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.loadConfig = function () {
            if (_this.configuracao.isLoadConfig()) {
                _this.fmcAtivo = _this.configuracao.boolean("BAL", "FmcAtivo");
                _this.intCta = _this.configuracao.boolean("BAL", "IntCta");
            }
        };
    }
    ManutencaoVeiculosAutomacaoBaiaComponent.prototype.ngOnInit = function () {
        this.configuracao.getConfig(this.constantes.listaParam, this.loadConfig);
        this.dataAlteracaoBaia = new _manutencao_veiculos_automacao_model__WEBPACK_IMPORTED_MODULE_7__["ManutencaoVeiculosAutomacaoBaiaDto"]();
        this._refresh.emit(false);
    };
    ManutencaoVeiculosAutomacaoBaiaComponent.prototype.onSubmit = function (form) {
        return __awaiter(this, void 0, void 0, function () {
            var _this = this;
            return __generator(this, function (_a) {
                if (form.invalid) {
                    app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__["EventEmitterService"].get("formError").emit(form);
                    this.funcoesService.backToTop();
                    return [2 /*return*/];
                }
                if ((this.dataAlteracaoBaia.plataformaId === this.dataIndex.plataformaId) &&
                    (this.dataAlteracaoBaia.numeroBaia === app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["NumberUtilsStaticService"].toNumber(this.dataIndex.baia))) {
                    this.messageService.confirm("titles.manutencaoVeiculosAutomacao", "messages.plataformaBaiaSelecionadaIgualAtualDesejaContinuar", "null", function () {
                        _this.verificaBaixaAutomatizadaOrManual();
                    }, false, function () {
                        jQuery("#manutencao-veiculos-automacao-baia-dialog").modal("hide");
                    });
                }
                else {
                    this.verificaBaixaAutomatizadaOrManual();
                }
                return [2 /*return*/];
            });
        });
    };
    ManutencaoVeiculosAutomacaoBaiaComponent.prototype.verificaBaixaAutomatizadaOrManual = function () {
        var _this = this;
        var descrTipo = "";
        var text;
        descrTipo = this.dataAlteracaoBaia.tipo === 1 ? "Automatizada" : "Manual";
        text = this.messageService.translate("messages.confirmaAlteracaoDoVeiculoBaia", { descrTipo: descrTipo });
        this.messageService.confirm("titles.manutencaoVeiculosAutomacao", text, "null", function () {
            _this.executeGravaBaiaDoVeiculo();
        }, false, function () {
            jQuery("#manutencao-veiculos-automacao-baia-dialog").modal("hide");
        });
    };
    ManutencaoVeiculosAutomacaoBaiaComponent.prototype.executeGravaBaiaDoVeiculo = function () {
        return __awaiter(this, void 0, void 0, function () {
            var gravaBaia, validationResult, mensagens;
            var _this = this;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        gravaBaia = new _manutencao_veiculos_automacao_model__WEBPACK_IMPORTED_MODULE_7__["ManutencaoVeiculosAutomacaoGravaBaiaVo"]();
                        gravaBaia.entradaVeiculoId = app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["NumberUtilsStaticService"].toNumber(this.dataIndex.entradaVeiculoId);
                        gravaBaia.plataformaId = app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["StringUtilsStaticService"].toString(this.dataAlteracaoBaia.plataformaId);
                        gravaBaia.baia = app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["StringUtilsStaticService"].toString(this.dataAlteracaoBaia.numeroBaia);
                        gravaBaia.tipo = app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["NumberUtilsStaticService"].toNumber(this.dataAlteracaoBaia.tipo);
                        gravaBaia.flagBaiaAutomatizada = app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["StringUtilsStaticService"].toString(this.dataIndex.flagBaiaAutomatizada);
                        gravaBaia.checkListId = app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["NumberUtilsStaticService"].toNumber(this.dataIndex.checkListId);
                        gravaBaia.tipoMov = app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["StringUtilsStaticService"].toString(this.dataIndex.tipoMov);
                        gravaBaia.flagValidaPBT = app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["StringUtilsStaticService"].toString(this.dataIndex.flagValidaPBT);
                        gravaBaia.flagObrigaPesagem = app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["StringUtilsStaticService"].toString(this.dataIndex.flagObrigaPesagem);
                        gravaBaia.flagInspecaoPesagem = app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["StringUtilsStaticService"].toString(this.dataIndex.flagInspecaoPesagem);
                        gravaBaia.idFMC = app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["NumberUtilsStaticService"].toNumber(this.dataIndex.idFMC);
                        return [4 /*yield*/, this.service.gravaBaiaDoVeiculo(gravaBaia).toPromise()];
                    case 1:
                        validationResult = _a.sent();
                        if (!validationResult.isValid) {
                            mensagens = this.messageService.validationResult(validationResult);
                            mensagens.forEach(function (m) { return _this.messageService.warning("titles.manutencaoVeiculosAutomacao", m); });
                            return [2 /*return*/];
                        }
                        else {
                            if ((app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["StringUtilsStaticService"].toString(this.dataIndex.flagBaiaAutomatizada) == "N" || app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["StringUtilsStaticService"].toString(this.dataIndex.flagObrigaPesagem) == "S" || app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["StringUtilsStaticService"].toString(this.dataIndex.flagInspecaoPesagem == "S")) &&
                                ((app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["NumberUtilsStaticService"].toNumber(this.dataAlteracaoBaia.tipo) === 0 || !this.fmcAtivo || app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["StringUtilsStaticService"].toString(this.dataIndex.flagValidaPBT) == "S" || app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["StringUtilsStaticService"].toString(this.dataIndex.flagObrigaPesagem) == "S" ||
                                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["StringUtilsStaticService"].toString(this.dataIndex.flagInspecaoPesagem) == "S"))) {
                            }
                            {
                                this.getDadosRequisicao(false, app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["StringUtilsStaticService"].toString(this.dataIndex.tipoMov), app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["NumberUtilsStaticService"].toNumber(this.dataIndex.checkListId), app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["NumberUtilsStaticService"].toNumber(this.dataIndex.entradaVeiculoId));
                            }
                        }
                        return [2 /*return*/];
                }
            });
        });
    };
    ManutencaoVeiculosAutomacaoBaiaComponent.prototype.getDadosRequisicao = function (baixada, tipoMov, checkListId, entradaVeiculoId) {
        return __awaiter(this, void 0, void 0, function () {
            var ret;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0: return [4 /*yield*/, this.service.getRequisicao({ baixada: baixada, tipoMov: tipoMov, checkListId: checkListId, entradaVeiculoId: entradaVeiculoId }).toPromise()];
                    case 1:
                        ret = _a.sent();
                        if (ret) {
                            this.regRequisicao = ret.regRequisicao;
                            if (this.regRequisicao == 0 && this.intCta) {
                                this.executeMotivaMotorista(entradaVeiculoId);
                            }
                        }
                        return [2 /*return*/];
                }
            });
        });
    };
    ManutencaoVeiculosAutomacaoBaiaComponent.prototype.objectSelect = function (current, dadosBaia) {
        this.dataIndex = current;
        this.dadosAlteracaoBaia = dadosBaia;
        this.hasDados = dadosBaia && dadosBaia.length > 0;
        if (this.hasDados) {
            this.rowSelect(this.dadosAlteracaoBaia[0], 0);
        }
        else {
            this.dataAlteracaoBaia = new _manutencao_veiculos_automacao_model__WEBPACK_IMPORTED_MODULE_7__["ManutencaoVeiculosAutomacaoBaiaDto"]();
        }
    };
    ManutencaoVeiculosAutomacaoBaiaComponent.prototype.rowSelect = function (item, index) {
        this.currentIndex = index;
        this.dataAlteracaoBaia = item;
    };
    ManutencaoVeiculosAutomacaoBaiaComponent.prototype.executeMotivaMotorista = function (entradaVeiculoId) {
        if (entradaVeiculoId > 0)
            app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__["EventEmitterService"].get('emiMotivaMotorista').emit({ entradaVeiculoId: entradaVeiculoId });
    };
    ManutencaoVeiculosAutomacaoBaiaComponent.prototype.outMotivaMotorista = function (ok) {
        var _this = this;
        if (ok) {
            this.checkListFacade.confirmaAprovacao(this.dataIndex.checkListId, function () {
                _this.closeModalBaia();
            });
        }
    };
    ManutencaoVeiculosAutomacaoBaiaComponent.prototype.closeModalBaia = function () {
        jQuery("#manutencao-veiculos-automacao-baia-dialog").modal("hide");
        this.messageService.success("titles.manutencaoVeiculosAutomacao", "messages.baiaAlteradoComSucesso");
        this._refresh.emit(true);
    };
    ManutencaoVeiculosAutomacaoBaiaComponent.ctorParameters = function () { return [
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"] },
        { type: _manutencao_veiculos_automacao_service__WEBPACK_IMPORTED_MODULE_6__["ManutencaoVeiculosAutomacaoService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_5__["LoginService"] },
        { type: app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_10__["ConfiguracaoFacade"] },
        { type: app_pages_veiculo_check_list_check_list_facade__WEBPACK_IMPORTED_MODULE_12__["CheckListFacade"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], ManutencaoVeiculosAutomacaoBaiaComponent.prototype, "_refresh", void 0);
    ManutencaoVeiculosAutomacaoBaiaComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-manutencao-veiculos-automacao-baia",
            template: __importDefault(__webpack_require__(/*! raw-loader!./manutencao-veiculos-automacao-baia.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/movimentos/manutencao-veiculos-automacao/manutencao-veiculos-automacao-baia/manutencao-veiculos-automacao-baia.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"],
            _manutencao_veiculos_automacao_service__WEBPACK_IMPORTED_MODULE_6__["ManutencaoVeiculosAutomacaoService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_5__["LoginService"],
            app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_10__["ConfiguracaoFacade"],
            app_pages_veiculo_check_list_check_list_facade__WEBPACK_IMPORTED_MODULE_12__["CheckListFacade"]])
    ], ManutencaoVeiculosAutomacaoBaiaComponent);
    return ManutencaoVeiculosAutomacaoBaiaComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/vopak/movimentos/manutencao-veiculos-automacao/manutencao-veiculos-automacao-filter/manutencao-veiculos-automacao-filter.component.ts":
/*!*************************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/movimentos/manutencao-veiculos-automacao/manutencao-veiculos-automacao-filter/manutencao-veiculos-automacao-filter.component.ts ***!
  \*************************************************************************************************************************************************************************/
/*! exports provided: ManutencaoVeiculosAutomacaoFilterComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ManutencaoVeiculosAutomacaoFilterComponent", function() { return ManutencaoVeiculosAutomacaoFilterComponent; });
/* 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_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 _manutencao_veiculos_automacao_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../manutencao-veiculos-automacao.service */ "./src/app/pages/especificos/vopak/movimentos/manutencao-veiculos-automacao/manutencao-veiculos-automacao.service.ts");
/* harmony import */ var _manutencao_veiculos_automacao_model__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../manutencao-veiculos-automacao.model */ "./src/app/pages/especificos/vopak/movimentos/manutencao-veiculos-automacao/manutencao-veiculos-automacao.model.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};





var ManutencaoVeiculosAutomacaoFilterComponent = /** @class */ (function () {
    function ManutencaoVeiculosAutomacaoFilterComponent(service) {
        this.service = service;
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.mascara = new app_config_enumerables__WEBPACK_IMPORTED_MODULE_1__["Mascaras"]();
    }
    ManutencaoVeiculosAutomacaoFilterComponent.prototype.ngOnInit = function () {
        if (!this.service.filter)
            this.service.filter = new _manutencao_veiculos_automacao_model__WEBPACK_IMPORTED_MODULE_4__["ManutencaoVeiculosAutomacaoFilter"]();
    };
    ManutencaoVeiculosAutomacaoFilterComponent.prototype.onSubmit = function (form) {
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__["EventEmitterService"].get("MVAFilter").emit(form);
        if (form.invalid) {
            return;
        }
        this.filtrar.emit();
        jQuery("#manutencao-veiculos-automacao-filter-dialog").modal("hide");
    };
    ManutencaoVeiculosAutomacaoFilterComponent.ctorParameters = function () { return [
        { type: _manutencao_veiculos_automacao_service__WEBPACK_IMPORTED_MODULE_3__["ManutencaoVeiculosAutomacaoService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], ManutencaoVeiculosAutomacaoFilterComponent.prototype, "filtrar", void 0);
    ManutencaoVeiculosAutomacaoFilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-manutencao-veiculos-automacao-filter",
            template: __importDefault(__webpack_require__(/*! raw-loader!./manutencao-veiculos-automacao-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/movimentos/manutencao-veiculos-automacao/manutencao-veiculos-automacao-filter/manutencao-veiculos-automacao-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_manutencao_veiculos_automacao_service__WEBPACK_IMPORTED_MODULE_3__["ManutencaoVeiculosAutomacaoService"]])
    ], ManutencaoVeiculosAutomacaoFilterComponent);
    return ManutencaoVeiculosAutomacaoFilterComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/vopak/movimentos/manutencao-veiculos-automacao/manutencao-veiculos-automacao-index/manutencao-veiculos-automacao-index.component.ts":
/*!***********************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/movimentos/manutencao-veiculos-automacao/manutencao-veiculos-automacao-index/manutencao-veiculos-automacao-index.component.ts ***!
  \***********************************************************************************************************************************************************************/
/*! exports provided: ManutencaoVeiculosAutomacaoIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ManutencaoVeiculosAutomacaoIndexComponent", function() { return ManutencaoVeiculosAutomacaoIndexComponent; });
/* 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_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_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/funcoes/number-utils/number-utils.static.service */ "./src/app/shared/services/funcoes/number-utils/number-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var app_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_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.service.ts");
/* harmony import */ var _manutencao_veiculos_automacao_model__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../manutencao-veiculos-automacao.model */ "./src/app/pages/especificos/vopak/movimentos/manutencao-veiculos-automacao/manutencao-veiculos-automacao.model.ts");
/* harmony import */ var _manutencao_veiculos_automacao_constants__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../manutencao-veiculos-automacao.constants */ "./src/app/pages/especificos/vopak/movimentos/manutencao-veiculos-automacao/manutencao-veiculos-automacao.constants.ts");
/* harmony import */ var _manutencao_veiculos_automacao_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../manutencao-veiculos-automacao.service */ "./src/app/pages/especificos/vopak/movimentos/manutencao-veiculos-automacao/manutencao-veiculos-automacao.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");
/* harmony import */ var _manutencao_veiculos_automacao_ordem_manutencao_veiculos_automacao_ordem_component__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../manutencao-veiculos-automacao-ordem/manutencao-veiculos-automacao-ordem.component */ "./src/app/pages/especificos/vopak/movimentos/manutencao-veiculos-automacao/manutencao-veiculos-automacao-ordem/manutencao-veiculos-automacao-ordem.component.ts");
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! sweetalert2 */ "./node_modules/sweetalert2/dist/sweetalert2.all.js");
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(sweetalert2__WEBPACK_IMPORTED_MODULE_14__);
/* harmony import */ var _manutencao_veiculos_automacao_baia_manutencao_veiculos_automacao_baia_component__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../manutencao-veiculos-automacao-baia/manutencao-veiculos-automacao-baia.component */ "./src/app/pages/especificos/vopak/movimentos/manutencao-veiculos-automacao/manutencao-veiculos-automacao-baia/manutencao-veiculos-automacao-baia.component.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 ManutencaoVeiculosAutomacaoIndexComponent = /** @class */ (function (_super) {
    __extends(ManutencaoVeiculosAutomacaoIndexComponent, _super);
    function ManutencaoVeiculosAutomacaoIndexComponent(router, service, message, funcoes, datatables, loginService, permissoesUtils) {
        var _this = _super.call(this, new _manutencao_veiculos_automacao_constants__WEBPACK_IMPORTED_MODULE_10__["ManutencaoVeiculosAutomacaoConstants"](), funcoes) || this;
        _this.router = router;
        _this.service = service;
        _this.message = message;
        _this.funcoes = funcoes;
        _this.datatables = datatables;
        _this.loginService = loginService;
        _this.permissoesUtils = permissoesUtils;
        _this.data = new _manutencao_veiculos_automacao_model__WEBPACK_IMPORTED_MODULE_9__["ManutencaoVeiculosAutomacao"]();
        _this.constantes = new _manutencao_veiculos_automacao_constants__WEBPACK_IMPORTED_MODULE_10__["ManutencaoVeiculosAutomacaoConstants"]();
        _this.hasDados = false;
        _this.dataOrdemCarregamento = new _manutencao_veiculos_automacao_model__WEBPACK_IMPORTED_MODULE_9__["ManutencaoVeiculosAutomacaoOrdemCarregamentoDto"]();
        _this.target = _this.funcoes.getTargetLocation();
        _this.pageRoute = "/especificos/vopak/movimentos/manutencaoVeiculosAutomacao";
        router.events.subscribe(function (event) {
            var params = _this.funcoes.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    ManutencaoVeiculosAutomacaoIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () {
            if (!_this.loginService.isTokenExpired()) {
                if (_this.funcoes.abrirFiltro) {
                    _this.service.filter = new _manutencao_veiculos_automacao_model__WEBPACK_IMPORTED_MODULE_9__["ManutencaoVeiculosAutomacaoFilter"]();
                    _this.funcoes.openModal("manutencao-veiculos-automacao-filter-dialog");
                }
                else {
                    _this.refresh();
                }
            }
        }, function () {
            _this.permissoesUtils.back();
        }, true);
    };
    ManutencaoVeiculosAutomacaoIndexComponent.prototype.filtrar = function () {
        jQuery("#manutencao-veiculos-automacao-filter-dialog").modal('show');
    };
    ManutencaoVeiculosAutomacaoIndexComponent.prototype.executaFiltro = function () {
        this.refresh();
    };
    ManutencaoVeiculosAutomacaoIndexComponent.prototype.refresh = function () {
        var _this = this;
        if (app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["StringUtilsStaticService"].isEmpty(this.service.filter.cadastroPlacaId)) {
            this.message.warning("titles.manutencaoVeiculosAutomacao", "messages.informeNumeroDaPlaca");
            return;
        }
        this.service.getDados({ placa: this.service.filter.cadastroPlacaId }).subscribe(function (data) {
            var columns = [
                _this.datatables.getDataString("webStoPlanejaVeiculoId", "numeroOS"),
                _this.datatables.getDataString("entradaVeiculoId", "ccd"),
                _this.datatables.getDataString("regPlanejCarga", "planejamento"),
                _this.datatables.getDataString("tipoMov", "tipo"),
                _this.datatables.getDataDateTime("dtChegada", "dtChegada", "DD/MM/YYYY HH:mm", "15%"),
                _this.datatables.getDataString("nomeMoto", "motorista"),
                _this.datatables.getDataString("nomeTransp", "transportadora"),
                _this.datatables.getDataString("cadastroPlacaIdCavalo", "placa"),
                _this.datatables.getDataString("cadastroPlacaIdCarreta1", "carreta1"),
                _this.datatables.getDataString("cadastroPlacaIdCarreta2", "carreta2"),
                _this.datatables.getDataString("descrSitVeiculo", "situacao"),
            ];
            _this.datatables.toDataTable({ tableId: "dtManutencaoVeiculosAutomacao", columns: columns, data: data, columnOrder: 0, orientationOrder: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_8__["EOrientationOrder"].ASC }, function (aData) {
                _this.data = aData;
            });
            jQuery("a.nav-link[href='#da']").click();
            _this.dadosOrdensCarregamento = [];
            _this.data.entradaVeiculoId = 0;
        });
    };
    ManutencaoVeiculosAutomacaoIndexComponent.prototype.print = function () {
        var _this = this;
        if (app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["StringUtilsStaticService"].isEmpty(this.service.filter.cadastroPlacaId)) {
            this.message.warning("titles.manutencaoVeiculosAutomacao", "messages.informeNumeroDaPlaca");
            return;
        }
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
            _this.constantes.paramRelatorio = {
                filialId: _this.loginService.getLogin().filialId,
                placa: app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["StringUtilsStaticService"].toString(_this.service.filter.cadastroPlacaId)
            };
            _super.prototype.print.call(_this, null, true);
        });
    };
    ManutencaoVeiculosAutomacaoIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    ManutencaoVeiculosAutomacaoIndexComponent.prototype.rowSelect = function (item, index) {
        this.currentIndex = index;
        this.dataOrdemCarregamento = item;
    };
    ManutencaoVeiculosAutomacaoIndexComponent.prototype.itemSelecionado = function () {
        if (!this.data.entradaVeiculoId && app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_5__["NumberUtilsStaticService"].isNotPositive(this.data.entradaVeiculoId)) {
            this.message.warning("titles.manutencaoVeiculosAutomacao", "messages.selecioneUmRegistro");
            this.hasDados = false;
            return false;
        }
        return true;
    };
    ManutencaoVeiculosAutomacaoIndexComponent.prototype.itemSelecionadoOrdemCarregamento = function () {
        if (!this.dataOrdemCarregamento.entradaVeiculoId && app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_5__["NumberUtilsStaticService"].isNotPositive(this.dataOrdemCarregamento.entradaVeiculoId)) {
            this.message.warning("titles.manutencaoVeiculosAutomacao", "messages.selecioneUmRegistro");
            return false;
        }
        return true;
    };
    ManutencaoVeiculosAutomacaoIndexComponent.prototype.getOrdensCarregamento = function () {
        var _this = this;
        if (!this.itemSelecionado())
            return;
        this.service.getOrdensCarregamento({ entradaVeiculoId: this.data.entradaVeiculoId }).subscribe(function (resp) {
            _this.dadosOrdensCarregamento = resp;
            _this.hasDados = resp && resp.length > 0;
        });
    };
    ManutencaoVeiculosAutomacaoIndexComponent.prototype.edit = function () {
        var _this = this;
        if (!this.itemSelecionado())
            return;
        if (!this.itemSelecionadoOrdemCarregamento())
            return;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 5, function () { return __awaiter(_this, void 0, void 0, function () {
            return __generator(this, function (_a) {
                if (this.dataOrdemCarregamento.sequencia === 1) {
                    this.message.warning("titles.manutencaoVeiculosAutomacao", "messages.naoEPermitidoAlterarOrdemPrincipal");
                    return [2 /*return*/];
                }
                if (this.data.tipoMov === "D") {
                    this.message.warning("titles.manutencaoVeiculosAutomacao", "messages.naoEPermitidoAlterarOrdemComplementarDeDescarga");
                    return [2 /*return*/];
                }
                if (this.funcoes.isNotUndefinedOrNull(this.dataOrdemCarregamento.dtRetCarregamento)) {
                    this.message.warning("titles.manutencaoVeiculosAutomacao", "messages.operacaoNaoPermitidaOrdemJaFinalizada");
                    return [2 /*return*/];
                }
                this.criaOrdemComplementarCarga();
                return [2 /*return*/];
            });
        }); });
    };
    ManutencaoVeiculosAutomacaoIndexComponent.prototype.delete = function () {
        var _this = this;
        if (!this.itemSelecionado())
            return;
        if (!this.itemSelecionadoOrdemCarregamento())
            return;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 6, function () { return __awaiter(_this, void 0, void 0, function () {
            return __generator(this, function (_a) {
                if (this.dataOrdemCarregamento.sequencia === 1 && this.dadosOrdensCarregamento.length > 1) {
                    this.message.warning("titles.manutencaoVeiculosAutomacao", "messages.naoEPermitidoExcluirOrdemPrincipalEnquantoExistiremOrdensComplementares");
                    return [2 /*return*/];
                }
                if (this.funcoes.isNotUndefinedOrNull(this.dataOrdemCarregamento.dtRetCarregamento)) {
                    this.message.warning("titles.manutencaoVeiculosAutomacao", "messages.operacaoNaoPermitidaOrdemJaFinalizada");
                    return [2 /*return*/];
                }
                this.executeRemoveOrdemCarregamnento(this.dataOrdemCarregamento.entradaVeiculoId, this.dataOrdemCarregamento.sequencia);
                return [2 /*return*/];
            });
        }); });
    };
    ManutencaoVeiculosAutomacaoIndexComponent.prototype.ordemComplementar = function () {
        var _this = this;
        if (!this.itemSelecionado())
            return;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, 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.podeAbrirOrdemComplementar({
                            checkListId: this.data.checkListId,
                            tipoMov: this.data.tipoMov,
                            situacaoVeiculoId: this.data.situacaoVeiculoId,
                            flagBaiaAutomatizada: this.data.flagBaiaAutomatizada,
                            entradaVeiculoId: this.data.entradaVeiculoId,
                            descrSitVeiculo: this.data.descrSitVeiculo
                        }).toPromise()];
                    case 1:
                        validationResult = _a.sent();
                        if (!validationResult.isValid) {
                            mensagens = this.message.validationResult(validationResult);
                            mensagens.forEach(function (m) { return _this.message.warning("titles.manutencaoVeiculosAutomacao", m); });
                            return [2 /*return*/];
                        }
                        else {
                            this.criaOrdemComplementarVeiculo();
                        }
                        return [2 /*return*/];
                }
            });
        }); });
    };
    ManutencaoVeiculosAutomacaoIndexComponent.prototype.criaOrdemComplementarVeiculo = function () {
        var _this = this;
        this.message.confirm("titles.manutencaoVeiculosAutomacao", "messages.desejaCriarOrdemComplementarParaEsteVeiculo", "null", function () {
            if (_this.data.tipoMov === "C") {
                _this.criaOrdemComplementarCarga();
            }
            else {
                _this.criaOrdemComplementarDescarga();
            }
        }, false, function () { });
    };
    ManutencaoVeiculosAutomacaoIndexComponent.prototype.criaOrdemComplementarCarga = function () {
        this.childManutencaoVeiculosAutomacaoOrdemComponent.objectSelect(this.data);
        jQuery("#manutencao-veiculos-automacao-ordem-dialog").modal("show");
    };
    ManutencaoVeiculosAutomacaoIndexComponent.prototype.criaOrdemComplementarDescarga = 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.geraOrdemComplementarDescarga({ entradaVeiculoId: this.data.entradaVeiculoId, tipoMov: this.data.tipoMov, checkListId: this.data.checkListId }).toPromise()];
                    case 1:
                        validationResult = _a.sent();
                        if (!validationResult.isValid) {
                            mensagens = this.message.validationResult(validationResult);
                            mensagens.forEach(function (m) { return _this.message.warning("titles.manutencaoVeiculosAutomacao", m); });
                            return [2 /*return*/];
                        }
                        else {
                            this.refresh();
                        }
                        return [2 /*return*/];
                }
            });
        });
    };
    ManutencaoVeiculosAutomacaoIndexComponent.prototype.alterarBaia = function () {
        var _this = this;
        if (!this.itemSelecionado())
            return;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 7, function () { return __awaiter(_this, void 0, void 0, function () {
            var _this = this;
            return __generator(this, function (_a) {
                if (this.data.situacaoVeiculoId > 1015) {
                    this.message.warning("titles.manutencaoVeiculosAutomacao", "messages.operacaoNaoPermitidaVeiculo", { situacao: this.data.descrSitVeiculo });
                    return [2 /*return*/];
                }
                this.service.getBaiaByMaterial({ materialId: this.data.materialId }).subscribe(function (resp) {
                    if (!resp || (resp && resp.length === 0)) {
                        var title = void 0;
                        var buttonCancel = void 0;
                        var text = void 0;
                        title = _this.message.getTranslates("titles", "manutencaoVeiculosAutomacao");
                        buttonCancel = _this.message.getTranslates("buttons", "ok");
                        text = _this.message.getTranslates("messages", "nenhumAlinhamentoDeBaiaFoiEncontradoProdutoPlanejamentoVeiculo");
                        sweetalert2__WEBPACK_IMPORTED_MODULE_14___default.a.fire({
                            title: title,
                            text: text,
                            type: "warning",
                            showCancelButton: false,
                            confirmButtonColor: "#3085d6",
                            cancelButtonColor: "#d33",
                            confirmButtonText: buttonCancel,
                            cancelButtonText: ""
                        }).then(function (result) {
                            if (result.value) {
                                _this.showModalBaia(resp);
                            }
                        });
                    }
                    else {
                        _this.showModalBaia(resp);
                    }
                });
                return [2 /*return*/];
            });
        }); });
    };
    ManutencaoVeiculosAutomacaoIndexComponent.prototype.showModalBaia = function (baias) {
        this.childManutencaoVeiculosAutomacaoBaiaComponent.objectSelect(this.data, baias);
        jQuery("#manutencao-veiculos-automacao-baia-dialog").modal("show");
    };
    ManutencaoVeiculosAutomacaoIndexComponent.prototype.obrigarPesagem = function () {
        var _this = this;
        if (!this.itemSelecionado())
            return;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 8, 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:
                        if (this.data.situacaoVeiculoId !== 1015) {
                            this.message.warning("titles.manutencaoVeiculosAutomacao", "messages.operacaoNaoPermitidaVeiculo", { situacao: this.data.descrSitVeiculo });
                            return [2 /*return*/];
                        }
                        return [4 /*yield*/, this.service.podeObrigarPesagem({
                                checkListId: this.data.checkListId,
                                tipoMov: this.data.tipoMov,
                                flagBaiaAutomatizada: this.data.flagBaiaAutomatizada,
                                flagValidaPBT: this.data.flagValidaPBT,
                                flagInspecaoPesagem: this.data.flagInspecaoPesagem,
                                flagObrigaPesagem: this.data.flagObrigaPesagem,
                                dtRetFMC: this.data.dtRetFMC
                            }).toPromise()];
                    case 1:
                        validationResult = _a.sent();
                        if (!validationResult.isValid) {
                            mensagens = this.message.validationResult(validationResult);
                            mensagens.forEach(function (m) { return _this.message.warning("titles.manutencaoVeiculosAutomacao", m); });
                            return [2 /*return*/];
                        }
                        else {
                            this.executeObrigaPesagem();
                        }
                        return [2 /*return*/];
                }
            });
        }); });
    };
    ManutencaoVeiculosAutomacaoIndexComponent.prototype.executeObrigaPesagem = function () {
        var _this = this;
        this.message.confirm("titles.manutencaoVeiculosAutomacao", "messages.confirmaObrigaPesagem", "null", 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.obrigarPesagem({
                            checkListId: this.data.checkListId,
                            tipoMov: this.data.tipoMov,
                            entradaVeiculoId: this.data.entradaVeiculoId,
                            webStoPlanejaVeiculoId: this.data.webStoPlanejaVeiculoId,
                            idFMC: this.data.idFMC
                        }).toPromise()];
                    case 1:
                        validationResult = _a.sent();
                        if (!validationResult.isValid) {
                            mensagens = this.message.validationResult(validationResult);
                            mensagens.forEach(function (m) { return _this.message.warning("titles.manutencaoVeiculosAutomacao", m); });
                            return [2 /*return*/];
                        }
                        else {
                            this.refresh();
                        }
                        return [2 /*return*/];
                }
            });
        }); }, false, function () { });
    };
    ManutencaoVeiculosAutomacaoIndexComponent.prototype._refresh = function (event) {
        if (event)
            this.refresh();
    };
    ManutencaoVeiculosAutomacaoIndexComponent.prototype.executeRemoveOrdemCarregamnento = function (entradaVeiculoId, sequencia) {
        var _this = this;
        this.message.removeConfirm(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.removeOrdemCarregamnento({ entradaVeiculoId: entradaVeiculoId, sequencia: sequencia }).toPromise()];
                    case 1:
                        validationResult = _a.sent();
                        if (!validationResult.isValid) {
                            mensagens = this.message.validationResult(validationResult);
                            mensagens.forEach(function (m) { return _this.message.warning("titles.manutencaoVeiculosAutomacao", m); });
                            return [2 /*return*/];
                        }
                        else {
                            this.refresh();
                        }
                        return [2 /*return*/];
                }
            });
        }); });
    };
    ManutencaoVeiculosAutomacaoIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _manutencao_veiculos_automacao_service__WEBPACK_IMPORTED_MODULE_11__["ManutencaoVeiculosAutomacaoService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_8__["DatatablesService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__["LoginService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(_manutencao_veiculos_automacao_ordem_manutencao_veiculos_automacao_ordem_component__WEBPACK_IMPORTED_MODULE_13__["ManutencaoVeiculosAutomacaoOrdemComponent"], { static: false }),
        __metadata("design:type", _manutencao_veiculos_automacao_ordem_manutencao_veiculos_automacao_ordem_component__WEBPACK_IMPORTED_MODULE_13__["ManutencaoVeiculosAutomacaoOrdemComponent"])
    ], ManutencaoVeiculosAutomacaoIndexComponent.prototype, "childManutencaoVeiculosAutomacaoOrdemComponent", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(_manutencao_veiculos_automacao_baia_manutencao_veiculos_automacao_baia_component__WEBPACK_IMPORTED_MODULE_15__["ManutencaoVeiculosAutomacaoBaiaComponent"], { static: false }),
        __metadata("design:type", _manutencao_veiculos_automacao_baia_manutencao_veiculos_automacao_baia_component__WEBPACK_IMPORTED_MODULE_15__["ManutencaoVeiculosAutomacaoBaiaComponent"])
    ], ManutencaoVeiculosAutomacaoIndexComponent.prototype, "childManutencaoVeiculosAutomacaoBaiaComponent", void 0);
    ManutencaoVeiculosAutomacaoIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-manutencao-veiculos-automacao-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./manutencao-veiculos-automacao-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/movimentos/manutencao-veiculos-automacao/manutencao-veiculos-automacao-index/manutencao-veiculos-automacao-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _manutencao_veiculos_automacao_service__WEBPACK_IMPORTED_MODULE_11__["ManutencaoVeiculosAutomacaoService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_8__["DatatablesService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__["LoginService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"]])
    ], ManutencaoVeiculosAutomacaoIndexComponent);
    return ManutencaoVeiculosAutomacaoIndexComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_3__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/vopak/movimentos/manutencao-veiculos-automacao/manutencao-veiculos-automacao-ordem/manutencao-veiculos-automacao-ordem.component.ts":
/*!***********************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/movimentos/manutencao-veiculos-automacao/manutencao-veiculos-automacao-ordem/manutencao-veiculos-automacao-ordem.component.ts ***!
  \***********************************************************************************************************************************************************************/
/*! exports provided: ManutencaoVeiculosAutomacaoOrdemComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ManutencaoVeiculosAutomacaoOrdemComponent", function() { return ManutencaoVeiculosAutomacaoOrdemComponent; });
/* 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_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 app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var _manutencao_veiculos_automacao_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../manutencao-veiculos-automacao.service */ "./src/app/pages/especificos/vopak/movimentos/manutencao-veiculos-automacao/manutencao-veiculos-automacao.service.ts");
/* harmony import */ var _manutencao_veiculos_automacao_model__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../manutencao-veiculos-automacao.model */ "./src/app/pages/especificos/vopak/movimentos/manutencao-veiculos-automacao/manutencao-veiculos-automacao.model.ts");
/* harmony import */ var app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_8__ = __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 app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/shared/services/funcoes/number-utils/number-utils.static.service */ "./src/app/shared/services/funcoes/number-utils/number-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! app/shared/services/funcoes/array-utils/array-utils.static.service */ "./src/app/shared/services/funcoes/array-utils/array-utils.static.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 __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 ManutencaoVeiculosAutomacaoOrdemComponent = /** @class */ (function () {
    function ManutencaoVeiculosAutomacaoOrdemComponent(funcoesService, messageService, service, loginService) {
        this.funcoesService = funcoesService;
        this.messageService = messageService;
        this.service = service;
        this.loginService = loginService;
        this.mascara = new app_config_enumerables__WEBPACK_IMPORTED_MODULE_1__["Mascaras"]();
        this.mensagens = [];
        this.selecteds = [];
        this._refresh = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
    }
    ManutencaoVeiculosAutomacaoOrdemComponent.prototype.ngOnInit = function () {
        this.placasContainers = [];
        this.compartimentos1 = [];
        this.compartimentos2 = [];
        this.compartimentos3 = [];
        this.compartimentos4 = [];
        this.compartimentos5 = [];
        this.compartimentos6 = [];
        this.compartimentos7 = [];
        this.compartimentos8 = [];
        this.compartimentos9 = [];
        this.compartimentos10 = [];
        this.data = new _manutencao_veiculos_automacao_model__WEBPACK_IMPORTED_MODULE_7__["ManutencaoVeiculosAutomacaoOrdemComplementar"]();
        this._refresh.emit(false);
    };
    ManutencaoVeiculosAutomacaoOrdemComponent.prototype.preSave = function () {
        if (app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["StringUtilsStaticService"].isNotEmpty(this.data.cadastroPlacaId1)) {
            this.selecteds.push({
                entradaVeiculoId: this.data.entradaVeiculoId,
                cadastroPlacaId: this.data.cadastroPlacaId1,
                comp: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["NumberUtilsStaticService"].toNumber(this.data.comp1),
                quantid: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["NumberUtilsStaticService"].toNumber(this.data.quantid1)
            });
        }
        if (app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["StringUtilsStaticService"].isNotEmpty(this.data.cadastroPlacaId2)) {
            this.selecteds.push({
                entradaVeiculoId: this.data.entradaVeiculoId,
                cadastroPlacaId: this.data.cadastroPlacaId2,
                comp: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["NumberUtilsStaticService"].toNumber(this.data.comp2),
                quantid: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["NumberUtilsStaticService"].toNumber(this.data.quantid2)
            });
        }
        if (app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["StringUtilsStaticService"].isNotEmpty(this.data.cadastroPlacaId3)) {
            this.selecteds.push({
                entradaVeiculoId: this.data.entradaVeiculoId,
                cadastroPlacaId: this.data.cadastroPlacaId3,
                comp: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["NumberUtilsStaticService"].toNumber(this.data.comp3),
                quantid: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["NumberUtilsStaticService"].toNumber(this.data.quantid3)
            });
        }
        if (app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["StringUtilsStaticService"].isNotEmpty(this.data.cadastroPlacaId4)) {
            this.selecteds.push({
                entradaVeiculoId: this.data.entradaVeiculoId,
                cadastroPlacaId: this.data.cadastroPlacaId4,
                comp: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["NumberUtilsStaticService"].toNumber(this.data.comp4),
                quantid: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["NumberUtilsStaticService"].toNumber(this.data.quantid4)
            });
        }
        if (app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["StringUtilsStaticService"].isNotEmpty(this.data.cadastroPlacaId5)) {
            this.selecteds.push({
                entradaVeiculoId: this.data.entradaVeiculoId,
                cadastroPlacaId: this.data.cadastroPlacaId5,
                comp: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["NumberUtilsStaticService"].toNumber(this.data.comp5),
                quantid: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["NumberUtilsStaticService"].toNumber(this.data.quantid5)
            });
        }
        if (app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["StringUtilsStaticService"].isNotEmpty(this.data.cadastroPlacaId6)) {
            this.selecteds.push({
                entradaVeiculoId: this.data.entradaVeiculoId,
                cadastroPlacaId: this.data.cadastroPlacaId6,
                comp: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["NumberUtilsStaticService"].toNumber(this.data.comp6),
                quantid: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["NumberUtilsStaticService"].toNumber(this.data.quantid6)
            });
        }
        if (app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["StringUtilsStaticService"].isNotEmpty(this.data.cadastroPlacaId7)) {
            this.selecteds.push({
                entradaVeiculoId: this.data.entradaVeiculoId,
                cadastroPlacaId: this.data.cadastroPlacaId7,
                comp: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["NumberUtilsStaticService"].toNumber(this.data.comp7),
                quantid: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["NumberUtilsStaticService"].toNumber(this.data.quantid7)
            });
        }
        if (app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["StringUtilsStaticService"].isNotEmpty(this.data.cadastroPlacaId8)) {
            this.selecteds.push({
                entradaVeiculoId: this.data.entradaVeiculoId,
                cadastroPlacaId: this.data.cadastroPlacaId8,
                comp: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["NumberUtilsStaticService"].toNumber(this.data.comp8),
                quantid: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["NumberUtilsStaticService"].toNumber(this.data.quantid8)
            });
        }
        if (app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["StringUtilsStaticService"].isNotEmpty(this.data.cadastroPlacaId9)) {
            this.selecteds.push({
                entradaVeiculoId: this.data.entradaVeiculoId,
                cadastroPlacaId: this.data.cadastroPlacaId9,
                comp: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["NumberUtilsStaticService"].toNumber(this.data.comp9),
                quantid: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["NumberUtilsStaticService"].toNumber(this.data.quantid9)
            });
        }
        if (app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["StringUtilsStaticService"].isNotEmpty(this.data.cadastroPlacaId10)) {
            this.selecteds.push({
                entradaVeiculoId: this.data.entradaVeiculoId,
                cadastroPlacaId: this.data.cadastroPlacaId10,
                comp: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["NumberUtilsStaticService"].toNumber(this.data.comp10),
                quantid: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["NumberUtilsStaticService"].toNumber(this.data.quantid10)
            });
        }
    };
    ManutencaoVeiculosAutomacaoOrdemComponent.prototype.onSubmit = function (form) {
        return __awaiter(this, void 0, void 0, function () {
            var validationResult, mensagens;
            var _this = this;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        if (form.invalid) {
                            app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__["EventEmitterService"].get("formError").emit(form);
                            this.funcoesService.backToTop();
                            return [2 /*return*/];
                        }
                        this.preSave();
                        if (!app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["ArrayUtilsStaticService"].any(this.selecteds)) return [3 /*break*/, 2];
                        return [4 /*yield*/, this.service.podeGravarOrdemComplementar(this.selecteds).toPromise()];
                    case 1:
                        validationResult = _a.sent();
                        if (!validationResult.isValid) {
                            mensagens = this.messageService.validationResult(validationResult);
                            mensagens.forEach(function (m) { return _this.messageService.warning("titles.manutencaoVeiculosAutomacao", m); });
                            this.selecteds = [];
                            return [2 /*return*/];
                        }
                        else {
                            this.geraOrdemComplementarCarga();
                        }
                        return [3 /*break*/, 3];
                    case 2:
                        this.messageService.warning("titles.manutencaoVeiculosAutomacao", "messages.necessarioInfPlaca");
                        return [2 /*return*/];
                    case 3: return [2 /*return*/];
                }
            });
        });
    };
    ManutencaoVeiculosAutomacaoOrdemComponent.prototype.geraOrdemComplementarCarga = 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:
                        if (!app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["ArrayUtilsStaticService"].any(this.selecteds)) return [3 /*break*/, 2];
                        return [4 /*yield*/, this.service.geraOrdemComplementarCarga(this.selecteds).toPromise()];
                    case 1:
                        validationResult = _a.sent();
                        if (!validationResult.isValid) {
                            mensagens = this.messageService.validationResult(validationResult);
                            mensagens.forEach(function (m) { return _this.messageService.warning("titles.manutencaoVeiculosAutomacao", m); });
                            this.selecteds = [];
                            return [2 /*return*/];
                        }
                        else {
                            this.cancelaLiberacaoDaRequisicaoCarga();
                        }
                        _a.label = 2;
                    case 2: return [2 /*return*/];
                }
            });
        });
    };
    ManutencaoVeiculosAutomacaoOrdemComponent.prototype.cancelaLiberacaoDaRequisicaoCarga = 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.cancelaLiberacaoRequisicaoCarga({ tipoMov: this.dataIndex.tipoMov, checkListId: this.dataIndex.checkListId }).toPromise()];
                    case 1:
                        validationResult = _a.sent();
                        if (!validationResult.isValid) {
                            mensagens = this.messageService.validationResult(validationResult);
                            mensagens.forEach(function (m) { return _this.messageService.warning("titles.manutencaoVeiculosAutomacao", m); });
                            this.selecteds = [];
                            return [2 /*return*/];
                        }
                        else {
                            jQuery("#manutencao-veiculos-automacao-ordem-dialog").modal("hide");
                            this._refresh.emit(true);
                        }
                        return [2 /*return*/];
                }
            });
        });
    };
    ManutencaoVeiculosAutomacaoOrdemComponent.prototype.objectSelect = function (current) {
        this.dataIndex = current;
        this.carregaComboPlacas(this.dataIndex.entradaVeiculoId);
        this.data.entradaVeiculoId = this.dataIndex.entradaVeiculoId;
    };
    ManutencaoVeiculosAutomacaoOrdemComponent.prototype.carregaComboPlacas = function (entradaVeiculoId) {
        var _this = this;
        this.service.getPlacasContainers({ entradaVeiculoId: entradaVeiculoId }).subscribe(function (resp) {
            _this.placasContainers = resp;
        });
    };
    ManutencaoVeiculosAutomacaoOrdemComponent.prototype.trataCompartimento = function (placa, ordemComp) {
        var _this = this;
        this.service.getNumCompartimentoByPlaca({ cadastroPlacaId: placa }).subscribe(function (resp) {
            switch (ordemComp) {
                case 1:
                    _this.compartimentos1 = resp;
                    break;
                case 2:
                    _this.compartimentos2 = resp;
                    break;
                case 3:
                    _this.compartimentos3 = resp;
                    break;
                case 4:
                    _this.compartimentos4 = resp;
                    break;
                case 5:
                    _this.compartimentos5 = resp;
                    break;
                case 6:
                    _this.compartimentos6 = resp;
                    break;
                case 7:
                    _this.compartimentos7 = resp;
                    break;
                case 8:
                    _this.compartimentos8 = resp;
                    break;
                case 9:
                    _this.compartimentos9 = resp;
                    break;
                case 10:
                    _this.compartimentos10 = resp;
                    break;
                default:
                    break;
            }
        });
    };
    ManutencaoVeiculosAutomacaoOrdemComponent.ctorParameters = function () { return [
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"] },
        { type: _manutencao_veiculos_automacao_service__WEBPACK_IMPORTED_MODULE_6__["ManutencaoVeiculosAutomacaoService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_5__["LoginService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], ManutencaoVeiculosAutomacaoOrdemComponent.prototype, "_refresh", void 0);
    ManutencaoVeiculosAutomacaoOrdemComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-manutencao-veiculos-automacao-ordem",
            template: __importDefault(__webpack_require__(/*! raw-loader!./manutencao-veiculos-automacao-ordem.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/movimentos/manutencao-veiculos-automacao/manutencao-veiculos-automacao-ordem/manutencao-veiculos-automacao-ordem.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"],
            _manutencao_veiculos_automacao_service__WEBPACK_IMPORTED_MODULE_6__["ManutencaoVeiculosAutomacaoService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_5__["LoginService"]])
    ], ManutencaoVeiculosAutomacaoOrdemComponent);
    return ManutencaoVeiculosAutomacaoOrdemComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/vopak/movimentos/manutencao-veiculos-automacao/manutencao-veiculos-automacao.constants.ts":
/*!*****************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/movimentos/manutencao-veiculos-automacao/manutencao-veiculos-automacao.constants.ts ***!
  \*****************************************************************************************************************************/
/*! exports provided: ManutencaoVeiculosAutomacaoConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ManutencaoVeiculosAutomacaoConstants", function() { return ManutencaoVeiculosAutomacaoConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var ManutencaoVeiculosAutomacaoConstants = /** @class */ (function () {
    function ManutencaoVeiculosAutomacaoConstants() {
        this.sisFormularioId = 65469;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.consulta" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.impressao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 3, acao: "labels.permissoes" },
            { sisFormularioId: this.sisFormularioId, libRotina: 4, acao: "labels.ordemComplementar" },
            { sisFormularioId: this.sisFormularioId, libRotina: 5, acao: "labels.alterarOrdemComplementar" },
            { sisFormularioId: this.sisFormularioId, libRotina: 6, acao: "labels.excluirOrdemComplementar" },
            { sisFormularioId: this.sisFormularioId, libRotina: 7, acao: "labels.alterarBaia" },
            { sisFormularioId: this.sisFormularioId, libRotina: 8, acao: "labels.obrigarPesagem" },
        ];
        this.sisSistemaId = "CAD";
        this.nomeForm = "titles.manutencaoVeiculosAutomacao";
        this.reportId = "VOP0067";
        this.reportTitulo = { 'titulo': 'Manutenção Veículos Automação', 'subTitulo': '' };
        this.listaIndex = [
            { 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: 'Pesquisar', action: 'filtrar', icon: "icon-search", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' }
        ];
        this.listaParam = [
            { 'sistema': 'BAL', 'parametros': ['FmcAtivo', 'IntCta'] }
        ];
    }
    return ManutencaoVeiculosAutomacaoConstants;
}());



/***/ }),

/***/ "./src/app/pages/especificos/vopak/movimentos/manutencao-veiculos-automacao/manutencao-veiculos-automacao.model.ts":
/*!*************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/movimentos/manutencao-veiculos-automacao/manutencao-veiculos-automacao.model.ts ***!
  \*************************************************************************************************************************/
/*! exports provided: ManutencaoVeiculosAutomacao, ManutencaoVeiculosAutomacaoFilter, ManutencaoVeiculosAutomacaoOrdemCarregamentoDto, ManutencaoVeiculosAutomacaoOrdemComplementar, ManutencaoVeiculosAutomacaoPlacaDto, ManutencaoVeiculosAutomacaoCompartDto, ManutencaoVeiculosAutomacaoPlacasDto, ManutencaoVeiculosAutomacaoBaiaDto, ManutencaoVeiculosAutomacaoGravaBaiaVo */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ManutencaoVeiculosAutomacao", function() { return ManutencaoVeiculosAutomacao; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ManutencaoVeiculosAutomacaoFilter", function() { return ManutencaoVeiculosAutomacaoFilter; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ManutencaoVeiculosAutomacaoOrdemCarregamentoDto", function() { return ManutencaoVeiculosAutomacaoOrdemCarregamentoDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ManutencaoVeiculosAutomacaoOrdemComplementar", function() { return ManutencaoVeiculosAutomacaoOrdemComplementar; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ManutencaoVeiculosAutomacaoPlacaDto", function() { return ManutencaoVeiculosAutomacaoPlacaDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ManutencaoVeiculosAutomacaoCompartDto", function() { return ManutencaoVeiculosAutomacaoCompartDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ManutencaoVeiculosAutomacaoPlacasDto", function() { return ManutencaoVeiculosAutomacaoPlacasDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ManutencaoVeiculosAutomacaoBaiaDto", function() { return ManutencaoVeiculosAutomacaoBaiaDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ManutencaoVeiculosAutomacaoGravaBaiaVo", function() { return ManutencaoVeiculosAutomacaoGravaBaiaVo; });
/* harmony import */ var app_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/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 ManutencaoVeiculosAutomacao = /** @class */ (function (_super) {
    __extends(ManutencaoVeiculosAutomacao, _super);
    function ManutencaoVeiculosAutomacao() {
        return _super.call(this) || this;
    }
    return ManutencaoVeiculosAutomacao;
}(app_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));

var ManutencaoVeiculosAutomacaoFilter = /** @class */ (function () {
    function ManutencaoVeiculosAutomacaoFilter() {
        this.cadastroPlacaId = "";
    }
    return ManutencaoVeiculosAutomacaoFilter;
}());

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

var ManutencaoVeiculosAutomacaoOrdemComplementar = /** @class */ (function () {
    function ManutencaoVeiculosAutomacaoOrdemComplementar() {
        this.cadastroPlacaId1 = "";
        this.cadastroPlacaId2 = "";
        this.cadastroPlacaId3 = "";
        this.cadastroPlacaId4 = "";
        this.cadastroPlacaId5 = "";
        this.cadastroPlacaId6 = "";
        this.cadastroPlacaId7 = "";
        this.cadastroPlacaId8 = "";
        this.cadastroPlacaId9 = "";
        this.cadastroPlacaId10 = "";
        this.comp1 = "";
        this.comp2 = "";
        this.comp3 = "";
        this.comp4 = "";
        this.comp5 = "";
        this.comp6 = "";
        this.comp7 = "";
        this.comp8 = "";
        this.comp9 = "";
        this.comp10 = "";
    }
    return ManutencaoVeiculosAutomacaoOrdemComplementar;
}());

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

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

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

var ManutencaoVeiculosAutomacaoBaiaDto = /** @class */ (function () {
    function ManutencaoVeiculosAutomacaoBaiaDto() {
        this.plataformaId = "";
        this.descrPlataforma = "";
        this.numeroBaia = 0;
        this.tipo = 0;
    }
    return ManutencaoVeiculosAutomacaoBaiaDto;
}());

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



/***/ }),

/***/ "./src/app/pages/especificos/vopak/movimentos/manutencao-veiculos-automacao/manutencao-veiculos-automacao.module.ts":
/*!**************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/movimentos/manutencao-veiculos-automacao/manutencao-veiculos-automacao.module.ts ***!
  \**************************************************************************************************************************/
/*! exports provided: ManutencaoVeiculosAutomacaoModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ManutencaoVeiculosAutomacaoModule", function() { return ManutencaoVeiculosAutomacaoModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/shared/shared.module */ "./src/app/shared/shared.module.ts");
/* harmony import */ var _manutencao_veiculos_automacao_routing_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./manutencao-veiculos-automacao.routing.module */ "./src/app/pages/especificos/vopak/movimentos/manutencao-veiculos-automacao/manutencao-veiculos-automacao.routing.module.ts");
/* harmony import */ var _manutencao_veiculos_automacao_index_manutencao_veiculos_automacao_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./manutencao-veiculos-automacao-index/manutencao-veiculos-automacao-index.component */ "./src/app/pages/especificos/vopak/movimentos/manutencao-veiculos-automacao/manutencao-veiculos-automacao-index/manutencao-veiculos-automacao-index.component.ts");
/* harmony import */ var _manutencao_veiculos_automacao_filter_manutencao_veiculos_automacao_filter_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./manutencao-veiculos-automacao-filter/manutencao-veiculos-automacao-filter.component */ "./src/app/pages/especificos/vopak/movimentos/manutencao-veiculos-automacao/manutencao-veiculos-automacao-filter/manutencao-veiculos-automacao-filter.component.ts");
/* harmony import */ var _manutencao_veiculos_automacao_ordem_manutencao_veiculos_automacao_ordem_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./manutencao-veiculos-automacao-ordem/manutencao-veiculos-automacao-ordem.component */ "./src/app/pages/especificos/vopak/movimentos/manutencao-veiculos-automacao/manutencao-veiculos-automacao-ordem/manutencao-veiculos-automacao-ordem.component.ts");
/* harmony import */ var _manutencao_veiculos_automacao_baia_manutencao_veiculos_automacao_baia_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./manutencao-veiculos-automacao-baia/manutencao-veiculos-automacao-baia.component */ "./src/app/pages/especificos/vopak/movimentos/manutencao-veiculos-automacao/manutencao-veiculos-automacao-baia/manutencao-veiculos-automacao-baia.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 ManutencaoVeiculosAutomacaoModule = /** @class */ (function () {
    function ManutencaoVeiculosAutomacaoModule() {
    }
    ManutencaoVeiculosAutomacaoModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [
                app_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"],
                _manutencao_veiculos_automacao_routing_module__WEBPACK_IMPORTED_MODULE_2__["ManutencaoVeiculosAutomacaoRoutingModule"]
            ],
            declarations: [
                _manutencao_veiculos_automacao_index_manutencao_veiculos_automacao_index_component__WEBPACK_IMPORTED_MODULE_3__["ManutencaoVeiculosAutomacaoIndexComponent"],
                _manutencao_veiculos_automacao_filter_manutencao_veiculos_automacao_filter_component__WEBPACK_IMPORTED_MODULE_4__["ManutencaoVeiculosAutomacaoFilterComponent"],
                _manutencao_veiculos_automacao_ordem_manutencao_veiculos_automacao_ordem_component__WEBPACK_IMPORTED_MODULE_5__["ManutencaoVeiculosAutomacaoOrdemComponent"],
                _manutencao_veiculos_automacao_baia_manutencao_veiculos_automacao_baia_component__WEBPACK_IMPORTED_MODULE_6__["ManutencaoVeiculosAutomacaoBaiaComponent"]
            ]
        })
    ], ManutencaoVeiculosAutomacaoModule);
    return ManutencaoVeiculosAutomacaoModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/vopak/movimentos/manutencao-veiculos-automacao/manutencao-veiculos-automacao.routing.module.ts":
/*!**********************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/movimentos/manutencao-veiculos-automacao/manutencao-veiculos-automacao.routing.module.ts ***!
  \**********************************************************************************************************************************/
/*! exports provided: ManutencaoVeiculosAutomacaoRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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




var MRoutes = [
    {
        path: "",
        component: _manutencao_veiculos_automacao_index_manutencao_veiculos_automacao_index_component__WEBPACK_IMPORTED_MODULE_3__["ManutencaoVeiculosAutomacaoIndexComponent"],
        data: { breadcrumb: "manutencaoVeiculosAutomacao", formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index } }
    }
];
var ManutencaoVeiculosAutomacaoRoutingModule = /** @class */ (function () {
    function ManutencaoVeiculosAutomacaoRoutingModule() {
    }
    ManutencaoVeiculosAutomacaoRoutingModule = __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"]],
        })
    ], ManutencaoVeiculosAutomacaoRoutingModule);
    return ManutencaoVeiculosAutomacaoRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/vopak/movimentos/manutencao-veiculos-automacao/manutencao-veiculos-automacao.service.ts":
/*!***************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/movimentos/manutencao-veiculos-automacao/manutencao-veiculos-automacao.service.ts ***!
  \***************************************************************************************************************************/
/*! exports provided: ManutencaoVeiculosAutomacaoService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ManutencaoVeiculosAutomacaoService", function() { return ManutencaoVeiculosAutomacaoService; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
/* harmony import */ var app_app_error_handler__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/app.error-handler */ "./src/app/app.error-handler.ts");
/* harmony import */ var app_shared_services_base_specifics_base_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/base/specifics.base.service */ "./src/app/shared/services/base/specifics.base.service.ts");
/* harmony import */ var environments_environment__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var _manutencao_veiculos_automacao_model__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./manutencao-veiculos-automacao.model */ "./src/app/pages/especificos/vopak/movimentos/manutencao-veiculos-automacao/manutencao-veiculos-automacao.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 __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 ManutencaoVeiculosAutomacaoService = /** @class */ (function (_super) {
    __extends(ManutencaoVeiculosAutomacaoService, _super);
    function ManutencaoVeiculosAutomacaoService(http) {
        var _this = _super.call(this, http, "vopak/manutencaoVeiculosAutomacao") || this;
        _this.filter = new _manutencao_veiculos_automacao_model__WEBPACK_IMPORTED_MODULE_6__["ManutencaoVeiculosAutomacaoFilter"]();
        return _this;
    }
    ManutencaoVeiculosAutomacaoService.prototype.getDados = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/vopak/manutencaoVeiculosAutomacao/getByPlaca", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    ManutencaoVeiculosAutomacaoService.prototype.getOrdensCarregamento = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/vopak/manutencaoVeiculosAutomacao/getOrdensCarregamento", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    ManutencaoVeiculosAutomacaoService.prototype.podeAbrirOrdemComplementar = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/vopak/manutencaoVeiculosAutomacao/podeAbrirOrdemComplementar", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    ManutencaoVeiculosAutomacaoService.prototype.getPlacasContainers = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/vopak/manutencaoVeiculosAutomacao/getPlacasContainers", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    ManutencaoVeiculosAutomacaoService.prototype.getNumCompartimentoByPlaca = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/vopak/manutencaoVeiculosAutomacao/getNumCompartimentoByPlaca", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    ManutencaoVeiculosAutomacaoService.prototype.podeGravarOrdemComplementar = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/vopak/manutencaoVeiculosAutomacao/podeGravarOrdemComplementar", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    ManutencaoVeiculosAutomacaoService.prototype.geraOrdemComplementarCarga = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/vopak/manutencaoVeiculosAutomacao/geraOrdemComplementarCarga", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    ManutencaoVeiculosAutomacaoService.prototype.cancelaLiberacaoRequisicaoCarga = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/vopak/manutencaoVeiculosAutomacao/cancelaLiberacaoRequisicaoCarga", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    ManutencaoVeiculosAutomacaoService.prototype.geraOrdemComplementarDescarga = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/vopak/manutencaoVeiculosAutomacao/geraOrdemComplementarDescarga", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    ManutencaoVeiculosAutomacaoService.prototype.removeOrdemCarregamnento = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/vopak/manutencaoVeiculosAutomacao/removeOrdemCarregamnento", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    ManutencaoVeiculosAutomacaoService.prototype.getBaiaByMaterial = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/vopak/manutencaoVeiculosAutomacao/getBaiaByMaterial", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    ManutencaoVeiculosAutomacaoService.prototype.gravaBaiaDoVeiculo = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/vopak/manutencaoVeiculosAutomacao/gravaBaiaDoVeiculo", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    ManutencaoVeiculosAutomacaoService.prototype.getRequisicao = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/vopak/manutencaoVeiculosAutomacao/getRequisicao", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    ManutencaoVeiculosAutomacaoService.prototype.podeObrigarPesagem = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/vopak/manutencaoVeiculosAutomacao/podeObrigarPesagem", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    ManutencaoVeiculosAutomacaoService.prototype.obrigarPesagem = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/vopak/manutencaoVeiculosAutomacao/obrigarPesagem", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    ManutencaoVeiculosAutomacaoService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"] }
    ]; };
    ManutencaoVeiculosAutomacaoService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"]])
    ], ManutencaoVeiculosAutomacaoService);
    return ManutencaoVeiculosAutomacaoService;
}(app_shared_services_base_specifics_base_service__WEBPACK_IMPORTED_MODULE_4__["SpecificsBaseService"]));



/***/ })

}]);
//# sourceMappingURL=app-pages-especificos-vopak-movimentos-manutencao-veiculos-automacao-manutencao-veiculos-automacao-module.js.map