{"version":3,"file":"CustomEventBookADemo.CNH9vCUI.mjs","names":[],"sources":["https:/framerusercontent.com/modules/p0edI8xTmcxWlkUBKodJ/89DDAD8YleKUqiQMsYiH/CustomEventBookADemo.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useTracking}from\"framer\";import{forwardRef}from\"react\";export function withClickTracking(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const track=useTracking();const onClick=event=>{// Keep your existing Framer tracking\ntrack(\"hero-cta-primary\");// Fire Plausible event if tracker is available on the page\nif(typeof window!==\"undefined\"&&typeof window.plausible===\"function\"){window.plausible(\"cta-book-demo\",{props:{source:\"framer-native\"}});}// Preserve any existing onClick passed into the wrapped component\nprops?.onClick?.(event);};return /*#__PURE__*/_jsx(Component,{ref:ref,...props,onClick:onClick});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withClickTracking\":{\"type\":\"reactHoc\",\"name\":\"withClickTracking\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CustomEventBookADemo.map"],"mappings":"mLAAyG,SAAgB,EAAkB,EAAU,CAAC,OAAoB,GAAY,EAAM,IAAM,CAAC,IAAM,EAAM,EAAY,EAAQ,EAAQ,GAAO,CAClP,EAAM,kBAAkB,EACd,IAAS,QAAa,OAAO,EAAO,WAAY,YAAY,EAAO,UAAU,gBAAgB,CAAC,MAAM,CAAC,OAAO,eAAe,CAAC,CAAC,EACvI,GAAO,UAAU,CAAK,CAAE,EAAE,OAAoB,EAAK,EAAU,CAAK,MAAI,GAAG,EAAc,SAAO,CAAC,CAAE,CAAC,CAAE,qBAH1D,IAAgC,IAA8B"}