import{d as c,T as f,c as w,w as n,o as _,a as o,u as e,Z as V,b as t,e as b,n as g,f as k}from"./app-afdf1bec.js";import{_ as v}from"./GuestLayout.vue_vue_type_script_setup_true_lang-f5255303.js";import{_ as l,a as m,b as i}from"./TextInput.vue_vue_type_script_setup_true_lang-3516e644.js";import{P}from"./PrimaryButton-e9bd818d.js";import"./ApplicationLogo-470ae0ca.js";import"./_plugin-vue_export-helper-c27b6911.js";const y={class:"mt-4"},x={class:"mt-4"},B={class:"flex items-center justify-end mt-4"},j=c({__name:"ResetPassword",props:{email:{},token:{}},setup(p){const d=p,s=f({token:d.token,email:d.email,password:"",password_confirmation:""}),u=()=>{s.post(route("password.store"),{onFinish:()=>{s.reset("password","password_confirmation")}})};return(C,a)=>(_(),w(v,null,{default:n(()=>[o(e(V),{title:"Reset Password"}),t("form",{onSubmit:k(u,["prevent"])},[t("div",null,[o(l,{for:"email",value:"Email"}),o(m,{id:"email",type:"email",class:"mt-1 block w-full",modelValue:e(s).email,"onUpdate:modelValue":a[0]||(a[0]=r=>e(s).email=r),required:"",autofocus:"",autocomplete:"username"},null,8,["modelValue"]),o(i,{class:"mt-2",message:e(s).errors.email},null,8,["message"])]),t("div",y,[o(l,{for:"password",value:"Password"}),o(m,{id:"password",type:"password",class:"mt-1 block w-full",modelValue:e(s).password,"onUpdate:modelValue":a[1]||(a[1]=r=>e(s).password=r),required:"",autocomplete:"new-password"},null,8,["modelValue"]),o(i,{class:"mt-2",message:e(s).errors.password},null,8,["message"])]),t("div",x,[o(l,{for:"password_confirmation",value:"Confirm Password"}),o(m,{id:"password_confirmation",type:"password",class:"mt-1 block w-full",modelValue:e(s).password_confirmation,"onUpdate:modelValue":a[2]||(a[2]=r=>e(s).password_confirmation=r),required:"",autocomplete:"new-password"},null,8,["modelValue"]),o(i,{class:"mt-2",message:e(s).errors.password_confirmation},null,8,["message"])]),t("div",B,[o(P,{class:g({"opacity-25":e(s).processing}),disabled:e(s).processing},{default:n(()=>[...a[3]||(a[3]=[b(" Reset Password ",-1)])]),_:1},8,["class","disabled"])])],32)]),_:1}))}});export{j as default};
