import{$ as e,D as t,E as n,I as r,O as i,S as a,U as o,X as s,Z as c,_ as l,a as u,r as d,x as f}from"./app-DD-WFwVV.js";import{t as p}from"./i18n-DF9C9ux9.js";import{t as m}from"./GuestLayout-CEra3DzQ.js";import{n as h,t as g}from"./TextInput-DLQcvk4Z.js";import{t as _}from"./InputLabel-X0xcwH5X.js";import{t as v}from"./PrimaryButton-7PI9t-5w.js";var y={class:`mt-4`},b={class:`mt-4`},x={class:`mt-4 flex items-center justify-end`},S=i({__name:`ResetPassword`,props:{email:{},token:{}},setup(i){let S=i,C=u({token:S.token,email:S.email,password:``,password_confirmation:``}),w=()=>{C.post(route(`password.store`),{onFinish:()=>{C.reset(`password`,`password_confirmation`)}})};return(i,u)=>(r(),a(m,null,{default:o(()=>[t(s(d),{title:s(p)(`Reset Password`)},null,8,[`title`]),f(`form`,{onSubmit:l(w,[`prevent`])},[f(`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`])]),f(`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`])]),f(`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`])]),f(`div`,x,[t(v,{class:c({"opacity-25":s(C).processing}),disabled:s(C).processing},{default:o(()=>[n(e(s(p)(`Reset Password`)),1)]),_:1},8,[`class`,`disabled`])])],32)]),_:1}))}});export{S as default};