module.exports=[738783,(a,b,c)=>{"use strict";b.exports=a.r(342602).vendored["react-ssr"].ReactServerDOMTurbopackClient},992258,a=>{"use strict";let b=(0,a.i(170106).default)("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);a.s(["Mail",()=>b],992258)},254991,a=>{"use strict";var b=a.i(187924),c=a.i(572131),d=a.i(695245),e=a.i(159501),f=a.i(336570),g=a.i(596221),h=a.i(992258),i=a.i(699570),j=a.i(591119),k=a.i(441921),l=a.i(866718),m=a.i(478793),n=a.i(238246),o=a.i(50944),p=a.i(83490);let q=f.z.object({email:f.z.string().email("Please enter a valid email address.")});function r(){let{toast:a}=(0,m.useToast)(),f=(0,o.useRouter)(),[r,s]=(0,c.useState)(!1),t=(0,d.useForm)({resolver:(0,e.zodResolver)(q),defaultValues:{email:""}}),u=async b=>{s(!0);try{await p.default.post("https://arcedea.losenviskas.com/laravel-backend/public/api/forgot-password",b),a({title:"Password Reset Email Sent",description:"If an account with that email exists, a password reset link has been sent."}),f.push("/reset-password")}catch(b){console.error("Forgot password request failed:",b),a({variant:"destructive",title:"Request Failed",description:"Could not send the password reset email. Please try again later."})}finally{s(!1)}};return(0,b.jsxs)("div",{className:"flex min-h-screen items-center justify-center bg-muted/40 p-4",children:[(0,b.jsxs)(n.default,{href:"/login",className:"absolute left-8 top-8 py-2 px-4 rounded-lg no-underline text-foreground bg-muted-foreground/10 flex items-center gap-2 text-sm",children:[(0,b.jsxs)("svg",{className:"w-4 h-4",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,b.jsx)("path",{d:"m12 19-7-7 7-7"}),(0,b.jsx)("path",{d:"M19 12H5"})]}),"Back to Login"]}),(0,b.jsxs)(j.Card,{className:"w-full max-w-sm",children:[(0,b.jsxs)(j.CardHeader,{className:"text-center",children:[(0,b.jsx)("div",{className:"mx-auto bg-primary text-primary-foreground rounded-full w-16 h-16 flex items-center justify-center mb-4",children:(0,b.jsx)(h.Mail,{className:"w-8 h-8"})}),(0,b.jsx)(j.CardTitle,{className:"text-2xl",children:"Forgot Password"}),(0,b.jsx)(j.CardDescription,{children:"Enter your email and we'll send you a link to reset your password."})]}),(0,b.jsx)(j.CardContent,{children:(0,b.jsx)(k.Form,{...t,children:(0,b.jsxs)("form",{onSubmit:t.handleSubmit(u),className:"space-y-4",children:[(0,b.jsx)(k.FormField,{control:t.control,name:"email",render:({field:a})=>(0,b.jsxs)(k.FormItem,{children:[(0,b.jsx)(k.FormLabel,{children:"Email Address"}),(0,b.jsx)(k.FormControl,{children:(0,b.jsx)(l.Input,{placeholder:"you@example.com",...a})}),(0,b.jsx)(k.FormMessage,{})]})}),(0,b.jsxs)(i.Button,{type:"submit",disabled:r,className:"w-full",children:[r?(0,b.jsx)(g.Loader2,{className:"mr-2 h-4 w-4 animate-spin"}):null,"Send Reset Link"]})]})})})]})]})}a.s(["default",()=>r])}];

//# sourceMappingURL=_3d401179._.js.map