import{aU as c,j as s,aR as u}from"./react-vendor-xYZnmIII.js";import{I as o}from"./input-error-_LAmvivg.js";import{L as m,I as l,B as x}from"./ui-components-CQM92IK3.js";import{A as h}from"./auth-layout-Vv6PA6-q.js";import"./inertia-vendor-cBbDTmhJ.js";import"./ui-vendor-Ds9iwIxa.js";import"./interactive-vendor-B1OgcAgP.js";import"./app-logo-BQGZ7CFC.js";import"./main-CnGu8e_N.js";import"./theme-colors-CLpwvDr4.js";const N=()=>{const{data:a,setData:r,post:d,processing:t,errors:i,reset:p}=c({email:"",password:""}),n=e=>{e.preventDefault(),d(route("system.verify"),{onFinish:()=>p("password")})};return s.jsxs(h,{title:"System Access",description:"Enter admin credentials to access system",children:[s.jsx(u,{title:"System Access"}),s.jsx("form",{className:"flex flex-col gap-6",onSubmit:n,children:s.jsxs("div",{className:"grid gap-6",children:[s.jsxs("div",{className:"grid gap-2",children:[s.jsx(m,{htmlFor:"email",children:"Admin Email"}),s.jsx(l,{id:"email",type:"email",required:!0,autoFocus:!0,tabIndex:1,autoComplete:"email",value:a.email,onChange:e=>r("email",e.target.value),placeholder:"admin@example.com"}),s.jsx(o,{message:i.email})]}),s.jsxs("div",{className:"grid gap-2",children:[s.jsx(m,{htmlFor:"password",children:"Password"}),s.jsx(l,{id:"password",type:"password",required:!0,tabIndex:2,autoComplete:"current-password",value:a.password,onChange:e=>r("password",e.target.value),placeholder:"Password"}),s.jsx(o,{message:i.password})]}),s.jsx(x,{type:"submit",className:"w-full",disabled:t,children:t?"Verifying...":"Verify Admin Access"})]})})]})};export{N as default};
