PageSourceSearch

https://equilybrium.health/assets/AgentHandoff-BMv85L77.js

js equilybrium.health collected 2026-09-24 15:02:09 UTC 1,677 bytes, 1 lines download raw bytes

1var m=(r,s,e)=>new Promise((i,t)=>{var l=a=>{try{n(e.next(a))}catch(c){t(c)}},u=a=>{try{n(e.throw(a))}catch(c){t(c)}},n=a=>a.done?i(a.value):Promise.resolve(a.value).then(l,u);n((e=e.apply(r,s)).next())});import{u as d,r as f,j as o}from"./react-vendor-BEafpyAm.js";import{u as p,o as h,s as g}from"./index-UpiwJGUq.js";import"./crypto-vendor-DdVgyv-Y.js";import"./react-query-vendor-BhLAuXR4.js";import"./recharts-vendor-C3BwgIm8.js";import"./icons-vendor-CNOaxIm9.js";import"./supabase-vendor-DUUDoC-1.js";import"./date-fns-core-p4ULazqZ.js";import"./date-fns-locales-Csbs7Iu2.js";function T(){const r=d(),{t:s}=p(),[e,i]=f.useState(!1);return f.useEffect(()=>{let t=!1;return m(null,null,function*(){const u=new URLSearchParams(window.location.hash.slice(1)).get("token_hash");if(window.history.replaceState(null,"",window.location.pathname),!u){h.warn("[AgentHandoff] sem token_hash no fragmento"),t||i(!0);return}const{error:n}=yield g.auth.verifyOtp({type:"magiclink",token_hash:u});if(!t){if(n){h.warn("[AgentHandoff] verifyOtp falhou",n),i(!0);return}r("/dashboard",{replace:!0})}}),()=>{t=!0}},[r]),f.useEffect(()=>{if(!e)return;const t=setTimeout(()=>r("/auth",{replace:!0}),2500);return()=>clearTimeout(t)},[e,r]),o.jsx("div",{className:"min-h-screen flex flex-col items-center justify-center gap-3 text-center px-4",children:e?o.jsx("p",{className:"text-muted-foreground",children:s("auth.agentHandoffFailed")}):o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"h-8 w-8 animate-spin rounded-full border-2 border-primary border-t-transparent"}),o.jsx("p",{className:"text-muted-foreground",children:s("auth.agentHandoffLoading")})]})})}export{T as AgentHandoff};

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.