PageSourceSearch

https://goagi.lovable.app/assets/EsoLayout-DB-vD-S7.js

js goagi.lovable.app collected 2026-10-03 03:27:35 UTC 6,843 bytes, 1 lines download raw bytes

1import{r as o,j as e,Q as I,X as E,V as A,k as O,L as G,M as h,C as k,l as C,m as P,n as L,o as D,p as _,t as F,W as T,B as g,Y as V,s as W}from"./index-D3hkw-nL.js";import{D as f}from"./download-0SE4rOG9.js";import{u as $,m as B}from"./legacy-visit-bridge-CS_jT0vq.js";import{u as H}from"./useVisitTracking-iROTAsTr.js";import"./proposal-notify-CJWKG-mo.js";const d=[{id:"stages",label:"Stages"},{id:"opportunities",label:"Opportunities"},{id:"case-study",label:"Case studies"},{id:"for-eso",label:"For ESO"},{id:"first-steps",label:"First steps"},{id:"what-you-get",label:"What you get"},{id:"about",label:"About"}];function M(){const[a,t]=o.useState(!1);return e.jsxs("header",{className:"sticky top-0 z-40 border-b border-border bg-background/85 backdrop-blur",children:[e.jsxs("div",{className:"container-prose flex h-14 items-center justify-between gap-6",children:[e.jsx(I,{to:"/eso",className:"text-sm font-semibold text-foreground",children:"GoAGI × ESO · Partnership Proposal"}),e.jsxs("nav",{className:"hidden lg:flex items-center gap-1",children:[d.map(s=>e.jsx("a",{href:`#${s.id}`,className:"rounded-md px-2.5 py-1.5 text-xs text-muted-foreground hover:text-foreground hover:bg-secondary transition",children:s.label},s.id)),e.jsxs("a",{href:"/GoAGI-ESO-Proposal.pdf",download:"GoAGI-ESO-Proposal.pdf",target:"_blank",rel:"noopener",className:"ml-2 inline-flex items-center gap-1.5 rounded-md border border-border px-2.5 py-1.5 text-xs text-foreground hover:bg-secondary transition","data-print":"hide",children:[e.jsx(f,{className:"h-3.5 w-3.5"}),"PDF"]})]}),e.jsxs("div",{className:"lg:hidden flex items-center gap-1",children:[e.jsx("a",{href:"/GoAGI-ESO-Proposal.pdf",download:"GoAGI-ESO-Proposal.pdf",target:"_blank",rel:"noopener","aria-label":"Download PDF",className:"inline-flex items-center justify-center rounded-md p-2 text-muted-foreground hover:text-foreground hover:bg-secondary transition","data-print":"hide",children:e.jsx(f,{className:"h-5 w-5"})}),e.jsx("button",{type:"button","aria-label":a?"Close navigation":"Open navigation","aria-expanded":a,onClick:()=>t(s=>!s),className:"inline-flex items-center justify-center rounded-md p-2 text-muted-foreground hover:text-foreground hover:bg-secondary transition",children:a?e.jsx(E,{className:"h-5 w-5"}):e.jsx(A,{className:"h-5 w-5"})})]})]}),a&&e.jsx("nav",{className:"lg:hidden border-t border-border bg-background",children:e.jsx("div",{className:"container-prose py-2 grid grid-cols-2 gap-1",children:d.map(s=>e.jsx("a",{href:`#${s.id}`,onClick:()=>t(!1),className:"rounded-md px-3 py-2 text-sm text-muted-foreground hover:text-foreground hover:bg-secondary transition",children:s.label},s.id))})})]})}function R(){return e.jsxs("footer",{className:"mt-24 border-t border-border",children:[e.jsxs("div",{className:"container-prose py-10 grid gap-6 md:grid-cols-3 text-sm",children:[e.jsxs("div",{children:[e.jsx("div",{className:"eyebrow",children:"GoAGI"}),e.jsx("p",{className:"mt-2 text-muted-foreground max-w-xs",children:"AI data infrastructure. NVIDIA Inception member · UC Berkeley Haas partner."})]}),e.jsxs("div",{children:[e.jsx("div",{className:"eyebrow",children:"This document"}),e.jsx("p",{className:"mt-2 text-muted-foreground max-w-xs",children:"Living proposal prepared for ESO."})]}),e.jsxs("div",{children:[e.jsx("div",{className:"eyebrow",children:"Contents"}),e.jsx("ul",{className:"mt-2 space-y-1 text-muted-foreground",children:d.map(a=>e.jsx("li",{children:e.jsx("a",{href:`#${a.id}`,className:"hover:text-foreground",children:a.label})},a.id))})]})]}),e.jsx("div",{className:"container-prose py-4 border-t border-border text-xs text-muted-foreground mono",children:"© GoAGI · Prepared for ESO"})]})}const U=["goagi.ai","eso.lt"],b="eso_gate_v1";function j(a){var s;const t=(s=a.split("@")[1])==null?void 0:s.toLowerCase();return!!t&&U.includes(t)}function Y(){return crypto.randomUUID()}const X=()=>{const a=O(),[t,s]=o.useState(null),[v,N]=o.useState(!0),[c,y]=o.useState(""),[m,n]=o.useState(null),[u,x]=o.useState(!1);o.useEffect(()=>{try{const i=localStorage.getItem(b);if(i){const r=JSON.parse(i);r!=null&&r.email&&(r!=null&&r.viewId)&&j(r.email)&&s(r)}}catch{}N(!1)},[]);const w=async i=>{i.preventDefault(),n(null);const r=c.trim().toLowerCase();if(!/^[^@\s]+@[^@\s]+\.[^@\s]+$/.test(r)){n("Enter a valid email address.");return}if(!j(r)){n("Access is limited to @goagi.ai and @eso.lt email addresses.");return}x(!0);const l=Y(),{error:S}=await W.from("eso_views").insert({id:l,viewer_email:r,user_agent:navigator.userAgent});if(x(!1),S){n("Something went wrong. Please try again.");return}await B("eso",l,r,"/eso");const p={email:r,viewId:l};localStorage.setItem(b,JSON.stringify(p)),s(p)};
1return $("eso",(t==null?void 0:t.viewId)??null,"/eso"),H((t==null?void 0:t.viewId)??null,"/eso"),v?e.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center",children:e.jsx(G,{className:"w-8 h-8 animate-spin text-primary"})}):t?e.jsxs("div",{className:"ignitis-scope eso-scope min-h-screen flex flex-col bg-background text-foreground",children:[e.jsx(h,{title:"GoAGI × ESO: Partnership Proposal",description:"A living AI partnership proposal for ESO: stages of adoption, example opportunities, and case studies.",canonical:"https://goagi.ai/eso",noindex:!0}),e.jsx(M,{}),e.jsx("main",{className:"flex-1",children:e.jsx(V,{})}),e.jsx(R,{})]}):e.jsxs("div",{className:"min-h-screen bg-background flex items-center justify-center px-4 py-20",children:[e.jsx(h,{title:"GoAGI × ESO: Partnership Proposal",description:"Private AI partnership proposal for ESO. Access limited to @goagi.ai and @eso.lt.",canonical:"https://goagi.ai/eso",noindex:!0}),e.jsxs(k,{className:"max-w-md w-full",children:[e.jsxs(C,{className:"text-center",children:[e.jsx("div",{className:"w-16 h-16 rounded-full bg-primary/10 flex items-center justify-center mx-auto mb-4",children:e.jsx(P,{className:"w-8 h-8 text-primary"})}),e.jsx(L,{children:"Enter your email to continue"}),e.jsx(D,{children:"This proposal is restricted to @goagi.ai and @eso.lt email addresses."})]}),e.jsx(_,{children:e.jsxs("form",{onSubmit:w,className:"space-y-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(F,{htmlFor:"email",children:"Work email"}),e.jsx(T,{id:"email",type:"email",placeholder:"[email protected]",value:c,onChange:i=>y(i.target.value),required:!0,autoFocus:!0})]}),m&&e.jsx("p",{className:"text-sm text-destructive",children:m}),e.jsx(g,{type:"submit",className:"w-full",disabled:u,children:u?"Verifying…":"View proposal"}),e.jsx(g,{type:"button",variant:"outline",className:"w-full",onClick:()=>a("/"),children:"Return home"}),e.jsx("p",{className:"text-xs text-muted-foreground text-center pt-2",children:"Your viewing session is recorded for the GoAGI team. Need help? [email protected]"})]})})]})]})};export{X 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.