https://autoai-re-fap-v2.vercel.app/_next/static/chunks/pages/pro/reset-password-93f72c5687ec6f0b.js
1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3773],{1527:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var o=n(7876),r=n(4232),i=n(7328),a=n.n(i),s=n(9099);function l(){let e=(0,s.useRouter)(),[t,n]=(0,r.useState)(""),[i,l]=(0,r.useState)(""),[d,c]=(0,r.useState)(""),[p,u]=(0,r.useState)("idle"),[g,f]=(0,r.useState)("");async function h(e){if(e.preventDefault(),f(""),i!==d){f("Les deux mots de passe ne sont pas identiques"),u("error");return}u("loading");try{let e=await fetch("/api/pro/auth",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"reset",reset_token:t,password:i})}),n=await e.json();if(!e.ok)throw Error(n.error||"Erreur");u("done"),setTimeout(()=>{window.location.href="/pro/login"},2e3)}catch(e){f(e.message),u("error")}}(0,r.useEffect)(()=>{e.isReady&&n(String(e.query.token||""))},[e.isReady,e.query.token]);let x={display:"block",fontSize:11,fontWeight:700,color:"#8b95a5",textTransform:"uppercase",letterSpacing:".5px",marginBottom:5},m={width:"100%",padding:"12px 16px",borderRadius:10,border:"1px solid rgba(255,255,255,.1)",background:"rgba(0,0,0,.4)",color:"#f0f2f5",fontSize:14,outline:"none",fontFamily:"inherit",marginBottom:14},y={color:"#a78bfa",textDecoration:"none",fontWeight:600,cursor:"pointer"},b=e.isReady&&!t;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(a(),{children:[(0,o.jsx)("title",{children:"JeRouleMalin\xae PRO | Nouveau mot de passe"}),(0,o.jsx)("meta",{name:"robots",content:"noindex"}),(0,o.jsx)("link",{href:"https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap",rel:"stylesheet"})]}),(0,o.jsx)("div",{style:{background:"#060a13",minHeight:"100vh",display:"flex",alignItems:"center",justifyContent:"center",fontFamily:"Inter, -apple-system, sans-serif",padding:24},children:(0,o.jsxs)("div",{style:{background:"rgba(17,24,39,.85)",border:"1px solid rgba(167,139,250,.2)",borderRadius:20,padding:36,maxWidth:440,width:"100%",backdropFilter:"blur(16px)",boxShadow:"0 20px 60px rgba(0,0,0,.4)"},children:[(0,o.jsxs)("div",{style:{fontSize:20,fontWeight:800,marginBottom:4,color:"#f0f2f5",textAlign:"center"},children:["Je",(0,o.jsx)("span",{style:{background:"linear-gradient(135deg,#60a5fa,#34d399)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent"},children:"RouleMalin"}),(0,o.jsx)("sup",{style:{fontSize:".55em",fontWeight:600,opacity:.85,marginLeft:1,color:"#7a8494"},children:"\xae"}),(0,o.jsx)("span",{style:{color:"#a78bfa",fontWeight:800,fontSize:14,marginLeft:4},children:"PRO"})]}),(0,o.jsx)("p",{style:{fontSize:12,color:"#8b95a5",textAlign:"center",marginBottom:24},children:"Choisissez votre nouveau mot de passe"}),b?(0,o.jsxs)("p",{style:{color:"#f87171",fontSize:13,textAlign:"center",lineHeight:1.6},children:["Lien invalide ou incomplet. ",(0,o.jsx)("a",{href:"/pro/login",style:y,children:"Refaire une demande"})]}):"done"===p?(0,o.jsx)("p",{style:{color:"#34d399",fontSize:13,textAlign:"center",lineHeight:1.6},children:"â Mot de passe mis \xe0 jour. Redirection vers la connexion..."}):(0,o.jsxs)("form",{onSubmit:h,children:[(0,o.jsx)("label",{style:x,children:"Nouveau mot de passe *"}),(0,o.jsx)("input",{style:m,type:"password",value:i,onChange:e=>l(e.target.value),placeholder:"10 caract\xe8res minimum",required:!0,minLength:10,autoComplete:"new-password"}),(0,o.jsx)("label",{style:x,children:"Confirmez le mot de passe *"}),(0,o.jsx)("input",{style:m,type:"password",value:d,onChange:e=>c(e.target.value),required:!0,minLength:10,autoComplete:"new-password"}),(0,o.jsx)("button",{type:"submit",style:{width:"100%",padding:14,borderRadius:12,border:"none",cursor:"pointer",fontWeight:800,fontSize:15,color:"#fff",background:"linear-gradient(135deg,#7c3aed,#a78bfa)",fontFamily:"inherit",letterSpacing:".3px",opacity:"loading"===p?.6:1},disabled:"loading"===p,children:"loading"===p?"Chargement...":"Valider le nouveau mot de passe"}),"error"===p&&(0,o.jsx)("p",{style:{color:"#f87171",fontSize:12,textAlign:"center",marginTop:10},children:g})]}),(0,o.jsx)("p",{style:{textAlign:"center",marginTop:16,fontSize:11,color:"#5a6474"},children:(0,o.jsx)("a",{href:"/pro/login",style:y,children:"Retour \xe0 la connexion"})})]})})]})}}
1,7328:(e,t,n)=>{e.exports=n(9269)},9072:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/pro/reset-password",function(){return n(1527)}])}},e=>{e.O(0,[636,6593,8792],()=>e(e.s=9072)),_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.