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

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/veiculo/analise-veiculo/analise-campos-tipo-zero/analise-campos-tipo-zero.component.html":
/*!******************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/veiculo/analise-veiculo/analise-campos-tipo-zero/analise-campos-tipo-zero.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=\"row\">\n    <div class=\"col-md-12\">\n      <div class=\"form-group form-group-sm\">\n        <label for=\"lacreVeiculo\">{{'labels.lacres' | translate}}</label>\n        <input id=\"lacreVeiculo\" name=\"lacreVeiculo\" [(ngModel)]=\"data.lacreVeiculo\" class=\"form-control form-control-sm\"\n          type=\"text\" [disabled]=\"disabled\">\n      </div>\n    </div>\n  </div>\n  <div class=\"row\">\n    <div class=\"col-md-3\">\n      <div class=\"form-group form-group-sm\">\n        <label for=\"ptGl\" class=\"required\">{{'labels.ptGl' | translate}}</label>\n        <input id=\"ptGl\" name=\"ptGl\"\n            [(ngModel)]=\"data.ptGl\"\n            class=\"form-control form-control-sm\" type=\"text\"\n            currencyMask maxlength=\"6\" required\n            [options]=\"funcoesService.numberUtils.formatCurrency(2)\"\n            [disabled]=\"disabled\">\n      </div>\n    </div>\n    <div class=\"col-md-3\">\n      <div class=\"form-group form-group-sm\">\n        <label for=\"densidade20\" class=\"required\">{{'labels.densidade20g' | translate}}</label>\n        <input id=\"densidade20\" name=\"densidade20\"\n            [(ngModel)]=\"data.densidade\"\n            class=\"form-control form-control-sm\" type=\"text\"\n            currencyMask maxlength=\"8\" required\n            [options]=\"funcoesService.numberUtils.formatCurrency(5)\"\n            [disabled]=\"disabled\">\n      </div>\n    </div>\n    <div class=\"col-md-3\">\n      <div class=\"form-group form-group-sm\">\n        <label for=\"notaFiscal\">{{'labels.notaFiscal' | translate}}</label>\n        <input id=\"notaFiscal\" name=\"notaFiscal\" [(ngModel)]=\"data.nota\" class=\"form-control form-control-sm\"\n          type=\"number\" [disabled]=\"disabled\">\n      </div>\n    </div>\n  </div>\n  <div class=\"row\">\n    <div class=\"col-md-3\">\n      <div class=\"form-group form-group-sm\">\n        <label for=\"temperatura\" class=\"required\">{{'labels.temperatura' | translate}}</label>\n        <input id=\"temperatura\" name=\"temperatura\"\n            [(ngModel)]=\"data.temperatura\"\n            class=\"form-control form-control-sm\" type=\"text\"\n            currencyMask maxlength=\"4\" required\n            [options]=\"funcoesService.numberUtils.formatCurrency(1)\"\n            [disabled]=\"disabled\">\n      </div>\n    </div>\n    <div class=\"col-md-3\">\n      <div class=\"form-group form-group-sm\">\n        <label for=\"ptGl20\" class=\"required\">{{'labels.ptGl20' | translate}}</label>\n        <input id=\"ptGl20\" name=\"ptGl20\"\n            [(ngModel)]=\"data.ptGl20\"\n            class=\"form-control form-control-sm\" type=\"text\"\n            currencyMask maxlength=\"6\" required\n            [options]=\"funcoesService.numberUtils.formatCurrency(2)\"\n            [disabled]=\"disabled\">\n      </div>\n    </div>\n  </div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/veiculo/analise-veiculo/analise-veiculo-filter/analise-veiculo-filter.component.html":
/*!**************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/veiculo/analise-veiculo/analise-veiculo-filter/analise-veiculo-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=\"av-filter-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\n    <div class=\"uni-modal-dialog-md-45\">\n        <div class=\"modal-content\">\n            <div class=\"modal-header\">\n                <h6 class=\"modal-title\">{{ 'titles.pesquisaDeAnaliseVeiculo' | translate }}</h6>\n            </div>\n            <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\">\n                <app-validacoes></app-validacoes>\n                <div class=\"modal-body\">\n                    <div class=\"row\">\n                        <div class=\"col-lg-6\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"periodoDe\" class=\"required\">{{\"labels.periodoDe\" | translate }}</label>\n                                <app-data id=\"periodoDe\" name=\"periodoDe\" [(ngModel)]=\"service.filtro.dataInicial\"\n                                    autofocus class=\"data\" [formatDateTime]=\"mascara.getFormatData\" required=\"true\">\n                                </app-data>\n                            </div>\n                        </div>\n                        <div class=\"col-lg-6\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"ate\" class=\"required\">{{\"labels.ate\" | translate}}</label>\n                                <app-data id=\"ate\" name=\"ate\" maxlength=\"1\" [(ngModel)]=\"service.filtro.dataFinal\"\n                                    class=\"data\" [formatDateTime]=\"mascara.getFormatData\" required=\"true\">\n                                </app-data>\n                            </div>\n                        </div>\n                    </div>\n\n                    <div class=\"row\">\n                        <div class=\"col-lg-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <app-pesquisa-destinatario id=\"destinatarioIdInspetora\" name=\"destinatarioIdInspetora\"\n                                    label=\"inspetora\" modalTitle=\"pesquisaDeInspetora\"\n                                    [(ngModel)]=\"service.filtro.destinatarioIdInspetora\" tipoDestinatario=\"B\"\n                                    showCgcCpf=\"false\" showInscricao=\"false\" [inSelected]=\"service.filtro.inspetora\">\n                                </app-pesquisa-destinatario>\n                            </div>\n                        </div>\n                    </div>\n\n                    <div class=\"row\">\n                        <div class=\"col-md-6 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"situacao\">{{'labels.situacao' | translate}}</label>\n                                <select id=\"situacao\" name=\"situacao\" class=\"form-control form-control-sm\"\n                                    [(ngModel)]=\"service.filtro.sitReg\">\n                                    <option value=\"\">{{ 'labels.selecione' | translate}}</option>\n                                    <option *ngFor=\"let situacao of listaSituacoes\" [value]=\"situacao.value\">{{\n                                        situacao.label | translate}}</option>\n                                </select>\n                            </div>\n                        </div>\n                    </div>\n\n                    <div class=\"row\">\n                        <div class=\"col-md-6 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"tipoTransp\">{{'labels.tipoTransp' | translate}}</label>\n                                <select id=\"tipoTransp\" name=\"tipoTransp\" class=\"form-control form-control-sm\"\n                                    [(ngModel)]=\"service.filtro.tipoTransporte\">\n                                    <option value=\"\">{{ 'labels.selecione' | translate}}</option>\n                                    <option *ngFor=\"let tipoTransp of listaTiposTransportes\" [value]=\"tipoTransp.value\">\n                                        {{ tipoTransp.label | translate}}</option>\n                                </select>\n                            </div>\n                        </div>\n                    </div>\n\n                    <div class=\"row\">\n                        <div class=\"col-md-6 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"placa\" style=\"display:block;\">\n                                    {{ 'labels.placa' | translate }}\n                                </label>\n                                <input id=\"placa\" name=\"placa\" [(ngModel)]=\"service.filtro.placa\"\n                                    class=\"form-control form-control-sm\" type=\"text\" maxlength=\"18\">\n                            </div>\n                        </div>\n                    </div>\n                </div>\n                <div class=\"modal-footer\">\n                    <button class=\"btn btn-success mr-1\" type=\"submit\">{{ 'buttons.pesquisar' | translate }}</button>\n                    <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">{{ 'buttons.sair' | translate\n                        }}</button>\n                </div>\n            </form>\n        </div>\n    </div>\n</div>");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<app-menu-command-bar [botoesComando]=\"constantes.listaForm\" [sisFormularioId]=\"constantes.sisFormularioId\"\n  [formAction]=\"actionForm\" [itemData]=\"data.analiseVeiculoId\">\n</app-menu-command-bar>\n\n<div class=\"section-comand-bar\">\n  <div class=\"card-body\">\n    <form class=\"form\" #f=\"ngForm\" (ngSubmit)=\"onSubmit(f)\">\n      <span *ngIf=\"segundaDigitacao\">\n        <div class=\"alert alert-warning\">\n          <strong>{{'titles.segundaDigitacao' | translate }}</strong>\n        </div>\n      </span>\n      <app-validacoes></app-validacoes>\n      <div class=\"row\">\n        <div class=\"col-md-12\">\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=\"#ta\">{{ 'labels.dados' | translate }}</a>\n              </li>\n              <li class=\"nav-item\">\n                <a class=\"nav-link\" data-toggle=\"tab\" href=\"#tb\">{{ 'labels.dadosComplementares' | translate }}</a>\n              </li>\n              <li class=\"nav-item\">\n                <a class=\"nav-link\" data-toggle=\"tab\" href=\"#tc\">{{ 'labels.dadosAnalise' | translate }}</a>\n              </li>\n            </ul>\n          </div>\n          <div class=\"tab-content top\">\n            <div class=\"tab-pane active\" id=\"ta\">\n              <div class=\"row\">\n                <div class=\"col-md-3\">\n                  <div class=\"form-group form-group-sm\">\n                    <label for=\"analiseVeiculoId\">{{'labels.codigo' | translate}}</label>\n                    <input id=\"analiseVeiculoId\" name=\"analiseVeiculoId\" value=\"{{data.analiseVeiculoId}}\"\n                      class=\"form-control form-control-sm\" type=\"text\" [disabled]=\"true\">\n                  </div>\n                </div>\n                <div class=\"col-md-3\">\n                  <div class=\"form-group form-group-sm\">\n                    <label for=\"dtAnalise\">{{'labels.analise' | translate}}</label>\n                    <input id=\"dtAnalise\" name=\"dtAnalise\" value=\"{{data.dtAnalise | date:'dd/MM/yyyy'}}\"\n                      class=\"form-control form-control-sm\" type=\"text\" [disabled]=\"true\"\n                      data-title=\"{{'labels.analiseVeiculo' | translate}}\">\n                  </div>\n                </div>\n                <div class=\"col-md-3\">\n                  <div class=\"form-group form-group-sm\">\n                    <label for=\"dtAprovacao\">{{'labels.aprovacao' | translate}}</label>\n                    <input id=\"dtAprovacao\" name=\"dtAprovacao\" value=\"{{data.dtAprovacao | date:'dd/MM/yyyy'}}\"\n                      class=\"form-control form-control-sm\" type=\"text\" [disabled]=\"true\"\n                      data-title=\"{{'labels.aprovacao' | translate}}\">\n                  </div>\n                </div>\n              </div>\n              <div class=\"row\">\n                <div class=\"col-md-7\">\n                  <div class=\"form-group form-group-sm\">\n                    <label for=\"tipoMov\">{{'labels.tipoOperacao' | translate}}</label>\n                    <input id=\"tipoMov\" name=\"tipoMov\" value=\"{{data?.entradaVeiculo?.tipoMov}}\"\n                      class=\"form-control form-control-sm\" type=\"text\" [disabled]=\"true\"\n                      data-title=\"{{'labels.tipoMov' | translate}}\">\n                  </div>\n                </div>\n              </div>\n              <div class=\"row\">\n                <div class=\"col-md-7 col-sm-12\">\n                  <div class=\"form-group form-group-sm\">\n                    <app-pesquisa-destinatario id=\"cliente\" name=\"cliente\" label=\"cliente\" [required]=\"false\"\n                      [disabled]=\"true\" modalTitle=\"pesquisaDeCliente\"\n                      [(ngModel)]=\"data.entradaVeiculo.destinatarioIdCliente\" [inSelected]=\"data.entradaVeiculo.cliente\"\n                      tipoDestinatario=\"C\" showCgcCpf=\"false\" showInscricao=\"false\">\n                    </app-pesquisa-destinatario>\n                  </div>\n                </div>\n              </div>\n              <div class=\"row\">\n                <div class=\"col-md-7 col-sm-12\">\n                  <div class=\"form-group form-group-sm\">\n                    <app-pesquisa-destinatario id=\"emitente\" name=\"emitente\" label=\"emitente\" [required]=\"false\"\n                      [disabled]=\"true\" modalTitle=\"pesquisaDeEmitente\"\n                      [(ngModel)]=\"data.entradaVeiculo.destinatarioIdEmitente\"\n                      [inSelected]=\"data.entradaVeiculo.emitente\" tipoDestinatario=\"E\" showCgcCpf=\"false\"\n                      showInscricao=\"false\">\n                    </app-pesquisa-destinatario>\n                  </div>\n                </div>\n              </div>\n              <div class=\"row\">\n                <div class=\"col-md-7 col-sm-12\">\n                  <div class=\"form-group form-group-sm\">\n                    <app-pesquisa-destinatario id=\"transportadora\" name=\"transportadora\" label=\"transportadora\"\n                      [required]=\"false\" [disabled]=\"true\" modalTitle=\"pesquisaDeTransportadora\"\n                      [(ngModel)]=\"data.entradaVeiculo.destinatarioIdTransportadora\"\n                      [inSelected]=\"data.entradaVeiculo.transportadora\" tipoDestinatario=\"T\" showCgcCpf=\"false\"\n                      showInscricao=\"false\">\n                    </app-pesquisa-destinatario>\n                  </div>\n                </div>\n              </div>\n              <div class=\"row\">\n                <div class=\"col-md-3\">\n                  <div class=\"form-group form-group-sm\">\n                    <label for=\"cadastroPlacaIdCavalo\">{{'labels.cadPlacaVeiculo' | translate}}</label>\n                    <input id=\"cadastroPlacaIdCavalo\" name=\"cadastroPlacaIdCavalo\"\n                      value=\"{{data?.entradaVeiculo?.cadastroPlacaIdCavalo}}\" class=\"form-control form-control-sm\"\n                      type=\"text\" [disabled]=\"true\" data-title=\"{{'labels.placaCavalo' | translate}}\">\n                  </div>\n                </div>\n              </div>\n              <div class=\"row\">\n                <div class=\"col-md-3\">\n                  <div class=\"form-group form-group-sm\">\n                    <label for=\"cadastroPlacaIdCarreta1\">{{'labels.placaCarreta1' | translate}}</label>\n                    <input id=\"cadastroPlacaIdCarreta1\" name=\"cadastroPlacaIdCarreta1\"\n                      value=\"{{data?.entradaVeiculo?.cadastroPlacaIdCarreta1}}\" class=\"form-control form-control-sm\"\n                      type=\"text\" [disabled]=\"true\" data-title=\"{{'labels.placaCarreta1' | translate}}\">\n                  </div>\n                </div>\n                <div class=\"col-md-3\">\n                  <div class=\"form-group form-group-sm\">\n                    <label for=\"cadastroPlacaIdCarreta2\">{{'labels.placaCarreta2' | translate}}</label>\n                    <input id=\"cadastroPlacaIdCarreta2\" name=\"cadastroPlacaIdCarreta2\"\n                      value=\"{{data?.entradaVeiculo?.cadastroPlacaIdCarreta2}}\" class=\"form-control form-control-sm\"\n                      type=\"text\" [disabled]=\"true\" data-title=\"{{'labels.placaCarreta2' | translate}}\">\n                  </div>\n                </div>\n                <div class=\"col-md-3\">\n                  <div class=\"form-group form-group-sm\">\n                    <label for=\"cadastroPlacaIdCarreta3\">{{'labels.placaCarreta3' | translate}}</label>\n                    <input id=\"cadastroPlacaIdCarreta3\" name=\"cadastroPlacaIdCarreta3\"\n                      value=\"{{data?.entradaVeiculo?.cadastroPlacaIdCarreta3}}\" class=\"form-control form-control-sm\"\n                      type=\"text\" [disabled]=\"true\" data-title=\"{{'labels.placaCarreta3' | translate}}\">\n                  </div>\n                </div>\n              </div>\n              <div class=\"row\">\n                <div class=\"col-md-7 col-sm-12\">\n                  <div class=\"form-group form-group-sm\">\n                    <app-pesquisa-destinatario id=\"inspetora\" name=\"inspetora\" label=\"inspetora\" [required]=\"false\"\n                      [disabled]=\"true\" modalTitle=\"pesquisaDeInspetora\"\n                      [(ngModel)]=\"data.entradaVeiculo.destinatarioIdInspetora\"\n                      [inSelected]=\"data.entradaVeiculo.inspetora\" tipoDestinatario=\"I\" showCgcCpf=\"false\"\n                      showInscricao=\"false\">\n                    </app-pesquisa-destinatario>\n                  </div>\n                </div>\n              </div>\n              <div class=\"row\">\n                <div class=\"col-md-7 col-sem-margem\">\n                  <div class=\"form-group form-group-sm\">\n                    <label for=\"descrLocalOper\">{{'labels.descrLocalOper' | translate}}</label>\n                    <input id=\"descrLocalOper\" name=\"descrLocalOper\"\n                      value=\"{{data?.entradaVeiculo?.localOperacao?.descrLocalOper}}\"\n                      class=\"form-control form-control-sm\" type=\"text\" [disabled]=\"true\"\n                      data-title=\"{{'labels.descrLocalOper' | translate}}\">\n                  </div>\n                </div>\n              </div>\n            </div>\n\n            <div class=\"tab-pane\" id=\"tb\">\n              <div class=\"row\">\n                <div class=\"col-md-3\">\n                  <div class=\"form-group form-group-sm\">\n                    <label for=\"dcto\">{{'labels.documento' | translate}}</label>\n                    <input id=\"dcto\" name=\"dcto\" value=\"{{dataAux?.docto}}\" class=\"form-control form-control-sm\"\n                      type=\"text\" [disabled]=\"true\">\n                  </div>\n                </div>\n                <div class=\"col-md-3\">\n                  <div class=\"form-group form-group-sm\">\n                    <label for=\"dtDcto\">{{'labels.data' | translate}}</label>\n                    <input id=\"dtDcto\" name=\"dtDcto\" value=\"{{dataAux?.dtDocumento | date: 'dd/MM/yyyy'}}\"\n                      class=\"form-control form-control-sm\" type=\"text\" [disabled]=\"true\"\n                      data-title=\"{{'labels.data' | translate}}\">\n                  </div>\n                </div>\n                <div class=\"col-md-3\">\n                  <div class=\"form-group form-group-sm\">\n                    <label for=\"tipoFrete\">{{'labels.frete' | translate}}</label>\n                    <input id=\"tipoFrete\" name=\"tipoFrete\" value=\"{{dataAux?.frete}}\"\n                      class=\"form-control form-control-sm\" type=\"text\" [disabled]=\"true\"\n                      data-title=\"{{'labels.frete' | translate}}\">\n                  </div>\n                </div>\n              </div>\n              <div class=\"row mb-3\">\n                <div class=\"col-md-5\">\n                  <div class=\"form-group form-group-sm\">\n                    <label for=\"descrTipoProduto\">{{'labels.tipoProduto' | translate}}</label>\n                    <input id=\"descrTipoProduto\" name=\"descrTipoProduto\" value=\"{{dataAux?.descrTipoProduto}}\"\n                      class=\"form-control form-control-sm\" type=\"text\" [disabled]=\"true\"\n                      data-title=\"{{'labels.tipoProduto' | translate}}\">\n                  </div>\n                </div>\n              </div>\n\n              <app-card-container tituloCard=\"cliente\">\n                <div class=\"row\">\n                  <div class=\"col-md-3\">\n                    <div class=\"form-group form-group-sm\">\n                      <label for=\"fantasiaCliente\">{{'labels.nome' | translate}}</label>\n                      <input id=\"fantasiaCliente\" name=\"fantasiaCliente\" value=\"{{dataAux?.nomeCliente}}\"\n                        class=\"form-control form-control-sm\" type=\"text\" [disabled]=\"true\"\n                        data-title=\"{{'labels.fantasia' | translate}}\">\n                    </div>\n                  </div>\n                  <div class=\"col-md-3\">\n                    <div class=\"form-group form-group-sm\">\n                      <label for=\"cgcCpfCliente\">{{'labels.cgcCpf' | translate}}</label>\n                      <input id=\"cgcCpfCliente\" name=\"cgcCpfCliente\"\n                        value=\"{{dataAux?.cnpJ_Cli | mask: (dataAux?.tipoPessoa_Cli == 'F' ? mascaras.getCpf : mascaras.getCnpj)}}\"\n                        class=\"form-control form-control-sm\" type=\"text\" [disabled]=\"true\"\n                        data-title=\"{{'labels.cgcCpf' | translate}}\">\n                    </div>\n                  </div>\n                  <div class=\"col-md-3\">\n                    <div class=\"form-group form-group-sm\">\n                      <label for=\"municipioCliente\">{{'labels.municipio' | translate}}</label>\n                      <input id=\"municipioCliente\" name=\"municipioCliente\" value=\"{{dataAux?.municipio_Cli}}\"\n                        class=\"form-control form-control-sm\" type=\"text\" [disabled]=\"true\"\n                        data-title=\"{{'labels.municipio' | translate}}\">\n                    </div>\n                  </div>\n                  <div class=\"col-md-3\">\n                    <div class=\"form-group form-group-sm\">\n                      <label for=\"estadoCliente\">{{'labels.estado' | translate}}</label>\n                      <input id=\"estadoCliente\" name=\"estadoCliente\" value=\"{{dataAux?.uF_Cli}}\"\n                        class=\"form-control form-control-sm\" type=\"text\" [disabled]=\"true\"\n                        data-title=\"{{'labels.estado' | translate}}\">\n                    </div>\n                  </div>\n                </div>\n              </app-card-container>\n\n              <app-card-container tituloCard=\"emitente\">\n                <div class=\"row\">\n                  <div class=\"col-md-3\">\n                    <div class=\"form-group form-group-sm\">\n                      <label for=\"fantasiaEmitente\">{{'labels.nome' | translate}}</label>\n                      <input id=\"fantasiaEmitente\" name=\"fantasiaEmitente\" value=\"{{dataAux?.nomeEmitente}}\"\n                        class=\"form-control form-control-sm\" type=\"text\" [disabled]=\"true\"\n                        data-title=\"{{'labels.fantasia' | translate}}\">\n                    </div>\n                  </div>\n                  <div class=\"col-md-3\">\n                    <div class=\"form-group form-group-sm\">\n                      <label for=\"cgcCpfEmitente\">{{'labels.cgcCpf' | translate}}</label>\n                      <input id=\"cgcCpfEmitente\" name=\"cgcCpfEmitente\"\n                        value=\"{{dataAux?.cnpJ_Emi | mask: (dataAux?.tipoPessoa_Emi == 'F' ? mascaras.getCpf : mascaras.getCnpj)}}\"\n                        class=\"form-control form-control-sm\" type=\"text\" [disabled]=\"true\"\n                        data-title=\"{{'labels.cgcCpf' | translate}}\">\n                    </div>\n                  </div>\n                  <div class=\"col-md-3\">\n                    <div class=\"form-group form-group-sm\">\n                      <label for=\"municipioEmitente\">{{'labels.municipio' | translate}}</label>\n                      <input id=\"municipioEmitente\" name=\"municipioEmitente\" value=\"{{dataAux?.municipio_Emi}}\"\n                        class=\"form-control form-control-sm\" type=\"text\" [disabled]=\"true\"\n                        data-title=\"{{'labels.municipio' | translate}}\">\n                    </div>\n                  </div>\n                  <div class=\"col-md-3\">\n                    <div class=\"form-group form-group-sm\">\n                      <label for=\"estadoEmitente\">{{'labels.estado' | translate}}</label>\n                      <input id=\"estadoEmitente\" name=\"estadoEmitente\" value=\"{{dataAux?.uF_Emi}}\"\n                        class=\"form-control form-control-sm\" type=\"text\" [disabled]=\"true\"\n                        data-title=\"{{'labels.estado' | translate}}\">\n                    </div>\n                  </div>\n                </div>\n              </app-card-container>\n\n              <app-card-container>\n                <div class=\"row\">\n                  <div class=\"col-md-7\">\n                    <div class=\"form-group form-group-sm\">\n                      <label for=\"lacracaoApos\">{{'labels.lacracaoApos' | translate}}</label>\n                      <input id=\"lacracaoApos\" name=\"lacracaoApos\" value=\"{{data?.lacracaoApos}}\" [(ngModel)]=\"data.lacracaoApos\"\n                        class=\"form-control form-control-\" type=\"text\" [disabled]=\"funcoesService.isDetail(actionForm)\">\n                    </div>\n                  </div>\n                </div>\n                <div class=\"row\">\n                  <div class=\"col-md-7\">\n                    <div class=\"form-group form-group-sm\">\n                      <label for=\"observacao\">{{'labels.observacao' | translate}}</label>\n                      <input id=\"observacao\" name=\"observacao\" value=\"{{data?.observacao}}\" [(ngModel)]=\"data.observacao\"\n                        class=\"form-control form-control-\" type=\"text\" [disabled]=\"funcoesService.isDetail(actionForm)\">\n                    </div>\n                  </div>\n                </div>\n                <div class=\"row\">\n                  <div class=\"col-md-3\">\n                    <div class=\"form-group form-group-sm\">\n                      <label for=\"facRecebido\">{{'labels.facRecebido' | translate}}</label>\n                      <app-data id=\"facRecebido\" name=\"facRecebido\" [(ngModel)]=\"data.dtFacRecebido\" autofocus\n                        class=\"dataHora\" [formatDateTime]=\"mascara.getFormatDataHorMin\"\n                        [disabled]=\"funcoesService.isDetail(actionForm)\">\n                      </app-data>\n                    </div>\n                  </div>\n                  <div class=\"col-md-3\">\n                    <div class=\"form-group form-group-sm\">\n                      <label for=\"facLiberada\">{{'labels.facLiberada' | translate}}</label>\n                      <app-data id=\"facLiberada\" name=\"facLiberada\" [(ngModel)]=\"data.dtFacLiberado\" autofocus\n                        class=\"dataHora\" [formatDateTime]=\"mascara.getFormatDataHorMin\"\n                        [disabled]=\"funcoesService.isDetail(actionForm)\">\n                      </app-data>\n                    </div>\n                  </div>\n                  <div class=\"col-md-3\">\n                    <div class=\"form-group form-group-sm\">\n                      <label for=\"autoAmostrado\">{{'labels.autoAmostrado' | translate}}</label>\n                      <app-data id=\"autoAmostrado\" name=\"autoAmostrado\" [(ngModel)]=\"data.dtAutoAmostrado\" autofocus\n                        class=\"dataHora\" [formatDateTime]=\"mascara.getFormatDataHorMin\"\n                        [disabled]=\"funcoesService.isDetail(actionForm)\">\n                      </app-data>\n                    </div>\n                  </div>\n                  <div class=\"col-md-3\">\n                    <div class=\"form-group form-group-sm\">\n                      <label for=\"autoPosicionado\">{{'labels.autoPosicionado' | translate}}</label>\n                      <app-data id=\"autoPosicionado\" name=\"autoPosicionado\" [(ngModel)]=\"data.dtAutoPosicionado\"\n                        autofocus class=\"dataHora\" [formatDateTime]=\"mascara.getFormatDataHorMin\"\n                        [disabled]=\"funcoesService.isDetail(actionForm)\">\n                      </app-data>\n                    </div>\n                  </div>\n                </div>\n              </app-card-container>\n\n              <div class=\"row mt-3\">\n                <div class=\"col-md-12\">\n                  <table class=\"table table-striped table-bordered table-hover rownowrap form-control-sm\">\n                    <thead>\n                      <tr>\n                        <th class=\"text-center\">{{ 'labels.documento' | translate }}</th>\n                        <th class=\"text-center\">{{ 'labels.data' | translate }}</th>\n                        <th class=\"text-center\">{{ 'labels.frete' | translate }}</th>\n                        <th class=\"text-center\">{{ 'labels.emitente' | translate }}</th>\n                        <th class=\"text-center\">{{ 'labels.cgcCpf' | translate }} {{ 'labels.emitente' | translate }}\n                        </th>\n                        <th class=\"text-center\">{{ 'labels.municipio' | translate }} {{ 'labels.emitente' | translate }}\n                        </th>\n                      </tr>\n                    </thead>\n                    <tbody>\n                      <tr *ngFor=\"let d of data.dadosComplementares\" class=\"clickable\"\n                        [ngClass]=\"{ 'info' : d.docto == dataAux.docto }\" (click)=\"(dataAux = d)\">\n                        <td class=\"text-center\">{{ d.docto}}</td>\n                        <td class=\"text-center\">{{ d.dtDocumento | date: 'dd/MM/yyyy' }}</td>\n                        <td class=\"text-center\">{{ d.frete }}</td>\n                        <td class=\"text-center\">{{ d.nomeEmitente }}</td>\n                        <td class=\"text-center\">{{ d.cnpJ_Emi | mask: (d.tipoPessoa_Emi == 'F' ? mascaras.getCpf :\n                          mascaras.getCnpj) }}</td>\n                        <td class=\"text-center\">{{ d.municipio_Emi }}</td>\n                      </tr>\n                      <tr *ngIf=\"!data.dadosComplementares || data.dadosComplementares.length === 0\">\n                        <th colspan=\"6\">\n                          {{'messages.nenhumRegistroEncontrado' | translate }}\n                        </th>\n                      </tr>\n                    </tbody>\n                  </table>\n                </div>\n              </div>\n\n              <div class=\"row\">\n                <div class=\"col-md-4\">\n                  <span *ngIf=\"data.sisCampoAdds\">\n                    <div *ngFor=\"let d of data.sisCampoAdds\" [class.col-md-6]=\"!d.colunas\">\n                      <app-campos-adicionais name=\"{{d.campo}}\" [sisCampoAdd]=\"d\" [(ngModel)]=\"d.valorCampo\"\n                        [disabled]=\"funcoesService.isDetail(actionForm)\"\n                        [required]=\"d.obrigatorio === 'S'\"></app-campos-adicionais>\n                    </div>\n                  </span>\n                </div>\n              </div>\n            </div>\n\n            <div class=\"tab-pane\" id=\"tc\">\n              <div *ngIf=\"tipoAnalise === '0'\">\n                <div *ngIf=\"!segundaDigitacao\">\n                  <app-analise-campos-tipo-zero [data]=\"data\"\n                    [disabled]=\"funcoesService.isDetail(actionForm)\"></app-analise-campos-tipo-zero>\n                </div>\n\n                <div *ngIf=\"segundaDigitacao\">\n                  <app-analise-campos-tipo-zero [data]=\"segundoDadosAnalise\"\n                    [disabled]=\"funcoesService.isDetail(actionForm)\"></app-analise-campos-tipo-zero>\n                </div>\n              </div>\n\n              <div *ngIf=\"tipoAnalise === '3'\" id=\"formDinamico\">\n                <div *ngIf=\"!segundaDigitacao\">\n                  <div class=\"row\">\n                    <div *ngFor=\"let cpd of data.analiseVeiculoItems; let i = index\" class=\"col-md-4\">\n                      <app-analise-campos-dinamicos name=\"cpd{{i}}\" [campoDinamico]=\"cpd\" [(ngModel)]=\"cpd.valor\"\n                        [disabled]=\"funcoesService.isDetail(actionForm)\" [required]=\"true\" [exibeLegenda]=\"true\">\n                      </app-analise-campos-dinamicos>\n                    </div>\n                  </div>\n                </div>\n                <div *ngIf=\"segundaDigitacao\">\n                  <div class=\"row\">\n                    <div *ngFor=\"let cpd2dg of segundoArray; let h = index\" class=\"col-md-4\">\n                      <app-analise-campos-dinamicos name=\"cpd2dg{{h}}\" [campoDinamico]=\"cpd2dg\"\n                        [(ngModel)]=\"cpd2dg.valor\" [disabled]=\"funcoesService.isDetail(actionForm)\" [required]=\"true\"\n                        [exibeLegenda]=\"false\">\n                      </app-analise-campos-dinamicos>\n                    </div>\n                  </div>\n                </div>\n              </div>\n            </div>\n          </div>\n\n          <div class=\"row mt-3\">\n            <div class=\"col-4\">\n              <div class=\"form-group\">\n                <button class=\"btn btn-success mr-2\" type=\"submit\" [disabled]=\"funcoesService.isDetail(actionForm)\">\n                  {{ 'buttons.salvar' | translate }}\n                </button>\n              </div>\n            </div>\n          </div>\n        </div>\n      </div>\n    </form>\n  </div>\n</div>\n\n<app-analise-modal-situacao [libRotina]=\"libRotinaModal\"\n  (outConfirma)=\"efetivaSituacao($event)\"></app-analise-modal-situacao>\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/veiculo/analise-veiculo/analise-veiculo-index/analise-veiculo-index.component.html":
/*!************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/veiculo/analise-veiculo/analise-veiculo-index/analise-veiculo-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\" [sisFormularioId]=\"constantes.sisFormularioId\"\n  [formAction]=\"actionForm\" [itemData]=\"analiseVeiculo.analiseVeiculoId\">\n</app-menu-command-bar>\n\n<div class=\"section-comand-bar\">\n  <table id=\"dtAnaliseVeiculo\" class=\"table table-striped table-bordered table-hover nowrap table-sm\"></table>\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-analise-veiculo-filter (filtrar)=\"executaFiltro()\"></app-analise-veiculo-filter>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/veiculo/analise-veiculo/analise-veiculo-modal-situacao/analise-veiculo-modal-situacao.component.html":
/*!******************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/veiculo/analise-veiculo/analise-veiculo-modal-situacao/analise-veiculo-modal-situacao.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=\"modalSituacao\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\r\n  <div [class]=\"classModalReprovando\">\r\n    <div class=\"modal-content\">\r\n      <form class=\"form\" #frmAprovarReprovar=\"ngForm\" (ngSubmit)=\"onSubmit()\">\r\n        <div class=\"modal-header\">\r\n          <h5 *ngIf=\"data.libRotina === sitAprovar\" class=\"modal-title\">{{ 'titles.aprovacaoAnaliseVeiculo' | translate\r\n            }}</h5>\r\n          <h5 *ngIf=\"data.libRotina === sitReprovar\" class=\"modal-title\">{{ 'titles.reprovacaoAnaliseVeiculo' |\r\n            translate }}</h5>\r\n          <h5 *ngIf=\"data.libRotina === sitCancelar\" class=\"modal-title\">{{ 'titles.cancelarConclusaoAnaliseVeiculo' |\r\n            translate }}</h5>\r\n        </div>\r\n        <div class=\"modal-body\">\r\n          <ng-container *ngIf=\"!isReprovando else reprovado\">\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=\"usuario\">{{'labels.usuario' | translate}}</label>\r\n                  <input id=\"usuario\" name=\"usuario\" [(ngModel)]=\"data.usuario\" class=\"form-control form-control-sm\"\r\n                    type=\"text\" data-title=\"{{'labels.usuario' | translate}}\" required>\r\n                </div>\r\n              </div>\r\n            </div>\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=\"senha\">{{'labels.senha' | translate}}</label>\r\n                  <input id=\"senha\" name=\"senha\" [(ngModel)]=\"data.senha\" class=\"form-control form-control-sm\"\r\n                    type=\"password\" data-title=\"{{'labels.senha' | translate}}\" required>\r\n                </div>\r\n              </div>\r\n            </div>\r\n          </ng-container>\r\n          <ng-template #reprovado>\r\n            <div class=\"row\">\r\n              <div class=\"col-md-6\">\r\n                <div class=\"form-group form-group-sm\">\r\n                  <label for=\"usuario\">{{'labels.usuario' | translate}}</label>\r\n                  <input id=\"usuario\" name=\"usuario\" [(ngModel)]=\"data.usuario\" class=\"form-control form-control-sm\"\r\n                    type=\"text\" data-title=\"{{'labels.usuario' | translate}}\" required>\r\n                </div>\r\n              </div>\r\n            </div>\r\n            <div class=\"row\">\r\n              <div class=\"col-md-6\">\r\n                <div class=\"form-group form-group-sm\">\r\n                  <label for=\"senha\">{{'labels.senha' | translate}}</label>\r\n                  <input id=\"senha\" name=\"senha\" [(ngModel)]=\"data.senha\" class=\"form-control form-control-sm\"\r\n                    type=\"password\" data-title=\"{{'labels.senha' | translate}}\" required>\r\n                </div>\r\n              </div>\r\n            </div>\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=\"motivo\">{{'labels.motivoDaReprovacao' | translate}}</label>\r\n                  <input id=\"motivo\" name=\"motivo\" [(ngModel)]=\"data.motivo\" class=\"form-control form-control-sm\"\r\n                    type=\"text\" data-title=\"{{'labels.motivoReprovacao' | translate}}\" required>\r\n                </div>\r\n              </div>\r\n            </div>\r\n          </ng-template>\r\n        </div>\r\n        <div class=\"modal-footer\">\r\n          <button type=\"submit\" class=\"btn btn-small btn-success\">{{ 'buttons.ok' | translate }}</button>\r\n          <button type=\"button\" class=\"btn btn-small btn-default\" data-dismiss=\"modal\">{{ 'buttons.cancelar' | translate\r\n            }}</button>\r\n        </div>\r\n      </form>\r\n    </div>\r\n  </div>\r\n</div>");

/***/ }),

/***/ "./src/app/pages/veiculo/analise-veiculo/analise-campos-tipo-zero/analise-campos-tipo-zero.component.ts":
/*!**************************************************************************************************************!*\
  !*** ./src/app/pages/veiculo/analise-veiculo/analise-campos-tipo-zero/analise-campos-tipo-zero.component.ts ***!
  \**************************************************************************************************************/
/*! exports provided: AnaliseCamposTipoZeroComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AnaliseCamposTipoZeroComponent", function() { return AnaliseCamposTipoZeroComponent; });
/* 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_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _analise_veiculo_model__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../analise-veiculo.model */ "./src/app/pages/veiculo/analise-veiculo/analise-veiculo.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 AnaliseCamposTipoZeroComponent = /** @class */ (function () {
    function AnaliseCamposTipoZeroComponent(funcoesService) {
        this.funcoesService = funcoesService;
        this.data = new _analise_veiculo_model__WEBPACK_IMPORTED_MODULE_3__["AnaliseVeiculo"]();
        this.mascaras = new app_config_enumerables__WEBPACK_IMPORTED_MODULE_1__["Mascaras"]();
    }
    AnaliseCamposTipoZeroComponent.prototype.ngOnInit = function () {
    };
    AnaliseCamposTipoZeroComponent.ctorParameters = function () { return [
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__["FuncoesService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Object)
    ], AnaliseCamposTipoZeroComponent.prototype, "data", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Object)
    ], AnaliseCamposTipoZeroComponent.prototype, "disabled", void 0);
    AnaliseCamposTipoZeroComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-analise-campos-tipo-zero",
            template: __importDefault(__webpack_require__(/*! raw-loader!./analise-campos-tipo-zero.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/veiculo/analise-veiculo/analise-campos-tipo-zero/analise-campos-tipo-zero.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__["FuncoesService"]])
    ], AnaliseCamposTipoZeroComponent);
    return AnaliseCamposTipoZeroComponent;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AnaliseVeiculoFilterComponent", function() { return AnaliseVeiculoFilterComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _analise_veiculo_model__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./../analise-veiculo.model */ "./src/app/pages/veiculo/analise-veiculo/analise-veiculo.model.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_config_enumerables__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _analise_veiculo_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../analise-veiculo.service */ "./src/app/pages/veiculo/analise-veiculo/analise-veiculo.service.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};





var AnaliseVeiculoFilterComponent = /** @class */ (function () {
    function AnaliseVeiculoFilterComponent(service) {
        this.service = service;
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.mascara = new app_config_enumerables__WEBPACK_IMPORTED_MODULE_3__["Mascaras"]();
    }
    AnaliseVeiculoFilterComponent.prototype.ngOnInit = function () {
        this.initListaSituacoes();
        this.initListaTiposTransportes();
    };
    AnaliseVeiculoFilterComponent.prototype.initListaSituacoes = function () {
        this.listaSituacoes = [
            { value: "A", label: "labels.emAberto" },
            { value: "L", label: "labels.aprovado" },
            { value: "R", label: "labels.reprovado" },
            { value: "D", label: "labels.auditoria" },
            { value: "T", label: "labels.todos" }
        ];
    };
    AnaliseVeiculoFilterComponent.prototype.initListaTiposTransportes = function () {
        this.listaTiposTransportes = [
            { value: "T", label: "labels.todos" },
            { value: "R", label: "labels.rodoviario" },
            { value: "F", label: "labels.ferroviario" }
        ];
    };
    AnaliseVeiculoFilterComponent.prototype.onSubmit = function (form) {
        if (form.invalid) {
            app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__["EventEmitterService"].get("formError").emit(form);
            return;
        }
        this.filtrar.emit();
        jQuery("#av-filter-dialog").modal("hide");
    };
    AnaliseVeiculoFilterComponent.ctorParameters = function () { return [
        { type: _analise_veiculo_service__WEBPACK_IMPORTED_MODULE_4__["AnaliseVeiculoService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", _analise_veiculo_model__WEBPACK_IMPORTED_MODULE_1__["AnaliseVeiculoFilter"])
    ], AnaliseVeiculoFilterComponent.prototype, "data", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], AnaliseVeiculoFilterComponent.prototype, "filtrar", void 0);
    AnaliseVeiculoFilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-analise-veiculo-filter",
            template: __importDefault(__webpack_require__(/*! raw-loader!./analise-veiculo-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/veiculo/analise-veiculo/analise-veiculo-filter/analise-veiculo-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_analise_veiculo_service__WEBPACK_IMPORTED_MODULE_4__["AnaliseVeiculoService"]])
    ], AnaliseVeiculoFilterComponent);
    return AnaliseVeiculoFilterComponent;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = (".col-sem-margem {\n  margin-right: -29px;\n}\n\n.row-so-input {\n  height: 35px;\n}\n\n.tooltip-static .tooltip {\n  position: relative;\n  display: block;\n  opacity: 1;\n  z-index: 1;\n}\n\n.tooltip-static .tooltip .tooltip-inner {\n  max-width: 100%;\n}\n\n.popover-static .popover {\n  position: relative;\n  display: block;\n  margin: 0;\n  max-width: 100%;\n  z-index: 1;\n}\n\n.table-overflow {\n  max-height: 340px;\n  overflow-y: auto;\n  max-width: 100%;\n  overflow-x: auto;\n}\n\n.table tbody tr:hover td,\n.table tbody tr:hover th {\n  cursor: pointer;\n  cursor: hand;\n}\n\n.modal-dialog {\n  z-index: 2200;\n}\n\n.panel-body {\n  padding-left: 0px;\n  padding-right: 0px;\n  padding-top: 5px;\n  padding-bottom: 15px;\n}\n\n.animated.modal.fade .modal-dialog {\n  transform: none;\n}\n\n.table {\n  border-collapse: collapse !important;\n  width: 100% !important;\n}\n\n.input-group-btn > .btn {\n  padding: 0.25rem 0.5rem;\n  font-size: 0.875rem;\n  line-height: 1.5;\n  border-radius: 0.2rem;\n  border-top-left-radius: 0;\n  border-bottom-left-radius: 0;\n  margin-left: -1px;\n}\n/*# sourceMappingURL=data:application/json;base64,  */");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AnaliseVeiculoFormComponent", function() { return AnaliseVeiculoFormComponent; });
/* 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 _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.ts");
/* harmony import */ var _cadastro_material_caract_material_caract_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../cadastro/material-caract/material-caract.service */ "./src/app/pages/cadastro/material-caract/material-caract.service.ts");
/* harmony import */ var _analise_veiculo_constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../analise-veiculo.constants */ "./src/app/pages/veiculo/analise-veiculo/analise-veiculo.constants.ts");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _analise_veiculo_model__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./../analise-veiculo.model */ "./src/app/pages/veiculo/analise-veiculo/analise-veiculo.model.ts");
/* harmony import */ var _analise_veiculo_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./../analise-veiculo.service */ "./src/app/pages/veiculo/analise-veiculo/analise-veiculo.service.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
    return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
    function verb(n) { return function (v) { return step([n, v]); }; }
    function step(op) {
        if (f) throw new TypeError("Generator is already executing.");
        while (_) try {
            if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
            if (y = 0, t) op = [op[0] & 2, t.value];
            switch (op[0]) {
                case 0: case 1: t = op; break;
                case 4: _.label++; return { value: op[1], done: false };
                case 5: _.label++; y = op[1]; op = [0]; continue;
                case 7: op = _.ops.pop(); _.trys.pop(); continue;
                default:
                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                    if (t[2]) _.ops.pop();
                    _.trys.pop(); continue;
            }
            op = body.call(thisArg, _);
        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
    }
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};













var AnaliseVeiculoFormComponent = /** @class */ (function (_super) {
    __extends(AnaliseVeiculoFormComponent, _super);
    function AnaliseVeiculoFormComponent(router, messageService, activatedRoute, analiseVeiculoService, configuracao, permissoesUtils, materialCaractService, funcoesService) {
        var _this = _super.call(this, new _analise_veiculo_constants__WEBPACK_IMPORTED_MODULE_6__["AnaliseVeiculoConstants"](), funcoesService) || this;
        _this.router = router;
        _this.messageService = messageService;
        _this.activatedRoute = activatedRoute;
        _this.analiseVeiculoService = analiseVeiculoService;
        _this.configuracao = configuracao;
        _this.permissoesUtils = permissoesUtils;
        _this.materialCaractService = materialCaractService;
        _this.funcoesService = funcoesService;
        _this.data = new _analise_veiculo_model__WEBPACK_IMPORTED_MODULE_11__["AnaliseVeiculo"]();
        _this.dataAux = new _analise_veiculo_model__WEBPACK_IMPORTED_MODULE_11__["AnaliseVeiculoDadosComplementares"]();
        _this.libRotinaModal = 0;
        _this.mascara = new app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["Mascaras"]();
        _this.constantes = new _analise_veiculo_constants__WEBPACK_IMPORTED_MODULE_6__["AnaliseVeiculoConstants"]();
        _this.mascaras = new app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["Mascaras"]();
        _this.tipoAnalise = "";
        _this.tem2Digitacao = false;
        _this.segundaDigitacao = false;
        _this.segundoArray = [];
        _this.segundoDadosAnalise = new _analise_veiculo_model__WEBPACK_IMPORTED_MODULE_11__["AnaliseVeiculo"]();
        _this.mensagens = [];
        _this.erroMandatorio = 0;
        _this.erroValidacao = 0;
        _this.target = _this.funcoesService.getTargetLocation();
        _this.rotinaAprovar = 5;
        _this.rotinaReprovar = 6;
        _this.rotinaCancelar = 7;
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    AnaliseVeiculoFormComponent.prototype.ngOnInit = function () {
        return __awaiter(this, void 0, void 0, function () {
            var _this = this;
            return __generator(this, function (_a) {
                this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, this.permissoesUtils.getLibRotinaIdx([1, 2], this.actionForm), function () {
                    var id = _this.activatedRoute.snapshot.paramMap.get("id");
                    if (id) {
                        _this.analiseVeiculoService.getById(id).subscribe(function (resp) {
                            _this.data = resp;
                            _super.prototype.addFuncoes.call(_this, _this.adicionaFuncoes(_this.data));
                            _this.configuracao.getConfig([
                                { sistema: "CTV", parametros: ["DadosAnalise", "Analise2Dig"] }
                            ], function () {
                                if (_this.configuracao.isLoadConfig()) {
                                    _this.tipoAnalise = _this.configuracao.lerConfig("CTV", "DadosAnalise");
                                    _this.tem2Digitacao = _this.funcoesService.isBoolean(_this.configuracao.lerConfig("CTV", "Analise2Dig"));
                                }
                            });
                            // buscando itens do checklist da entrada desse veiculo
                            _this.analiseVeiculoService.getDadosComplementares(id).subscribe(function (rtn) {
                                _this.data.dadosComplementares = rtn;
                                _this.dataAux = rtn[0];
                            });
                            // buscando valores de base de validacao para o material
                            if (!!_this.data.analiseVeiculoItems && _this.data.analiseVeiculoItems.length > 0) {
                                _this.materialCaractService
                                    .GetAllFromMaterial(_this.data.analiseVeiculoItems[0].materialId)
                                    .subscribe(function (materiais) {
                                    _this.valoresBase = materiais;
                                });
                            }
                        });
                    }
                    else {
                        _this.data = new _analise_veiculo_model__WEBPACK_IMPORTED_MODULE_11__["AnaliseVeiculo"]();
                        _this.getCamposAdicionais();
                    }
                }, function () {
                    _this.permissoesUtils.back();
                });
                return [2 /*return*/];
            });
        });
    };
    AnaliseVeiculoFormComponent.prototype.obterSitReg = function (regControle) {
        var _this = this;
        var promise = new Promise(function (resolve, reject) {
            _this.analiseVeiculoService.obterSitReg(regControle).subscribe(function (resp) {
                resolve(resp);
            });
        });
        return promise;
    };
    AnaliseVeiculoFormComponent.prototype.adicionaFuncoes = function (data) {
        var _this = this;
        var funcoesAdicionais = [];
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 5, function () {
            funcoesAdicionais.push({
                action: 'aprovar', func: function () { return __awaiter(_this, void 0, void 0, function () {
                    var rsp, sitReg;
                    return __generator(this, function (_a) {
                        switch (_a.label) {
                            case 0:
                                this.libRotinaModal = this.rotinaAprovar;
                                return [4 /*yield*/, this.obterSitReg(data.analiseVeiculoId)];
                            case 1:
                                rsp = _a.sent();
                                if (rsp && rsp.erros && rsp.erros.length > 0) {
                                    sitReg = rsp.erros[0].message;
                                }
                                if (sitReg === "L") {
                                    this.messageService.warning("titles.analiseVeiculo", "messages.analiseJaAprovadaReprovacaoNaoPermitida");
                                    return [2 /*return*/];
                                }
                                else if (sitReg === "R") {
                                    this.messageService.warning("titles.analiseVeiculo", "messages.analiseReprovadaReprovacaoNaoPermitida");
                                    return [2 /*return*/];
                                }
                                return [2 /*return*/, this.showSituacaoModal()];
                        }
                    });
                }); }
            });
        });
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 6, function () {
            funcoesAdicionais.push({
                action: 'reprovar', func: function () { return __awaiter(_this, void 0, void 0, function () {
                    var rsp, sitReg;
                    return __generator(this, function (_a) {
                        switch (_a.label) {
                            case 0:
                                this.libRotinaModal = this.rotinaReprovar;
                                return [4 /*yield*/, this.obterSitReg(data.analiseVeiculoId)];
                            case 1:
                                rsp = _a.sent();
                                if (rsp && rsp.erros && rsp.erros.length > 0) {
                                    sitReg = rsp.erros[0].message;
                                }
                                if (sitReg === "L") {
                                    this.messageService.warning("titles.analiseVeiculo", "messages.analiseJaAprovadaReprovacaoNaoPermitida");
                                    return [2 /*return*/];
                                }
                                else if (sitReg === "R") {
                                    this.messageService.warning("titles.analiseVeiculo", "messages.analiseReprovadaReprovacaoNaoPermitida");
                                    return [2 /*return*/];
                                }
                                return [2 /*return*/, this.showSituacaoModal()];
                        }
                    });
                }); }
            });
        });
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 7, function () {
            funcoesAdicionais.push({
                action: 'cancelarConclusaoAnalise', func: function () {
                    _this.libRotinaModal = _this.rotinaCancelar;
                    return _this.showSituacaoModal;
                }
            });
        });
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () {
            funcoesAdicionais.push({
                action: '_print', func: function () {
                    _this.constantes.reportId = "CAD0266";
                    _this.constantes.paramRelatorio = {
                        regControle: _this.data.analiseVeiculoId
                    };
                    _super.prototype.print.call(_this);
                }
            });
        });
        return funcoesAdicionais;
    };
    AnaliseVeiculoFormComponent.prototype.validaDadosDinamicos = function () {
        var _this = this;
        this.mensagens = [];
        this.erroMandatorio = 0;
        this.erroValidacao = 0;
        this.data.analiseVeiculoItems.forEach(function (analiseItem) {
            var vlrBase = _this.valoresBase.filter(function (x) { return x.caractTipicaId === analiseItem.caractTipica.caractTipicaId; });
            if (vlrBase.length > 0) {
                // vallimite < 3 validação por valores
                if (vlrBase[0].caractTipica.tipoValLimite < 3) {
                    // validando preenchimento com valores de base para o
                    // material
                    if (vlrBase[0].valorReferenciaInicio > 0 &&
                        vlrBase[0].valorReferenciaFim <= 0) {
                        if (analiseItem.valor < vlrBase[0].valorReferenciaInicio) {
                            _this.mensagens.push(_this.messageService.translate("messages.abaixoReferenciaMinima"));
                            if (vlrBase[0].mandatorio === "S") {
                                // quando campo é mandatorio não podemos permitir o envio
                                _this.erroMandatorio++;
                            }
                            else {
                                _this.erroValidacao++;
                            }
                        }
                    }
                    else if (vlrBase[0].valorReferenciaInicio > 0 &&
                        vlrBase[0].valorReferenciaFim > 0) {
                        if (analiseItem.valor < vlrBase[0].valorReferenciaInicio ||
                            analiseItem.valor > vlrBase[0].valorReferenciaFim) {
                            _this.mensagens.push(_this.messageService.translate("messages.foraDoIntervaloReferencia"));
                            if (vlrBase[0].mandatorio === "S") {
                                // quando campo é mandatorio não podemos permitir o envio
                                _this.erroMandatorio++;
                            }
                            else {
                                _this.erroValidacao++;
                            }
                        }
                    }
                    else if (vlrBase[0].valorReferenciaInicio <= 0 &&
                        vlrBase[0].valorReferenciaFim > 0) {
                        if (analiseItem.valor > vlrBase[0].valorReferenciaFim) {
                            _this.mensagens.push(_this.messageService.translate("messages.acimaReferenciaMaxima"));
                            if (vlrBase[0].mandatorio === "S") {
                                // quando campo é mandatorio não podemos permitir o envio
                                _this.erroMandatorio++;
                            }
                            else {
                                _this.erroValidacao++;
                            }
                        }
                    }
                }
                else if (vlrBase[0].caractTipica.tipoValLimite === 3) {
                    // vallimite = 3 validação por referencia
                    // (Tem que ser igual a referencia)
                    if (analiseItem.valor !== vlrBase[0].caractTipicaReferId) {
                        _this.mensagens.push(_this.messageService.translate("messages.diferenteDaReferencia") +
                            " '" +
                            vlrBase[0].caractTipicaRefer.descrRefer.trim() +
                            "'.");
                        _this.erroMandatorio++;
                    }
                }
                else {
                    if (analiseItem.valor <= 0) {
                        // vallimite = 4 validação por classificacao
                        // deve estar preenchido
                        _this.mensagens.push(analiseItem.caractTipica.descrCaract, _this.messageService.translate("messages.valorNaoInformado"));
                    }
                }
            }
        });
    };
    AnaliseVeiculoFormComponent.prototype.showSituacaoModal = function () {
        jQuery("#modalSituacao").modal("show");
    };
    AnaliseVeiculoFormComponent.prototype.efetivaSituacao = function (dadosModal) {
        var _this = this;
        if (this.validarDadosAnalise()) {
            this.data.operAprov = dadosModal.usuario;
            this.data.motivo = dadosModal.motivo;
            switch (dadosModal.libRotina) {
                case this.rotinaAprovar:
                    this.analiseVeiculoService
                        .aprovar(this.data)
                        .subscribe(function (result) {
                        _this.onEfetivaSituacaoSuccess(result);
                    }, function (error) {
                        _this.messageService.error("titles.analiseVeiculo", error);
                    });
                    break;
                case this.rotinaReprovar:
                    this.analiseVeiculoService
                        .reprovar(this.data)
                        .subscribe(function (result) {
                        _this.onEfetivaSituacaoSuccess(result);
                    }, function (error) {
                        _this.messageService.error("titles.analiseVeiculo", error);
                    });
                    break;
                case this.rotinaCancelar:
                    this.analiseVeiculoService
                        .cancelarConclusao(this.data)
                        .subscribe(function (result) {
                        _this.onEfetivaSituacaoSuccess(result);
                    }, function (error) {
                        _this.messageService.error("titles.analiseVeiculo", error);
                    });
                    break;
                default:
                    break;
            }
        }
    };
    AnaliseVeiculoFormComponent.prototype.onEfetivaSituacaoSuccess = function (result) {
        this.mensagens = this.messageService.validationResult(result.validationResult);
        if (!result.validationResult.isValid) {
            _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_7__["EventEmitterService"].get("backError").emit(this.mensagens);
        }
        else {
            this.messageService.saveSuccess("titles.analiseVeiculo");
            this.back();
        }
    };
    AnaliseVeiculoFormComponent.prototype.verifica2digitacao = function () {
        // esse metodo verifica se os valores da segunda digitacao estao
        // iguais os valores da primeira. caso sim retorna true e caso nao
        // false.
        var diffs = [];
        if (this.tipoAnalise === "3") {
            for (var key in this.data.analiseVeiculoItems) {
                if (this.data.analiseVeiculoItems[key].valor.toString().trim() !==
                    this.segundoArray[key].valor.toString().trim()) {
                    diffs.push([key]);
                }
            }
        }
        else {
            if (this.data.lacreVeiculo !== this.segundoDadosAnalise.lacreVeiculo) {
                diffs.push(["lacreVeiculo"]);
            }
            if (this.data.ptGl !== this.segundoDadosAnalise.ptGl) {
                diffs.push(["ptGl"]);
            }
            if (this.data.densidade !== this.segundoDadosAnalise.densidade) {
                diffs.push(["densidade"]);
            }
            if (this.data.nota !== this.segundoDadosAnalise.nota) {
                diffs.push(["nota"]);
            }
            if (this.data.temperatura !== this.segundoDadosAnalise.temperatura) {
                diffs.push(["temperatura"]);
            }
            if (this.data.ptGl20 !== this.segundoDadosAnalise.ptGl20) {
                diffs.push(["ptGl20"]);
            }
        }
        if (diffs.length > 0) {
            return false;
        }
        else {
            return true;
        }
    };
    AnaliseVeiculoFormComponent.prototype.cria2digitacao = function () {
        // esse metodo verifica quando é necessária segunda digitacao
        // e em caso de "S", prepara a tela e clona o array principal
        // para realizar as validacoes antes de salvar e ou aprovar.
        this.segundaDigitacao = false;
        this.segundoArray = [];
        this.segundoDadosAnalise = new _analise_veiculo_model__WEBPACK_IMPORTED_MODULE_11__["AnaliseVeiculo"]();
        this.erroMandatorio = 0;
        this.erroValidacao = 0;
        // quando necessária segunda digitacao
        if (this.tem2Digitacao) {
            if (this.tipoAnalise === "3") {
                this.segundoArray = this.funcoesService.cloneArray(this.data.analiseVeiculoItems);
                this.segundoArray.forEach(function (analiseItemClonado) {
                    analiseItemClonado.valor = 0;
                });
            }
            this.segundaDigitacao = true;
            return true;
        }
        else {
            return false;
        }
    };
    AnaliseVeiculoFormComponent.prototype.validaDadosFixos = function () {
        this.mensagens = [];
        if (this.funcoesService.isUndefinedOrNull(this.data.ptGl)) {
            this.mensagens.push(this.messageService.translate("messages.valorNaoInformado") + ": " + this.messageService.translate("labels.ptGl"));
        }
        if (this.funcoesService.isUndefinedOrNull(this.data.densidade)) {
            this.mensagens.push(this.messageService.translate("messages.valorNaoInformado") + ": " + this.messageService.translate("labels.densidade20g"));
        }
        if (this.funcoesService.isUndefinedOrNull(this.data.temperatura)) {
            this.mensagens.push(this.messageService.translate("messages.valorNaoInformado") + ": " + this.messageService.translate("labels.temperatura"));
        }
        if (this.funcoesService.isUndefinedOrNull(this.data.ptGl20)) {
            this.mensagens.push(this.messageService.translate("messages.valorNaoInformado") + ": " + this.messageService.translate("labels.ptGl20"));
        }
    };
    AnaliseVeiculoFormComponent.prototype.onSubmit = function (form, create) {
        var _this = this;
        if (create === void 0) { create = false; }
        _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_7__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        this.data.logRotina = "Manut. Analise de Veiculo";
        if (!this.validarDadosAnalise()) {
            return;
        }
        this.analiseVeiculoService
            .save(this.data, this.data.analiseVeiculoId > 0)
            .subscribe(function (result) {
            _this.mensagens = _this.messageService.validationResult(result.validationResult);
            if (!result.validationResult.isValid) {
                _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_7__["EventEmitterService"].get("backError").emit(_this.mensagens);
            }
            else {
                if (_this.tipoAnalise === "3") {
                    if (_this.erroMandatorio > 0 || _this.erroValidacao > 0) {
                        _this.messageService.info("titles.analiseVeiculo", "messages.dadosSalvosForaReferencia");
                    }
                    else if (_this.erroMandatorio <= 0 ||
                        _this.erroMandatorio === undefined) {
                        // Quando não existirem campos mandatorios com erro de valores
                        // de referencia a analise é aprovada automaticamente.
                        _this.libRotinaModal = _this.rotinaAprovar;
                        _this.showSituacaoModal();
                    }
                    else {
                        _this.messageService.saveSuccess("titles.analiseVeiculo");
                        _this.back();
                    }
                }
                else {
                    _this.messageService.saveSuccess("titles.analiseVeiculo");
                    _this.back();
                }
            }
        }, function (error) {
            _this.messageService.error("titles.errorAnalise", error);
        });
    };
    AnaliseVeiculoFormComponent.prototype.validarDadosAnalise = function () {
        if (this.tipoAnalise === "3") {
            this.validaDadosDinamicos();
        }
        else {
            this.validaDadosFixos();
        }
        if (this.mensagens.length > 0) {
            _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_7__["EventEmitterService"].get("backError").emit(this.mensagens);
            return false;
        }
        // quando segunda digitacao nao ativada verifica se a mesma
        // e necessária e em caso sim, ativa.
        if (this.segundaDigitacao === false && this.cria2digitacao()) {
            return false;
        }
        // quando segunda digitacao ativada valida os dados digitados.
        if (this.segundaDigitacao === true) {
            if (!this.verifica2digitacao()) {
                _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_7__["EventEmitterService"].get("backError").emit([this.messageService.translate("messages.erroSegundaDigitacao")]);
                return false;
            }
        }
        return true;
    };
    AnaliseVeiculoFormComponent.prototype.edit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () {
            _this.router.navigate([
                _this.target + "/veiculo/analiseVeiculo/edit/" + _this.data.analiseVeiculoId
            ]);
        });
    };
    AnaliseVeiculoFormComponent.prototype.back = function () {
        this.funcoesService.desabilitarFiltro();
        this.router.navigate([this.target + "/veiculo/analiseVeiculo"]);
    };
    AnaliseVeiculoFormComponent.prototype.getCamposAdicionais = function () {
        var _this = this;
        this.funcoesService.camposAdicionais
            .get(this.constantes.sisFormularioId)
            .subscribe(function (data) {
            _this.data.sisCampoAdds = data;
        });
    };
    AnaliseVeiculoFormComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_10__["MessageService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"] },
        { type: _analise_veiculo_service__WEBPACK_IMPORTED_MODULE_12__["AnaliseVeiculoService"] },
        { type: _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_4__["ConfiguracaoFacade"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__["PermissoesUtilsService"] },
        { type: _cadastro_material_caract_material_caract_service__WEBPACK_IMPORTED_MODULE_5__["MaterialCaractService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_8__["FuncoesService"] }
    ]; };
    AnaliseVeiculoFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-analise-veiculo-form",
            template: __importDefault(__webpack_require__(/*! raw-loader!./analise-veiculo-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/veiculo/analise-veiculo/analise-veiculo-form/analise-veiculo-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./analise-veiculo-form.component.scss */ "./src/app/pages/veiculo/analise-veiculo/analise-veiculo-form/analise-veiculo-form.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_10__["MessageService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"],
            _analise_veiculo_service__WEBPACK_IMPORTED_MODULE_12__["AnaliseVeiculoService"],
            _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_4__["ConfiguracaoFacade"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__["PermissoesUtilsService"],
            _cadastro_material_caract_material_caract_service__WEBPACK_IMPORTED_MODULE_5__["MaterialCaractService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_8__["FuncoesService"]])
    ], AnaliseVeiculoFormComponent);
    return AnaliseVeiculoFormComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_3__["BasePermissoes"]));



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AnaliseVeiculoIndexComponent", function() { return AnaliseVeiculoIndexComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.service.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _analise_veiculo_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../analise-veiculo.service */ "./src/app/pages/veiculo/analise-veiculo/analise-veiculo.service.ts");
/* harmony import */ var _analise_veiculo_constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../analise-veiculo.constants */ "./src/app/pages/veiculo/analise-veiculo/analise-veiculo.constants.ts");
/* harmony import */ var _analise_veiculo_model__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../analise-veiculo.model */ "./src/app/pages/veiculo/analise-veiculo/analise-veiculo.model.ts");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};










var AnaliseVeiculoIndexComponent = /** @class */ (function (_super) {
    __extends(AnaliseVeiculoIndexComponent, _super);
    function AnaliseVeiculoIndexComponent(router, analiseVeiculoService, datatablesService, permissoesUtils, funcoesService, loginService) {
        var _this = _super.call(this, new _analise_veiculo_constants__WEBPACK_IMPORTED_MODULE_7__["AnaliseVeiculoConstants"](), funcoesService) || this;
        _this.router = router;
        _this.analiseVeiculoService = analiseVeiculoService;
        _this.datatablesService = datatablesService;
        _this.permissoesUtils = permissoesUtils;
        _this.funcoesService = funcoesService;
        _this.loginService = loginService;
        _this.analiseVeiculo = new _analise_veiculo_model__WEBPACK_IMPORTED_MODULE_8__["AnaliseVeiculo"]();
        _this.constantes = new _analise_veiculo_constants__WEBPACK_IMPORTED_MODULE_7__["AnaliseVeiculoConstants"]();
        _this.target = _this.funcoesService.getTargetLocation();
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    AnaliseVeiculoIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
            if (!_this.loginService.isTokenExpired()) {
                if (_this.funcoesService.abrirFiltro) {
                    _this.analiseVeiculoService.filtro = new _analise_veiculo_model__WEBPACK_IMPORTED_MODULE_8__["AnaliseVeiculoFilter"]();
                    _this.filtrar();
                }
                else {
                    _this.refresh();
                }
            }
        }, function () {
            _this.permissoesUtils.back();
        }, true);
    };
    AnaliseVeiculoIndexComponent.prototype.edit = function () {
        var _this = this;
        if (this.analiseVeiculoService.analiseVeiculoBloqueada(this.analiseVeiculo.sitReg))
            return;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () {
            _this.router.navigate([_this.target + "/veiculo/analiseVeiculo/edit/" + _this.analiseVeiculo.analiseVeiculoId]);
        });
    };
    AnaliseVeiculoIndexComponent.prototype.detail = function () {
        this.router.navigate([this.target + "/veiculo/analiseVeiculo/detail/" + this.analiseVeiculo.analiseVeiculoId]);
    };
    AnaliseVeiculoIndexComponent.prototype.refresh = function () {
        var _this = this;
        this.analiseVeiculoService.getByFiltro(this.analiseVeiculoService.filtro).subscribe(function (resp) {
            var columns = [
                _this.datatablesService.getDataString("tipoMov", "tipo"),
                _this.datatablesService.getDataStringAlignRight("analiseVeiculoId", "registro"),
                _this.datatablesService.getDataString("placa", "placa"),
                _this.datatablesService.getDataString("nomeCliente", "cliente"),
                _this.datatablesService.getDataString("descrSituacao", "situacao"),
                _this.datatablesService.getDataString("materiais", "produto"),
                _this.datatablesService.getDataString("produto", "descricao")
            ];
            _this.datatablesService.datatable("dtAnaliseVeiculo", columns, resp, function (aData) {
                _this.analiseVeiculo = aData;
            }, 1, "asc");
        });
    };
    AnaliseVeiculoIndexComponent.prototype.properties = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () {
            _super.prototype.properties.call(_this, _this.analiseVeiculo);
        });
    };
    AnaliseVeiculoIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 9, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    AnaliseVeiculoIndexComponent.prototype.filtrar = function () {
        jQuery("#av-filter-dialog").modal("show");
    };
    AnaliseVeiculoIndexComponent.prototype.executaFiltro = function () {
        this.refresh();
    };
    AnaliseVeiculoIndexComponent.prototype.print = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () {
            _this.constantes.paramRelatorio = {
                dataInicial: _this.analiseVeiculoService.filtro.dataInicial,
                dataFinal: _this.analiseVeiculoService.filtro.dataFinal,
                destinatarioIdInspetora: _this.analiseVeiculoService.filtro.destinatarioIdInspetora,
                sitReg: _this.analiseVeiculoService.filtro.sitReg,
                tipoTransporte: _this.analiseVeiculoService.filtro.tipoTransporte,
                placa: _this.analiseVeiculoService.filtro.placa
            };
            _super.prototype.print.call(_this);
        });
    };
    AnaliseVeiculoIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _analise_veiculo_service__WEBPACK_IMPORTED_MODULE_6__["AnaliseVeiculoService"] },
        { type: _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_4__["DatatablesService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_3__["PermissoesUtilsService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_9__["LoginService"] }
    ]; };
    AnaliseVeiculoIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-analise-veiculo-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./analise-veiculo-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/veiculo/analise-veiculo/analise-veiculo-index/analise-veiculo-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _analise_veiculo_service__WEBPACK_IMPORTED_MODULE_6__["AnaliseVeiculoService"],
            _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_4__["DatatablesService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_3__["PermissoesUtilsService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_9__["LoginService"]])
    ], AnaliseVeiculoIndexComponent);
    return AnaliseVeiculoIndexComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_2__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/veiculo/analise-veiculo/analise-veiculo-modal-situacao/analise-veiculo-modal-situacao.component.ts":
/*!**************************************************************************************************************************!*\
  !*** ./src/app/pages/veiculo/analise-veiculo/analise-veiculo-modal-situacao/analise-veiculo-modal-situacao.component.ts ***!
  \**************************************************************************************************************************/
/*! exports provided: AnaliseVeiculoModalSituacaoComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AnaliseVeiculoModalSituacaoComponent", function() { return AnaliseVeiculoModalSituacaoComponent; });
/* 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_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_1__ = __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_2__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var 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 _analise_veiculo_constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../analise-veiculo.constants */ "./src/app/pages/veiculo/analise-veiculo/analise-veiculo.constants.ts");
/* harmony import */ var _analise_veiculo_model__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../analise-veiculo.model */ "./src/app/pages/veiculo/analise-veiculo/analise-veiculo.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 AnaliseVeiculoModalSituacaoComponent = /** @class */ (function (_super) {
    __extends(AnaliseVeiculoModalSituacaoComponent, _super);
    function AnaliseVeiculoModalSituacaoComponent(permissoesUtils, funcoesService, messageService) {
        var _this = _super.call(this, new _analise_veiculo_constants__WEBPACK_IMPORTED_MODULE_5__["AnaliseVeiculoConstants"](), funcoesService) || this;
        _this.permissoesUtils = permissoesUtils;
        _this.funcoesService = funcoesService;
        _this.messageService = messageService;
        _this.outConfirma = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        _this.data = new _analise_veiculo_model__WEBPACK_IMPORTED_MODULE_6__["AnaliseVeiculoSituacao"]();
        _this.sitAprovar = 5;
        _this.sitReprovar = 6;
        _this.sitCancelar = 7;
        return _this;
    }
    AnaliseVeiculoModalSituacaoComponent.prototype.ngOnChanges = function () {
        this.data.libRotina = this.libRotina;
    };
    AnaliseVeiculoModalSituacaoComponent.prototype.onSubmit = function () {
        var _this = this;
        this.permissoesUtils.usuarioPermitido(this.constantes.sisFormularioId, this.data.libRotina, this.data.usuario, this.data.senha, function () {
            _this.outConfirma.emit(_this.data);
            jQuery("#modalSituacao").modal("hide");
        }, function () {
            _this.messageService.error("titles.analiseVeiculo", "messages.usuarioNaoTemPermissao");
        });
    };
    Object.defineProperty(AnaliseVeiculoModalSituacaoComponent.prototype, "classModalReprovando", {
        get: function () {
            return this.isReprovando ? 'modal-dialog' : 'modal-dialog modal-sm';
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(AnaliseVeiculoModalSituacaoComponent.prototype, "isReprovando", {
        get: function () {
            return this.data.libRotina === this.sitReprovar;
        },
        enumerable: true,
        configurable: true
    });
    AnaliseVeiculoModalSituacaoComponent.ctorParameters = function () { return [
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_3__["PermissoesUtilsService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__["FuncoesService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Number)
    ], AnaliseVeiculoModalSituacaoComponent.prototype, "libRotina", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], AnaliseVeiculoModalSituacaoComponent.prototype, "outConfirma", void 0);
    AnaliseVeiculoModalSituacaoComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-analise-modal-situacao",
            template: __importDefault(__webpack_require__(/*! raw-loader!./analise-veiculo-modal-situacao.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/veiculo/analise-veiculo/analise-veiculo-modal-situacao/analise-veiculo-modal-situacao.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_3__["PermissoesUtilsService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__["FuncoesService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"]])
    ], AnaliseVeiculoModalSituacaoComponent);
    return AnaliseVeiculoModalSituacaoComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_1__["BasePermissoes"]));



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AnaliseVeiculoConstants", function() { return AnaliseVeiculoConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var AnaliseVeiculoConstants = /** @class */ (function () {
    function AnaliseVeiculoConstants() {
        this.sisFormularioId = 230064;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.alteracao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.consulta" },
            { sisFormularioId: this.sisFormularioId, libRotina: 3, acao: "labels.impressao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 4, acao: "labels.propriedades" },
            { sisFormularioId: this.sisFormularioId, libRotina: 5, acao: "labels.aprovacao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 6, acao: "labels.reprovacao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 7, acao: "labels.cancelamento" },
            { sisFormularioId: this.sisFormularioId, libRotina: 8, acao: "labels.liberaAlteracaoCamposimportados" },
            { sisFormularioId: this.sisFormularioId, libRotina: 9, acao: "labels.permissoes" }
        ];
        this.sisSistemaId = "CAD";
        this.nomeForm = "titles.analiseVeiculo";
        this.reportId = "CAD0259";
        this.tabela = "AnaliseVeiculo";
        this.reportTitulo = { "titulo": "Análise de Veículo", "subTitulo": "" };
        this.listaIndex = [
            { title: 'Visualizar', action: 'detail', icon: "icon-eye", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Editar', action: 'edit', icon: "icon-pencil", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Atualizar', action: 'refresh', icon: "icon-reload", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Imprimir', action: 'print', icon: "icon-printer", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Pesquisar', action: 'filtrar', icon: "icon-search", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'Propriedade', action: 'properties', icon: "icon-menu", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
        ];
        this.listaForm = [
            { title: 'Editar', action: 'edit', icon: "icon-pencil", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Aprovar', action: 'aprovar', icon: "icon-check", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Reprovar', action: 'reprovar', icon: "icon-close", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'CancelarConclusaoAnalise', action: 'cancelarConclusaoAnalise', icon: "icon-na", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Imprimir', action: '_print', icon: "icon-printer", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Voltar', action: 'back', icon: "icon-arrow-left", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
        ];
    }
    return AnaliseVeiculoConstants;
}());



/***/ }),

/***/ "./src/app/pages/veiculo/analise-veiculo/analise-veiculo.model.ts":
/*!************************************************************************!*\
  !*** ./src/app/pages/veiculo/analise-veiculo/analise-veiculo.model.ts ***!
  \************************************************************************/
/*! exports provided: AnaliseVeiculoDadosComplementares, AnaliseVeiculo, AnaliseVeiculoItem, AnaliseVeiculoFilter, AnaliseVeiculoSituacao */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AnaliseVeiculoDadosComplementares", function() { return AnaliseVeiculoDadosComplementares; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AnaliseVeiculo", function() { return AnaliseVeiculo; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AnaliseVeiculoItem", function() { return AnaliseVeiculoItem; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AnaliseVeiculoFilter", function() { return AnaliseVeiculoFilter; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AnaliseVeiculoSituacao", function() { return AnaliseVeiculoSituacao; });
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! moment */ "./node_modules/moment/moment.js");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var app_pages_cadastro_caract_tipica_caract_tipica_model__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/pages/cadastro/caract-tipica/caract-tipica.model */ "./src/app/pages/cadastro/caract-tipica/caract-tipica.model.ts");
/* harmony import */ var _cadastro_material_material_model__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./../../cadastro/material/material.model */ "./src/app/pages/cadastro/material/material.model.ts");
/* harmony import */ var app_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/base/base.model */ "./src/app/shared/services/base/base.model.ts");
/* harmony import */ var _entrada_veiculo_entrada_veiculo_model__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../entrada-veiculo/entrada-veiculo.model */ "./src/app/pages/veiculo/entrada-veiculo/entrada-veiculo.model.ts");
/* harmony import */ var app_pages_cadastro_caract_tipica_refer_caract_tipica_refer_model__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/pages/cadastro/caract-tipica-refer/caract-tipica-refer.model */ "./src/app/pages/cadastro/caract-tipica-refer/caract-tipica-refer.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 AnaliseVeiculoDadosComplementares = /** @class */ (function () {
    function AnaliseVeiculoDadosComplementares() {
    }
    return AnaliseVeiculoDadosComplementares;
}());

var AnaliseVeiculo = /** @class */ (function (_super) {
    __extends(AnaliseVeiculo, _super);
    function AnaliseVeiculo() {
        var _this = _super.call(this) || this;
        _this.entradaVeiculo = new _entrada_veiculo_entrada_veiculo_model__WEBPACK_IMPORTED_MODULE_4__["EntradaVeiculo"]();
        _this.analiseVeiculoItems = new Array();
        _this.lacreVeiculo = "";
        return _this;
    }
    return AnaliseVeiculo;
}(app_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_3__["BaseModel"]));

var AnaliseVeiculoItem = /** @class */ (function () {
    function AnaliseVeiculoItem() {
        this.material = new _cadastro_material_material_model__WEBPACK_IMPORTED_MODULE_2__["Material"]();
        this.caractTipica = new app_pages_cadastro_caract_tipica_caract_tipica_model__WEBPACK_IMPORTED_MODULE_1__["CaractTipica"]();
        this.caractTipicaRefer = new app_pages_cadastro_caract_tipica_refer_caract_tipica_refer_model__WEBPACK_IMPORTED_MODULE_5__["CaractTipicaRefer"]();
        this.analiseVeiculo = new AnaliseVeiculo();
    }
    return AnaliseVeiculoItem;
}());

var AnaliseVeiculoFilter = /** @class */ (function () {
    function AnaliseVeiculoFilter() {
        this.dataInicial = moment__WEBPACK_IMPORTED_MODULE_0__().add(-30, "days").toDate();
        this.dataFinal = new Date();
        this.destinatarioIdInspetora = 0;
        this.sitReg = "A";
        this.tipoTransporte = "T";
        this.placa = "";
    }
    return AnaliseVeiculoFilter;
}());

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



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AnaliseVeiculoModule", function() { return AnaliseVeiculoModule; });
/* harmony import */ var _shared_shared_module__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../../../shared/shared.module */ "./src/app/shared/shared.module.ts");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_pages_veiculo_analise_veiculo_analise_veiculo_index_analise_veiculo_index_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/pages/veiculo/analise-veiculo/analise-veiculo-index/analise-veiculo-index.component */ "./src/app/pages/veiculo/analise-veiculo/analise-veiculo-index/analise-veiculo-index.component.ts");
/* harmony import */ var _analise_veiculo_routing_module__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./analise-veiculo.routing.module */ "./src/app/pages/veiculo/analise-veiculo/analise-veiculo.routing.module.ts");
/* harmony import */ var app_pages_veiculo_analise_veiculo_analise_veiculo_form_analise_veiculo_form_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/pages/veiculo/analise-veiculo/analise-veiculo-form/analise-veiculo-form.component */ "./src/app/pages/veiculo/analise-veiculo/analise-veiculo-form/analise-veiculo-form.component.ts");
/* harmony import */ var _analise_veiculo_filter_analise_veiculo_filter_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./analise-veiculo-filter/analise-veiculo-filter.component */ "./src/app/pages/veiculo/analise-veiculo/analise-veiculo-filter/analise-veiculo-filter.component.ts");
/* harmony import */ var _analise_campos_tipo_zero_analise_campos_tipo_zero_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./analise-campos-tipo-zero/analise-campos-tipo-zero.component */ "./src/app/pages/veiculo/analise-veiculo/analise-campos-tipo-zero/analise-campos-tipo-zero.component.ts");
/* harmony import */ var _analise_veiculo_modal_situacao_analise_veiculo_modal_situacao_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./analise-veiculo-modal-situacao/analise-veiculo-modal-situacao.component */ "./src/app/pages/veiculo/analise-veiculo/analise-veiculo-modal-situacao/analise-veiculo-modal-situacao.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 AnaliseVeiculoModule = /** @class */ (function () {
    function AnaliseVeiculoModule() {
    }
    AnaliseVeiculoModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
            imports: [_shared_shared_module__WEBPACK_IMPORTED_MODULE_0__["SharedModule"], _analise_veiculo_routing_module__WEBPACK_IMPORTED_MODULE_3__["AnaliseVeiculoRoutingModule"]],
            declarations: [
                app_pages_veiculo_analise_veiculo_analise_veiculo_index_analise_veiculo_index_component__WEBPACK_IMPORTED_MODULE_2__["AnaliseVeiculoIndexComponent"],
                app_pages_veiculo_analise_veiculo_analise_veiculo_form_analise_veiculo_form_component__WEBPACK_IMPORTED_MODULE_4__["AnaliseVeiculoFormComponent"],
                _analise_campos_tipo_zero_analise_campos_tipo_zero_component__WEBPACK_IMPORTED_MODULE_6__["AnaliseCamposTipoZeroComponent"],
                _analise_veiculo_filter_analise_veiculo_filter_component__WEBPACK_IMPORTED_MODULE_5__["AnaliseVeiculoFilterComponent"],
                _analise_veiculo_modal_situacao_analise_veiculo_modal_situacao_component__WEBPACK_IMPORTED_MODULE_7__["AnaliseVeiculoModalSituacaoComponent"]
            ],
            exports: []
        })
    ], AnaliseVeiculoModule);
    return AnaliseVeiculoModule;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AnaliseVeiculoRoutingModule", function() { return AnaliseVeiculoRoutingModule; });
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _config_enumerables__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var app_pages_veiculo_analise_veiculo_analise_veiculo_index_analise_veiculo_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/pages/veiculo/analise-veiculo/analise-veiculo-index/analise-veiculo-index.component */ "./src/app/pages/veiculo/analise-veiculo/analise-veiculo-index/analise-veiculo-index.component.ts");
/* harmony import */ var app_pages_veiculo_analise_veiculo_analise_veiculo_form_analise_veiculo_form_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/pages/veiculo/analise-veiculo/analise-veiculo-form/analise-veiculo-form.component */ "./src/app/pages/veiculo/analise-veiculo/analise-veiculo-form/analise-veiculo-form.component.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};





var MRoutes = [
    {
        path: "",
        component: app_pages_veiculo_analise_veiculo_analise_veiculo_index_analise_veiculo_index_component__WEBPACK_IMPORTED_MODULE_3__["AnaliseVeiculoIndexComponent"],
        data: { breadcrumb: "AnaliseVeiculo", formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index } }
    },
    {
        path: "create",
        component: app_pages_veiculo_analise_veiculo_analise_veiculo_form_analise_veiculo_form_component__WEBPACK_IMPORTED_MODULE_4__["AnaliseVeiculoFormComponent"],
        data: {
            breadcrumb: "AnaliseVeiculo",
            formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].create }
        }
    },
    {
        path: "edit/:id",
        component: app_pages_veiculo_analise_veiculo_analise_veiculo_form_analise_veiculo_form_component__WEBPACK_IMPORTED_MODULE_4__["AnaliseVeiculoFormComponent"],
        data: {
            breadcrumb: "AnaliseVeiculo",
            formParams: { action: 1 }
        }
    },
    {
        path: "detail/:id",
        component: app_pages_veiculo_analise_veiculo_analise_veiculo_form_analise_veiculo_form_component__WEBPACK_IMPORTED_MODULE_4__["AnaliseVeiculoFormComponent"],
        data: {
            breadcrumb: "AnaliseVeiculo",
            formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].detail }
        }
    }
];
var AnaliseVeiculoRoutingModule = /** @class */ (function () {
    function AnaliseVeiculoRoutingModule() {
    }
    AnaliseVeiculoRoutingModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
            imports: [_angular_router__WEBPACK_IMPORTED_MODULE_0__["RouterModule"].forChild(MRoutes)],
            exports: [_angular_router__WEBPACK_IMPORTED_MODULE_0__["RouterModule"]]
        })
    ], AnaliseVeiculoRoutingModule);
    return AnaliseVeiculoRoutingModule;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AnaliseVeiculoService", function() { return AnaliseVeiculoService; });
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js");
/* harmony import */ var _app_error_handler__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../app.error-handler */ "./src/app/app.error-handler.ts");
/* harmony import */ var app_shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/base/base.service */ "./src/app/shared/services/base/base.service.ts");
/* harmony import */ var app_pages_veiculo_analise_veiculo_analise_veiculo_model__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/pages/veiculo/analise-veiculo/analise-veiculo.model */ "./src/app/pages/veiculo/analise-veiculo/analise-veiculo.model.ts");
/* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../environments/environment */ "./src/environments/environment.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");
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 AnaliseVeiculoService = /** @class */ (function (_super) {
    __extends(AnaliseVeiculoService, _super);
    function AnaliseVeiculoService(http, message) {
        var _this = _super.call(this, http, "veiculos/analiseVeiculo") || this;
        _this.message = message;
        _this.filtro = new app_pages_veiculo_analise_veiculo_analise_veiculo_model__WEBPACK_IMPORTED_MODULE_5__["AnaliseVeiculoFilter"]();
        return _this;
    }
    AnaliseVeiculoService.prototype.analiseVeiculoBloqueada = function (sitReg) {
        var mensagens = {
            L: "messages.analiseVeiculoAprovaAlteracaoNaoPermitida",
            R: "messages.analiseVeiculoReprovadaAlteracaoNaoPermitida"
        };
        if (mensagens[sitReg]) {
            this.message.warning("titles.analiseVeiculo", mensagens[sitReg]);
            return true;
        }
        return false;
    };
    AnaliseVeiculoService.prototype.getByFiltro = function (filtro) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_6__["environment"].service_url + "/api/v1/veiculos/analiseVeiculo/listar", filtro)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_0__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    AnaliseVeiculoService.prototype.getDadosComplementares = function (id) {
        return this.http
            .get(_environments_environment__WEBPACK_IMPORTED_MODULE_6__["environment"].service_url + "/api/v1/veiculos/analiseVeiculo/getDadosComplementares/" + id)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_0__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    AnaliseVeiculoService.prototype.aprovar = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_6__["environment"].service_url + "/api/v1/veiculos/analiseVeiculo/aprovar", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_0__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    AnaliseVeiculoService.prototype.reprovar = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_6__["environment"].service_url + "/api/v1/veiculos/analiseVeiculo/reprovar", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_0__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    AnaliseVeiculoService.prototype.cancelarConclusao = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_6__["environment"].service_url + "/api/v1/veiculos/analiseVeiculo/cancelarConclusao", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_0__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    AnaliseVeiculoService.prototype.obterSitReg = function (regControle) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_6__["environment"].service_url + "/api/v1/veiculos/analiseVeiculo/obterSitReg", { regControle: regControle })
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_0__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    AnaliseVeiculoService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpClient"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"] }
    ]; };
    AnaliseVeiculoService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpClient"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"]])
    ], AnaliseVeiculoService);
    return AnaliseVeiculoService;
}(app_shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_4__["BaseService"]));



/***/ })

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