PageSourceSearch

https://www.centurio.com.br/_next/static/chunks/pages/nova-senha-cc9f61bff205e40f.js

js centurio.com.br collected 2026-10-02 01:21:21 UTC 3,000 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3494],{62544:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/nova-senha",function(){return t(41921)}])},41921:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSP:function(){return j},default:function(){return g}});var r=t(85893),a=t(67294),i=t(9008),o=t.n(i),s=t(41664),l=t.n(s),c=t(11163),u=t(18745),d=t(60990),h=t(96788),f=t(84677),x=t(26541),v=t(55678),m=t(99671),p=t(30303),j=!0;function g(e){let{token:n}=e,t=(0,u.Z)(),i=(0,p.TV)(t.palette.mode);(0,c.useRouter)();let[s,j]=(0,a.useState)(""),[g,Z]=(0,a.useState)(""),[_,b]=(0,a.useState)(!1),[y,S]=(0,a.useState)(!1);async function w(e){if(e.preventDefault(),!s||!g){v.Am.warning("Preencha todos os campos.");return}if(s!==g){v.Am.error("As senhas n\xe3o coincidem.");return}if(s.length<6){v.Am.error("A senha deve ter pelo menos 6 caracteres.");return}b(!0);try{let e=(0,m.R)();await e.post("/reset-password",{token:n,newPassword:s}),S(!0),v.Am.success("Senha redefinida com sucesso!")}catch(n){var t,r;let e=(null==n?void 0:null===(r=n.response)||void 0===r?void 0:null===(t=r.data)||void 0===t?void 0:t.error)||"Token inv\xe1lido ou expirado. Solicite uma nova redefini\xe7\xe3o.";v.Am.error(e)}finally{b(!1)}}return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o(),{children:(0,r.jsx)("title",{children:"Centurio - Nova senha"})}),(0,r.jsx)(d.Z,{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:"80vh",m:2,children:(0,r.jsxs)(d.Z,{width:"100%",maxWidth:"400px",children:[(0,r.jsx)(h.Z,{variant:"h4",component:"h1",gutterBottom:!0,children:"Criar nova senha"}),y?(0,r.jsxs)(d.Z,{children:[(0,r.jsx)(h.Z,{variant:"body1",gutterBottom:!0,children:"Sua senha foi redefinida com sucesso!"}),(0,r.jsx)(d.Z,{mt:2,children:(0,r.jsx)(l(),{href:"/",passHref:!0,children:(0,r.jsx)(f.Z,{color:"secondary",variant:"contained",fullWidth:!0,children:"Ir para o login"})})})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(h.Z,{variant:"body2",gutterBottom:!0,sx:{mb:2},children:"Digite sua nova senha abaixo."}),(0,r.jsx)("form",{onSubmit:w,children:(0,r.jsxs)(d.Z,{display:"flex",flexDirection:"column",gap:2,children:[(0,r.jsx)(x.Z,{fullWidth:!0,variant:"outlined",label:"Nova senha",type:"password",value:s,onChange:e=>j(e.target.value),InputLabelProps:{shrink:!0}}),(0,r.jsx)(x.Z,{fullWidth:!0,variant:"outlined",label:"Confirmar nova senha",type:"password",value:g,onChange:e=>Z(e.target.value),InputLabelProps:{shrink:!0}}),(0,r.jsx)(f.Z,{fullWidth:!0,type:"submit",color:"secondary",variant:"contained",disabled:_,children:_?"Salvando...":"Salvar nova senha"})]})}),(0,r.jsx)(d.Z,{mt:2,textAlign:"center",children:(0,r.jsx)(l(),{href:"/esqueci-senha",passHref:!0,children:(0,r.jsx)(f.Z,{variant:"text",sx:{color:i.greenAccent[400],textTransform:"none"},children:"Solicitar novo link"})})})]})]})})]})}},9008:function(e,n,t){e.exports=t(23867)}},function(e){e.O(0,[1423,7412,6541,2888,9774,179],function(){return e(e.s=62544)}),_N_E=e.O()}]);

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.