import{W as x,j as s,Y as l}from"./BulkImageUpload-DGPbX05r.js";import{G as f}from"./Guest-6K6LWNVV.js";import{T as t,I as m}from"./TextInput-BH4gGCTA.js";import{I as i}from"./InputLabel-DawoKJf2.js";import{P as j}from"./PrimaryButton-zxcQRx6M.js";import"./bootstrap.esm-e_F80uXB.js";function _({token:n,email:d}){const{data:e,setData:o,post:c,processing:p,errors:r,reset:w}=x({token:n,email:d,password:"",password_confirmation:""}),u=a=>{a.preventDefault(),c(route("password.store"),{onFinish:()=>w("password","password_confirmation")})};return s.jsxs(f,{children:[s.jsx(l,{title:"Reset Password"}),s.jsxs("div",{className:"container-fluid big-padding my-5",children:[s.jsx(l,{title:"Forget Password"}),s.jsx("div",{className:"container-lg py-5",children:s.jsx("div",{className:"row",children:s.jsx("div",{className:"col-xl-4 shadow-md rounded login-col bg-white shadow-sm p-5 col-lg-7 col-md-9 mx-auto",children:s.jsxs("form",{onSubmit:u,children:[s.jsxs("div",{children:[s.jsx(i,{htmlFor:"email",value:"Email"}),s.jsx(t,{id:"email",type:"email",name:"email",value:e.email,className:"mt-1 block w-full",autoComplete:"username",onChange:a=>o("email",a.target.value)}),s.jsx(m,{message:r.email,className:"mt-2"})]}),s.jsxs("div",{className:"mt-4",children:[s.jsx(i,{htmlFor:"password",value:"Password"}),s.jsx(t,{id:"password",type:"password",name:"password",value:e.password,className:"mt-1 block w-full",autoComplete:"new-password",isFocused:!0,onChange:a=>o("password",a.target.value)}),s.jsx(m,{message:r.password,className:"mt-2"})]}),s.jsxs("div",{className:"mt-4",children:[s.jsx(i,{htmlFor:"password_confirmation",value:"Confirm Password"}),s.jsx(t,{type:"password",id:"password_confirmation",name:"password_confirmation",value:e.password_confirmation,className:"mt-1 form-control w-full",autoComplete:"new-password",onChange:a=>o("password_confirmation",a.target.value)}),s.jsx(m,{message:r.password_confirmation,className:"mt-2"})]}),s.jsx("div",{className:"flex items-center justify-end mt-4",children:s.jsx(j,{className:"ms-4",disabled:p,children:"Reset Password"})})]})})})})]})]})}export{_ as default};
