PageSourceSearch

https://id.exame.com/620.de8a3f7cb01946456ed0.js

js exame.com collected 2026-09-24 07:19:17 UTC 8,860 bytes, 1 lines download raw bytes

1(self.webpackChunkexame_id=self.webpackChunkexame_id||[]).push([[620],{8404:(e,t,o)=>{"use strict";o.d(t,{r:()=>s});var r=o(8619),n=o(1116);function i(e,t){1&e&&r._UZ(0,"div",2)}let s=(()=>{class e{constructor(){this.buttonTextInput="",this.disabled=!1,this.loading=!1,this.buttonText="Continuar"}ngOnInit(){this.buttonText=this.buttonTextInput}setRequestState(){this.buttonText="Carregando...",this.loading=!0}resetState(){this.loading=!1,this.buttonText=this.buttonTextInput}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r.Xpm({type:e,selectors:[["app-button"]],inputs:{buttonTextInput:"buttonTextInput",disabled:"disabled"},decls:3,vars:3,consts:[["id","submit-button","type","submit",1,"primary-button",3,"disabled"],["class","loader",4,"ngIf"],[1,"loader"]],template:function(e,t){1&e&&(r.TgZ(0,"button",0),r._uU(1),r.YNc(2,i,1,0,"div",1),r.qZA()),2&e&&(r.Q6J("disabled",t.disabled||t.loading),r.xp6(1),r.hij(" ",t.buttonText," "),r.xp6(1),r.Q6J("ngIf",t.loading))},directives:[n.O5],encapsulation:2}),e})()},9620:(e,t,o)=>{"use strict";o.r(t),o.d(t,{RedefinePasswordModule:()=>k});var r=o(3618),n=o(1116),i=o(1462),s=o(8404),a=o(3050),d=o(4791),u=o(529),l=o(8619),c=o(4438),p=o(2693);let m=(()=>{class e{constructor(e){this.httpClient=e}redefinePassword(e){return this.httpClient.post(`${u.N.apiUrl}/v1/auth/confirmForgotPassword`,e)}}return e.\u0275fac=function(t){return new(t||e)(l.LFG(p.eN))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var h=o(514),g=o(6484);function f(e,t){if(1&e&&(l.TgZ(0,"div",3),l._UZ(1,"input",4),l.qZA(),l._UZ(2,"app-password-input",5),l._UZ(3,"app-password-input",6),l.TgZ(4,"div",7),l._UZ(5,"app-button",8,9),l.qZA()),2&e){const e=l.oxw(2);l.xp6(1),l.Q6J("value",e.email),l.xp6(1),l.Q6J("parentForm",e.redefineForm)("placeholder","Nova senha")("id","new-password"),l.xp6(1),l.Q6J("parentForm",e.redefineForm)("placeholder","Confirmar nova senha")("controlName","confirmPassword")("textType","confirm-password"),l.xp6(2),l.Q6J("buttonTextInput","Atualizar senha")}}function v(e,t){if(1&e){const e=l.EpF();l.TgZ(0,"div",10),l.TgZ(1,"button",11),l.NdJ("click",function(){return l.CHM(e),l.oxw(2).login()}),l._uU(2,"Fazer login"),l.qZA(),l.qZA()}}function w(e,t){if(1&e){const e=l.EpF();l.TgZ(0,"div",1),l.TgZ(1,"form",2),l.NdJ("ngSubmit",function(){return l.CHM(e),l.oxw().redefinePassword()}),l.TgZ(2,"h4"),l._uU(3),l.qZA(),l.YNc(4,f,7,9,"ng-template",0),l.YNc(5,v,3,0,"ng-template",0),l.qZA(),l.qZA()}if(2&e){const e=l.oxw();l.xp6(1),l.Q6J("formGroup",e.redefineForm),l.xp6(2),l.Oqu(e.redefineSuccess?"A sua senha foi atualizada!":"Redefini\xe7\xe3o de senha"),l.xp6(1),l.Q6J("ngIf",!e.redefineSuccess),l.xp6(1),l.Q6J("ngIf",e.redefineSuccess)}}const x=function(){return["/password"]},b=function(e){return{email:e}};function P(e,t){if(1&e){const e=l.EpF();l.TgZ(0,"div",12),l.TgZ(1,"form",2),l.NdJ("ngSubmit",function(){return l.CHM(e),l.oxw().redefinePassword()}),l.TgZ(2,"h4",13),l._uU(3,"A sess\xe3o expirou"),l.qZA(),l.TgZ(4,"p",14),l._uU(5,"Como voc\xea ficou inativo por algum tempo, \xe9 preciso realizar o processo de redefini\xe7\xe3o de senha novamente."),l.qZA(),l.TgZ(6,"div",15),l.TgZ(7,"button",16),l._uU(8,"RECUPERAR SENHA"),l.qZA(),l.qZA(),l.qZA(),l.qZA()}if(2&e){const e=l.oxw();l.xp6(1),l.Q6J("formGroup",e.redefineForm),l.xp6(6),l.Q6J("routerLink",l.DdM(3,x))("state",l.VKq(4,b,e.email))}}let T=(()=>{class e{constructor(e,t,o,r,n,s){this.route=e,this.sharedService=t,this.redefinePasswordService=o,this.modalService=r,this.activedRoute=n,this.router=s,this.email="",this.validUntil="",this.redefineSuccess=!1,this.isTokenStillValid=!1,this.redefineForm=new i.cw({email:new i.NI("",[i.kI.required,i.kI.pattern(a.CU)]),password:new i.NI("",[i.kI.required,i.kI.pattern(a.zU)]),confirmPassword:new i.NI("",[i.kI.required])},{validators:[this.match("password","confirmPassword")]}),this._routeParams=null,this.routeParamsSubscription=this.route.paramMap.subscribe(e=>{this._routeParams=e})}get emaiGetl(){return this.redefineForm.get("email")}get password(){return this.redefineForm.get("password")}get confirmPassword(){return this.redefineForm.get("confirmPassword")}ngOnInit(){this.email=this.sharedService.getQueryParam("email"),this.validUntil=this.sharedService.getQueryParam("validation"),this.isTokenStillValid=this.isTokenValid()}ngOnDestroy(){var e;
1null===(e=this.routeParamsSubscription)||void 0===e||e.unsubscribe()}redefinePassword(){var e,t,o,r;this.sharedService.setFormsDirty(this.redefineForm);const n=null===(e=this._routeParams)||void 0===e?void 0:e.get("code");n&&(null===(t=this.password)||void 0===t?void 0:t.valid)&&(null===(o=this.confirmPassword)||void 0===o?void 0:o.valid)&&this.email&&(this.redefineButton.setRequestState(),this.redefinePasswordService.redefinePassword({username:this.email,password:null===(r=this.password)||void 0===r?void 0:r.value,confirmationCode:n}).subscribe(e=>{this.redefineSuccess=!0},e=>{this.redefineButton.resetState(),this.handleError(e)}))}handleError(e){var t,o,r;400===(null===(t=e.error)||void 0===t?void 0:t.statusCode)?this.modalService.showErrorModal("Por favor, repita o processo de recuperar senha.",()=>this.router.navigate(["/password"],{queryParamsHandling:"",state:{email:this.email}}),"TENTAR NOVAMENTE"):404===(null===(o=e.error)||void 0===o?void 0:o.statusCode)?this.modalService.showErrorModal("E-mail n\xe3o encontrado"):412===(null===(r=e.error)||void 0===r?void 0:r.statusCode)?this.modalService.showErrorModal("Usu\xe1rio com registro via rede social n\xe3o pode fazer essa a\xe7\xe3o"):this.modalService.showErrorModal("Por favor, tente novamente.")}login(){const e=`${u.N.exameIdUrl}/login`;let t=Object.entries(this.activedRoute.snapshot.queryParams).map(([e,t])=>`${e}=${t}`);0===t.length&&d.F.redirectTo(e),d.F.redirectTo(`${e}?${t.join("&")}`)}match(e,t){return o=>{const r=o.get(e),n=o.get(t);return(null==r?void 0:r.value)!==(null==n?void 0:n.value)?(null==n||n.setErrors({invalid:!0}),{matching:!0}):(a.zU.test(null==n?void 0:n.value)&&(null==n||n.setErrors(null)),{matching:!1})}}isTokenValid(){const e=Date.now();return!!(this.validUntil&&this.isBase64(decodeURIComponent(this.validUntil))&&e<parseInt(atob(decodeURIComponent(this.validUntil))))}isBase64(e){return e.length%4==0&&/^[A-Za-z0-9+/]+[=]{0,2}$/.test(e)}}return e.\u0275fac=function(t){return new(t||e)(l.Y36(r.gz),l.Y36(c.F),l.Y36(m),l.Y36(h.Z),l.Y36(r.gz),l.Y36(r.F0))},e.\u0275cmp=l.Xpm({type:e,selectors:[["app-redefine-password"]],viewQuery:function(e,t){if(1&e&&l.Gf(s.r,5),2&e){let e;l.iGM(e=l.CRH())&&(t.redefineButton=e.first)}},decls:2,vars:2,consts:[[3,"ngIf"],[1,"card-container"],["id","redefine-form",1,"form-group",3,"formGroup","ngSubmit"],[1,"input-group","align-self-stretch"],["type","email","disabled","",1,"form-input",3,"value"],["autocomplete","new-password",3,"parentForm","placeholder","id"],["autocomplete","new-password",3,"parentForm","placeholder","controlName","textType"],[1,"sm-bottom","input-group","align-self-stretch"],[3,"buttonTextInput"],["redefineButton",""],[1,"sm-bottom"],["type","button",1,"primary-button",3,"click"],[1,"token-error-message-container"],["id","expired-token-title"],["id","expired-token-message"],["id","token-error-message-sm-bottom",1,"sm-bottom"],["type","button","id","token-error-message-button","queryParamsHandling","",1,"primary-button",3,"routerLink","state"]],template:function(e,t){1&e&&(l.YNc(0,w,6,4,"ng-template",0),l.YNc(1,P,9,6,"ng-template",0)),2&e&&(l.Q6J("ngIf",t.isTokenStillValid),l.xp6(1),l.Q6J("ngIf",!t.isTokenStillValid))},directives:[n.O5,i._Y,i.JL,i.sg,g.C,s.r,r.rH],styles:["h4[_ngcontent-%COMP%]{margin:0}#expired-token-message[_ngcontent-%COMP%], #expired-token-title[_ngcontent-%COMP%]{text-align:center;color:#0f1923}#expired-token-message[_ngcontent-%COMP%]{margin:0 auto;font-family:Barlow;width:502px;height:59px}form.form-group[_ngcontent-%COMP%]   .input-group[_ngcontent-%COMP%]{margin-top:24px;margin-bottom:16px}form.form-group[_ngcontent-%COMP%]   .input-group[_ngcontent-%COMP%]   .form-input[_ngcontent-%COMP%]{color:#878c91;background-color:#f9f9f9}.sm-bottom[_ngcontent-%COMP%]{margin-top:24px}#token-error-message-sm-bottom[_ngcontent-%COMP%]{width:333px;margin-top:0}@media screen and (max-width:576px){p[_ngcontent-%COMP%]{margin:8px 0}#expired-token-message[_ngcontent-%COMP%]{margin:8px auto;font-family:Barlow;width:288px;height:59px;text-align:center;color:#0f1923}.card-container[_ngcontent-%COMP%]{margin-top:24px}#token-error-message-sm-bottom[_ngcontent-%COMP%]{width:100%;padding:0 16px;box-sizing:border-box}}"]}),e})();
1var C=o(5425);const Z=[{path:":code",component:T},{path:"",redirectTo:"/password",pathMatch:"full"}];let k=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=l.oAB({type:e}),e.\u0275inj=l.cJS({imports:[[n.ez,r.Bz.forChild(Z),i.UX,C.m]]}),e})()}}]);

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.