{"version":3,"file":"CTA_GoToHelpCenter_POSTHOG_Events.D4eUcwBX.mjs","names":["__legacyOverrideHOC_DataObserverContext","_jsx"],"sources":["https:/framerusercontent.com/modules/CTIQUY44NQM5jGZ2xY6T/wAgg37s8bHofh2GdgNVq/CTA_GoToHelpCenter_POSTHOG_Events.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";// ── Deduplication guard ──────────────────────────────────────────────\nconst DEDUP_WINDOW_MS=600;const _lastFired={};function shouldFire(key){const now=Date.now();if(_lastFired[key]&&now-_lastFired[key]<DEDUP_WINDOW_MS){console.log(\"[PH_DEDUP] blocked duplicate:\",key,`(${now-_lastFired[key]}ms after first)`);return false;}_lastFired[key]=now;return true;}// ── OS detection ─────────────────────────────────────────────────────\nfunction detectOS(){if(typeof window===\"undefined\")return\"mac\";const params=new URLSearchParams(window.location.search);const forced=params.get(\"os\")?.toLowerCase();if(forced===\"mac\"||forced===\"apple\")return\"mac\";if(forced===\"windows\"||forced===\"win\")return\"windows\";const ua=navigator.userAgent.toLowerCase();if(ua.includes(\"macintosh\")||ua.includes(\"mac os\")||ua.includes(\"iphone\")||ua.includes(\"ipad\")||ua.includes(\"ipod\")){return\"mac\";}return\"windows\";}// ── Shared CTA logic ─────────────────────────────────────────────────\nfunction getCTAEventProps(config){return{onClick(event){const dedupKey=`${config.event}::${config.section}::${config.item}`;if(!shouldFire(dedupKey))return;const os=detectOS();const label=event?.currentTarget?.textContent?.replace(/\\s+/g,\" \")?.trim()||\"\";const payload={section:config.section,label,type:config.type,item:config.item,os};console.log(\"POSTHOG TEST EVENT:\",config.event);console.log(\"POSTHOG TEST PAYLOAD:\",payload);if(typeof window!==\"undefined\"&&window.posthog){window.posthog.capture(config.event,payload);}}};}// ── Overrides ────────────────────────────────────────────────────────\nexport function GoToHelpCenterCTA_POSTHOG_Hero(){return getCTAEventProps({event:\"cta_clicked\",section:\"hero\",type:\"help_center\",item:\"go_to_help_center\"});}export function GoToHelpCenterCTA_POSTHOG_MidPage(){return getCTAEventProps({event:\"cta_clicked\",section:\"mid_page\",type:\"help_center\",item:\"go_to_help_center\"});}export function GoToHelpCenterCTA_POSTHOG_StickyNav(){return getCTAEventProps({event:\"nav_clicked\",section:\"sticky_nav\",type:\"help_center\",item:\"go_to_help_center\"});}export function GoToHelpCenterCTA_POSTHOG_BottomBanner(){return getCTAEventProps({event:\"cta_clicked\",section:\"bottom_banner\",type:\"help_center\",item:\"go_to_help_center\"});}import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withGoToHelpCenterCTA_POSTHOG_Hero(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...GoToHelpCenterCTA_POSTHOG_Hero(props)});};}withGoToHelpCenterCTA_POSTHOG_Hero.displayName=\"GoToHelpCenterCTA_POSTHOG_Hero\";export function withGoToHelpCenterCTA_POSTHOG_MidPage(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...GoToHelpCenterCTA_POSTHOG_MidPage(props)});};}withGoToHelpCenterCTA_POSTHOG_MidPage.displayName=\"GoToHelpCenterCTA_POSTHOG_MidPage\";export function withGoToHelpCenterCTA_POSTHOG_StickyNav(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...GoToHelpCenterCTA_POSTHOG_StickyNav(props)});};}withGoToHelpCenterCTA_POSTHOG_StickyNav.displayName=\"GoToHelpCenterCTA_POSTHOG_StickyNav\";export function withGoToHelpCenterCTA_POSTHOG_BottomBanner(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...GoToHelpCenterCTA_POSTHOG_BottomBanner(props)});};}withGoToHelpCenterCTA_POSTHOG_BottomBanner.displayName=\"GoToHelpCenterCTA_POSTHOG_BottomBanner\";\nexport const __FramerMetadata__ = {\"exports\":{\"GoToHelpCenterCTA_POSTHOG_StickyNav\":{\"type\":\"override\",\"name\":\"GoToHelpCenterCTA_POSTHOG_StickyNav\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withGoToHelpCenterCTA_POSTHOG_BottomBanner\":{\"type\":\"reactHoc\",\"name\":\"withGoToHelpCenterCTA_POSTHOG_BottomBanner\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withGoToHelpCenterCTA_POSTHOG_StickyNav\":{\"type\":\"reactHoc\",\"name\":\"withGoToHelpCenterCTA_POSTHOG_StickyNav\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"GoToHelpCenterCTA_POSTHOG_MidPage\":{\"type\":\"override\",\"name\":\"GoToHelpCenterCTA_POSTHOG_MidPage\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withGoToHelpCenterCTA_POSTHOG_MidPage\":{\"type\":\"reactHoc\",\"name\":\"withGoToHelpCenterCTA_POSTHOG_MidPage\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"GoToHelpCenterCTA_POSTHOG_BottomBanner\":{\"type\":\"override\",\"name\":\"GoToHelpCenterCTA_POSTHOG_BottomBanner\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"GoToHelpCenterCTA_POSTHOG_Hero\":{\"type\":\"override\",\"name\":\"GoToHelpCenterCTA_POSTHOG_Hero\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withGoToHelpCenterCTA_POSTHOG_Hero\":{\"type\":\"reactHoc\",\"name\":\"withGoToHelpCenterCTA_POSTHOG_Hero\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CTA_GoToHelpCenter_POSTHOG_Events.map"],"mappings":"yLAC8C,SAAS,EAAW,EAAI,CAAC,IAAM,EAAI,KAAK,KAAK,CAAsL,OAAlL,EAAW,IAAM,EAAI,EAAW,GAAK,GAAiB,QAAQ,IAAI,gCAAgC,EAAI,IAAI,EAAI,EAAW,GAAK,i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