{"version":3,"file":"Track_Discord_Button.aVj3TPoF.mjs","names":[],"sources":["https:/framerusercontent.com/modules/HG0DA83L5fAPtfEver4f/zxBgY7Ep4kIeWV1mxnfm/Track_Discord_Button.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(\"Clicked Join Discord\",{$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=./Track_Discord_Button.map"],"mappings":"kHAA2C,SAAgB,EAAkB,EAAU,CAAC,MAAO,IAAO,CAAC,IAAM,MAAgB,CAC9D,IAAM,EAApD,SAAS,cAAc,sBAAsB,EAAyB,MACpF,GAAO,EAAO,QAAQ,SAAS,EAAM,CACxC,EAAO,QAAQ,QAAQ,uBAAuB,CAAC,UAAU,CAAC,wBAAwB,GAAK,CAAC,CAAC,EAAG,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAM,GAAG,iBAAiB,QAAQ,EAAY,CAAC,uBAHvI"}