import{S as u,r as p,j as s,a as f}from"./app-BZJf8lgN.js";import{G as j}from"./GuestLayout-DMmAkuUq.js";import{I as m}from"./InputError-DE3wWovO.js";import{P as h}from"./PrimaryButton-DZfTvxkJ.js";import"./TextInput-BR_8t0R7.js";import{I as o}from"./inputtext.esm-B1lZn37a.js";import"./button.esm-D_cwsnQR.js";import"./hooks.esm-UVLztt_0.js";function L({status:a,canResetPassword:b,appName:i}){const{data:r,setData:t,post:n,processing:d,errors:l,reset:c}=u({username:"",password:"",remember:!1});p.useEffect(()=>()=>{c("password")},[]);const x=e=>{e.preventDefault(),n(route("login"))};return s.jsxs(j,{children:[s.jsx(f,{title:"Log in"}),a&&s.jsx("div",{className:"mb-4 font-medium text-sm text-green-600",children:a}),s.jsx("div",{className:"flex align-items-center justify-content-center flex-column",children:s.jsxs("div",{className:"surface-card p-6 sm:p-4 shadow-2 border-round w-full lg:w-4",children:[s.jsx("div",{className:"text-center mb-5",children:s.jsxs("div",{className:"text-900 text-3xl font-medium mb-3",children:["Administrador ",i]})}),s.jsx("form",{onSubmit:x,children:s.jsxs("div",{children:[s.jsxs("div",{className:"mb-3",children:[s.jsx("label",{htmlFor:"email",className:"block text-900 font-medium mb-2",children:"Usuario"}),s.jsx(o,{id:"email",type:"text",placeholder:"Usuario",className:"w-full",value:r.email,onChange:e=>t("username",e.target.value)}),s.jsx(m,{message:l.email,className:""})]}),s.jsxs("div",{className:"mb-3",children:[s.jsx("label",{htmlFor:"password",className:"block text-900 font-medium mb-2",children:"Password"}),s.jsx(o,{id:"password",type:"password",placeholder:"Password",className:"w-full",value:r.password,onChange:e=>t("password",e.target.value)}),s.jsx(m,{message:l.password,className:""})]}),s.jsx(h,{label:"Login",className:"w-full",disabled:d})]})})]})})]})}export{L as default};
//# sourceMappingURL=Login-Ch8MLEXp.js.map
