1import{v as h,j as e,$ as j}from"./app-Dpdn6RkY.js";import{I as l}from"./input-error-CmgWO22x.js";import{T as d}from"./text-link-DnJZfMLF.js";import{P as b}from"./primary-button-Cc1Q7518.js";import{C as f}from"./checkbox-DkGha2cv.js";import{L as t,I as n}from"./label-BLUGSRnM.js";import{A as g}from"./auth-layout-BXcCRWOw.js";import{L as v}from"./loader-circle-FqlKruuY.js";/* empty css */import"./index-H3WrPmOw.js";import"./index-Dr1PzIeU.js";import"./check-B7CsewCy.js";function D({status:m,canResetPassword:c}){const{data:r,setData:a,post:p,processing:i,errors:o,reset:x}=h({email:"",password:"",remember:!0}),u=s=>{s.preventDefault(),p(route("login"),{onFinish:()=>x("password")})};return e.jsxs(g,{title:"Iniciar sessão",description:"Introduza o seu email e palavra-passe abaixo para entrar",children:[e.jsx(j,{title:"Iniciar sessão"}),e.jsxs("form",{className:"flex flex-col gap-6",onSubmit:u,children:[e.jsxs("div",{className:"grid gap-6",children:[e.jsxs("div",{className:"grid gap-2",children:[e.jsx(t,{htmlFor:"email",children:"Endereço de email"}),e.jsx(n,{id:"email",type:"email",required:!0,autoFocus:!0,tabIndex:1,autoComplete:"email",value:r.email,onChange:s=>a("email",s.target.value),placeholder:"[email protected]"}),e.jsx(l,{message:o.email})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsxs("div",{className:"flex items-center",children:[e.jsx(t,{htmlFor:"password",children:"Palavra-passe"}),c&&e.jsx(d,{href:route("password.request"),className:"ml-auto text-sm",tabIndex:5,children:"Esqueceu-se da palavra-passe?"})]}),e.jsx(n,{id:"password",type:"password",required:!0,tabIndex:2,autoComplete:"current-password",value:r.password,onChange:s=>a("password",s.target.value),placeholder:"Palavra-passe"}),e.jsx(l,{message:o.password})]}),e.jsxs("div",{className:"flex items-center space-x-3",children:[e.jsx(f,{id:"remember",name:"remember",checked:r.remember,onClick:()=>a("remember",!r.remember),tabIndex:3}),e.jsx(t,{htmlFor:"remember",children:"Lembrar-me"})]}),e.jsxs(b,{type:"submit",className:"mt-4 w-full",tabIndex:4,disabled:i,children:[i&&e.jsx(v,{className:"h-4 w-4 animate-spin"}),"Iniciar sessão"]})]}),e.jsxs("div",{className:"text-muted-foreground text-center text-sm",children:["Não tem conta?"," ",e.jsx(d,{href:route("register"),tabIndex:5,children:"Registar"})]})]}),m&&e.jsx("div",{className:"mb-4 text-center text-sm font-medium text-green-600",children:m})]})}export{D as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.