PageSourceSearch

https://portal.metropolitana.edu.br/_next/static/chunks/app/(auth)/login/page-ec06bc75d3efa44d.js

js metropolitana.edu.br collected 2026-10-02 12:26:37 UTC 5,381 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[72],{7236:(e,r,a)=>{"use strict";a.d(r,{U:()=>t});var s=a(93734);function t(){return(0,s.createBrowserClient)("https://zmzazaakbgheflkewvrb.supabase.co","sb_publishable_4tlgIIB2gZ14LZn97i7CJA_gzR3cm1U")}},13545:(e,r,a)=>{"use strict";a.d(r,{A:()=>s});let s=(0,a(78340).A)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])},25777:(e,r,a)=>{"use strict";a.d(r,{A:()=>s});let s=(0,a(78340).A)("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]])},40682:(e,r,a)=>{Promise.resolve().then(a.bind(a,53740)),Promise.resolve().then(a.t.bind(a,98500,23))},53740:(e,r,a)=>{"use strict";a.d(r,{LoginForm:()=>x});var s=a(95155),t=a(12115),l=a(73321),n=a(98500),i=a.n(n),o=a(55559),d=a(13545),c=a(92289),m=a(25777),u=a(6296),h=a(7236);function x(){let e=(0,l.useRouter)(),[r,a]=(0,t.useState)(""),[n,x]=(0,t.useState)(""),[p,b]=(0,t.useState)(""),[y,f]=(0,t.useState)(!1),g=async a=>{a.preventDefault(),b(""),f(!0);try{let a=(0,h.U)(),{error:s}=await a.auth.signInWithPassword({email:r,password:n});if(s){b("Email ou senha incorretos. Tente novamente."),f(!1);return}e.refresh()}catch(e){b("Ocorreu um erro ao fazer login. Tente novamente."),f(!1)}};return(0,s.jsxs)("div",{className:"w-full max-w-md",children:[(0,s.jsxs)("div",{className:"text-center mb-8",children:[(0,s.jsx)("div",{className:"inline-flex items-center justify-center w-16 h-16 rounded-2xl bg-primary shadow-lg shadow-primary/30 mb-4",children:(0,s.jsx)(o.A,{className:"w-9 h-9 text-primary-foreground"})}),(0,s.jsx)("h1",{className:"text-2xl font-bold text-gray-900 mb-2",children:"Portal Acad\xeamico"}),(0,s.jsx)("p",{className:"text-gray-500",children:"Acesso para Funcion\xe1rios"})]}),(0,s.jsx)("div",{className:"bg-white rounded-2xl shadow-xl shadow-gray-200/50 p-8 border border-gray-100",children:(0,s.jsxs)("form",{onSubmit:g,className:"space-y-6",children:[p&&(0,s.jsxs)("div",{className:"bg-red-50 border border-red-200 rounded-lg p-4 flex items-start gap-3",children:[(0,s.jsx)(d.A,{className:"w-5 h-5 text-red-600 flex-shrink-0 mt-0.5"}),(0,s.jsx)("p",{className:"text-sm text-red-800",children:p})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"email",className:"block text-sm font-medium text-gray-700 mb-2",children:"Email"}),(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)(c.A,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-5 h-5 text-gray-400"}),(0,s.jsx)("input",{id:"email",type:"email",value:r,onChange:e=>a(e.target.value),required:!0,className:"w-full pl-10 pr-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary focus:border-transparent outline-none transition-all",placeholder:"[email protected]",disabled:y})]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"password",className:"block text-sm font-medium text-gray-700 mb-2",children:"Senha"}),(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)(m.A,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-5 h-5 text-gray-400"}),(0,s.jsx)("input",{id:"password",type:"password",value:n,onChange:e=>x(e.target.value),required:!0,className:"w-full pl-10 pr-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary focus:border-transparent outline-none transition-all",placeholder:"••••••••",disabled:y})]})]}),(0,s.jsx)("div",{className:"flex justify-end",children:(0,s.jsx)("a",{href:"/recuperar-senha",className:"text-sm text-primary hover:text-amber-600 transition-colors",children:"Esqueceu sua senha?"})}),(0,s.jsx)("button",{type:"submit",disabled:y,className:"w-full bg-gradient-to-r from-primary to-amber-400 text-primary-foreground font-semibold py-3 rounded-lg hover:shadow-lg hover:shadow-primary/30 transition-all disabled:opacity-50 disabled:cursor-not-allowed flex items-center justify-center gap-2",children:y?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(u.A,{className:"w-5 h-5 animate-spin"}),"Entrando..."]}):"Entrar"})]})}),(0,s.jsx)("div",{className:"mt-6",children:(0,s.jsxs)(i(),{href:"/login/aluno",className:"w-full flex items-center justify-center gap-2 px-4 py-3 bg-amber-100 text-amber-700 font-medium rounded-lg hover:bg-amber-200 transition-all",children:[(0,s.jsx)(o.A,{className:"w-5 h-5"}),"Sou Aluno"]})}),(0,s.jsxs)("p",{className:"text-center text-sm text-gray-500 mt-6",children:["Problemas para acessar?"," ",(0,s.jsx)("a",{href:"/suporte",className:"text-primary hover:text-amber-600 transition-colors",children:"Entre em contato"})]})]})}},55559:(e,r,a)=>{"use strict";a.d(r,{A:()=>s});let s=(0,a(78340).A)("graduation-cap",[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]])},73321:(e,r,a)=>{"use strict";var s=a(74645);a.o(s,"usePathname")&&a.d(r,{usePathname:function(){return s.usePathname}}),a.o(s,"useRouter")&&a.d(r,{useRouter:function(){return s.useRouter}}),a.o(s,"useSearchParams")&&a.d(r,{useSearchParams:function(){return s.useSearchParams}})}},e=>{e.O(0,[5730,8500,2619,8384,3108,8441,5838,7358],()=>e(e.s=40682)),_N_E=e.O()}]);

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.