1import{a as r,j as e}from"./vendor-react-Bz_ZsvSD.js";import{u as d}from"./vendor-wouter-B0CVBZTb.js";import{b as x,P as h,N as p,a as f,j as u}from"./index-CnUkSChN.js";import"./vendor-framer-Be2PyxnT.js";function b(){const[c,l]=r.useState(!1),[,o]=d(),s=(()=>{try{return new URLSearchParams(window.location.search).get("email")??""}catch{return""}})(),m=(()=>{const a="https://meetings-ap1.hubspot.com/cor/obi-demo?embed=true";return s?`${a}&email=${encodeURIComponent(s)}`:a})();return r.useEffect(()=>{if(s)try{sessionStorage.setItem("demo_prefill_email",decodeURIComponent(s))}catch{}},[s]),r.useEffect(()=>{const a=document.querySelector('script[src="https://static.hsappstatic.net/MeetingsEmbed/ex/MeetingsEmbedCode.js"]');a&&a.remove();const t=document.createElement("script");t.src="https://static.hsappstatic.net/MeetingsEmbed/ex/MeetingsEmbedCode.js",t.type="text/javascript",t.async=!0,t.onerror=()=>l(!0),document.head.appendChild(t);const i=n=>{if(typeof n.origin!="string"||!n.origin.endsWith("hubspot.com"))return;n.data?.meetingBookSucceeded&&(u("demo_slot_booked",{action:"meeting_booked",calendar:"hubspot",meeting_link:"cor/obi-demo"}),o("/v2/book-a-demo/thank-you"))};return window.addEventListener("message",i),()=>{window.removeEventListener("message",i),t.remove()}},[o]),c?e.jsxs("div",{className:"min-h-[500px] flex flex-col items-center justify-center gap-4 px-8",children:[e.jsx("p",{className:"text-black/60 text-sm font-['Inter_Display'] text-center",children:"The calendar couldn't load. Please try refreshing the page."}),e.jsx("a",{href:"https://meetings-ap1.hubspot.com/cor/obi-demo",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 bg-[#9400FF] hover:bg-purple-700 text-white px-6 py-3 text-sm font-['Inter_Display'] font-medium transition-colors",children:"Open calendar in new tab"})]}):e.jsx("div",{className:"meetings-iframe-container w-full [&>iframe]:min-h-[650px] [&>iframe]:w-full [&>iframe]:border-0","data-src":m})}function k(){return r.useEffect(()=>{x("schedule_page_view",{label:"Demo schedule page reached (v2)",li_conversion_id:0,meta_event:"Lead"})},[]),e.jsxs("div",{className:"home-v2 min-h-screen flex flex-col bg-white",children:[e.jsx(h,{path:"/book-a-demo/schedule"}),e.jsx(p,{}),e.jsx("main",{className:"flex-1",children:e.jsxs("div",{className:"md:mx-14 md:border-x border-zinc-300",children:[e.jsx("div",{className:"bg-white border-b border-zinc-300",children:e.jsxs("div",{className:"w-full max-w-3xl mx-auto px-6 md:px-8 py-8 flex flex-col justify-center items-center gap-4",children:[e.jsx("h1",{className:"self-stretch text-center text-black text-2xl md:text-4xl font-medium font-['Inter_Display'] leading-tight",children:"Pick a time that works for you"}),e.jsx("p",{className:"self-stretch text-center text-neutral-600 text-base md:text-lg font-normal font-['Inter_Display'] leading-7",children:"Choose a convenient slot and we'll walk you through how Cor can help your team."})]})}),e.jsx("div",{className:"bg-neutral-50 border-b border-zinc-300",children:e.jsx(b,{})}),e.jsx("div",{className:"bg-white py-6 flex justify-center items-center px-6",children:e.jsxs("p",{className:"text-sm font-normal font-['Inter_Display'] text-black/40 text-center",children:["Can't find a time that works? Reach out to"," ",e.jsx("a",{href:"mailto:[email protected]",className:"text-black/60 underline hover:text-black transition-colors",children:"[email protected]"})]})}),e.jsx(f,{})]})})]})}export{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.