import{i as f,T as c,k as w,e as _,b as o,u as s,w as r,F as g,o as V,Z as k,a as l,g as v,t as y,l as b}from"./app-WJL2kJBE.js";import{J as x}from"./AuthenticationCard-DsL5pTVv.js";import{_ as B}from"./AuthenticationCardLogo-DfLTNru8.js";import{L as P}from"./LoadingButton-H6RtHB1p.js";import{_ as i}from"./Input-C4-VG2dv.js";import{_ as n}from"./Label-CBaaVbfI.js";import{_ as S}from"./ValidationErrors-Bh9Wy7Xq.js";const $={class:"mt-4"},q={class:"mt-4"},C={class:"flex items-center justify-end mt-4"},L={__name:"ResetPassword",props:{email:String,token:String},setup(p){const{t:d}=f({}),m=p,e=c({token:m.token,email:m.email,password:"",password_confirmation:""});w(()=>{document.getElementById("app-loading").style.display="none"});const u=()=>{e.post(route("password.update"),{onFinish:()=>e.reset("password","password_confirmation")})};return(E,a)=>(V(),_(g,null,[o(s(k),{title:s(d)("Reset Password")},null,8,["title"]),o(x,null,{logo:r(()=>[o(B)]),default:r(()=>[o(S,{class:"mb-4"}),l("form",{onSubmit:b(u,["prevent"])},[l("div",null,[o(n,{for:"email",value:"Email"}),o(i,{id:"email",modelValue:s(e).email,"onUpdate:modelValue":a[0]||(a[0]=t=>s(e).email=t),type:"email",class:"mt-1 block w-full",required:"",autofocus:""},null,8,["modelValue"])]),l("div",$,[o(n,{for:"password",value:"Password"}),o(i,{id:"password",modelValue:s(e).password,"onUpdate:modelValue":a[1]||(a[1]=t=>s(e).password=t),type:"password",class:"mt-1 block w-full",required:"",autocomplete:"new-password"},null,8,["modelValue"])]),l("div",q,[o(n,{for:"password_confirmation",value:"Confirm Password"}),o(i,{id:"password_confirmation",modelValue:s(e).password_confirmation,"onUpdate:modelValue":a[2]||(a[2]=t=>s(e).password_confirmation=t),type:"password",class:"mt-1 block w-full",required:"",autocomplete:"new-password"},null,8,["modelValue"])]),l("div",C,[o(P,{loading:s(e).processing},{default:r(()=>[v(y(s(d)("Reset Password")),1)]),_:1},8,["loading"])])],32)]),_:1})],64))}};export{L as default};
