(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-portal-ptl-login-receita-ptl-login-receita-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/portal/ptl-login-receita/ptl-login-receita-filter/ptl-login-receita-filter.component.html":
/*!*******************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/portal/ptl-login-receita/ptl-login-receita-filter/ptl-login-receita-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\" id=\"ptl-login-receita-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.pesquisaDeLoginReceita' | translate }}</h6>\r\n            </div>\r\n            <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\">\r\n                <app-validacoes></app-validacoes>\r\n                <div class=\"modal-body\">\r\n                    <div class=\"row\">\r\n                        <div class=\"col-md-7 col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"login\" style=\"display:block;\">\r\n                                    {{ 'labels.login' | translate }}\r\n                                </label>\r\n                                <input id=\"login\" name=\"login\" [(ngModel)]=\"data.login\"\r\n                                    class=\"form-control form-control-sm\" type=\"text\" maxlength=\"20\"\r\n                                    style=\"width:60%;display:inline-block;\">\r\n                                <span class=\"ml-2\">({{ 'labels.contido' | translate }})</span>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"nome\" style=\"display:block;\">\r\n                                    {{ 'labels.nome' | translate }}\r\n                                </label>\r\n                                <input id=\"nome\" name=\"nome\" [(ngModel)]=\"data.nome\"\r\n                                    class=\"form-control form-control-sm\" type=\"text\" maxlength=\"50\"\r\n                                    style=\"width:80%;display:inline-block;\">\r\n                                <span class=\"ml-2\">({{ 'labels.contido' | translate }})</span>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-12\">\r\n                            <div class=\"custom-control custom-checkbox\">\r\n                                <input id=\"flagAtivo\" name=\"flagAtivo\" [ngModel]=\"data.flagAtivo === 'S'\"\r\n                                    (ngModelChange)=\"data.flagAtivo = $event ? 'S' : 'N'\"\r\n                                    class=\"custom-control-input checkbox-success\" type=\"checkbox\">\r\n                                <label class=\"custom-control-label\" for=\"flagAtivo\">\r\n                                    {{'labels.somenteAtivos' | translate}}\r\n                                </label>\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>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/portal/ptl-login-receita/ptl-login-receita-form/ptl-login-receita-form.component.html":
/*!***************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/portal/ptl-login-receita/ptl-login-receita-form/ptl-login-receita-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.ptlUsuarioId\"\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-3 col-md-4 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"loginPortal\"\n                                    [class.required]=\"funcoesService.isCreate(actionForm)\">{{\"labels.loginPortal\" |\n                                    translate}}</label>\n                                <input id=\"loginPortal\" name=\"loginPortal\" [(ngModel)]=\"data.login\"\n                                    class=\"form-control form-control-sm\" type=\"text\"\n                                    [required]=\"funcoesService.isCreate(actionForm)\"\n                                    [disabled]=\"!funcoesService.isCreate(actionForm)\" maxlength=\"20\">\n                            </div>\n                        </div>\n                        <div class=\"col-lg-6 col-md-4 col-sm-12 pt-3\">\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\">\n                                    {{'labels.ativo' | translate}}\n                                </label>\n                            </div>\n                            <div class=\"custom-control custom-checkbox\">\n                                <input id=\"flagAuditoria\" name=\"flagAuditoria\" [ngModel]=\"data.flagAuditoria === 'S'\"\n                                    (ngModelChange)=\"data.flagAuditoria = $event ? 'S' : 'N'\"\n                                    class=\"custom-control-input checkbox-success\" type=\"checkbox\"\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                <label class=\"custom-control-label\" for=\"flagAuditoria\">\n                                    {{'labels.auditoria' | translate}}\n                                </label>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-3 col-md-4 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"loginCameras\">{{'labels.loginCameras' | translate}}</label>\n                                <input id=\"loginCameras\" name=\"loginCameras\" [(ngModel)]=\"data.loginCamera\"\n                                    class=\"form-control form-control-sm\" type=\"text\"\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\" maxlength=\"20\">\n                            </div>\n                        </div>\n                        <div class=\"col-lg-3 col-md-4 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"senhaCameras\">{{'labels.senhaCameras' | translate}}</label>\n                                <input id=\"senhaCameras\" name=\"senhaCameras\" [(ngModel)]=\"data.senhaCamera\"\n                                    class=\"form-control form-control-sm\" type=\"text\"\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\" maxlength=\"20\">\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-md-6 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"tipo\" class=\"required\">{{'labels.tipo'| translate}}</label>\n                                <select id=\"tipo\" name=\"tipo\" class=\"form-control form-control-sm\"\n                                    [(ngModel)]=\"data.tipoUsuario\" required=\"required\"\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                    <option value=\"\">{{ 'labels.selecione' | translate}}</option>\n                                    <option value=\"15\">{{ 'labels.receita' | translate}}</option>\n                                    <option value=\"20\">{{ 'labels.autoridade' | translate}}</option>\n                                </select>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-5 col-md-6 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"cpf\" [class.required]=\"requiredCpf\">\n                                    {{'labels.cpf' | translate}}\n                                </label>\n                                <div class=\"input-group\">\n                                    <input id=\"cpf\" name=\"cpf\" class=\"form-control form-control-sm\" type=\"text\"\n                                        maxlength=\"14\" mask=\"000.000.000-00\" [required]=\"requiredCpf\"\n                                        [(ngModel)]=\"data.cpf\" [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                        (blur)=\"validaCpf()\" />\n                                    <span class=\"ml-2\" style=\"color:#F34235;\">\n                                        <b>({{ 'messages.informeSomenteNumeros' | translate }})</b>\n                                    </span>\n                                </div>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-md-6 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"nome\" [class.required]=\"requiredNome\">{{'labels.nome'| translate}}</label>\n                                <input id=\"nome\" name=\"nome\" [(ngModel)]=\"data.nomeUsuario\"\n                                    class=\"form-control form-control-sm\" type=\"text\" [required]=\"requiredNome\"\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\" maxlength=\"50\">\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-md-6 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"email\" class=\"required\">{{'labels.email' |translate}}</label>\n                                <input id=\"email\" name=\"email\" [(ngModel)]=\"data.email\"\n                                    class=\"form-control form-control-sm\" type=\"text\" [required]=\"true\"\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\" maxlength=\"200\">\n                            </div>\n                        </div>\n                    </div>\n\n                    <div class=\"row mt-2\">\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' | 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/portal/ptl-login-receita/ptl-login-receita-index/ptl-login-receita-index.component.html":
/*!*****************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/portal/ptl-login-receita/ptl-login-receita-index/ptl-login-receita-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.ptlUsuarioId\"\n                      [sisFormularioId]=\"constantes.sisFormularioId\">\n</app-menu-command-bar>\n\n<div class=\"section-comand-bar\">\n    <table id=\"dtLoginReceita\" 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-ptl-login-receita-filter [data]=\"filtro\" (filtrar)=\"executaFiltro($event)\"></app-ptl-login-receita-filter>\n");

/***/ }),

/***/ "./src/app/pages/portal/ptl-login-receita/ptl-login-receita-filter/ptl-login-receita-filter.component.ts":
/*!***************************************************************************************************************!*\
  !*** ./src/app/pages/portal/ptl-login-receita/ptl-login-receita-filter/ptl-login-receita-filter.component.ts ***!
  \***************************************************************************************************************/
/*! exports provided: PtlLoginReceitaFilterComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PtlLoginReceitaFilterComponent", function() { return PtlLoginReceitaFilterComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _ptl_login_receita_model__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../ptl-login-receita.model */ "./src/app/pages/portal/ptl-login-receita/ptl-login-receita.model.ts");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
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 PtlLoginReceitaFilterComponent = /** @class */ (function () {
    function PtlLoginReceitaFilterComponent() {
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
    }
    PtlLoginReceitaFilterComponent.prototype.ngOnInit = function () {
        this.filtro = this.data;
    };
    PtlLoginReceitaFilterComponent.prototype.onSubmit = function (form) {
        if (form.invalid) {
            _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__["EventEmitterService"].get("formError").emit(form);
            return;
        }
        this.filtrar.emit(this.filtro);
        jQuery("#ptl-login-receita-filter-dialog").modal("hide");
    };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", _ptl_login_receita_model__WEBPACK_IMPORTED_MODULE_1__["PtlLoginReceitaFilter"])
    ], PtlLoginReceitaFilterComponent.prototype, "data", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], PtlLoginReceitaFilterComponent.prototype, "filtrar", void 0);
    PtlLoginReceitaFilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-ptl-login-receita-filter",
            template: __importDefault(__webpack_require__(/*! raw-loader!./ptl-login-receita-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/portal/ptl-login-receita/ptl-login-receita-filter/ptl-login-receita-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [])
    ], PtlLoginReceitaFilterComponent);
    return PtlLoginReceitaFilterComponent;
}());



/***/ }),

/***/ "./src/app/pages/portal/ptl-login-receita/ptl-login-receita-form/ptl-login-receita-form.component.ts":
/*!***********************************************************************************************************!*\
  !*** ./src/app/pages/portal/ptl-login-receita/ptl-login-receita-form/ptl-login-receita-form.component.ts ***!
  \***********************************************************************************************************/
/*! exports provided: PtlLoginReceitaFormComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PtlLoginReceitaFormComponent", function() { return PtlLoginReceitaFormComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var _shared_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 _ptl_login_receita_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../ptl-login-receita.service */ "./src/app/pages/portal/ptl-login-receita/ptl-login-receita.service.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _ptl_login_receita_model__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../ptl-login-receita.model */ "./src/app/pages/portal/ptl-login-receita/ptl-login-receita.model.ts");
/* harmony import */ var _ptl_login_receita_constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../ptl-login-receita.constants */ "./src/app/pages/portal/ptl-login-receita/ptl-login-receita.constants.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _login_login_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var app_shared_services_funcoes_cpf_cnpj_cpf_cnpj_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! app/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 PtlLoginReceitaFormComponent = /** @class */ (function (_super) {
    __extends(PtlLoginReceitaFormComponent, _super);
    function PtlLoginReceitaFormComponent(router, messageService, activatedRoute, service, funcoesService, permissoesUtils, loginService, cpfCnpjService) {
        var _this = _super.call(this, new _ptl_login_receita_constants__WEBPACK_IMPORTED_MODULE_7__["PtlLoginReceitaConstants"](), funcoesService) || this;
        _this.router = router;
        _this.messageService = messageService;
        _this.activatedRoute = activatedRoute;
        _this.service = service;
        _this.funcoesService = funcoesService;
        _this.permissoesUtils = permissoesUtils;
        _this.loginService = loginService;
        _this.cpfCnpjService = cpfCnpjService;
        _this.data = new _ptl_login_receita_model__WEBPACK_IMPORTED_MODULE_6__["PtlLoginReceita"]();
        _this.mensagens = [];
        _this.constantes = new _ptl_login_receita_constants__WEBPACK_IMPORTED_MODULE_7__["PtlLoginReceitaConstants"]();
        _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;
    }
    PtlLoginReceitaFormComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, this.permissoesUtils.getLibRotinaIdx([1, 2, 3], this.actionForm), function () {
            _this.data = new _ptl_login_receita_model__WEBPACK_IMPORTED_MODULE_6__["PtlLoginReceita"]();
            var id = _this.activatedRoute.snapshot.paramMap.get("id");
            if (id) {
                _this.service.getById(id).subscribe(function (resp) {
                    _this.data = resp;
                });
            }
        }, function () { return _this.permissoesUtils.back(); });
    };
    PtlLoginReceitaFormComponent.prototype.onSubmit = function (form, create) {
        var _this = this;
        if (create === void 0) { create = false; }
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_10__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        if (!this.validaCpf()) {
            return;
        }
        this.data.logRotina = "Login Receita";
        this.data.sisFormularioId = this.constantes.sisFormularioId;
        this.data.libRotinaAlterarSenha = 8;
        this.service.save(this.data, this.funcoesService.isEdit(this.actionForm)).subscribe(function (result) {
            if (!result.validationResult.isValid) {
                _this.mensagens = _this.messageService.validationResult(result.validationResult);
                app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_10__["EventEmitterService"].get("backError").emit(_this.mensagens);
            }
            else {
                _this.messageService.saveSuccess("titles.loginReceita");
                _this.messageService.confirm("titles.loginReceita", "messages.desejaEnviarEmailUsuarioComLoginSenha", "", function () {
                    if (_this.funcoesService.isUndefinedOrNull(_this.data.email)) {
                        _this.messageService.error("titles.loginReceita", "messages.emailNaoInformado");
                        return;
                    }
                    _this.service.enviarEmailCadastro({
                        isAlteracao: _this.funcoesService.isEdit(_this.actionForm),
                        emailTo: _this.data.email,
                        login: _this.data.login,
                        senha: result.senha
                    }).subscribe(function (emailResult) {
                        if (!emailResult.validationResult.isValid) {
                            _this.mensagens = _this.messageService.validationResult(emailResult.validationResult);
                            _this.messageService.error("titles.loginReceita", _this.mensagens[0]);
                        }
                        else {
                            _this.messageService.info("titles.loginReceita", "messages.emailEnviadoSucesso");
                            _this.redirectAfterSubmit(create);
                        }
                    });
                }, null, function () { return _this.redirectAfterSubmit(create); });
            }
        });
    };
    PtlLoginReceitaFormComponent.prototype.redirectAfterSubmit = function (create) {
        if (create) {
            this.data = new _ptl_login_receita_model__WEBPACK_IMPORTED_MODULE_6__["PtlLoginReceita"]();
            this.router.navigate([this.target + "/portal/loginReceita/create"]);
        }
        else {
            this.back();
        }
    };
    PtlLoginReceitaFormComponent.prototype.saveAndCreate = function (form) {
        this.onSubmit(form, true);
    };
    PtlLoginReceitaFormComponent.prototype.edit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () {
            _this.router.navigate([_this.target + "/portal/loginReceita/edit/" + _this.data.ptlUsuarioId]);
        });
    };
    PtlLoginReceitaFormComponent.prototype.back = function () {
        this.funcoesService.desabilitarFiltro();
        this.router.navigate([this.target + "/portal/loginReceita"]);
    };
    PtlLoginReceitaFormComponent.prototype.validaCpf = function () {
        var valid = this.cpfCnpjService.valida_cpf(this.data.cpf);
        if (!valid) {
            this.messageService.warning("titles.loginReceita", "messages.cpfInvalido");
            return false;
        }
        return true;
    };
    Object.defineProperty(PtlLoginReceitaFormComponent.prototype, "requiredCpf", {
        get: function () {
            return !!this.data.nomeUsuario;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(PtlLoginReceitaFormComponent.prototype, "requiredNome", {
        get: function () {
            return !!this.data.cpf;
        },
        enumerable: true,
        configurable: true
    });
    PtlLoginReceitaFormComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"] },
        { type: _ptl_login_receita_service__WEBPACK_IMPORTED_MODULE_3__["PtlLoginReceitaService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_8__["PermissoesUtilsService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_9__["LoginService"] },
        { type: app_shared_services_funcoes_cpf_cnpj_cpf_cnpj_service__WEBPACK_IMPORTED_MODULE_11__["CpfCnpjService"] }
    ]; };
    PtlLoginReceitaFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-ptl-login-receita-form",
            template: __importDefault(__webpack_require__(/*! raw-loader!./ptl-login-receita-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/portal/ptl-login-receita/ptl-login-receita-form/ptl-login-receita-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"],
            _ptl_login_receita_service__WEBPACK_IMPORTED_MODULE_3__["PtlLoginReceitaService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_8__["PermissoesUtilsService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_9__["LoginService"],
            app_shared_services_funcoes_cpf_cnpj_cpf_cnpj_service__WEBPACK_IMPORTED_MODULE_11__["CpfCnpjService"]])
    ], PtlLoginReceitaFormComponent);
    return PtlLoginReceitaFormComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/portal/ptl-login-receita/ptl-login-receita-index/ptl-login-receita-index.component.ts":
/*!*************************************************************************************************************!*\
  !*** ./src/app/pages/portal/ptl-login-receita/ptl-login-receita-index/ptl-login-receita-index.component.ts ***!
  \*************************************************************************************************************/
/*! exports provided: PtlLoginReceitaIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PtlLoginReceitaIndexComponent", function() { return PtlLoginReceitaIndexComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _shared_services_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_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _login_login_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var _ptl_login_receita_constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../ptl-login-receita.constants */ "./src/app/pages/portal/ptl-login-receita/ptl-login-receita.constants.ts");
/* harmony import */ var _ptl_login_receita_model__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../ptl-login-receita.model */ "./src/app/pages/portal/ptl-login-receita/ptl-login-receita.model.ts");
/* harmony import */ var _ptl_login_receita_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../ptl-login-receita.service */ "./src/app/pages/portal/ptl-login-receita/ptl-login-receita.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 PtlLoginReceitaIndexComponent = /** @class */ (function (_super) {
    __extends(PtlLoginReceitaIndexComponent, _super);
    function PtlLoginReceitaIndexComponent(router, service, datatablesService, mensagens, funcoesService, permissoesUtils, loginService) {
        var _this = _super.call(this, new _ptl_login_receita_constants__WEBPACK_IMPORTED_MODULE_8__["PtlLoginReceitaConstants"](), funcoesService) || this;
        _this.router = router;
        _this.service = service;
        _this.datatablesService = datatablesService;
        _this.mensagens = mensagens;
        _this.funcoesService = funcoesService;
        _this.permissoesUtils = permissoesUtils;
        _this.loginService = loginService;
        _this.data = new _ptl_login_receita_model__WEBPACK_IMPORTED_MODULE_9__["PtlLoginReceita"]();
        _this.filtro = new _ptl_login_receita_model__WEBPACK_IMPORTED_MODULE_9__["PtlLoginReceitaFilter"]();
        _this.podeVisualizarSenha = false;
        _this.podeAlterarSenha = false;
        _this.constantes = new _ptl_login_receita_constants__WEBPACK_IMPORTED_MODULE_8__["PtlLoginReceitaConstants"]();
        _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;
    }
    PtlLoginReceitaIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () {
            if (!_this.loginService.isTokenExpired()) {
                if (_this.funcoesService.abrirFiltro) {
                    _this.service.getUsuarioSinc().subscribe(function (_) {
                        _this.filtrar();
                    });
                }
                else {
                    _this.refresh();
                }
            }
        }, function () { return _this.permissoesUtils.back(); }, true);
    };
    PtlLoginReceitaIndexComponent.prototype.refresh = function () {
        var _this = this;
        this.filtro.login = this.funcoesService.isUndefinedOrNull(this.filtro.login) ? "" : this.filtro.login;
        this.filtro.nome = this.funcoesService.isUndefinedOrNull(this.filtro.nome) ? "" : this.filtro.nome;
        this.service.getByFiltro(this.filtro).subscribe(function (data) {
            var columns = [
                _this.datatablesService.getDataString("login", "loginPortal", "15%"),
                _this.datatablesService.getDataString("descTipoUsuario", "tipo", "15%"),
                _this.datatablesService.getDataString("cpf", "cpf", "15%"),
                _this.datatablesService.getDataString("nomeUsuario", "nome")
            ];
            _this.datatablesService.toDataTable({ tableId: "dtLoginReceita", columns: columns, data: data }, function (aData) {
                _this.data = aData;
            });
        });
    };
    PtlLoginReceitaIndexComponent.prototype.executaFiltro = function (event) {
        this.filtro = event;
        this.refresh();
    };
    PtlLoginReceitaIndexComponent.prototype.filtrar = function () {
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () {
            jQuery("#ptl-login-receita-filter-dialog").modal("show");
        });
    };
    PtlLoginReceitaIndexComponent.prototype.detail = function () {
        var _this = this;
        if (!!(this.data.ptlUsuarioId)) {
            this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () {
                _this.router.navigate([_this.target + "/portal/loginReceita/detail/" + _this.data.ptlUsuarioId]);
            });
        }
    };
    PtlLoginReceitaIndexComponent.prototype.create = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
            _this.router.navigate([_this.target + "/portal/loginReceita/create"]);
        });
    };
    PtlLoginReceitaIndexComponent.prototype.edit = function () {
        var _this = this;
        if (!!(this.data.ptlUsuarioId)) {
            this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () {
                _this.router.navigate([_this.target + "/portal/loginReceita/edit/" + _this.data.ptlUsuarioId]);
            });
        }
    };
    PtlLoginReceitaIndexComponent.prototype.print = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () {
            _this.constantes.paramRelatorio = {
                login: _this.filtro.login,
                nome: _this.filtro.nome,
                flagAtivo: _this.filtro.flagAtivo,
                podeVisualizarSenha: _this.podeVisualizarSenha
            };
            _super.prototype.print.call(_this);
        });
    };
    PtlLoginReceitaIndexComponent.prototype.properties = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 5, function () {
            _super.prototype.properties.call(_this, _this.data);
        });
    };
    PtlLoginReceitaIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 6, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    PtlLoginReceitaIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _ptl_login_receita_service__WEBPACK_IMPORTED_MODULE_10__["PtlLoginReceitaService"] },
        { type: _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__["DatatablesService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__["MessageService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_5__["PermissoesUtilsService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_7__["LoginService"] }
    ]; };
    PtlLoginReceitaIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-ptl-login-receita-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./ptl-login-receita-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/portal/ptl-login-receita/ptl-login-receita-index/ptl-login-receita-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _ptl_login_receita_service__WEBPACK_IMPORTED_MODULE_10__["PtlLoginReceitaService"],
            _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__["DatatablesService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__["MessageService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_5__["PermissoesUtilsService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_7__["LoginService"]])
    ], PtlLoginReceitaIndexComponent);
    return PtlLoginReceitaIndexComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_2__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/portal/ptl-login-receita/ptl-login-receita.constants.ts":
/*!*******************************************************************************!*\
  !*** ./src/app/pages/portal/ptl-login-receita/ptl-login-receita.constants.ts ***!
  \*******************************************************************************/
/*! exports provided: PtlLoginReceitaConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PtlLoginReceitaConstants", function() { return PtlLoginReceitaConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var PtlLoginReceitaConstants = /** @class */ (function () {
    function PtlLoginReceitaConstants() {
        this.sisFormularioId = 340002;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.consulta" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.inclusao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 3, acao: "labels.alteracao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 4, acao: "labels.impressao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 5, acao: "labels.propriedades" },
            { sisFormularioId: this.sisFormularioId, libRotina: 6, acao: "labels.permissoes" },
        ];
        this.sisSistemaId = "PTL";
        this.nomeForm = "titles.loginReceita";
        this.reportId = "POR0003";
        this.reportTitulo = { "titulo": "Login Receita", "subTitulo": "" };
        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: '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 PtlLoginReceitaConstants;
}());



/***/ }),

/***/ "./src/app/pages/portal/ptl-login-receita/ptl-login-receita.model.ts":
/*!***************************************************************************!*\
  !*** ./src/app/pages/portal/ptl-login-receita/ptl-login-receita.model.ts ***!
  \***************************************************************************/
/*! exports provided: PtlLoginReceita, PtlLoginReceitaFilter */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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

var PtlLoginReceitaFilter = /** @class */ (function () {
    function PtlLoginReceitaFilter() {
        this.flagAtivo = "N";
    }
    return PtlLoginReceitaFilter;
}());



/***/ }),

/***/ "./src/app/pages/portal/ptl-login-receita/ptl-login-receita.module.ts":
/*!****************************************************************************!*\
  !*** ./src/app/pages/portal/ptl-login-receita/ptl-login-receita.module.ts ***!
  \****************************************************************************/
/*! exports provided: PtlLoginReceitaModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PtlLoginReceitaModule", function() { return PtlLoginReceitaModule; });
/* 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 _ptl_login_receita_filter_ptl_login_receita_filter_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ptl-login-receita-filter/ptl-login-receita-filter.component */ "./src/app/pages/portal/ptl-login-receita/ptl-login-receita-filter/ptl-login-receita-filter.component.ts");
/* harmony import */ var _ptl_login_receita_form_ptl_login_receita_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ptl-login-receita-form/ptl-login-receita-form.component */ "./src/app/pages/portal/ptl-login-receita/ptl-login-receita-form/ptl-login-receita-form.component.ts");
/* harmony import */ var _ptl_login_receita_index_ptl_login_receita_index_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ptl-login-receita-index/ptl-login-receita-index.component */ "./src/app/pages/portal/ptl-login-receita/ptl-login-receita-index/ptl-login-receita-index.component.ts");
/* harmony import */ var _ptl_login_receita_routing_module__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ptl-login-receita.routing.module */ "./src/app/pages/portal/ptl-login-receita/ptl-login-receita.routing.module.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 PtlLoginReceitaModule = /** @class */ (function () {
    function PtlLoginReceitaModule() {
    }
    PtlLoginReceitaModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"], _ptl_login_receita_routing_module__WEBPACK_IMPORTED_MODULE_5__["PtlLoginReceitaRoutingModule"]],
            declarations: [_ptl_login_receita_index_ptl_login_receita_index_component__WEBPACK_IMPORTED_MODULE_4__["PtlLoginReceitaIndexComponent"], _ptl_login_receita_form_ptl_login_receita_form_component__WEBPACK_IMPORTED_MODULE_3__["PtlLoginReceitaFormComponent"], _ptl_login_receita_filter_ptl_login_receita_filter_component__WEBPACK_IMPORTED_MODULE_2__["PtlLoginReceitaFilterComponent"]]
        })
    ], PtlLoginReceitaModule);
    return PtlLoginReceitaModule;
}());



/***/ }),

/***/ "./src/app/pages/portal/ptl-login-receita/ptl-login-receita.routing.module.ts":
/*!************************************************************************************!*\
  !*** ./src/app/pages/portal/ptl-login-receita/ptl-login-receita.routing.module.ts ***!
  \************************************************************************************/
/*! exports provided: PtlLoginReceitaRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PtlLoginReceitaRoutingModule", function() { return PtlLoginReceitaRoutingModule; });
/* 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 _config_enumerables__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _ptl_login_receita_form_ptl_login_receita_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ptl-login-receita-form/ptl-login-receita-form.component */ "./src/app/pages/portal/ptl-login-receita/ptl-login-receita-form/ptl-login-receita-form.component.ts");
/* harmony import */ var _ptl_login_receita_index_ptl_login_receita_index_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ptl-login-receita-index/ptl-login-receita-index.component */ "./src/app/pages/portal/ptl-login-receita/ptl-login-receita-index/ptl-login-receita-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: _ptl_login_receita_index_ptl_login_receita_index_component__WEBPACK_IMPORTED_MODULE_4__["PtlLoginReceitaIndexComponent"],
        data: { breadcrumb: "loginReceita", formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index } }
    },
    {
        path: "create",
        component: _ptl_login_receita_form_ptl_login_receita_form_component__WEBPACK_IMPORTED_MODULE_3__["PtlLoginReceitaFormComponent"],
        data: {
            breadcrumb: "loginReceita",
            formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].create }
        }
    },
    {
        path: "edit/:id",
        component: _ptl_login_receita_form_ptl_login_receita_form_component__WEBPACK_IMPORTED_MODULE_3__["PtlLoginReceitaFormComponent"],
        data: {
            breadcrumb: "loginReceita",
            formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].edit }
        }
    },
    {
        path: "detail/:id",
        component: _ptl_login_receita_form_ptl_login_receita_form_component__WEBPACK_IMPORTED_MODULE_3__["PtlLoginReceitaFormComponent"],
        data: {
            breadcrumb: "loginReceita",
            formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].detail }
        }
    }
];
var PtlLoginReceitaRoutingModule = /** @class */ (function () {
    function PtlLoginReceitaRoutingModule() {
    }
    PtlLoginReceitaRoutingModule = __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"]],
        })
    ], PtlLoginReceitaRoutingModule);
    return PtlLoginReceitaRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/portal/ptl-login-receita/ptl-login-receita.service.ts":
/*!*****************************************************************************!*\
  !*** ./src/app/pages/portal/ptl-login-receita/ptl-login-receita.service.ts ***!
  \*****************************************************************************/
/*! exports provided: PtlLoginReceitaService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PtlLoginReceitaService", function() { return PtlLoginReceitaService; });
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
/* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var _app_error_handler__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../app.error-handler */ "./src/app/app.error-handler.ts");
/* harmony import */ var _shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../shared/services/base/base.service */ "./src/app/shared/services/base/base.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 PtlLoginReceitaService = /** @class */ (function (_super) {
    __extends(PtlLoginReceitaService, _super);
    function PtlLoginReceitaService(http) {
        return _super.call(this, http, "portal/ptlLoginReceita") || this;
    }
    PtlLoginReceitaService.prototype.getByFiltro = function (data) {
        return this.http.post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/portal/ptlLoginReceita/getByFiltro", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    PtlLoginReceitaService.prototype.enviarEmailCadastro = function (data) {
        return this.http.post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/portal/ptlLoginReceita/enviarEmailCadastro", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    PtlLoginReceitaService.prototype.getUsuarioSinc = function () {
        return this.http
            .get(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/portal/ptlLoginPortal/getUsuarioSinc")
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    PtlLoginReceitaService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"] }
    ]; };
    PtlLoginReceitaService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"]])
    ], PtlLoginReceitaService);
    return PtlLoginReceitaService;
}(_shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_5__["BaseService"]));



/***/ }),

/***/ "./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-portal-ptl-login-receita-ptl-login-receita-module.js.map