PageSourceSearch

https://www.revenue-reimagined.com/assets/FoundationsReport-BM5qSevs.js

js revenue-reimagined.com collected 2026-10-02 14:40:24 UTC 5,155 bytes, 1 lines download raw bytes

1import{j as e,m as g,I as h,k as v,r as m,N as y,S as j,C as x,H as w,L as N,f as F,g as S}from"./index-DjJZH9qg.js";function R({formData:a,formStatus:s,formMessage:i,onChange:r,onSubmit:t}){return e.jsxs("div",{className:"bg-[var(--color-navy)]/85 rounded-2xl border border-white/20 p-8 md:p-10 w-full max-w-[480px]",children:[e.jsx("h3",{className:"text-[var(--color-white)] font-display text-[24px] font-semibold mb-2",children:"Get Your GTM Foundations Report"}),e.jsx("p",{className:"text-[var(--color-cloud)]/70 text-sm mb-8",children:"Receive a customized analysis of your growth engine."}),e.jsxs("form",{className:"flex flex-col gap-5",onSubmit:t,children:[e.jsxs("div",{className:"flex flex-col md:flex-row gap-5",children:[e.jsx(d,{id:"firstName",label:"First Name",type:"text",placeholder:"Adam",value:a.firstName,onChange:r,disabled:s==="submitting"}),e.jsx(d,{id:"lastName",label:"Last Name",type:"text",placeholder:"Smith",value:a.lastName,onChange:r,disabled:s==="submitting"})]}),e.jsx(d,{id:"email",label:"Company Email",type:"email",placeholder:"[email protected]",value:a.email,onChange:r,disabled:s==="submitting"}),e.jsx(d,{id:"website",label:"Website URL",type:"text",placeholder:"https://company.com",value:a.website,onChange:r,disabled:s==="submitting"}),i&&e.jsx(g.div,{role:"status","aria-live":"polite",initial:{opacity:0,y:-10},animate:{opacity:1,y:0},className:`p-3 rounded-lg text-sm font-medium ${s==="success"?"bg-[var(--color-signal)]/10 text-[var(--color-signal)] border border-[var(--color-signal)]/30":"bg-red-500/10 text-red-400 border border-red-500/20"}`,children:i}),e.jsxs("button",{type:"submit",disabled:s==="submitting",className:"mt-4 w-full h-12 bg-[var(--color-signal)] hover:opacity-90 text-[var(--color-navy)] font-sans font-bold rounded-[4px] transition-all duration-200 flex items-center justify-center gap-2 cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed",children:[s==="submitting"?"Sending...":"Get Your GTM Foundations",e.jsx(h,{name:s==="submitting"?"hourglass_empty":"arrow_forward",size:18})]})]})]})}function d({id:a,label:s,type:i,placeholder:r,value:t,onChange:c,disabled:o}){return e.jsxs("div",{className:"flex flex-col gap-1.5 flex-1",children:[e.jsx("label",{htmlFor:a,className:"text-[var(--color-cloud)]/70 font-sans text-[14px] font-bold uppercase tracking-wide",children:s}),e.jsx("input",{type:i,id:a,name:a,value:t,onChange:c,placeholder:r,required:!0,disabled:o,className:"w-full h-11 px-4 rounded-lg border border-white/20 bg-white/[0.04] text-[var(--color-white)] font-sans text-[16px] focus-visible:border-[var(--color-signal)]/60 focus-visible:bg-white/[0.06] transition-all duration-200 placeholder:text-[var(--color-cloud)]/40 disabled:opacity-50 disabled:cursor-not-allowed"})]})}function k(){const a=v(),[s,i]=m.useState({firstName:"",lastName:"",email:"",website:""}),[r,t]=m.useState("idle"),[c,o]=m.useState(""),p=async n=>{if(n.preventDefault(),t("submitting"),o(""),!s.firstName||!s.lastName||!s.email||!s.website){t("error"),o("Please fill in all fields"),a.trackFormSubmit("GTM Foundations Report",!1,{error:"Missing fields"});return}if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(s.email)){t("error"),o("Please enter a valid email address"),a.trackFormSubmit("GTM Foundations Report",!1,{error:"Invalid email"});return}try{const l=await fetch("/api/submit-form",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)}),f=await l.json();if(!l.ok)throw new Error(f.error||"Submission failed");t("success"),o("Thank you! We'll review your analysis and send your GTM Foundations Report to your email."),a.trackFormSubmit("GTM Foundations Report",!0,{location:"foundations-report-page"}),i({firstName:"",lastName:"",email:"",website:""})}catch(l){t("error"),o(l instanceof Error?l.message:"Something went wrong. Please try again."),a.trackFormSubmit("GTM Foundations Report",!1,{error:"Submission failed"})}},b=n=>{i(u=>({...u,[n.target.name]:n.target.value}))};return e.jsxs("div",{className:"overflow-x-hidden antialiased",children:[e.jsx(y,{}),e.jsxs(j,{surface:"dark",padding:"xl",id:"foundations-report-hero",className:"relative overflow-hidden",children:[e.jsx("div",{className:"absolute inset-0 grid-pattern opacity-40 pointer-events-none"}),e.jsx("div",{className:"absolute top-0 -left-[10%] w-[600px] h-[600px] bg-[var(--color-slate)] rounded-full blur-[200px] opacity-15 pointer-events-none"}),e.jsx(x,{className:"relative z-10",children:e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12 lg:gap-20 items-center",children:[e.jsxs("div",{className:"flex flex-col gap-5 text-center lg:text-left",children:[e.jsx(w,{tone:"inverse",className:"text-4xl lg:text-6xl",children:"See where your GTM stands."}),e.jsx(N,{tone:"inverse",children:"We'll send you a customized report on your value proposition, ICP, buyer personas, and where revenue is leaking. Tell us where to send it."})]}),e.jsx("div",{className:"flex justify-center lg:justify-end",children:e.jsx(R,{formData:s,formStatus:r,formMessage:c,onChange:b,onSubmit:p})})]})})]}),e.jsx(x,{children:e.jsx(F,{iso:"2026-05-13"})}),e.jsx(S,{})]})}
1export{k 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.