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