1import{r as d,ar as p,j as e,I as u,B as m,e as w,d as r,s as x}from"./index-Gd3ICOax.js";import{L as h}from"./label-DJkHgvzN.js";import{S as f}from"./SEOHead-C7dcErS8.js";const N=()=>{const[s,i]=d.useState(""),[t,o]=d.useState(!1),l=p(),c=async a=>{if(a.preventDefault(),s.length<8)return r.error("Password must be at least 8 characters");o(!0);const{error:n}=await x.auth.updateUser({password:s});if(o(!1),n)return r.error(n.message);r.success("Password updated"),l("/account",{replace:!0})};return e.jsxs(e.Fragment,{children:[e.jsx(f,{title:"Reset password â ThiagoVibesp",description:"Set a new password.",path:"/reset-password"}),e.jsx("div",{className:"min-h-screen flex items-center justify-center px-4 pt-24 pb-16",children:e.jsxs("form",{onSubmit:c,className:"w-full max-w-sm bg-card border border-border rounded-2xl p-6 space-y-4",children:[e.jsx("h1",{className:"font-display text-3xl tracking-wider text-foreground text-center",children:"New password"}),e.jsxs("div",{className:"space-y-1",children:[e.jsx(h,{children:"New password"}),e.jsx(u,{type:"password",value:s,onChange:a=>i(a.target.value),required:!0,autoComplete:"new-password",minLength:8})]}),e.jsxs(m,{type:"submit",disabled:t,className:"w-full",children:[t?e.jsx(w,{className:"h-4 w-4 animate-spin mr-2"}):null,"Update password"]})]})})]})};export{N as default};
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.