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

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/laudo/laudo-clientes-vinc-form/laudo-clientes-vinc-form.component.html":
/*!*********************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/laudo/laudo-clientes-vinc-form/laudo-clientes-vinc-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"] = ("<div class=\"row\">\r\n    <div class=\"col-md-12 col-lg-12\">\r\n        <div *ngIf=\"!showAdd\">\r\n            <button title=\"{{ 'buttons.novo' | translate }}\" class=\"btn btn-sm uni-btn\" (click)=\"create()\"\r\n                [disabled]=\"disabled\">\r\n                <i class=\"icon icon-plus\"></i>\r\n            </button>\r\n            <button title=\"{{ 'buttons.excluir' | translate }}\" class=\"btn btn-sm uni-btn\" (click)=\"remove()\"\r\n                [disabled]=\"disabled || funcoesService.showButtons.detail(actionForm,  dataAux.destinatarioId)\">\r\n                <i class=\"icon icon-trash\"></i>\r\n            </button>\r\n        </div>\r\n    </div>\r\n</div>\r\n\r\n<div class=\"row\" *ngIf=\"!showAdd\">\r\n    <div class=\"clearfix\">&nbsp;</div>\r\n    <div class=\"col-md-12 col-lg-12\">\r\n        <table class=\"table table-striped table-hover\">\r\n            <thead>\r\n                <tr>\r\n                    <th>{{ 'labels.cliente' | translate }}</th>\r\n                </tr>\r\n            </thead>\r\n            <tbody>\r\n                <tr *ngFor=\"let c of dados | removeExcluidos\" class=\"clickable\" [ngClass]=\"{ 'info' : c === dataAux }\"\r\n                    (click)=\"(dataAux = c)\">\r\n                    <td>{{c?.cliente?.fantasia}}</td>\r\n                </tr>\r\n                <tr *ngIf=\"!hasDados\">\r\n                    <th colspan=\"9\">\r\n                        {{'messages.nenhumRegistroEncontrado' | translate }}\r\n                    </th>\r\n                </tr>\r\n            </tbody>\r\n        </table>\r\n    </div>\r\n</div>\r\n\r\n<div *ngIf=\"showAdd && !!dataAux\">\r\n    <div class=\"row\">\r\n        <div class=\"col-lg-6\">\r\n            <div class=\"uni-botoes\">\r\n                <button title=\"{{ 'buttons.voltar' | translate }}\" (click)=\"back()\" type=\"button\"\r\n                    class=\"btn btn-sm uni-btn\">\r\n                    <i class=\"icon icon-arrow-left\"></i>\r\n                </button>\r\n            </div>\r\n        </div>\r\n    </div>\r\n    <form class=\"form\" #f=\"ngForm\" (ngSubmit)=\"onSubmit(f)\">\r\n        <div class=\"row\">\r\n            <div class=\"col-md-12 col-lg-12\">\r\n                <div class=\"card\">\r\n                    <div class=\"card-body\">\r\n                        <div class=\"row\">\r\n                            <div class=\"col-lg-6\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <app-pesquisa-destinatario (outModel)=\"trataCliente($event)\"\r\n                                        [(ngModel)]=\"dataAux.destinatarioId\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\" id=\"cliente\" label=\"cliente\"\r\n                                        name=\"cliente\" required=\"true\" showCgcCpf=\"false\" showInscricao=\"false\"\r\n                                        modalTitle=\"cliente\">\r\n                                    </app-pesquisa-destinatario>\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=\"form-group form-group-sm\">\r\n                    <div class=\"row\">\r\n                        <div class=\"col-md-12 col-lg-12\">\r\n                            <button [disabled]=\"funcoesService.isDetail(actionForm)\" class=\"btn btn-success\"\r\n                                type=\"submit\">\r\n                                {{ 'buttons.salvar' | translate }}\r\n                            </button>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </form>\r\n</div>");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div class=\"modal fade\" id=\"laudo-filter-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\r\n    <div class=\"uni-modal-dialog-md-50\">\r\n        <div class=\"modal-content\">\r\n            <div class=\"modal-header\">\r\n                <h6 class=\"modal-title\">{{ 'titles.pesquisaLaudo' | translate }}</h6>\r\n            </div>\r\n            <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\">\r\n                <div class=\"modal-body\">\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <app-pesquisa-destinatario id=\"cliente\"\r\n                                                           name=\"cliente\"\r\n                                                           tipoDestinatario=\"C\"\r\n                                                           modalTitle=\"pesquisaDeCliente\"\r\n                                                           label=\"cliente\"\r\n                                                           [(ngModel)]=\"service.filtro.destinatarioId\"\r\n                                                           showInscricao=\"false\"\r\n                                                           showCgcCpf=\"false\">\r\n                                </app-pesquisa-destinatario>\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-material id=\"materialId\"\r\n                                                       name=\"materialId\"\r\n                                                       label=\"produto\"\r\n                                                       modalTitle=\"produto\"\r\n                                                       [(ngModel)]=\"service.filtro.materialId\">\r\n                                </app-pesquisa-material>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-12\">\r\n                            <app-pesquisa-tanque id=\"deposito\"\r\n                                                 name=\"deposito\"\r\n                                                 label=\"deposito\"\r\n                                                 modalTitle=\"deposito\"\r\n                                                 [(ngModel)]=\"service.filtro.tanqueId\">\r\n                            </app-pesquisa-tanque>\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/cadastro/laudo/laudo-form/laudo-form.component.html":
/*!*****************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/laudo/laudo-form/laudo-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.laudoId\"\n    [sisFormularioId]=\"constantes.sisFormularioId\">\n</app-menu-command-bar>\n\n<div class=\"section-comand-bar\">\n    <app-form-legenda></app-form-legenda>\n    <div class=\"card-body widget-body\">\n        <app-validacoes></app-validacoes>\n        <div class=\"clearfix\">\n            <ul class=\"nav nav-tabs\">\n                <li class=\"nav-item\">\n                    <a class=\"nav-link active show\" data-toggle=\"tab\" href=\"#da\">{{\"labels.dados\" | translate\n                        }}</a>\n                </li>\n                <li class=\"nav-item\">\n                    <a class=\"nav-link\" data-toggle=\"tab\" href=\"#tb\">{{\n                        \"labels.clientes\" | translate\n                        }}</a>\n                </li>\n            </ul>\n        </div>\n        <div class=\"tab-content top\">\n            <!-- ABA DADOS -->\n            <div class=\"tab-pane active show\" id=\"da\">\n                <div class=\"row\">\n                    <div class=\"col-lg-8\">\n                        <form class=\"form\" #f=\"ngForm\" (ngSubmit)=\"onSubmit(f)\">\n                            <div class=\"row\">\n                                <div class=\"col-lg-2 col-md-6 col-sm-12\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <label for=\"laudoId\">{{'labels.id' | translate}}</label>\n                                        <input id=\"laudoId\" name=\"laudoId\" [(ngModel)]=\"data.laudoId\"\n                                            class=\"form-control form-control-sm\" type=\"text\" disabled>\n                                    </div>\n                                </div>\n                                <div class=\"col-lg-8\">\n                                    <div class=\"custom-control custom-checkbox mt-4\">\n                                        <input id=\"flagAtivo\" name=\"flagAtivo\" [ngModel]=\"data.flagAtivo === 'S'\"\n                                            (ngModelChange)=\"data.flagAtivo=$event?'S':'N'\"\n                                            class=\"custom-control-input checkbox-success\" type=\"checkbox\"\n                                            [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                        <label class=\"custom-control-label\" for=\"flagAtivo\">{{'labels.ativo' |\n                                            translate}}</label>\n                                    </div>\n                                </div>\n                            </div>\n                            <div class=\"row\">\n                                <div class=\"col-lg-12\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <label for=\"descricao\" class=\"requerid\">{{'labels.descricao' |\n                                            translate}}</label>\n                                        <input id=\"descricao\" name=\"descricao\" [(ngModel)]=\"data.descrLaudo\"\n                                            class=\"form-control form-control-sm\" type=\"text\" requerid\n                                            [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                    </div>\n                                </div>\n                            </div>\n\n                            <div class=\"row\">\n                                <div class=\"col-lg-12\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <app-pesquisa-destinatario id=\"cliente\" name=\"cliente\" tipoDestinatario=\"C\"\n                                            modalTitle=\"pesquisaDeCliente\" label=\"cliente\"\n                                            [(ngModel)]=\"data.destinatarioId\" showInscricao=\"false\" showCgcCpf=\"false\"\n                                            [required]=\"!naoObrCliLaudo\" [inSelected]=\"data.cliente\"\n                                            [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                        </app-pesquisa-destinatario>\n                                    </div>\n                                </div>\n                            </div>\n                            <div class=\"row\">\n                                <div class=\"col-lg-12\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <app-pesquisa-material id=\"produto\" name=\"materialId\" label=\"produto\"\n                                            modalTitle=\"produto\" [(ngModel)]=\"data.materialId\"\n                                            [inSelected]=\"data.material\"\n                                            [disabled]=\"funcoesService.isDetail(actionForm)\" required=\"true\">\n                                        </app-pesquisa-material>\n                                    </div>\n                                </div>\n                            </div>\n                            <div class=\"row\">\n                                <div class=\"col-lg-6\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <app-pesquisa-tanque id=\"deposito\" name=\"deposito\" label=\"deposito\"\n                                            modalTitle=\"deposito\" tipoDeposito=\"T\" [(ngModel)]=\"data.tanqueId\"\n                                            [disabled]=\"funcoesService.isDetail(actionForm)\" required=\"true\">\n                                        </app-pesquisa-tanque>\n                                    </div>\n                                </div>\n                            </div>\n\n                            <div class=\"row\">\n                                <div class=\"col-lg-6\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <label for=\"numCertificado\" class=\"requerid\">{{'labels.numCertificado' |\n                                            translate}}</label>\n                                        <input id=\"numCertificado\" name=\"numCertificado\"\n                                            [(ngModel)]=\"data.numCertificado\" maxlength=\"30\"\n                                            class=\"form-control form-control-sm\" type=\"text\" requerid\n                                            [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                    </div>\n                                </div>\n                            </div>\n\n                            <!-- ------------CAMPOS INPUT FILES ------------ -->\n                            <div class=\"row\">\n                                <div class=\"col-lg-10\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <label for=\"laudo1\">{{'labels.laudo1' | translate}}</label>\n                                        <div class=\"custom-file\">\n                                            <input type=\"file\" class=\"custom-file-input campo\" id=\"laudo1\" name=\"laudo1\"\n                                                (change)=\"fileChange($event, 1)\" [accept]=\"acceptedTypes\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                            <label class=\"custom-file-label\" for=\"laudo1\"> <span\n                                                    *ngIf=\"fileName.hasOwnProperty('laudo1')\">{{fileName['laudo1']}}</span>\n                                            </label>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"col-2\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <label for=\"laudo1\">&nbsp;</label>\n                                        <div class=\"input-group\">\n                                            <button class=\"btn btn-secondary mr-2\" type=\"button\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                                (click)=\"deleteFile('laudo1')\"> Excluir\n                                            </button>\n                                        </div>\n                                    </div>\n                                </div>\n                            </div>\n                            <div class=\"row\">\n                                <div class=\"col-lg-10\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <label for=\"laudo2\">{{'labels.laudo2' | translate}}</label>\n                                        <div class=\"custom-file\">\n                                            <input type=\"file\" class=\"custom-file-input campo\" id=\"laudo2\" name=\"laudo2\"\n                                                (change)=\"fileChange($event, 2)\" [accept]=\"acceptedTypes\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                            <label class=\"custom-file-label\" for=\"laudo2\"><span\n                                                    *ngIf=\"fileName.hasOwnProperty('laudo2')\">{{fileName['laudo2']}}</span></label>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"col-2\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <label for=\"laudo2\">&nbsp;</label>\n                                        <div class=\"input-group\">\n                                            <button class=\"btn btn-secondary mr-2\" type=\"button\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                                (click)=\"deleteFile('laudo2')\"> Excluir\n                                            </button>\n                                        </div>\n                                    </div>\n                                </div>\n                            </div>\n                            <div class=\"row\">\n                                <div class=\"col-lg-10\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <label for=\"laudo3\">{{'labels.laudo3' | translate}}</label>\n                                        <div class=\"custom-file\">\n                                            <input type=\"file\" class=\"custom-file-input campo\" id=\"laudo3\" name=\"laudo3\"\n                                                (change)=\"fileChange($event, 3)\" [accept]=\"acceptedTypes\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                            <label class=\"custom-file-label\" for=\"laudo3\"><span\n                                                    *ngIf=\"fileName.hasOwnProperty('laudo3')\">{{fileName['laudo3']}}</span></label>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"col-2\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <label for=\"laudo3\">&nbsp;</label>\n                                        <div class=\"input-group\">\n                                            <button class=\"btn btn-secondary mr-2\" type=\"button\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                                (click)=\"deleteFile('laudo3')\"> Excluir\n                                            </button>\n                                        </div>\n                                    </div>\n                                </div>\n                            </div>\n                            <div class=\"row\">\n                                <div class=\"col-lg-10\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <label for=\"laudo4\">{{'labels.laudo4' | translate}}</label>\n                                        <div class=\"custom-file\">\n                                            <input type=\"file\" class=\"custom-file-input campo\" id=\"laudo4\" name=\"laudo4\"\n                                                (change)=\"fileChange($event, 4)\" [accept]=\"acceptedTypes\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                            <label class=\"custom-file-label\" for=\"laudo4\"><span\n                                                    *ngIf=\"fileName.hasOwnProperty('laudo4')\">{{fileName['laudo4']}}</span></label>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"col-2\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <label for=\"laudo4\">&nbsp;</label>\n                                        <div class=\"input-group\">\n                                            <button class=\"btn btn-secondary mr-2\" type=\"button\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                                (click)=\"deleteFile('laudo4')\"> Excluir\n                                            </button>\n                                        </div>\n                                    </div>\n                                </div>\n                            </div>\n\n                            <div class=\"row\">\n                                <div class=\"col-lg-10\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <label for=\"laudo5\">{{'labels.laudo5' | translate}}</label>\n                                        <div class=\"custom-file\">\n                                            <input type=\"file\" class=\"custom-file-input campo\" id=\"laudo5\" name=\"laudo5\"\n                                                (change)=\"fileChange($event, 5)\" [accept]=\"acceptedTypes\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                            <label class=\"custom-file-label\" for=\"laudo5\"><span\n                                                    *ngIf=\"fileName.hasOwnProperty('laudo5')\">{{fileName['laudo5']}}</span></label>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"col-2\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <label for=\"laudo5\">&nbsp;</label>\n                                        <div class=\"input-group\">\n                                            <button class=\"btn btn-secondary mr-2\" type=\"button\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                                (click)=\"deleteFile('laudo5')\"> Excluir\n                                            </button>\n                                        </div>\n                                    </div>\n                                </div>\n                            </div>\n                            <div class=\"row\">\n                                <div class=\"col-lg-10\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <button class=\"btn btn-success mr-2\" type=\"submit\"\n                                            [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                            {{ 'buttons.salvar' | translate }}\n                                        </button>\n                                        <button class=\"btn btn-success\" (click)=\"saveAndCreate(f)\" type=\"button\"\n                                            [disabled]=\"funcoesService.isDetail(actionForm)\">{{ 'buttons.salvarNovo' |\n                                            translate }}</button>\n                                    </div>\n                                </div>\n                            </div>\n                        </form>\n                    </div>\n                </div>\n            </div>\n            <!--ABA TRANSMISSAO DE DADOS-->\n            <div class=\"tab-pane\" id=\"tb\">\n                <app-laudo-clientes-vinc-form [laudo]=\"data\" [dados]=\"data.laudoClientesVincs\"\n                    (dataResult)=\"refreshLaudoClientesVincs($event)\" [disabled]=\"funcoesService.isDetail(actionForm)\">\n                </app-laudo-clientes-vinc-form>\n            </div>\n        </div>\n    </div>\n</div>\n\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<app-menu-command-bar [botoesComando]=\"constantes.listaIndex\" [formAction]=\"actionForm\" [itemData]=\"data.laudoId\"\r\n    [sisFormularioId]=\"constantes.sisFormularioId\">\r\n</app-menu-command-bar>\r\n\r\n<div class=\"section-comand-bar\">\r\n    <table id=\"dtLaudo\" class=\"table table-striped table-bordered table-hover nowrap table-sm\"></table>\r\n</div>\r\n\r\n<app-laudo-filter (filtrar)=\"executaFiltro()\"></app-laudo-filter>\r\n<app-laudo-report (outPrintList)=\"printList()\" (outPrintLaudo)=\"printLaudo()\"></app-laudo-report>\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>");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div class=\"modal\" id=\"laudo-report-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\r\n    <div class=\"uni-modal-dialog-md-40\">\r\n        <div class=\"modal-content\">\r\n            <div class=\"modal-header\">\r\n                <h6 class=\"modal-title\">{{ 'titles.relatorio' | 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-12 col-md-6 col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"tipo\">{{\"labels.tipo\" | translate }}</label>\r\n                                <select id=\"tipo\"\r\n                                        name=\"tipo\"\r\n                                        required\r\n                                        [(ngModel)]=\"tipoRel\"\r\n                                        class=\"form-control form-control-sm\">\r\n                                    <option value=\"\">{{ 'labels.selecione' | translate}}</option>\r\n                                    <option value=\"0\">{{ 'labels.relatorio' | translate }}</option>\r\n                                    <option value=\"1\">{{ 'labels.laudo' | 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.gerar' | 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");

/***/ }),

/***/ "./src/app/pages/cadastro/laudo/laudo-clientes-vinc-form/laudo-clientes-vinc-form.component.ts":
/*!*****************************************************************************************************!*\
  !*** ./src/app/pages/cadastro/laudo/laudo-clientes-vinc-form/laudo-clientes-vinc-form.component.ts ***!
  \*****************************************************************************************************/
/*! exports provided: LaudoClientesVincFormComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LaudoClientesVincFormComponent", function() { return LaudoClientesVincFormComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _config_enumerables__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _laudo_model__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../laudo.model */ "./src/app/pages/cadastro/laudo/laudo.model.ts");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../destinatario/destinatario.model */ "./src/app/pages/cadastro/destinatario/destinatario.model.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};







var LaudoClientesVincFormComponent = /** @class */ (function () {
    function LaudoClientesVincFormComponent(funcoesService, messageService) {
        this.funcoesService = funcoesService;
        this.messageService = messageService;
        this.disabled = true;
        this.dataResult = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].index;
        this.showAdd = false;
        this.dataAux = new _laudo_model__WEBPACK_IMPORTED_MODULE_4__["LaudoClientesVinc"]();
        this.hasDados = false;
    }
    LaudoClientesVincFormComponent.prototype.ngDoCheck = function () {
        this.hasDados =
            this.dados &&
                this.dados.length > 0 &&
                this.dados.filter(function (v) {
                    if (v["sitReg"] !== "E") {
                        return true;
                    }
                    return false;
                }).length > 0;
    };
    LaudoClientesVincFormComponent.prototype.create = function () {
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].create;
        this.dataAux = new _laudo_model__WEBPACK_IMPORTED_MODULE_4__["LaudoClientesVinc"]();
        this.showAdd = true;
        if (!this.dados) {
            this.dados = [];
        }
    };
    LaudoClientesVincFormComponent.prototype.back = function () {
        this.showAdd = false;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].index;
    };
    LaudoClientesVincFormComponent.prototype.remove = function () {
        var _this = this;
        var i = this.dados.findIndex(function (x) { return x.destinatarioId === _this.dataAux.destinatarioId; });
        if (this.funcoesService.isNotUndefinedOrNull(this.dataAux.laudoClientesVincId)) {
            this.messageService.removeConfirm(function () {
                _this.dados[i].sitReg = "E";
            });
        }
        else {
            this.dados.splice(i, 1);
        }
        this.dataAux = new _laudo_model__WEBPACK_IMPORTED_MODULE_4__["LaudoClientesVinc"]();
    };
    LaudoClientesVincFormComponent.prototype.onSubmit = function (form) {
        _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_5__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        this.dataAux.logRotina = "Manut. do Laudo Deposito";
        this.dados = this.dados.length > 0 ? this.dados : [];
        if (!this.validaClienteDuplicado()) {
            if (this.actionForm === _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].create) {
                var novoCliente = new _laudo_model__WEBPACK_IMPORTED_MODULE_4__["LaudoClientesVinc"]();
                novoCliente.destinatarioId = this.dataAux.destinatarioId;
                novoCliente.cliente = new _destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_6__["Destinatario"]();
                novoCliente.cliente.destinatarioId = this.dataAux.destinatarioId;
                novoCliente.cliente.fantasia = this.dataAux.cliente.fantasia;
                this.dados.push(novoCliente);
            }
            this.dataResult.emit(this.dados);
            this.dataAux = new _laudo_model__WEBPACK_IMPORTED_MODULE_4__["LaudoClientesVinc"]();
            this.back();
        }
        else {
            this.messageService.warning("titles.laudo", "messages.clienteJaInformado");
        }
    };
    LaudoClientesVincFormComponent.prototype.validaClienteDuplicado = function () {
        var _this = this;
        return this.dados.findIndex(function (d) { return d.destinatarioId === _this.dataAux.cliente.destinatarioId
            && d.sitReg !== "E"; }) > -1;
    };
    LaudoClientesVincFormComponent.prototype.trataCliente = function (c) {
        this.dataAux.cliente = c;
    };
    LaudoClientesVincFormComponent.ctorParameters = function () { return [
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__["FuncoesService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", _laudo_model__WEBPACK_IMPORTED_MODULE_4__["Laudo"])
    ], LaudoClientesVincFormComponent.prototype, "laudo", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Object)
    ], LaudoClientesVincFormComponent.prototype, "disabled", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Object)
    ], LaudoClientesVincFormComponent.prototype, "required", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Array)
    ], LaudoClientesVincFormComponent.prototype, "dados", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], LaudoClientesVincFormComponent.prototype, "dataResult", void 0);
    LaudoClientesVincFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-laudo-clientes-vinc-form",
            template: __importDefault(__webpack_require__(/*! raw-loader!./laudo-clientes-vinc-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/laudo/laudo-clientes-vinc-form/laudo-clientes-vinc-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__["FuncoesService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"]])
    ], LaudoClientesVincFormComponent);
    return LaudoClientesVincFormComponent;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LaudoFilterComponent", function() { return LaudoFilterComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _laudo_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../laudo.service */ "./src/app/pages/cadastro/laudo/laudo.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 LaudoFilterComponent = /** @class */ (function () {
    function LaudoFilterComponent(service) {
        this.service = service;
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
    }
    LaudoFilterComponent.prototype.ngOnInit = function () {
    };
    LaudoFilterComponent.prototype.onSubmit = function (form) {
        if (form.invalid) {
            return;
        }
        this.filtrar.emit();
        jQuery("#laudo-filter-dialog").modal("hide");
    };
    LaudoFilterComponent.ctorParameters = function () { return [
        { type: _laudo_service__WEBPACK_IMPORTED_MODULE_1__["LaudoService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], LaudoFilterComponent.prototype, "filtrar", void 0);
    LaudoFilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-laudo-filter",
            template: __importDefault(__webpack_require__(/*! raw-loader!./laudo-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/laudo/laudo-filter/laudo-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_laudo_service__WEBPACK_IMPORTED_MODULE_1__["LaudoService"]])
    ], LaudoFilterComponent);
    return LaudoFilterComponent;
}());



/***/ }),

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

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












var LaudoFormComponent = /** @class */ (function (_super) {
    __extends(LaudoFormComponent, _super);
    function LaudoFormComponent(router, message, activatedRoute, service, funcoes, configuracao, loginService, permissoesUtils) {
        var _this = _super.call(this, new _laudo_constants__WEBPACK_IMPORTED_MODULE_9__["LaudoConstants"](), funcoes) || this;
        _this.router = router;
        _this.message = message;
        _this.activatedRoute = activatedRoute;
        _this.service = service;
        _this.funcoes = funcoes;
        _this.configuracao = configuracao;
        _this.loginService = loginService;
        _this.permissoesUtils = permissoesUtils;
        _this.data = new _laudo_model__WEBPACK_IMPORTED_MODULE_10__["Laudo"]();
        _this.mensagens = [];
        _this.constantes = new _laudo_constants__WEBPACK_IMPORTED_MODULE_9__["LaudoConstants"]();
        _this.target = _this.funcoes.getTargetLocation();
        _this.dataAtual = new Date();
        _this.fileName = {};
        _this.naoObrCliLaudo = false;
        _this.laudoFormatoPDF = false;
        _this.acceptedTypes = ".png, .jpg, .jpeg, .bmp";
        _this.loadConfig = function () { return __awaiter(_this, void 0, void 0, function () {
            return __generator(this, function (_a) {
                if (this.configuracao.isLoadConfig()) {
                    this.naoObrCliLaudo = this.funcoesService.isBoolean(this.configuracao.lerConfig("CTR", "NaoObrCliLaudo"));
                    this.laudoFormatoPDF = this.funcoesService.isBoolean(this.configuracao.lerConfig("CTR", "LaudoFormatoPDF"));
                    this.getAcceptedTypes();
                }
                return [2 /*return*/];
            });
        }); };
        router.events.subscribe(function (event) {
            var params = _this.funcoes.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        _this.filialId = loginService.getLogin().filialId;
        return _this;
    }
    LaudoFormComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.configuracao.getConfig(this.constantes.listaParam, this.loadConfig);
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, this.permissoesUtils.getLibRotina(this.actionForm), function () {
            var id = _this.activatedRoute.snapshot.paramMap.get("id");
            if (id) {
                _this.service.getById(id).subscribe(function (resp) {
                    _this.data = resp;
                    for (var i = 1; i < 6; i++) {
                        if (_this.data["laudo" + i]) {
                            _this.fileName["laudo" + i] = _this.data["laudo" + i];
                        }
                    }
                });
            }
            else {
                _this.data = new _laudo_model__WEBPACK_IMPORTED_MODULE_10__["Laudo"]();
                _this.getCamposAdicionais();
            }
        }, function () {
            _this.permissoesUtils.back();
        });
    };
    LaudoFormComponent.prototype.getAcceptedTypes = function () {
        if (this.laudoFormatoPDF) {
            this.acceptedTypes = ".pdf";
        }
        else {
            this.acceptedTypes = ".png, .jpg, .jpeg, .bmp";
        }
    };
    LaudoFormComponent.prototype.onSubmit = function (form, create) {
        var _this = this;
        if (create === void 0) { create = false; }
        if (form.invalid) {
            _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_3__["EventEmitterService"].get("formError").emit(form);
            return;
        }
        this.data.logRotina = "Manut. de Laudo ";
        this.service
            .save(this.data, this.funcoes.isEdit(this.actionForm))
            .subscribe(function (result) {
            _this.mensagens = _this.message.validationResult(result.validationResult);
            if (result.validationResult !== null && !result.validationResult.isValid) {
                _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_3__["EventEmitterService"].get("backError").emit(_this.mensagens);
                _this.funcoesService.backToTop();
            }
            else {
                _this.message.saveSuccess("titles.laudo");
                if (create) {
                    _this.data = new _laudo_model__WEBPACK_IMPORTED_MODULE_10__["Laudo"]();
                    _this.router.navigate([_this.target + "/cadastro/laudo/create"]);
                }
                else {
                    _this.back();
                }
            }
        });
        jQuery("#laudo-report-dialog").modal("hide");
    };
    LaudoFormComponent.prototype.edit = function () {
        if (this.funcoes.isNotUndefinedOrNull(this.data.laudoId)) {
            this.router.navigate([this.target + "/cadastro/laudo/edit/" + this.data.laudoId]);
        }
    };
    LaudoFormComponent.prototype.saveAndCreate = function (form) {
        this.onSubmit(form, true);
    };
    LaudoFormComponent.prototype.back = function () {
        this.funcoesService.desabilitarFiltro();
        this.router.navigate([this.target + "/cadastro/laudo"]);
    };
    LaudoFormComponent.prototype.getCamposAdicionais = function () {
        var _this = this;
        this.funcoes.camposAdicionais
            .get(this.constantes.sisFormularioId)
            .subscribe(function (data) {
            _this.data.sisCampoAdds = data;
        });
    };
    LaudoFormComponent.prototype.fileChange = function ($event, instrucao) {
        this.readThis($event.target, instrucao);
    };
    LaudoFormComponent.prototype.readThis = function (inputValue, instrucao) {
        var _this = this;
        var file = inputValue.files[0];
        var myReader = new FileReader();
        myReader.onloadend = function (e) {
            _this.data["laudo" + instrucao + "B64"] = myReader.result;
            _this.data["laudo" + instrucao] = file.name;
            _this.fileName["laudo" + instrucao] = "C:\\fakepath\\" + file.name;
        };
        myReader.readAsDataURL(file);
    };
    LaudoFormComponent.prototype.deleteFile = function (campo) {
        this.data[campo] = null;
        this.fileName[campo] = "";
    };
    LaudoFormComponent.prototype.refreshLaudoClientesVincs = function (subsLaudoVincs) {
        this.data.laudoClientesVincs = subsLaudoVincs;
    };
    LaudoFormComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"] },
        { type: _laudo_service__WEBPACK_IMPORTED_MODULE_11__["LaudoService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"] },
        { type: _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_4__["ConfiguracaoFacade"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_8__["LoginService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"] }
    ]; };
    LaudoFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-laudo-form",
            template: __importDefault(__webpack_require__(/*! raw-loader!./laudo-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/laudo/laudo-form/laudo-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"],
            _laudo_service__WEBPACK_IMPORTED_MODULE_11__["LaudoService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"],
            _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_4__["ConfiguracaoFacade"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_8__["LoginService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"]])
    ], LaudoFormComponent);
    return LaudoFormComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_2__["BasePermissoes"]));



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LaudoIndexComponent", function() { return LaudoIndexComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_shared_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_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/funcoes/number-utils/number-utils.static.service */ "./src/app/shared/services/funcoes/number-utils/number-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/funcoes/string-utils/string-utils.static.service */ "./src/app/shared/services/funcoes/string-utils/string-utils.static.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _laudo_constants__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../laudo.constants */ "./src/app/pages/cadastro/laudo/laudo.constants.ts");
/* harmony import */ var _laudo_model__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../laudo.model */ "./src/app/pages/cadastro/laudo/laudo.model.ts");
/* harmony import */ var _laudo_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../laudo.service */ "./src/app/pages/cadastro/laudo/laudo.service.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
    return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
    function verb(n) { return function (v) { return step([n, v]); }; }
    function step(op) {
        if (f) throw new TypeError("Generator is already executing.");
        while (_) try {
            if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
            if (y = 0, t) op = [op[0] & 2, t.value];
            switch (op[0]) {
                case 0: case 1: t = op; break;
                case 4: _.label++; return { value: op[1], done: false };
                case 5: _.label++; y = op[1]; op = [0]; continue;
                case 7: op = _.ops.pop(); _.trys.pop(); continue;
                default:
                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                    if (t[2]) _.ops.pop();
                    _.trys.pop(); continue;
            }
            op = body.call(thisArg, _);
        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
    }
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};














var LaudoIndexComponent = /** @class */ (function (_super) {
    __extends(LaudoIndexComponent, _super);
    function LaudoIndexComponent(router, service, datatables, message, configuracao, funcoes, permissoesUtils, loginService) {
        var _this = _super.call(this, new _laudo_constants__WEBPACK_IMPORTED_MODULE_11__["LaudoConstants"](), funcoes) || this;
        _this.router = router;
        _this.service = service;
        _this.datatables = datatables;
        _this.message = message;
        _this.configuracao = configuracao;
        _this.funcoes = funcoes;
        _this.permissoesUtils = permissoesUtils;
        _this.loginService = loginService;
        _this.data = new _laudo_model__WEBPACK_IMPORTED_MODULE_12__["Laudo"]();
        _this.laudoFormatoPDF = false;
        _this.constantes = new _laudo_constants__WEBPACK_IMPORTED_MODULE_11__["LaudoConstants"]();
        _this.target = _this.funcoes.getTargetLocation();
        _this.loadConfig = function () { return __awaiter(_this, void 0, void 0, function () {
            return __generator(this, function (_a) {
                if (this.configuracao.isLoadConfig()) {
                    this.laudoFormatoPDF = this.funcoesService.isBoolean(this.configuracao.lerConfig("CTR", "LaudoFormatoPDF"));
                }
                return [2 /*return*/];
            });
        }); };
        _this.visualizarLaudo = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 8, function () {
                _this.service.getArqLaudoDeposito({ laudoId: _this.funcoesService.getValue(_this.data.laudoId, "I") }).subscribe(function (resp) {
                    _this.visualizarTodosLaudos(resp);
                });
            });
        };
        router.events.subscribe(function (event) {
            var params = _this.funcoes.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        _this.service.filtro.filialId = _this.loginService.getLogin().filialId;
        return _this;
    }
    LaudoIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.configuracao.getConfig(this.constantes.listaParam, this.loadConfig);
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () { return __awaiter(_this, void 0, void 0, function () {
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        if (!!this.loginService.isTokenExpired()) return [3 /*break*/, 2];
                        if (this.funcoesService.abrirFiltro) {
                            this.service.filtro = new _laudo_model__WEBPACK_IMPORTED_MODULE_12__["LaudoFilter"]();
                            this.filtrar();
                        }
                        return [4 /*yield*/, this.refresh()];
                    case 1:
                        _a.sent();
                        _a.label = 2;
                    case 2: return [2 /*return*/];
                }
            });
        }); }, function () {
            _this.permissoesUtils.back();
        }, true);
        _super.prototype.addFuncoes.call(this, [
            { action: 'visualizarLaudo', func: function () { return _this.visualizarLaudo; } },
        ]);
    };
    LaudoIndexComponent.prototype.create = function () {
        this.router.navigate([this.target + "/cadastro/laudo/create"]);
    };
    LaudoIndexComponent.prototype.refresh = function () {
        var _this = this;
        this.service.getByFilter(this.service.filtro).subscribe(function (data) {
            var columns = [
                _this.datatables.getDataString("laudoId", "id", "10%"),
                _this.datatables.getDataString("descrLaudo", "descrLaudo"),
                _this.datatables.getDataString("cliente", "cliente"),
                _this.datatables.getDataString("produto", "produto"),
                _this.datatables.getDataString("tanqueId", "deposito", "10%")
            ];
            _this.datatables.toDataTable({ tableId: "dtLaudo", columns: columns, data: data, columnOrder: 2, orientationOrder: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__["EOrientationOrder"].ASC }, function (aData) {
                _this.data = aData;
            });
        });
    };
    LaudoIndexComponent.prototype.edit = function () {
        if (this.funcoes.isNotUndefinedOrNull(this.data.laudoId)) {
            this.router.navigate([this.target + "/cadastro/laudo/edit/" + this.data.laudoId]);
        }
    };
    LaudoIndexComponent.prototype.properties = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 6, function () {
            _super.prototype.properties.call(_this, _this.data);
        });
    };
    LaudoIndexComponent.prototype.filtrar = function () {
        jQuery("#laudo-filter-dialog").modal("show");
    };
    LaudoIndexComponent.prototype.executaFiltro = function () {
        this.refresh();
    };
    LaudoIndexComponent.prototype.detail = function () {
        if (this.funcoesService.isNotUndefinedOrNull(this.data.laudoId)) {
            this.router.navigate([this.target + "/cadastro/laudo/detail/" + this.data.laudoId]);
        }
    };
    LaudoIndexComponent.prototype.remove = function () {
        var _this = this;
        if (this.funcoes.isNotUndefinedOrNull(this.data.laudoId)) {
            this.message.removeConfirm(function () {
                _this.service.remove(_this.data).subscribe(function () {
                    _this.datatables.remove("dtLaudo");
                });
            });
        }
    };
    LaudoIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 7, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    LaudoIndexComponent.prototype.print = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 5, function () {
            _this.printList();
        });
    };
    LaudoIndexComponent.prototype.printList = function () {
        var destinatarioId = app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_5__["NumberUtilsStaticService"].toNumber(this.service.filtro.destinatarioId === undefined ? 0 : this.service.filtro.destinatarioId);
        var materialId = app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_6__["StringUtilsStaticService"].toString(this.service.filtro.materialId === undefined ? "" : this.service.filtro.materialId);
        var tanqueId = app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_6__["StringUtilsStaticService"].toString(this.service.filtro.tanqueId === undefined ? "" : this.service.filtro.tanqueId);
        var filialIdReport = app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_5__["NumberUtilsStaticService"].toNumber(this.service.filtro.filialId === undefined ? 0 : this.service.filtro.filialId);
        this.constantes.paramRelatorio = { destinatarioId: destinatarioId, materialId: materialId, tanqueId: tanqueId, filialIdReport: filialIdReport };
        _super.prototype.print.call(this);
    };
    LaudoIndexComponent.prototype.printLaudo = function () {
        var reportTitulo = {
            titulo: 'Laudo Depósito',
            subTitulo: ''
        };
        this.funcoesService.reportInvoc.invocaRelatorio(this.constantes.reportIdLaudo, reportTitulo, {
            laudoId: this.funcoesService.getValue(this.data.laudoId, "I")
        });
    };
    LaudoIndexComponent.prototype.convertBase64ToBlob = function (base64Data, contentType) {
        if (contentType === void 0) { contentType = ''; }
        var sliceSize = 512;
        var byteCharacters = atob(base64Data);
        var byteArrays = [];
        for (var offset = 0; offset < byteCharacters.length; offset += sliceSize) {
            var slice = byteCharacters.slice(offset, offset + sliceSize);
            var byteNumbers = new Array(slice.length);
            for (var i = 0; i < slice.length; i++) {
                byteNumbers[i] = slice.charCodeAt(i);
            }
            var byteArray = new Uint8Array(byteNumbers);
            byteArrays.push(byteArray);
        }
        return new Blob(byteArrays, { type: contentType });
    };
    // faz o download dos arquivos do Laudo
    /*public downloadAllLaudoFiles(laudoData: Laudo) {
        let arquivosEncontrados = false;
        for (let i = 1; i <= 5; i++) {
            const filePath = laudoData[`laudo${i}` as keyof Laudo];
            const fileBytes = laudoData[`laudo${i}Bytes` as keyof Laudo];
            if (filePath && typeof filePath === 'string' && filePath.trim() !== '' && fileBytes) {
                arquivosEncontrados = true;

                const fileName = filePath.split(/[\\/]/).pop() || `laudo${i}`;
                const blob = this.convertBase64ToBlob(fileBytes);
                const url = window.URL.createObjectURL(blob);
                const link = document.createElement('a');
                link.href = url;
                link.download = fileName;
                link.style.display = 'none';

                document.body.appendChild(link);
                link.click();
                document.body.removeChild(link);

                window.URL.revokeObjectURL(url);
            }
        }

        if (!arquivosEncontrados) {
            this.message.warning("titles.laudo", "messages.nenhumArquivoEncontrado");
            return;
        }
    }*/
    // abre o arquivo do Laudo em uma nova aba (pdf ou jpg)
    LaudoIndexComponent.prototype.visualizarTodosLaudos = function (laudoData) {
        var _this = this;
        var arquivosEncontrados = false;
        var delay = 0;
        var _loop_1 = function (i) {
            var filePath = laudoData["laudo" + i];
            var fileBytes = laudoData["laudo" + i + "Bytes"];
            if (filePath && typeof filePath === 'string' && filePath.trim() !== '' && fileBytes) {
                arquivosEncontrados = true;
                var fileNameWithExtension = filePath.split(/[\\/]/).pop() || "laudo" + i;
                var parts = fileNameWithExtension.split('.');
                var fileExtension = '';
                if (parts.length > 1) {
                    fileExtension = parts[parts.length - 1].toLowerCase();
                }
                var contentType = 'application/octet-stream';
                switch (fileExtension) {
                    case 'pdf':
                        contentType = 'application/pdf';
                        break;
                    case 'jpg':
                    case 'jpeg':
                        contentType = 'image/jpeg';
                        break;
                    case 'png':
                        contentType = 'image/png';
                        break;
                    case 'bmp':
                        contentType = 'image/bmp';
                        break;
                }
                var blob = this_1.convertBase64ToBlob(fileBytes, contentType);
                var url_1 = window.URL.createObjectURL(blob);
                setTimeout(function () {
                    var newWindow = window.open(url_1, '_blank');
                    if (newWindow) {
                        newWindow.focus();
                    }
                    else {
                        _this.message.warning("titles.laudo", "messages.navegadorBloqueouPopup");
                        return;
                    }
                    window.URL.revokeObjectURL(url_1);
                }, delay);
                delay += 100;
            }
        };
        var this_1 = this;
        for (var i = 1; i <= 5; i++) {
            _loop_1(i);
        }
        if (!arquivosEncontrados) {
            this.message.warning("titles.laudo", "messages.nenhumArquivoEncontrado");
            return;
        }
    };
    LaudoIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _laudo_service__WEBPACK_IMPORTED_MODULE_13__["LaudoService"] },
        { type: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__["DatatablesService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"] },
        { type: _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_9__["ConfiguracaoFacade"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_10__["PermissoesUtilsService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__["LoginService"] }
    ]; };
    LaudoIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-laudo",
            template: __importDefault(__webpack_require__(/*! raw-loader!./laudo-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/laudo/laudo-index/laudo-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _laudo_service__WEBPACK_IMPORTED_MODULE_13__["LaudoService"],
            app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__["DatatablesService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"],
            _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_9__["ConfiguracaoFacade"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_10__["PermissoesUtilsService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__["LoginService"]])
    ], LaudoIndexComponent);
    return LaudoIndexComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_8__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/cadastro/laudo/laudo-report/laudo-report.component.ts":
/*!*****************************************************************************!*\
  !*** ./src/app/pages/cadastro/laudo/laudo-report/laudo-report.component.ts ***!
  \*****************************************************************************/
/*! exports provided: LaudoReportComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LaudoReportComponent", function() { return LaudoReportComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _config_enumerables__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__ = __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_3__ = __webpack_require__(/*! ../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _laudo_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../laudo.constants */ "./src/app/pages/cadastro/laudo/laudo.constants.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 LaudoReportComponent = /** @class */ (function () {
    function LaudoReportComponent(funcoesService) {
        this.funcoesService = funcoesService;
        this.outPrintList = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.outPrintLaudo = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.tipoRel = "";
        this.mascara = new _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["Mascaras"]();
        this.constantes = new _laudo_constants__WEBPACK_IMPORTED_MODULE_4__["LaudoConstants"]();
    }
    LaudoReportComponent.prototype.ngOnInit = function () {
    };
    LaudoReportComponent.prototype.onSubmit = function (form) {
        _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_3__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        switch (this.tipoRel) {
            case "0":
                this.outPrintList.emit();
                break;
            case "1":
                this.outPrintLaudo.emit();
                break;
            default:
        }
        jQuery("#laudo-report-dialog").modal("hide");
    };
    LaudoReportComponent.ctorParameters = function () { return [
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__["FuncoesService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], LaudoReportComponent.prototype, "outPrintList", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], LaudoReportComponent.prototype, "outPrintLaudo", void 0);
    LaudoReportComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-laudo-report",
            template: __importDefault(__webpack_require__(/*! raw-loader!./laudo-report.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/laudo/laudo-report/laudo-report.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__["FuncoesService"]])
    ], LaudoReportComponent);
    return LaudoReportComponent;
}());



/***/ }),

/***/ "./src/app/pages/cadastro/laudo/laudo.constants.ts":
/*!*********************************************************!*\
  !*** ./src/app/pages/cadastro/laudo/laudo.constants.ts ***!
  \*********************************************************/
/*! exports provided: LaudoConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LaudoConstants", function() { return LaudoConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var LaudoConstants = /** @class */ (function () {
    function LaudoConstants() {
        this.sisFormularioId = 90048;
        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.exclusao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 4, acao: "labels.consulta" },
            { sisFormularioId: this.sisFormularioId, libRotina: 5, acao: "labels.impressao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 6, acao: "labels.propriedades" },
            { sisFormularioId: this.sisFormularioId, libRotina: 7, acao: "labels.permissoes" },
            { sisFormularioId: this.sisFormularioId, libRotina: 8, acao: "labels.visualizarLaudo" },
        ];
        this.sisSistemaId = "CAD";
        this.nomeForm = "titles.laudo";
        this.reportId = "CAD0214";
        this.tabela = "laudo";
        this.reportTitulo = { "titulo": "Laudo Depósito", "subTitulo": "" };
        this.reportIdLaudo = "CAD0274";
        this.listaIndex = [
            { title: 'Novo', action: 'create', icon: "icon-plus", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Visualizar', action: 'detail', icon: "icon-eye", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Editar', action: 'edit', icon: "icon-pencil", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Excluir', action: 'remove', icon: "icon-close", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Atualizar', action: 'refresh', icon: "icon-reload", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Imprimir', action: 'print', icon: "icon-printer", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Pesquisar', action: 'filtrar', icon: "icon-search", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'Propriedade', action: 'properties', icon: "icon-menu", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'visualizarLaudo', action: 'visualizarLaudo', icon: "fa fa-file-image-o", 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': 'CTR', 'parametros': ['NaoObrCliLaudo', 'LaudoFormatoPDF'] }
        ];
    }
    return LaudoConstants;
}());



/***/ }),

/***/ "./src/app/pages/cadastro/laudo/laudo.model.ts":
/*!*****************************************************!*\
  !*** ./src/app/pages/cadastro/laudo/laudo.model.ts ***!
  \*****************************************************/
/*! exports provided: Laudo, LaudoClientesVinc, LaudoFilter, LaudoDto */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Laudo", function() { return Laudo; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LaudoClientesVinc", function() { return LaudoClientesVinc; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LaudoFilter", function() { return LaudoFilter; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LaudoDto", function() { return LaudoDto; });
/* harmony import */ var _shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__ = __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 Laudo = /** @class */ (function (_super) {
    __extends(Laudo, _super);
    function Laudo() {
        var _this = _super.call(this) || this;
        _this.flagAtivo = "S";
        _this.laudoClientesVincs = [];
        return _this;
    }
    return Laudo;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));

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

var LaudoFilter = /** @class */ (function () {
    function LaudoFilter() {
        this.destinatarioId = "";
        this.materialId = "";
        this.tanqueId = "";
        this.tipoRel = "0";
        this.filialId = 0;
    }
    return LaudoFilter;
}());

var LaudoDto = /** @class */ (function (_super) {
    __extends(LaudoDto, _super);
    function LaudoDto() {
        return _super.call(this) || this;
    }
    return LaudoDto;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));



/***/ }),

/***/ "./src/app/pages/cadastro/laudo/laudo.module.ts":
/*!******************************************************!*\
  !*** ./src/app/pages/cadastro/laudo/laudo.module.ts ***!
  \******************************************************/
/*! exports provided: LaudoModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LaudoModule", function() { return LaudoModule; });
/* harmony import */ var _shared_shared_module__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../shared/shared.module */ "./src/app/shared/shared.module.ts");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _laudo_index_laudo_index_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./laudo-index/laudo-index.component */ "./src/app/pages/cadastro/laudo/laudo-index/laudo-index.component.ts");
/* harmony import */ var _laudo_routing_module__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./laudo.routing.module */ "./src/app/pages/cadastro/laudo/laudo.routing.module.ts");
/* harmony import */ var _laudo_filter_laudo_filter_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./laudo-filter/laudo-filter.component */ "./src/app/pages/cadastro/laudo/laudo-filter/laudo-filter.component.ts");
/* harmony import */ var _laudo_form_laudo_form_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./laudo-form/laudo-form.component */ "./src/app/pages/cadastro/laudo/laudo-form/laudo-form.component.ts");
/* harmony import */ var _laudo_clientes_vinc_form_laudo_clientes_vinc_form_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./laudo-clientes-vinc-form/laudo-clientes-vinc-form.component */ "./src/app/pages/cadastro/laudo/laudo-clientes-vinc-form/laudo-clientes-vinc-form.component.ts");
/* harmony import */ var _laudo_report_laudo_report_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./laudo-report/laudo-report.component */ "./src/app/pages/cadastro/laudo/laudo-report/laudo-report.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 LaudoModule = /** @class */ (function () {
    function LaudoModule() {
    }
    LaudoModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
            imports: [_shared_shared_module__WEBPACK_IMPORTED_MODULE_0__["SharedModule"], _laudo_routing_module__WEBPACK_IMPORTED_MODULE_3__["LaudoRoutingModule"]],
            exports: [
                _laudo_filter_laudo_filter_component__WEBPACK_IMPORTED_MODULE_4__["LaudoFilterComponent"],
                _laudo_clientes_vinc_form_laudo_clientes_vinc_form_component__WEBPACK_IMPORTED_MODULE_6__["LaudoClientesVincFormComponent"]
            ],
            declarations: [
                _laudo_index_laudo_index_component__WEBPACK_IMPORTED_MODULE_2__["LaudoIndexComponent"],
                _laudo_form_laudo_form_component__WEBPACK_IMPORTED_MODULE_5__["LaudoFormComponent"],
                _laudo_filter_laudo_filter_component__WEBPACK_IMPORTED_MODULE_4__["LaudoFilterComponent"],
                _laudo_clientes_vinc_form_laudo_clientes_vinc_form_component__WEBPACK_IMPORTED_MODULE_6__["LaudoClientesVincFormComponent"],
                _laudo_report_laudo_report_component__WEBPACK_IMPORTED_MODULE_7__["LaudoReportComponent"],
            ]
        })
    ], LaudoModule);
    return LaudoModule;
}());



/***/ }),

/***/ "./src/app/pages/cadastro/laudo/laudo.routing.module.ts":
/*!**************************************************************!*\
  !*** ./src/app/pages/cadastro/laudo/laudo.routing.module.ts ***!
  \**************************************************************/
/*! exports provided: LaudoRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LaudoRoutingModule", function() { return LaudoRoutingModule; });
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _config_enumerables__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _laudo_form_laudo_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./laudo-form/laudo-form.component */ "./src/app/pages/cadastro/laudo/laudo-form/laudo-form.component.ts");
/* harmony import */ var _laudo_index_laudo_index_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./laudo-index/laudo-index.component */ "./src/app/pages/cadastro/laudo/laudo-index/laudo-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: _laudo_index_laudo_index_component__WEBPACK_IMPORTED_MODULE_4__["LaudoIndexComponent"],
        data: { breadcrumb: "laudo", formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index } }
    },
    {
        path: "create",
        component: _laudo_form_laudo_form_component__WEBPACK_IMPORTED_MODULE_3__["LaudoFormComponent"],
        data: {
            breadcrumb: "laudo",
            formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].create }
        }
    },
    {
        path: "edit/:id",
        component: _laudo_form_laudo_form_component__WEBPACK_IMPORTED_MODULE_3__["LaudoFormComponent"],
        data: {
            breadcrumb: "laudo",
            formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].edit }
        }
    },
    {
        path: "detail/:id",
        component: _laudo_form_laudo_form_component__WEBPACK_IMPORTED_MODULE_3__["LaudoFormComponent"],
        data: {
            breadcrumb: "laudo",
            formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].detail }
        }
    }
];
var LaudoRoutingModule = /** @class */ (function () {
    function LaudoRoutingModule() {
    }
    LaudoRoutingModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
            imports: [_angular_router__WEBPACK_IMPORTED_MODULE_0__["RouterModule"].forChild(MRoutes)],
            exports: [_angular_router__WEBPACK_IMPORTED_MODULE_0__["RouterModule"]]
        })
    ], LaudoRoutingModule);
    return LaudoRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/cadastro/laudo/laudo.service.ts":
/*!*******************************************************!*\
  !*** ./src/app/pages/cadastro/laudo/laudo.service.ts ***!
  \*******************************************************/
/*! exports provided: LaudoService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LaudoService", function() { return LaudoService; });
/* harmony import */ var app_shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/shared/services/base/base.service */ "./src/app/shared/services/base/base.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_common_http__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js");
/* harmony import */ var _laudo_model__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./laudo.model */ "./src/app/pages/cadastro/laudo/laudo.model.ts");
/* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
/* harmony import */ var _app_error_handler__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../app.error-handler */ "./src/app/app.error-handler.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};







var LaudoService = /** @class */ (function (_super) {
    __extends(LaudoService, _super);
    function LaudoService(http) {
        var _this = _super.call(this, http, "cadastros/laudo") || this;
        _this.filtro = new _laudo_model__WEBPACK_IMPORTED_MODULE_3__["LaudoFilter"]();
        return _this;
    }
    LaudoService.prototype.getByFiltro = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].service_url + "/api/v1/cadastros/laudo/getByFiltro", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_6__["ErrorHandler"].handleError));
    };
    LaudoService.prototype.getByFilter = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].service_url + "/api/v1/cadastros/laudo/getByFilter", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_6__["ErrorHandler"].handleError));
    };
    LaudoService.prototype.getArqLaudoDeposito = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].service_url + "/api/v1/cadastros/laudo/getArqLaudoDeposito", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_6__["ErrorHandler"].handleError));
    };
    LaudoService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpClient"] }
    ]; };
    LaudoService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpClient"]])
    ], LaudoService);
    return LaudoService;
}(app_shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_0__["BaseService"]));



/***/ })

}]);
//# sourceMappingURL=app-pages-cadastro-laudo-laudo-module.js.map