{"version":3,"file":"withGA4ClickTracking.CP6nMCmp.mjs","names":[],"sources":["https:/framerusercontent.com/modules/fDjQ2q8oYFuJxGeCNg7n/yYAo7MU91jQ2oonMhkfh/withGA4ClickTracking.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef}from\"react\";export function withGA4ClickTracking(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const handleClick=event=>{const element=event.currentTarget;const buttonId=element.id||element.closest(\"[id]\")?.id||\"unknown\";if(typeof window!==\"undefined\"&&window.gtag){window.gtag(\"event\",\"button_click\",{button_id:buttonId,button_text:element.textContent?.trim(),page_location:window.location.href});}else{console.warn(\"GA4 gtag not available\");}props?.onClick?.(event);};return /*#__PURE__*/_jsx(Component,{ref:ref,...props,onClick:handleClick});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withGA4ClickTracking\":{\"type\":\"reactHoc\",\"name\":\"withGA4ClickTracking\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./withGA4ClickTracking.map"],"mappings":"gIAAyE,SAAgB,EAAqB,EAAU,CAAC,OAAoB,GAAY,EAAM,IAAM,CAAC,IAAM,EAAY,GAAO,CAAC,IAAM,EAAQ,EAAM,cAAoB,EAAS,EAAQ,IAAI,EAAQ,QAAQ,MAAM,CAAC,EAAE,IAAI,UAAoB,IAAS,QAAa,EAAO,KAAM,EAAO,KAAK,QAAQ,eAAe,CAAC,UAAU,EAAS,YAAY,EAAQ,aAAa,KAAK,EAAE,cAAc,EAAO,SAAS,IAAI,CAAC,EAAQ,QAAQ,KAAK,wBAAwB,EAAG,GAAO,UAAU,CAAK,CAAE,EAAE,OAAoB,EAAK,EAAU,CAAK,MAAI,GAAG,EAAM,QAAQ,CAAW,CAAC,CAAE,CAAC,CAAE,qBAAjkB,IAA8B"}