import{o as e,r as t,t as n}from"./jsx-runtime-BbTa8W_M-1776590214964.js";import{a as r,n as i}from"./app-CXDQ5oEH-1776590214964.js";import{t as a}from"./InputError-D01hH39E-1776590214964.js";import{n as o,t as s}from"./GuestLayout-DJEnk8y8-1776590214964.js";import{t as c}from"./useTranslation-D1etqd9u-1776590214964.js";var l=n();function u({value:e,className:t=``,children:n,...r}){return(0,l.jsx)(`label`,{...r,className:`block text-sm font-medium text-gray-700 `+t,children:e||n})}var d=e(t(),1),f=(0,d.forwardRef)(function({type:e=`text`,className:t=``,isFocused:n=!1,...r},i){let a=(0,d.useRef)(null);return(0,d.useImperativeHandle)(i,()=>({focus:()=>a.current?.focus()})),(0,d.useEffect)(()=>{n&&a.current?.focus()},[n]),(0,l.jsx)(`input`,{...r,type:e,className:`rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 `+t,ref:a})});function p(){let{t:e}=c(),{data:t,setData:n,post:d,processing:p,errors:m,reset:h}=r({password:``});return(0,l.jsxs)(s,{children:[(0,l.jsx)(i,{title:e(`Confirm Password`)}),(0,l.jsx)(`div`,{className:`mb-4 text-sm text-gray-600`,children:e(`This is a secure area of the application. Please confirm your password before continuing.`)}),(0,l.jsxs)(`form`,{onSubmit:e=>{e.preventDefault(),d(route(`password.confirm`),{onFinish:()=>h(`password`)})},children:[(0,l.jsxs)(`div`,{className:`mt-4`,children:[(0,l.jsx)(u,{htmlFor:`password`,value:e(`Password`)}),(0,l.jsx)(f,{id:`password`,type:`password`,name:`password`,value:t.password,className:`mt-1 block w-full`,isFocused:!0,onChange:e=>n(`password`,e.target.value)}),(0,l.jsx)(a,{message:m.password,className:`mt-2`})]}),(0,l.jsx)(`div`,{className:`mt-4 flex items-center justify-end`,children:(0,l.jsx)(o,{className:`ms-4`,disabled:p,children:e(`Confirm`)})})]})]})}export{p as default};