{"version":3,"file":"GetDistinctId.AXYGrXDn.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/qs9fdy2NPQUgrfyeNyh7/QSc5vVZtVAcZbZ9QYGjn/GetDistinctId.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef,useEffect,useState}from\"react\";// Learn more: https://www.framer.com/developers/overrides/\nexport function withDistinctId(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const[distinctId,setDistinctId]=useState(undefined);useEffect(()=>{if(typeof window!==\"undefined\"&&window.posthog){const id=window.posthog.get_distinct_id?.();if(id)setDistinctId(id);}},[]);return /*#__PURE__*/_jsx(Component,{ref:ref,...props,...distinctId&&props.buttonLink?{buttonLink:`${props.buttonLink}?uid=${distinctId}`}:{},...distinctId&&props.href?{href:`${props.href}?uid=${distinctId}`}:{}});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withDistinctId\":{\"type\":\"reactHoc\",\"name\":\"withDistinctId\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./GetDistinctId.map"],"mappings":"yIACA,SAAgB,EAAe,EAAU,CAAC,OAAoB,GAAY,EAAM,IAAM,CAAC,GAAK,CAAC,EAAW,GAAeA,EAAS,IAAA,GAAU,CAA2I,OAA1I,MAAc,CAAC,GAAU,IAAS,QAAa,EAAO,QAAQ,CAAC,IAAM,EAAG,EAAO,QAAQ,mBAAmB,CAAI,GAAG,EAAc,EAAG,GAAI,EAAE,CAAC,CAAqB,EAAK,EAAU,CAAK,MAAI,GAAG,EAAM,GAAG,GAAY,EAAM,WAAW,CAAC,WAAW,GAAG,EAAM,WAAW,OAAO,IAAa,CAAC,EAAE,CAAC,GAAG,GAAY,EAAM,KAAK,CAAC,KAAK,GAAG,EAAM,KAAK,OAAO,IAAa,CAAC,EAAE,CAAC,CAAC,EAAG,sBADjc,IAAiD"}