1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[26585],{26585:function(e,t,n){n.d(t,{PublicNav:function(){return j},f:function(){return N}});var a=n(57437),r=n(2265),o=n(54887),l=n(27648),s=n(99376),i=n(16389),d=n(71769),c=n(62883),h=n(40476),u=n(95252),p=n(59426),x=n(33245),m=n(11243),f=n(40875),b=n(32489),g=n(58293),_=n(5526),w=n(34519),E=n(12988);function v(e){let{className:t=""}=e,[n,o]=(0,r.useState)(null);(0,r.useEffect)(()=>{let e=!0;_.supabase.auth.getSession().then(t=>{let{data:n}=t;e&&o(!!n.session)});let{data:t}=_.supabase.auth.onAuthStateChange((t,n)=>{e&&o(!!n)});return()=>{e=!1,t.subscription.unsubscribe()}},[]);let l="inline-flex h-[36px] items-center rounded-full bg-white px-5 text-[12.5px] font-medium text-black transition-colors hover:bg-white/90";return!0===n?(0,a.jsx)("a",{href:"/dashboard/chat",onClick:()=>(0,w.j)(E.z.CTA_CLICKED,{location:"nav",label:"Go to app",destination:"/dashboard/chat"}),className:"".concat(l," ").concat(t),children:"Go to app"}):(0,a.jsx)("a",{href:"/signup",onClick:()=>(0,w.j)(E.z.CTA_CLICKED,{location:"nav",label:"Try for free",destination:"/signup"}),className:"".concat(l," ").concat(t),children:"Try for free"})}function N(e){let{className:t=""}=e;return(0,a.jsx)("span",{className:"select-none font-sans font-black lowercase leading-none tracking-[0.02em] text-transparent ".concat(t),style:{WebkitTextStroke:"1.1px rgba(255,255,255,0.92)"},children:"ultron"})}let y=[{label:"Company",href:"/docs"},{label:"Genome",href:"/ai-native"}],C=[{label:"The library",href:"/resources",Icon:d.Z},{label:"Crescendo",href:"/crescendo",Icon:c.Z},{label:"Website Audit",href:"/agent-ready",Icon:h.Z},{label:"Get Paid",href:"/creators",Icon:u.Z},{label:"Skills catalog",href:"/docs/skills/catalog",Icon:p.Z},{label:"Product updates",href:"/docs/changelog",Icon:x.Z},{label:"Support agent",href:"/docs/support",Icon:m.Z}],T=[{label:"Company overview",href:"/docs"},{label:"Audit your website",href:"/agent-ready"},{label:"AI readiness assessment",href:"/ai-native"},{label:"Get paid to create",href:"/creators"},{label:"Discover trends",href:"/discovery-lab"},{label:"Resource library",href:"/resources"},{label:"ROI calculator",href:"/roi-calculator"},{label:"Crescendo templates",href:"/crescendo"},{label:"The harness benchmark",href:"/harness"},{label:"Skills catalog",href:"/docs/skills/catalog"},{label:"Product updates",href:"/docs/changelog"},{label:"Support agent",href:"/docs/support"}];function j(){var e;let{brand:t="Ultron",showLogo:n=!0,embedded:d=!1,leadingSlot:c,onMenuToggle:h}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},u=(0,s.usePathname)(),[p,x]=(0,r.useState)(!1),[m,_]=(0,r.useState)(!1),j=(0,r.useRef)(null),D=(0,r.useRef)(null),[k,A]=(0,r.useState)(null),O=(0,r.useRef)(null),S=()=>{O.current&&clearTimeout(O.current),_(!0)},I=()=>{O.current&&clearTimeout(O.current),O.current=setTimeout(()=>_(!1),140)};(0,r.useEffect)(()=>{if(!m)return;let e=()=>{var e;let t=null===(e=j.current)||void 0===e?void 0:e.getBoundingClientRect();if(!t)return;let n=Math.min(Math.max(8,t.left+t.width/2-120),window.innerWidth-248);A({top:t.bottom+8,left:n})};return e(),window.addEventListener("scroll",e,!0),window.addEventListener("resize",e),()=>{window.removeEventListener("scroll",e,!0),window.removeEventListener("resize",e)}},[m]),(0,r.useEffect)(()=>{if(m)return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e);function e(e){var t,n;let a=e.target;(null===(t=j.current)||void 0===t?void 0:t.contains(a))||(null===(n=D.current)||void 0===n?void 0:n.contains(a))||_(!1)}},[m]);let L=(0,r.useRef)(null),[R,G]=(0,r.useState)({start:!0,end:!0}),M=()=>{let e=L.current;e&&G({start:e.scrollLeft<=1,end:e.scrollLeft>=e.scrollWidth-e.clientWidth-1})};(0,r.useEffect)(()=>{if(d)return M(),window.addEventListener("resize",M),()=>window.removeEventListener("resize",M)},[d]);let P=R.start?"#000 0%":"transparent 0%, #000 28px",z=R.end?"#000 100%":"#000 calc(100% - 28px), transparent 100%",U="linear-gradient(to right, ".concat(P,", ").concat(z,")");(0,r.useEffect)(()=>{x(!1),_(!1)},[u]);let B=null===(e=T.filter(e=>u===e.href||u.startsWith(e.href+"/")).sort((e,t)=>
1t.href.length-e.href.length)[0])||void 0===e?void 0:e.href,K=(0,r.useRef)(null),[H,Z]=(0,r.useState)({top:!0,bottom:!0}),W=()=>{let e=K.current;e&&Z({top:e.scrollTop<=1,bottom:e.scrollTop>=e.scrollHeight-e.clientHeight-1})};return(0,r.useEffect)(()=>{if(p)return W(),window.addEventListener("resize",W),()=>window.removeEventListener("resize",W)},[p]),(0,a.jsxs)(a.Fragment,{children:[!d&&(0,a.jsx)(i.Z,{}),(0,a.jsx)("header",{className:d?"sticky top-0 z-40 h-[60px] border-b border-[var(--mono-line)] bg-[var(--mono-app)]/95 shadow-[0_1px_0_rgba(0,0,0,0.4)] backdrop-blur-xl":"fixed inset-x-0 top-0 z-50 h-[60px] border-b border-white/[0.06] backdrop-blur-md backdrop-brightness-[0.72] ".concat(p?"bg-[#1a1a1a]":"bg-transparent"),children:(0,a.jsxs)("div",{className:"flex h-full items-center justify-between gap-4 px-5 ".concat(d?"w-full lg:px-8":"mx-auto max-w-[1400px] lg:px-10"),children:[!p&&c,n&&(0,a.jsx)(l.default,{href:"/","aria-label":"Ultron home",className:"flex shrink-0 items-center ".concat(d?"md:hidden":""),children:(0,a.jsx)(N,{className:"text-[23px]"})}),(0,a.jsxs)("nav",{ref:L,onScroll:d?M:void 0,style:d?{maskImage:U,WebkitMaskImage:U}:void 0,className:"hidden items-center gap-1 min-[900px]:flex ".concat(d?"min-w-0 flex-1 overflow-x-auto py-1 [-ms-overflow-style:none] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden [&>*]:shrink-0":""),children:[y.map(e=>(0,a.jsxs)(l.default,{href:e.href,onClick:()=>(0,w.j)(E.z.CTA_CLICKED,{location:"nav",label:e.label,destination:e.href}),className:"inline-flex items-center gap-1.5 rounded-md px-3 py-1.5 text-[13.5px] font-medium text-white/70 transition-colors hover:bg-white/[0.04] hover:text-white",children:[e.label,e.badge&&(0,a.jsx)("span",{className:"rounded-full bg-emerald-400/15 px-1.5 py-0.5 text-[9.5px] font-semibold uppercase tracking-[0.10em] text-emerald-200",children:e.badge})]},e.href)),(0,a.jsxs)("div",{ref:j,className:"relative",onMouseEnter:S,onMouseLeave:I,children:[(0,a.jsxs)("button",{type:"button",onClick:()=>_(e=>!e),className:"inline-flex items-center gap-1 rounded-md px-3 py-1.5 text-[13.5px] font-medium transition-colors hover:bg-white/[0.04] ".concat(m?"bg-white/[0.05] text-white":"text-white/70 hover:text-white"),"aria-expanded":m,children:["Resources",(0,a.jsx)(f.Z,{className:"h-3.5 w-3.5 transition-transform ".concat(m?"rotate-180":"")})]}),m&&k&&"undefined"!=typeof document&&(0,o.createPortal)((0,a.jsx)("div",{ref:D,onMouseEnter:S,onMouseLeave:I,style:{top:k.top,left:k.left},className:"fixed z-[90] w-[236px] overflow-hidden rounded-2xl border border-[var(--mono-line)] bg-[var(--mono-panel)] px-4 py-1 shadow-[0_24px_64px_rgba(0,0,0,0.55)] animate-in fade-in duration-100",children:C.map(e=>(0,a.jsx)(l.default,{href:e.href,onClick:()=>{_(!1),"#support"===e.href&&window.dispatchEvent(new Event("ultron:support-open"))},className:"block border-b border-[var(--mono-line)] py-[11px] text-[14.5px] font-medium text-[var(--mono-ink-2)] transition-colors last:border-0 hover:text-[var(--mono-ink)]",children:e.label},e.href))}),document.body)]}),(0,a.jsx)(l.default,{href:"/discovery-lab",className:"inline-flex items-center rounded-md px-3 py-1.5 text-[13.5px] font-medium text-white/70 transition-colors hover:bg-white/[0.04] hover:text-white",children:"Discover"}),(0,a.jsxs)(l.default,{href:"/harness",onClick:()=>(0,w.j)(E.z.CTA_CLICKED,{location:"nav",label:"Harness",destination:"/harness"}),className:"inline-flex items-center gap-1.5 rounded-md px-3 py-1.5 text-[13.5px] font-medium text-white/70 transition-colors hover:bg-white/[0.04] hover:text-white",children:["Harness",(0,a.jsx)("span",{className:"inline-flex h-[19px] items-center justify-center rounded-full bg-[#DA4E24]/20 pb-px pl-[9px] pr-[7px] text-[10px] font-semibold uppercase leading-none tracking-[0.09em] text-[#f0a184]",children:"Hot"})]})]}),(0,a.jsxs)("div",{className:"flex shrink-0 items-center gap-2 ".concat(d?"ml-auto":""),children:[(0,a.jsx)(l.default,{href:"/contact",onClick:()=>(0,w.j)(E.z.CTA_CLICKED,{location:"nav",label:"Let's talk",destination:"/contact"}),className:"hidden items-center rounded-full border border-white/[0.18] bg-transparent px-4 py-1.5 text-[13.5px] font-medium text-white/85 transition-colors hover:border-white/40 hover:bg-white/[0.04] hover:text-white min-[900px]:inline-flex",children:"Letâs talk"}),(0,a.jsx)(v,{className:p?"hidden":"inline-flex"}),(0,a.jsx)("button",{type:"button",onClick:()=>{x(e=>!e),null==h||h()},className:"rounded-md p-2 text-white/70 transition-colors hover:bg-white/[0.05] hover:text-white min-[900px]:hidden","aria-label":p?"Close menu":"Open menu","aria-expanded":p,children:p?(0,a.jsx)(b.Z,{className:"h-5 w-5"}):(0,a.jsx)(g.Z,{className:"h-5 w-5"})})]})]})}),p&&(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"fixed inset-x-0 top-[60
1px] bottom-0 z-[60] flex flex-col bg-[#1a1a1a] backdrop-blur-xl animate-in fade-in duration-100 min-[900px]:hidden",children:[(0,a.jsxs)("div",{className:"relative min-h-0 flex-1",children:[(0,a.jsx)("nav",{ref:K,onScroll:W,className:"h-full overflow-y-auto px-6 pb-6 pt-2",children:(0,a.jsx)("div",{className:"flex flex-col divide-y divide-white/[0.05]",children:T.map(e=>{let t=e.href===B;return(0,a.jsxs)(l.default,{href:e.href,onClick:()=>{(0,w.j)(E.z.CTA_CLICKED,{location:"nav",label:e.label,destination:e.href}),x(!1)},className:"group relative flex items-center py-[19px]",children:[t&&(0,a.jsx)("span",{"aria-hidden":!0,className:"absolute left-[-14px] top-1/2 h-[7px] w-[7px] -translate-y-1/2 rounded-full bg-[#dd8568]"}),(0,a.jsx)("span",{className:"text-[23px] font-medium leading-[1.15] tracking-[-0.02em] transition-all duration-200 group-active:translate-x-1 ".concat(t?"text-white":"text-[#f4ecda] group-active:text-white"),children:e.label})]},e.href)})})}),(0,a.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-x-0 top-0 h-8 bg-gradient-to-b from-[#1a1a1a] to-transparent transition-opacity duration-200",style:{opacity:H.top?0:1}}),(0,a.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-x-0 bottom-0 h-10 bg-gradient-to-t from-[#1a1a1a] to-transparent transition-opacity duration-200",style:{opacity:H.bottom?0:1}})]}),(0,a.jsx)("div",{className:"shrink-0 border-t border-white/[0.06] bg-[#1a1a1a] px-5 pb-8 pt-6",children:(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)(l.default,{href:"/contact",onClick:()=>{(0,w.j)(E.z.CTA_CLICKED,{location:"nav",label:"Let's talk",destination:"/contact"}),x(!1)},className:"flex-1 inline-flex h-11 items-center justify-center rounded-full border border-white/[0.18] bg-transparent px-4 text-[14.5px] font-medium text-white transition-colors hover:bg-white/[0.04]",children:"Letâs talk"}),(0,a.jsx)(v,{className:"flex-1 justify-center !h-11 !text-[14.5px]"})]})})]})})]})}},16389:function(e,t,n){n.d(t,{Z:function(){return h}});var a=n(57437),r=n(2265),o=n(11243),l=n(79862),s=n(69076),i=n(32489),d=n(20265);let c=["What is Ultron in one minute?","How do skills work?","What does pricing look like?","What shipped recently?"];function h(){let{showPill:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[t,n]=(0,r.useState)(!1),[h,u]=(0,r.useState)([]),[p,x]=(0,r.useState)(""),[m,f]=(0,r.useState)(!1),[b,g]=(0,r.useState)(!1),[_,w]=(0,r.useState)(""),[E,v]=(0,r.useState)(""),[N,y]=(0,r.useState)("idle"),C=(0,r.useRef)(null),T=(0,r.useRef)(null);(0,r.useEffect)(()=>{let e=()=>{"#support"===window.location.hash&&n(!0)},t=()=>n(!0);return e(),window.addEventListener("hashchange",e),window.addEventListener("ultron:support-open",t),()=>{window.removeEventListener("hashchange",e),window.removeEventListener("ultron:support-open",t)}},[]),(0,r.useEffect)(()=>{var e;null===(e=C.current)||void 0===e||e.scrollTo({top:C.current.scrollHeight})},[h,t,b]);let j=(0,r.useCallback)(async e=>{let t=e.trim();if(!t||m)return;x(""),f(!0),u(e=>[...e,{role:"user",content:t},{role:"assistant",content:""}]);let n=new AbortController;T.current=n;try{let e=await fetch("/api/docs-support",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:t,history:h}),signal:n.signal});if(!e.ok||!e.body)throw Error("support agent unavailable (".concat(e.status,")"));let a=e.body.getReader(),r=new TextDecoder,o="";for(;;){let{value:e,done:t}=await a.read();if(t)break;let n=(o+=r.decode(e,{stream:!0})).split("\n");for(let e of(o=n.pop()||"",n)){let t=e.trim();if(!t.startsWith("data:"))continue;let n=t.slice(5).trim();if(n&&"[DONE]"!==n)try{let e=JSON.parse(n);"text"===e.type&&"string"==typeof e.delta?u(t=>{let n=[...t];return n[n.length-1]={role:"assistant",content:n[n.length-1].content+e.delta},n}):"error"===e.type&&u(e=>{let t=[...e];return t[t.length-1]={role:"assistant",content:"Something broke on my side. Try again, or hand this to a human with the button above."},t})}catch(e){}}}}catch(e){u(e=>{var t;let n=[...e];return(null===(t=n[n.length-1])||void 0===t?void 0:t.role)==="assistant"&&""===n[n.length-1].content&&(n[n.length-1]={role:"assistant",content:"I couldn't reach the docs brain. Try again in a moment, or hand off to a human."}),n})}f(!1)},[m,h]);async function D(){if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(_)){y("error");return}y("sending");try{let e=h.map(e=>"".concat("user"===e.role?"Visitor":"Agent",": ").concat(e.content)).join("\n\n").slice(0,6e3),t=await fetch("/api/docs-support/escalate",{method:"POST",headers:{"Content-Type":"application/json"}
1,body:JSON.stringify({email:_,note:E,transcript:e,page:window.location.pathname,website:""})});y(t.ok?"done":"error")}catch(e){y("error")}}return t?(0,a.jsxs)("div",{className:"fixed bottom-5 right-5 z-50 flex h-[600px] max-h-[calc(100vh-40px)] w-[392px] max-w-[calc(100vw-24px)] flex-col overflow-hidden rounded-2xl border border-white/[0.10] bg-[#141414]/[0.97] shadow-2xl shadow-black/60 backdrop-blur-xl",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2.5 border-b border-white/[0.07] px-4 py-3",children:[(0,a.jsx)("span",{className:"flex size-7 items-center justify-center rounded-lg bg-white/[0.06] text-white/80",children:(0,a.jsx)(o.Z,{className:"size-4"})}),(0,a.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,a.jsx)("div",{className:"text-[13px] font-semibold leading-none text-white",children:"Ultron Support"}),(0,a.jsxs)("div",{className:"mt-1 flex items-center gap-1.5 text-[10.5px] text-white/45",children:[(0,a.jsx)("span",{className:"size-1.5 rounded-full bg-emerald-400/80"}),"grounded in the docs \xb7 cites sources"]})]}),(0,a.jsx)("button",{type:"button",title:"Talk to a human",onClick:()=>{g(e=>!e),y("idle")},className:"rounded-md p-1.5 transition-colors ".concat(b?"bg-white/[0.10] text-white":"text-white/50 hover:bg-white/[0.06] hover:text-white"),children:(0,a.jsx)(l.Z,{className:"size-4"})}),(0,a.jsx)("button",{type:"button",title:"New session",onClick:()=>{var e;null===(e=T.current)||void 0===e||e.abort(),u([]),g(!1),f(!1)},className:"rounded-md p-1.5 text-white/50 transition-colors hover:bg-white/[0.06] hover:text-white",children:(0,a.jsx)(s.Z,{className:"size-4"})}),(0,a.jsx)("button",{type:"button",title:"Close",onClick:()=>{n(!1),"#support"===window.location.hash&&history.replaceState(null,"",window.location.pathname+window.location.search)},className:"rounded-md p-1.5 text-white/50 transition-colors hover:bg-white/[0.06] hover:text-white",children:(0,a.jsx)(i.Z,{className:"size-4"})})]}),b&&(0,a.jsx)("div",{className:"border-b border-white/[0.07] bg-white/[0.03] px-4 py-3",children:"done"===N?(0,a.jsx)("p",{className:"text-[12.5px] leading-relaxed text-emerald-300/90",children:"Handed off. The team replies to your email â the whole conversation went with it."}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{className:"text-[12px] leading-snug text-white/60",children:"A human picks this up with the full conversation attached and replies by email."}),(0,a.jsx)("input",{value:_,onChange:e=>w(e.target.value),placeholder:"[email protected]",className:"mt-2 w-full rounded-lg border border-white/[0.10] bg-black/30 px-2.5 py-1.5 text-[12.5px] text-white outline-none placeholder:text-white/30 focus:border-white/[0.25]"}),(0,a.jsxs)("div",{className:"mt-2 flex gap-2",children:[(0,a.jsx)("input",{value:E,onChange:e=>v(e.target.value),placeholder:"Anything to add? (optional)",className:"min-w-0 flex-1 rounded-lg border border-white/[0.10] bg-black/30 px-2.5 py-1.5 text-[12.5px] text-white outline-none placeholder:text-white/30 focus:border-white/[0.25]"}),(0,a.jsx)("button",{type:"button",disabled:"sending"===N,onClick:()=>void D(),className:"shrink-0 rounded-lg bg-white px-3 py-1.5 text-[12px] font-semibold text-black transition-opacity hover:opacity-90 disabled:opacity-50",children:"sending"===N?"Sendingâ¦":"Hand off"})]}),"error"===N&&(0,a.jsx)("p",{className:"mt-1.5 text-[11.5px] text-red-300/90",children:"Check the email address and try again."})]})}),(0,a.jsxs)("div",{ref:C,className:"min-h-0 flex-1 space-y-3 overflow-y-auto px-4 py-4",children:[0===h.length&&(0,a.jsxs)("div",{className:"pt-2",children:[(0,a.jsx)("p",{className:"text-[13px] leading-relaxed text-white/60",children:"I read every page of the Ultron docs and the ship history. Ask me anything about the product â I cite my sources."}),(0,a.jsx)("div",{className:"mt-3 flex flex-col items-start gap-1.5",children:c.map(e=>(0,a.jsx)("button",{type:"button",onClick:()=>void j(e),className:"rounded-full border border-white/[0.10] bg-white/[0.04] px-3 py-1.5 text-[12.5px] text-white/80 transition-colors hover:border-white/[0.22] hover:text-white",children:e},e))})]}),h.map((e,t)=>"user"===e.role?(0,a.jsx)("div",{className:"flex justify-end",children:(0,a.jsx)("div",{className:"max-w-[85%] rounded-2xl rounded-tr-sm bg-white/[0.09] px-3.5 py-2 text-[13px] leading-relaxed text-white",children:e.content})},t):(0,a.jsx)("div",{className:"max-w-full text-[13px] leading-relaxed text-white/80",children:""===e.content&&m&&t===h.length-1?(0,a.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-white/45",children:[(0,a.jsx)("span",{className:"size-1 animate-pulse rounded-full bg-white/50"}),(0,a.jsx)("span",{className:"size-1 animate-pulse rounded-full bg-white/50 [animation-delay:150ms]"}),(0,a.jsx)("span",{className:"size-1 animate-pulse rounded-full bg-white/50 [animation-delay:300ms]"})]}):function(e){let t=[],n=e.split("\n"),r=0,o=e=>{let t;let n=[],o=/\[([^\]]+)\]\((https?:\/\/[^\s)]+)\)|\*\*([^*]+)\*\*|`([^`]+)`/g,l=0;for(;t=o.exec(e);)t.index>l&&n.push(e.slice(l,t.index)),t[1]&&t[2]?n.push((0,a.jsx)("a",{href:t[2],target:"_blank",rel:"noreferrer",className:"text-amber-200/90 underline decoration-amber-200/40 underline-offset-2 hover:text-amber-100",children:t[1]},r++)):t[3]?n.push((0,a.jsx)("strong",{className:"font-semibold text-white",children:t[3]},r++)):t[4]&&n.push((0,a.jsx)("code",{className:"rounded bg-white/[0.08] px-1 py-px font-mono text-[11.5px]",children:t[4]},r++)),l=o.lastIndex;return l<e.length&&n.push(e.slice(l)),n},l=[],s=()=>{l.length&&(t.push((0,a.jsx)("ul",{className:"my-1.5 space-y-1 pl-4",children:l},r++)),l=[])};for(let e of n){let n=/^\s*[-*]\s+(.*)$/.exec(e);if(n){l.push((0,a.jsx)("li",{className:"list-disc marker:text-white/30",children:o(n[1])},r++));continue}if(s(),""===e.trim()){t.push((0,a.jsx)("div",{className:"h-2"},r++));continue}t.push((0,a.jsx)("p",{className:"my-0.5",children:o(e)},r++))}return s(),t}(e.content)},t))]}),(0,a.jsx)("div",{className:"border-t border-white/[0.07] p-3",children:(0,a.jsxs)("div",{className:"flex items-end gap-2 rounded-xl border border-white/[0.10] bg-black/30 px-3 py-2 focus-within:border-white/[0.25]",children:[(0,a.jsx)("textarea",{rows:1,value:p,onChange:e=>x(e.target.value),onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),j(p))},placeholder:"Ask anythingâ¦",className:"max-h-[96px] min-h-[22px] w-full resize-none bg-transparent text-[13px] leading-relaxed text-white outline-none placeholder:text-white/30"}),(0,a.jsx)("button",{type:"button",disabled:!p.trim()||m,onClick:()=>void j(p),className:"flex size-7 shrink-0 items-center justify-center rounded-lg transition-all ".concat(p.trim()&&!m?"bg-white text-black hover:scale-105":"bg-white/[0.07] text-white/35"),"aria-label":"Send",children:(0,a.jsx)(d.Z,{className:"size-4"})})]})})]}):e?(0,a.jsxs)("button",{type:"button",onClick:()=>n(!0),className:"fixed bottom-5 right-5 z-40 inline-flex items-center gap-2 rounded-full border border-white/[0.10] bg-[#1a1a1a]/90 px-4 py-2 text-[12.5px] font-medium text-white/85 backdrop-blur-md transition-colors hover:border-white/[0.20] hover:bg-[#1a1a1a] hover:text-white",children:[(0,a.jsxs)("span",{className:"relative flex h-1.5 w-1.5",children:[(0,a.jsx)("span",{className:"absolute inset-0 animate-ping rounded-full bg-emerald-400/40"}),(0,a.jsx)("span",{className:"relative h-1.5 w-1.5 rounded-full bg-emerald-400/80"})]}
1),"Support"]}):null}},12988:function(e,t,n){n.d(t,{z:function(){return a}});let a={PAGE_VIEWED:"$pageview",PAGE_LEFT:"$pageleave",SECTION_VIEWED:"section_viewed",CTA_CLICKED:"cta_clicked",DEAL_DECK_CLICKED:"deal_deck_clicked",DEAL_CALENDLY_CLICKED:"deal_calendly_clicked",DEAL_TRY_ULTRON_CLICKED:"deal_try_ultron_clicked",DEAL_TERMS_OPENED:"deal_terms_opened",DEAL_TERMS_CLOSED:"deal_terms_closed",DEAL_TIER_SELECTED:"deal_tier_selected",DEAL_CUSTOM_AMOUNT_ENTERED:"deal_custom_amount_entered",DEAL_INVEST_CLICKED:"deal_invest_clicked",DEAL_CHECKOUT_OPENED:"deal_checkout_opened",DEAL_CHECKOUT_STARTED:"deal_checkout_started",DEAL_INVESTMENT_COMPLETED:"deal_investment_completed",DEAL_THANK_YOU_VIEWED:"deal_thank_you_viewed",SIGNUP_STARTED:"signup_started",SIGNUP_SUBMITTED:"signup_submitted",SIGNUP_COMPLETED:"signup_completed",LOGIN_SUBMITTED:"login_submitted",LOGIN_COMPLETED:"login_completed",LOGOUT:"logout",FIRST_CHAT_SENT:"first_chat_sent",FIRST_TOOL_CALL:"first_tool_call",FIRST_ARTIFACT_CREATED:"first_artifact_created",INTEGRATION_CONNECTED:"integration_connected",CHECKOUT_STARTED:"checkout_started",CREDITS_PURCHASED:"credits_purchased",SUBSCRIPTION_UPGRADED:"subscription_upgraded",SUBSCRIPTION_CANCELLED:"subscription_cancelled",LIMIT_REACHED:"limit_reached",AGENT_READY_SCAN_STARTED:"agent_ready_scan_started",AGENT_READY_SCAN_COMPLETED:"agent_ready_scan_completed",AGENT_READY_FIX_COPIED:"agent_ready_fix_copied",AGENT_READY_CUSTOMIZE_OPENED:"agent_ready_customize_opened",GENOME_COMPANY_SEARCHED:"genome_company_searched",GENOME_REPORT_GENERATED:"genome_report_generated",GENOME_REPORT_VIEWED:"genome_report_viewed",GENOME_CTA_CLICKED:"genome_cta_clicked",MAGNET_READ:"magnet_read",MAGNET_SUBSCRIBED:"magnet_subscribed",MAGNET_REC_CLICKED:"magnet_rec_clicked",CONTACT_SALES_SUBMITTED:"contact_sales_submitted",BOOK_CALL_STARTED:"book_call_started",BOOK_CALL_COMPLETED:"book_call_completed",FEATURE_USED:"feature_used",ONBOARDING_STARTED:"onboarding_started",ONBOARDING_CATEGORY_STARTED:"onboarding_category_started",ONBOARDING_STEP_COMPLETED:"onboarding_step_completed",ONBOARDING_CATEGORY_COMPLETED:"onboarding_category_completed",ONBOARDING_LANE_CHOSEN:"onboarding_lane_chosen",ONBOARDING_CONNECTION_MADE:"onboarding_connection_made",ONBOARDING_WATCHER_ARMED:"onboarding_watcher_armed",ONBOARDING_PROJECT_CREATED:"onboarding_project_created",ONBOARDING_PAUSED:"onboarding_paused",ONBOARDING_DISMISSED:"onboarding_dismissed",ONBOARDING_RESUMED:"onboarding_resumed",ONBOARDING_COMPLETED:"onboarding_completed"}},34519:function(e,t,n){function a(e,t){try{let n=window.posthog;null==n||n.capture(e,null!=t?t:{}),function(e,t,n){try{let l=null;try{var a,o;l=null!==(o=null==n?void 0:null===(a=n.get_distinct_id)||void 0===a?void 0:a.call(n))&&void 0!==o?o:null}catch(e){}let s=JSON.stringify({event:e,distinct_id:l,source:"client",props:null!=t?t:{}});"undefined"!=typeof navigator&&navigator.sendBeacon?navigator.sendBeacon(r,s):fetch(r,{method:"POST",headers:{"Content-Type":"text/plain"},body:s,keepalive:!0}).catch(()=>{})}catch(e){}}(e,t,n)}catch(e){}}n.d(t,{D$:function(){return l},j:function(){return a},yV:function(){return o}});let r="https://analytics-ingest.catalin-932.workers.dev";function o(e,t){try{let n=window.posthog;null==n||n.identify(e,t)}catch(e){}}function l(){try{let e=window.posthog;null==e||e.reset()}catch(e){}}}}]);
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.