{"version":3,"file":"Examples.CS_4D0sB.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":"kHAIG,SAAgB,EAAuB,EAAI,CACqD,OAAnG,KAAK,QAAQ,aAAa,CAAC,QAAQ,sCAAsC,mBADP,CAAW,IAAM,SAAa,EAAO,SAAS,KAAK,IACpB,CAAC,CAAQ,GAQvG,SAAgB,EAAuB,EAAiB,CAAC,MAAO,IAAO,CAC1E,GAAK,CAAC,UAAQ,GAAG,GAAM,EAAY,EAAY,GAAO,CACtD,EAAuB,EAAO,SAAS,KAAK,CACzC,OAAO,GAAU,YAAY,EAAQ,EAAM,EAAI,OAAoB,EAAK,EAAiB,CAAC,GAAG,EAAK,QAAQ,EAAY,CAAC,uBAf/E"}