{"version":3,"file":"PosthogEvent.Cmt5W0Jv.mjs","names":[],"sources":["https:/framerusercontent.com/modules/ebnKqLMo8lhe8821JZfD/ANjYGZVytE3zq6XrGd0M/PSIe2P8yb.js","https:/framerusercontent.com/modules/n8Q2e0H7ZFI9GhaJj43T/TveDXpWqVh5hweZvZgrx/PosthogEvent.js"],"sourcesContent":["// Generated by Framer (6ca5d98)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,cx,motion,withCSS}from\"framer\";import*as React from\"react\";import{forwardRef}from\"react\";const mask='url(\\'data:image/svg+xml,<svg display=\"block\" role=\"presentation\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M 0 18 L 7.5 10.5 M 10.5 7.5 L 18 0 M 5 0 L 0 0 L 13 18 L 18 18 Z\" fill=\"transparent\" height=\"18px\" id=\"KD49WOeur\" stroke-dasharray=\"\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" stroke=\"var(--1df8v9o, rgb(0,0,0))\" transform=\"translate(3 3)\" width=\"18px\"/></svg>\\') alpha no-repeat center / auto var(--framer-icon-mask-mode, add), var(--framer-icon-mask, none)';const SVG=/*#__PURE__*/forwardRef((props,ref)=>{const{animated,layoutId,children,...rest}=props;return animated?/*#__PURE__*/_jsx(motion.div,{...rest,layoutId:layoutId,ref:ref}):/*#__PURE__*/_jsx(\"div\",{...rest,ref:ref});});const getProps=({height,id,stroke,width,...props})=>{return{...props,n2nHSaXfp:stroke??props.n2nHSaXfp??\"rgb(0, 0, 0)\"};};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const{style,className,layoutId,variant,n2nHSaXfp,...restProps}=getProps(props);return /*#__PURE__*/_jsx(SVG,{...restProps,className:cx(\"framer-A2QNA\",className),layoutId:layoutId,ref:ref,style:{\"--1df8v9o\":n2nHSaXfp,...style}});});const css=[`.framer-A2QNA { -webkit-mask: ${mask}; aspect-ratio: 1; background-color: var(--1df8v9o); mask: ${mask}; width: 24px; }`];/**\n * This is a generated Framer component.\n * @framerIntrinsicWidth 24\n * @framerIntrinsicHeight 24\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n * @framerVariables {\"n2nHSaXfp\":\"stroke\"}\n * @framerImmutableVariables true\n * @framerVector {\"name\":\"X\",\"color\":{\"type\":\"variable\",\"value\":\"1df8v9o\"},\"set\":{\"localId\":\"vectorSet/yXo17f3GZ\",\"id\":\"yXo17f3GZ\",\"moduleId\":\"eO37kitVCMcNEgHMGd3K\"}}\n * @framerDisableUnlink true\n */const Icon=withCSS(Component,css,\"framer-A2QNA\");Icon.displayName=\"X\";export default Icon;addPropertyControls(Icon,{n2nHSaXfp:{defaultValue:\"rgb(0, 0, 0)\",hidden:false,title:\"Stroke\",type:ControlType.Color}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Icon\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerVector\":\"{\\\"name\\\":\\\"X\\\",\\\"color\\\":{\\\"type\\\":\\\"variable\\\",\\\"value\\\":\\\"1df8v9o\\\"},\\\"set\\\":{\\\"localId\\\":\\\"vectorSet/yXo17f3GZ\\\",\\\"id\\\":\\\"yXo17f3GZ\\\",\\\"moduleId\\\":\\\"eO37kitVCMcNEgHMGd3K\\\"}}\",\"framerImmutableVariables\":\"true\",\"framerIntrinsicHeight\":\"24\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerIntrinsicWidth\":\"24\",\"framerVariables\":\"{\\\"n2nHSaXfp\\\":\\\"stroke\\\"}\",\"framerDisableUnlink\":\"true\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","import{jsx as _jsx}from\"react/jsx-runtime\";// Generic override — customize event name + properties per button\nexport function withPostHogTrack(Component,{eventName=\"button_clicked\",properties={}}={}){return props=>{const handleClick=e=>{props.onClick?.(e);if(typeof window!==\"undefined\"&&window.posthog){window.posthog.capture(eventName,{page:window.location.pathname,...properties});}if(typeof window!==\"undefined\"&&window.fbq){window.fbq(\"track\",eventName,{page:window.location.pathname,...properties});}};return /*#__PURE__*/_jsx(Component,{...props,onClick:handleClick});};}// Pre-built overrides you can apply directly to buttons in Framer\nexport function trackDemoClick(Component){return withPostHogTrack(Component,{eventName:\"cta_clicked\",properties:{cta:\"hero_get_a_demo\"}});}export function trackContactClick(Component){return withPostHogTrack(Component,{eventName:\"cta_clicked\",properties:{cta:\"menu_contact\"}});}export function trackExpertClick(Component){return withPostHogTrack(Component,{eventName:\"cta_clicked\",properties:{cta:\"botton_talk_to_expert\"}});}export function trackGithubStarsClick(Component){return withPostHogTrack(Component,{eventName:\"github_clicked\",properties:{cta:\"menu_stars\"}});}\nexport const __FramerMetadata__ = {\"exports\":{\"trackContactClick\":{\"type\":\"reactHoc\",\"name\":\"trackContactClick\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withPostHogTrack\":{\"type\":\"reactHoc\",\"name\":\"withPostHogTrack\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"trackDemoClick\":{\"type\":\"reactHoc\",\"name\":\"trackDemoClick\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"trackExpertClick\":{\"type\":\"reactHoc\",\"name\":\"trackExpertClick\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"trackGithubStarsClick\":{\"type\":\"reactHoc\",\"name\":\"trackGithubStarsClick\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PosthogEvent.map"],"mappings":"6QAC2C,IAAsE,IAA4B,CAAoC,EAAK,+fAAugB,EAAiB,GAAY,EAAM,IAAM,CAAC,GAAK,CAAC,WAAS,WAAS,WAAS,GAAG,GAAM,EAAM,OAAO,EAAsB,EAAK,EAAO,IAAI,CAAC,GAAG,EAAc,WAAa,MAAI,CAAC,CAAc,EAAK,MAAM,CAAC,G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