1import{j as u}from"./framer-DbXnyaUo.js";import{r as l}from"./react-vendor-6oUXGUve.js";import{b as n}from"./index-BgaYA15b.js";import"./supabase-Cn3sO8Aj.js";import"./ui-vendor-BqCI4N8J.js";const h=new URLSearchParams(window.location.search),s=h.get("return_to")||null,i=s&&/^\/[^/\\]/.test(s)?s:null,r=!!i;if(!r)try{sessionStorage.setItem("fonada-is-oauth-popup","1")}catch{}function y(){return l.useEffect(()=>{(async()=>{var e;if(await new Promise(t=>{const{data:{subscription:a}}=n.auth.onAuthStateChange((o,c)=>{(o==="SIGNED_IN"||o==="TOKEN_REFRESHED")&&c&&(a.unsubscribe(),t())});n.auth.getSession().then(({data:o})=>{o.session&&(a.unsubscribe(),t())}),setTimeout(()=>{a.unsubscribe(),t()},8e3)}),r)window.location.replace(i);else{try{const t=new BroadcastChannel("fonada-oauth");t.postMessage({type:"fonada-oauth-ok"}),t.close()}catch{try{(e=window.opener)==null||e.postMessage({type:"fonada-oauth-ok"},window.location.origin)}catch{}}window.close()}})()},[]),u.jsx("div",{style:{minHeight:"100vh",display:"flex",alignItems:"center",justifyContent:"center",fontFamily:"system-ui, sans-serif",background:"var(--bg-canvas)",color:"var(--text-muted)",fontSize:14},children:"Signing you in⦠this window will close automatically."})}export{y 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.