PageSourceSearch

https://quattre.lovable.app/assets/quattre.login-DUVI3WyC.js

js quattre.lovable.app collected 2026-10-03 03:41:05 UTC 1,797 bytes, 1 lines download raw bytes

1import{c as b,r as s,j as e}from"./main-DLd6YNnV.js";import{s as p}from"./client-B1Y6rnID.js";function h(){const d=b(),[a,u]=s.useState(""),[r,c]=s.useState(""),[o,l]=s.useState(""),[n,i]=s.useState(!1),m=async t=>{t.preventDefault(),l(""),i(!0);const{error:x}=await p.auth.signInWithPassword({email:a,password:r});if(i(!1),x){l("E-mail ou senha incorretos.");return}d({to:"/quattre"})};return e.jsx("div",{className:"min-h-screen flex items-center justify-center bg-slate-100 px-4",children:e.jsxs("form",{onSubmit:m,className:"w-full max-w-sm rounded-2xl bg-white p-8 shadow-xl border border-slate-200",children:[e.jsx("h1",{className:"text-2xl font-bold text-slate-900",children:"Painel Quattre"}),e.jsx("p",{className:"mt-1 mb-6 text-sm text-slate-500",children:"Entre com suas credenciais de admin."}),o&&e.jsx("div",{className:"mb-4 rounded-lg bg-red-50 px-3 py-2 text-sm text-red-700 border border-red-200",children:o}),e.jsx("label",{className:"block text-xs font-medium uppercase tracking-widest text-slate-500",children:"E-mail"}),e.jsx("input",{type:"email",value:a,onChange:t=>u(t.target.value),required:!0,className:"mt-1 mb-4 w-full rounded-lg border border-slate-300 px-3 py-2.5 text-sm focus:border-slate-900 focus:outline-none"}),e.jsx("label",{className:"block text-xs font-medium uppercase tracking-widest text-slate-500",children:"Senha"}),e.jsx("input",{type:"password",value:r,onChange:t=>c(t.target.value),required:!0,className:"mt-1 mb-6 w-full rounded-lg border border-slate-300 px-3 py-2.5 text-sm focus:border-slate-900 focus:outline-none"}),e.jsx("button",{type:"submit",disabled:n,className:"w-full rounded-lg bg-slate-900 py-2.5 text-sm font-semibold text-white hover:bg-slate-800 disabled:opacity-60",children:n?"Entrando...":"Entrar"})]})})}export{h as component};

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.