1import{a as i,l,r as o,j as e,L as u,g as m}from"./index-46b0d61a.js";function h(){const s=i(),t=l(),[r,n]=o.useState(null);return o.useEffect(()=>{(async()=>{const{data:{session:c},error:a}=await m.auth.getSession();if(a){console.error("Auth Callback Error:",a),n(a.message),setTimeout(()=>s("/login"),3e3);return}c?(console.log("â
Session found in callback. Redirecting..."),s("/",{replace:!0})):t.hash||t.search?(console.log("ⳠProcessing URL parameters..."),setTimeout(()=>{s("/login")},4e3)):s("/login")})()},[s,t]),e.jsx("div",{className:"min-h-screen bg-[#0d031c] flex flex-col items-center justify-center p-4",children:r?e.jsxs("div",{className:"text-red-400 text-center",children:[e.jsx("p",{className:"font-bold mb-2",children:"Erro de Autenticação"}),e.jsx("p",{className:"text-sm opacity-80",children:r})]}):e.jsxs(e.Fragment,{children:[e.jsx(u,{className:"w-10 h-10 text-[#f7e08b] animate-spin mb-4"}),e.jsx("p",{className:"text-white/50 text-sm font-cinzel tracking-widest",children:"Sincronizando Destinos..."})]})})}export{h 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.