import{D as e,E as t,F as n,H as r,T as i,X as a,Y as o,b as s,g as c,i as l,n as u,x as d}from"./app-WqReGThm.js";import{t as f}from"./GuestLayout-tfqFVsMI.js";import{n as p,t as m}from"./TextInput-Dv55GPLY.js";import{t as h}from"./InputLabel-BoEsY3H1.js";import{t as g}from"./PrimaryButton-CiUo_VCg.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=l({token:b.token,email:b.email,password:``,password_confirmation:``}),S=()=>{x.post(route(`password.store`),{onFinish:()=>{x.reset(`password`,`password_confirmation`)}})};return(e,l)=>(n(),d(f,null,{default:r(()=>[t(o(u),{title:`Reset Password`}),s(`form`,{onSubmit:c(S,[`prevent`])},[s(`div`,null,[t(h,{for:`email`,value:`Email`}),t(m,{id:`email`,type:`email`,class:`mt-1 block w-full`,modelValue:o(x).email,"onUpdate:modelValue":l[0]||=e=>o(x).email=e,required:``,autofocus:``,autocomplete:`username`},null,8,[`modelValue`]),t(p,{class:`mt-2`,message:o(x).errors.email},null,8,[`message`])]),s(`div`,_,[t(h,{for:`password`,value:`Password`}),t(m,{id:`password`,type:`password`,class:`mt-1 block w-full`,modelValue:o(x).password,"onUpdate:modelValue":l[1]||=e=>o(x).password=e,required:``,autocomplete:`new-password`},null,8,[`modelValue`]),t(p,{class:`mt-2`,message:o(x).errors.password},null,8,[`message`])]),s(`div`,v,[t(h,{for:`password_confirmation`,value:`Confirm Password`}),t(m,{id:`password_confirmation`,type:`password`,class:`mt-1 block w-full`,modelValue:o(x).password_confirmation,"onUpdate:modelValue":l[2]||=e=>o(x).password_confirmation=e,required:``,autocomplete:`new-password`},null,8,[`modelValue`]),t(p,{class:`mt-2`,message:o(x).errors.password_confirmation},null,8,[`message`])]),s(`div`,y,[t(g,{class:a({"opacity-25":o(x).processing}),disabled:o(x).processing},{default:r(()=>[...l[3]||=[i(` Reset Password `,-1)]]),_:1},8,[`class`,`disabled`])])],32)]),_:1}))}});export{b as default};