import{b as w,j as s,H as f}from"./app-vYFZLebK.js";import{I as t}from"./InputError-Cj3POQLM.js";import{I as m}from"./InputLabel-B7-VnScM.js";import{P as x}from"./PrimaryButton-Byh_hOgr.js";import{T as i}from"./TextInput-BXnk3iOU.js";import{G as j}from"./GuestLayout-DU0lQkT0.js";import"./ProBackground-HBykvu3f.js";import"./ThemeSwitcher-C0dt0hQX.js";import"./fingerprint-pattern-ByR3x1eT.js";import"./cpu-CnpbxAHg.js";function I({token:l,email:n}){const{data:e,setData:o,post:d,processing:p,errors:r,reset:u}=w({token:l,email:n,password:"",password_confirmation:""}),c=a=>{a.preventDefault(),d(route("password.store"),{onFinish:()=>u("password","password_confirmation")})};return s.jsxs(j,{children:[s.jsx(f,{title:"Reset Password"}),s.jsxs("form",{onSubmit:c,children:[s.jsxs("div",{children:[s.jsx(m,{htmlFor:"email",value:"Email"}),s.jsx(i,{id:"email",type:"email",name:"email",value:e.email,className:"mt-1 block w-full",autoComplete:"username",onChange:a=>o("email",a.target.value)}),s.jsx(t,{message:r.email,className:"mt-2"})]}),s.jsxs("div",{className:"mt-4",children:[s.jsx(m,{htmlFor:"password",value:"Password"}),s.jsx(i,{id:"password",type:"password",name:"password",value:e.password,className:"mt-1 block w-full",autoComplete:"new-password",isFocused:!0,onChange:a=>o("password",a.target.value)}),s.jsx(t,{message:r.password,className:"mt-2"})]}),s.jsxs("div",{className:"mt-4",children:[s.jsx(m,{htmlFor:"password_confirmation",value:"Confirm Password"}),s.jsx(i,{type:"password",id:"password_confirmation",name:"password_confirmation",value:e.password_confirmation,className:"mt-1 block w-full",autoComplete:"new-password",onChange:a=>o("password_confirmation",a.target.value)}),s.jsx(t,{message:r.password_confirmation,className:"mt-2"})]}),s.jsx("div",{className:"mt-4 flex items-center justify-end",children:s.jsx(x,{className:"ms-4",disabled:p,children:"Reset Password"})})]})]})}export{I as default};
