PageSourceSearch

https://heypoppi.ai/_next/static/chunks/app/page-70ad65159f9e385c.js

js heypoppi.ai collected 2026-10-05 14:32:26 UTC 14,334 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8974],{4416:(e,t,s)=>{"use strict";s.d(t,{hg:()=>o,w:()=>l,wn:()=>i});var a=s(95155),r=s(5917);s(47769),s(13203);var n=s(49498);function i(e){let{children:t,className:s,id:r,tone:i="default"}=e;return(0,a.jsx)("section",{id:r,className:(0,n.cn)("section-pad","muted"===i&&"bg-secondary/40","sand"===i&&"bg-sand","ink"===i&&"surface-ink",s),children:(0,a.jsx)("div",{className:"container-page",children:t})})}function l(e){let{eyebrow:t,title:s,subtitle:r,align:i="center",onInk:l=!1}=e;return(0,a.jsxs)("div",{className:(0,n.cn)("max-w-3xl","center"===i&&"mx-auto text-center"),children:[t&&(0,a.jsx)("p",{className:"text-xs font-semibold uppercase tracking-[0.18em] text-accent",children:t}),(0,a.jsx)("h2",{className:(0,n.cn)("mt-3 text-3xl font-semibold sm:text-4xl md:text-5xl",l?"text-ink-foreground":"text-foreground"),children:s}),r&&(0,a.jsx)("p",{className:(0,n.cn)("mt-4 text-lg",l?"text-ink-muted":"text-muted-foreground"),children:r})]})}function o(e){let{items:t,className:s,onInk:i=!1}=e;return(0,a.jsx)("ul",{className:(0,n.cn)("space-y-2.5",s),children:t.map(e=>(0,a.jsxs)("li",{className:"flex items-start gap-2.5 text-sm",children:[(0,a.jsx)(r.A,{className:"mt-0.5 size-4 shrink-0 text-accent","aria-hidden":!0}),(0,a.jsx)("span",{className:i?"text-ink-muted":"text-foreground/80",children:e})]},e))})}},13203:(e,t,s)=>{"use strict";s.d(t,{C$:()=>u,Gw:()=>c,gu:()=>m,rl:()=>d});var a=s(95155),r=s(52619),n=s.n(r),i=s(15239),l=s(49498),o=s(17505);let c="https://cal.com/heypoppi/15min",d="/decision-intelligence#talk-to-poppi";function m(e){let{className:t,tone:s="auto"}=e;return(0,a.jsx)(n(),{href:"/","aria-label":"".concat(o.RU," home"),className:(0,l.cn)("inline-flex items-center",t),children:(0,a.jsx)(i.default,{src:o.dK,alt:o.RU,width:240,height:59,className:(0,l.cn)("h-8 w-auto"),priority:!0})})}function u(e){let{className:t,bars:s=24}=e;return(0,a.jsx)("div",{className:(0,l.cn)("flex h-8 items-center gap-[3px]",t),"aria-hidden":!0,children:Array.from({length:s}).map((e,t)=>(0,a.jsx)("span",{className:"w-[3px] flex-1 rounded-full bg-current animate-wave",style:{animationDelay:"".concat(t%7*.11,"s"),height:"".concat((25+70*Math.abs(Math.sin(1.7*t))).toFixed(2),"%")}},t))})}},18939:(e,t,s)=>{"use strict";s.d(t,{default:()=>x});var a=s(95155),r=s(12115),n=s(5917),i=s(35299),l=s(17505),o=s(4416),c=s(47769);let d="block rounded-xl border border-border bg-background px-4 py-3 text-sm text-foreground placeholder:text-muted-foreground transition-colors focus:border-accent/60 focus:outline-none focus:ring-2 focus:ring-ring/30",m="".concat(d," w-full"),u="block text-sm font-medium text-foreground/80 mb-2";function x(){let[e,t]=(0,r.useState)(!1),[s,x]=(0,r.useState)(null),[h,g]=(0,r.useState)({firstName:"",lastName:"",company:"",email:"",phone:"",country:"US",message:""}),[p,f]=(0,r.useState)({isSubmitting:!1,isSubmitted:!1,isError:!1,message:""});(0,r.useEffect)(()=>{!async function(){try{let e=await fetch("/api/auth/me",{credentials:"include"});if(e.ok){let t=await e.json();x(t),t.email&&""===h.email&&g(e=>{var s,a;return{...e,email:t.email,firstName:(null==(s=t.name)?void 0:s.split(" ")[0])||e.firstName,lastName:(null==(a=t.name)?void 0:a.split(" ").slice(1).join(" "))||e.lastName}})}}catch(e){console.log("Not authenticated or error checking auth status")}}()},[]);let b=e=>{let{name:t,value:s}=e.target;g(e=>({...e,[t]:s}))},v=async e=>{if(e.preventDefault(),!h.email||!h.firstName||!h.message)return void f({isSubmitting:!1,isSubmitted:!1,isError:!0,message:"Please fill in all required fields."});f({isSubmitting:!0,isSubmitted:!1,isError:!1,message:""});try{var t,a;let e=await fetch("/api/contact",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(h)});if(!e.ok){let t=await e.json();throw Error(t.error||"Network response was not ok")}await e.json(),g({firstName:(null==s||null==(t=s.name)?void 0:t.split(" ")[0])||"",lastName:(null==s||null==(a=s.name)?void 0:a.split(" ").slice(1).join(" "))||"",company:"",email:(null==s?void 0:s.email)||"",phone:"",country:"US",message:""}
1),f({isSubmitting:!1,isSubmitted:!0,isError:!1,message:"Thank you! Your message has been sent successfully."})}catch(e){console.error("Error submitting form:",e),f({isSubmitting:!1,isSubmitted:!1,isError:!0,message:e.message||"There was an error sending your message. Please try again later."})}};return(0,a.jsxs)(o.wn,{id:"contact",tone:"muted",children:[(0,a.jsx)(o.w,{eyebrow:"Get in touch",title:"Let's Connect.",subtitle:"Reach out to our team to learn more about how ".concat(l.RU," can transform your business communications.")}),(0,a.jsx)("div",{className:"mx-auto mt-14 max-w-3xl",children:p.isSubmitted?(0,a.jsxs)("div",{className:"rounded-3xl border border-border bg-card p-10 text-center shadow-card",children:[(0,a.jsx)("span",{className:"mx-auto inline-flex size-12 items-center justify-center rounded-2xl bg-accent/12 text-accent","aria-hidden":!0,children:(0,a.jsx)(n.A,{className:"size-6"})}),(0,a.jsx)("h3",{className:"mt-5 text-2xl font-semibold",children:"Message Sent!"}),(0,a.jsx)("p",{className:"mt-3 text-muted-foreground",children:p.message}),(0,a.jsx)("div",{className:"mt-8 flex justify-center",children:(0,a.jsx)(c.$,{type:"button",variant:"quiet",size:"lg",onClick:()=>f(e=>({...e,isSubmitted:!1})),children:"Send Another Message"})})]}):(0,a.jsxs)("form",{className:"rounded-3xl border border-border bg-card p-6 shadow-card sm:p-9",onSubmit:v,children:[p.isError&&(0,a.jsx)("div",{role:"alert",className:"mb-7 rounded-xl border border-destructive/30 bg-destructive/10 p-4 text-sm text-foreground",children:p.message}),(0,a.jsxs)("div",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2",children:[(0,a.jsxs)("div",{children:[(0,a.jsxs)("label",{htmlFor:"firstName",className:u,children:["First name ",(0,a.jsx)("span",{className:"text-destructive",children:"*"})]}),(0,a.jsx)("input",{id:"firstName",name:"firstName",type:"text",value:h.firstName,onChange:b,autoComplete:"given-name",required:!0,className:m})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{htmlFor:"lastName",className:u,children:"Last name"}),(0,a.jsx)("input",{id:"lastName",name:"lastName",type:"text",value:h.lastName,onChange:b,autoComplete:"family-name",className:m})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{htmlFor:"company",className:u,children:"Company"}),(0,a.jsx)("input",{id:"company",name:"company",type:"text",value:h.company,onChange:b,autoComplete:"organization",className:m})]}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("label",{htmlFor:"email",className:u,children:["Email ",(0,a.jsx)("span",{className:"text-destructive",children:"*"})]}),(0,a.jsx)("input",{id:"email",name:"email",type:"email",value:h.email,onChange:b,autoComplete:"email",required:!0,className:m})]}),(0,a.jsxs)("div",{className:"sm:col-span-2",children:[(0,a.jsx)("label",{htmlFor:"phone",className:u,children:"Phone number"}),(0,a.jsxs)("div",{className:"flex gap-3",children:[(0,a.jsxs)("select",{id:"country",name:"country",value:h.country,onChange:b,autoComplete:"country","aria-label":"Country code",className:"".concat(d," w-24 shrink-0"),children:[(0,a.jsx)("option",{value:"US",children:"US"}),(0,a.jsx)("option",{value:"CA",children:"CA"}),(0,a.jsx)("option",{value:"EU",children:"EU"})]}),(0,a.jsx)("input",{id:"phone",name:"phone",type:"text",placeholder:"(123) 456-7890",value:h.phone,onChange:b,className:"".concat(d," min-w-0 flex-1")})]})]}),(0,a.jsxs)("div",{className:"sm:col-span-2",children:[(0,a.jsxs)("label",{htmlFor:"message",className:u,children:["Message ",(0,a.jsx)("span",{className:"text-destructive",children:"*"})]}),(0,a.jsx)("textarea",{id:"message",name:"message",rows:4,value:h.message,onChange:b,required:!0,placeholder:"Tell us how your calls are handled today — and what you'd like Poppi to cover.",className:"".concat(m," resize-y")})]})]}),(0,a.jsx)("div",{className:"mt-9 flex justify-center",children:(0,a.jsx)(c.$,{type:"submit",variant:"signal",size:"xl",disabled:p.isSubmitting,children:p.isSubmitting?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.A,{className:"animate-spin","aria-hidden":!0}),"Sending..."]}):"Let's Connect"})})]})})]})}},35722:(e,t,s)=>{Promise.resolve().then(s.bind(s,82850)),Promise.resolve().then(s.bind(s,18939)),Promise.resolve().then(s.bind(s,48311)),Promise.resolve().then(s.t.bind(s,52619,23)),Promise.resolve().then(s.t.bind(s,81356,23))},47769:(e,t,s)=>{"use strict";s.d(t,{$:()=>c});var a=s(95155),r=s(12115),n=s(46673),i=s(83101),l=s(49498);let o=(0,i.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium cursor-pointer transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 disabled:cursor-not-allowed [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",signal:"bg-accent text-accent-foreground shadow-signal hover:brightness-110 hover:-translate-y-0.5 transition-all duration-200",ink:"bg-ink text-ink-foreground shadow-card hover:bg-ink/90 hover:-translate-y-0.5 transition-all duration-200",quiet:"border border-border bg-card text-foreground shadow-card hover:border-accent/60 hover:-translate-y-0.5 transition-all duration-200",onInk:"border border-ink-foreground
1/25 bg-ink-foreground/5 text-ink-foreground hover:bg-ink-foreground/15 transition-colors"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",xl:"h-13 rounded-xl px-7 text-base",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),c=r.forwardRef(function(e,t){let{className:s,variant:r,size:i,asChild:c=!1,...d}=e,m=c?n.DX:"button";return(0,a.jsx)(m,{className:(0,l.cn)(o({variant:r,size:i,className:s})),ref:t,...d})})},48311:(e,t,s)=>{"use strict";s.d(t,{default:()=>m});var a=s(95155),r=s(12115),n=s(39142),i=s(96052),l=s(25729),o=s(73694),c=s(47769),d=s(13203);function m(){let e=(0,r.useRef)(null),[t,s]=(0,r.useState)("idle"),m="agent_6ec9dc2325739db6a30d39a2ff",u="connecting"===t||"live"===t;(0,r.useEffect)(()=>{if(!m)return void console.warn("NEXT_PUBLIC_RETELL_VOICE_AGENT_ID is not set");let t=new o.M;return e.current=t,t.on("call_started",()=>s("live")),t.on("call_ended",()=>s("idle")),t.on("error",()=>s("error")),()=>{var t;null==(t=e.current)||t.stopCall(),e.current=null}},[m]);let x=async()=>{if(m&&e.current)try{s("connecting"),await navigator.mediaDevices.getUserMedia({audio:!0});let t=await fetch("/api/retell/create-web-call",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({agentId:m})});if(!t.ok)throw Error("Failed to create voice call session");let a=await t.json(),r=null==a?void 0:a.access_token;if(!r)throw Error("Retell access token missing from create-web-call response");await e.current.startCall({accessToken:r})}catch(e){console.error("Voice call failed:",e),s("error")}},h=async()=>{try{var t;await (null==(t=e.current)?void 0:t.stopCall())}catch(e){console.error("Failed ending voice call:",e)}finally{s("idle")}};return(0,a.jsx)("section",{id:"talk-to-poppi",className:"section-pad surface-ink scroll-mt-24",children:(0,a.jsxs)("div",{className:"container-page grid gap-10 lg:grid-cols-2 lg:items-center",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-xs font-semibold uppercase tracking-[0.18em] text-accent",children:"Live demo"}),(0,a.jsx)("h2",{className:"mt-3 text-3xl font-semibold text-ink-foreground sm:text-4xl md:text-5xl",children:"Don't Watch an AI Demo. Call One."}),(0,a.jsx)("p",{className:"mt-5 max-w-xl text-lg text-ink-muted",children:"Talk to Poppi and experience what your customers could experience when your team can't answer."}),(0,a.jsxs)("div",{className:"mt-8 flex flex-col gap-3 sm:flex-row",children:[("idle"===t||"error"===t)&&(0,a.jsxs)(c.$,{onClick:x,disabled:!m,variant:"signal",size:"xl",children:[(0,a.jsx)(n.A,{className:"size-4"}),"error"===t?"Try Again":"Talk to Poppi"]}),"connecting"===t&&(0,a.jsxs)(c.$,{disabled:!0,variant:"onInk",size:"xl",children:[(0,a.jsx)(i.A,{className:"size-4"}),"Connecting…"]}),"live"===t&&(0,a.jsxs)(c.$,{onClick:h,size:"xl",className:"bg-destructive text-destructive-foreground shadow-lift hover:brightness-110",children:[(0,a.jsx)(l.A,{className:"size-4"}),"End Call"]}),(0,a.jsx)(c.$,{asChild:!0,variant:"onInk",size:"xl",children:(0,a.jsx)("a",{href:d.Gw,target:"_blank",rel:"noopener noreferrer",children:"Book a Demo"})})]}),!m&&(0,a.jsxs)("p",{className:"mt-4 text-sm text-ink-muted",children:["Set ",(0,a.jsx)("code",{children:"NEXT_PUBLIC_RETELL_VOICE_AGENT_ID"})," to enable web calls."]}),"error"===t&&(0,a.jsx)("p",{className:"mt-4 text-sm text-destructive",children:"The call couldn't start. Check your microphone permission and try again."})]}),(0,a.jsxs)("div",{className:"rounded-3xl border border-ink-foreground/10 bg-ink-foreground/5 p-8 text-center",children:[(0,a.jsxs)("span",{className:"relative mx-auto flex size-20 items-center justify-center rounded-full bg-accent text-accent-foreground",children:[u&&(0,a.jsx)("span",{className:"absolute inset-0 rounded-full bg-accent/40 animate-pulse-ring","aria-hidden":!0}),(0,a.jsx)(i.A,{className:"relative size-8","aria-hidden":!0})]}),(0,a.jsx)("p",{className:"mt-6 font-display text-2xl font-semibold text-ink-foreground",children:"live"===t?"Poppi is listening.":"connecting"===t?"Connecting you to Poppi…":"Poppi is ready when you are."}),u?(0,a.jsx)(d.C$,{className:"mx-auto mt-5 max-w-sm text-accent",bars:36}):(0,a.jsx)(d.C$,{className:"mx-auto mt-5 max-w-sm text-accent/40",bars:36})]})]})})}},49498:(e,t,s)=>{"use strict";s.d(t,{cn:()=>n});var a=s(2821),r=s(75889);function n(){for(var e=arguments.length,t=Array(e),s=0;s<e;s++)t[s]=arguments[s];return(0,r.QP)((0,a.$)(t))}}},e=>{e.O(0,[7501,1356,2619,9805,1162,2850,8441,1255,7358],()=>e(e.s=35722)),_N_E=e.O()}]);

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.