import{i as g,T as w,k,p as y,e as m,b as e,u as t,w as a,F as h,o as u,Z as b,a as l,t as n,f as x,g as d,l as v}from"./app-WJL2kJBE.js";import{J as V}from"./AuthenticationCard-DsL5pTVv.js";import{_ as B}from"./AuthenticationCardLogo-DfLTNru8.js";import{L}from"./LoadingButton-H6RtHB1p.js";import{_ as F}from"./Input-C4-VG2dv.js";import{_ as N}from"./Label-CBaaVbfI.js";import{_ as C}from"./ValidationErrors-Bh9Wy7Xq.js";const E={class:"mb-4 text-sm"},$={key:0,class:"mb-4 font-medium text-sm text-green-600"},J={class:"flex items-center justify-end mt-4"},A={__name:"ForgotPassword",props:{status:String},setup(i){const{t:o}=g({}),s=w({email:""});k(()=>{document.getElementById("app-loading").style.display="none"});const c=()=>{s.post(route("password.email"))};return(f,r)=>{const p=y("Link");return u(),m(h,null,[e(t(b),{title:t(o)("Forgot Password")},null,8,["title"]),e(V,null,{logo:a(()=>[e(B)]),default:a(()=>[l("div",E,n(t(o)("Forgot your password? No problem. Just let us know your email address and we will email you a password reset link that will allow you to choose a new one.")),1),i.status?(u(),m("div",$,n(i.status),1)):x("",!0),e(C,{class:"mb-4"}),l("form",{onSubmit:v(c,["prevent"])},[l("div",null,[e(N,{for:"email",value:"Email"}),e(F,{id:"email",modelValue:t(s).email,"onUpdate:modelValue":r[0]||(r[0]=_=>t(s).email=_),type:"email",class:"mt-1 block w-full",required:"",autofocus:""},null,8,["modelValue"])]),l("div",J,[e(p,{href:f.route("login"),class:"underline text-sm link mr-4"},{default:a(()=>[d(n(t(o)("Back to Login")),1)]),_:1},8,["href"]),e(L,{loading:t(s).processing},{default:a(()=>[d(n(t(o)("Email Password Reset Link")),1)]),_:1},8,["loading"])])],32)]),_:1})],64)}}};export{A as default};
