import{j as s,e as c,r as l,H as p,f as u}from"./vendor-laZsiqLO.js";import{G as f}from"./GuestLayout-Bncnlxxo.js";import{u as x}from"./useTranslation-BW0o-tkY.js";import{B as w}from"./button-B8f8jW4H.js";import{I as h}from"./input-CT5MkJwj.js";import{L as j}from"./label-BDbCc0wv.js";import{C,a as _,b,c as N,d as v}from"./card-BKDXjfy_.js";import"./SiteLogo-DML5Oulk.js";import"./dropdown-menu-CpMN0BZ0.js";import"./utils-RgT4yCq8.js";import"./sheet-Cp4V1hdh.js";import"./useFlashMessages-CQoLOBuv.js";import"./AdSlot-HY9FvbmL.js";import"./RightSidebarFooter-BO77c1r9.js";import"./avatar-1RNhlzAH.js";function y({message:r,className:a="",...e}){return r?s.jsx("p",{...e,className:"text-sm text-red-600 "+a,children:r}):null}function z(){const{t:r}=x(),{data:a,setData:e,post:i,processing:t,errors:m,reset:n}=c({password:""});l.useEffect(()=>()=>{n("password")},[]);const d=o=>{o.preventDefault(),i(route("password.confirm"))};return s.jsxs(f,{children:[s.jsx(p,{title:r("_confirm_password","Confirm Password")}),s.jsx("div",{className:"flex items-center justify-center min-h-[80vh]",children:s.jsxs(C,{className:"w-full max-w-md shadow-lg border-0 sm:border",children:[s.jsxs(_,{children:[s.jsx(b,{className:"text-2xl font-bold",children:r("_confirm_password","Confirm Password")}),s.jsx(N,{children:r("_secure_area_notice","This is a secure area of the application. Please confirm your password before continuing.")})]}),s.jsx(v,{children:s.jsxs("form",{onSubmit:d,children:[s.jsxs("div",{className:"space-y-2",children:[s.jsx(j,{htmlFor:"password",children:r("_auth_password","Password")}),s.jsx(h,{id:"password",type:"password",name:"password",value:a.password,className:"mt-1 block w-full",autoFocus:!0,onChange:o=>e("password",o.target.value)}),s.jsx(y,{message:m.password,className:"mt-2"})]}),s.jsx("div",{className:"mt-6 flex items-center justify-end",children:s.jsxs(w,{className:"ms-4",disabled:t,children:[t&&s.jsx(u,{className:"me-2 h-4 w-4 animate-spin"}),r("_confirm","Confirm")]})})]})})]})})]})}export{z as default};
