import{u as m,j as s,H as c}from"./app-BQEFzdw6.js";function p({token:i,email:o}){const{data:r,setData:t,post:n,processing:l,errors:a}=m({token:i,email:o||"",password:"",password_confirmation:""}),d=e=>{e.preventDefault(),n("/reset-password")};return s.jsxs(s.Fragment,{children:[s.jsx(c,{title:"Reset Password"}),s.jsx("div",{className:"min-h-screen bg-gray-50 flex items-center justify-center p-4",children:s.jsxs("div",{className:"w-full max-w-md card p-8",children:[s.jsx("h1",{className:"text-xl font-bold text-gray-900 mb-6",children:"Reset Password"}),s.jsxs("form",{onSubmit:d,className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("label",{className:"form-label",children:"Email"}),s.jsx("input",{type:"email",value:r.email,onChange:e=>t("email",e.target.value),className:"form-input",required:!0}),a.email&&s.jsx("p",{className:"form-error",children:a.email})]}),s.jsxs("div",{children:[s.jsx("label",{className:"form-label",children:"New Password"}),s.jsx("input",{type:"password",value:r.password,onChange:e=>t("password",e.target.value),className:"form-input",required:!0}),a.password&&s.jsx("p",{className:"form-error",children:a.password})]}),s.jsxs("div",{children:[s.jsx("label",{className:"form-label",children:"Confirm Password"}),s.jsx("input",{type:"password",value:r.password_confirmation,onChange:e=>t("password_confirmation",e.target.value),className:"form-input",required:!0})]}),s.jsx("button",{type:"submit",disabled:l,className:"btn-primary w-full justify-center",children:l?"Resetting...":"Reset Password"})]})]})})]})}export{p as default};
