{"version":3,"file":"PosthogEvent.D34f2oiM.mjs","names":[],"sources":["https:/framerusercontent.com/modules/n8Q2e0H7ZFI9GhaJj43T/0LpL4nIsy1vVziCvkxjj/PosthogEvent.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";// Generic override — customize event name + properties per button\nexport function withPostHogTrack(Component,{eventName=\"button_clicked\",properties={}}={}){return props=>{const handleClick=e=>{props.onClick?.(e);if(typeof window!==\"undefined\"&&window.posthog){window.posthog.capture(eventName,{page:window.location.pathname,...properties});}if(typeof window!==\"undefined\"&&window.fbq){window.fbq(\"track\",eventName,{page:window.location.pathname,...properties});}};return /*#__PURE__*/_jsx(Component,{...props,onClick:handleClick});};}// Pre-built overrides you can apply directly to buttons in Framer\nexport function trackGetStartedClick(Component){return withPostHogTrack(Component,{eventName:\"dashboard_cta_clicked\",properties:{position:\"hero\"}});}export function trackDashboardClick(Component){return withPostHogTrack(Component,{eventName:\"dashboard_cta_clicked\",properties:{position:\"menu\"}});}export function trackContactClick(Component){return withPostHogTrack(Component,{eventName:\"sales_cta_clicked\",properties:{position:\"menu\"}});}export function trackExpertClick(Component){return withPostHogTrack(Component,{eventName:\"sales_cta_clicked\",properties:{position:\"botton_section\"}});}export function trackGithubStarsClick(Component){return withPostHogTrack(Component,{eventName:\"github_clicked\",properties:{position:\"menu\"}});}\nexport const __FramerMetadata__ = {\"exports\":{\"trackContactClick\":{\"type\":\"reactHoc\",\"name\":\"trackContactClick\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"trackGithubStarsClick\":{\"type\":\"reactHoc\",\"name\":\"trackGithubStarsClick\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"trackDashboardClick\":{\"type\":\"reactHoc\",\"name\":\"trackDashboardClick\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withPostHogTrack\":{\"type\":\"reactHoc\",\"name\":\"withPostHogTrack\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"trackExpertClick\":{\"type\":\"reactHoc\",\"name\":\"trackExpertClick\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"trackGetStartedClick\":{\"type\":\"reactHoc\",\"name\":\"trackGetStartedClick\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PosthogEvent.map"],"mappings":"kHACA,SAAgB,EAAiB,EAAU,CAAC,YAAU,iBAAiB,aAAW,EAAE,EAAE,EAAE,CAAC,CAAC,MAAO,IAAO,CAAC,IAAM,EAAY,GAAG,CAAC,EAAM,UAAU,EAAE,CAAW,IAAS,QAAa,EAAO,SAAS,EAAO,QAAQ,QAAQ,EAAU,CAAC,KAAK,EAAO,SAAS,SAAS,GAAG,EAAW,CAAC,CAAY,IAAS,QAAa,EAAO,KAAK,EAAO,IAAI,QAAQ,EAAU,CAAC,KAAK,EAAO,SAAS,SAAS,GAAG,EAAW,CAAC,EAAI,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAM,QAAQ,EAAY,CAAC,EAChd,SAAgB,EAAqB,EAAU,CAAC,OAAO,EAAiB,EAAU,CAAC,UAAU,wBAAwB,WAAW,CAAC,SAAS,OAAO,CAAC,CAAC,CAAE,SAAgB,EAAoB,EAAU,CAAC,OAAO,EAAiB,EAAU,CAAC,UAAU,wBAAwB,WAAW,CAAC,SAAS,OAAO,CAAC,CAAC,CAAE,SAAgB,EAAkB,EAAU,CAAC,OAAO,EAAiB,EAAU,CAAC,UAAU,oBAAoB,WAAW,CAAC,SAAS,OAAO,CAAC,CAAC,CAAE,SAAgB,EAAiB,EAAU,CAAC,OAAO,EAAiB,EAAU,CAAC,UAAU,oBAAoB,WAAW,CAAC,SAAS,iBAAiB,CAAC,CAAC,CAAE,SAAgB,EAAsB,EAAU,CAAC,OAAO,EAAiB,EAAU,CAAC,UAAU,iBAAiB,WAAW,CAAC,SAAS,OAAO,CAAC,CAAC,sBAFhrB"}