1const o=()=>{try{const t=localStorage.getItem("cookieConsent");if(!t)return{analytics:!1,marketing:!1};const{preferences:n,timestamp:e}=JSON.parse(t),a=new Date;return a.setMonth(a.getMonth()-13),!e||new Date(e)<a?{analytics:!1,marketing:!1}:{analytics:!!n?.analytics,marketing:!!n?.marketing}}catch{return{analytics:!1,marketing:!1}}};let f=!1;const _=()=>{f||typeof window.gtag!="function"||!window._ga4Id||(window.gtag("config",window._ga4Id,{send_page_view:!1}),f=!0)},i=(t,n={})=>{typeof window.gtag=="function"&&(_(),window.gtag("event",t,n))},s=(t,n={})=>{Array.isArray(window._hsq)&&window._hsq.push(["trackCustomBehavioralEvent",{name:t,properties:n}])},c=(t,n={})=>{Array.isArray(window._hsq)&&window._hsq.push(["identify",{email:t,...n}])},u=t=>{o().analytics&&i("page_view",{page_path:t,page_location:typeof window<"u"?window.location.href:void 0,page_title:typeof document<"u"?document.title:void 0})},w=(t="unknown")=>{o().analytics&&i("login",{method:t})},d=(t="unknown")=>{o().analytics&&i("sign_up",{method:t})},l=(t,n={},e="analytics")=>{o()[e]&&(i(t,n),e==="marketing"&&s(t,n))},k=(t="")=>{const n=o();n.analytics&&i("hero_cta_click",{has_email:!!t,event_category:"engagement"}),n.marketing&&t&&(c(t),s("hero_cta_click",{email:t}))},y=(t="unknown")=>{l("contact_sales_open",{source:t,event_category:"engagement"})},p=({email:t,company:n,companySize:e,inquiryReason:a,meetingScheduled:r}={})=>{const g=o();g.analytics&&i("contact_sales_submit",{company_size:e,inquiry_reason:a,meeting_scheduled:r,event_category:"conversion"}),g.marketing&&t&&(c(t,{company:n}),s("contact_sales_submit",{company_size:e,inquiry_reason:a,meeting_scheduled:String(r)}))},m=({email:t,company:n}={})=>{const e=o();e.analytics&&i("demo_booked",{event_category:"conversion",value:1}),e.marketing&&t&&(c(t,{company:n}),s("demo_booked",{}))},h=t=>{typeof window.gtag=="function"&&window.gtag("event","cookie_consent",{action:t,event_category:"compliance"})};export{k as a,d as b,w as c,p as d,m as e,h as f,u as g,y as t}; 2//# sourceMappingURL=analyticsService-DbXT6BWc.js.map
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.