import{x as n,j as e,Q as d}from"./app-BBZbvTSO.js";import{I as p}from"./input-error-Bz7f2c6i.js";import{T as c}from"./text-link-CArigidy.js";import{B as x}from"./button-CZmOQP7j.js";import{I as u}from"./input-dmj4QjAp.js";import{L as f}from"./label-BPDCCRHl.js";import{A as j}from"./auth-layout-RHjmusiC.js";import{L as h}from"./loader-circle-BqAFTH1R.js";/* empty css            */import"./utils-YhN_nlHn.js";import"./index-13DH8-b5.js";import"./app-logo-icon-BZsH9yGo.js";import"./card-LUGiYPFK.js";function B({status:r}){const{data:a,setData:o,post:i,processing:t,errors:m}=n({email:""}),l=s=>{s.preventDefault(),i(route("password.email"))};return e.jsxs(j,{title:"Forgot password",description:"Enter your email to receive a password reset link",children:[e.jsx(d,{title:"Forgot password"}),r&&e.jsx("div",{className:"mb-4 text-center text-sm font-medium text-green-600",children:r}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("form",{onSubmit:l,children:[e.jsxs("div",{className:"grid gap-2",children:[e.jsx(f,{htmlFor:"email",children:"Email address"}),e.jsx(u,{id:"email",type:"email",name:"email",autoComplete:"off",value:a.email,autoFocus:!0,onChange:s=>o("email",s.target.value),placeholder:"email@example.com"}),e.jsx(p,{message:m.email})]}),e.jsx("div",{className:"my-6 flex items-center justify-start",children:e.jsxs(x,{className:"w-full",disabled:t,children:[t&&e.jsx(h,{className:"h-4 w-4 animate-spin"}),"Email password reset link"]})})]}),e.jsxs("div",{className:"text-muted-foreground space-x-1 text-center text-sm",children:[e.jsx("span",{children:"Or, return to"}),e.jsx(c,{href:route("login"),children:"log in"})]})]})]})}export{B as default};
