import{q as p,l as h}from"./index-Z7dItZLR.js";import{_ as y}from"./InputError.vue_vue_type_script_setup_true_lang-DniwR9eG.js";import{_ as w}from"./TextLink.vue_vue_type_script_setup_true_lang-B-Vh5vLl.js";import{_ as x}from"./AppLogoIcon.vue_vue_type_script_setup_true_lang-M23wUS8o.js";import{_ as k}from"./Input.vue_vue_type_script_setup_true_lang-C985hTdX.js";import{_ as v}from"./Label.vue_vue_type_script_setup_true_lang-DMkOfPu9.js";import{_ as $}from"./AuthLayout.vue_vue_type_script_setup_true_lang-DTkMVYm5.js";import{d as b,g as f,o as l,w as m,e as a,a as C,k as c,b as i,u as s,h as E,t as F,j as P,n as q,p as B,i as d}from"./app-KXUNt_n9.js";import{L as N}from"./loader-circle-nLMSKP1C.js";import"./useForwardExpose-B0NY7lip.js";import"./createLucideIcon-CFEmdjHu.js";const t=e=>({url:t.url(e),method:"get"});t.definition={methods:["get","head"],url:"/forgot-password"};t.url=e=>t.definition.url+p(e);t.get=e=>({url:t.url(e),method:"get"});t.head=e=>({url:t.url(e),method:"head"});const n=e=>({action:t.url(e),method:"get"});n.get=e=>({action:t.url(e),method:"get"});n.head=e=>({action:t.url({[e?.mergeQuery?"mergeQuery":"query"]:{_method:"HEAD",...e?.query??e?.mergeQuery??{}}}),method:"get"});t.form=n;const o=e=>({url:o.url(e),method:"post"});o.definition={methods:["post"],url:"/forgot-password"};o.url=e=>o.definition.url+p(e);o.post=e=>({url:o.url(e),method:"post"});const _=e=>({action:o.url(e),method:"post"});_.post=e=>({action:o.url(e),method:"post"});o.form=_;const V={create:t,store:o},L={key:0,class:"mb-4 text-center text-sm font-medium text-green-600"},Q={class:"space-y-6"},j={class:"grid gap-2"},D={class:"my-6 flex items-center justify-start"},R={class:"space-x-1 text-center text-sm text-muted-foreground"},W=b({__name:"ForgotPassword",props:{status:{}},setup(e){return(z,r)=>(l(),f($,{title:"Forgot password",description:"Enter your email to receive a password reset link"},{default:m(()=>[a(s(E),{title:"Forgot password"}),e.status?(l(),C("div",L,F(e.status),1)):c("",!0),i("div",Q,[a(s(P),q(B(s(V).store.form())),{default:m(({errors:g,processing:u})=>[i("div",j,[a(s(v),{for:"email"},{default:m(()=>[...r[0]||(r[0]=[d("Email address",-1)])]),_:1}),a(s(k),{id:"email",type:"email",name:"email",autocomplete:"off",autofocus:"",placeholder:"email@example.com"}),a(y,{message:g.email},null,8,["message"])]),i("div",D,[a(s(x),{class:"w-full",disabled:u,"data-test":"email-password-reset-link-button"},{default:m(()=>[u?(l(),f(s(N),{key:0,class:"h-4 w-4 animate-spin"})):c("",!0),r[1]||(r[1]=d(" Email password reset link ",-1))]),_:2},1032,["disabled"])])]),_:1},16),i("div",R,[r[3]||(r[3]=i("span",null,"Or, return to",-1)),a(w,{href:s(h)()},{default:m(()=>[...r[2]||(r[2]=[d("log in",-1)])]),_:1},8,["href"])])])]),_:1}))}});export{W as default};
