{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/1cLbzXMWjJG9MVAGHmST/DVVHWkoJL4YLPtynMtDz/GetStartedButton2.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";export function onButtonClick(){return{onClick:event=>{// Get base URL with any existing cookie parameters\nlet finalUrl=getUpdatedUrl(\"https://web.joinfizz.com\");// Extract Mixpanel distinct ID only if the function exists\nif(window.mixpanel&&typeof mixpanel.get_distinct_id===\"function\"){try{// Get current Mixpanel distinct ID (format: \"$device:uuid-value\")\nconst mixpanelFullId=mixpanel.get_distinct_id();// Extract just the UUID part (removing \"$device:\" if present)\nconst justUUID=mixpanelFullId.includes(\":\")?mixpanelFullId.split(\":\")[1]:mixpanelFullId;// Add the ID to the destination URL\nconst separator=finalUrl.includes(\"?\")?\"&\":\"?\";finalUrl=`${finalUrl}${separator}mpid=${encodeURIComponent(justUUID)}`;// Optional: Log for debugging\nconsole.log(\"Passing Mixpanel ID:\",justUUID);}catch(err){console.error(\"Error extracting Mixpanel ID:\",err);// Continue with navigation even if there's an error\n}}else{console.warn(\"Mixpanel.get_distinct_id is not available.\");}// Dynamically capture button text\nconst buttonText=event.target.innerText||\"Unnamed Button\";// Send the dynamic button name to Mixpanel only if the function exists\nif(window.mixpanel&&typeof mixpanel.track===\"function\"){mixpanel.track(\"Web Button Clicked\",{\"Button Name\":buttonText,Page:window.location.pathname});}else{console.warn(\"Mixpanel.track is not available.\");}// Navigate to the destination URL\nwindow.open(finalUrl);}};}// Helper functions remain the same\nfunction getAllCookies(){let cookies={};document.cookie.split(\"; \").forEach(cookie=>{let[key,value]=cookie.split(\"=\");cookies[key]=value;});return cookies;}function getUpdatedUrl(baseUrl){const cookies=getAllCookies();const queryParams=new URLSearchParams(cookies).toString();return queryParams?`${baseUrl}?${queryParams}`:baseUrl;}import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withonButtonClick(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...onButtonClick(props)});};}withonButtonClick.displayName=\"onButtonClick\";\nexport const __FramerMetadata__ = {\"exports\":{\"onButtonClick\":{\"type\":\"override\",\"name\":\"onButtonClick\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withonButtonClick\":{\"type\":\"reactHoc\",\"name\":\"withonButtonClick\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./GetStartedButton2.map"],
  "mappings": "kIAAkD,SAASA,GAAe,CAAC,MAAM,CAAC,QAAQC,GAAO,CACjG,IAAIC,EAASC,EAAc,0BAA0B,EACrD,GAAGC,EAAO,UAAU,OAAO,SAAS,iBAAkB,WAAY,GAAG,CACrE,IAAMC,EAAe,SAAS,gBAAgB,EACxCC,EAASD,EAAe,SAAS,GAAG,EAAEA,EAAe,MAAM,GAAG,EAAE,CAAC,EAAEA,EACnEE,EAAUL,EAAS,SAAS,GAAG,EAAE,IAAI,IAAIA,EAAS,GAAGA,CAAQ,GAAGK,CAAS,QAAQ,mBAAmBD,CAAQ,CAAC,GACnH,QAAQ,IAAI,uBAAuBA,CAAQ,CAAE,OAAOE,EAAI,CAAC,QAAQ,MAAM,gCAAgCA,CAAG,CAC1G,MAAO,QAAQ,KAAK,4CAA4C,EAChE,IAAMC,EAAWR,EAAM,OAAO,WAAW,iBACtCG,EAAO,UAAU,OAAO,SAAS,OAAQ,WAAY,SAAS,MAAM,qBAAqB,CAAC,cAAcK,EAAW,KAAKL,EAAO,SAAS,QAAQ,CAAC,EAAQ,QAAQ,KAAK,kCAAkC,EAC3MA,EAAO,KAAKF,CAAQ,CAAE,CAAC,CAAE,CACzB,SAASQ,GAAe,CAAC,IAAIC,EAAQ,CAAC,EAAE,gBAAS,OAAO,MAAM,IAAI,EAAE,QAAQC,GAAQ,CAAC,GAAG,CAACC,EAAIC,CAAK,EAAEF,EAAO,MAAM,GAAG,EAAED,EAAQE,CAAG,EAAEC,CAAM,CAAC,EAASH,CAAQ,CAAC,SAASR,EAAcY,EAAQ,CAAC,IAAMJ,EAAQD,EAAc,EAAQM,EAAY,IAAI,gBAAgBL,CAAO,EAAE,SAAS,EAAE,OAAOK,EAAY,GAAGD,CAAO,IAAIC,CAAW,GAAGD,CAAQ,CAA2J,SAASE,EAAkBC,EAAE,CAAC,OAAOC,IAAQC,EAA+BC,CAAuC,EAASC,EAAKJ,EAAE,CAAC,GAAGC,EAAM,GAAGnB,EAAcmB,CAAK,CAAC,CAAC,EAAI,CAACF,EAAkB,YAAY",
  "names": ["onButtonClick", "event", "finalUrl", "getUpdatedUrl", "window", "mixpanelFullId", "justUUID", "separator", "err", "buttonText", "getAllCookies", "cookies", "cookie", "key", "value", "baseUrl", "queryParams", "withonButtonClick", "C", "props", "re", "DataObserverContext", "p"]
}
