import{n as e,t}from"./jsx-runtime-BrKkGzFB.js";import{t as n}from"./password-input-DWL5jxHj.js";import{B as r,Et as i,Tt as a,at as o}from"./app-KzKSswgw.js";import{t as s}from"./input-error-B1iqlu2_.js";import{t as c}from"./label-1JB2VirV.js";import{n as l}from"./confirm-D16zo-eI.js";var u=e(),d=t();function f(){let e=(0,u.c)(2),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,d.jsx)(i,{title:`Confirm password`}),e[0]=t):t=e[0];let n;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,d.jsxs)(d.Fragment,{children:[t,(0,d.jsx)(a,{...l.form(),resetOnSuccess:[`password`],children:p})]}),e[1]=n):n=e[1],n}function p(e){let{processing:t,errors:i}=e;return(0,d.jsxs)(`div`,{className:`space-y-6`,children:[(0,d.jsxs)(`div`,{className:`grid gap-2`,children:[(0,d.jsx)(c,{htmlFor:`password`,children:`Password`}),(0,d.jsx)(n,{id:`password`,name:`password`,placeholder:`Password`,autoComplete:`current-password`,autoFocus:!0}),(0,d.jsx)(s,{message:i.password})]}),(0,d.jsx)(`div`,{className:`flex items-center`,children:(0,d.jsxs)(r,{className:`w-full`,disabled:t,"data-test":`confirm-password-button`,children:[t&&(0,d.jsx)(o,{}),`Confirm password`]})})]})}f.layout={title:`Confirm your password`,description:`This is a secure area of the application. Please confirm your password before continuing.`};export{f as default};