import{u as x,b as j,j as s,H as _}from"./vendor-BKmmeuxg.js";import{I as m}from"./input-error-LaPr_4wd.js";import{L as v}from"./loading-button-BnTVAMJ7.js";import{I as l}from"./input-DM0goJrn.js";import{L as n}from"./label-HmIcv5Yx.js";import{A as N}from"./auth-layout-BJbsflAX.js";import"./utils-DxSsnXxD.js";import"./button-BpNwv2aE.js";import"./index-WW_1X1qx.js";import"./app-logo-CmnEIwal.js";import"./main-_V386djS.js";import"./index-D9-QKOod.js";function R({token:p,email:d}){const{props:c}=x(),{auth:e,input:o,button:u}=c.translate,{data:r,setData:t,post:w,processing:f,errors:i,reset:h}=j({token:p,email:d,password:"",password_confirmation:""}),g=a=>{a.preventDefault(),w(route("password.store"),{onFinish:()=>h("password","password_confirmation")})};return s.jsxs(N,{title:e.reset_title,description:e.reset_description,children:[s.jsx(_,{title:e.reset_title}),s.jsx("form",{onSubmit:g,children:s.jsxs("div",{className:"grid gap-6",children:[s.jsxs("div",{className:"grid gap-2",children:[s.jsx(n,{htmlFor:"email",children:o.email}),s.jsx(l,{id:"email",type:"email",name:"email",autoComplete:"email",value:r.email,className:"mt-1 block w-full",readOnly:!0,onChange:a=>t("email",a.target.value)}),s.jsx(m,{message:i.email,className:"mt-2"})]}),s.jsxs("div",{className:"grid gap-2",children:[s.jsx(n,{htmlFor:"password",children:o.password}),s.jsx(l,{id:"password",type:"password",name:"password",autoComplete:"new-password",value:r.password,className:"mt-1 block w-full",autoFocus:!0,onChange:a=>t("password",a.target.value),placeholder:o.password_placeholder}),s.jsx(m,{message:i.password})]}),s.jsxs("div",{className:"grid gap-2",children:[s.jsx(n,{htmlFor:"password_confirmation",children:o.confirm_password}),s.jsx(l,{id:"password_confirmation",type:"password",name:"password_confirmation",autoComplete:"new-password",value:r.password_confirmation,className:"mt-1 block w-full",onChange:a=>t("password_confirmation",a.target.value),placeholder:o.confirm_password}),s.jsx(m,{message:i.password_confirmation,className:"mt-2"})]}),s.jsx(v,{className:"mt-4 w-full",loading:f,children:u.submit})]})})]})}export{R as default};
