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

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/colaborador/colaborador-filter/colaborador-filter.component.html":
/*!***************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/colaborador/colaborador-filter/colaborador-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=\"colaborador-filter-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\r\n    <div class=\"modal-dialog\">\r\n        <div class=\"modal-content\">\r\n            <div class=\"modal-header\">\r\n                <h6 class=\"modal-title\">{{ 'titles.pesquisaColaborador' | translate }}</h6>\r\n            </div>\r\n            <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\">\r\n                <div class=\"modal-body\">\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"codColaborador\">{{'labels.id' | translate}}</label>\r\n                                <input id=\"codColaborador\"\r\n                                       name=\"codColaborador\"\r\n                                       class=\"form-control form-control-sm\" type=\"text\"\r\n                                       [(ngModel)]=\"service.filtro.colaboradorId\">\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-6 col-md-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"nomeDe\">{{'labels.nomeDe' | translate}}</label>\r\n                                <input id=\"nomeDe\"\r\n                                       name=\"nomeDe\"\r\n                                       class=\"form-control form-control-sm\" type=\"text\"\r\n                                       [(ngModel)]=\"service.filtro.nomeDe\">\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"col-lg-6 col-md-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"nomeAte\">{{'labels.nomeAte' | translate}}</label>\r\n                                <input id=\"nomeAte\"\r\n                                       name=\"nomeAte\"\r\n                                       class=\"form-control form-control-sm\" type=\"text\"\r\n                                       [(ngModel)]=\"service.filtro.nomeAte\">\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"cpf\">{{'labels.cpf' | translate}}</label>\r\n                                <input id=\"cpf\"\r\n                                       name=\"cpf\"\r\n                                       class=\"form-control form-control-sm\" type=\"text\"\r\n                                       [(ngModel)]=\"service.filtro.cpf\">\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-6 col-md-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"tipoDeDpto\">{{'labels.tipoDeDpto' | translate}}</label>\r\n                                <app-combo-padrao \r\n                                    name=\"tipoDeDpto\" \r\n                                    id=\"tipoDeDpto\" \r\n                                    chave=\"CodDepto\"\r\n                                    descricao=\"DescrDepto\"\r\n                                    ativo=\"true\"\r\n                                    tabela=\"Departamentos\"                                    \r\n                                    [(ngModel)]=\"service.filtro.departamentoId\">\r\n                                </app-combo-padrao>   \r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n                <div class=\"modal-footer\">\r\n                    <button class=\"btn btn-success mr-1\" type=\"submit\">{{ 'buttons.pesquisar' | translate }}\r\n                    </button>\r\n                    <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">Sair</button>\r\n                </div>\r\n            </form>\r\n        </div>\r\n    </div>\r\n</div>\r\n");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/colaborador/colaborador-form/colaborador-form.component.html":
/*!***********************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/colaborador/colaborador-form/colaborador-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.colaboradorId\"\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            <app-form-legenda></app-form-legenda>\n            <div class=\"card-body widget-body\">\n                <form class=\"form\" #f=\"ngForm\" (ngSubmit)=\"onSubmit(f)\">\n                    <app-validacoes></app-validacoes>\n                    <div class=\"row\">\n                        <div class=\"col-lg-2\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"colaboradorId\">{{'labels.id' | translate}}</label>\n                                <input id=\"colaboradorId\" name=\"colaboradorId\" [(ngModel)]=\"data.colaboradorId\"\n                                    class=\"form-control form-control-sm\" type=\"text\" disabled required\n                                    data-title=\"{{'labels.colaboradorId' | translate}}\">\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-6\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"nome\" class=\"required\">{{'labels.nome' | translate}}</label>\n                                <input id=\"nome\" name=\"nome\" [(ngModel)]=\"data.nome\" maxlength=\"50\"\n                                    class=\"form-control form-control-sm\" type=\"text\"\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\" required\n                                    data-title=\"{{'labels.nome' | translate}}\">\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-4\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"cargo\">{{'labels.cargo' | translate}}</label>\n                                <input id=\"cargo\" name=\"cargo\" [(ngModel)]=\"data.cargo\" maxlength=\"25\"\n                                    class=\"form-control form-control-sm\" type=\"text\"\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                    data-title=\"{{'labels.cargo' | translate}}\">\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-4\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"tipoColaborador\" class=\"required\">{{'labels.tipoColaborador' |\n                                    translate}}</label>\n                                <app-combo-padrao name=\"tipoColaborador\" id=\"tipoColaborador\" chave=\"TipoColab\"\n                                    descricao=\"DescrTipoColab\" ativo=\"true\" tabela=\"TipoColaborador\" required\n                                    [(ngModel)]=\"data.tipoColaboradorId\"\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                </app-combo-padrao>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-4\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"departamento\" class=\"required\">{{'labels.departamento' | translate}}</label>\n                                <app-combo-padrao name=\"departamento\" id=\"departamento\" chave=\"CodDepto\"\n                                    descricao=\"DescrDepto\" ativo=\"true\" tabela=\"Departamentos\" required\n                                    [(ngModel)]=\"data.departamentoId\" [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                </app-combo-padrao>\n                            </div>\n                        </div>\n                    </div>\n\n                    <div class=\"row\">\n                        <div class=\"col-lg-5\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"endereco\">{{'labels.endereco' | translate}}</label>\n                                <input id=\"endereco\" name=\"endereco\" [(ngModel)]=\"data.endereco\" maxlength=\"40\"\n                                    class=\"form-control form-control-sm\" type=\"text\"\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                    data-title=\"{{'labels.endereco' | translate}}\">\n                            </div>\n                        </div>\n                        <div class=\"col-lg-3\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"complemento\">{{'labels.complemento' | translate}}</label>\n                                <input id=\"complemento\" name=\"complEndereco\" [(ngModel)]=\"data.complEndereco\"\n                                    maxlength=\"20\" class=\"form-control form-control-sm\" type=\"text\"\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                    data-title=\"{{'labels.complEndereco' | translate}}\">\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-5\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"bairro\">{{'labels.bairro' | translate}}</label>\n                                <input id=\"bairro\" name=\"bairro\" [(ngModel)]=\"data.bairro\"\n                                    class=\"form-control form-control-sm\" maxlength=\"25\" type=\"text\"\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                    data-title=\"{{'labels.bairro' | translate}}\">\n                            </div>\n                        </div>\n                        <div class=\"col-lg-3\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"estado\">{{'labels.estado' | translate}}</label>\n                                <app-combo-padrao name=\"estado\" id=\"estado\" chave=\"Estado\" descricao=\"Estado\"\n                                    ativo=\"true\" tabela=\"Estados\" required=\"false\" [(ngModel)]=\"data.estado\"\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                </app-combo-padrao>\n                            </div>\n                        </div>\n                    </div>\n\n                    <div class=\"row\">\n                        <div class=\"col-lg-5\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"municipio\">{{'labels.municipio' | translate}}</label>\n                                <app-combo-municipio id=\"municipio\" name=\"municipioId\" [(ngModel)]=\"data.municipio\"\n                                    [estadoId]=\"data.estado\" [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                </app-combo-municipio>\n                            </div>\n                        </div>\n                        <div class=\"col-lg-3\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"cep\">{{'labels.cep' | translate}}</label>\n                                <input id=\"cep\" name=\"cep\" [(ngModel)]=\"data.cep\" class=\"form-control form-control-sm\"\n                                    maxlength=\"9\" type=\"text\" [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                    data-title=\"{{'labels.cep' | translate}}\">\n                            </div>\n                        </div>\n                    </div>\n\n                    <div class=\"row\">\n                        <div class=\"col-lg-1\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"ddd\">{{'labels.ddd' | translate}}</label>\n                                <input id=\"ddd\" name=\"ddd\" [(ngModel)]=\"data.ddd\" class=\"form-control form-control-sm\"\n                                    maxlength=\"6\" type=\"text\" [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                    data-title=\"{{'labels.ddd' | translate}}\">\n                            </div>\n                        </div>\n                        <div class=\"col-lg-2\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"telefone1\">{{'labels.telefone1' | translate}}</label>\n                                <input id=\"telefone1\" name=\"telefone1\" [(ngModel)]=\"data.telefone1\"\n                                    class=\"form-control form-control-sm\" type=\"text\" maxlength=\"9\"\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\">\n                            </div>\n                        </div>\n                        <div class=\"col-lg-2\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"complTel1\"></label>\n                                <input id=\"complTel1\" name=\"complTel1\" [(ngModel)]=\"data.complTel1\" maxlength=\"20\"\n                                    class=\"form-control form-control-sm\" maxlength=\"20\" type=\"text\"\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                    data-title=\"{{'labels.complTel1' | translate}}\">\n                            </div>\n                        </div>\n                        <div class=\"col-lg-3\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"ramal\">{{'labels.ramal' | translate}}</label>\n                                <input id=\"ramal\" name=\"ramal\" [(ngModel)]=\"data.ramal\"\n                                    class=\"form-control form-control-sm\" type=\"text\"\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                    data-title=\"{{'labels.ramal' | translate}}\">\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-1\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"ddd\"></label>\n                            </div>\n                        </div>\n                        <div class=\"col-lg-2\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"telefone2\"></label>\n                                <input id=\"telefone2\" name=\"telefone2\" [(ngModel)]=\"data.telefone2\" maxlength=\"9\"\n                                    class=\"form-control form-control-sm\" type=\"text\"\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\">\n                            </div>\n                        </div>\n                        <div class=\"col-lg-2\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"complTel2\"></label>\n                                <input id=\"complTel2\" name=\"complTel2\" [(ngModel)]=\"data.complTel2\" maxlength=\"20\"\n                                    class=\"form-control form-control-sm\" type=\"text\"\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\">\n                            </div>\n                        </div>\n                        <div class=\"col-lg-3\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"cpf\" class=\"required\">{{'labels.cpf' | translate}}</label>\n                                <input id=\"cpf\" name=\"cpf\" [(ngModel)]=\"data.cpf\" class=\"form-control form-control-sm\"\n                                    type=\"text\" [disabled]=\"funcoesService.isDetail(actionForm)\" required\n                                    data-title=\"{{'labels.cpf' | translate}}\" mask=\"000.000.000-00\"\n                                    (blur)=\"validaCpfCnpj()\">\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-8\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"email\">{{'labels.email' | translate}}</label>\n                                <input id=\"email\" name=\"email\" [(ngModel)]=\"data.email\"\n                                    class=\"form-control form-control-sm\" type=\"text\"\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                    data-title=\"{{'labels.email' | translate}}\">\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-8\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"assinatura\">{{'labels.assinatura' | translate}}</label>\n                                <div class=\"custom-file\">\n                                    <input type=\"file\" class=\"custom-file-input campo\" id=\"assinatura\" name=\"assinatura\"\n                                        (change)=\"fileChange($event)\" accept=\".png, .jpg, .jpeg\"\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                    <label class=\"custom-file-label\" for=\"assinatura\"\n                                        [class.disabled]=\"funcoesService.isDetail(actionForm)\">\n                                        <span *ngIf=\"!!fileName\">{{fileName['assinatura']}}</span>\n                                    </label>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\" col-2\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"assinatura\">&nbsp;</label>\n                                <div class=\"input-group\">\n                                    <button class=\"btn btn-secondary mr-2\" type=\"button\"\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                        (click)=\"deleteFile('assinatura')\"> Excluir\n                                    </button>\n                                </div>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <div class=\"custom-control custom-checkbox\">\n                                    <input id=\"flagAmbienteHomologacao\" name=\"flagAmbienteHomologacao\"\n                                        [ngModel]=\"data.flagAmbienteHomologacao==='S'\"\n                                        (ngModelChange)=\"data.flagAmbienteHomologacao=$event?'S':'N'\"\n                                        class=\"custom-control-input checkbox-success\" type=\"checkbox\"\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\" />\n                                    <label class=\"custom-control-label\"\n                                        for=\"flagAmbienteHomologacao\">{{'labels.flagAmbienteHomologacao' |\n                                        translate}}</label>\n                                </div>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-4\">\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\" (click)=\"saveAndCreate(f)\" type=\"button\"\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\">{{ 'buttons.salvarNovo' |\n                                    translate\n                                    }}</button>\n                            </div>\n                        </div>\n                    </div>\n                </form>\n            </div>\n        </div>\n    </div>\n</div>\n\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/colaborador/colaborador-index/colaborador-index.component.html":
/*!*************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/colaborador/colaborador-index/colaborador-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.colaboradorId\"\n                      [sisFormularioId]=\"constantes.sisFormularioId\">\n</app-menu-command-bar>\n\n<div class=\"section-comand-bar\">\n    <table id=\"dtColaborador\" 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-colaborador-filter (filtrar)=\"executaFiltro()\"></app-colaborador-filter>\n");

/***/ }),

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

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



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ColaboradorFormComponent", function() { return ColaboradorFormComponent; });
/* harmony import */ var app_pages_cadastro_colaborador_colaborador_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/pages/cadastro/colaborador/colaborador.service */ "./src/app/pages/cadastro/colaborador/colaborador.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 app_pages_cadastro_colaborador_colaborador_model__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/pages/cadastro/colaborador/colaborador.model */ "./src/app/pages/cadastro/colaborador/colaborador.model.ts");
/* 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 _colaborador_constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../colaborador.constants */ "./src/app/pages/cadastro/colaborador/colaborador.constants.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _shared_services_funcoes_cpf_cnpj_cpf_cnpj_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../../shared/services/funcoes/cpf-cnpj/cpf-cnpj.service */ "./src/app/shared/services/funcoes/cpf-cnpj/cpf-cnpj.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 ColaboradorFormComponent = /** @class */ (function (_super) {
    __extends(ColaboradorFormComponent, _super);
    function ColaboradorFormComponent(router, messageService, activatedRoute, colaboradorService, funcoesService, permissoesUtils, cpfCnpjService) {
        var _this = _super.call(this, new _colaborador_constants__WEBPACK_IMPORTED_MODULE_5__["ColaboradorConstants"](), funcoesService) || this;
        _this.router = router;
        _this.messageService = messageService;
        _this.activatedRoute = activatedRoute;
        _this.colaboradorService = colaboradorService;
        _this.funcoesService = funcoesService;
        _this.permissoesUtils = permissoesUtils;
        _this.cpfCnpjService = cpfCnpjService;
        _this.data = new app_pages_cadastro_colaborador_colaborador_model__WEBPACK_IMPORTED_MODULE_2__["Colaborador"]();
        _this.mensagens = [];
        _this.constantes = new _colaborador_constants__WEBPACK_IMPORTED_MODULE_5__["ColaboradorConstants"]();
        _this.target = _this.funcoesService.getTargetLocation();
        _this.fileName = [];
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    ColaboradorFormComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, this.permissoesUtils.getLibRotina(this.actionForm), function () {
            var id = _this.activatedRoute.snapshot.paramMap.get("id");
            if (id) {
                _this.colaboradorService.getById(id).subscribe(function (resp) {
                    _this.data = resp;
                    if (_this.data["assinatura"]) {
                        _this.fileName["assinatura"] = _this.data["assinatura"];
                    }
                });
            }
            else {
                _this.data = new app_pages_cadastro_colaborador_colaborador_model__WEBPACK_IMPORTED_MODULE_2__["Colaborador"]();
            }
        }, function () {
            _this.permissoesUtils.back();
        });
    };
    ColaboradorFormComponent.prototype.onSubmit = function (form, create) {
        var _this = this;
        if (create === void 0) { create = false; }
        _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_7__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        else if (!this.validaCpfCnpj()) {
            return;
        }
        this.data.logRotina = "Manutenção de Colaborador";
        this.colaboradorService
            .save(this.data, this.funcoesService.isEdit(this.actionForm))
            .subscribe(function (result) {
            _this.mensagens = _this.messageService.validationResult(result.validationResult);
            if (!result.validationResult.isValid) {
                _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_7__["EventEmitterService"].get("backError").emit(_this.mensagens);
            }
            else {
                _this.messageService.saveSuccess("titles.colaborador");
                if (create) {
                    _this.data = new app_pages_cadastro_colaborador_colaborador_model__WEBPACK_IMPORTED_MODULE_2__["Colaborador"]();
                    _this.router.navigate([_this.target + "/cadastro/colaborador/create"]);
                }
                else {
                    _this.back();
                }
            }
        });
    };
    ColaboradorFormComponent.prototype.edit = function () {
        this.router.navigate([this.target + "/cadastro/colaborador/edit/" + this.data.colaboradorId]);
    };
    ColaboradorFormComponent.prototype.saveAndCreate = function (form) {
        this.onSubmit(form, true);
    };
    ColaboradorFormComponent.prototype.back = function () {
        this.router.navigate([this.target + "/cadastro/colaborador"]);
    };
    ColaboradorFormComponent.prototype.fileChange = function ($event) {
        this.readThis($event.target);
    };
    ColaboradorFormComponent.prototype.readThis = function (inputValue) {
        var _this = this;
        var file = inputValue.files[0];
        var myReader = new FileReader();
        myReader.onloadend = function (e) {
            _this.data["assinaturaB64"] = myReader.result;
            _this.data["assinatura"] = file.name;
            _this.fileName["assinatura"] = "C:\\fakepath\\" + file.name;
        };
        myReader.readAsDataURL(file);
    };
    ColaboradorFormComponent.prototype.deleteFile = function (campo) {
        this.data[campo] = null;
        this.fileName[campo] = "";
    };
    ColaboradorFormComponent.prototype.validaCpfCnpj = function () {
        var cpf = this.data.cpf.replace(/[^0-9]/g, '');
        if (cpf.trim() !== "") {
            var valid = this.cpfCnpjService.valida_cpf_cnpj(cpf);
            if (!valid) {
                this.messageService.warning("titles.destinatario", "messages.cpfCnpjInvalido");
                return false;
            }
        }
        return true;
    };
    ColaboradorFormComponent.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: app_pages_cadastro_colaborador_colaborador_service__WEBPACK_IMPORTED_MODULE_0__["ColaboradorService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__["FuncoesService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__["PermissoesUtilsService"] },
        { type: _shared_services_funcoes_cpf_cnpj_cpf_cnpj_service__WEBPACK_IMPORTED_MODULE_10__["CpfCnpjService"] }
    ]; };
    ColaboradorFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
            selector: "app-colaborador-form",
            template: __importDefault(__webpack_require__(/*! raw-loader!./colaborador-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/colaborador/colaborador-form/colaborador-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewEncapsulation"].None
        }),
        __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"],
            app_pages_cadastro_colaborador_colaborador_service__WEBPACK_IMPORTED_MODULE_0__["ColaboradorService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__["FuncoesService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__["PermissoesUtilsService"],
            _shared_services_funcoes_cpf_cnpj_cpf_cnpj_service__WEBPACK_IMPORTED_MODULE_10__["CpfCnpjService"]])
    ], ColaboradorFormComponent);
    return ColaboradorFormComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_8__["BasePermissoes"]));



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ColaboradorIndexComponent", function() { return ColaboradorIndexComponent; });
/* harmony import */ var app_pages_cadastro_colaborador_colaborador_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/pages/cadastro/colaborador/colaborador.service */ "./src/app/pages/cadastro/colaborador/colaborador.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 app_pages_cadastro_colaborador_colaborador_model__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/pages/cadastro/colaborador/colaborador.model */ "./src/app/pages/cadastro/colaborador/colaborador.model.ts");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _colaborador_constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../colaborador.constants */ "./src/app/pages/cadastro/colaborador/colaborador.constants.ts");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
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 ColaboradorIndexComponent = /** @class */ (function (_super) {
    __extends(ColaboradorIndexComponent, _super);
    function ColaboradorIndexComponent(router, colaboradorService, datatablesService, messageService, funcoesService, permissoesUtils) {
        var _this = _super.call(this, new _colaborador_constants__WEBPACK_IMPORTED_MODULE_7__["ColaboradorConstants"](), funcoesService) || this;
        _this.router = router;
        _this.colaboradorService = colaboradorService;
        _this.datatablesService = datatablesService;
        _this.messageService = messageService;
        _this.funcoesService = funcoesService;
        _this.permissoesUtils = permissoesUtils;
        _this.data = new app_pages_cadastro_colaborador_colaborador_model__WEBPACK_IMPORTED_MODULE_2__["Colaborador"]();
        _this.constantes = new _colaborador_constants__WEBPACK_IMPORTED_MODULE_7__["ColaboradorConstants"]();
        _this.target = _this.funcoesService.getTargetLocation();
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    ColaboradorIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () {
            _this.filtrar();
        }, function () {
            _this.permissoesUtils.back();
        }, true);
        if (this.funcoesService.isUndefinedOrNull(this.colaboradorService.filtro)) {
            this.colaboradorService.filtro = new app_pages_cadastro_colaborador_colaborador_model__WEBPACK_IMPORTED_MODULE_2__["ColaboradorFiltroVo"]();
        }
    };
    ColaboradorIndexComponent.prototype.create = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () {
            _this.router.navigate([_this.target + "/cadastro/colaborador/create"]);
        });
    };
    ColaboradorIndexComponent.prototype.refresh = function () {
        var _this = this;
        this.colaboradorService.getByFiltro(this.colaboradorService.filtro).subscribe(function (resp) {
            var columns = [
                _this.datatablesService.getDataString("colaboradorId", "id", "10%"),
                _this.datatablesService.getDataString("nome"),
                _this.datatablesService.getDataString("descrTipoColab", "tipoColaborador", "20%"),
                _this.datatablesService.getDataString("descrDepto", "departamento", "20%"),
                _this.datatablesService.getDataString("cpf", "cpf", "20%"),
                _this.datatablesService.getDataString("email", "email", "20%"),
            ];
            _this.datatablesService.datatable("dtColaborador", columns, resp, function (aData) {
                _this.data = aData;
            });
        });
    };
    ColaboradorIndexComponent.prototype.print = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 5, function () {
            _this.colaboradorService.filtro.colaboradorId = _this.funcoesService.getValue(_this.colaboradorService.filtro.colaboradorId, "I");
            _this.colaboradorService.filtro.nomeDe = _this.funcoesService.getValue(_this.colaboradorService.filtro.nomeDe, "S");
            _this.colaboradorService.filtro.nomeAte = _this.funcoesService.getValue(_this.colaboradorService.filtro.nomeAte, "S");
            _this.colaboradorService.filtro.cpf = _this.funcoesService.getValue(_this.colaboradorService.filtro.cpf, "S");
            _this.constantes.paramRelatorio = _this.colaboradorService.filtro;
            _super.prototype.print.call(_this);
        });
    };
    ColaboradorIndexComponent.prototype.edit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
            if (!!(_this.data.colaboradorId)) {
                _this.router.navigate([_this.target + "/cadastro/colaborador/edit/" + _this.data.colaboradorId]);
            }
        });
    };
    ColaboradorIndexComponent.prototype.detail = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () {
            if (!!(_this.data.colaboradorId)) {
                _this.router.navigate([_this.target + "/cadastro/colaborador/detail/" + _this.data.colaboradorId]);
            }
        });
    };
    ColaboradorIndexComponent.prototype.properties = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 6, function () {
            _super.prototype.properties.call(_this, _this.data);
        });
    };
    ColaboradorIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 7, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    ColaboradorIndexComponent.prototype.remove = function () {
        var _this = this;
        if (!!(this.data.colaboradorId)) {
            this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () {
                _this.messageService.removeConfirm(function () {
                    _this.colaboradorService.remove(_this.data).subscribe(function () {
                        _this.datatablesService.remove("dtColaborador");
                    });
                });
            });
        }
    };
    ColaboradorIndexComponent.prototype.filtrar = function () {
        jQuery("#colaborador-filter-dialog").modal("show");
    };
    ColaboradorIndexComponent.prototype.executaFiltro = function () {
        this.refresh();
    };
    ColaboradorIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"] },
        { type: app_pages_cadastro_colaborador_colaborador_service__WEBPACK_IMPORTED_MODULE_0__["ColaboradorService"] },
        { type: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_4__["DatatablesService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__["MessageService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__["FuncoesService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__["PermissoesUtilsService"] }
    ]; };
    ColaboradorIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
            selector: "app-colaborador-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./colaborador-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/colaborador/colaborador-index/colaborador-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"],
            app_pages_cadastro_colaborador_colaborador_service__WEBPACK_IMPORTED_MODULE_0__["ColaboradorService"],
            app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_4__["DatatablesService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__["MessageService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__["FuncoesService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__["PermissoesUtilsService"]])
    ], ColaboradorIndexComponent);
    return ColaboradorIndexComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_8__["BasePermissoes"]));



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ColaboradorConstants", function() { return ColaboradorConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var ColaboradorConstants = /** @class */ (function () {
    function ColaboradorConstants() {
        this.sisFormularioId = 1101;
        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.Colaborador";
        this.reportId = "CAD0089";
        this.tabela = "Colaborador";
        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' },
        ];
    }
    return ColaboradorConstants;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ColaboradorModule", function() { return ColaboradorModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _shared_shared_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../shared/shared.module */ "./src/app/shared/shared.module.ts");
/* harmony import */ var app_pages_cadastro_colaborador_colaborador_form_colaborador_form_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/pages/cadastro/colaborador/colaborador-form/colaborador-form.component */ "./src/app/pages/cadastro/colaborador/colaborador-form/colaborador-form.component.ts");
/* harmony import */ var app_pages_cadastro_colaborador_colaborador_index_colaborador_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/pages/cadastro/colaborador/colaborador-index/colaborador-index.component */ "./src/app/pages/cadastro/colaborador/colaborador-index/colaborador-index.component.ts");
/* harmony import */ var app_pages_cadastro_colaborador_colaborador_routing_module__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/pages/cadastro/colaborador/colaborador.routing.module */ "./src/app/pages/cadastro/colaborador/colaborador.routing.module.ts");
/* harmony import */ var app_pages_cadastro_colaborador_colaborador_filter_colaborador_filter_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/pages/cadastro/colaborador/colaborador-filter/colaborador-filter.component */ "./src/app/pages/cadastro/colaborador/colaborador-filter/colaborador-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 ColaboradorModule = /** @class */ (function () {
    function ColaboradorModule() {
    }
    ColaboradorModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"], app_pages_cadastro_colaborador_colaborador_routing_module__WEBPACK_IMPORTED_MODULE_4__["ColaboradorRoutingModule"]],
            declarations: [app_pages_cadastro_colaborador_colaborador_index_colaborador_index_component__WEBPACK_IMPORTED_MODULE_3__["ColaboradorIndexComponent"], app_pages_cadastro_colaborador_colaborador_form_colaborador_form_component__WEBPACK_IMPORTED_MODULE_2__["ColaboradorFormComponent"], app_pages_cadastro_colaborador_colaborador_filter_colaborador_filter_component__WEBPACK_IMPORTED_MODULE_5__["ColaboradorFilterComponent"]]
        })
    ], ColaboradorModule);
    return ColaboradorModule;
}());



/***/ }),

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

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





var MRoutes = [
    {
        path: "",
        component: _colaborador_index_colaborador_index_component__WEBPACK_IMPORTED_MODULE_4__["ColaboradorIndexComponent"],
        data: { breadcrumb: "Colaboradores", formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index } }
    },
    {
        path: "create",
        component: _colaborador_form_colaborador_form_component__WEBPACK_IMPORTED_MODULE_3__["ColaboradorFormComponent"],
        data: {
            breadcrumb: "Colaboradores",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].create }
        }
    },
    {
        path: "edit/:id",
        component: _colaborador_form_colaborador_form_component__WEBPACK_IMPORTED_MODULE_3__["ColaboradorFormComponent"],
        data: {
            breadcrumb: "Colaboradores",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].edit }
        }
    },
    {
        path: "detail/:id",
        component: _colaborador_form_colaborador_form_component__WEBPACK_IMPORTED_MODULE_3__["ColaboradorFormComponent"],
        data: {
            breadcrumb: "Colaboradores",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].detail }
        }
    }
];
var ColaboradorRoutingModule = /** @class */ (function () {
    function ColaboradorRoutingModule() {
    }
    ColaboradorRoutingModule = __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"]]
        })
    ], ColaboradorRoutingModule);
    return ColaboradorRoutingModule;
}());



/***/ }),

/***/ "./src/app/shared/services/funcoes/cpf-cnpj/cpf-cnpj.service.ts":
/*!**********************************************************************!*\
  !*** ./src/app/shared/services/funcoes/cpf-cnpj/cpf-cnpj.service.ts ***!
  \**********************************************************************/
/*! exports provided: CpfCnpjService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CpfCnpjService", function() { return CpfCnpjService; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};


var CpfCnpjService = /** @class */ (function () {
    function CpfCnpjService() {
        this.mask$ = new rxjs__WEBPACK_IMPORTED_MODULE_1__["BehaviorSubject"]('AA.AAA.AAA/AAAA-00');
    }
    CpfCnpjService.prototype.verifica_cpf_cnpj = function (valor) {
        valor = valor.toString();
        valor = valor.replace(/[^0-9A-Za-z]/g, '');
        if (valor.length === 11) {
            return 'CPF';
        }
        else if (valor.length === 14) {
            return 'CNPJ';
        }
        else {
            return false;
        }
    };
    CpfCnpjService.prototype.valida_cpf = function (valor) {
        if (!valor)
            return true;
        valor = valor.replace(/[^0-9]/g, '');
        if (!/^\d{11}$/.test(valor))
            return false;
        // elimina CPFs inválidos conhecidos (ex: 00000000000, 11111111111 etc.)
        if (/^(\d)\1{10}$/.test(valor))
            return false;
        var digitos = valor.substring(0, 9);
        // calcula 1º DV
        var soma = 0;
        for (var i = 0; i < 9; i++) {
            soma += parseInt(digitos.charAt(i), 10) * (10 - i);
        }
        var resto = soma % 11;
        var dv1 = resto < 2 ? 0 : 11 - resto;
        // calcula 2º DV
        soma = 0;
        var digitosMaisDv1 = digitos + dv1;
        for (var i = 0; i < 10; i++) {
            soma += parseInt(digitosMaisDv1.charAt(i), 10) * (11 - i);
        }
        resto = soma % 11;
        var dv2 = resto < 2 ? 0 : 11 - resto;
        // monta CPF completo calculado
        var cpfCalculado = digitos + dv1.toString() + dv2.toString();
        return valor === cpfCalculado;
    };
    CpfCnpjService.prototype.valida_cnpj = function (cnpj) {
        function calc_digitos_cnpj(digitos) {
            var soma = 0;
            var peso = digitos.length === 12 ? 5 : 6; // 1º DV começa em 5, 2º em 6
            for (var i = 0; i < digitos.length; i++) {
                var char = digitos.charAt(i);
                var valorNumerico = void 0;
                if (/[0-9]/.test(char)) {
                    valorNumerico = parseInt(char, 10);
                }
                else if (/[A-Z]/.test(char)) {
                    valorNumerico = char.charCodeAt(0) - 48; // NT 49/2024
                }
                else {
                    throw new Error("Caractere inv\u00E1lido no CNPJ: '" + char + "'");
                }
                soma += valorNumerico * peso;
                peso--;
                if (peso < 2)
                    peso = 9;
            }
            var resto = soma % 11;
            return resto < 2 ? 0 : 11 - resto;
        }
        cnpj = cnpj.replace(/[^0-9A-Za-z]/g, '').toUpperCase();
        if (!/^[0-9A-Z]{12}[0-9]{2}$/.test(cnpj)) {
            return false;
        }
        var corpo = cnpj.substring(0, 12);
        var dv1Informado = parseInt(cnpj.charAt(12), 10);
        var dv2Informado = parseInt(cnpj.charAt(13), 10);
        var dv1Calculado = calc_digitos_cnpj(corpo);
        var dv2Calculado = calc_digitos_cnpj(corpo + dv1Calculado);
        return dv1Informado === dv1Calculado && dv2Informado === dv2Calculado;
    };
    CpfCnpjService.prototype.valida_cpf_cnpj = function (valor) {
        var valida = this.verifica_cpf_cnpj(valor);
        if (valida === 'CPF') {
            return this.valida_cpf(valor);
        }
        else if (valida === 'CNPJ') {
            return this.valida_cnpj(valor);
        }
        else {
            return false;
        }
    };
    CpfCnpjService.prototype.formata_cpf_cnpj = function (valor) {
        var formatado = "";
        var valida = this.verifica_cpf_cnpj(valor);
        if (valida === 'CPF') {
            if (this.valida_cpf(valor)) {
                formatado = valor.substr(0, 3) + '.';
                formatado += valor.substr(3, 3) + '.';
                formatado += valor.substr(6, 3) + '-';
                formatado += valor.substr(9, 2) + '';
            }
        }
        else if (valida === 'CNPJ') {
            if (this.valida_cnpj(valor)) {
                formatado = valor.substr(0, 2) + '.';
                formatado += valor.substr(2, 3) + '.';
                formatado += valor.substr(5, 3) + '/';
                formatado += valor.substr(8, 4) + '-';
                formatado += valor.substr(12, 14) + '';
            }
        }
        return formatado;
    };
    CpfCnpjService.prototype.format = function (documento, tipo) {
        var _this = this;
        if (tipo === void 0) { tipo = ''; }
        var valor = documento.replace(/[^a-zA-Z0-9]/g, '') || '';
        setTimeout(function () {
            var novaMask = 'AA.AAA.AAA/AAAA-00';
            if (tipo === 'F') {
                novaMask = '000.000.000-00';
            }
            else if (tipo === 'J') {
                if (/^[0-9]{14}$/.test(valor)) {
                    novaMask = '00.000.000/0000-00';
                }
                else if (valor.length >= 14 && /[a-zA-Z]/.test(valor)) {
                    novaMask = 'AA.AAA.AAA/AAAA-00';
                }
            }
            else {
                // tipo vazio
                if (/^[0-9]{11}$/.test(valor)) {
                    novaMask = '000.000.000-00';
                }
                else if (/^[0-9]{14}$/.test(valor)) {
                    novaMask = '00.000.000/0000-00';
                }
                else if (valor.length >= 14 && /[a-zA-Z]/.test(valor)) {
                    novaMask = 'AA.AAA.AAA/AAAA-00';
                }
            }
            _this.mask$.next(novaMask);
        });
    };
    CpfCnpjService.prototype.length = function (tipo) {
        if (tipo === 'F') {
            return 14;
        }
        else {
            return 18;
        }
    };
    CpfCnpjService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({
            providedIn: 'root'
        }),
        __metadata("design:paramtypes", [])
    ], CpfCnpjService);
    return CpfCnpjService;
}());



/***/ })

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