{"version":3,"file":"IdentifyPostHog.CDbeXkgr.mjs","names":[],"sources":["https:/framerusercontent.com/modules/2LsEzaaONkifceXvuCIR/p2rcyXlH8FsLZkVAZvei/IdentifyPostHog.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";export function withCaptureButton(Component){return props=>{const handleClick=()=>{// Get email first\nconst emailInput=document.querySelector('input[type=\"email\"]');const email=emailInput?.value;// Identify if we have email\nif(email){window.posthog.identify(email);}// Keep the existing working capture\nwindow.posthog.capture(\"Joined Waitlist Button\",{$set_once:{clicked_homepage_button:true}});};return /*#__PURE__*/_jsx(Component,{...props,id:\"capture-button\",onClick:handleClick});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withCaptureButton\":{\"type\":\"reactHoc\",\"name\":\"withCaptureButton\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./IdentifyPostHog.map"],"mappings":"kKAA2C,SAAgB,EAAkB,EAAU,CAAC,MAAO,CAAA,GAAO,CAAC,IAAM,EAAY,IAAI,CAC7H,IAAM,EAAW,SAAS,cAAc,sBAAsB,CAAO,EAAM,GAAY,MAEvF,AADG,GAAO,EAAO,QAAQ,SAAS,EAAM,CACxC,EAAO,QAAQ,QAAQ,yBAAyB,CAAC,UAAU,CAAC,yBAAwB,CAAK,CAAC,EAAC,AAAE,EAAC,MAAoB,GAAK,EAAU,CAAC,GAAG,EAAM,GAAG,iBAAiB,QAAQ,CAAY,EAAC,AAAE,CAAE,cAHxL,IAAA,GAA2C"}