PageSourceSearch

https://alphaagents.ai/assets/RegisterPage-C8FCnF2N.js

js alphaagents.ai collected 2026-10-05 15:27:50 UTC 10,114 bytes, 1 lines download raw bytes

1import{r as c,j as e,g as $}from"./index-LWm_tIko.js";import{u as B}from"./useAccessAuth-B_49fItH.js";const y="America/New_York",W="#0F172A",m="#F97316",K="#7C3AED",M="#A78BFA",D="webinar-register-visited",H="webinar-register";function k(n){let s;try{s=$()}catch{s=void 0}fetch("/api/track",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({variant:H,event:n,visitor_id:s}),keepalive:!0}).catch(()=>{})}const J="How To Build A Team Of AI Trading Agents In Claude Code, Without Knowing How To Code.",V="Watch me find tomorrow's trades live, then I'll show you how to build your own.",Y=["Build a team of AI trading agents in Claude Code, no coding.","Watch real agents scan the market and grade the best setups, live.","Turn any proven trader's process into your own /command."],Z=n=>String(n).padStart(2,"0");function E(n){const s=new Intl.DateTimeFormat("en-US",{timeZone:y,hourCycle:"h23",weekday:"short",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"}),a=Object.fromEntries(s.formatToParts(n).map(l=>[l.type,l.value]));return{y:+a.year,mo:+a.month,d:+a.day,hr:+a.hour,min:+a.minute,weekday:a.weekday}}function A(n,s,a,l){const r=new Date(Date.UTC(n,s-1,a));return r.setUTCDate(r.getUTCDate()+l),{y:r.getUTCFullYear(),mo:r.getUTCMonth()+1,d:r.getUTCDate()}}function z(n){const s=new Intl.DateTimeFormat("en-US",{timeZone:y,hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}),a=Object.fromEntries(s.formatToParts(new Date(n)).map(l=>[l.type,l.value]));return Date.UTC(+a.year,+a.month-1,+a.day,+a.hour%24,+a.minute,+a.second)-n}function g(n){const s=Date.UTC(n.y,n.mo-1,n.d,n.hr,n.min,0);return s-z(s)}function v(n){return new Intl.DateTimeFormat("en-US",{timeZone:y,hour:"numeric",minute:"2-digit"}).format(new Date(g(n)))}function I(n,s){return`${s}, ${new Intl.DateTimeFormat("en-US",{timeZone:y,month:"long",day:"numeric"}).format(new Date(g(n)))}`}function p({value:n,label:s}){return e.jsxs("div",{className:"flex flex-col items-center",children:[e.jsx("span",{className:"tabular-nums font-extrabold leading-none text-white text-4xl sm:text-5xl",children:Z(n)}),e.jsx("span",{className:"mt-2 text-[10px] uppercase tracking-[0.2em] text-white/50",children:s})]})}function N(){return e.jsx("span",{className:"-mt-2 text-3xl sm:text-4xl font-extrabold leading-none text-white/25",children:":"})}function ee(){const{session:n,status:s}=B(),[a,l]=c.useState(null),[r,u]=c.useState(null),[h,x]=c.useState(!0),[w,f]=c.useState(null),[U,F]=c.useState(()=>Date.now());c.useEffect(()=>{const t=setInterval(()=>F(Date.now()),1e3);return()=>clearInterval(t)},[]),c.useEffect(()=>{if(s==="loading")return;const t=n?.access_token;if(s!=="authed"||!t){x(!1);return}let d=!1;return fetch("/api/webinar-register",{headers:{Authorization:`Bearer ${t}`}}).then(i=>i.ok?i.json():null).then(i=>{if(!d){if(i?.registered&&i?.startIso){const o=Date.parse(i.startIso);if(o-Date.now()<=1800*1e3&&Date.now()-o<=5400*1e3){S();return}u({when:i.when||"your selected time",startMs:o})}x(!1)}}).catch(()=>!d&&x(!1)),()=>{d=!0}},[s,n?.access_token]);const T=c.useRef(!1);c.useEffect(()=>{T.current||h||s==="loading"||(T.current=!0,k("register_view"))},[h,s]);const[C]=c.useState(()=>{try{const t=localStorage.getItem(D);return localStorage.setItem(D,"1"),!t}catch{return!0}}),P=c.useMemo(()=>{const t=E(new Date),d=[];if(C&&t.hr>=9&&t.hr<21){const L=t.hr*60+t.min,b=(Math.floor(L/15)+1)*15;if(b<1261){const j={y:t.y,mo:t.mo,d:t.d,hr:Math.floor(b/60)%24,min:b%60},O=Math.max(1,Math.round((g(j)-Date.now())/6e4));d.push({key:"next15",day:"Starting now",time:v(j)+" ET",sub:`Join in ~${O} min`,slot:j})}}const i={...A(t.y,t.mo,t.d,1),hr:19,min:0};d.push({key:"t7",day:I(i,"Tomorrow"),time:v(i)+" ET",sub:"Evening session",slot:i});const o={...A(t.y,t.mo,t.d,2),hr:12,min:0},_=E(new Date(g(o))).weekday;return d.push({key:"da12",day:I(o,_),time:v(o)+" ET",sub:"Midday session",slot:o}),d},[C]);function S(){const t=new URLSearchParams(window.location.search).get("t");window.location.href=`/stream${t?`?t=${encodeURIComponent(t)}`:""}`}async function R(t,d){if(!(a||!n?.access_token)){l(d),f(null),k("register_slot_click");try{const i=await fetch("/api/webinar-register",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${n.access_token}`},body:JSON.stringify(t)}),o=await i.json();if(i.ok&&o.ok){if(k("register_complete"),o.live){S();return}u({when:o.when||"your selected time",startMs:g(t)})}else f(o.detail||o.error||"Something went wrong. Please try again.")}catch{f("Network error. Please try again.")}finally{l(null)}}}return e.jsxs(Q,{children:[e.jsx("p",{className:"text-xs sm:text-sm font-bold uppercase tracking-[0.25em]",style:{color:m},children:"Live Training · AlphaAgents.ai"}),s==="anon"?e.jsxs(e.Fragment,{children:[e.jsx("h1",{className:"mt-5 text-2xl sm:text-3xl font-extrabold leading-tight text-white",children:"Open this from your email"}),e.jsx("p",{className:"mt-4 text-base text-white/65 max-w-md mx-auto",children:"Use the link in your email so we can save your spot to your account."})]}):s==="loading"||h?e.jsx("div",{className:"mx-auto mt-10 h-7 w-7 animate-spin rounded-full border-2 border-white/25 border-t-white"}
1):r?e.jsx(G,{when:r.when,startMs:r.startMs,now:U,onChange:()=>u(null)}):e.jsxs(e.Fragment,{children:[e.jsx("h1",{className:"mt-5 text-3xl sm:text-4xl md:text-5xl font-extrabold leading-[1.1] text-white",children:J}),e.jsx("p",{className:"mt-5 text-base sm:text-lg text-white/70 leading-relaxed max-w-xl mx-auto",children:V}),e.jsx("p",{className:"mt-9 text-sm font-semibold uppercase tracking-wider text-white/50",children:"Pick your session time"}),e.jsx("div",{className:"mt-4 w-full max-w-md mx-auto space-y-3",children:P.map(t=>e.jsxs("button",{type:"button",disabled:!!a,onClick:()=>R(t.slot,t.key),className:"group flex w-full items-center justify-between rounded-2xl border border-white/10 bg-white/[0.04] px-5 py-4 text-left transition hover:border-white/30 hover:bg-white/[0.07] disabled:opacity-50",style:t.key==="next15"?{borderColor:`${m}66`,background:`${m}14`}:void 0,children:[e.jsxs("span",{children:[e.jsx("span",{className:"block text-[15px] sm:text-base font-bold text-white",children:t.day}),e.jsx("span",{className:"block text-sm font-semibold",style:{color:M},children:t.time}),e.jsx("span",{className:"block text-xs text-white/40",children:t.sub})]}),e.jsx("span",{className:"shrink-0 rounded-xl px-4 py-2 text-sm font-extrabold text-[#0F1111] transition group-hover:brightness-110",style:{background:m},children:a===t.key?"…":t.key==="next15"?"Join":"Reserve"})]},t.key))}),w&&e.jsx("p",{className:"mt-4 text-sm text-red-400",children:w}),e.jsx("ul",{className:"mt-10 mx-auto max-w-md space-y-3 text-left",children:Y.map(t=>e.jsxs("li",{className:"flex items-start gap-3",children:[e.jsx("svg",{className:"mt-1 shrink-0",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:m,strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:e.jsx("path",{d:"M20 6 9 17l-5-5"})}),e.jsx("span",{className:"text-sm sm:text-base text-white/75 leading-snug",children:t})]},t))}),e.jsxs("p",{className:"mt-12 text-xs text-white/40 leading-relaxed",children:["All times Eastern (ET). Show up live — questions get answered in the chat in real time.",e.jsx("br",{}),"Questions? ",e.jsx("a",{href:"mailto:[email protected]",className:"underline underline-offset-2 hover:text-white/60",children:"[email protected]"})]})]})]})}function G({when:n,startMs:s,now:a,onChange:l}){const r=Math.max(0,s-a),u=Math.floor(r/864e5),h=Math.floor(r/36e5)%24,x=Math.floor(r/6e4)%60,w=Math.floor(r/1e3)%60,f=r<=0;return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"mt-7 flex justify-center",children:e.jsxs("div",{className:"inline-flex items-center gap-2.5 rounded-full border border-emerald-400/30 bg-emerald-400/10 px-5 py-2.5",children:[e.jsx("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"#34D399",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:e.jsx("path",{d:"M20 6 9 17l-5-5"})}),e.jsx("span",{className:"text-sm sm:text-base font-bold text-white",children:"Your spot is saved"})]})}),e.jsx("p",{className:"mt-7 text-xl sm:text-2xl font-bold text-white",children:n}),e.jsx("div",{className:"mt-8 flex items-start justify-center gap-3 sm:gap-5",children:f?e.jsx("p",{className:"text-2xl sm:text-3xl font-extrabold",style:{color:m},children:"We're live now."}):e.jsxs(e.Fragment,{children:[u>0&&e.jsxs(e.Fragment,{children:[e.jsx(p,{value:u,label:"Days"}),e.jsx(N,{})]}),e.jsx(p,{value:h,label:"Hours"}),e.jsx(N,{}),e.jsx(p,{value:x,label:"Minutes"}),e.jsx(N,{}),e.jsx(p,{value:w,label:"Seconds"})]})}),e.jsx("p",{className:"mt-9 text-base text-white/65 max-w-md mx-auto",children:"Check your email — we'll send your reminders and the link to join when it's time."}),e.jsx("button",{type:"button",onClick:l,className:"mt-6 text-sm font-semibold underline underline-offset-4 transition hover:text-white",style:{color:M},children:"Need a different time? Change it"}),e.jsxs("p",{className:"mt-10 text-xs text-white/40",children:["Questions? ",e.jsx("a",{href:"mailto:[email protected]",className:"underline underline-offset-2 hover:text-white/60",children:"[email protected]"})]})]})}function Q({children:n}){return e.jsxs("div",{className:"relative min-h-[100dvh] w-full overflow-hidden flex items-center justify-center px-5 py-12 sm:py-16 text-center",style:{backgroundColor:W,fontFamily:"'Plus Jakarta Sans', system-ui, sans-serif"},children:[e.jsx("div",{className:"pointer-events-none absolute -top-40 -left-40 h-[34rem] w-[34rem] rounded-full blur-3xl",style:{background:`radial-gradient(circle, ${K}55 0%, transparent 70%)`}}),e.jsx("div",{className:"pointer-events-none absolute -bottom-40 -right-40 h-[34rem] w-[34rem] rounded-full blur-3xl",style:{background:`radial-gradient(circle, ${m}40 0%, transparent 70%)`}}),e.jsx("main",{className:"relative z-10 w-full max-w-2xl",children:n})]})}export{ee 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.