import{A as e,B as t,D as n,E as r,K as i,M as a,T as o,b as s,gt as c,j as l,n as u,ot as d,r as f,w as p,wt as m}from"./dist-B4ulKgpj.js";import{t as h}from"./Label-CFnMyEie.js";import{t as g}from"./PasswordInput-kioHp5xS.js";import{t as _}from"./Spinner-CPbipFa_.js";import{t as v}from"./Input-DUc0hUPv.js";import{l as y}from"./app-DUC9tg6Z.js";import{t as b}from"./InputError-whMZ-BCS.js";import{r as x}from"./password-pg9PxKYi.js";var S={class:`grid gap-6`},C={class:`grid gap-2`},w={class:`grid gap-2`},T={class:`grid gap-2`},E=a({layout:{title:`Reset password`,description:`Please enter your new password below`},__name:`ResetPassword`,props:{token:{},email:{}},setup(a){let E=c(a.email);return(c,D)=>(i(),n(s,null,[l(m(f),{title:`Reset password`}),l(m(u),t(m(x).form(),{transform:e=>({...e,token:a.token,email:a.email}),"reset-on-success":[`password`,`password_confirmation`]}),{default:d(({errors:t,processing:n})=>[p(`div`,S,[p(`div`,C,[l(m(h),{for:`email`},{default:d(()=>[...D[1]||=[e(`Email`,-1)]]),_:1}),l(m(v),{id:`email`,type:`email`,name:`email`,autocomplete:`email`,modelValue:E.value,"onUpdate:modelValue":D[0]||=e=>E.value=e,class:`mt-1 block w-full`,readonly:``},null,8,[`modelValue`]),l(b,{message:t.email,class:`mt-2`},null,8,[`message`])]),p(`div`,w,[l(m(h),{for:`password`},{default:d(()=>[...D[2]||=[e(`Password`,-1)]]),_:1}),l(g,{id:`password`,name:`password`,autocomplete:`new-password`,class:`mt-1 block w-full`,autofocus:``,placeholder:`Password`}),l(b,{message:t.password},null,8,[`message`])]),p(`div`,T,[l(m(h),{for:`password_confirmation`},{default:d(()=>[...D[3]||=[e(` Confirm password `,-1)]]),_:1}),l(g,{id:`password_confirmation`,name:`password_confirmation`,autocomplete:`new-password`,class:`mt-1 block w-full`,placeholder:`Confirm password`}),l(b,{message:t.password_confirmation},null,8,[`message`])]),l(m(y),{type:`submit`,class:`mt-4 w-full`,disabled:n,"data-test":`reset-password-button`},{default:d(()=>[n?(i(),o(m(_),{key:0})):r(``,!0),D[4]||=e(` Reset password `,-1)]),_:2},1032,[`disabled`])])]),_:1},16,[`transform`])],64))}});export{E as default};