{"version":3,"file":"CustomEventBookADemo.DZ8ZzvbC.mjs","names":[],"sources":["https:/framerusercontent.com/modules/p0edI8xTmcxWlkUBKodJ/AOJcBR05qEKAs0yfiF5z/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,GAAa,CAAO,EAAQ,GAAO,CAClP,EAAM,mBAAmB,CACf,IAAS,QAAa,OAAO,EAAO,WAAY,YAAY,EAAO,UAAU,gBAAgB,CAAC,MAAM,CAAC,OAAO,gBAAgB,CAAC,CAAC,CACxI,GAAO,UAAU,EAAM,EAAG,OAAoB,EAAK,EAAU,CAAK,MAAI,GAAG,EAAc,UAAQ,CAAC,EAAG,sBAHxD,IAAgC,IAA8B"}