import{aT as u,aU as x,j as e,aR as f,aV as h}from"./react-vendor-xYZnmIII.js";import{I as j}from"./input-error-_LAmvivg.js";import{T as g}from"./text-link-qVBq6Xix.js";import{L as v,I as b,B as N}from"./ui-components-CQM92IK3.js";import{A as _}from"./auth-layout-Vv6PA6-q.js";import"./inertia-vendor-cBbDTmhJ.js";import"./ui-vendor-Ds9iwIxa.js";import"./interactive-vendor-B1OgcAgP.js";import"./app-logo-BQGZ7CFC.js";import"./main-CnGu8e_N.js";import"./theme-colors-CLpwvDr4.js";function P({status:a}){const{props:m}=u(),{auth:t,input:r,button:o}=m.translate,{data:l,setData:n,post:d,processing:i,errors:c}=x({email:""}),p=s=>{s.preventDefault(),d(route("password.email"))};return e.jsxs(_,{title:t.forgot_password,description:t.forgot_description,children:[e.jsx(f,{title:t.forgot_password}),a&&e.jsx("div",{className:"mb-4 text-center text-sm font-medium text-green-600",children:a}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("form",{onSubmit:p,children:[e.jsxs("div",{className:"grid gap-2",children:[e.jsx(v,{htmlFor:"email",children:r.email}),e.jsx(b,{id:"email",type:"email",name:"email",autoComplete:"off",value:l.email,autoFocus:!0,onChange:s=>n("email",s.target.value),placeholder:r.email_placeholder}),e.jsx(j,{message:c.email})]}),e.jsx("div",{className:"my-6 flex items-center justify-start",children:e.jsxs(N,{className:"w-full",disabled:i,children:[i&&e.jsx(h,{className:"h-4 w-4 animate-spin"}),o.submit]})})]}),e.jsxs("div",{className:"text-muted-foreground space-x-1 text-center text-sm",children:[e.jsx("span",{children:t.return_to_login}),e.jsx(g,{href:route("login"),children:o.login})]})]})]})}export{P as default};
