PageSourceSearch

https://goagi.lovable.app/assets/KnenergiesLayout-BddowrFC.js

js goagi.lovable.app collected 2026-10-03 03:27:32 UTC 7,087 bytes, 1 lines download raw bytes

1import{r as n,j as e,Q as I,X as E,V as A,k as G,L as S,M as p,C,l as P,m as K,n as L,o as D,p as O,t as _,W as F,B as h,Y as T,s as V}from"./index-D3hkw-nL.js";import{D as f}from"./download-0SE4rOG9.js";import{u as W,m as $}from"./legacy-visit-bridge-CS_jT0vq.js";import{u as B}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-knenergies",label:"For KN Energies"},{id:"first-steps",label:"First steps"},{id:"what-you-get",label:"What you get"},{id:"about",label:"About"}];function H(){const[a,t]=n.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:"/knenergies",className:"text-sm font-semibold text-foreground",children:"GoAGI × KN Energies · 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-KNEnergies-Proposal.pdf",download:"GoAGI-KNEnergies-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-KNEnergies-Proposal.pdf",download:"GoAGI-KNEnergies-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 M(){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 KN Energies."})]}),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 KN Energies"})]})}const R=["goagi.ai","kn.lt","knenergies.lt"],b="knenergies_gate_v1";function j(a){var s;const t=(s=a.split("@")[1])==null?void 0:s.toLowerCase();return!!t&&R.includes(t)}function U(){return crypto.randomUUID()}const X=()=>{const a=G(),[t,s]=n.useState(null),[N,v]=n.useState(!0),[c,y]=n.useState(""),[m,o]=n.useState(null),[u,g]=n.useState(!1);n.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{}v(!1)},[]);const k=async i=>{i.preventDefault(),o(null);const r=c.trim().toLowerCase();if(!/^[^@\s]+@[^@\s]+\.[^@\s]+$/.test(r)){o("Enter a valid email address.");return}if(!j(r)){o("Access is limited to @goagi.ai, @kn.lt and @knenerg
1ies.lt email addresses.");return}g(!0);const l=U(),{error:w}=await V.from("knenergies_views").insert({id:l,viewer_email:r,user_agent:navigator.userAgent});if(g(!1),w){o("Something went wrong. Please try again.");return}await $("knenergies",l,r,"/knenergies");const x={email:r,viewId:l};localStorage.setItem(b,JSON.stringify(x)),s(x)};return W("knenergies",(t==null?void 0:t.viewId)??null,"/knenergies"),B((t==null?void 0:t.viewId)??null,"/knenergies"),N?e.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center",children:e.jsx(S,{className:"w-8 h-8 animate-spin text-primary"})}):t?e.jsxs("div",{className:"ignitis-scope knenergies-scope min-h-screen flex flex-col bg-background text-foreground",children:[e.jsx(p,{title:"GoAGI × KN Energies — Partnership Proposal",description:"A living AI partnership proposal for KN Energies: stages of adoption, example opportunities, and case studies.",canonical:"https://goagi.ai/knenergies",noindex:!0}),e.jsx(H,{}),e.jsx("main",{className:"flex-1",children:e.jsx(T,{})}),e.jsx(M,{})]}):e.jsxs("div",{className:"min-h-screen bg-background flex items-center justify-center px-4 py-20",children:[e.jsx(p,{title:"GoAGI × KN Energies — Partnership Proposal",description:"Private AI partnership proposal for KN Energies. Access limited to @goagi.ai, @kn.lt and @knenergies.lt.",canonical:"https://goagi.ai/knenergies",noindex:!0}),e.jsxs(C,{className:"max-w-md w-full",children:[e.jsxs(P,{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(K,{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, @kn.lt and @knenergies.lt email addresses."})]}),e.jsx(O,{children:e.jsxs("form",{onSubmit:k,className:"space-y-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(_,{htmlFor:"email",children:"Work email"}),e.jsx(F,{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(h,{type:"submit",className:"w-full",disabled:u,children:u?"Verifying…":"View proposal"}),e.jsx(h,{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.