1import{f as u,r as o,j as e,k as p,s as m,t as i}from"./index-Cjiu4FUh.js";function f(){const d=u(),[a,l]=o.useState(""),[t,n]=o.useState(!1),c=async r=>{r.preventDefault(),n(!0);try{const{error:s}=await m.auth.updateUser({password:a});if(s)throw s;i.success("Password updated. You're signed in."),d({to:"/inbox",replace:!0})}catch(s){i.error(s.message??"Reset failed")}finally{n(!1)}};return e.jsx("div",{className:"min-h-screen flex items-center justify-center p-6",children:e.jsxs("div",{className:"glass rounded-2xl p-8 w-full max-w-md",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-6",children:[e.jsx("div",{className:"size-10 rounded-xl bg-gradient-primary flex items-center justify-center glow-primary",children:e.jsx(p,{className:"size-5 text-primary-foreground"})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-xl font-bold tracking-tight",children:"Set a new password"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Enter and confirm your new password below."})]})]}),e.jsxs("form",{onSubmit:c,className:"space-y-3",children:[e.jsx("input",{type:"password",required:!0,minLength:6,className:"w-full px-3 py-2.5 rounded-lg bg-input border border-border focus:border-primary outline-none transition",placeholder:"New password",value:a,onChange:r=>l(r.target.value)}),e.jsx("button",{disabled:t,className:"w-full py-2.5 rounded-lg bg-gradient-primary text-primary-foreground font-medium glow-primary hover:opacity-90 transition disabled:opacity-50",children:t?"â¦":"Update password"})]})]})})}export{f as component};
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.