import{W as m,r as c,j as s,Y as p}from"./app-BAHAOwU3.js";import{G as l}from"./guest-layout-g1xwyawt.js";import{C as u,a as f,b as x,c as j,d as w}from"./card-pClq6asL.js";import{L as h}from"./label-DP7sGf18.js";import{I as C}from"./input-CeK7CEQL.js";import{I as b}from"./input-error-Be2KxtIS.js";import{B as g}from"./button-T-Jxhehc.js";function F(){const{data:a,setData:e,post:o,processing:t,errors:i,reset:n}=m({password:""});c.useEffect(()=>()=>{n("password")},[]);const d=r=>{r.preventDefault(),o(route("password.confirm"))};return s.jsxs(l,{children:[s.jsx(p,{title:"Confirm Password"}),s.jsx("form",{onSubmit:d,children:s.jsxs(u,{children:[s.jsx(f,{children:s.jsx(x,{children:"This is a secure area of the application. Please confirm your password before continuing."})}),s.jsx(j,{children:s.jsxs("div",{className:"mt-4",children:[s.jsx(h,{htmlFor:"password",children:"Password"}),s.jsx(C,{id:"password",type:"password",name:"password",value:a.password,className:"mt-1 block w-full",autoFocus:!0,onChange:r=>e("password",r.target.value)}),s.jsx(b,{message:i.password,className:"mt-2"})]})}),s.jsx(w,{className:"flex items-center justify-end mt-4",children:s.jsx(g,{className:"ms-4",disabled:t,children:"Confirm"})})]})})]})}export{F as default};
