import{j as o}from"./use-appearance-8eVZaEiS.js";import{q as a}from"./index-M-dIbJkz.js";import{L as m,I as l,a as n}from"./label-DMnOm6sK.js";import{B as u}from"./app-logo-icon-CtnVg_Oz.js";import{A as p,L as c}from"./auth-layout-ChasJKFE.js";import{H as h,F as f}from"./app-eHTawc8c.js";import"./index-CnZrQ6M-.js";import"./createLucideIcon-BBWnyfSA.js";/* empty css            */const s=r=>({url:s.url(r),method:"get"});s.definition={methods:["get","head"],url:"/confirm-password"};s.url=r=>s.definition.url+a(r);s.get=r=>({url:s.url(r),method:"get"});s.head=r=>({url:s.url(r),method:"head"});const t=r=>({action:s.url(r),method:"get"});t.get=r=>({action:s.url(r),method:"get"});t.head=r=>({action:s.url({[r?.mergeQuery?"mergeQuery":"query"]:{_method:"HEAD",...r?.query??r?.mergeQuery??{}}}),method:"get"});s.form=t;const e=r=>({url:e.url(r),method:"post"});e.definition={methods:["post"],url:"/confirm-password"};e.url=r=>e.definition.url+a(r);e.post=r=>({url:e.url(r),method:"post"});const i=r=>({action:e.url(r),method:"post"});i.post=r=>({action:e.url(r),method:"post"});e.form=i;const w={store:e};function b(){return o.jsxs(p,{title:"Confirm your password",description:"This is a secure area of the application. Please confirm your password before continuing.",children:[o.jsx(h,{title:"Confirm password"}),o.jsx(f,{...w.store.form(),resetOnSuccess:["password"],children:({processing:r,errors:d})=>o.jsxs("div",{className:"space-y-6",children:[o.jsxs("div",{className:"grid gap-2",children:[o.jsx(m,{htmlFor:"password",children:"Password"}),o.jsx(l,{id:"password",type:"password",name:"password",placeholder:"Password",autoComplete:"current-password",autoFocus:!0}),o.jsx(n,{message:d.password})]}),o.jsx("div",{className:"flex items-center",children:o.jsxs(u,{className:"w-full",disabled:r,children:[r&&o.jsx(c,{className:"h-4 w-4 animate-spin"}),"Confirm password"]})})]})})]})}export{b as default};
