1import{r as n,j as s}from"./react-vendor-BpWNMKAs.js";const p=[{key:"all",label:"Show everything"},{key:"new",label:"New to AI"},{key:"builder",label:"Builders & engineers"},{key:"founder",label:"Founders & operators"},{key:"researcher",label:"Researchers"}],w=()=>{const i=n.useRef(null),[c,f]=n.useState(800),[a,u]=n.useState("all"),[l,x]=n.useState(""),[m,g]=n.useState(80);return n.useEffect(()=>{const e=i.current;if(!e)return;const t=()=>{const r=e.contentDocument;r!=null&&r.body&&f(r.body.scrollHeight+40)},o=()=>{var d;t();const r=e.contentDocument;r!=null&&r.body&&new ResizeObserver(t).observe(r.body),(d=e.contentWindow)==null||d.postMessage({type:"filter",aud:a,q:l},"*")};return e.addEventListener("load",o),window.addEventListener("resize",t),()=>{e.removeEventListener("load",o),window.removeEventListener("resize",t)}},[]),n.useEffect(()=>{const e=()=>{const o=document.querySelector("header");o&&g(o.getBoundingClientRect().height)};e(),window.addEventListener("resize",e);const t=window.setInterval(e,1e3);return()=>{window.removeEventListener("resize",e),window.clearInterval(t)}},[]),n.useEffect(()=>{var e,t;(t=(e=i.current)==null?void 0:e.contentWindow)==null||t.postMessage({type:"filter",aud:a,q:l},"*")},[a,l]),s.jsxs("div",{className:"w-full bg-[#FAF8F4]",children:[s.jsx("h1",{className:"sr-only",children:"The Language of AI Agents - a glossary of agent and reliability terms"}),s.jsx("div",{className:"fixed left-0 right-0 z-40",style:{top:m,background:"#1B2A3D",borderTop:"1px solid #1B2A3D",borderBottom:"1px solid #1B2A3D"},children:s.jsx("div",{className:"max-w-[1400px] mx-auto px-4 sm:px-6",children:s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-[minmax(0,1fr)_minmax(210px,300px)] gap-3 items-center py-3",children:[s.jsx("div",{className:"flex flex-nowrap gap-[7px] justify-center min-w-0 overflow-x-auto",children:p.map(e=>{const t=a===e.key;return s.jsx("button",{onClick:()=>u(e.key),className:"rounded-full transition-colors whitespace-nowrap shrink-0",style:{fontFamily:"'JetBrains Mono', ui-monospace, monospace",fontSize:12.5,padding:"7px 14px",background:t?"#0F172A":"#ffffff",color:t?"#ffffff"
1:"#1B2A3D",border:t?"1px solid #0F172A":"1px solid rgba(255,255,255,0.6)",fontWeight:t?700:400},children:e.label},e.key)})}),s.jsxs("label",{className:"flex items-center gap-2 rounded-full bg-white px-[15px] py-[8px] min-w-[210px] max-w-[300px] w-full justify-self-center md:justify-self-end",style:{border:"1px solid rgba(255,255,255,0.6)"},children:[s.jsxs("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",style:{opacity:.5,color:"#1B2A3D",flex:"none"},children:[s.jsx("circle",{cx:"11",cy:"11",r:"7"}),s.jsx("path",{d:"m21 21-4.3-4.3"})]}),s.jsx("input",{type:"text",value:l,onChange:e=>x(e.target.value),placeholder:"search a termâ¦",autoComplete:"off",className:"border-0 outline-none bg-transparent w-full text-[14.5px]",style:{color:"#1B2A3D"}})]})]})})}),s.jsx("div",{"aria-hidden":!0,style:{height:62}}),s.jsx("iframe",{ref:i,src:"/language-of-ai-agents-embed.html?embed=1",title:"Language of AI Agents",scrolling:"no",className:"w-full border-0 block",style:{height:c}})]})};export{w 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.