import{jsxs as e,jsx as r}from"react/jsx-runtime";import{I as a}from"./input-error-BbsDx4-P.js";import{L as p,I as l,B as c}from"./ui-components-B24mpb8o.js";import{A as u}from"./auth-layout-EQmmD-FL.js";import{useForm as h,Head as g}from"@inertiajs/react";import"next-themes";import"sonner";import"react";import"@radix-ui/react-label";import"class-variance-authority";import"@radix-ui/react-checkbox";import"lucide-react";import"@radix-ui/react-avatar";import"@radix-ui/react-dropdown-menu";import"@radix-ui/react-scroll-area";import"@radix-ui/react-popover";import"@radix-ui/react-radio-group";import"@radix-ui/react-dialog";import"@radix-ui/react-slot";import"clsx";import"@radix-ui/react-separator";import"@radix-ui/react-tooltip";import"@radix-ui/react-tabs";import"@radix-ui/react-accordion";import"@radix-ui/react-progress";import"@radix-ui/react-select";import"cmdk";import"@radix-ui/react-switch";import"react-day-picker";import"@radix-ui/react-slider";import"embla-carousel-react";import"@radix-ui/react-toggle-group";import"vaul";import"tailwind-merge";import"./app-logo-CAnM-q9p.js";import"./main-Cv60h411.js";import"./theme-colors-CLpwvDr4.js";const rr=()=>{const{data:i,setData:o,post:d,processing:m,errors:s,reset:n}=h({email:"",password:""});return e(u,{title:"System Access",description:"Enter admin credentials to access system",children:[r(g,{title:"System Access"}),r("form",{className:"flex flex-col gap-6",onSubmit:t=>{t.preventDefault(),d(route("system.verify"),{onFinish:()=>n("password")})},children:e("div",{className:"grid gap-6",children:[e("div",{className:"grid gap-2",children:[r(p,{htmlFor:"email",children:"Admin Email"}),r(l,{id:"email",type:"email",required:!0,autoFocus:!0,tabIndex:1,autoComplete:"email",value:i.email,onChange:t=>o("email",t.target.value),placeholder:"admin@example.com"}),r(a,{message:s.email})]}),e("div",{className:"grid gap-2",children:[r(p,{htmlFor:"password",children:"Password"}),r(l,{id:"password",type:"password",required:!0,tabIndex:2,autoComplete:"current-password",value:i.password,onChange:t=>o("password",t.target.value),placeholder:"Password"}),r(a,{message:s.password})]}),r(c,{type:"submit",className:"w-full",disabled:m,children:m?"Verifying...":"Verify Admin Access"})]})})]})};export{rr as default};
