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

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/servico/servico-filter/servico-filter.component.html":
/*!***************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/servico/servico-filter/servico-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=\"servico-filter\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\n    <div class=\"modal-dialog\">\n        <div class=\"modal-content\">\n            <div class=\"modal-header\">\n                <h6 class=\"modal-title\">{{ 'titles.servico' | translate }}</h6>\n            </div>\n            <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\">\n                <div class=\"modal-body\">\n                    <div class=\"row\">\n                        <div class=\"col-lg-6 col-md-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"materialDe\">{{\n                                    \"labels.codigoServicoDe\" | translate\n                                    }}</label>\n                                <input\n                                        id=\"materialDe\"\n                                        name=\"materialDe\"\n                                        [(ngModel)]=\"service.filtro.materialIdDe\"\n                                        maxlength=\"20\"\n                                        class=\"form-control form-control-sm\"\n                                        type=\"text\"\n                                />\n                            </div>\n                        </div>\n                        <div class=\"col-lg-6 col-md-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"materialAte\">{{\n                                    \"labels.ate\" | translate\n                                    }}</label>\n                                <input\n                                        id=\"materialAte\"\n                                        name=\"materialAte\"\n                                        [(ngModel)]=\"service.filtro.materialIdAte\"\n                                        maxlength=\"20\"\n                                        class=\"form-control form-control-sm\"\n                                        type=\"text\"\n                                />\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-6 col-md-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"descrMaterDe\">{{\n                                    \"labels.descrMaterDe\" | translate\n                                    }}</label>\n                                <input\n                                        id=\"descrMaterDe\"\n                                        name=\"descrMaterDe\"\n                                        [(ngModel)]=\"service.filtro.descrMaterDe\"\n                                        maxlength=\"20\"\n                                        class=\"form-control form-control-sm\"\n                                        type=\"text\"\n                                />\n                            </div>\n                        </div>\n                        <div class=\"col-lg-6 col-md-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"descrmaterAte\">{{\n                                    \"labels.ate\" | translate\n                                    }}</label>\n                                <input\n                                        id=\"descrmaterAte\"\n                                        name=\"descrmaterAte\"\n                                        [(ngModel)]=\"service.filtro.descrmaterAte\"\n                                        maxlength=\"20\"\n                                        class=\"form-control form-control-sm\"\n                                        type=\"text\"\n                                />\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-6 col-md-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"fantasiaDe\">{{\n                                    \"labels.fantasiaDe\" | translate\n                                    }}</label>\n                                <input\n                                        id=\"fantasiaDe\"\n                                        name=\"fantasiaDe\"\n                                        [(ngModel)]=\"service.filtro.fantasiaDe\"\n                                        maxlength=\"20\"\n                                        class=\"form-control form-control-sm\"\n                                        type=\"text\"\n                                />\n                            </div>\n                        </div>\n                        <div class=\"col-lg-6 col-md-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"fantasiaDe\">{{\n                                    \"labels.ate\" | translate\n                                    }}</label>\n                                <input\n                                        id=\"fantasiaAte\"\n                                        name=\"fantasiaAte\"\n                                        [(ngModel)]=\"service.filtro.fantasiaAte\"\n                                        maxlength=\"20\"\n                                        class=\"form-control form-control-sm\"\n                                        type=\"text\"\n                                />\n                            </div>\n                        </div>\n                    </div>\n                </div>\n                <div class=\"modal-footer\">\n                    <button class=\"btn btn-success mr-1\" type=\"submit\">{{ 'buttons.pesquisar' | translate }}\n                    </button>\n                    <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">Sair</button>\n                </div>\n            </form>\n        </div>\n    </div>\n</div>\n\n");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/servico/servico-form/servico-form.component.html":
/*!***********************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/servico/servico-form/servico-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.materialId\"\n    [sisFormularioId]=\"constantes.sisFormularioId\">\n</app-menu-command-bar>\n\n<div class=\"row\">\n    <div class=\"col-lg-12\">\n        <div class=\"section-comand-bar\">\n            <div class=\"tab-content top\">\n                <!-- ABAS -->\n                <app-form-legenda></app-form-legenda>\n                <div class=\"tab-pane active show\" id=\"ge\">\n                    <form class=\"form\" #f=\"ngForm\" (ngSubmit)=\"onSubmit(f)\">\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\" |\n                                        translate}}</a>\n                                </li>\n                                <li class=\"nav-item\">\n                                    <a class=\"nav-link\" data-toggle=\"tab\" href=\"#ad\">{{\"labels.adicionais\" |\n                                        translate}}</a>\n                                </li>\n                            </ul>\n                        </div>\n                        <div class=\"tab-content top\">\n                            <!-- ABA DADOS -->\n                            <div class=\"tab-pane active show\" id=\"da\">\n                                <div class=\"row\">\n                                    <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"produto\"\n                                                [class.required]=\"funcoesService.isEdit(this.actionForm)\">{{'labels.codigo'\n                                                | translate}}</label>\n                                            <input id=\"produto\" name=\"produto\" [(ngModel)]=\"data.materialId\"\n                                                maxlength=\"6\" required=\"true\" class=\"form-control form-control-sm\"\n                                                type=\"text\" disabled>\n                                        </div>\n                                    </div>\n                                    <div class=\"col-lg-6 col-md-12\">\n                                        <label></label>\n                                        <div class=\"custom-control custom-checkbox\">\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-6 col-md-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"fantasia\" class=\"required\">{{'labels.fantasia' |\n                                                translate}}</label>\n                                            <input id=\"fantasia\" name=\"fantasia\" [(ngModel)]=\"data.fantasia\"\n                                                maxlength=\"25\" required=\"true\" class=\"form-control form-control-sm\"\n                                                type=\"text\" [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-6 col-md-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"descrMater\" class=\"required\">{{'labels.descricao' |\n                                                translate}}</label>\n                                            <input id=\"descrMater\" name=\"descrMater\" [(ngModel)]=\"data.descrMater\"\n                                                maxlength=\"50\" required=\"true\" class=\"form-control form-control-sm\"\n                                                type=\"text\" [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-2 col-md-4 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"unidade\" class=\"required\">{{\n                                                \"labels.unidade\" | translate\n                                                }}</label>\n                                            <app-combo-padrao id=\"unidade\" name=\"unidade\" [(ngModel)]=\"data.unidade\"\n                                                tabela=\"Unidade\" chave=\"Unidade\" descricao=\"Unidade\" ativos=\"true\"\n                                                required=\"true\" [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                            </app-combo-padrao>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\" *ngIf=\"tipoIntegracao13\">\n                                    <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"codIntegracao\">{{'labels.contaContabil' | translate}}</label>\n                                            <input id=\"codIntegracao\" name=\"codIntegracao\"\n                                                [(ngModel)]=\"data.codIntegracao\" maxlength=\"15\"\n                                                class=\"form-control form-control-sm\" type=\"text\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\" *ngIf=\"!tipoIntegracao13\">\n                                    <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <app-pesquisa-conta-contabil id=\"contaContabilId\" name=\"contaContabilId\"\n                                                [(ngModel)]=\"data.cContabil\" showCgcCpf=\"false\" showInscricao=\"false\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                            </app-pesquisa-conta-contabil>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"regCCusto\">{{\n                                                \"labels.regCCusto\" | translate\n                                                }}</label>\n                                            <app-combo-padrao id=\"regCCusto\" name=\"regCCusto\"\n                                                [(ngModel)]=\"data.regCCusto\" tabela=\"CentroCusto\" chave=\"RegCCusto\"\n                                                descricao=\"DescrCCusto\" ativos=\"true\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                            </app-combo-padrao>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"codHistPadrao\">{{\n                                                \"labels.codHistPadrao\" | translate\n                                                }}</label>\n                                            <app-combo-padrao id=\"codHistPadrao\" name=\"codHistPadrao\"\n                                                [(ngModel)]=\"data.codHistPadrao\" tabela=\"HistoricoPadrao\"\n                                                chave=\"CodHistPadrao\" descricao=\"DescrHistPadrao\" ativos=\"true\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                            </app-combo-padrao>\n                                        </div>\n                                    </div>\n                                </div>\n\n                                <div class=\"row\" [ngStyle]=\"{'margin-bottom': '4%'}\">\n                                    <div class=\"col-lg-6 col-md-6 col-md-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"especificacao\">{{\n                                                \"labels.especificacao\" | translate\n                                                }}</label>\n                                            <textarea [(ngModel)]=\"data.especificacao\" name=\"especificacao\"\n                                                class=\"form-control form-control-sm\" id=\"especificacao\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\" rows=\"3\"></textarea>\n                                        </div>\n                                    </div>\n                                </div>\n                            </div>\n                            <!-- ABA ADICIONAIS -->\n                            <div class=\"tab-pane\" id=\"ad\">\n                                <app-card-container tituloCard=\"produto\">\n                                    <div class=\"row\">\n                                        <div class=\"col-lg-3 col-md-4 col-sm-12\">\n                                            <input name=\"produto\" value=\"{{data.materialId}}\"\n                                                class=\"form-control form-control-sm\" type=\"text\" disabled>\n                                        </div>\n                                        <div class=\"col-lg-9 col-md-8 col-sm-12\">\n                                            <input name=\"fantasia\" value=\"{{data.fantasia}}\" maxlength=\"25\" disabled\n                                                class=\"form-control form-control-sm\" type=\"text\">\n                                        </div>\n                                    </div>\n                                </app-card-container>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"tipoMaterial\" class=\"required\">{{\n                                                \"labels.tipoMaterial\" | translate\n                                                }}</label>\n                                            <select id=\"tipoMaterial\" class=\"form-control form-control-sm\" required\n                                                name=\"tipoMaterial\" [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                                [(ngModel)]=\"data.tipoDeMaterialId\">\n                                                <option value=\"\">{{\"labels.selecione\" | translate}}</option>\n                                                <option [value]=\"c.tipoDeMaterialId\"\n                                                    *ngFor=\"let c of $tiposDeMaterial | async\">\n                                                    {{ c.descrTipoMater }}\n                                                </option>\n                                            </select>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"aliqIss\">{{'labels.aliqDeIss' | translate}}</label>\n                                            <input id=\"aliqIss\" name=\"aliqIss\" [(ngModel)]=\"data.aliqIss\" maxlength=\"4\"\n                                                class=\"form-control form-control-sm\" type=\"text\" currencyMask\n                                                [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 2 }\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                        </div>\n                                    </div>\n                                    <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"aliqTrib\">{{'labels.aliqDeTrib' | translate}}</label>\n                                            <input id=\"aliqTrib\" name=\"aliqTrib\" [(ngModel)]=\"data.aliqTrib\"\n                                                maxlength=\"4\" class=\"form-control form-control-sm\" type=\"text\"\n                                                currencyMask\n                                                [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 2 }\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-4 col-md-6 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"codGoverno\">{{'labels.codServico' | translate}}</label>\n                                            <input id=\"codGoverno\" name=\"codGoverno\" [(ngModel)]=\"data.codGoverno\"\n                                                maxlength=\"15\" class=\"form-control form-control-sm\" type=\"text\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-4 col-md-6 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"codTribServ\">{{'labels.codTribServ' | translate}}</label>\n                                            <input id=\"codTribServ\" name=\"codTribServ\" [(ngModel)]=\"data.codTribServ\"\n                                                maxlength=\"10\" class=\"form-control form-control-sm\" type=\"text\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-4 col-md-4 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"emsMaterial\">{{'labels.integracao' | translate}}</label>\n                                            <input id=\"emsMaterial\" name=\"emsMaterial\" [(ngModel)]=\"data.emsMaterial\"\n                                                maxlength=\"20\" class=\"form-control form-control-sm\" type=\"text\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-4 col-md-4 col-sm-12\"\n                                        *ngIf=\"funcoesService.isCreate(actionForm) || (funcoesService.isDetail(actionForm) && selectedOperacaoValE) || (funcoesService.isEdit(actionForm) && selectedOperacaoValE)\">\n                                        <label for=\"operacaoValE\">{{'labels.operacaoValE' | translate}}</label>\n                                        <app-combo-multi-operacao id=\"operacaoValE\" name=\"operacaoValE\" [origem]=\"'E'\"\n                                            [servico]=\"true\" [required]=\"true\"\n                                            [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                        </app-combo-multi-operacao>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-4 col-md-4 col-sm-12\"\n                                        *ngIf=\"funcoesService.isCreate(actionForm) || (funcoesService.isDetail(actionForm) && selectedOperacaoValE) || (funcoesService.isEdit(actionForm) && selectedOperacaoValS)\">\n                                        <label for=\"operacaoValS\">{{'labels.operacaoValS' | translate}}</label>\n                                        <app-combo-multi-operacao id=\"operacaoValS\" id=\"operacaoValS\"\n                                            name=\"operacaoValS\" [origem]=\"'S'\" [servico]=\"true\" [required]=\"true\"\n                                            [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                        </app-combo-multi-operacao>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-6 col-md-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"generoMaterialSped\"\n                                                class=\"required\">{{'labels.generoMaterialSped' | translate}}</label>\n                                            <app-combo-padrao id=\"generoMaterialSped\" name=\"generoMaterialSped\"\n                                                [(ngModel)]=\"data.generoMaterialSped\" tabela=\"GeneroMaterialSped\"\n                                                chave=\"GeneroMaterialSped\" required=\"true\" descricao=\"DescrGeneroSped\"\n                                                ativos=\"true\" [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                            </app-combo-padrao>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"antaqServico\">{{'labels.antaqServico' | translate}}</label>\n                                            <select [(ngModel)]=\"data.antaqServico\" class=\"form-control form-control-sm\"\n                                                id=\"antaqServico\" name=\"antaqServico\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                                data-title=\"{{ 'labels.antaqServico' | translate }}\">\n                                                <option value=\"\">{{ 'labels.selecione' | translate }}</option>\n                                                <option value=\"1\">Cesta de Serviço</option>\n                                                <option value=\"2\">Serviço de Cais</option>\n                                                <option value=\"3\">Serviço de Pátio</option>\n                                                <option value=\"4\">Serviço de Armazenagem</option>\n                                            </select>\n                                        </div>\n                                    </div>\n                                    <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"antaqFaixaTempo\">{{'labels.antaqFaixaTempo' |\n                                                translate}}</label>\n                                            <select [(ngModel)]=\"data.antaqFaixaTempo\"\n                                                class=\"form-control form-control-sm\" id=\"antaqFaixaTempo\"\n                                                name=\"antaqFaixaTempo\" [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                                data-title=\"{{ 'labels.antaqFaixaTempo' | translate }}\">\n                                                <option value=\"\">{{ 'labels.selecione' | translate }}</option>\n                                                <option value=\"1\">Faixa Isento de Cobrança</option>\n                                                <option value=\"2\">Faixa de 0 a 7 Dias</option>\n                                                <option value=\"3\">Faixa de 7 a 14 Dias</option>\n                                                <option value=\"4\">Faixa Superior a 14 Dias</option>\n                                            </select>\n                                        </div>\n                                    </div>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-12\">\n                                <span *ngIf=\"data.sisCampoAdds\">\n                                    <div *ngFor=\"let d of data.sisCampoAdds\" [class.col-lg-6]=\"!d.colunas\">\n                                        <app-campos-adicionais name=\"{{d.campo}}\" [sisCampoAdd]=\"d\"\n                                            [(ngModel)]=\"d.valorCampo\" [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                            [required]=\"d.obrigatorio === 'S'\"></app-campos-adicionais>\n                                    </div>\n                                </span>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-6 col-12\">\n                                <div class=\"form-group\">\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 mr-2\" (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    </div>\n</div>\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>");

/***/ }),

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

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL3BhZ2VzL2NhZGFzdHJvL3NlcnZpY28vc2Vydmljby1maWx0ZXIvc2Vydmljby1maWx0ZXIuY29tcG9uZW50LnNjc3MifQ== */");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ServicoFilterComponent", function() { return ServicoFilterComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _login_login_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _servico_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../servico.service */ "./src/app/pages/cadastro/servico/servico.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 ServicoFilterComponent = /** @class */ (function () {
    function ServicoFilterComponent(loginService, message, service) {
        this.loginService = loginService;
        this.message = message;
        this.service = service;
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.dataAtual = new Date();
        this.blockFields = false;
        this.filialId = loginService.getLogin().filialId;
    }
    ServicoFilterComponent.prototype.ngOnInit = function () {
    };
    ServicoFilterComponent.prototype.onSubmit = function (form) {
        if (!form.invalid) {
            jQuery("#servico-filter").modal("hide");
            this.filtrar.emit();
        }
    };
    ServicoFilterComponent.ctorParameters = function () { return [
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_1__["LoginService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"] },
        { type: _servico_service__WEBPACK_IMPORTED_MODULE_3__["ServicoService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], ServicoFilterComponent.prototype, "filtrar", void 0);
    ServicoFilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-servico-filter',
            template: __importDefault(__webpack_require__(/*! raw-loader!./servico-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/servico/servico-filter/servico-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./servico-filter.component.scss */ "./src/app/pages/cadastro/servico/servico-filter/servico-filter.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_login_login_service__WEBPACK_IMPORTED_MODULE_1__["LoginService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"],
            _servico_service__WEBPACK_IMPORTED_MODULE_3__["ServicoService"]])
    ], ServicoFilterComponent);
    return ServicoFilterComponent;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("div.c-btn.disabled {\n  background-color: #e9ecef !important;\n  opacity: 1;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvcGFnZXMvY2FkYXN0cm8vc2Vydmljby9zZXJ2aWNvLWZvcm0vQzpcXENvcnBvcmF0ZVxcQ29ycG9yYXRlV2ViRGVzZW52XFxfdW5pc29sdXRpb24vc3JjXFxhcHBcXHBhZ2VzXFxjYWRhc3Ryb1xcc2Vydmljb1xcc2Vydmljby1mb3JtXFxzZXJ2aWNvLWZvcm0uY29tcG9uZW50LnNjc3MiLCJzcmMvYXBwL3BhZ2VzL2NhZGFzdHJvL3NlcnZpY28vc2Vydmljby1mb3JtL3NlcnZpY28tZm9ybS5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLG9DQUFBO0VBQ0EsVUFBQTtBQ0NGIiwiZmlsZSI6InNyYy9hcHAvcGFnZXMvY2FkYXN0cm8vc2Vydmljby9zZXJ2aWNvLWZvcm0vc2Vydmljby1mb3JtLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiZGl2LmMtYnRuLmRpc2FibGVke1xyXG4gIGJhY2tncm91bmQtY29sb3I6ICNlOWVjZWYgIWltcG9ydGFudDtcclxuICBvcGFjaXR5OiAxO1xyXG59XHJcbiIsImRpdi5jLWJ0bi5kaXNhYmxlZCB7XG4gIGJhY2tncm91bmQtY29sb3I6ICNlOWVjZWYgIWltcG9ydGFudDtcbiAgb3BhY2l0eTogMTtcbn0iXX0= */");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProductTreeviewConfig", function() { return ProductTreeviewConfig; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ServicoFormComponent", function() { return ServicoFormComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _tipo_de_material_tipo_de_material_model__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../tipo-de-material/tipo-de-material.model */ "./src/app/pages/cadastro/tipo-de-material/tipo-de-material.model.ts");
/* harmony import */ var ngx_treeview__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ngx-treeview */ "./node_modules/ngx-treeview/src/index.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _login_login_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var _lote_lote_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../lote/lote.service */ "./src/app/pages/cadastro/lote/lote.service.ts");
/* harmony import */ var _tipo_de_material_tipo_de_material_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../tipo-de-material/tipo-de-material.service */ "./src/app/pages/cadastro/tipo-de-material/tipo-de-material.service.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 _grupo_cipp_grupo_cipp_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../grupo-cipp/grupo-cipp.service */ "./src/app/pages/cadastro/grupo-cipp/grupo-cipp.service.ts");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _servico_model__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../servico.model */ "./src/app/pages/cadastro/servico/servico.model.ts");
/* harmony import */ var _servico_constants__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../servico.constants */ "./src/app/pages/cadastro/servico/servico.constants.ts");
/* harmony import */ var _servico_service__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../servico.service */ "./src/app/pages/cadastro/servico/servico.service.ts");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};

















var ProductTreeviewConfig = /** @class */ (function (_super) {
    __extends(ProductTreeviewConfig, _super);
    function ProductTreeviewConfig() {
        var _this = _super !== null && _super.apply(this, arguments) || this;
        _this.hasAllCheckBox = true;
        _this.hasFilter = true;
        _this.hasCollapseExpand = true;
        _this.maxHeight = 200;
        return _this;
    }
    ProductTreeviewConfig = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])()
    ], ProductTreeviewConfig);
    return ProductTreeviewConfig;
}(ngx_treeview__WEBPACK_IMPORTED_MODULE_2__["TreeviewConfig"]));

var ServicoFormComponent = /** @class */ (function (_super) {
    __extends(ServicoFormComponent, _super);
    function ServicoFormComponent(router, messageService, activatedRoute, service, funcoesService, configuracao, loginService, loteService, tipoMaterialService, permissoesUtils, grupoCippService) {
        var _this = _super.call(this, new _servico_constants__WEBPACK_IMPORTED_MODULE_14__["ServicoConstants"](), funcoesService) || this;
        _this.router = router;
        _this.messageService = messageService;
        _this.activatedRoute = activatedRoute;
        _this.service = service;
        _this.funcoesService = funcoesService;
        _this.configuracao = configuracao;
        _this.loginService = loginService;
        _this.loteService = loteService;
        _this.tipoMaterialService = tipoMaterialService;
        _this.permissoesUtils = permissoesUtils;
        _this.grupoCippService = grupoCippService;
        _this.data = new _servico_model__WEBPACK_IMPORTED_MODULE_13__["Servico"]();
        _this.filtro = new _servico_model__WEBPACK_IMPORTED_MODULE_13__["ServicoFilter"]();
        _this.mensagens = [];
        _this.constantes = new _servico_constants__WEBPACK_IMPORTED_MODULE_14__["ServicoConstants"]();
        _this.target = _this.funcoesService.getTargetLocation();
        _this.blockFields = false;
        _this.tipoMaterial = new _tipo_de_material_tipo_de_material_model__WEBPACK_IMPORTED_MODULE_1__["TipoDeMaterial"]();
        _this.rows = [];
        _this.loadConfig = function () {
            if (_this.configuracao.isLoadConfig()) {
                _this.setMaterialId = _this.configuracao.lerConfig("CTR", "CodCadastroMat");
                _this.tipoIntegracao = _this.configuracao.lerConfig("UNI", "TipoIntegracao");
            }
        };
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    ServicoFormComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.isFlagServ = false;
        this.isFlagServ = this.funcoesService.isBoolean(this.data.flagServ);
        this.tipoMaterial = new _tipo_de_material_tipo_de_material_model__WEBPACK_IMPORTED_MODULE_1__["TipoDeMaterial"]();
        this.$tiposDeMaterial = this.tipoMaterialService.get();
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, this.permissoesUtils.getLibRotina(this.actionForm), function () {
            var id = _this.activatedRoute.snapshot.paramMap.get("id");
            if (id) {
                _this.service.getByServicoId(id).subscribe(function (resp) {
                    _this.data = resp;
                    if (_this.data.operacaoValE) {
                        _this.selectedOperacaoValE = _this.data.operacaoValE.split(',');
                    }
                    else {
                        _this.selectedOperacaoValE = [];
                    }
                    if (_this.data.operacaoValS) {
                        _this.selectedOperacaoValS = _this.data.operacaoValS.split(',');
                    }
                    else {
                        _this.selectedOperacaoValS = [];
                    }
                    _this.tipoMaterialService.getById(_this.data.tipoDeMaterialId).subscribe(function (data) {
                        _this.tipoMaterial = data;
                    });
                });
            }
            else {
                /**/
            }
            _this.configuracao.getConfig(_this.constantes.configs, _this.loadConfig);
        }, function () {
            _this.permissoesUtils.back();
        });
    };
    ServicoFormComponent.prototype.back = function () {
        this.router.navigate([this.target + "/cadastro/servico"]);
    };
    ServicoFormComponent.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_16__["EventEmitterService"].get("formError").emit(form);
            return;
        }
        this.data.flagServ = "S";
        this.data.flagResiduo = "N";
        this.data.tipoProduto = "S";
        this.data.logRotina = "Serviços";
        this.service
            .save(this.data, this.funcoesService.isEdit(this.actionForm))
            .subscribe(function (result) {
            _this.mensagens = _this.messageService.validationResult(result.validationResult);
            if (result.validationResult != null && !result.validationResult.isValid) {
                _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_16__["EventEmitterService"].get("backError").emit(_this.mensagens);
            }
            else {
                if (create) {
                    _this.messageService.saveSuccess("titles.servico");
                    _this.data = new _servico_model__WEBPACK_IMPORTED_MODULE_13__["Servico"]();
                    _this.router.navigate([_this.target + "/cadastro/servico"]);
                }
                else {
                    _this.messageService.saveSuccess("titles.servico");
                    _this.back();
                }
            }
        });
    };
    ServicoFormComponent.prototype.saveAndCreate = function (form) {
        this.onSubmit(form, true);
    };
    ServicoFormComponent.prototype.trataOperacao = function (selectedItems) {
        this.data.operacaoValE = selectedItems;
    };
    ServicoFormComponent.prototype.trataOperacaoRetorno = function (selectedItems) {
        this.data.operacaoValS = selectedItems;
    };
    ServicoFormComponent.prototype.edit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
            if (!!(_this.data.materialId)) {
                _this.router.navigate([_this.target + "/cadastro/servico/edit/" + _this.data.materialId]);
            }
        });
    };
    ServicoFormComponent.prototype.getCamposAdicionais = function () {
        var _this = this;
        this.funcoesService.camposAdicionais
            .get(this.constantes.sisFormularioId)
            .subscribe(function (data) {
            _this.data.sisCampoAdds = data;
        });
    };
    Object.defineProperty(ServicoFormComponent.prototype, "tipoIntegracao13", {
        get: function () {
            if (!this.tipoIntegracao)
                return false;
            return (this.tipoIntegracao === "1") || (this.tipoIntegracao === "3");
        },
        enumerable: true,
        configurable: true
    });
    ServicoFormComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_3__["ActivatedRoute"] },
        { type: _servico_service__WEBPACK_IMPORTED_MODULE_15__["ServicoService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"] },
        { type: _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_9__["ConfiguracaoFacade"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_6__["LoginService"] },
        { type: _lote_lote_service__WEBPACK_IMPORTED_MODULE_7__["LoteService"] },
        { type: _tipo_de_material_tipo_de_material_service__WEBPACK_IMPORTED_MODULE_8__["TipoDeMaterialService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_10__["PermissoesUtilsService"] },
        { type: _grupo_cipp_grupo_cipp_service__WEBPACK_IMPORTED_MODULE_11__["GrupoCippService"] }
    ]; };
    ServicoFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-servico-form',
            template: __importDefault(__webpack_require__(/*! raw-loader!./servico-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/servico/servico-form/servico-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./servico-form.component.scss */ "./src/app/pages/cadastro/servico/servico-form/servico-form.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_3__["ActivatedRoute"],
            _servico_service__WEBPACK_IMPORTED_MODULE_15__["ServicoService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"],
            _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_9__["ConfiguracaoFacade"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_6__["LoginService"],
            _lote_lote_service__WEBPACK_IMPORTED_MODULE_7__["LoteService"],
            _tipo_de_material_tipo_de_material_service__WEBPACK_IMPORTED_MODULE_8__["TipoDeMaterialService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_10__["PermissoesUtilsService"],
            _grupo_cipp_grupo_cipp_service__WEBPACK_IMPORTED_MODULE_11__["GrupoCippService"]])
    ], ServicoFormComponent);
    return ServicoFormComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_12__["BasePermissoes"]));



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL3BhZ2VzL2NhZGFzdHJvL3NlcnZpY28vc2Vydmljby1pbmRleC9zZXJ2aWNvLWluZGV4LmNvbXBvbmVudC5zY3NzIn0= */");

/***/ }),

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

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











var ServicoIndexComponent = /** @class */ (function (_super) {
    __extends(ServicoIndexComponent, _super);
    function ServicoIndexComponent(service, router, datatables, message, funcoes, loginService, messageService, permissoesUtils) {
        var _this = _super.call(this, new _servico_constants__WEBPACK_IMPORTED_MODULE_9__["ServicoConstants"](), funcoes) || this;
        _this.service = service;
        _this.router = router;
        _this.datatables = datatables;
        _this.message = message;
        _this.funcoes = funcoes;
        _this.loginService = loginService;
        _this.messageService = messageService;
        _this.permissoesUtils = permissoesUtils;
        _this.data = new _servico_model__WEBPACK_IMPORTED_MODULE_8__["Servico"]();
        _this.constantes = new _servico_constants__WEBPACK_IMPORTED_MODULE_9__["ServicoConstants"]();
        _this.target = _this.funcoes.getTargetLocation();
        _this.mensagens = [];
        router.events.subscribe(function (event) {
            var params = _this.funcoes.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    ServicoIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () {
            if (!_this.loginService.isTokenExpired()) {
                jQuery("#servico-filter").modal("show");
            }
        }, function () {
            _this.permissoesUtils.back();
        }, true);
        if (this.funcoesService.isUndefinedOrNull(this.service.filtro)) {
            this.service.filtro = new _servico_model__WEBPACK_IMPORTED_MODULE_8__["ServicoFilter"]();
        }
    };
    ServicoIndexComponent.prototype.filtrar = function () {
        jQuery("#servico-filter").modal("show");
    };
    ServicoIndexComponent.prototype.executaFiltro = function (event) {
        this.refresh();
    };
    ServicoIndexComponent.prototype.refresh = function () {
        var _this = this;
        this.service.getByFilter(this.service.filtro).subscribe(function (resp) {
            var columns = [
                _this.datatables.getDataString("materialId", "codigo", "10%"),
                _this.datatables.getDataString("fantasia", "fantasia"),
                _this.datatables.getDataString("descrMater", "descricao"),
                _this.datatables.getDataString("unidade", "unidade")
            ];
            _this.datatables.datatable("dtServico", columns, resp, function (aData) {
                _this.data = aData;
            });
        });
    };
    ServicoIndexComponent.prototype.create = function () {
        this.router.navigate([this.target + "/cadastro/servico/create"]);
    };
    ServicoIndexComponent.prototype.edit = function () {
        if (!!(this.data.materialId)) {
            this.router.navigate([this.target + "/cadastro/servico/edit/" + this.data.materialId]);
        }
    };
    ServicoIndexComponent.prototype.detail = function () {
        if (!!(this.data.materialId)) {
            this.router.navigate([this.target + "/cadastro/servico/detail/" + this.data.materialId]);
        }
    };
    ServicoIndexComponent.prototype.remove = function () {
        var _this = this;
        if (!!(this.data.materialId)) {
            this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () {
                _this.messageService.removeConfirm(function () {
                    _this.service.remove(_this.data).subscribe(function (result) {
                        _this.mensagens = _this.messageService.validationResult(result.validationResult);
                        if (!result.validationResult.isValid) {
                            _this.messageService.warning("titles.servico", _this.mensagens[0]);
                        }
                        else {
                            _this.datatables.remove("dtServico");
                        }
                    });
                });
            });
        }
    };
    ServicoIndexComponent.prototype.properties = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 6, function () {
            _super.prototype.properties.call(_this, _this.data);
        });
    };
    ServicoIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 7, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    ServicoIndexComponent.prototype.print = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 5, function () {
            _this.constantes.paramRelatorio = _this.service.filtro;
            _super.prototype.print.call(_this);
        });
    };
    ServicoIndexComponent.ctorParameters = function () { return [
        { type: _servico_service__WEBPACK_IMPORTED_MODULE_10__["ServicoService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"] },
        { type: _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__["DatatablesService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_6__["LoginService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"] }
    ]; };
    ServicoIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-servico-index',
            template: __importDefault(__webpack_require__(/*! raw-loader!./servico-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/servico/servico-index/servico-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./servico-index.component.scss */ "./src/app/pages/cadastro/servico/servico-index/servico-index.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_servico_service__WEBPACK_IMPORTED_MODULE_10__["ServicoService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"],
            _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__["DatatablesService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_6__["LoginService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"]])
    ], ServicoIndexComponent);
    return ServicoIndexComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_1__["BasePermissoes"]));



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ServicoConstants", function() { return ServicoConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var ServicoConstants = /** @class */ (function () {
    function ServicoConstants() {
        this.sisFormularioId = 90053;
        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" }
        ];
        this.sisSistemaId = "CAD";
        this.nomeForm = "titles.servico";
        this.reportId = "CAD0222";
        this.reportTitulo = { "titulo": "Serviços", "subTitulo": "" };
        this.tabela = "Materiais";
        this.configs = [];
        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' }
        ];
        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.configs = [
            { sistema: "STO", parametros: ["NumDecCalc20", "NumDecCalcOutros", "QtDigFatorCorrecao20", "QtDigFatorCorrecao"] },
            { sistema: "CTR", parametros: ["CodCadastroMat"] },
            { sistema: "MAT", parametros: ["TamCodigo"] },
            { sistema: "UNI", parametros: ["TipoIntegracao"] },
        ];
    }
    return ServicoConstants;
}());



/***/ }),

/***/ "./src/app/pages/cadastro/servico/servico.model.ts":
/*!*********************************************************!*\
  !*** ./src/app/pages/cadastro/servico/servico.model.ts ***!
  \*********************************************************/
/*! exports provided: Servico, ServicoFilter */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Servico", function() { return Servico; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ServicoFilter", function() { return ServicoFilter; });
/* 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 Servico = /** @class */ (function (_super) {
    __extends(Servico, _super);
    function Servico() {
        var _this = _super.call(this) || this;
        _this.flagAtivo = 'N';
        _this.flagAtivo = "S";
        _this.tipoDeMaterialId = "";
        return _this;
    }
    return Servico;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));

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



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ServicoModule", function() { return ServicoModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/fesm5/common.js");
/* harmony import */ var _shared_shared_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../shared/shared.module */ "./src/app/shared/shared.module.ts");
/* harmony import */ var _servico_routing__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./servico.routing */ "./src/app/pages/cadastro/servico/servico.routing.ts");
/* harmony import */ var _servico_index_servico_index_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./servico-index/servico-index.component */ "./src/app/pages/cadastro/servico/servico-index/servico-index.component.ts");
/* harmony import */ var _servico_form_servico_form_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./servico-form/servico-form.component */ "./src/app/pages/cadastro/servico/servico-form/servico-form.component.ts");
/* harmony import */ var _servico_filter_servico_filter_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./servico-filter/servico-filter.component */ "./src/app/pages/cadastro/servico/servico-filter/servico-filter.component.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};







var ServicoModule = /** @class */ (function () {
    function ServicoModule() {
    }
    ServicoModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            declarations: [_servico_index_servico_index_component__WEBPACK_IMPORTED_MODULE_4__["ServicoIndexComponent"], _servico_form_servico_form_component__WEBPACK_IMPORTED_MODULE_5__["ServicoFormComponent"], _servico_filter_servico_filter_component__WEBPACK_IMPORTED_MODULE_6__["ServicoFilterComponent"]],
            imports: [
                _angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"],
                _shared_shared_module__WEBPACK_IMPORTED_MODULE_2__["SharedModule"],
                _servico_routing__WEBPACK_IMPORTED_MODULE_3__["ServicoRouting"]
            ]
        })
    ], ServicoModule);
    return ServicoModule;
}());



/***/ }),

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

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





var MRoutes = [
    {
        path: "",
        component: _servico_index_servico_index_component__WEBPACK_IMPORTED_MODULE_3__["ServicoIndexComponent"],
        data: { breadcrumb: "servico", formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index } }
    },
    {
        path: "create",
        component: _servico_form_servico_form_component__WEBPACK_IMPORTED_MODULE_4__["ServicoFormComponent"],
        data: {
            breadcrumb: "servico",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].create }
        }
    },
    {
        path: "edit/:id",
        component: _servico_form_servico_form_component__WEBPACK_IMPORTED_MODULE_4__["ServicoFormComponent"],
        data: {
            breadcrumb: "servico",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].edit }
        }
    },
    {
        path: "detail/:id",
        component: _servico_form_servico_form_component__WEBPACK_IMPORTED_MODULE_4__["ServicoFormComponent"],
        data: {
            breadcrumb: "servico",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].detail }
        }
    }
];
var ServicoRouting = /** @class */ (function () {
    function ServicoRouting() {
    }
    ServicoRouting = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"].forChild(MRoutes)],
            exports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"]]
        })
    ], ServicoRouting);
    return ServicoRouting;
}());



/***/ }),

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

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







var ServicoService = /** @class */ (function (_super) {
    __extends(ServicoService, _super);
    function ServicoService(http) {
        var _this = _super.call(this, http, "cadastros/servico") || this;
        _this.http = http;
        _this.filtro = new _servico_model__WEBPACK_IMPORTED_MODULE_6__["ServicoFilter"]();
        return _this;
    }
    ServicoService.prototype.getByServicoId = function (materialId) {
        return this.http
            .get(_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].service_url + "/api/v1/cadastros/servico/getByServicoId/" + materialId)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    ServicoService.prototype.getByFilter = function (filter) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].service_url + "/api/v1/cadastros/servico/getByFiltroServico", filter)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    ServicoService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"] }
    ]; };
    ServicoService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"]])
    ], ServicoService);
    return ServicoService;
}(_shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_5__["BaseService"]));



/***/ }),

/***/ "./src/app/pages/cadastro/tipo-de-material/tipo-de-material.model.ts":
/*!***************************************************************************!*\
  !*** ./src/app/pages/cadastro/tipo-de-material/tipo-de-material.model.ts ***!
  \***************************************************************************/
/*! exports provided: TipoDeMaterial, TipoDeMaterialFilter */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TipoDeMaterial", function() { return TipoDeMaterial; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TipoDeMaterialFilter", function() { return TipoDeMaterialFilter; });
/* 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 TipoDeMaterial = /** @class */ (function (_super) {
    __extends(TipoDeMaterial, _super);
    function TipoDeMaterial() {
        var _this = _super.call(this) || this;
        _this.flagAnalise = "N";
        _this.flagAtivo = "S";
        _this.flagCaract = "N";
        _this.flagInventario = "N";
        _this.flagLote = "N";
        _this.flagMapa = "N";
        _this.flagMob = "N";
        _this.flagPalm = "N";
        _this.flagPcp = "N";
        _this.flagPed = "N";
        _this.flagPesa = "N";
        _this.flagPregao = "N";
        _this.contaSintetica = "N";
        _this.flagWeb = "N";
        _this.tipoGranel = "";
        _this.tipoMaterialSpedId = "";
        _this.tipoCusto = "";
        return _this;
    }
    return TipoDeMaterial;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));

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



/***/ }),

/***/ "./src/app/pages/cadastro/tipo-de-material/tipo-de-material.service.ts":
/*!*****************************************************************************!*\
  !*** ./src/app/pages/cadastro/tipo-de-material/tipo-de-material.service.ts ***!
  \*****************************************************************************/
/*! exports provided: TipoDeMaterialService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TipoDeMaterialService", function() { return TipoDeMaterialService; });
/* 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 app_pages_cadastro_tipo_de_material_tipo_de_material_model__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/pages/cadastro/tipo-de-material/tipo-de-material.model */ "./src/app/pages/cadastro/tipo-de-material/tipo-de-material.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 TipoDeMaterialService = /** @class */ (function (_super) {
    __extends(TipoDeMaterialService, _super);
    function TipoDeMaterialService(http) {
        var _this = _super.call(this, http, "cadastros/tipoDeMaterial") || this;
        _this.filter = new app_pages_cadastro_tipo_de_material_tipo_de_material_model__WEBPACK_IMPORTED_MODULE_3__["TipoDeMaterialFilter"]();
        return _this;
    }
    TipoDeMaterialService.prototype.getList = function (filter) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].service_url + "/api/v1/cadastros/tipoDeMaterial/listar", filter)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_6__["ErrorHandler"].handleError));
    };
    TipoDeMaterialService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpClient"] }
    ]; };
    TipoDeMaterialService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpClient"]])
    ], TipoDeMaterialService);
    return TipoDeMaterialService;
}(app_shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_0__["BaseService"]));



/***/ })

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