import{a as d,j as s,H as n}from"./app-CyJEXGyv.js";import{I as l}from"./input-error-AHFMiRC5.js";import{B as c}from"./button-COEJSQkW.js";import{I as u}from"./input-De4RhZu7.js";import{L as f}from"./label-CPJPVYbz.js";import{A as w}from"./auth-layout-9EM_St_f.js";import{L as h}from"./loader-circle-C9PZqms-.js";import"./utils-D3rN0LeJ.js";import"./index-l-_2VD5G.js";import"./app-logo-icon-bwP4qd8Q.js";import"./createLucideIcon-DqnlFWer.js";import"./badge-BSEA-Kjk.js";import"./utensils-DVq7Up9p.js";import"./card-BjOMVxEn.js";function D(){const{data:a,setData:e,post:t,processing:o,errors:i,reset:p}=d({password:""}),m=r=>{r.preventDefault(),t(route("password.confirm"),{onFinish:()=>p("password")})};return s.jsxs(w,{title:"Confirm your password",description:"This is a secure area of the application. Please confirm your password before continuing.",children:[s.jsx(n,{title:"Confirm password"}),s.jsx("form",{onSubmit:m,children:s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{className:"grid gap-2",children:[s.jsx(f,{htmlFor:"password",children:"Password"}),s.jsx(u,{id:"password",type:"password",name:"password",placeholder:"Password",autoComplete:"current-password",value:a.password,autoFocus:!0,onChange:r=>e("password",r.target.value)}),s.jsx(l,{message:i.password})]}),s.jsx("div",{className:"flex items-center",children:s.jsxs(c,{className:"w-full",disabled:o,children:[o&&s.jsx(h,{className:"h-4 w-4 animate-spin"}),"Confirm password"]})})]})})]})}export{D as default};
