import{u as i,j as s,H as d}from"./app-BQEFzdw6.js";function m(){const{data:a,setData:r,post:o,processing:t,errors:n}=i({password:"",password_confirmation:""}),l=e=>{e.preventDefault(),o("/change-password")};return s.jsxs(s.Fragment,{children:[s.jsx(d,{title:"Change Password"}),s.jsx("div",{className:"min-h-screen bg-gray-50 flex items-center justify-center p-4",children:s.jsxs("div",{className:"w-full max-w-md card p-8",children:[s.jsx("h1",{className:"text-xl font-bold text-gray-900 mb-2",children:"Change Your Password"}),s.jsx("p",{className:"text-sm text-gray-600 mb-6",children:"You must change your password before continuing."}),s.jsxs("form",{onSubmit:l,className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("label",{className:"form-label",children:"New Password"}),s.jsx("input",{type:"password",value:a.password,onChange:e=>r("password",e.target.value),className:"form-input",required:!0,autoFocus:!0}),n.password&&s.jsx("p",{className:"form-error",children:n.password})]}),s.jsxs("div",{children:[s.jsx("label",{className:"form-label",children:"Confirm Password"}),s.jsx("input",{type:"password",value:a.password_confirmation,onChange:e=>r("password_confirmation",e.target.value),className:"form-input",required:!0})]}),s.jsx("button",{type:"submit",disabled:t,className:"btn-primary w-full justify-center",children:t?"Changing...":"Change Password"})]})]})})]})}export{m as default};
