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

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/veiculo/inspecao-de-veiculos/inspecao-de-veiculos-filter/inspecao-de-veiculos-filter.component.html":
/*!*****************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/veiculo/inspecao-de-veiculos/inspecao-de-veiculos-filter/inspecao-de-veiculos-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"] = ("<script src=\"../inspecao-de-veiculos.routing.module.ts\"></script>\r\n<div class=\"modal fade\" id=\"inspecao-de-veiculos-filter-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\r\n    <div class=\"modal-dialog\">\r\n        <div class=\"modal-content\">\r\n            <div class=\"modal-header\">\r\n                <h6 class=\"modal-title\">{{ 'titles.inspecaoDeVeiculos' | translate }}</h6>\r\n            </div>\r\n            <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\">\r\n                <app-validacoes></app-validacoes>\r\n                <div class=\"modal-body\">\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-6 col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"periodoDe\"\r\n                                       class=\"required\">{{\"labels.periodoDe\" | translate }}</label>\r\n                                <app-data id=\"periodoDe\"\r\n                                          name=\"periodoDe\"\r\n                                          [(ngModel)]=\"service.filtro.dataI\"\r\n                                          autofocus\r\n                                          class=\"dataHora\"\r\n                                          [formatDateTime]=\"mascara.getFormatData\"\r\n                                          required=\"true\">\r\n                                </app-data>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"col-lg-6 col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"ate\"\r\n                                       class=\"required\">{{\"labels.ate\" | translate}}</label>\r\n                                <app-data id=\"ate\"\r\n                                          name=\"ate\"\r\n                                          [(ngModel)]=\"service.filtro.dataF\"\r\n                                          class=\"dataHora\"\r\n                                          [formatDateTime]=\"mascara.getFormatData\"\r\n                                          required=\"true\">\r\n                                </app-data>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <app-pesquisa-destinatario id=\"transportadora\" name=\"transportadora\" label=\"transportadora\"\r\n                                    [(ngModel)]=\"service.filtro.transportadoraId\"\r\n                                    [inSelected]=\"service.filtro.transportadora\"\r\n                                    tipoDestinatario=\"T\" showCgcCpf=\"false\" showInscricao=\"false\"\r\n                                    required=\"true\">\r\n                                </app-pesquisa-destinatario>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"situacao\">{{ 'labels.situacao' | translate}}</label>\r\n                                <select id=\"situacao\"\r\n                                        name=\"situacao\"\r\n                                        data-title=\"{{ 'labels.situacao' | translate }}\"\r\n                                        class=\"form-control form-control-sm\"\r\n                                        [(ngModel)]=\"service.filtro.situacao\">\r\n                                        <option value=\"T\">{{'labels.todos' | translate }}</option>\r\n                                        <option value=\"L\">{{'labels.liberado' | translate }}</option>\r\n                                        <option value=\"R\">{{'labels.retido' | translate }}</option>\r\n                                </select>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n                <div class=\"modal-footer\">\r\n                    <button class=\"btn btn-success mr-1\" type=\"submit\">{{ 'buttons.pesquisar' | translate }}\r\n                    </button>\r\n                    <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">Sair</button>\r\n                </div>\r\n            </form>\r\n        </div>\r\n    </div>\r\n</div>\r\n");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<app-menu-command-bar [botoesComando]=\"constantes.listaForm\" [formAction]=\"actionForm\" [itemData]=\"data.codCheckList\"\r\n    [sisFormularioId]=\"constantes.sisFormularioId\">\r\n</app-menu-command-bar>\r\n\r\n<div class=\"row\">\r\n    <div class=\"col-lg-12\">\r\n        <div class=\"section-comand-bar\">\r\n            <div class=\"card-body widget-body\">\r\n                <app-form-legenda></app-form-legenda>\r\n                <form class=\"form\" #f=\"ngForm\" (ngSubmit)=\"onSubmit(f)\">\r\n                    <app-validacoes></app-validacoes>\r\n                    <div class=\"card\">\r\n                        <div class=\"card-body widget-body\">\r\n                            <div class=\"row\">\r\n                                <div class=\"col-lg-3 col-md-10 col-sm-12\">\r\n                                    <div class=\"form-group form-group-sm\">\r\n                                        <label for=\"codCheckList\"> {{ 'labels.checklist' | translate }}</label>\r\n                                        <input id=\"codCheckList\" name=\"codCheckList\" maxlength=\"18\"\r\n                                            value=\"{{data.codCheckList}}\" class=\"form-control form-control-sm\"\r\n                                            type=\"text\" [disabled]=\"!funcoesService.isCreate(actionForm)\" />\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"col-lg-3 col-md-10 col-sm-12\">\r\n                                    <div class=\"form-group form-group-sm\">\r\n                                        <label for=\"regRequisicao\"> {{ 'labels.requisicao' | translate }}</label>\r\n                                        <input id=\"regRequisicao\" name=\"regRequisicao\" maxlength=\"18\"\r\n                                            value=\"{{data.regRequisicao}}\" class=\"form-control form-control-sm\"\r\n                                            type=\"text\" [disabled]=\"!funcoesService.isCreate(actionForm)\" />\r\n                                    </div>\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"row\">\r\n                                <div class=\"col-lg-6 col-md-10 col-sm-12\">\r\n                                    <div class=\"form-group form-group-sm\">\r\n                                        <label>{{'labels.cliente' | translate}}</label>\r\n                                        <div class=\"input-group\">\r\n                                            <input type=\"text\" class=\"form-control form-control-sm col-2\"\r\n                                                value=\"{{data.codDest}}\" disabled>\r\n                                            <input type=\"text\" class=\"form-control form-control-sm col\"\r\n                                                value=\"{{data.cliente}}\" disabled>\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"col-lg-2 col-md-10 col-sm-12\">\r\n                                    <div class=\"form-group form-group-sm\">\r\n                                        <label for=\"pesoLiqIni\"> {{ 'labels.pesoIncial' | translate }}</label>\r\n                                        <input id=\"pesoLiqIni\" name=\"pesoLiqIni\" maxlength=\"18\"\r\n                                            value=\"{{data.pesoLiqIni}}\" class=\"form-control form-control-sm\" type=\"text\"\r\n                                            [disabled]=\"!funcoesService.isCreate(actionForm)\" />\r\n                                    </div>\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"row\">\r\n                                <div class=\"col-lg-6 col-md-10 col-sm-12\">\r\n                                    <div class=\"form-group form-group-sm\">\r\n                                        <label>{{'labels.transportadora' | translate}}</label>\r\n                                        <div class=\"input-group\">\r\n                                            <input type=\"text\" class=\"form-control form-control-sm col-2\"\r\n                                                value=\"{{data.transportadora}}\" disabled>\r\n                                            <input type=\"text\" class=\"form-control form-control-sm col\"\r\n                                                value=\"{{data.transp}}\" disabled>\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"col-lg-2 col-md-10 col-sm-12\">\r\n                                    <div class=\"form-group form-group-sm\">\r\n                                        <label for=\"operInc\"> {{ 'labels.balanceio' | translate }}</label>\r\n                                        <input id=\"operInc\" name=\"operInc\" maxlength=\"18\" value=\"{{data.operInc}}\"\r\n                                            class=\"form-control form-control-sm\" type=\"text\"\r\n                                            [disabled]=\"!funcoesService.isCreate(actionForm)\" />\r\n                                    </div>\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"row\">\r\n                                <div class=\"col-lg-2 col-md-10 col-sm-12\">\r\n                                    <div class=\"form-group form-group-sm\">\r\n                                        <label for=\"placa\"> {{ 'labels.placaCavalo' | translate }}</label>\r\n                                        <input id=\"placa\" name=\"placa\" maxlength=\"18\" value=\"{{data.placaCavalo}}\"\r\n                                            class=\"form-control form-control-sm\" type=\"text\" disabled>\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"col-lg-2 col-md-10 col-sm-12\">\r\n                                    <div class=\"form-group form-group-sm\">\r\n                                        <label for=\"placaCarreta1\"> {{ 'labels.placaCarreta1' | translate }}</label>\r\n                                        <input id=\"placaCarreta1\" name=\"placaCarreta1\" maxlength=\"18\"\r\n                                            value=\"{{data.placaCarreta1}}\" class=\"form-control form-control-sm\"\r\n                                            type=\"text\" disabled>\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"col-lg-2 col-md-10 col-sm-12\">\r\n                                    <div class=\"form-group form-group-sm\">\r\n                                        <label for=\"placaCarreta2\"> {{ 'labels.placaCarreta2' | translate }}</label>\r\n                                        <input id=\"placaCarreta2\" name=\"placaCarreta2\" maxlength=\"18\"\r\n                                            value=\"{{data.placaCarreta2}}\" class=\"form-control form-control-sm\"\r\n                                            type=\"text\" disabled>\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"col-lg-2 col-md-10 col-sm-12\">\r\n                                    <div class=\"form-group form-group-sm\">\r\n                                        <label for=\"operLib\"> {{ 'labels.inspetor' | translate }}</label>\r\n                                        <input id=\"operLib\" name=\"operLib\" maxlength=\"18\" value=\"{{data.operLib}}\"\r\n                                            class=\"form-control form-control-sm\" type=\"text\"\r\n                                            [disabled]=\"!funcoesService.isCreate(actionForm)\" />\r\n                                    </div>\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"row\">\r\n                                <div class=\"col-lg-6 col-md-10 col-sm-12\">\r\n                                    <div class=\"form-group form-group-sm\">\r\n                                        <label>{{'labels.motorista' | translate}}</label>\r\n                                        <div class=\"input-group\">\r\n                                            <input type=\"text\" class=\"form-control form-control-sm col\"\r\n                                                value=\"{{data.nomeMoto}}\" disabled>\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"clearfix\">&nbsp;</div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-6 col-md-6 col-md-12 mt-5\">\r\n                            <div class=\"row mt-4\">\r\n                                <div class=\"col-lg-7\">\r\n                                    <label class=\"label\">{{'labels.lacracaoSegura'\r\n                                        | translate}}</label>\r\n                                </div>\r\n                                <div class=\"col-lg-1\">\r\n                                    <div class=\"form-group form-group-sm\">\r\n                                        <div class=\"form-check\">\r\n                                            <input type=\"radio\" id=\"itemCheck1Sim\" name=\"lacracaoSegura\"\r\n                                                class=\"form-check-input\" value=\"S\" [(ngModel)]=\"data.itemCheck1\" [required]=\"requerido\">\r\n                                            <label for=\"itemCheck1Sim\">{{'labels.sim' | translate}}</label>\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"col-lg-1\">\r\n                                    <div class=\"form-group form-group-sm\">\r\n                                        <div class=\"form-check\">\r\n                                            <input type=\"radio\" id=\"itemCheck1Nao\" name=\"lacracaoSegura\"\r\n                                                class=\"form-check-input\" value=\"N\" [(ngModel)]=\"data.itemCheck1\" [required]=\"requerido\">\r\n                                            <label for=\"itemCheck1Nao\">{{'labels.nao' | translate}}</label>\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"row\">\r\n                                <div class=\"col-lg-7\">\r\n                                    <label class=\"label\">{{'labels.numeroCorDosLacresConferemNotaFiscalOrdemRetirada'\r\n                                        | translate}}</label>\r\n                                </div>\r\n                                <div class=\"col-lg-1\">\r\n                                    <div class=\"form-group form-group-sm\">\r\n                                        <div class=\"form-check\">\r\n                                            <input type=\"radio\" id=\"itemCheck2Sim\" name=\"numeroCorDosLacresConferemNotaFiscalOrdemRetirada\"\r\n                                                class=\"form-check-input\" value=\"S\" [(ngModel)]=\"data.itemCheck2\" [required]=\"requerido\">\r\n                                            <label for=\"itemCheck2Sim\">{{'labels.sim' | translate}}</label>\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"col-lg-1\">\r\n                                    <div class=\"form-group form-group-sm\">\r\n                                        <div class=\"form-check\">\r\n                                            <input type=\"radio\" id=\"itemCheck2Nao\" name=\"numeroCorDosLacresConferemNotaFiscalOrdemRetirada\"\r\n                                                class=\"form-check-input\" value=\"N\" [(ngModel)]=\"data.itemCheck2\" [required]=\"requerido\">\r\n                                            <label for=\"itemCheck2Nao\">{{'labels.nao' | translate}}</label>\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"row\">\r\n                                <div class=\"col-lg-7\">\r\n                                    <label class=\"label\">{{'labels.tubulacoesVazias'\r\n                                        | translate}}</label>\r\n                                </div>\r\n                                <div class=\"col-lg-1\">\r\n                                    <div class=\"form-group form-group-sm\">\r\n                                        <div class=\"form-check\">\r\n                                            <input type=\"radio\" id=\"itemCheck3Sim\" name=\"tubulacoesVazias\"\r\n                                                class=\"form-check-input\" value=\"S\" [(ngModel)]=\"data.itemCheck3\" [required]=\"requerido\">\r\n                                            <label for=\"itemCheck3Sim\">{{'labels.sim' | translate}}</label>\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"col-lg-1\">\r\n                                    <div class=\"form-group form-group-sm\">\r\n                                        <div class=\"form-check\">\r\n                                            <input type=\"radio\" id=\"itemCheck3Nao\" name=\"tubulacoesVazias\"\r\n                                                class=\"form-check-input\" value=\"N\" [(ngModel)]=\"data.itemCheck3\" [required]=\"requerido\">\r\n                                            <label for=\"itemCheck3Nao\">{{'labels.nao' | translate}}</label>\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"row\">\r\n                                <div class=\"col-lg-7\">\r\n                                    <label class=\"label\">{{'labels.produtosEstaoNaSeta'\r\n                                        | translate}}</label>\r\n                                </div>\r\n                                <div class=\"col-lg-1\">\r\n                                    <div class=\"form-group form-group-sm\">\r\n                                        <div class=\"form-check\">\r\n                                            <input type=\"radio\" id=\"itemCheck4Sim\" name=\"produtosEstaoNaSeta\"\r\n                                                class=\"form-check-input\" value=\"S\" [(ngModel)]=\"data.itemCheck4\" [required]=\"requerido\">\r\n                                            <label for=\"itemCheck4Sim\">{{'labels.sim' | translate}}</label>\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"col-lg-1\">\r\n                                    <div class=\"form-group form-group-sm\">\r\n                                        <div class=\"form-check\">\r\n                                            <input type=\"radio\" id=\"itemCheck4Nao\" name=\"produtosEstaoNaSeta\"\r\n                                                class=\"form-check-input\" value=\"N\" [(ngModel)]=\"data.itemCheck4\" [required]=\"requerido\">\r\n                                            <label for=\"itemCheck4Nao\">{{'labels.nao' | translate}}</label>\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"row\">\r\n                                <div class=\"col-lg-7\">\r\n                                    <label class=\"label\">{{'labels.produtosConferemComANotaFiscalOrdemDeRetirada'\r\n                                        | translate}}</label>\r\n                                </div>\r\n                                <div class=\"col-lg-1\">\r\n                                    <div class=\"form-group form-group-sm\">\r\n                                        <div class=\"form-check\">\r\n                                            <input type=\"radio\" id=\"itemCheck5Sim\" name=\"produtosConferemComANotaFiscalOrdemDeRetirada\"\r\n                                                class=\"form-check-input\" value=\"S\" [(ngModel)]=\"data.itemCheck5\" [required]=\"requerido\">\r\n                                            <label for=\"itemCheck5Sim\">{{'labels.sim' | translate}}</label>\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"col-lg-1\">\r\n                                    <div class=\"form-group form-group-sm\">\r\n                                        <div class=\"form-check\">\r\n                                            <input type=\"radio\" id=\"itemCheck5Nao\" name=\"produtosConferemComANotaFiscalOrdemDeRetirada\"\r\n                                                class=\"form-check-input\" value=\"N\" [(ngModel)]=\"data.itemCheck5\" [required]=\"requerido\">\r\n                                            <label for=\"itemCheck5Nao\">{{'labels.nao' | translate}}</label>\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"row\">\r\n                                <div class=\"col-lg-12\">\r\n                                    <div class=\"form-group form-group-sm\">\r\n                                        <label for=\"operTerm\">{{'labels.operador' | translate}}</label>\r\n                                        <input id=\"operTerm\" name=\"operTerm\" [(ngModel)]=\"data.operTerm\"\r\n                                            class=\"form-control form-control-sm\" type=\"text\"\r\n                                            [disabled]=\"funcoesService.isDetail(actionForm)\" rows=\"5\">\r\n                                    </div>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"col-lg-4 col-md-6 col-md-12\">\r\n                            <app-card-container tituloCard=\"horarios\">\r\n                                <div class=\"row\">\r\n                                    <div class=\"col-lg-6 col-md-10 col-sm-12\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <label for=\"dtChegada\"> {{ 'labels.chegadaVeiculo' | translate }}\r\n                                            </label>\r\n                                            <input id=\"dtChegada\" name=\"dtChegada\"\r\n                                                value=\"{{data.dtChegada | date: 'dd/MM/yyyy HH:mm:ss'}}\"\r\n                                                class=\"form-control form-control-sm\" type=\"text\" disabled />\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"row\">\r\n                                    <div class=\"col-lg-6 col-md-10 col-sm-12\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <label for=\"dtOperInc\"> {{ 'labels.inicioInspecao' | translate }}\r\n                                            </label>\r\n                                            <input id=\"dtOperInc\" name=\"dtOperInc\"\r\n                                                value=\"{{data.dtOperInc | date: 'dd/MM/yyyy HH:mm:ss'}}\"\r\n                                                class=\"form-control form-control-sm\" type=\"text\" disabled />\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"row\">\r\n                                    <div class=\"col-lg-6 col-md-10 col-sm-12\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <label for=\"dtOperLib\"> {{ 'labels.finalInspecao' | translate }}\r\n                                            </label>\r\n                                            <input id=\"dtOperLib\" name=\"dtOperLib\"\r\n                                                value=\"{{data.dtOperLib | date: 'dd/MM/yyyy HH:mm:ss'}}\"\r\n                                                class=\"form-control form-control-sm\" type=\"text\" disabled />\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                            </app-card-container>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row mt-2\">\r\n                        <div class=\"col-lg-6\">\r\n                            <div class=\"form-group\">\r\n                                <label for=\"observacoes\">{{'labels.observacoes' | translate}}</label>\r\n                                <textarea id=\"observacoes\" name=\"observacoes\" [(ngModel)]=\"observacoes\"\r\n                                    class=\"form-control form-control-sm\" type=\"text\"\r\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\" (blur)=\"validaObservacoes()\"\r\n                                    rows=\"5\"></textarea>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-12\">\r\n                            <div class=\"form-group\">\r\n                                <button class=\"btn btn-success mr-2\" type=\"submit\"\r\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                    {{ 'buttons.salvar' | translate }}\r\n                                </button>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                </form>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</div>\r\n\r\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/veiculo/inspecao-de-veiculos/inspecao-de-veiculos-index/inspecao-de-veiculos-index.component.html":
/*!***************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/veiculo/inspecao-de-veiculos/inspecao-de-veiculos-index/inspecao-de-veiculos-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\"\r\n                      [formAction]=\"actionForm\"\r\n                      [itemData]=\"data.codCheckList\"\r\n                      [sisFormularioId]=\"constantes.sisFormularioId\">\r\n</app-menu-command-bar>\r\n\r\n<div class=\"section-comand-bar\">\r\n    <table id=\"dtInspecaoDeVeiculos\" class=\"table table-striped table-bordered table-hover nowrap table-sm\"></table>\r\n</div>\r\n\r\n<app-propriedades></app-propriedades>\r\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\r\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>\r\n<app-inspecao-de-veiculos-filter (filtrar)=\"executaFiltro()\"></app-inspecao-de-veiculos-filter>\r\n");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InspecaoDeVeiculosFilterComponent", function() { return InspecaoDeVeiculosFilterComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _inspecao_de_veiculos_model__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../inspecao-de-veiculos.model */ "./src/app/pages/veiculo/inspecao-de-veiculos/inspecao-de-veiculos.model.ts");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _config_enumerables__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _inspecao_de_veiculos_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../inspecao-de-veiculos.service */ "./src/app/pages/veiculo/inspecao-de-veiculos/inspecao-de-veiculos.service.ts");
/* harmony import */ var _login_login_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../login/login.service */ "./src/app/pages/login/login.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 InspecaoDeVeiculosFilterComponent = /** @class */ (function () {
    function InspecaoDeVeiculosFilterComponent(service, login) {
        this.service = service;
        this.login = login;
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.mascara = new _config_enumerables__WEBPACK_IMPORTED_MODULE_3__["Mascaras"]();
    }
    InspecaoDeVeiculosFilterComponent.prototype.ngOnInit = function () {
        if (!this.service.filtro) {
            this.service.filtro = new _inspecao_de_veiculos_model__WEBPACK_IMPORTED_MODULE_1__["InspecaoDeVeiculosFilter"]();
        }
    };
    InspecaoDeVeiculosFilterComponent.prototype.onSubmit = function (form) {
        if (form.invalid) {
            _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__["EventEmitterService"].get("formError").emit(form);
            return;
        }
        this.service.filtro.filialId = this.login.getLogin().filialId;
        this.filtrar.emit();
        jQuery("#inspecao-de-veiculos-filter-dialog").modal("hide");
    };
    InspecaoDeVeiculosFilterComponent.ctorParameters = function () { return [
        { type: _inspecao_de_veiculos_service__WEBPACK_IMPORTED_MODULE_4__["InspecaoDeVeiculosService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_5__["LoginService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], InspecaoDeVeiculosFilterComponent.prototype, "filtrar", void 0);
    InspecaoDeVeiculosFilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-inspecao-de-veiculos-filter",
            template: __importDefault(__webpack_require__(/*! raw-loader!./inspecao-de-veiculos-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/veiculo/inspecao-de-veiculos/inspecao-de-veiculos-filter/inspecao-de-veiculos-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_inspecao_de_veiculos_service__WEBPACK_IMPORTED_MODULE_4__["InspecaoDeVeiculosService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_5__["LoginService"]])
    ], InspecaoDeVeiculosFilterComponent);
    return InspecaoDeVeiculosFilterComponent;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InspecaoDeVeiculosFormComponent", function() { return InspecaoDeVeiculosFormComponent; });
/* harmony import */ var app_pages_veiculo_inspecao_de_veiculos_inspecao_de_veiculos_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/pages/veiculo/inspecao-de-veiculos/inspecao-de-veiculos.service */ "./src/app/pages/veiculo/inspecao-de-veiculos/inspecao-de-veiculos.service.ts");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _inspecao_de_veiculos_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../inspecao-de-veiculos.constants */ "./src/app/pages/veiculo/inspecao-de-veiculos/inspecao-de-veiculos.constants.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 _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _inspecao_de_veiculos_model__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../inspecao-de-veiculos.model */ "./src/app/pages/veiculo/inspecao-de-veiculos/inspecao-de-veiculos.model.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 _config_enumerables__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! app/shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.ts");
/* harmony import */ var app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! app/shared/services/funcoes/string-utils/string-utils.static.service */ "./src/app/shared/services/funcoes/string-utils/string-utils.static.service.ts");
/* harmony import */ var app_shared_components_email_email_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! app/shared/components/email/email.service */ "./src/app/shared/components/email/email.service.ts");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_pages_cadastro_sis_config_relatorio_sis_config_relatorio_service__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! app/pages/cadastro/sis-config-relatorio/sis-config-relatorio.service */ "./src/app/pages/cadastro/sis-config-relatorio/sis-config-relatorio.service.ts");
/* harmony import */ var environments_environment__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! environments/environment */ "./src/environments/environment.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __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 InspecaoDeVeiculosFormComponent = /** @class */ (function (_super) {
    __extends(InspecaoDeVeiculosFormComponent, _super);
    function InspecaoDeVeiculosFormComponent(router, messageService, activatedRoute, inspecaoDeVeiculosService, funcoesService, permissoesUtils, configuracao, message, service, funcoes, emailService, loginService, sisConfigRelatorioService) {
        var _this = _super.call(this, new _inspecao_de_veiculos_constants__WEBPACK_IMPORTED_MODULE_4__["InspecaoDeVeiculosConstants"](), funcoesService) || this;
        _this.router = router;
        _this.messageService = messageService;
        _this.activatedRoute = activatedRoute;
        _this.inspecaoDeVeiculosService = inspecaoDeVeiculosService;
        _this.funcoesService = funcoesService;
        _this.permissoesUtils = permissoesUtils;
        _this.configuracao = configuracao;
        _this.message = message;
        _this.service = service;
        _this.funcoes = funcoes;
        _this.emailService = emailService;
        _this.loginService = loginService;
        _this.sisConfigRelatorioService = sisConfigRelatorioService;
        _this.data = new _inspecao_de_veiculos_model__WEBPACK_IMPORTED_MODULE_8__["InspecaoDeVeiculos"]();
        _this.mensagens = [];
        _this.constantes = new _inspecao_de_veiculos_constants__WEBPACK_IMPORTED_MODULE_4__["InspecaoDeVeiculosConstants"]();
        _this.mascara = new _config_enumerables__WEBPACK_IMPORTED_MODULE_10__["Mascaras"]();
        _this.target = _this.funcoesService.getTargetLocation();
        _this.observacoes = '';
        _this.email = new _inspecao_de_veiculos_model__WEBPACK_IMPORTED_MODULE_8__["InspecaoDeVeiculosEmailDto"]();
        _this.loadConfig = function () {
            if (!_this.configuracao.isLoadConfig())
                return;
            _this.cWebModRelInspVeic = _this.configuracao.lerConfig("CTV", "CWebModRelInspVeic");
            _this.obrigaDigInspVeic = _this.configuracao.lerConfig("CTV", "ObrigaDigInspVeic");
            _this.validaConfig();
        };
        _this._print = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 4, function () {
                if (_this.data.sitReg == 'L') {
                    _this.message.warning('title.inspecaoDeVeiculos', 'messages.veiculoLiberadoAlteraçãoNaoPermitida');
                    return;
                }
                if (!_this.cWebModRelInspVeic) {
                    _this.message.warning("titles.inspecaoDeVeiculos", "messages.modRelNaoConfigurado");
                    return;
                }
                var reportTitulo = {
                    titulo: _this.message.getTranslates('titles', 'inspecaoDeVeiculos'),
                    subTitulo: ''
                };
                var parans = {
                    codCheckList: _this.data.codCheckList
                };
                console.log(_this.cWebModRelInspVeic);
                _this.service.filtro.filialId = _this.funcoes.isNotUndefinedOrNull(_this.service.filtro.filialId) ? _this.service.filtro.filialId : 0;
                _this.funcoesService.reportInvoc.invocaRelatorio(_this.constantes.reportId = _this.cWebModRelInspVeic, reportTitulo, parans);
            });
        };
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    InspecaoDeVeiculosFormComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.configuracao.getConfig(this.constantes.listaParam, this.loadConfig);
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, this.getLibRotina(this.actionForm), function () {
            var id = _this.activatedRoute.snapshot.paramMap.get("id");
            if (id) {
                _this.inspecaoDeVeiculosService.getById(id).subscribe(function (resp) {
                    _this.data = resp;
                    _this.exibirObservacoes();
                });
            }
        }, function () {
            _this.permissoesUtils.back();
        });
    };
    InspecaoDeVeiculosFormComponent.prototype.validaConfig = function () {
        if (this.obrigaDigInspVeic = 'S') {
            this.requerido = true;
            console.log('true');
        }
        else {
            this.requerido = false;
            console.log('false');
        }
    };
    InspecaoDeVeiculosFormComponent.prototype.exibirObservacoes = function () {
        return this.observacoes = this.data.observacoes1 + this.data.observacoes2 + this.data.observacoes3;
    };
    InspecaoDeVeiculosFormComponent.prototype.validaObservacoes = function () {
        var texto = this.observacoes;
        if (texto !== '') {
            if (texto.length <= 250) {
                this.data.observacoes1 = texto;
                this.data.observacoes2 = '';
                this.data.observacoes3 = '';
            }
            else if (texto.length <= 500) {
                this.data.observacoes1 = texto.slice(0, 250);
                this.data.observacoes2 = texto.slice(250, 500);
                this.data.observacoes3 = '';
            }
            else {
                this.data.observacoes1 = texto.slice(0, 250);
                this.data.observacoes2 = texto.slice(250, 500);
                this.data.observacoes3 = texto.slice(500, 750);
            }
        }
    };
    InspecaoDeVeiculosFormComponent.prototype.getLibRotina = function (actionForm) {
        var lista = [
            { id: _config_enumerables__WEBPACK_IMPORTED_MODULE_10__["ActionForm"].edit, descricao: "2" },
            { id: _config_enumerables__WEBPACK_IMPORTED_MODULE_10__["ActionForm"].detail, descricao: "3" }
        ];
        var i = lista.findIndex(function (x) { return x.id === actionForm; });
        return lista[i].descricao;
    };
    InspecaoDeVeiculosFormComponent.prototype.onSubmit = function (form) {
        var _this = this;
        this.validaObservacoes();
        if (form.invalid) {
            _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_6__["EventEmitterService"].get("formError").emit(form);
            return;
        }
        if (this.data.itemCheck4 == 'N' && this.data.litros == 0) {
            this.messageService.warning("titles.inspecaoDeVeiculos", 'message.quantidadeEmLitrosNaoInformada');
            return;
        }
        this.messageService.confirm("titles.justificativaDeatraso", "messages.confirmaALiberacaoDoVeiculo", "", function () { return _this.save(); }, false);
    };
    InspecaoDeVeiculosFormComponent.prototype.save = function () {
        var _this = this;
        if (this.data.itemCheck4 == 'S') {
            this.data.litros == 0;
        }
        ;
        this.data.logRotina = "Manutenção de InspecaoDeVeiculos";
        this.inspecaoDeVeiculosService
            .save(this.data)
            .subscribe(function (result) {
            _this.mensagens = _this.messageService.validationResult(result);
            if (!result.isValid) {
                _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_6__["EventEmitterService"].get("backError").emit(_this.mensagens);
            }
            else {
                _this.messageService.saveSuccess("titles.inspecaoDeVeiculos");
                _this.enviarEmail();
                _this._print();
                _this.back();
            }
        });
    };
    InspecaoDeVeiculosFormComponent.prototype.enviarEmail = function () {
        return __awaiter(this, void 0, void 0, function () {
            var configRel;
            var _this = this;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        this.email.descrIso = "";
                        return [4 /*yield*/, this.sisConfigRelatorioService.getByReportId(this.cWebModRelInspVeic).toPromise()];
                    case 1:
                        configRel = _a.sent();
                        if (!!configRel)
                            this.email.descrIso = app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["StringUtilsStaticService"].toString(configRel.descrIso);
                        this.email.filtro = {
                            nomeFilial: this.loginService.getLogin().filial,
                            reportId: this.cWebModRelInspVeic,
                            titulo: this.message.translate("titles.InspecaoDeVeiculos"),
                            subTitulo: "",
                            logotipo: environments_environment__WEBPACK_IMPORTED_MODULE_16__["environment"].logotipo_relatorio,
                            filialId: this.loginService.getLogin().filialId,
                            codCheckList: this.data.codCheckList
                        };
                        this.email.nomeFilial = this.loginService.getLogin().filial;
                        this.email.reportId = this.cWebModRelInspVeic;
                        this.email.titulo = this.message.translate("titles.InspecaoDeVeiculos");
                        this.email.subTitulo = "";
                        this.email.logotipo = environments_environment__WEBPACK_IMPORTED_MODULE_16__["environment"].logotipo_relatorio;
                        this.email.logotipo = environments_environment__WEBPACK_IMPORTED_MODULE_16__["environment"].logotipo_relatorio;
                        this.email.filialId = this.loginService.getLogin().filialId;
                        this.email.filtro;
                        this.email.body = 'Data de Chegada: ' + this.data.dtChegada.toLocaleString() + '; Veiculo Placa: ' + this.data.placaCavalo + '; Motorista: ' + this.data.nomeMoto;
                        this.email.codDest = this.data.codDest;
                        this.service.enviarEmail(this.email)
                            .subscribe(function (resp) {
                            _this.email.retorno = resp;
                            console.log(resp);
                        });
                        return [2 /*return*/];
                }
            });
        });
    };
    InspecaoDeVeiculosFormComponent.prototype.back = function () {
        this.funcoesService.desabilitarFiltro();
        this.router.navigate([this.target + "/veiculo/inspecaoDeVeiculos"]);
    };
    InspecaoDeVeiculosFormComponent.prototype.edit = function () {
        if (this.data.sitReg == 'L') {
            this.messageService.warning('title.inspecaoDeVeiculos', 'messages.veiculoLiberadoAlteraçãoNaoPermitida');
            return;
        }
        this.router.navigate([this.target + "/veiculo/inspecaoDeVeiculos/edit/" + this.data.codCheckList]);
    };
    InspecaoDeVeiculosFormComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_2__["ActivatedRoute"] },
        { type: app_pages_veiculo_inspecao_de_veiculos_inspecao_de_veiculos_service__WEBPACK_IMPORTED_MODULE_0__["InspecaoDeVeiculosService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__["PermissoesUtilsService"] },
        { type: app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_11__["ConfiguracaoFacade"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] },
        { type: app_pages_veiculo_inspecao_de_veiculos_inspecao_de_veiculos_service__WEBPACK_IMPORTED_MODULE_0__["InspecaoDeVeiculosService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"] },
        { type: app_shared_components_email_email_service__WEBPACK_IMPORTED_MODULE_13__["EmailService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_14__["LoginService"] },
        { type: app_pages_cadastro_sis_config_relatorio_sis_config_relatorio_service__WEBPACK_IMPORTED_MODULE_15__["SisConfigRelatorioService"] }
    ]; };
    InspecaoDeVeiculosFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
            selector: "app-inspecao-de-veiculos-form",
            template: __importDefault(__webpack_require__(/*! raw-loader!./inspecao-de-veiculos-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/veiculo/inspecao-de-veiculos/inspecao-de-veiculos-form/inspecao-de-veiculos-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_2__["ActivatedRoute"],
            app_pages_veiculo_inspecao_de_veiculos_inspecao_de_veiculos_service__WEBPACK_IMPORTED_MODULE_0__["InspecaoDeVeiculosService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__["PermissoesUtilsService"],
            app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_11__["ConfiguracaoFacade"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"],
            app_pages_veiculo_inspecao_de_veiculos_inspecao_de_veiculos_service__WEBPACK_IMPORTED_MODULE_0__["InspecaoDeVeiculosService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"],
            app_shared_components_email_email_service__WEBPACK_IMPORTED_MODULE_13__["EmailService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_14__["LoginService"],
            app_pages_cadastro_sis_config_relatorio_sis_config_relatorio_service__WEBPACK_IMPORTED_MODULE_15__["SisConfigRelatorioService"]])
    ], InspecaoDeVeiculosFormComponent);
    return InspecaoDeVeiculosFormComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_7__["BasePermissoes"]));



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InspecaoDeVeiculosIndexComponent", function() { return InspecaoDeVeiculosIndexComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_pages_veiculo_inspecao_de_veiculos_inspecao_de_veiculos_model__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/pages/veiculo/inspecao-de-veiculos/inspecao-de-veiculos.model */ "./src/app/pages/veiculo/inspecao-de-veiculos/inspecao-de-veiculos.model.ts");
/* harmony import */ var app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _inspecao_de_veiculos_constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../inspecao-de-veiculos.constants */ "./src/app/pages/veiculo/inspecao-de-veiculos/inspecao-de-veiculos.constants.ts");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var app_pages_veiculo_inspecao_de_veiculos_inspecao_de_veiculos_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/pages/veiculo/inspecao-de-veiculos/inspecao-de-veiculos.service */ "./src/app/pages/veiculo/inspecao-de-veiculos/inspecao-de-veiculos.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 _login_login_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! app/shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.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 InspecaoDeVeiculosIndexComponent = /** @class */ (function (_super) {
    __extends(InspecaoDeVeiculosIndexComponent, _super);
    function InspecaoDeVeiculosIndexComponent(router, service, datatables, message, funcoes, configuracao, permissoesUtils, loginService) {
        var _this = _super.call(this, new _inspecao_de_veiculos_constants__WEBPACK_IMPORTED_MODULE_6__["InspecaoDeVeiculosConstants"](), funcoes) || this;
        _this.router = router;
        _this.service = service;
        _this.datatables = datatables;
        _this.message = message;
        _this.funcoes = funcoes;
        _this.configuracao = configuracao;
        _this.permissoesUtils = permissoesUtils;
        _this.loginService = loginService;
        _this.data = new app_pages_veiculo_inspecao_de_veiculos_inspecao_de_veiculos_model__WEBPACK_IMPORTED_MODULE_2__["InspecaoDeVeiculos"]();
        _this.constantes = new _inspecao_de_veiculos_constants__WEBPACK_IMPORTED_MODULE_6__["InspecaoDeVeiculosConstants"]();
        _this.target = _this.funcoes.getTargetLocation();
        _this.loadConfig = function () {
            if (!_this.configuracao.isLoadConfig())
                return;
            _this.cWebModRelInspVeic = _this.configuracao.lerConfig("CTV", "CWebModRelInspVeic");
            console.log(_this.cWebModRelInspVeic);
        };
        _this._print = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 4, function () {
                if (_this.data.sitReg == 'L') {
                    _this.message.warning('title.inspecaoDeVeiculos', 'messages.veiculoLiberadoAlteraçãoNaoPermitida');
                    return;
                }
                if (!_this.cWebModRelInspVeic) {
                    _this.message.warning("titles.inspecaoDeVeiculos", "messages.modRelNaoConfigurado");
                    return;
                }
                var reportTitulo = {
                    titulo: _this.message.getTranslates('titles', 'inspecaoDeVeiculos'),
                    subTitulo: ''
                };
                var parans = {
                    codCheckList: _this.data.codCheckList
                };
                console.log(_this.cWebModRelInspVeic);
                _this.service.filtro.filialId = _this.funcoes.isNotUndefinedOrNull(_this.service.filtro.filialId) ? _this.service.filtro.filialId : 0;
                _this.funcoesService.reportInvoc.invocaRelatorio(_this.constantes.reportId = _this.cWebModRelInspVeic, reportTitulo, parans);
            });
        };
        router.events.subscribe(function (event) {
            var params = _this.funcoes.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    InspecaoDeVeiculosIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.configuracao.getConfig(this.constantes.listaParam, this.loadConfig);
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () {
            if (!_this.loginService.isTokenExpired()) {
                if (_this.funcoesService.abrirFiltro) {
                    jQuery("#inspecao-de-veiculos-filter-dialog").modal("show");
                }
                else {
                    _this.refresh();
                }
            }
        }, function () {
            _this.permissoesUtils.back();
        }, true);
        _super.prototype.addFuncoes.call(this, [
            { action: '_print', func: function () { return _this._print; } }
        ]);
    };
    InspecaoDeVeiculosIndexComponent.prototype.refresh = function () {
        var _this = this;
        this.service.getByFiltro(this.service.filtro).subscribe(function (resp) {
            var columns = [
                _this.datatables.getDataDateTime("dtOperInc", "data", "DD/MM/YYYY HH:MM", "10%"),
                _this.datatables.getDataDouble("codCheckList", "checkList"),
                _this.datatables.getDataDouble("regRequisicao", "requisicao"),
                _this.datatables.getDataString("nomeMoto", "motorista"),
                _this.datatables.getDataString("transp", "trasportadora"),
                _this.datatables.getDataString("placaCavalo", "placa", "10%"),
                _this.datatables.getDataString("situacao", "situacao")
            ];
            _this.datatables.datatable("dtInspecaoDeVeiculos", columns, resp, function (aData) {
                _this.data = aData;
            });
        });
    };
    InspecaoDeVeiculosIndexComponent.prototype.edit = function () {
        if (this.funcoes.isNotUndefinedOrNull(this.data.codCheckList)) {
            if (this.data.sitReg == 'L') {
                this.message.warning('title.inspecaoDeVeiculos', 'messages.veiculoLiberadoAlteraçãoNaoPermitida');
                return;
            }
            this.router.navigate([this.target + "/veiculo/inspecaoDeVeiculos/edit/" + this.data.codCheckList]);
        }
    };
    InspecaoDeVeiculosIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 5, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    InspecaoDeVeiculosIndexComponent.prototype.filtrar = function () {
        jQuery("#inspecao-de-veiculos-filter-dialog").modal("show");
    };
    InspecaoDeVeiculosIndexComponent.prototype.executaFiltro = function () {
        this.refresh();
    };
    InspecaoDeVeiculosIndexComponent.prototype.detail = function () {
        if (this.funcoes.isNotUndefinedOrNull(this.data.codCheckList)) {
            this.router.navigate([this.target + "/veiculo/inspecaoDeVeiculos/detail/" + this.data.codCheckList]);
        }
    };
    InspecaoDeVeiculosIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: app_pages_veiculo_inspecao_de_veiculos_inspecao_de_veiculos_service__WEBPACK_IMPORTED_MODULE_8__["InspecaoDeVeiculosService"] },
        { type: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__["DatatablesService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"] },
        { type: app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_11__["ConfiguracaoFacade"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__["PermissoesUtilsService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_10__["LoginService"] }
    ]; };
    InspecaoDeVeiculosIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-inspecao-de-veiculos-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./inspecao-de-veiculos-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/veiculo/inspecao-de-veiculos/inspecao-de-veiculos-index/inspecao-de-veiculos-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            app_pages_veiculo_inspecao_de_veiculos_inspecao_de_veiculos_service__WEBPACK_IMPORTED_MODULE_8__["InspecaoDeVeiculosService"],
            app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__["DatatablesService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"],
            app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_11__["ConfiguracaoFacade"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__["PermissoesUtilsService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_10__["LoginService"]])
    ], InspecaoDeVeiculosIndexComponent);
    return InspecaoDeVeiculosIndexComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_7__["BasePermissoes"]));



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InspecaoDeVeiculosConstants", function() { return InspecaoDeVeiculosConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var InspecaoDeVeiculosConstants = /** @class */ (function () {
    function InspecaoDeVeiculosConstants() {
        this.sisFormularioId = 230060;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.inclusao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.alteracao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 3, acao: "labels.consulta" },
            { sisFormularioId: this.sisFormularioId, libRotina: 4, acao: "labels.impressao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 5, acao: "labels.permissoes" }
        ];
        this.sisSistemaId = "CTV";
        this.nomeForm = "titles.InspecaoDeVeiculos";
        this.reportTitulo = { "titulo": "InspecaoDeVeiculos", "subTitulo": "" };
        this.tabela = "InspecaoDeVeiculos";
        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: '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: 'Voltar', action: 'back', icon: "icon-arrow-left", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
        ];
        this.listaParam = [
            { 'sistema': 'CTV', 'parametros': ["CWebModRelInspVeic", "ObrigaDigInspVeic"], }
        ];
    }
    return InspecaoDeVeiculosConstants;
}());



/***/ }),

/***/ "./src/app/pages/veiculo/inspecao-de-veiculos/inspecao-de-veiculos.model.ts":
/*!**********************************************************************************!*\
  !*** ./src/app/pages/veiculo/inspecao-de-veiculos/inspecao-de-veiculos.model.ts ***!
  \**********************************************************************************/
/*! exports provided: InspecaoDeVeiculos, InspecaoDeVeiculosFilter, InspecaoDeVeiculosEmailDto */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InspecaoDeVeiculos", function() { return InspecaoDeVeiculos; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InspecaoDeVeiculosFilter", function() { return InspecaoDeVeiculosFilter; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InspecaoDeVeiculosEmailDto", function() { return InspecaoDeVeiculosEmailDto; });
/* harmony import */ var app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/pages/cadastro/destinatario/destinatario.model */ "./src/app/pages/cadastro/destinatario/destinatario.model.ts");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! moment */ "./node_modules/moment/moment.js");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../shared/services/base/base.model */ "./src/app/shared/services/base/base.model.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};



var InspecaoDeVeiculos = /** @class */ (function (_super) {
    __extends(InspecaoDeVeiculos, _super);
    function InspecaoDeVeiculos() {
        var _this = _super.call(this) || this;
        _this.dtChegada = new Date();
        _this.dtOperInc = new Date();
        _this.dtOperLib = new Date();
        return _this;
    }
    return InspecaoDeVeiculos;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_2__["BaseModel"]));

var InspecaoDeVeiculosFilter = /** @class */ (function () {
    function InspecaoDeVeiculosFilter() {
        this.filialId = 0;
        this.transportadoraId = 0;
        this.transportadora = new app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_0__["Destinatario"]();
        this.dataI = moment__WEBPACK_IMPORTED_MODULE_1__().startOf('month').toDate();
        this.dataF = new Date();
        this.situacao = "T";
    }
    return InspecaoDeVeiculosFilter;
}());

var InspecaoDeVeiculosEmailDto = /** @class */ (function () {
    function InspecaoDeVeiculosEmailDto() {
        this.retorno = false;
    }
    return InspecaoDeVeiculosEmailDto;
}());



/***/ }),

/***/ "./src/app/pages/veiculo/inspecao-de-veiculos/inspecao-de-veiculos.module.ts":
/*!***********************************************************************************!*\
  !*** ./src/app/pages/veiculo/inspecao-de-veiculos/inspecao-de-veiculos.module.ts ***!
  \***********************************************************************************/
/*! exports provided: InspecaoDeVeiculosModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InspecaoDeVeiculosModule", function() { return InspecaoDeVeiculosModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _shared_shared_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../shared/shared.module */ "./src/app/shared/shared.module.ts");
/* harmony import */ var app_pages_veiculo_inspecao_de_veiculos_inspecao_de_veiculos_form_inspecao_de_veiculos_form_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/pages/veiculo/inspecao-de-veiculos/inspecao-de-veiculos-form/inspecao-de-veiculos-form.component */ "./src/app/pages/veiculo/inspecao-de-veiculos/inspecao-de-veiculos-form/inspecao-de-veiculos-form.component.ts");
/* harmony import */ var app_pages_veiculo_inspecao_de_veiculos_inspecao_de_veiculos_index_inspecao_de_veiculos_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/pages/veiculo/inspecao-de-veiculos/inspecao-de-veiculos-index/inspecao-de-veiculos-index.component */ "./src/app/pages/veiculo/inspecao-de-veiculos/inspecao-de-veiculos-index/inspecao-de-veiculos-index.component.ts");
/* harmony import */ var app_pages_veiculo_inspecao_de_veiculos_inspecao_de_veiculos_routing_module__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/pages/veiculo/inspecao-de-veiculos/inspecao-de-veiculos.routing.module */ "./src/app/pages/veiculo/inspecao-de-veiculos/inspecao-de-veiculos.routing.module.ts");
/* harmony import */ var app_pages_veiculo_inspecao_de_veiculos_inspecao_de_veiculos_filter_inspecao_de_veiculos_filter_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/pages/veiculo/inspecao-de-veiculos/inspecao-de-veiculos-filter/inspecao-de-veiculos-filter.component */ "./src/app/pages/veiculo/inspecao-de-veiculos/inspecao-de-veiculos-filter/inspecao-de-veiculos-filter.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 InspecaoDeVeiculosModule = /** @class */ (function () {
    function InspecaoDeVeiculosModule() {
    }
    InspecaoDeVeiculosModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"], app_pages_veiculo_inspecao_de_veiculos_inspecao_de_veiculos_routing_module__WEBPACK_IMPORTED_MODULE_4__["InspecaoDeVeiculosRoutingModule"]],
            declarations: [
                app_pages_veiculo_inspecao_de_veiculos_inspecao_de_veiculos_form_inspecao_de_veiculos_form_component__WEBPACK_IMPORTED_MODULE_2__["InspecaoDeVeiculosFormComponent"],
                app_pages_veiculo_inspecao_de_veiculos_inspecao_de_veiculos_index_inspecao_de_veiculos_index_component__WEBPACK_IMPORTED_MODULE_3__["InspecaoDeVeiculosIndexComponent"],
                app_pages_veiculo_inspecao_de_veiculos_inspecao_de_veiculos_filter_inspecao_de_veiculos_filter_component__WEBPACK_IMPORTED_MODULE_5__["InspecaoDeVeiculosFilterComponent"]
            ]
        })
    ], InspecaoDeVeiculosModule);
    return InspecaoDeVeiculosModule;
}());



/***/ }),

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

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





var MRoutes = [
    {
        path: "",
        component: _inspecao_de_veiculos_index_inspecao_de_veiculos_index_component__WEBPACK_IMPORTED_MODULE_4__["InspecaoDeVeiculosIndexComponent"],
        data: {
            breadcrumb: "InspecaoDeVeiculos",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index }
        }
    },
    {
        path: "edit/:id",
        component: _inspecao_de_veiculos_form_inspecao_de_veiculos_form_component__WEBPACK_IMPORTED_MODULE_3__["InspecaoDeVeiculosFormComponent"],
        data: {
            breadcrumb: "InspecaoDeVeiculos",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].edit }
        }
    },
    {
        path: "detail/:id",
        component: _inspecao_de_veiculos_form_inspecao_de_veiculos_form_component__WEBPACK_IMPORTED_MODULE_3__["InspecaoDeVeiculosFormComponent"],
        data: {
            breadcrumb: "inspecaoDeVeiculos",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].detail }
        }
    }
];
var InspecaoDeVeiculosRoutingModule = /** @class */ (function () {
    function InspecaoDeVeiculosRoutingModule() {
    }
    InspecaoDeVeiculosRoutingModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"].forChild(MRoutes)],
            exports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"]]
        })
    ], InspecaoDeVeiculosRoutingModule);
    return InspecaoDeVeiculosRoutingModule;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InspecaoDeVeiculosService", function() { return InspecaoDeVeiculosService; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js");
/* harmony import */ var _inspecao_de_veiculos_model__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./inspecao-de-veiculos.model */ "./src/app/pages/veiculo/inspecao-de-veiculos/inspecao-de-veiculos.model.ts");
/* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var _app_error_handler__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../app.error-handler */ "./src/app/app.error-handler.ts");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
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 InspecaoDeVeiculosService = /** @class */ (function () {
    function InspecaoDeVeiculosService(http) {
        this.http = http;
        this.filtro = new _inspecao_de_veiculos_model__WEBPACK_IMPORTED_MODULE_2__["InspecaoDeVeiculosFilter"]();
    }
    InspecaoDeVeiculosService.prototype.getByFiltro = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/veiculo/inspecaoDeVeiculos/getByFiltro", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    InspecaoDeVeiculosService.prototype.getById = function (id) {
        return this.http
            .get(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/veiculo/inspecaoDeVeiculos/" + id)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    InspecaoDeVeiculosService.prototype.save = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/veiculo/inspecaoDeVeiculos", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    InspecaoDeVeiculosService.prototype.enviarEmail = function (filtro) {
        return this.http.post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/veiculo/inspecaoDeVeiculos/enviaEmail", filtro);
    };
    InspecaoDeVeiculosService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"] }
    ]; };
    InspecaoDeVeiculosService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({
            providedIn: 'root'
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"]])
    ], InspecaoDeVeiculosService);
    return InspecaoDeVeiculosService;
}());



/***/ })

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