{"version":3,"file":"Examples.BrD6lpRJ.mjs","names":[],"sources":["https:/framerusercontent.com/modules/djqlRKkDy2dQgrWcaECh/jCy0lsJ1fp8xrMyfWy1a/Examples.js"],"sourcesContent":["// withGoogleAdConversion.tsx\nimport{jsx as _jsx}from\"react/jsx-runtime\";/**\n * Call this whenever you want to report a Google Ads conversion.\n * If you pass a URL it will redirect there after reporting.\n */export function gtag_report_conversion(url){const callback=()=>{if(typeof url!==\"undefined\"){window.location.href=url;}};// @ts-ignore\ngtag(\"event\",\"conversion\",{send_to:\"AW-16888035958/8KGICLiUg_saEPb06_Q-\",event_callback:callback});return false;}/**\n * A higher‑order component that injects your conversion call\n * into the onClick of any wrapped component.\n *\n * Usage in Framer:\n *   import { withGoogleAdConversion } from \"./withGoogleAdConversion\"\n *   const MyButton = withGoogleAdConversion(Button)\n *   // then drag a Code component onto the canvas and set its component={MyButton}\n */export function withGoogleAdConversion(WrappedComponent){return props=>{// Preserve any existing onClick\nconst{onClick,...rest}=props;const handleClick=event=>{// First fire your conversion\ngtag_report_conversion(window.location.href);// Then call the original onClick, if provided\nif(typeof onClick===\"function\"){onClick(event);}};return /*#__PURE__*/_jsx(WrappedComponent,{...rest,onClick:handleClick});};}\nexport const __FramerMetadata__ = {\"exports\":{\"gtag_report_conversion\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withGoogleAdConversion\":{\"type\":\"reactHoc\",\"name\":\"withGoogleAdConversion\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Examples.map"],"mappings":"kKAIG,SAAgB,EAAuB,EAAI,CAAC,IAAM,EAAS,IAAI,CAAC,AAAU,aAAmB,EAAO,SAAS,KAAK,EAAM,EACxB,MAAnG,MAAK,QAAQ,aAAa,CAAC,QAAQ,sCAAsC,eAAe,CAAS,EAAC,EAAQ,CAAO,CAQ9G,SAAgB,EAAuB,EAAiB,CAAC,MAAO,CAAA,GAAO,CAC1E,GAAK,CAAC,UAAQ,GAAG,EAAK,CAAC,EAAY,EAAY,GAAO,CAEtD,AADA,EAAuB,EAAO,SAAS,KAAK,QAClC,GAAU,YAAY,EAAQ,EAAM,AAAG,EAAC,MAAoB,GAAK,EAAiB,CAAC,GAAG,EAAK,QAAQ,CAAY,EAAC,AAAE,CAAE,cAf9H,IAAA,GAA2C"}