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