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

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/portal/ptl-login-portal/ptl-login-portal-filter/ptl-login-portal-filter.component.html":
/*!****************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/portal/ptl-login-portal/ptl-login-portal-filter/ptl-login-portal-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-portal-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.pesquisaDeLoginPortal' | 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-6 col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"tipo\">{{'labels.tipo' | translate}}</label>\r\n                                <select id=\"tipo\" name=\"tipo\" class=\"form-control form-control-sm\"\r\n                                    [(ngModel)]=\"data.tipoUsuarioSelecionado\">\r\n                                    <option value=\"0\">{{ 'labels.selecione' | translate}}</option>\r\n                                    <option *ngFor=\"let tipo of listaTiposUsuario\" [value]=\"tipo.value\">{{ tipo.label |\r\n                                        translate}}</option>\r\n                                </select>\r\n                            </div>\r\n                        </div>\r\n                    </div>\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 uppercase\" 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 }}</button>\r\n                    <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">{{ 'buttons.sair' | translate\r\n                        }}</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-portal/ptl-login-portal-form/ptl-login-portal-form.component.html":
/*!************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/portal/ptl-login-portal/ptl-login-portal-form/ptl-login-portal-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 uppercase\" type=\"text\"\n                                    [required]=\"funcoesService.isCreate(actionForm)\"\n                                    [disabled]=\"!funcoesService.isCreate(actionForm)\" maxlength=\"20\">\n                            </div>\n                        </div>\n                        <div class=\"col-lg-1 col-md-4 col-sm-12\">\n                            <div class=\"custom-control custom-checkbox mt-4\">\n                                <input id=\"flagAtivo\" name=\"flagAtivo\" [ngModel]=\"data.flagAtivo === 'S'\"\n                                    (ngModelChange)=\"data.flagAtivo = $event ? 'S' : 'N'\"\n                                    class=\"custom-control-input checkbox-success\" type=\"checkbox\"\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                <label class=\"custom-control-label\" for=\"flagAtivo\">\n                                    {{'labels.ativo' | translate}}\n                                </label>\n                            </div>\n                        </div>\n                        <div class=\"col-lg-3 col-md-4 col-sm-12\">\n                            <div class=\"custom-control custom-checkbox mt-4\">\n                                <input id=\"flagInativa2FA\" name=\"flagInativa2FA\" [ngModel]=\"data.flagInativa2FA === 'S'\"\n                                    (ngModelChange)=\"data.flagInativa2FA = $event ? 'S' : 'N'\"\n                                    class=\"custom-control-input checkbox-success\" type=\"checkbox\"\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                <label class=\"custom-control-label\" for=\"flagInativa2FA\">\n                                    {{'labels.nUsa2FA' | 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 uppercase\" 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 #tipo id=\"tipo\" name=\"tipo\" class=\"form-control form-control-sm\"\n                                    [(ngModel)]=\"data.tipoUsuario\" required=\"required\"\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                    (change)=\"onTipoUsuarioChange(tipo.value)\">\n                                    <option value=\"\">{{ 'labels.selecione' | translate}}</option>\n                                    <option *ngFor=\"let tipo of listaTiposUsuario\" [value]=\"tipo.value\">{{ tipo.label |\n                                        translate}}</option>\n                                </select>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-md-3 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"cpf\" [class.required]=\"requiredCpf\">{{'labels.cpf' | translate}}</label>\n                                <div class=\"input-group\">\n                                    <input #cpf 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 #nome id=\"nome\" name=\"nome\" type=\"text\" class=\"form-control form-control-sm\"\n                                    [required]=\"requiredNome\" [(ngModel)]=\"data.nomeUsuario\"\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\" type=\"text\" class=\"form-control form-control-sm\" required\n                                    [(ngModel)]=\"data.email\" [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                    maxlength=\"200\">\n                            </div>\n                        </div>\n                    </div>\n\n                    <div class=\"row\">\n                        <div class=\"col-md-6 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <app-pesquisa-destinatario id=\"destinatarioId\" name=\"destinatarioId\"\n                                    label=\"destinatarioId\" [required]=\"requiredDestinatario\" [(ngModel)]=\"data.codDest\"\n                                    [tipoDestinatario]=\"tipoDestinatario\"\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\" [inSelected]=\"data.destinatario\"\n                                    showCgcCpf=\"false\" showInscricao=\"false\">\n                                </app-pesquisa-destinatario>\n                            </div>\n                        </div>\n                    </div>\n\n                    <div class=\"row\">\n                        <div class=\"col-md-6 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"grupo\">{{ 'labels.grupo' | translate}}</label>\n                                <app-combo-grupo-cliente name=\"grupo\" id=\"grupo\" [(ngModel)]=\"data.codGrupo\"\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                    (outSelected)=\"onGrupoClienteChange($event)\">\n                                </app-combo-grupo-cliente>\n                            </div>\n                        </div>\n                    </div>\n\n                    <div class=\"row mt-2\">\n                        <div class=\"col-12\">\n                            <div class=\"form-group\">\n                                <button class=\"btn btn-success mr-2\" type=\"submit\"\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                    {{ 'buttons.salvar' | translate }}\n                                </button>\n                                <button class=\"btn btn-success mr-2\" (click)=\"saveAndCreate(f)\" type=\"button\"\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                    {{ 'buttons.salvarNovo' | translate }}\n                                </button>\n                                <button *ngIf=\"exibirOpcaoImportar\" class=\"btn btn-success\"\n                                    (click)=\"importUserProfile()\" type=\"button\">\n                                    {{ 'buttons.importarPerfil' | 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>\n<app-ptl-login-portal-import-user [data]=\"importacaoUsuario\" (executar)=\"executaImportacaoUsuario($event)\">\n</app-ptl-login-portal-import-user>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/portal/ptl-login-portal/ptl-login-portal-import-user/ptl-login-portal-import-user.component.html":
/*!**************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/portal/ptl-login-portal/ptl-login-portal-import-user/ptl-login-portal-import-user.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-portal-import-user-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\r\n    <div class=\"uni-modal-dialog-md-45\">\r\n        <div class=\"modal-content\">\r\n            <div class=\"modal-header\">\r\n                <h6 class=\"modal-title\">{{ 'titles.importarPerfilUsuario' | 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-6 col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"login\">{{ \"labels.login\" | translate }}</label>\r\n                                <app-combo-ptl-usuario id=\"login\" name=\"login\" required [value]=\"data.ptlUsuarioIdD\"\r\n                                    contains=\"S\" [types]=\"tipoUsuariosExibir\" (outSelected)=\"onLoginSelected($event)\">\r\n                                </app-combo-ptl-usuario>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n\r\n                    <div class=\"row\">\r\n                        <div class=\"col-md-6 col-sm-12\">\r\n                            <div class=\"card\">\r\n                                <div class=\"card-body\">\r\n                                    <div class=\"custom-control custom-checkbox\">\r\n                                        <input id=\"importarConsultas\" name=\"importarConsultas\"\r\n                                            [ngModel]=\"data.importarConsultas === 'S'\"\r\n                                            (ngModelChange)=\"data.importarConsultas = $event ? 'S' : 'N'\"\r\n                                            class=\"custom-control-input checkbox-success\" type=\"checkbox\">\r\n                                        <label class=\"custom-control-label\" for=\"importarConsultas\">\r\n                                            {{'labels.importarConsultas' | translate}}\r\n                                        </label>\r\n                                    </div>\r\n\r\n                                    <div class=\"custom-control custom-checkbox\">\r\n                                        <input id=\"importarClientes\" name=\"importarClientes\"\r\n                                            [ngModel]=\"data.importarClientes === 'S'\"\r\n                                            (ngModelChange)=\"data.importarClientes = $event ? 'S' : 'N'\"\r\n                                            class=\"custom-control-input checkbox-success\" type=\"checkbox\">\r\n                                        <label class=\"custom-control-label\" for=\"importarClientes\">\r\n                                            {{'labels.importarClientes' | translate}}\r\n                                        </label>\r\n                                    </div>\r\n\r\n                                    <div class=\"custom-control custom-checkbox\">\r\n                                        <input id=\"importarProdutos\" name=\"importarProdutos\"\r\n                                            [ngModel]=\"data.importarProdutos === 'S'\"\r\n                                            (ngModelChange)=\"data.importarProdutos = $event ? 'S' : 'N'\"\r\n                                            class=\"custom-control-input checkbox-success\" type=\"checkbox\">\r\n                                        <label class=\"custom-control-label\" for=\"importarProdutos\">\r\n                                            {{'labels.importarProdutos' | translate}}\r\n                                        </label>\r\n                                    </div>\r\n\r\n                                    <div class=\"custom-control custom-checkbox\">\r\n                                        <input id=\"importarTanques\" name=\"importarTanques\"\r\n                                            [ngModel]=\"data.importarTanques === 'S'\"\r\n                                            (ngModelChange)=\"data.importarTanques = $event ? 'S' : 'N'\"\r\n                                            class=\"custom-control-input checkbox-success\" type=\"checkbox\">\r\n                                        <label class=\"custom-control-label\" for=\"importarTanques\">\r\n                                            {{'labels.importarTanques' | translate}}\r\n                                        </label>\r\n                                    </div>\r\n\r\n                                </div>\r\n                            </div>\r\n\r\n                            <div class=\"custom-control custom-checkbox mt-3\">\r\n                                <input id=\"limparPerfilAtual\" name=\"limparPerfilAtual\"\r\n                                    [ngModel]=\"data.limpaPerfilAtual === 'S'\"\r\n                                    (ngModelChange)=\"data.limpaPerfilAtual = $event ? 'S' : 'N'\"\r\n                                    class=\"custom-control-input checkbox-success\" type=\"checkbox\">\r\n                                <label class=\"custom-control-label\" for=\"limparPerfilAtual\">\r\n                                    {{'labels.limpaPerfilAtual' | 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\">\r\n                        {{ 'buttons.salvar' | translate }}\r\n                    </button>\r\n                    <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">\r\n                        {{ 'buttons.cancelar' | translate }}\r\n                    </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-portal/ptl-login-portal-index/ptl-login-portal-index.component.html":
/*!**************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/portal/ptl-login-portal/ptl-login-portal-index/ptl-login-portal-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=\"dtLoginPortal\" 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-portal-filter [data]=\"filtro\" (filtrar)=\"executaFiltro($event)\"></app-ptl-login-portal-filter>\n");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PtlLoginPortalFilterComponent", function() { return PtlLoginPortalFilterComponent; });
/* 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_portal_model__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../ptl-login-portal.model */ "./src/app/pages/portal/ptl-login-portal/ptl-login-portal.model.ts");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};




var PtlLoginPortalFilterComponent = /** @class */ (function () {
    function PtlLoginPortalFilterComponent(loginService) {
        this.loginService = loginService;
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.login = loginService.getLogin();
    }
    PtlLoginPortalFilterComponent.prototype.ngOnInit = function () {
        this.filtro = this.data;
        this.initListaTiposUsuario();
    };
    PtlLoginPortalFilterComponent.prototype.initListaTiposUsuario = function () {
        this.listaTiposUsuario = [
            { value: "2", label: "labels.cliente" },
            { value: "16", label: "labels.transportadora" },
            { value: "17", label: "labels.colaborador" },
            { value: "20", label: "labels.autoridade" },
            { value: "21", label: "labels.agendamento" },
            { value: "31", label: "labels.clienteVenda" },
            { value: "32", label: "labels.emitente" }
        ];
        if (this.login.usuario === "UNISOL") {
            this.listaTiposUsuario.push({ value: "15", label: "labels.receita" });
            this.listaTiposUsuario = this.listaTiposUsuario.sort(function (a, b) { return Number(a.value) - Number(b.value); });
        }
    };
    PtlLoginPortalFilterComponent.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-portal-filter-dialog").modal("hide");
    };
    PtlLoginPortalFilterComponent.ctorParameters = function () { return [
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_3__["LoginService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", _ptl_login_portal_model__WEBPACK_IMPORTED_MODULE_1__["PtlLoginPortalFilter"])
    ], PtlLoginPortalFilterComponent.prototype, "data", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], PtlLoginPortalFilterComponent.prototype, "filtrar", void 0);
    PtlLoginPortalFilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-ptl-login-portal-filter",
            template: __importDefault(__webpack_require__(/*! raw-loader!./ptl-login-portal-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/portal/ptl-login-portal/ptl-login-portal-filter/ptl-login-portal-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_3__["LoginService"]])
    ], PtlLoginPortalFilterComponent);
    return PtlLoginPortalFilterComponent;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PtlLoginPortalFormComponent", function() { return PtlLoginPortalFormComponent; });
/* 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_portal_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../ptl-login-portal.service */ "./src/app/pages/portal/ptl-login-portal/ptl-login-portal.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_portal_model__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../ptl-login-portal.model */ "./src/app/pages/portal/ptl-login-portal/ptl-login-portal.model.ts");
/* harmony import */ var _ptl_login_portal_constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../ptl-login-portal.constants */ "./src/app/pages/portal/ptl-login-portal/ptl-login-portal.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");
/* harmony import */ var app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! app/pages/cadastro/destinatario/destinatario.service */ "./src/app/pages/cadastro/destinatario/destinatario.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 PtlLoginPortalFormComponent = /** @class */ (function (_super) {
    __extends(PtlLoginPortalFormComponent, _super);
    function PtlLoginPortalFormComponent(router, messageService, activatedRoute, service, funcoesService, permissoesUtils, loginService, cpfCnpjService, destinatarioService) {
        var _this = _super.call(this, new _ptl_login_portal_constants__WEBPACK_IMPORTED_MODULE_7__["PtlLoginPortalConstants"](), 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.destinatarioService = destinatarioService;
        _this.data = new _ptl_login_portal_model__WEBPACK_IMPORTED_MODULE_6__["PtlLoginPortal"]();
        _this.importacaoUsuario = new _ptl_login_portal_model__WEBPACK_IMPORTED_MODULE_6__["PtlLoginPortalImportUser"]();
        _this.tipoDestinatario = "";
        _this.mensagens = [];
        _this.constantes = new _ptl_login_portal_constants__WEBPACK_IMPORTED_MODULE_7__["PtlLoginPortalConstants"]();
        _this.exibirOpcaoImportar = false;
        _this.podeVisualizarSenha = false;
        _this.podeAlterarSenha = false;
        _this.target = _this.funcoesService.getTargetLocation();
        _this.senhaPortalAtual = "";
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        _this.login = loginService.getLogin();
        return _this;
    }
    PtlLoginPortalFormComponent.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");
            _this.data = new _ptl_login_portal_model__WEBPACK_IMPORTED_MODULE_6__["PtlLoginPortal"]();
            if (id) {
                _this.service.getById(id).subscribe(function (resp) {
                    _this.data = resp;
                    _this.senhaPortalAtual = _this.data.senha;
                    _this.onTipoUsuarioChange(_this.data.tipoUsuario.toString());
                    _this.exibirImportarPerfilUsuario();
                    if (_this.funcoesService.isPositive(_this.data.codDest)) {
                        _this.destinatarioService.getById(_this.data.codDest).subscribe(function (r) {
                            _this.data.destinatario = r;
                        });
                    }
                });
            }
        }, function () {
            _this.permissoesUtils.back();
        });
        this.initListaTiposUsuario();
    };
    PtlLoginPortalFormComponent.prototype.exibirImportarPerfilUsuario = function () {
        this.exibirOpcaoImportar = (this.funcoesService.isEdit(this.actionForm) && this.data.tipoUsuario === 2);
    };
    PtlLoginPortalFormComponent.prototype.initListaTiposUsuario = function () {
        this.listaTiposUsuario = [
            { value: "2", label: "labels.cliente" },
            { value: "16", label: "labels.transportadora" },
            { value: "17", label: "labels.colaborador" },
            { value: "20", label: "labels.autoridade" },
            { value: "21", label: "labels.agendamento" },
            { value: "31", label: "labels.clienteVenda" },
            { value: "32", label: "labels.emitente" }
        ];
        if (this.login.usuario === "UNISOL") {
            this.listaTiposUsuario.push({ value: "15", label: "labels.receita" });
            this.listaTiposUsuario = this.listaTiposUsuario.sort(function (a, b) { return Number(a.value) - Number(b.value); });
        }
    };
    PtlLoginPortalFormComponent.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.funcoesService.isCreate(this.actionForm) && !this.validaCpf()) {
            return;
        }
        this.data.logRotina = "Login Portal";
        this.data.sisFormularioId = this.constantes.sisFormularioId;
        this.data.libRotinaAlterarSenha = 8;
        this.service
            .save(this.data, this.funcoesService.isEdit(this.actionForm))
            .subscribe(function (result) {
            _this.mensagens = _this.messageService.validationResult(result.validationResult);
            if (!result.validationResult.isValid) {
                app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_10__["EventEmitterService"].get("backError").emit(_this.mensagens);
            }
            else {
                _this.messageService.saveSuccess("titles.loginPortal");
                if (_this.senhaPortalAtual !== _this.data.senha) {
                    _this.messageService.confirm("titles.loginPortal", "messages.desejaEnviarEmailUsuarioComLoginSenha", "", function () {
                        if (_this.funcoesService.isUndefinedOrNull(_this.data.email)) {
                            _this.messageService.error("titles.loginPortal", "messages.emailNaoInformado");
                        }
                        else {
                            var emailData = {
                                isAlteracao: _this.funcoesService.isEdit(_this.actionForm),
                                emailTo: _this.data.email,
                                login: _this.data.login,
                                senha: result.senha
                            };
                            _this.service.getUsuarioSinc().subscribe(function (_) {
                                _this.filtrar();
                            });
                            _this.service.enviarEmailCadastro(emailData).subscribe(function (emailResult) {
                                _this.mensagens = _this.messageService.validationResult(emailResult.validationResult);
                                if (!emailResult.validationResult.isValid) {
                                    _this.messageService.error("titles.loginPortal", _this.mensagens[0]);
                                }
                                else {
                                    _this.messageService.info("titles.loginPortal", "messages.emailEnviadoSucesso");
                                    _this.redirectAfterSubmit(create);
                                }
                            });
                        }
                    }, null, function () {
                        _this.redirectAfterSubmit(create);
                    });
                }
                else {
                    _this.service.getUsuarioSinc().subscribe(function (_) {
                        _this.filtrar();
                    });
                    _this.redirectAfterSubmit(create);
                }
            }
        });
    };
    PtlLoginPortalFormComponent.prototype.redirectAfterSubmit = function (create) {
        if (create) {
            this.data = new _ptl_login_portal_model__WEBPACK_IMPORTED_MODULE_6__["PtlLoginPortal"]();
            this.router.navigate([this.target + "/portal/loginPortal/create"]);
        }
        else {
            this.back();
        }
    };
    PtlLoginPortalFormComponent.prototype.saveAndCreate = function (form) {
        this.onSubmit(form, true);
    };
    PtlLoginPortalFormComponent.prototype.edit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () {
            _this.router.navigate([_this.target + "/portal/loginPortal/edit/" + _this.data.ptlUsuarioId]);
        });
    };
    PtlLoginPortalFormComponent.prototype.back = function () {
        this.funcoesService.desabilitarFiltro();
        this.router.navigate([this.target + "/portal/loginPortal"]);
    };
    PtlLoginPortalFormComponent.prototype.importUserProfile = function () {
        jQuery("#ptl-login-portal-import-user-dialog").modal("show");
    };
    PtlLoginPortalFormComponent.prototype.validaCpf = function () {
        var valid = this.cpfCnpjService.valida_cpf(this.data.cpf);
        if (!valid) {
            this.messageService.warning("titles.loginPortal", "messages.cpfInvalido");
            return false;
        }
        return true;
    };
    PtlLoginPortalFormComponent.prototype.onTipoUsuarioChange = function (value) {
        this.tipoDestinatario = value === "16" ? "T" : "";
    };
    PtlLoginPortalFormComponent.prototype.onGrupoClienteChange = function (grupoCliente) {
        this.data.codGrupo = this.funcoesService.isUndefinedOrNull(grupoCliente)
            ? null : grupoCliente.grupoClienteId;
    };
    PtlLoginPortalFormComponent.prototype.executaImportacaoUsuario = function (event) {
        var _this = this;
        this.importacaoUsuario = event;
        this.importacaoUsuario.ptlUsuarioIdO = this.data.ptlUsuarioId;
        this.service
            .importarPerfilUsuario(this.importacaoUsuario)
            .subscribe(function (result) {
            _this.mensagens = _this.messageService.validationResult(result.validationResult);
            if (!result.validationResult.isValid) {
                app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_10__["EventEmitterService"].get("backError").emit(_this.mensagens);
            }
            else {
                _this.messageService.saveSuccess("titles.loginPortal");
                _this.back();
            }
        });
    };
    Object.defineProperty(PtlLoginPortalFormComponent.prototype, "requiredCpf", {
        get: function () {
            return !!this.data.nomeUsuario;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(PtlLoginPortalFormComponent.prototype, "requiredNome", {
        get: function () {
            return !!this.data.cpf;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(PtlLoginPortalFormComponent.prototype, "requiredDestinatario", {
        get: function () {
            if (!this.data.tipoUsuario)
                return false;
            return !['15', '17', '21'].includes(this.data.tipoUsuario.toString());
        },
        enumerable: true,
        configurable: true
    });
    PtlLoginPortalFormComponent.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_portal_service__WEBPACK_IMPORTED_MODULE_3__["PtlLoginPortalService"] },
        { 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"] },
        { type: app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_12__["DestinatarioService"] }
    ]; };
    PtlLoginPortalFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-ptl-login-portal-form",
            template: __importDefault(__webpack_require__(/*! raw-loader!./ptl-login-portal-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/portal/ptl-login-portal/ptl-login-portal-form/ptl-login-portal-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_portal_service__WEBPACK_IMPORTED_MODULE_3__["PtlLoginPortalService"],
            _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"],
            app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_12__["DestinatarioService"]])
    ], PtlLoginPortalFormComponent);
    return PtlLoginPortalFormComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__["BasePermissoes"]));



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PtlLoginPortalImportUserComponent", function() { return PtlLoginPortalImportUserComponent; });
/* 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_portal_model__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../ptl-login-portal.model */ "./src/app/pages/portal/ptl-login-portal/ptl-login-portal.model.ts");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.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 PtlLoginPortalImportUserComponent = /** @class */ (function () {
    function PtlLoginPortalImportUserComponent(messageService) {
        this.messageService = messageService;
        this.executar = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.tipoUsuariosExibir = [2];
    }
    PtlLoginPortalImportUserComponent.prototype.ngOnInit = function () {
        this.dados = this.data;
    };
    PtlLoginPortalImportUserComponent.prototype.onLoginSelected = function (event) {
        this.data.ptlUsuarioIdD = event.ptlUsuarioId;
    };
    PtlLoginPortalImportUserComponent.prototype.onSubmit = function (form) {
        if (this.dados.ptlUsuarioIdD > 0) {
            if (form.invalid) {
                _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__["EventEmitterService"].get("formError").emit(form);
                return;
            }
            this.executar.emit(this.dados);
            jQuery("#ptl-login-portal-import-user-dialog").modal("hide");
        }
        else {
            this.messageService.error("titles.loginPortal", "messages.loginNaoInformado");
        }
    };
    PtlLoginPortalImportUserComponent.ctorParameters = function () { return [
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", _ptl_login_portal_model__WEBPACK_IMPORTED_MODULE_1__["PtlLoginPortalImportUser"])
    ], PtlLoginPortalImportUserComponent.prototype, "data", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], PtlLoginPortalImportUserComponent.prototype, "executar", void 0);
    PtlLoginPortalImportUserComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-ptl-login-portal-import-user",
            template: __importDefault(__webpack_require__(/*! raw-loader!./ptl-login-portal-import-user.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/portal/ptl-login-portal/ptl-login-portal-import-user/ptl-login-portal-import-user.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"]])
    ], PtlLoginPortalImportUserComponent);
    return PtlLoginPortalImportUserComponent;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PtlLoginPortalIndexComponent", function() { return PtlLoginPortalIndexComponent; });
/* 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 _ptl_login_portal_constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../ptl-login-portal.constants */ "./src/app/pages/portal/ptl-login-portal/ptl-login-portal.constants.ts");
/* harmony import */ var _ptl_login_portal_model__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../ptl-login-portal.model */ "./src/app/pages/portal/ptl-login-portal/ptl-login-portal.model.ts");
/* harmony import */ var _ptl_login_portal_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../ptl-login-portal.service */ "./src/app/pages/portal/ptl-login-portal/ptl-login-portal.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _login_login_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../login/login.service */ "./src/app/pages/login/login.service.ts");
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 PtlLoginPortalIndexComponent = /** @class */ (function (_super) {
    __extends(PtlLoginPortalIndexComponent, _super);
    function PtlLoginPortalIndexComponent(router, service, datatablesService, funcoesService, mensagens, permissoesUtils, loginService) {
        var _this = _super.call(this, new _ptl_login_portal_constants__WEBPACK_IMPORTED_MODULE_5__["PtlLoginPortalConstants"](), funcoesService) || this;
        _this.router = router;
        _this.service = service;
        _this.datatablesService = datatablesService;
        _this.funcoesService = funcoesService;
        _this.mensagens = mensagens;
        _this.permissoesUtils = permissoesUtils;
        _this.loginService = loginService;
        _this.data = new _ptl_login_portal_model__WEBPACK_IMPORTED_MODULE_6__["PtlLoginPortal"]();
        _this.filtro = new _ptl_login_portal_model__WEBPACK_IMPORTED_MODULE_6__["PtlLoginPortalFilter"]();
        _this.podeVisualizarSenha = false;
        _this.podeAlterarSenha = false;
        _this.constantes = new _ptl_login_portal_constants__WEBPACK_IMPORTED_MODULE_5__["PtlLoginPortalConstants"]();
        _this.target = _this.funcoesService.getTargetLocation();
        _this.login = loginService.getLogin();
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    PtlLoginPortalIndexComponent.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);
    };
    PtlLoginPortalIndexComponent.prototype.filtrar = function () {
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () {
            jQuery("#ptl-login-portal-filter-dialog").modal("show");
        });
    };
    PtlLoginPortalIndexComponent.prototype.refresh = function () {
        var _this = this;
        this.filtro.tiposUsuarios = [];
        if (!this.funcoesService.isUndefinedOrNull(this.filtro.tipoUsuarioSelecionado) && this.filtro.tipoUsuarioSelecionado > 0) {
            this.filtro.tiposUsuarios = [this.filtro.tipoUsuarioSelecionado];
        }
        else {
            this.filtro.tiposUsuarios = [2, 16, 17, 20, 21, 31, 32];
            if (this.login.usuario === "UNISOL") {
                this.filtro.tiposUsuarios.push(15);
            }
        }
        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: "dtLoginPortal", columns: columns, data: data, orientationOrder: _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__["EOrientationOrder"].ASC }, function (aData) {
                _this.data = aData;
            });
        });
    };
    PtlLoginPortalIndexComponent.prototype.executaFiltro = function (event) {
        this.filtro = event;
        this.refresh();
    };
    PtlLoginPortalIndexComponent.prototype.detail = function () {
        var _this = this;
        if (!!(this.data.ptlUsuarioId)) {
            this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () {
                _this.router.navigate([_this.target + "/portal/loginPortal/detail/" + _this.data.ptlUsuarioId]);
            });
        }
    };
    PtlLoginPortalIndexComponent.prototype.create = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
            _this.router.navigate([_this.target + "/portal/loginPortal/create"]);
        });
    };
    PtlLoginPortalIndexComponent.prototype.edit = function () {
        var _this = this;
        if (!!(this.data.ptlUsuarioId)) {
            this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () {
                _this.router.navigate([_this.target + "/portal/loginPortal/edit/" + _this.data.ptlUsuarioId]);
            });
        }
    };
    PtlLoginPortalIndexComponent.prototype.print = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () {
            _this.funcoesService.reportInvoc.invocaRelatorio(_this.constantes.reportId, {
                titulo: _this.mensagens.getTranslates('titles', 'loginPortal'),
                subTitulo: ''
            }, {
                tiposUsuarios: JSON.stringify(_this.filtro.tiposUsuarios),
                login: _this.filtro.login,
                nome: _this.filtro.nome,
                flagAtivo: _this.filtro.flagAtivo,
                podeVisualizarSenha: _this.podeVisualizarSenha
            });
        });
    };
    PtlLoginPortalIndexComponent.prototype.properties = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 5, function () {
            _super.prototype.properties.call(_this, _this.data);
        });
    };
    PtlLoginPortalIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 6, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    PtlLoginPortalIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _ptl_login_portal_service__WEBPACK_IMPORTED_MODULE_7__["PtlLoginPortalService"] },
        { type: _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__["DatatablesService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_8__["MessageService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__["PermissoesUtilsService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_10__["LoginService"] }
    ]; };
    PtlLoginPortalIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-ptl-login-portal-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./ptl-login-portal-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/portal/ptl-login-portal/ptl-login-portal-index/ptl-login-portal-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_portal_service__WEBPACK_IMPORTED_MODULE_7__["PtlLoginPortalService"],
            _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__["DatatablesService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_8__["MessageService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__["PermissoesUtilsService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_10__["LoginService"]])
    ], PtlLoginPortalIndexComponent);
    return PtlLoginPortalIndexComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_2__["BasePermissoes"]));



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PtlLoginPortalConstants", function() { return PtlLoginPortalConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var PtlLoginPortalConstants = /** @class */ (function () {
    function PtlLoginPortalConstants() {
        this.sisFormularioId = 345031;
        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.loginPortal";
        this.reportId = "POR0004";
        this.reportTitulo = { "titulo": "Login Portal", "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 PtlLoginPortalConstants;
}());



/***/ }),

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

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

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

var PtlLoginPortalImportUser = /** @class */ (function () {
    function PtlLoginPortalImportUser() {
        this.ptlUsuarioIdD = 0;
    }
    return PtlLoginPortalImportUser;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PtlLoginPortalModule", function() { return PtlLoginPortalModule; });
/* 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_portal_filter_ptl_login_portal_filter_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ptl-login-portal-filter/ptl-login-portal-filter.component */ "./src/app/pages/portal/ptl-login-portal/ptl-login-portal-filter/ptl-login-portal-filter.component.ts");
/* harmony import */ var _ptl_login_portal_form_ptl_login_portal_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ptl-login-portal-form/ptl-login-portal-form.component */ "./src/app/pages/portal/ptl-login-portal/ptl-login-portal-form/ptl-login-portal-form.component.ts");
/* harmony import */ var _ptl_login_portal_import_user_ptl_login_portal_import_user_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ptl-login-portal-import-user/ptl-login-portal-import-user.component */ "./src/app/pages/portal/ptl-login-portal/ptl-login-portal-import-user/ptl-login-portal-import-user.component.ts");
/* harmony import */ var _ptl_login_portal_index_ptl_login_portal_index_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ptl-login-portal-index/ptl-login-portal-index.component */ "./src/app/pages/portal/ptl-login-portal/ptl-login-portal-index/ptl-login-portal-index.component.ts");
/* harmony import */ var _ptl_login_portal_routing_module__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./ptl-login-portal.routing.module */ "./src/app/pages/portal/ptl-login-portal/ptl-login-portal.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 PtlLoginPortalModule = /** @class */ (function () {
    function PtlLoginPortalModule() {
    }
    PtlLoginPortalModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"], _ptl_login_portal_routing_module__WEBPACK_IMPORTED_MODULE_6__["PtlLoginPortalRoutingModule"]],
            declarations: [
                _ptl_login_portal_index_ptl_login_portal_index_component__WEBPACK_IMPORTED_MODULE_5__["PtlLoginPortalIndexComponent"],
                _ptl_login_portal_form_ptl_login_portal_form_component__WEBPACK_IMPORTED_MODULE_3__["PtlLoginPortalFormComponent"],
                _ptl_login_portal_filter_ptl_login_portal_filter_component__WEBPACK_IMPORTED_MODULE_2__["PtlLoginPortalFilterComponent"],
                _ptl_login_portal_import_user_ptl_login_portal_import_user_component__WEBPACK_IMPORTED_MODULE_4__["PtlLoginPortalImportUserComponent"]
            ]
        })
    ], PtlLoginPortalModule);
    return PtlLoginPortalModule;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PtlLoginPortalRoutingModule", function() { return PtlLoginPortalRoutingModule; });
/* 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_portal_form_ptl_login_portal_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ptl-login-portal-form/ptl-login-portal-form.component */ "./src/app/pages/portal/ptl-login-portal/ptl-login-portal-form/ptl-login-portal-form.component.ts");
/* harmony import */ var _ptl_login_portal_index_ptl_login_portal_index_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ptl-login-portal-index/ptl-login-portal-index.component */ "./src/app/pages/portal/ptl-login-portal/ptl-login-portal-index/ptl-login-portal-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_portal_index_ptl_login_portal_index_component__WEBPACK_IMPORTED_MODULE_4__["PtlLoginPortalIndexComponent"],
        data: { breadcrumb: "loginPortal", formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index } }
    },
    {
        path: "create",
        component: _ptl_login_portal_form_ptl_login_portal_form_component__WEBPACK_IMPORTED_MODULE_3__["PtlLoginPortalFormComponent"],
        data: {
            breadcrumb: "loginPortal",
            formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].create }
        }
    },
    {
        path: "edit/:id",
        component: _ptl_login_portal_form_ptl_login_portal_form_component__WEBPACK_IMPORTED_MODULE_3__["PtlLoginPortalFormComponent"],
        data: {
            breadcrumb: "loginPortal",
            formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].edit }
        }
    },
    {
        path: "detail/:id",
        component: _ptl_login_portal_form_ptl_login_portal_form_component__WEBPACK_IMPORTED_MODULE_3__["PtlLoginPortalFormComponent"],
        data: {
            breadcrumb: "loginPortal",
            formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].detail }
        }
    }
];
var PtlLoginPortalRoutingModule = /** @class */ (function () {
    function PtlLoginPortalRoutingModule() {
    }
    PtlLoginPortalRoutingModule = __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"]],
        })
    ], PtlLoginPortalRoutingModule);
    return PtlLoginPortalRoutingModule;
}());



/***/ }),

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

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






var PtlLoginPortalService = /** @class */ (function (_super) {
    __extends(PtlLoginPortalService, _super);
    function PtlLoginPortalService(http) {
        return _super.call(this, http, "portal/ptlLoginPortal") || this;
    }
    PtlLoginPortalService.prototype.getByFiltro = function (data) {
        return this.http.post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/portal/ptlLoginPortal/getByFiltro", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    PtlLoginPortalService.prototype.enviarEmailCadastro = function (data) {
        return this.http.post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/portal/ptlLoginPortal/enviarEmailCadastro", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    PtlLoginPortalService.prototype.importarPerfilUsuario = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/portal/ptlLoginPortal/importarPerfilUsuario", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    PtlLoginPortalService.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_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    PtlLoginPortalService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"] }
    ]; };
    PtlLoginPortalService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"]])
    ], PtlLoginPortalService);
    return PtlLoginPortalService;
}(_shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_2__["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-portal-ptl-login-portal-module.js.map