PageSourceSearch

https://www.localiza.com/chunk-XJJRIWVO.js

js localiza.com collected 2026-09-27 20:55:53 UTC 17,585 bytes, 1 lines download raw bytes

1import{a as $e}from"./chunk-ADBSXETW.js";import{a as He,b as Ve,c as Ge}from"./chunk-JBDND2UB.js";import{a as ze}from"./chunk-I3FPJZUD.js";import{a as Ne}from"./chunk-F34HO42V.js";import{a as Oe}from"./chunk-UHIYHAFB.js";import{a as je}from"./chunk-AFEA7VXB.js";import{a as Ue}from"./chunk-W7DPUTJA.js";import{a as De}from"./chunk-NSXDVOKM.js";import{a as Fe}from"./chunk-CMARNTZE.js";import{a as Le}from"./chunk-TCMLJXP7.js";import{a as we}from"./chunk-K7Y3AVGK.js";import{b as ne}from"./chunk-HEL2DFOD.js";import{a as Re}from"./chunk-24R4UJMP.js";import{g as _e,h as Se,i as xe,j as ye,k as Ie,l as Ee,o as z}from"./chunk-EVHGHMIQ.js";import{a as qe}from"./chunk-UTXOMTS4.js";import{a as Me,c as Ce}from"./chunk-6EZRFLTX.js";import{e as Be}from"./chunk-VSKNYKDM.js";import{b as Ae}from"./chunk-DJAUQCDZ.js";import{a as Pe}from"./chunk-ASLMHGEM.js";import{a as ke}from"./chunk-35D6BYCS.js";import{a as Te}from"./chunk-NPSI5SXU.js";import{b as N}from"./chunk-GWNTAW7G.js";import{f as se,k as ce,v as ve,x as be}from"./chunk-KPIX4VLB.js";import{Ja as le,Ka as pe,La as me,Oa as ue,Ta as de,Ua as fe,Va as ge,Wa as he,Ya as j,Za as R}from"./chunk-YNARX3BJ.js";import{E as ee,F as te,G as ie,c as Q,e as H,g as W,h as J,n as X,r as Y,u as Z}from"./chunk-245L5RKF.js";import{a as k}from"./chunk-2HTNUNUQ.js";import{q as oe,s as re,t as F,v as B}from"./chunk-AMGMDZCG.js";import{Cb as D,Cc as G,Db as C,De as ae,Ee as O,Fe as U,Hc as f,Ib as x,Ic as v,Jc as A,M as m,Qa as P,Uc as y,Zd as K,ec as c,fc as l,fd as u,gc as p,gd as d,hc as h,ia as M,kb as a,ke as w,ld as $,oc as V,pe as L,qc as S,sa as I,sc as T,ta as E,wb as n}from"./chunk-IYGGJOPC.js";var Ke=(()=>{let t=class t{constructor(e,o,r,s,g){this._snackBarRef=e,this._authService=o,this.googleAnalyticsService=r,this.data=s,this.platformID=g}ngOnInit(){this.isBrowser=L(this.platformID)}acaoBotaoFechar(){this._snackBarRef.dismiss()}preencherDataLayerIncentivo(){if(this.isBrowser){let e=this._getDadosUsuarioLogado();this.googleAnalyticsService.preencherDataLayer({event:"__MensuraEventos",category:"Incentivo de cadastro de cartao: Redirecionamento",action:"Incentivo de cadastro de cartao: Redirecionamento",label:e.nomeCompleto})}this.acaoBotaoFechar()}_getDadosUsuarioLogado(){return this._authService.obterUsuarioLogado()}};t.\u0275fac=function(o){return new(o||t)(n(xe),n(z),n(N),n(ye),n(P))},t.\u0275cmp=D({type:t,selectors:[["pop-up-incentivo"]],standalone:!1,decls:20,vars:13,consts:[[1,"pop-up"],[1,"pop-up__body"],[1,"icon-div"],["icon","icon_attendance","size","48","data-testid","icone-boneca"],[1,"body-info"],[1,"titulo"],[1,"subtitulo"],[1,"body-link"],["data-testid","link-cartoes-cadastrados",3,"click","routerLink"],[1,"close-popup"],["mat-icon-button","","data-testid","btn-close-popup","color","primary","aria-label","Fechar",3,"click"]],template:function(o,r){o&1&&(l(0,"div",0)(1,"div",1)(2,"div",2),h(3,"ds-icon",3),p(),l(4,"div",4)(5,"p",5),f(6),u(7,"translate"),p(),l(8,"p",6),f(9),u(10,"translate"),p(),l(11,"div",7)(12,"a",8),u(13,"translate"),S("click",function(){return r.preencherDataLayerIncentivo()}),f(14),u(15,"translate"),p()()(),l(16,"div",9)(17,"button",10),S("click",function(){return r.acaoBotaoFechar()}),l(18,"mat-icon"),f(19,"close"),p()()()()()),o&2&&(a(6),v(d(7,5,"popupIncentivo.titulo")),a(3),v(d(10,7,"popupIncentivo.subtitulo")),a(3),c("routerLink",y(d(13,9,"url.meusDados.cartaoCredito"))),a(2),v(d(15,11,"popupIncentivo.textoLink")))},dependencies:[ve,F,j,Me,O],styles:[".close-popup[_ngcontent-%COMP%]{position:absolute;top:0;right:0}.pop-up[_ngcontent-%COMP%]{background-color:#f6ffe2}.pop-up__body[_ngcontent-%COMP%]{display:flex;font-family:LocalizaDinDisplay_Bold,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:18px;color:#4a4a4a;line-height:24px}.pop-up__body[_ngcontent-%COMP%]   .icon-div[_ngcontent-%COMP%]{margin:5px;display:flex;align-items:center}.pop-up__body[_ngcontent-%COMP%]   .body-info[_ngcontent-%COMP%]{margin:5px}.pop-up__body[_ngcontent-%COMP%]   .body-info[_ngcontent-%COMP%]   .body-link[_ngcontent-%COMP%]{margin-top:3px}.pop-up__body[_ngcontent-%COMP%]   .body-info[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#01602a}.titulo[_ngcontent-%COMP%]{font-weight:700}"]});let i=t;return i})();var Qe=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=C({type:t}),t.\u0275inj=M({imports:[w,Ee,U,be,B,R,Ce]});let i=t;return i})();function dt(i,t){i&1&&(l(0,"mat-error"),f(1),u(2,"translate"),p()),i&2&&(a(),v(d(2,1,"login.erroInputUsusario")))}function ft(i,t){i&1&&(l(0,"mat-error"),f(1),u(2,"translate"),p()),i&2&&(a(),v(d(2,1,"login.erroInputSenha")))}function gt(i,t){i&1&&(l(0,"div"),f(1),u(2,"translate"),p()),i&2&&(a(),A(" ",d(2,1,"login.entrar")," "))}function ht(i,t){if(i&1&&h(0,"app-toast-atencao",22),i&2){let b=T();c("mensagensAtencao",b.mensagensAtencao)}}function vt(i,t){if(i&1&&h(0,"app-toast-atencao",23),i&2){let b=T();c("mensagensAtencao",b.mensagensSenhaExpirada)}}function bt(i,t){if(i&1&&h(0,"app-toast-erro",24),i&2){let b=T();c("mensagensErro",b.mensagensErro)}}function _t(i,t){if(i&1&&h(0,"app-toast-usuario-bloqueado",25),i&2){let b=T();c("countdown",b.countdown)("mensagemErro",b.mensagensErroUsuarioBloqueado)}}function St(i,t){i&1&&h(0,"mat-spinner",26)}var We=(()=>{let t=class t{constructor(e,o,r,s,g,_,Xe,Ye,Ze,et,tt,it,ot,rt,at,
1nt){this.breakpointService=e,this.formBuilder=o,this.authService=r,this.router=s,this.activated=g,this.seoBase=_,this.translateService=Xe,this.recaptchaV3Service=Ye,this.matDialog=Ze,this._snackBar=et,this.clientesService=tt,this.featureToggleService=it,this.internacionalizacaoService=ot,this.googleAnalyticsService=rt,this.progressSpinner=at,this.platformID=nt,this.autorizado=!1,this.autenticando=!1,this.exibirToastErro=!1,this.mensagensErro=null,this.exibirToastUsuarioBloqueado=!1,this.exibirToastAtencao=!1,this.mensagensAtencao=null,this.exibirToastSenhaExpirada=!1,this.mensagensSenhaExpirada=null,this.exibeSenha=!1,this.countdown=0,this.featureToggleMFA=k.featureToggle.mfaLogin,this.featureToggleUniid=k.featureToggle.uniid}ngOnInit(){this._checkUniidToggle(),this.subscriptionBreakpoint=this.breakpointService.isDesktop.subscribe(e=>this.isDesktop=e),this.breadCrumb=[{label:"breadCrumbs.login.label",url:"breadCrumbs.login.url"}],this.isBrowser=L(this.platformID),this.isBrasil=this.internacionalizacaoService.recuperarCodigoPais()===Be,this.setarTagsHtml(),this.montarFormulario(),this.subscriptionActive=this.activated.queryParams.subscribe(e=>{this.returnUrl=e.returnUrl}),this.translateService.get("login.usuarioBloqueado").pipe(m(1)).subscribe(e=>{this.mensagensErroUsuarioBloqueado=e})}ngOnDestroy(){this.subscriptionBreakpoint?.unsubscribe(),this.subscriptionActive?.unsubscribe()}montarFormulario(){this.formulario=this.formBuilder.group({usuario:[null,[H.required]],senha:[null,[H.required]]})}onSubmit(){this.autenticando=!0,this.formulario.valid?this.featureToggleService.validarEstadoFuncionalidade(this.featureToggleMFA).pipe(m(1)).subscribe(e=>{e.ativo?this.logarComMFA():this.logarSemMFA()},e=>{this.autenticando=!1,this.translateService.get("url.home").pipe(m(1)).subscribe(o=>{this.router.navigate([o])})}):(this.autenticando=!1,Object.keys(this.formulario.controls).forEach(e=>{this.formulario.get(e).markAsTouched()}))}logarComMFA(){this.recaptchaV3Service.execute("loginMFA").pipe(m(1)).subscribe(e=>{let o=this.formulario.get("usuario").value,r=this.formulario.get("senha").value;this.autenticando=!0,this.limparToast(),this.authService.loginMFA(o,r,e).subscribe(s=>{this.callMFA(s,o,r),this.autenticando=!1},s=>{this.processaErro(s)})})}callMFA(e,o,r){this.matDialog.open(Ne,{maxWidth:this.isDesktop?"80rem":"100%",maxHeight:this.isDesktop?"60rem":"100%",panelClass:"matDialog100Percent",data:{celularMascarado:e.telefone.numero,emailMascarado:e.email,ddi:e.telefone.ddi,userId:e.clientePessoaFisicaId,usuario:o,senha:r,api:"mfaLogin"}}).afterClosed().subscribe(g=>{g?(this.callPopupIncentivo(),this.returnUrl?this.router.navigateByUrl(this.returnUrl):this.router.navigate([k.urlCanaisDigitais.authDefaultReturnUrl])):console.log("usu\xE1rio n\xE3o autenticado"),this.autenticando=!1})}logarSemMFA(){this.recaptchaV3Service.execute("autenticar").pipe(m(1)).subscribe(e=>{let o=this.formulario.get("usuario").value,r=this.formulario.get("senha").value;this.autenticando=!0,this.limparToast(),this.authService.autenticar(o,r,e).pipe(m(1)).subscribe(s=>{this.returnUrl?this.router.navigateByUrl(this.returnUrl):this.router.navigate([k.urlCanaisDigitais.authDefaultReturnUrl]),this.autenticando=!1},s=>{this.processaErro(s)},()=>{this.callPopupIncentivo()})})}callPopupIncentivo(){this.clientesService.obterQuantidadeCartoesCadastrados().pipe(m(1)).subscribe(e=>{e.quantidadeCartoesCadastrados===0&&this.isBrasil&&(this.popUpIncentivo(),this.isBrowser&&this.preencherDataLayerIncentivo())})}processaErro(e){if(e&&e.error){switch(e.status){case 401:this.exibirToastErro=!0,this.mensagensErro=new Array,this.translateService.get("login.erros.loginInvalido").pipe(m(1)).subscribe(o=>{this.mensagensErro.push(o)});break;case 403:this.processaErroForbidden(e);break;default:this.exibirToastErro=!0;break}this.autenticando=!1}}processaErroForbidden(e){var o=new Ge(e.error);if(o.forbidden)switch(o.forbidden.type){case 1:this.exibirToastErro=!0,this.mensagensErro=new Array,this.translateService.get("login.erros.autenticacao").pipe(m(1)).subscribe(_=>{this.mensagensErro.push(_)});break;case 2:this.exibirToastUsuarioBloqueado=!0;let r=o.forbidden.expiration;this.countdown=(r.getTime()-new Date().getTime())/1e3;break;case 3:this.exibirToastAtencao=!0,this.mensagensAtencao=new Array;let s=this.obterMensagemCadastroPendente();this.mensagensAtencao.push(s);break;case 4:this.exibirToastSenhaExpirada=!0,this.mensagensSenhaExpirada=new Array;let g=this.obterMensagemSenhaExpirada();this.mensagensSenhaExpirada.push(g);break;default:this.exibirToastErro=!0,this.mensagensErro=new Array,this.translateService.get("login.erros.loginInvalido").pipe(m(1)).subscribe(_=>{this.mensagensErro.push(_)});break}}obterMensagemCadastroPendente(){let e=new ze;return e.tipoConteudo="Html",this.translateService.get("login.toast.cadastroDesativado").pipe(m(1)).subscribe(o=>{e.conteudo=o}),e}obterMensagemSenhaExpirada(){let e=new $e;return e.tipoConteudo="Html",this.translateService.get("login.toast.senhaExpirada").pipe(m(1)).subscribe(o=>{e.conteudo=o}),e}limparToast(){this.exibirToastErro=!1,this.mensagensErro=null,this.exibirToastUsuarioBloqueado=!1,this.exibirToastAtencao=!1,this.mensagensAtencao=null}exibirSenha(){this.exibeSenha=!this.exibeSenha}redirecionarNaoSouClienteLegado(e){if(!(e&&!qe.eventMark(e)))return this.translateService.get("url.cadastro.dadosPessoais").pipe(m(1)).subscribe(o=>{this.router.navigate([o])}),!1}
1verificaExibicaoMensagemErro(e){return De.verificaInvalidTouched(e,this.formulario)}setarTagsHtml(){this.seoBase.removeDescription(),this.translateService.get("login.seo.title").pipe(m(1)).subscribe(e=>{this.seoBase.setTitle(e)})}popUpIncentivo(){this._snackBar.openFromComponent(Ke,{horizontalPosition:"right",verticalPosition:"top",panelClass:["snackbar-background-color"]})}preencherDataLayerIncentivo(){if(this.isBrowser){let e=this._getDadosUsuarioLogado();this.googleAnalyticsService.preencherDataLayer({event:"__MensuraEventos",category:"Incentivo de cadastro de cartao: Popup",action:"Incentivo de cadastro de cartao: Popup",label:e.id})}}_getDadosUsuarioLogado(){return this.authService.obterUsuarioLogado()}_checkUniidToggle(){this.progressSpinner.spin$.next(!0),this.featureToggleService.validarEstadoFuncionalidade(this.featureToggleUniid).pipe(m(1)).subscribe(e=>{this.progressSpinner.spin$.next(!1),e.ativo&&this.uniidLogin()},e=>{this.translateService.get("url.home").pipe(m(1)).subscribe(o=>{this.router.navigate([o])}),this.progressSpinner.spin$.next(!1)})}uniidLogin(){this.authService.grantCodePostUniId(void 0,!0)}};t.\u0275fac=function(o){return new(o||t)(n(Te),n(ee),n(z),n(re),n(oe),n(we),n(ae),n(ne),n(se),n(Ie),n(_e),n(Re),n(Ae),n(N),n(Se),n(P))},t.\u0275cmp=D({type:t,selectors:[["app-login"]],standalone:!1,decls:41,vars:40,consts:[["spinner",""],[3,"breadCrumbs"],[1,"container"],[1,"login"],[1,"login__conteudo"],[1,"cabecalho"],["id","tituloLogin"],[3,"ngSubmit","formGroup"],[1,"input-formulario"],["id","usuario","data-testid","inputUsuario","matInput","","formControlName","usuario","autocomplete","off"],[4,"ngIf"],["id","senha","data-testid","inputSenha","matInput","","formControlName","senha","autocomplete","off",3,"type"],["id","exibirSenha","matSuffix","",1,"input-formulario__icone-visualizar-senha",3,"click"],["id","btnEntrar","data-testid","btnEntrar","type","submit",1,"entrar",3,"disabled"],[4,"ngIf","ngIfElse"],[3,"mensagensAtencao",4,"ngIf"],["data-testid","toastSenhaExpirada",3,"mensagensAtencao",4,"ngIf"],[3,"mensagensErro",4,"ngIf"],[3,"countdown","mensagemErro",4,"ngIf"],[1,"btn-login"],["id","btnNaoSouCliente","tabindex","0",1,"nao-sou-cliente",3,"click","keydown","title"],["id","esqueciSenha",3,"routerLink","title"],[3,"mensagensAtencao"],["data-testid","toastSenhaExpirada",3,"mensagensAtencao"],[3,"mensagensErro"],[3,"countdown","mensagemErro"],[1,"spinner"]],template:function(o,r){if(o&1){let s=V();h(0,"app-breadcrumb",1),l(1,"div",2)(2,"div",3)(3,"div",4)(4,"div",5)(5,"h2",6),f(6),u(7,"translate"),p()(),l(8,"form",7),S("ngSubmit",function(){return I(s),E(r.onSubmit())}),l(9,"mat-form-field",8)(10,"mat-label"),f(11),u(12,"translate"),p(),h(13,"input",9),x(14,dt,3,3,"mat-error",10),p(),l(15,"mat-form-field",8)(16,"mat-label"),f(17),u(18,"translate"),p(),h(19,"input",11),l(20,"mat-icon",12),S("click",function(){return I(s),E(r.exibirSenha())}),f(21),p(),x(22,ft,3,3,"mat-error",10),p(),l(23,"button",13),x(24,gt,3,3,"div",14),p(),x(25,ht,1,1,"app-toast-atencao",15)(26,vt,1,1,"app-toast-atencao",16)(27,bt,1,1,"app-toast-erro",17)(28,_t,1,2,"app-toast-usuario-bloqueado",18),l(29,"div",19)(30,"a",20),u(31,"translate"),S("click",function(){return I(s),E(r.redirecionarNaoSouClienteLegado(null))})("keydown",function(_){return I(s),E(r.redirecionarNaoSouClienteLegado(_))}),f(32),u(33,"translate"),p(),x(34,St,1,0,"ng-template",null,0,$),l(36,"a",21),u(37,"translate"),u(38,"translate"),f(39),u(40,"translate"),p()()()()()()}if(o&2){let s=G(35);c("breadCrumbs",r.breadCrumb),a(6),A(" ",d(7,24,"login.titulo")," "),a(2),c("formGroup",r.formulario),a(3),A(" ",d(12,26,"login.inputUsusario")," "),a(3),c("ngIf",r.verificaExibicaoMensagemErro("usuario")),a(3),v(d(18,28,"login.inputSenha")),a(2),c("type",r.exibeSenha?"text":"password"),a(2),A(" ",r.exibeSenha?"visibility":"visibility_off"),a(),c("ngIf",r.verificaExibicaoMensagemErro("senha")),a(),c("disabled",r.autenticando),a(),c("ngIf",!r.autenticando)("ngIfElse",s),a(),c("ngIf",r.exibirToastAtencao),a(),c("ngIf",r.exibirToastSenhaExpirada),a(),c("ngIf",r.exibirToastErro),a(),c("ngIf",r.exibirToastUsuarioBloqueado),a(2),c("title",y(d(31,30,"login.naoECliente"))),a(2),v(d(33,32,"login.naoECliente")),a(4),c("routerLink",y(d(37,34,"url.esqueciMinhaSenha.passo01")))("title",y(d(38,36,"login.esqueciMinhaSenha"))),a(3),v(d(40,38,"login.esqueciMinhaSenha"))}},dependencies:[K,X,Q,W,J,j,de,ue,le,pe,me,ge,Y,Z,ke,He,Ue,Le,F,O],styles:["h1[_ngcontent-%COMP%]{color:#01602a;font-size:3.2rem;font-family:LocalizaDinDisplay_Regular,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:400;line-height:3.8rem;text-transform:none}
1h2[_ngcontent-%COMP%]{font-size:2.4rem;font-family:LocalizaDinDisplay_Regular,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:700;line-height:2.9rem;color:#01602a;text-transform:none}h3[_ngcontent-%COMP%]{font-size:2rem;font-family:LocalizaDinDisplay_Regular,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:700;line-height:2.4rem;color:#01602a}.login[_ngcontent-%COMP%]{align-items:center;display:flex;justify-content:center;margin:2rem 0 0;padding:0}.cabecalho[_ngcontent-%COMP%]{margin-top:8.6rem}@media(min-width:1200px){form[_ngcontent-%COMP%]{width:40rem}}.esqueci-senha[_ngcontent-%COMP%]{margin:1rem 0}.esqueci-senha[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#01602a;font-family:LocalizaDinDisplay_Regular,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:1.6rem;line-height:2rem}.btn-login[_ngcontent-%COMP%]{align-items:center;display:flex;justify-content:space-between;margin-top:3rem}.btn-login[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#01602a;display:block;font-family:LocalizaDinDisplay_Regular,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:1.6rem;line-height:2rem;text-decoration:underline}.nao-sou-cliente[_ngcontent-%COMP%]{cursor:pointer}button[_ngcontent-%COMP%]{border:none;border-radius:.4rem;font-family:LocalizaDinDisplay_Bold,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:1.4rem;font-weight:700;line-height:4.3rem;margin-top:1.5rem;text-transform:uppercase;width:100%}button.entrar[_ngcontent-%COMP%]{background-color:#78de1f;color:#003418}button.nao-sou-cliente[_ngcontent-%COMP%]{background-color:#01602a;color:#78de1f}button[_ngcontent-%COMP%]   .spinner[_ngcontent-%COMP%]{margin-bottom:1rem!important;margin-top:1rem}  .snackbar-background-color{background-color:#f6ffe2}"]});let i=t;return i})();var Mt=[{path:"",component:We}],Je=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=C({type:t}),t.\u0275inj=M({imports:[B.forChild(Mt),B]});let i=t;return i})();var ao=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=C({type:t}),t.\u0275inj=M({imports:[w,te,ce,R,fe,he,ie,Oe,Pe,Ve,je,U,Fe,Je,Qe]});let i=t;return i})();export{Ke as a,ao as b};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.