1import{r as s,j as e,i as l,L as c,f as d}from"./index-DAZ_i1WF.js";import{B as p}from"./button-BdmOe867.js";import{I as h}from"./input-BK1ACV3B.js";import{L as f}from"./label-BxpqqjCS.js";import{A as x}from"./AuthLayout-DXs6lDxn.js";import{L as j}from"./loader-circle-DIhxnniw.js";import{A as y}from"./arrow-left-D48KfjNh.js";import"./index-CL0mw-tA.js";function A(){const[a,o]=s.useState(""),[r,i]=s.useState(!1),[n,m]=s.useState(!1),u=async t=>{t.preventDefault(),i(!0);try{await d.auth.resetPasswordRequest(a)}catch{}finally{i(!1),m(!0)}};return e.jsx(x,{icon:l,title:"Reset password",subtitle:"We will send you a link to reset it",footer:e.jsxs(c,{to:"/login",className:"text-primary font-medium hover:underline",children:[e.jsx(y,{className:"w-3 h-3 inline mr-1"}),"Back to log in"]}),children:n?e.jsx("p",{className:"text-sm text-foreground text-center",children:"If an account exists with that email, you will receive a password reset link shortly."}):e.jsxs("form",{onSubmit:u,className:"space-y-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(f,{htmlFor:"email",children:"Email address"}),e.jsxs("div",{className:"relative",children:[e.jsx(l,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground","aria-hidden":"true"}),e.jsx(h,{id:"email",type:"email",autoComplete:"email",autoFocus:!0,placeholder:"[email protected]",value:a,onChange:t=>o(t.target.value),className:"pl-10 h-12",required:!0})]})]}),e.jsx(p,{type:"submit",className:"w-full h-12 font-medium",disabled:r,children:r?e.jsxs(e.Fragment,{children:[e.jsx(j,{className:"w-4 h-4 mr-2 animate-spin"}),"Sending..."]}):"Send reset link"})]})})}export{A 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.