import{D as e,E as t,H as n,T as r,b as i,i as a,m as o,n as s,nt as c,x as l,xt as u,yt as d}from"./app-r2SMcdpu.js";import{t as f}from"./GuestLayout-ULt6nELo.js";import{n as p,r as m,t as h}from"./TextInput-IAw8Ne2B.js";import{t as g}from"./PrimaryButton-zow5epdV.js";var _={class:`mt-4`},v={class:`mt-4`},y={class:`mt-4 flex items-center justify-end`},b=e({__name:`ResetPassword`,props:{email:{},token:{}},setup(e){let b=e,x=a({token:b.token,email:b.email,password:``,password_confirmation:``}),S=()=>{x.post(route(`password.store`),{onFinish:()=>{x.reset(`password`,`password_confirmation`)}})};return(e,a)=>(n(),l(f,null,{default:c(()=>[t(d(s),{title:`Reset Password`}),i(`form`,{onSubmit:o(S,[`prevent`])},[i(`div`,null,[t(p,{for:`email`,value:`Email`}),t(h,{id:`email`,type:`email`,class:`mt-1 block w-full`,modelValue:d(x).email,"onUpdate:modelValue":a[0]||=e=>d(x).email=e,required:``,autofocus:``,autocomplete:`username`},null,8,[`modelValue`]),t(m,{class:`mt-2`,message:d(x).errors.email},null,8,[`message`])]),i(`div`,_,[t(p,{for:`password`,value:`Password`}),t(h,{id:`password`,type:`password`,class:`mt-1 block w-full`,modelValue:d(x).password,"onUpdate:modelValue":a[1]||=e=>d(x).password=e,required:``,autocomplete:`new-password`},null,8,[`modelValue`]),t(m,{class:`mt-2`,message:d(x).errors.password},null,8,[`message`])]),i(`div`,v,[t(p,{for:`password_confirmation`,value:`Confirm Password`}),t(h,{id:`password_confirmation`,type:`password`,class:`mt-1 block w-full`,modelValue:d(x).password_confirmation,"onUpdate:modelValue":a[2]||=e=>d(x).password_confirmation=e,required:``,autocomplete:`new-password`},null,8,[`modelValue`]),t(m,{class:`mt-2`,message:d(x).errors.password_confirmation},null,8,[`message`])]),i(`div`,y,[t(g,{class:u({"opacity-25":d(x).processing}),disabled:d(x).processing},{default:c(()=>[...a[3]||=[r(` Reset Password `,-1)]]),_:1},8,[`class`,`disabled`])])],32)]),_:1}))}});export{b as default};