1import{c as H,r as c,j as e,X as q,V,aj as T,_ as Y,ak as K,B as O,s as D,al as C,am as J,k as Q,L as Z,M as P,C as X,l as ee,m as se,n as te,o as re,p as ae,t as ne,W as ie,an as M}from"./index-D3hkw-nL.js";import{n as U}from"./proposal-notify-CJWKG-mo.js";import{u as le}from"./useVisitTracking-iROTAsTr.js";import{A as oe,G as de}from"./graduation-cap-Cr0UaEXQ.js";/** 2 * @license lucide-react v0.462.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */const $=H("FileDown",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M12 18v-6",key:"17g6i2"}],["path",{d:"m9 15 3 3 3-3",key:"1npd3o"}]]);function ce({proposal:t}){var m;const[a,n]=c.useState(!1),s=((m=t.content)==null?void 0:m.sections)??[];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("a",{href:"#top",className:"text-sm font-semibold text-foreground truncate",children:"GoAGI"}),e.jsxs("nav",{className:"hidden lg:flex items-center gap-1",children:[s.map(o=>e.jsx("a",{href:`#${o.id}`,className:"rounded-md px-2.5 py-1.5 text-xs text-muted-foreground hover:text-foreground hover:bg-secondary transition",children:o.label},o.id)),t.pdf_url&&e.jsxs("a",{href:t.pdf_url,target:"_blank",rel:"noreferrer",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",children:[e.jsx($,{className:"h-3.5 w-3.5"})," PDF"]})]}),e.jsx("div",{className:"lg:hidden",children:e.jsx("button",{type:"button","aria-label":a?"Close menu":"Open menu","aria-expanded":a,onClick:()=>n(o=>!o),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(q,{className:"h-5 w-5"}):e.jsx(V,{className:"h-5 w-5"})})})]}),a&&e.jsx("nav",{className:"lg:hidden border-t border-border bg-background",children:e.jsxs("div",{className:"container-prose py-2 grid grid-cols-2 gap-1",children:[s.map(o=>e.jsx("a",{href:`#${o.id}`,onClick:()=>n(!1),className:"rounded-md px-3 py-2 text-sm text-muted-foreground hover:text-foreground hover:bg-secondary transition",children:o.label},o.id)),t.pdf_url&&e.jsx("a",{href:t.pdf_url,target:"_blank",rel:"noreferrer",className:"rounded-md px-3 py-2 text-sm text-muted-foreground hover:text-foreground",children:"Download PDF"})]})})]})}function me({proposal:t}){var n,s;const a=((n=t.content)==null?void 0:n.sections)??[];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:"text-sm font-semibold text-foreground",children:"GoAGI"}),e.jsx("p",{className:"mt-2 text-muted-foreground max-w-xs",children:((s=t.content)==null?void 0:s.footerNote)||"Infrastructure for human and machine intelligence. Vilnius, Lithuania."})]}),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:t.template==="energy-foundation-model"?"Strategic concept document. Draft version, open for discussion.":`Proposal prepared for ${T(t.company_name)}. Draft version, open for discussion.`})]}),e.jsxs("div",{children:[e.jsx("div",{className:"eyebrow",children:"Contents"}),e.jsx("ul",{className:"mt-2 space-y-1 text-muted-foreground",children:a.map(m=>e.jsx("li",{children:e.jsx("a",{href:`#${m.id}`,className:"hover:text-foreground",children:m.label})},m.id))})]})]}),e.jsx("div",{className:"container-prose py-4 border-t border-border text-xs text-muted-foreground mono",children:"© 2026 GoAGI Inc. All rights reserved."})]})}function W({proposal:t,sectionId:a,sectionLabel:n,viewerEmail:s}){const[m,o]=c.useState(!1),[u,h]=c.useState([]),[f,S]=c.useState(!0),[v,w]=c.useState(""),[b,I]=c.useState(!1),E=async()=>{const{data:i}=await D.from("proposal_comments").select("id, section_id, author_name, author_email, body, created_at").eq("proposal_id",t.id).eq("section_id",a).order("created_at",{ascending:!0});h(i||[]),S(!1)};c.useEffect(()=>{E()},[t.id,a]),c.useEffect(()=>{if(!m)return;const i=j=>j.key==="Escape"&&o(!1);return window.addEventListener("keydown",i),()=>window.removeEventListener("keydown",i)},[m]);const G=async()=>{const i=v.trim();if(!i)return;I(!0);const{error:j}=await D.from("proposal_comments").insert({proposal_id:t.id,section_id:a,author_name:s.split("@")[0],author_email:s,body:i});I(!1),j||(w(""),E(),U({type:"comment",slug:t.slug,company:t.company_name,email:s,detail:i,section:n}))};return e.jsxs(e.Fragment,{children:[e.jsxs("button",{type:"button",onClick:()=>o(!0),"aria-label":`Open comments for ${n??a}`,"data-print":"hide",className:"inline-flex items-center gap-1.5 rounded-full border border-border bg-background/80 px-2.5 py-1 text-xs text-muted-foreground backdrop-blur hover:border-accent hover:text-foreground transition",children:[e.jsx(Y,{className:"h-3.5 w-3.5"}),e.jsx("span",{className:"mono",children:f?"â¦":u.length})]}),m&&e.jsxs("div",{className:"fixed inset-0 z-50 flex",children:[e.jsx("button",{"aria-label":"Close comments",className:"flex-1 bg-primary/30 backdrop-blur-sm",onClick:()=>o(!1)}),e.jsxs("aside",{className:"h-full w-full max-w-md bg-background shadow-2xl flex flex-col border-l border-border",children:[e.jsxs("header",{className:"flex items-start justify-between p-5 border-b border-border",children:[e.jsxs("div",{children:[e.jsx("div",{className:"eyebrow",children:"Comment thread"}),e.jsx("div",{className:"mt-1 text-base font-medium text-foreground",children:n??a}),e.jsxs("div",{className:"mt-1 text-xs text-muted-foreground",children:[u.length," comment",u.length===1?"":"s"]})]}),e.jsx("button",{onClick:()=>o(!1),className:"rounded-md p-1.5 text-muted-foreground hover:bg-secondary hover:text-foreground","aria-label":"Close",children:e.jsx(q,{className:"h-4 w-4"})})]}),e.jsxs("div",{className:"flex-1 overflow-y-auto p-5 space-y-4",children:[f&&e.jsx("div",{className:"text-sm text-muted-foreground",children:"Loadingâ¦"}),!f&&u.length===0&&e.jsx("div",{className:"text-sm text-muted-foreground",children:"No comments yet. Start the thread â anyone with access to this proposal will see it."}),u.map(i=>e.jsxs("div",{className:"rounded-md border border-border bg-surface p-3",children:[e.jsxs("div",{className:"flex items-center justify-between text-xs",children:[e.jsx("span",{className:"font-medium text-foreground",children:i.author_name}),e.jsx("span",{className:"mono text-muted-foreground",children:new Date(i.created_at).toLocaleStr
6ing(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})})]}),e.jsx("div",{className:"mt-0.5 text-[11px] text-muted-foreground",children:i.author_email}),e.jsx("div",{className:"mt-2 whitespace-pre-wrap text-sm text-foreground",children:i.body})]},i.id))]}),e.jsxs("div",{className:"border-t border-border p-5 space-y-3",children:[e.jsx(K,{value:v,onChange:i=>w(i.target.value),placeholder:"Your question or comment about this section",rows:3}),e.jsx(O,{size:"sm",onClick:G,disabled:b||!v.trim(),children:b?"Sending...":"Send comment"})]})]})]})]})}const xe=1,ue="d8a6afaf-4f17-49ff-922f-7e55ca74d43e",he="fd57ca60-acf3-4d07-9744-eed2321ee2b2",ge="/__l5e/assets-v1/d8a6afaf-4f17-49ff-922f-7e55ca74d43e/steam-turbine-industrial-use-case.jpg",pe="a/v1/fd57ca60-acf3-4d07-9744-eed2321ee2b2/d8a6afaf-4f17-49ff-922f-7e55ca74d43e/steam-turbine-industrial-use-case.jpg",fe="steam-turbine-industrial-use-case.jpg",be=482757,je="image/jpeg",Ne="2026-09-23T13:46:25Z",ye={version:xe,asset_id:ue,project_id:he,url:ge,r2_key:pe,original_filename:fe,size:be,content_type:je,created_at:Ne},y=({proposal:t,viewerEmail:a,id:n,label:s,eyebrow:m,heading:o})=>e.jsxs(e.Fragment,{children:[e.jsx("p",{className:"eyebrow text-accent",children:m}),e.jsxs("div",{className:"mt-3 flex items-start gap-3",children:[e.jsx("h2",{className:"max-w-4xl text-2xl font-semibold tracking-tight md:text-3xl",children:o}),e.jsx("div",{className:"mt-2 shrink-0",children:e.jsx(W,{proposal:t,sectionId:n,sectionLabel:s,viewerEmail:a})})]})]}),k=({items:t,columns:a="lg:grid-cols-5"})=>e.jsx("div",{className:`mt-8 grid gap-3 ${a}`,children:t.map((n,s)=>e.jsxs("div",{className:"relative",children:[e.jsxs("div",{className:"card-panel h-full bg-background p-5",children:[e.jsx("p",{className:"eyebrow text-accent",children:n.title}),n.body&&e.jsx("p",{className:"mt-3 text-sm leading-relaxed text-foreground/90",children:n.body})]}),s<t.length-1&&e.jsx("span",{className:"absolute -bottom-3 left-1/2 z-10 -translate-x-1/2 bg-background px-2 text-accent lg:-right-3 lg:bottom-auto lg:left-auto lg:top-1/2 lg:translate-x-0 lg:-translate-y-1/2",children:"â"})]},`${n.title}-${s}`))}),F=({title:t,body:a})=>e.jsxs("div",{className:"card-panel bg-background p-6 text-center md:p-8",children:[e.jsx("p",{className:"text-xl font-semibold md:text-2xl",children:t}),e.jsx("p",{className:"mt-3 text-sm text-muted-foreground",children:a})]});function ve({proposal:t,viewerEmail:a}){return e.jsxs(e.Fragment,{children:[e.jsx("section",{id:"top",className:"border-b border-border",children:e.jsxs("div",{className:"container-prose py-20",children:[e.jsx("p",{className:"eyebrow text-accent",children:"Energy Foundation Model"}),e.jsx("p",{className:"mt-5 text-sm font-semibold uppercase text-muted-foreground",children:"Foundation Models for the Energy Industry"}),e.jsx("h1",{className:"mt-4 max-w-4xl text-4xl font-semibold tracking-tight md:text-5xl",children:"AI as the intelligence layer for energy infrastructure"}),e.jsxs("div",{className:"mt-8 max-w-3xl space-y-4 border-l-2 border-accent pl-5 text-base leading-relaxed text-muted-foreground md:pl-7 md:text-lg",children:[e.jsx("p",{children:"Energy infrastructure is becoming more complex while the knowledge required to design, build, operate and maintain it remains fragmented across documents, systems, suppliers and human expertise."}),e.jsx("p",{children:"GoAGI's vision is to turn this fragmented knowledge into an intelligence layer for the energy industry."})]}),e.jsxs("div",{className:"mt-10 grid gap-3 md:grid-cols-3",children:[e.jsx(F,{title:"DIGITISE",body:"Improving tools with data"}),e.jsx(F,{title:"UNDERSTAND",body:"Translating data into insight"}),e.jsx(F,{title:"AUTOMATE",body:"Turning insight into action"})]})]})}),e.jsx("section",{id:"problem",className:"scroll-mt-20 border-b border-border bg-surface",children:e.jsxs("div",{className:"container-prose py-16",children:[e.jsx(y,{proposal:t,viewerEmail:a,id:"problem",label:"The problem",eyebrow:"The problem",heading:"Energy infrastructure is becoming more complex. Its intelligence remains fragmented."}),e.jsxs("div",{className:"mt-6 max-w-3xl space-y-4 text-muted-foreground",children:[e.jsx("p",{children:"Engineering documents. Equipment specifications. Supplier data. Maintenance records. Operational systems. Human expertise."}),e.jsx("p",{children:"The information exists - but it is fragmented across thousands of sources and difficult to connect, understand and act on."}),e.jsx("p",{children:"AI can create a common intelligence layer across this infrastru
6cture."})]}),e.jsx(k,{columns:"sm:grid-cols-2 lg:grid-cols-5",items:["Engineering","Equipment","Suppliers","Operations","Maintenance"].map(n=>({title:n}))}),e.jsxs("div",{className:"mt-6 text-center",children:[e.jsx("span",{className:"text-2xl text-accent",children:"â"}),e.jsx("div",{className:"card-panel mx-auto mt-3 max-w-xl bg-background p-5 font-semibold",children:"ENERGY FOUNDATION MODEL"})]})]})}),e.jsx("section",{id:"vision",className:"scroll-mt-20 border-b border-border",children:e.jsxs("div",{className:"container-prose py-16",children:[e.jsx(y,{proposal:t,viewerEmail:a,id:"vision",label:"The vision",eyebrow:"The vision",heading:"Build an Energy Foundation Model"}),e.jsx("p",{className:"mt-6 max-w-3xl text-muted-foreground",children:"A domain intelligence layer that understands how energy infrastructure is designed, built, operated and maintained. Different people should be able to ask different questions of the same underlying industrial intelligence."}),e.jsx("div",{className:"mt-8 grid gap-3 md:grid-cols-2 lg:grid-cols-3",children:[["Engineer","Which equipment configuration meets these requirements?"],["Procurement","Which suppliers can manufacture this component?"],["Project team","Where are the critical supply-chain bottlenecks?"],["Operator","What has changed and what should we investigate?"],["Maintenance","What equipment should we inspect next?"],["Management","Where are the largest risks across our infrastructure?"]].map(([n,s])=>e.jsxs("div",{className:"card-panel bg-background p-5",children:[e.jsx("p",{className:"eyebrow text-accent",children:n}),e.jsxs("p",{className:"mt-3 text-sm",children:["â",s,"â"]})]},n))}),e.jsxs("p",{className:"mt-9 text-center text-lg font-semibold",children:["Different questions.",e.jsx("br",{}),"One underlying model of the energy system."]}),e.jsx(k,{columns:"sm:grid-cols-2 lg:grid-cols-5",items:["Data","Knowledge","Insight","Decision","Action"].map(n=>({title:n}))})]})}),e.jsx("section",{id:"first-vertical",className:"scroll-mt-20 border-b border-border bg-surface",children:e.jsxs("div",{className:"container-prose py-16",children:[e.jsx(y,{proposal:t,viewerEmail:a,id:"first-vertical",label:"First vertical",eyebrow:"The first vertical",heading:"Energy generation for AI data centres"}),e.jsxs("div",{className:"mt-6 max-w-3xl space-y-4 text-muted-foreground",children:[e.jsx("p",{children:"AI is driving extraordinary growth in data-centre power requirements."}),e.jsx("p",{children:"Meeting this demand is not only an energy-generation challenge. New infrastructure must be engineered, sourced, manufactured, constructed and operated at unprecedented speed."}),e.jsx("p",{children:"AI can help industry scale the engineering and industrial systems behind this expansion."})]}),e.jsx(k,{columns:"sm:grid-cols-2 lg:grid-cols-5",items:["AI","Compute","Data centres","Energy demand","Generation infrastructure"].map(n=>({title:n}))}),e.jsx("p",{className:"mt-8 text-center text-lg font-semibold",children:"This becomes the first domain for building the Energy Foundation Model."})]})}),e.jsx("section",{id:"steam-turbines",className:"scroll-mt-20 border-b border-border",children:e.jsxs("div",{className:"container-prose py-16",children:[e.jsx(y,{proposal:t,viewerEmail:a,id:"steam-turbines",label:"Steam turbines",eyebrow:"Industrial use case",heading:"Steam Turbines - Digitalising the Industrial Supply Chain"}),e.jsx("p",{className:"mt-6 max-w-3xl text-muted-foreground",children:"Power-generation equipment such as steam turbines depends on complex global supply chains involving thousands of components, technical requirements, qualified suppliers and engineering dependencies. As demand for new generation capacity increases, AI can help manufacturers understand and scale these supply chains faster."}),e.jsxs("figure",{className:"mt-8 overflow-hidden rounded-md border border-border bg-card",children:[e.jsx("img",{src:ye.url,alt:"Engineers working on an open industrial steam turbine",className:"block aspect-[5/3] w-full object-cover md:aspect-[16/7]"}),e.jsx("figcaption",{className:"px-4 py-3 text-xs text-muted-foreground",children:"Steam turbine shown as an illustrative industrial use case. This does not imply a customer or partnership relationship with Siemens Energy."})]}),e.jsxs("div",{className:"mt-8 grid gap-5 lg:grid-cols-[1fr_auto_1fr_auto_1fr] lg:items-center",children:[e.jsxs("div",{className:"card-panel bg-background p-5 text-sm leading-relaxed",children:["SUPPLIER DATA",e.jsx("br",{}),"+ TECHNICAL SPECIFICATIONS",e.jsx("br",{}),"+ ENGINEERING REQUIREMENTS"]}),e.jsx("span",{className:"text-center text-2xl text-accent",children:"â"}),e.jsx("div",{className:"card-panel bg-surface p-5 text-center font-semibold",children:"ENERGY FOUNDATION MODEL"}),e.jsx("span",{className:"text-center text-2xl text-accent",children:"â"}),e.jsxs("div",{className:"card-panel bg-background p-5 text-sm leading-relaxed",children:["SUPPLIER MATCHING",e.jsx("br",{}),"BOTTLENECK IDENTIFICATION",e.jsx("br",{}),"ALTERNATIVE SOURCING",e.jsx("br",{}),"ENGINEERING INTELLIGENCE"]})]}),e.jsx("p",{className:"mt-6 text-center font-semibold",children:"â Â FASTER INDUSTRIAL DECISIONS"}),e.jsx("blockquote",{className:"mt-10 border-y border-border py-8 text-center text-2xl font-semibold md:text-3xl",children:"Can AI help manufacturers build more steam turbines, faster?"}),e.jsxs("p",{className:"mt-6 text-center text-sm font-semibold text-muted-foreground",children:["DIGITISE ",e.jsx("span",{className:"text-accent",children:"â"})," UNDERSTAND ",e.jsx("span",{className:"text-accent",children:"â"})," DECIDE"]})]})}),e.jsx("section",{id:"altra",className:"scroll-mt-20 border-b border-border bg-surface",children:e.jsxs("div",{className:"container-prose py-16",children:[e.jsx(y,{proposal:t,viewerEmail:a,id:"altra",label:"ALTRA",eyebrow:"Industrial use case",heading:"ALTRA - AI for Complex Infrastru
6cture Decommissioning"}),e.jsx("p",{className:"mt-6 max-w-3xl text-muted-foreground",children:"GoAGI is exploring how AI, digital twins and Physical AI could support the decommissioning of complex nuclear infrastructure with ALTRA. In hazardous environments, AI can help understand infrastructure before humans or machines physically act on it."}),e.jsx(k,{columns:"sm:grid-cols-2 lg:grid-cols-6",items:[["Digitise","Facility · Equipment · Engineering knowledge"],["Understand","Relationships · Hazards · Dependencies"],["Simulate","Digital twin · Scenarios · Sequences"],["Plan","Procedures · Resources · Actions"],["Execute","Remote operations · Robotics · Physical AI"],["Learn","Real-world outcomes return to the intelligence layer"]].map(([n,s])=>({title:n,body:s}))}),e.jsxs("figure",{className:"mt-8 overflow-hidden rounded-md border border-border bg-card",children:[e.jsx("img",{src:C.src,alt:C.alt,className:"block aspect-[5/3] w-full object-cover md:aspect-[16/7]",loading:"lazy"}),e.jsx("figcaption",{className:"px-4 py-3 text-xs text-muted-foreground",children:"Potential exploratory application: applying industrial intelligence to complex infrastructure decommissioning with ALTRA."})]})]})}),e.jsx("section",{id:"long-term-vision",className:"scroll-mt-20 border-b border-border",children:e.jsxs("div",{className:"container-prose py-20",children:[e.jsx(y,{proposal:t,viewerEmail:a,id:"long-term-vision",label:"Long-term vision",eyebrow:"The long-term vision",heading:"From understanding infrastructure to acting within it"}),e.jsx("p",{className:"mt-6 max-w-3xl text-muted-foreground",children:"The same intelligence that helps an engineer understand an energy system can eventually help an autonomous machine understand the physical infrastructure around it."}),e.jsxs("div",{className:"mt-8 grid gap-6 md:grid-cols-[0.8fr_1.2fr]",children:[e.jsxs("div",{className:"card-panel bg-surface p-6 md:p-8",children:[e.jsx("p",{className:"text-xl font-semibold",children:"A robot may recognise a valve."}),e.jsx("p",{className:"mt-3 text-sm text-muted-foreground",children:"The Energy Foundation Model provides the context."})]}),e.jsx("div",{className:"card-panel bg-background p-6 md:p-8",children:e.jsx("ul",{className:"grid gap-2 text-sm sm:grid-cols-2",children:["What is it?","What does it do?","What is it connected to?","What is its condition?","What action is appropriate?"].map(n=>e.jsx("li",{className:"border-l-2 border-accent pl-3",children:n},n))})})]}),e.jsx(k,{items:["See","Understand","Decide","Act","Learn"].map(n=>({title:n}))}),e.jsxs("p",{className:"mt-10 text-center text-sm font-semibold leading-loose",children:["INDUSTRIAL DATA ",e.jsx("span",{className:"text-accent",children:"â"})," ENERGY FOUNDATION MODEL ",e.jsx("span",{className:"text-accent",children:"â"})," DECISIONS ",e.jsx("span",{className:"text-accent",children:"â"})," PHYSICAL ACTION ",e.jsx("span",{className:"text-accent",children:"â"})," REAL-WORLD DATA"]}),e.jsxs("div",{className:"mt-16 border-t border-border pt-12",children:[e.jsx("h2",{className:"max-w-4xl text-3xl font-semibold tracking-tight md:text-4xl",children:"Foundation Models for the Energy Industry"}),e.jsxs("div",{className:"mt-6 max-w-2xl space-y-2 text-muted-foreground",children:[e.jsx("p",{children:"Start with real industrial problems."}),e.jsx("p",{children:"Digitalise fragmented knowledge."}),e.jsx("p",{children:"Turn knowledge into intelligence."}),e.jsx("p",{children:"Turn intelligence into action."})]}),e.jsxs("p",{className:"mt-10 text-xl font-semibold md:text-2xl",children:["DIGITISE ",e.jsx("span",{className:"text-accent",children:"â"})," UNDERSTAND ",e.jsx("span",{className:"text-accent",children:"â"})," AUTOMATE"]}),e.jsxs("div",{className:"mt-12 border-t border-border pt-8",children:[e.jsx("p",{className:"font-semibold",children:"GoAGI"}),e.jsxs("p",{className:"mt-3 text-sm text-muted-foreground",children:["Building intelligence for the physical energy infrastructure of the AI economy.",e.jsx("br",{}),"Strategic concept document.",e.jsx("br",{}),"Draft - open for discussion."]})]})]})]})})]})}const we=t=>{const a=t.split(/\n+/).map(n=>
6n.trim()).filter(Boolean);return a.length<2?{description:t.trim()}:a.length===2?{title:a[0],description:a[1]}:{label:a[0],title:a[1],description:a.slice(2).join(" ")}},Ie=t=>t.replace(/\\n\\n/g,` 7 8`).replace(/\s+(?=(?:An|A) (?:Equipment Manufacturer|Energy Supplier|Grid Operator|Decommissioning|Dismantling and Deconstruction) Foundation Model)/g,` 9 10`).split(/\n\s*\n/).map(a=>a.trim()).filter(Boolean),Ee=t=>{const a=t.match(/^(Industrial use case \d+)\s+-\s+(.+)$/i);return a?{label:a[1],organisation:a[2]}:null},Ae=[{match:/^Ignitis\b/,href:"https://ignitisgrupe.lt/en"},{match:/^ESO\b/,href:"https://www.eso.lt/en"},{match:/^ALTRA\b/,href:"https://altra.lt/en/"}],De=()=>{var R;const{slug:t=""}=J(),a=Q(),n=c.useMemo(()=>`proposal_gate_${t}`,[t]),[s,m]=c.useState(null),[o,u]=c.useState(!0),[h,f]=c.useState(null),[S,v]=c.useState(""),[w,b]=c.useState(null),[I,E]=c.useState(!1);c.useEffect(()=>{let r=!0;return(async()=>{u(!0);const{data:g}=await D.from("proposals").select("*").eq("slug",t).maybeSingle();if(r){m(g||null);try{const p=localStorage.getItem(n);if(p){const x=JSON.parse(p);x!=null&&x.email&&(x!=null&&x.visitId)&&f(x)}}catch{}u(!1)}})(),()=>{r=!1}},[t,n]),le((h==null?void 0:h.visitId)??null,`/p/${t}`);const G=async r=>{r.preventDefault(),b(null);const g=S.trim().toLowerCase();if(!/^[^@\s]+@[^@\s]+\.[^@\s]+$/.test(g)){b("Enter a valid email address.");return}E(!0);const{data:p,error:x}=await D.rpc("start_proposal_visit",{_slug:t,_email:g,_user_agent:navigator.userAgent});if(E(!1),x||!p){b(s!=null&&s.open_access?"Something went wrong. Please try again.":`Access is limited to ${((s==null?void 0:s.allowed_domains)||[]).map(l=>"@"+l).join(", ")} addresses.`);return}const A={email:g,visitId:p};localStorage.setItem(n,JSON.stringify(A)),f(A),U({type:"visit",slug:t,company:T((s==null?void 0:s.company_name)||t),email:g})};if(o)return e.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center",children:e.jsx(Z,{className:"w-8 h-8 animate-spin text-primary"})});if(!s)return e.jsxs("div",{className:"min-h-screen bg-background flex flex-col items-center justify-center gap-4 px-4",children:[e.jsx("p",{className:"text-muted-foreground",children:"This proposal is not available."}),e.jsx(O,{variant:"outline",onClick:()=>a("/"),children:"Back to home"})]});const i=s.template==="energy-foundation-model",j=i?"Energy Foundation Model · GoAGI":`GoAGI à ${T(s.company_name)}`;if(!h)return e.jsxs("div",{className:"min-h-screen bg-background flex items-center justify-center px-4 py-20",children:[e.jsx(P,{title:j,description:s.subheadline,noindex:!0}),e.jsxs(X,{className:"max-w-md w-full",children:[e.jsxs(ee,{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(se,{className:"w-8 h-8 text-primary"})}),e.jsx(te,{children:"Enter your email"}),e.jsx(re,{children:s.open_access?"This proposal is available to anyone with a work email.":`This proposal is prepared for ${(s.allowed_domains||[]).map(r=>"@"+r).join(", ")} addresses.`})]}),e.jsx(ae,{children:e.jsxs("form",{onSubmit:G,className:"space-y-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(ne,{htmlFor:"email",children:"Work email"}),e.jsx(ie,{id:"email",type:"email",value:S,onChange:r=>v(r.target.value),required:!0,autoFocus:!0})]}),w&&e.jsx("p",{className:"text-sm text-destructive",children:w}),e.jsx(O,{type:"submit",className:"w-full",disabled:I,children:I?"Checking...":"View proposal"}),e.jsx("p",{className:"text-xs text-muted-foreground text-center pt-2",children:"Your reading session is recorded for the GoAGI team. Questions: [email protected]"})]})})]})]});const z=((R=s.content)==null?void 0:R.sections)??[],N=we(s.subheadline||"");return e.jsxs("div",{className:"ignitis-scope min-h-screen flex flex-col bg-background text-foreground",style:{"--prop
10osal-primary":s.primary_color,"--proposal-accent":s.accent_color},children:[e.jsx(P,{title:j,description:s.subheadline,noindex:!0}),e.jsx(ce,{proposal:s}),e.jsxs("main",{className:"flex-1",children:[!i&&e.jsx("section",{id:"top",className:"border-b border-border",children:e.jsxs("div",{className:"container-prose py-20",children:[e.jsx("h1",{className:"text-4xl md:text-5xl font-semibold tracking-tight max-w-3xl",children:s.headline||(i?"Energy Foundation Model - EFM":`GoAGI Ã ${T(s.company_name)}`)}),s.subheadline&&e.jsxs("div",{className:"mt-8 max-w-3xl border-l-2 border-accent pl-5 md:pl-7",children:[N.label&&e.jsx("p",{className:"eyebrow text-accent",children:N.label}),N.title&&e.jsx("p",{className:"mt-3 text-xl md:text-2xl font-semibold leading-snug text-foreground",children:N.title}),N.description&&e.jsx("p",{className:"mt-4 text-base md:text-lg leading-relaxed text-muted-foreground max-w-2xl",children:N.description})]}),s.pdf_url&&e.jsxs("a",{href:s.pdf_url,target:"_blank",rel:"noreferrer",className:"mt-8 inline-flex items-center gap-2 rounded-md border border-border px-4 py-2 text-sm hover:bg-secondary transition",children:[e.jsx($,{className:"h-4 w-4"})," Download PDF"]})]})}),i?e.jsx(ve,{proposal:s,viewerEmail:h.email}):z.map((r,g)=>{var p,x,A;return e.jsx("section",{id:r.id,className:`border-b border-border scroll-mt-20 ${g%2===0?"bg-surface":""}`,children:e.jsxs("div",{className:"container-prose py-16",children:[r.eyebrow&&(()=>{const l=s.slug==="energy-foundation-models"?Ee(r.eyebrow):null;if(!l)return e.jsx("div",{className:"eyebrow",style:{color:s.accent_color},children:r.eyebrow});const d=Ae.find(_=>_.match.test(l.organisation));return e.jsxs("div",{className:"eyebrow",children:[e.jsx("span",{className:"text-accent",children:l.label}),e.jsxs("span",{className:"text-muted-foreground",children:[" - ",d?e.jsxs("a",{href:d.href,target:"_blank",rel:"noreferrer",className:"org-link inline-flex items-center gap-1",children:[l.organisation,e.jsxs("svg",{viewBox:"0 0 12 12",className:"h-2 w-2 shrink-0 translate-y-px",fill:"none",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[e.jsx("path",{d:"M3.5 8.5 8.5 3.5"}),e.jsx("path",{d:"M4.5 3.5h4v4"})]})]}):l.organisation]})]})})(),e.jsxs("div",{className:"mt-3 flex items-start gap-3",children:[e.jsx("h2",{className:"text-2xl md:text-3xl font-semibold tracking-tight max-w-3xl",children:r.heading}),e.jsx("div",{className:"mt-2 shrink-0",children:e.jsx(W,{proposal:s,sectionId:r.id,sectionLabel:r.label,viewerEmail:h.email})})]}),r.intro&&(s.slug==="energy-foundation-models"?e.jsx("div",{className:"mt-4 max-w-2xl space-y-4 text-muted-foreground",children:Ie(r.intro).map((l,d)=>{const _=l.split(/((?:Equipment Manufacturer|Energy Supplier|Grid Operator|Decommissioning|Dismantling and Deconstruction) Foundation Model)/g);return e.jsx("p",{children:_.length>1?_.map((L,B)=>/Foundation Model$/.test(L)?e.jsx("strong",{className:"font-semibold text-foreground",children:L},B):L):l},d)})}):e.jsx("p",{className:"mt-4 text-muted-foreground max-w-2xl",children:r.intro})),r.id==="about"&&r.cards&&r.cards.length>=2?e.jsxs("div",{className:"mt-8 grid gap-6 md:grid-cols-[1.4fr_1fr]",children:[e.jsx("div",{className:"card-panel p-6 md:p-8 bg-background",children:r.cards.slice(0,2).map((l,d)=>e.jsx("p",{className:d>0?"mt-4 text-foreground leading-relaxed":"text-foreground leading-relaxed",children:l.body},d))}),e.jsxs("div",{className:"card-panel p-6 bg-surface",children:[e.jsx("h3",{className:"text-lg font-semibold text-foreground",children:"Credentials"}),e.jsx("ul",{className:"mt-4 space-y-3 text-sm",children:r.cards.slice(2).map((l,d)=>e.jsxs("li",{className:"flex gap-3",children:[d===0?e.jsx(oe,{className:"h-4 w-4 mt-0.5 text-accent"}):e.jsx(de,{className:"h-4 w-4 mt-0.5 text-accent"}),e.jsxs("div",{children:[e.jsx("div",{className:"font-medium text-foreground",children:l.title}),e.jsx("div",{className:"text-muted-foreground",children:l.body})]})]},d))})]})]}):e.jsxs(e.Fragment,{children:[r.bullets&&r.bullets.length>0&&e.jsx("ul",{className:"mt-8 grid gap-4 md:grid-cols-2",children:r.bullets.map((l,d)=>e.jsxs("li",{className:"card-panel flex gap-3 bg-background p-6 text-sm leading-relaxed",children:[e.jsx("span",{className:"font-semibold text-accent shrink-0",children:String(d+1).padStart(2,"0")}
10),e.jsx("span",{className:"text-foreground/90",children:l.replace(/^\d+\.\s*/,"")})]},d))}),r.cards&&r.cards.length>0&&(s.slug==="energy-foundation-models"&&(r.id==="vision"||r.id==="roadmap")?e.jsx("div",{className:"mt-8 flex flex-col gap-3 md:flex-row md:items-stretch",children:r.cards.map((l,d)=>e.jsxs("div",{className:"contents",children:[d>0&&e.jsxs("div",{className:"flex items-center justify-center text-sm text-accent","aria-hidden":!0,children:[e.jsx("span",{className:"md:hidden",children:"â"}),e.jsx("span",{className:"hidden md:inline",children:"â"})]}),e.jsxs("div",{className:"card-panel flex-1 bg-background p-6",children:[e.jsx("p",{className:"font-medium",children:l.title}),e.jsx("p",{className:"mt-2 text-sm text-muted-foreground",children:l.body})]})]},d))}):e.jsx("div",{className:"mt-8 grid gap-4 md:grid-cols-2",children:r.cards.map((l,d)=>e.jsxs("div",{className:"card-panel p-6 bg-background",children:[e.jsx("p",{className:s.slug==="energy-foundation-models"&&r.id==="how"?"font-medium text-accent":"font-medium",children:l.title}),e.jsx("p",{className:"mt-2 text-sm text-muted-foreground",children:l.body})]},d))})),(r.image||(s.template==="robotics-manufacturer"||s.template==="physical-ai-lab")&&r.id==="first-location")&&e.jsxs("figure",{className:"mt-8 overflow-hidden rounded-md border border-border bg-card",children:[e.jsx("img",{src:i&&r.id==="flagship-use-case"?C.src:((p=r.image)==null?void 0:p.src)||M.src,alt:i&&r.id==="flagship-use-case"?C.alt:((x=r.image)==null?void 0:x.alt)||M.alt,className:`block w-full object-cover ${i?"aspect-[5/3] md:aspect-[16/7]":"aspect-[1440/488]"}`,loading:"lazy"}),e.jsx("figcaption",{className:"px-4 py-3 text-xs text-muted-foreground",children:((A=r.image)==null?void 0:A.caption)||M.caption})]}),r.cta&&e.jsx("a",{href:r.cta.href,className:"mt-8 inline-flex items-center rounded-md px-4 py-2 text-sm font-medium text-white transition hover:opacity-90",style:{background:s.accent_color},children:r.cta.label})]})]})},r.id)})]}),e.jsx(me,{proposal:s})]})};export{De 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.