{"version":3,"file":"Posthog.DHiIOXJF.mjs","names":[],"sources":["https:/framerusercontent.com/modules/8VSkSXflCIOlKnIWVcQF/vAnPa6ZVNIuvO5AfK4TN/Posthog.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef}from\"react\";function withPostHogTracking(Component,eventName,section){return /*#__PURE__*/forwardRef((props,ref)=>{return /*#__PURE__*/_jsx(Component,{ref:ref,...props,onClick:e=>{// ✅ Send event to PostHog with route (current page) and section\nif(typeof window!==\"undefined\"&&window.posthog){window.posthog.capture(eventName,{section:section,page:window.location.pathname});}// 👉 Also call the original onClick if it exists\nif(props.onClick)props.onClick(e);}});});}// 🧩 HOC to track clicks in the Nav section\nexport function withNav(Component){return withPostHogTracking(Component,\"clicked_cta_nav\",\"nav\");}// 🧩 HOC to track clicks in the Hero section\nexport function withHero(Component){return withPostHogTracking(Component,\"clicked_cta_hero\",\"hero\");}// 🧩 HOC to track clicks in the Testimonial section\nexport function withTestimonial(Component){return withPostHogTracking(Component,\"clicked_cta_testimonial\",\"testimonial\");}// 🧩 HOC to track clicks in the Pricing section\nexport function withPricing(Component){return withPostHogTracking(Component,\"clicked_cta_pricing\",\"pricing\");}// 🧩 HOC to track clicks in the Footer section\nexport function withFooter(Component){return withPostHogTracking(Component,\"clicked_cta_footer\",\"footer\");}// 🧩 HOC to track clicks in the What we do section\nexport function withWhatWeDo(Component){return withPostHogTracking(Component,\"clicked_case_studies_what_we_do\",\"what_we_do\");}// 🧩 HOC to track clicks in the What we do section\nexport function withWhyDifferent(Component){return withPostHogTracking(Component,\"clicked_case_studies_why_different\",\"why_different\");}\nexport const __FramerMetadata__ = {\"exports\":{\"withHero\":{\"type\":\"reactHoc\",\"name\":\"withHero\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withNav\":{\"type\":\"reactHoc\",\"name\":\"withNav\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withWhyDifferent\":{\"type\":\"reactHoc\",\"name\":\"withWhyDifferent\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withFooter\":{\"type\":\"reactHoc\",\"name\":\"withFooter\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withPricing\":{\"type\":\"reactHoc\",\"name\":\"withPricing\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withTestimonial\":{\"type\":\"reactHoc\",\"name\":\"withTestimonial\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withWhatWeDo\":{\"type\":\"reactHoc\",\"name\":\"withWhatWeDo\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Posthog.map"],"mappings":"2HAAyE,SAAS,EAAoB,EAAU,EAAU,EAAQ,CAAC,OAAoB,GAAY,EAAM,IAA2B,EAAK,EAAU,CAAK,MAAI,GAAG,EAAM,QAAQ,GAAG,CACtO,IAAS,QAAa,EAAO,SAAS,EAAO,QAAQ,QAAQ,EAAU,CAAS,UAAQ,KAAK,EAAO,SAAS,SAAS,CAAC,CAC9H,EAAM,SAAQ,EAAM,QAAQ,EAAE,EAAG,CAAC,CAAG,CACxC,SAAgB,EAAQ,EAAU,CAAC,OAAO,EAAoB,EAAU,kBAAkB,MAAM,CAChG,SAAgB,EAAS,EAAU,CAAC,OAAO,EAAoB,EAAU,mBAAmB,OAAO,CAGnG,SAAgB,EAAW,EAAU,CAAC,OAAO,EAAoB,EAAU,qBAAqB,SAAS,CACzG,SAAgB,EAAa,EAAU,CAAC,OAAO,EAAoB,EAAU,kCAAkC,aAAa,CAC5H,SAAgB,EAAiB,EAAU,CAAC,OAAO,EAAoB,EAAU,qCAAqC,gBAAgB,sBAT3F,IAA8B"}