PageSourceSearch

https://agilegrowthlabs.com/assets/Connect-Hr3k7jsQ.js

js agilegrowthlabs.com collected 2026-10-04 15:58:16 UTC 11,626 bytes, 1 lines download raw bytes

1import{j as e}from"./vendor-radix-BEj_WEz7.js";import{r,b as W,S as U,C as F,A as O}from"./vendor-lucide-BFnkUbb3.js";import{w as P,b as M,d as A,f as n,x as u,m as k,y as G,z as K,B as Y,D as $,E as Z,S as q,H as J,F as V}from"./app-BkRFaOqw.js";import{B as D}from"./booking-DLnNH9jB.js";import"./vendor-react-qgklRtH8.js";import"./vendor-router-GrQKg3iW.js";import"./vendor-tanstack-B0m0TENU.js";import"./vendor-ui-misc-BnFQul0n.js";import"./vendor-supabase-d0ZfyNh0.js";const Q="Two questions. What's your marketing stack, and which tool do you re-brief the most?",X=new Set(["ai","seo","crm","saas","b2b","roi","kpi","pe","gtm","mrr","arr","api","llm"]),ee=o=>o.split("-").filter(Boolean).map(c=>X.has(c.toLowerCase())?c.toUpperCase():c.charAt(0).toUpperCase()+c.slice(1)).join(" "),te=()=>{if(typeof window>"u")return{sam:!1,article:"",source:""};try{const o=new URLSearchParams(window.location.search);return{sam:o.get("sam")==="1",article:(o.get("article")||"").replace(/^\/+|\/+$/g,""),source:o.get("source")||""}}catch{return{sam:!1,article:"",source:""}}},se=({embedded:o=!1,opener:c=Q})=>{const[d,f]=r.useState([{role:"assistant",content:c}]),[g,_]=r.useState({}),[h,m]=r.useState(""),[a,S]=r.useState(!1),[B,b]=r.useState(0),[y,w]=r.useState(""),[v,C]=r.useState(null),E=r.useRef(null),R=r.useRef(null),p=r.useRef(null),T=P();r.useEffect(()=>{setTimeout(()=>p.current?.focus(),60)},[]);const z=r.useRef(!1);r.useEffect(()=>{if(z.current)return;const{sam:t,article:s,source:i}=te();if(t){if(z.current=!0,s){const l=ee(s),x=`https://agilegrowthlabs.com/blog/${s}`;f(j=>[...j,{role:"assistant",content:`You just read: "${l}" (${x}). What does that same problem look like in your own numbers, ARR, team size, biggest bottleneck?`}]),m(`I just read "${l}". Here's what that looks like in my numbers: `)}M("sam_article_referral",{article_slug:s||"(none)",source:i||"blog"});try{typeof window<"u"&&typeof window.clarity=="function"&&(window.clarity("event","sam_article_referral"),window.clarity("set","sam_article_referral",s||"blog"))}catch{}setTimeout(()=>{R.current?.scrollIntoView({behavior:"smooth",block:"center"}),p.current?.focus()},300)}},[]),r.useEffect(()=>{const t=E.current;t&&(t.scrollTop=t.scrollHeight)},[d,g,a,y]),r.useEffect(()=>{if(!a){b(0);return}b(0);const t=setInterval(()=>b(s=>s+1),1e3);return()=>clearInterval(t)},[a]);const I=async t=>{const s=t[t.length-1];if(!s||s.role!=="user")return;w(""),C(null),S(!0);const i=await Y(s.content);if(i.kind==="ok"){const l=i.data,x=[...t,{role:"assistant",content:l.reply||"No reply."}],j=x.length-1;f(x),_(L=>({...L,[j]:{framework:l.framework_used||void 0,calendlyUrl:l.offer_calendly?l.calendly_url||$:void 0,shareUrl:l.diagnosis_share_url||void 0}}))}else i.kind==="rate_limited"?w("Slow down a second."):(w("Sam is having a moment. Please try again in a minute."),C(null));S(!1),setTimeout(()=>p.current?.focus(),60)},N=t=>{t?.preventDefault();const s=h.trim();if(!s||a)return;const i=[...d,{role:"user",content:s}];f(i),m(""),I(i)},H=()=>{a||I(d)};return e.jsxs("div",{ref:R,style:{minHeight:o?"auto":"100vh",background:"linear-gradient(180deg, #0B0B12 0%, #06060E 100%)",padding:o?"8px 18px 24px":"96px 18px 60px",display:"flex",flexDirection:"column",alignItems:"center"},children:[!o&&e.jsxs("div",{style:{width:"100%",maxWidth:720,margin:"0 auto 26px",textAlign:"center"},children:[e.jsx("h1",{style:{...A,fontSize:"clamp(28px, 5vw, 40px)",fontWeight:700,color:"#FFFFFF",margin:0,lineHeight:1.15},children:"What's the bottleneck?"}),e.jsx("p",{style:{...n,fontSize:15,color:"rgba(255,255,255,0.72)",margin:"10px 0 0",lineHeight:1.55},children:"Two minutes. Sam figures out if it's an AI operations problem or a growth problem, then points you to what actually fixes it."})]}),e.jsxs("div",{style:{width:"100%",maxWidth:760,background:"#FFFFFF",border:"1px solid #D1D1D6",borderRadius:22,display:"flex",flexDirection:"column",overflow:"hidden",minHeight:o?420:320,maxHeight:o?"min(58vh, 560px)":"min(72vh, 780px)",boxShadow:"0 22px 60px rgba(0,0,0,.45)"},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12,padding:"14px 18px",borderBottom:"1px solid #E5E5EA",background:"#F2F2F7"},children:[e.jsx("img",{src:u,alt:"Sam",width:40,height:40,style:{width:40,height:40,borderRadius:"50%",objectFit:"cover",boxShadow:"0 0 0 1.5px #007AFF"}}),e.jsxs("div",{style:{flex:1,minWidth:0},children:[e.jsx("div",{style:{...A,fontWeight:700,fontSize:16,color:"#000000",lineHeight:1.1},children:"Sam · Your AGL Growth Strategist"}),e.jsxs("div",{style:{...k,fontSize:10.5,color:"#34C759",letterSpacing:"0.05em"},children:[e.jsx("span",{style:{display:"inline-block",width:6,height:6,borderRadius:99,background:"#34C759",marginRight:5,verticalAlign:"middle"}}),"active now"]})]})]}),e.jsxs("div",{ref:E,style:{flex:1,overflowY:"auto",padding:"18px 16px 10px",display:"flex",flexDirection:"column",gap:12,background:"#FFFFFF"},children:[d.map((t,s)=>{if(t.role==="user")return e.jsx("div",{style:{display:"flex",justifyContent:"flex-end"},children:e.jsx("div",{style:{maxWidth:"82%",background:"#007AFF",color:"#FFFFFF",borderRadius:"18px 18px 4px 18px",padding:"10px 14px",fontSize:15,lineHeight:1.45,whiteSpace:"pre-wrap",...n},children:t.content})},s);const i=g[s]||{};return e.jsxs("div",{style:{display:"flex",alignItems:"flex-end",gap:8,animation:"samFade .25s ease both"},children:[e.jsx("img",{src:u,alt:"",width:28,height:28,style:{width:28,height:28,borderRadius:"50%",objectFit:"cover",flexShrink:0}}),e.jsxs("div",{style:{maxWidth:"86%",display:"flex",flexDirection:"column",gap:6},children:[e.jsx("div",{style:{background:"#E5E5EA",color:"#000000",borderRadius:"18px 18px 18px 4px",padding:"11px 15px",fontSize:15,lineHeight:1.5,...n,whiteSpace:"pre-wrap"},children:t.content}),T&&i.framework&&e.jsxs("div",{style:{...k,fontSize:11,color:"#8E8E93",letterSpacing:"0.03em"},children:["via ",i.framework]}),i.shareUrl&&e.jsx(G,{shareUrl:i.shareUrl}),i.calendlyUrl&&e.jsx("a",{href:i.calendlyUrl,target:"_blank",rel:"noopener noreferrer",style:{...n,alignSelf:"flex-start",display:"inline-flex",alignItems:"center",gap:6,fontSize:13,color:"#FFFFFF",background:"#000000",borderRadius:999,padding:"9px 16px",fontWeight:700,textDecoration:"none"},children:"Talk to an expert today from Chicago, IL →"})]})]},s)}),a&&e.jsxs("div",{style:{display:"flex",alignItems:"flex-end",gap:8},children:[e.jsx("img",{src:u,alt:"",width:28,height:28,style:{width:28,height:28,borderRadius:"50%",objectFit:"cover",flexShrink:0}}),e.jsxs("div",{style:{background:"#E5E5EA",borderRadius:"18px 18px 18px 4px",padding:"11px 15px",maxWidth:"82%",...n,fontSize:14,color:"#000000"},children:[e.jsx("div",{children:"Sam is thinking…"}),e.jsxs("div",{style:{...k,marginTop:4,fontSize:12,color:"#6B6B70"},children:[B,"s"]})]})]}),y&&!a&&e.jsxs("div",{style:{display:"flex",alignItems:"flex-end",gap:8},children:[e.jsx("img",{src:u,alt:"",width:28,height:28,style:{width:28,height:28,borderRadius:"50%",objectFit:"cover",flexShrink:0}}),e.jsxs("div",{style:{maxWidth:"86%",display:"flex",flexDirection:"column",gap:6},children:[e.jsx("div",{style:{background:"#FFF1F0",color:"#7A1F14",border:"1px solid #F3C6C0",borderRadius:"14px 14px 14px 4px",padding:"10px 13px",fontSize:14,lineHeight:1.45,...n},children:y}),v&&e.jsx("a",{href:v,target:"_blank",rel:"noopener noreferrer",style:{...n,alignSelf:"flex-start",display:"inline-flex",alignItems:"center",gap:6,fontSize:13,color:"#FFFFFF",background:"#000000",borderRadius:999,padding:"8px 14px",fontWeight:700,textDecoration:"none"},children:"Talk to an expert today from Chicago, IL →"}),e.jsxs("button",{type:"button",onClick:H,style:{...n,alignSelf:"flex-start",display:"inline-flex",alignItems:"center",gap:6,fontSize:13,color:"#FFFFFF",background:"#000000",border:"none",borderRadius:999,padding:"8px 14px",cursor:"pointer"},children:[e.jsx(W,{size:12})," Try again"]})]})]}),e.jsx(K,{userTurns:d.filter(t=>t.role==="user").length,force:Object.values(g).some(t=>!!t.calendlyUrl),page:typeof window<"u"?window.location.pathname:"/",transcript:d})]}),e.jsx("form",{onSubmit:N,style:{display:"flex",gap:8,alignItems:"flex-end",padding:"10px 16px 14px",background:"#F9F9F9",borderTop:"1px solid #E5E5EA"},children:e.jsxs("div",{style:{flex:1,display:"flex",alignItems:"flex-end",background:"#FFFFFF",border:"1px solid #D1D1D6",borderRadius:18,padding:"4px 6px 4px 12px"},children:[e.jsx("textarea",{ref:p,value:h,onChange:t=>m(t.target.value),onKeyDown:t=>{t.key==="Enter"&&!t.shiftKey&&(t.preventDefault(),N())},placeholder:"Tell Sam the growth goal.",disabled:a,rows:1,style:{flex:1,background:"transparent",border:"none",outline:"none",color:"#000000",fontSize:16,padding:"8px 4px",...n,resize:"none",maxHeight:160,minHeight:22,lineHeight:1.4}}),e.jsx("button",{type:"submit",disabled:!h.trim()||a,"aria-label":"Send",style:{width:34,he
1ight:34,borderRadius:"50%",border:"none",background:h.trim()&&!a?"#007AFF":"#C7C7CC",color:"#FFFFFF",display:"inline-flex",alignItems:"center",justifyContent:"center",cursor:h.trim()&&!a?"pointer":"not-allowed",flexShrink:0},children:e.jsx(U,{size:15})})]})})]})]})},re="https://calendar.google.com/calendar/appointments/schedules/AcZssZ0ujc2JT4er9H8jsTDFlqxjKJLsl8DM52NnLb7V8kzpgicnw2YnPZoQdH7MhZ8UGuvK6Xc2YNgm?gv=true",ie="Before you book, I’ll help prepare the call. What does your business do, what outcome do you want, and what would make this meeting useful?",ue=()=>(r.useEffect(()=>{Z("Book a call","connect_page")},[]),e.jsxs(e.Fragment,{children:[e.jsx(q,{title:"Book a call | Agile Growth Labs",description:"Tell Sam about your business and goals, then choose a time to talk with an Agile Growth Labs expert.",path:"/book"}),e.jsx(J,{children:e.jsx("section",{className:"hf-section hf-booking-page",children:e.jsxs("div",{className:"hf-shell",children:[e.jsx("div",{className:"hf-eyebrow",children:"Start with a conversation"}),e.jsx("h1",{className:"hf-title",children:"Book a call. Come in with the right questions."}),e.jsx("p",{className:"hf-copy",children:"Choose a time, or tell Sam about your business first so the meeting starts with useful context."}),e.jsxs("div",{className:"hf-booking-split",children:[e.jsxs("div",{className:"hf-booking-card",children:[e.jsx("div",{className:"hf-panel-title",children:"Book your call"}),e.jsx("h2",{className:"hf-h2",children:"Talk to an expert today from Chicago, IL."}),e.jsx("p",{className:"hf-copy",children:"Pick the time that works for you. We will use the call to understand the outcome you want and whether we can help."}),e.jsxs("ul",{className:"hf-booking-list",children:[e.jsxs("li",{children:[e.jsx(F,{size:15})," Your business and current situation"]}),e.jsxs("li",{children:[e.jsx(F,{size:15})," The outcome you want"]}),e.jsxs("li",{children:[e.jsx(F,{size:15})," What a useful next step looks like"]})]}),e.jsx("div",{className:"hf-booking-embed",children:e.jsx("iframe",{src:re,title:"Choose a time",loading:"lazy",style:{border:0,width:"100%",height:"100%"}})}),e.jsxs("p",{className:"hf-action-note",children:["Trouble loading?"," ",e.jsxs("a",{href:D,target:"_blank",rel:"noopener noreferrer",onClick:V("Choose a time",D,"booking_calendar"),children:["Open the calendar in a new tab ",e.jsx(O,{size:12,"aria-hidden":"true"})]})]})]}),e.jsxs("div",{className:"hf-booking-chat",children:[e.jsx("div",{className:"hf-panel-title",children:"Prepare the meeting with Sam"}),e.jsx("p",{className:"hf-booking-chat-note",children:"Sam will ask about your business, goals, and desired outcomes before you choose a time."}),e.jsx(se,{embedded:!0,opener:ie})]})]})]})})})]}));export{ue 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.