1import{d as k,q as v,c as t,e as d,g as i,i as b,f as c,A,j as e,y as m,z as p,l as f,k as y,B as S,C as V,r as u,x}from"./xYyMbIF_.js";import{A as w}from"./BvBPoZof.js";import{A as B}from"./B1-2Q1AY.js";import{A as E}from"./BdMnbLyA.js";import"./CGuCNXk3.js";import"./Df69tQr5.js";const C={key:0},N={key:1},z=k({__name:"index",setup(q){const _=v(),r=u(""),o=u(null),l=u(null),n=u(!1);async function h(){n.value=!0,l.value=null,o.value=null;try{const s=await _.requestPasswordReset(r.value);o.value=s.message||"Password reset link sent."}catch(s){const a=s.data;l.value=a?.errors?.email?.[0]||a?.message||x(s,"Unable to send password reset email.")}finally{n.value=!1}}return(s,a)=>(t(),d(E,{eyebrow:"Account recovery",title:"Forgot your password?",description:"Enter your email address and weâll send you a reset link.","switch-prompt":"Remembered your password?","switch-label":"Back to sign in","switch-to":"/auth/login","show-panel":!1},{default:i(()=>[b("form",{class:"space-y-5",onSubmit:V(h,["prevent"])},[c(B,{id:"forgot-password-email",modelValue:e(r),"onUpdate:modelValue":a[0]||(a[0]=g=>A(r)?r.value=g:null),type:"email",autocomplete:"email",required:"",label:"Email",placeholder:"[email protected]"},null,8,["modelValue"]),e(o)?(t(),d(w,{key:0},{default:i(()=>[m(p(e(o)),1)]),_:1})):f("",!0),e(l)?(t(),d(w,{key:1,variant:"destructive"},{default:i(()=>[m(p(e(l)),1)]),_:1})):f("",!0),c(e(S),{type:"submit",disabled:e(n),class:"h-11 w-full rounded-full"},{default:i(()=>[e(n)?(t(),y("span",N,"Sending...")):(t(),y("span",C,"Send reset link"))]),_:1},8,["disabled"])],32)]),_:1}))}});export{z 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.