import{i as u,T as p,d as c,k as f,e as _,b as s,u as o,w as r,F as w,o as g,Z as y,a,t as l,g as b,l as h}from"./app-WJL2kJBE.js";import{J as x}from"./AuthenticationCard-DsL5pTVv.js";import{_ as v}from"./AuthenticationCardLogo-DfLTNru8.js";import{L as V}from"./LoadingButton-H6RtHB1p.js";import{_ as k}from"./Input-C4-VG2dv.js";import{_ as B}from"./Label-CBaaVbfI.js";import{_ as C}from"./ValidationErrors-Bh9Wy7Xq.js";const I={class:"mb-4 text-sm text-gray-600"},$={class:"flex justify-end mt-4"},M={__name:"ConfirmPassword",setup(F){const{t}=u({}),e=p({password:""}),n=c(null);f(()=>{document.getElementById("app-loading").style.display="none"});const d=()=>{e.post(route("password.confirm"),{onFinish:()=>{e.reset(),n.value.focus()}})};return(N,i)=>(g(),_(w,null,[s(o(y),{title:o(t)("Secure Area")},null,8,["title"]),s(x,null,{logo:r(()=>[s(v)]),default:r(()=>[a("div",I,l(o(t)("This is a secure area of the application. Please confirm your password before continuing.")),1),s(C,{class:"mb-4"}),a("form",{onSubmit:h(d,["prevent"])},[a("div",null,[s(B,{for:"password",value:"Password"}),s(k,{id:"password",ref_key:"passwordInput",ref:n,modelValue:o(e).password,"onUpdate:modelValue":i[0]||(i[0]=m=>o(e).password=m),type:"password",class:"mt-1 block w-full",required:"",autocomplete:"current-password",autofocus:""},null,8,["modelValue"])]),a("div",$,[s(V,{class:"ml-4",loading:o(e).processing},{default:r(()=>[b(l(o(t)("Confirm")),1)]),_:1},8,["loading"])])],32)]),_:1})],64))}};export{M as default};
