import{M as e,Ot as t,P as n}from"./ui-DTELwomD.js";import{C as r,O as i,S as a,a as o,g as s,k as c,ot as l,q as u,w as d,wt as f}from"./framework-CFqPLBV8.js";import{s as p}from"./app-DIZuUM-n.js";import{t as m}from"./GuestLayout-MPKOlBdy.js";var h={__name:`ResetPassword`,props:{email:{type:String,default:``},token:{type:String,required:!0}},setup(h){let g=h,_=o({token:g.token,email:g.email,password:``,password_confirmation:``});function v(){_.post(`/reset-password`,{onFinish:()=>_.reset(`password`,`password_confirmation`)})}return(o,h)=>(u(),r(m,{title:`Neues Passwort festlegen`,description:`Mindestens 10 Zeichen, mit Buchstaben und Ziffern.`},{default:l(()=>[a(`form`,{class:`grid gap-5`,onSubmit:s(v,[`prevent`])},[c(p,{id:`email`,label:`E-Mail-Adresse`,error:f(_).errors.email},{default:l(()=>[c(f(e),{id:`email`,modelValue:f(_).email,"onUpdate:modelValue":h[0]||=e=>f(_).email=e,type:`email`,autocomplete:`username`,class:`h-10`},null,8,[`modelValue`])]),_:1},8,[`error`]),c(p,{id:`password`,label:`Neues Passwort`,error:f(_).errors.password},{default:l(()=>[c(f(e),{id:`password`,modelValue:f(_).password,"onUpdate:modelValue":h[1]||=e=>f(_).password=e,type:`password`,autocomplete:`new-password`,autofocus:``,class:`h-10`},null,8,[`modelValue`])]),_:1},8,[`error`]),c(p,{id:`password_confirmation`,label:`Passwort wiederholen`},{default:l(()=>[c(f(e),{id:`password_confirmation`,modelValue:f(_).password_confirmation,"onUpdate:modelValue":h[2]||=e=>f(_).password_confirmation=e,type:`password`,autocomplete:`new-password`,class:`h-10`},null,8,[`modelValue`])]),_:1}),c(f(n),{type:`submit`,size:`lg`,class:`h-10 w-full`,disabled:f(_).processing},{default:l(()=>[f(_).processing?(u(),r(f(t),{key:0,class:`animate-spin`})):d(``,!0),h[3]||=i(` Passwort speichern `,-1)]),_:1},8,[`disabled`])],32)]),_:1}))}};export{h as default};