import{S as l,r as c,j as s,e as p}from"./app-DB4YCWeF.js";import{G as u}from"./GuestLayout-LP695uwk.js";import{T as f,I as x}from"./TextInput-NMQJsSGr.js";import{I as j}from"./InputLabel-CWWWKDVv.js";function v(){const{data:r,setData:a,post:t,processing:o,errors:n,reset:i}=l({password:""});c.useEffect(()=>()=>{i("password")},[]);const m=e=>{a(e.target.name,e.target.value)},d=e=>{e.preventDefault(),t(route("password.confirm"))};return s.jsxs(u,{children:[s.jsx(p,{title:"Confirm Password"}),s.jsx("div",{className:"mb-4 text-sm text-gray-600",children:"This is a secure area of the application. Please confirm your password before continuing."}),s.jsxs("form",{onSubmit:d,children:[s.jsxs("div",{className:"mt-4",children:[s.jsx(j,{htmlFor:"password",value:"Password"}),s.jsx(f,{id:"password",type:"password",name:"password",value:r.password,className:"mt-1 block w-full",isFocused:!0,onChange:m}),s.jsx(x,{message:n.password,className:"mt-2"})]}),s.jsx("div",{className:"flex items-center justify-end mt-4",children:s.jsx("button",{className:"btn btn-sm btn-primary",disabled:o,children:"Confirm"})})]})]})}export{v as default};
