import{u as c,c as w,a as e,g as a,k as _,w as m,b as r,l as g,n as V,d as v,t as $,F as k,o as b}from"./app-CYVHboi-.js";import{_ as i}from"./TextInput-CMrw-9XJ.js";import{_ as n}from"./InputError-u5FIXCwc.js";import{_ as d}from"./InputLabel-dHPaqRUC.js";import{_ as y}from"./PrimaryButton-BQjI7rS_.js";import{A as P}from"./AuthenticationCard-D7b9cu3J.js";import{_ as C}from"./AuthenticationCardLogo-DuIUHL9t.js";import"./browser-BwNzv7vE.js";import"./ApplicationLogo-DRGlNRtq.js";const F={class:"mt-4"},S={class:"mt-4"},h={class:"mt-4 flex items-center justify-end"},D={__name:"ResetPassword",props:{email:String,token:String},setup(p){const u=p,s=c({token:u.token,email:u.email,password:"",password_confirmation:""}),f=()=>{s.post(route("password.update"),{onFinish:()=>s.reset("password","password_confirmation")})};return(l,o)=>(b(),w(k,null,[e(a(_),{title:l.$t("Reset Password")},null,8,["title"]),e(P,null,{logo:m(()=>[e(C)]),default:m(()=>[r("form",{onSubmit:g(f,["prevent"])},[r("div",null,[e(d,{for:"email",value:l.$t("Email")},null,8,["value"]),e(i,{id:"email",modelValue:a(s).email,"onUpdate:modelValue":o[0]||(o[0]=t=>a(s).email=t),type:"email",class:"mt-1 block w-full",required:"",autofocus:"",autocomplete:"username"},null,8,["modelValue"]),e(n,{class:"mt-2",message:a(s).errors.email},null,8,["message"])]),r("div",F,[e(d,{for:"password",value:l.$t("Password")},null,8,["value"]),e(i,{id:"password",modelValue:a(s).password,"onUpdate:modelValue":o[1]||(o[1]=t=>a(s).password=t),type:"password",class:"mt-1 block w-full",required:"",autocomplete:"new-password"},null,8,["modelValue"]),e(n,{class:"mt-2",message:a(s).errors.password},null,8,["message"])]),r("div",S,[e(d,{for:"password_confirmation",value:l.$t("Confirm Password")},null,8,["value"]),e(i,{required:"",type:"password",class:"mt-1 block w-full",id:"password_confirmation",autocomplete:"new-password",modelValue:a(s).password_confirmation,"onUpdate:modelValue":o[2]||(o[2]=t=>a(s).password_confirmation=t)},null,8,["modelValue"]),e(n,{class:"mt-2",message:a(s).errors.password_confirmation},null,8,["message"])]),r("div",h,[e(y,{class:V({"opacity-25":a(s).processing}),disabled:a(s).processing},{default:m(()=>[v($(l.$t("Reset Password")),1)]),_:1},8,["class","disabled"])])],32)]),_:1})],64))}};export{D as default};
