{"version":3,"file":"UTMTracking.C_DPcnST.mjs","names":["useState","useState","useState"],"sources":["https:/framerusercontent.com/modules/7JkacaIDQloYtdCd0mxS/sjNSI8rb85X0md1Aey7P/GgGclid.js","https:/framerusercontent.com/modules/UqthwkzkUouGX7lHZNYs/b777CaTJTq7lsMuWtwho/MetaOfflineTracking.js","https:/framerusercontent.com/modules/B36fsJVnJ7y0NH3MhCO2/nvH5u4AOt1Wy7qNspxF2/UTMTracking.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useState,useEffect}from\"react\";// Helper to grab gclid from URL or Session Storage\nconst getGclidValue=()=>{if(typeof window===\"undefined\")return\"\";const urlParams=new URLSearchParams(window.location.search);const gclid=urlParams.get(\"gclid\");// If found in URL, save it to memory so it isn't lost on other pages\nif(gclid){sessionStorage.setItem(\"gclid\",gclid);return gclid;}// If not in URL, check memory\nreturn sessionStorage.getItem(\"gclid\")||\"\";};// Override for Google Click ID (gclid)\nexport function withGCLID(Component){return props=>{const[value,setValue]=useState(\"\");useEffect(()=>{setValue(getGclidValue());},[]);return /*#__PURE__*/_jsx(Component,{...props,value:value,style:{...props.style,position:\"absolute\",opacity:0,width:0,height:0,pointerEvents:\"none\",overflow:\"hidden\",margin:0,padding:0}});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withGCLID\":{\"type\":\"reactHoc\",\"name\":\"withGCLID\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./GgGclid.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{useState,useEffect}from\"react\";// Helper function to read Meta cookies from the browser\nfunction getCookie(name){if(typeof document===\"undefined\")return\"\";let match=document.cookie.match(new RegExp(\"(^| )\"+name+\"=([^;]+)\"));if(match)return decodeURIComponent(match[2]);return\"\";}// Override for Meta Browser ID (fbp)\nexport function withMetaFBP(Component){return props=>{const[val,setVal]=useState(\"\");useEffect(()=>{setVal(getCookie(\"_fbp\"));},[]);return /*#__PURE__*/_jsx(Component,{...props,value:val,style:{...props.style,display:\"none\"}});};}// Override for Meta Click ID (fbc)\nexport function withMetaFBC(Component){return props=>{const[val,setVal]=useState(\"\");useEffect(()=>{setVal(getCookie(\"_fbc\"));},[]);return /*#__PURE__*/_jsx(Component,{...props,value:val,style:{...props.style,display:\"none\"}});};}// Override for User Agent\nexport function withUserAgent(Component){return props=>{const[val,setVal]=useState(\"\");useEffect(()=>{setVal(navigator.userAgent);},[]);return /*#__PURE__*/_jsx(Component,{...props,value:val,style:{...props.style,display:\"none\"}});};}// Override for IP Address (Fetches via API)\nexport function withIPAddress(Component){return props=>{const[val,setVal]=useState(\"\");useEffect(()=>{fetch(\"https://api.ipify.org?format=json\").then(res=>res.json()).then(data=>setVal(data.ip)).catch(err=>console.error(\"Could not fetch IP\",err));},[]);return /*#__PURE__*/_jsx(Component,{...props,value:val,style:{...props.style,display:\"none\"}});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withIPAddress\":{\"type\":\"reactHoc\",\"name\":\"withIPAddress\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withUserAgent\":{\"type\":\"reactHoc\",\"name\":\"withUserAgent\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withMetaFBC\":{\"type\":\"reactHoc\",\"name\":\"withMetaFBC\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withMetaFBP\":{\"type\":\"reactHoc\",\"name\":\"withMetaFBP\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./MetaOfflineTracking.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";// A helper to grab the specific parameter from URL or Session Memory\nconst getUTMValue=paramName=>{if(typeof window===\"undefined\")return\"\";const urlParams=new URLSearchParams(window.location.search);const paramValue=urlParams.get(paramName);// If found in URL, save it and return it\nif(paramValue){sessionStorage.setItem(paramName,paramValue);return paramValue;}// If not in URL, check memory (in case they navigated pages)\nreturn sessionStorage.getItem(paramName)||\"\";};// Override for UTM Source\nexport function withUTMSource(Component){return props=>{const[value,setValue]=useState(\"\");useEffect(()=>setValue(getUTMValue(\"utm_source\")),[]);return /*#__PURE__*/_jsx(Component,{...props,value:value,style:{...props.style,display:\"none\"}});};}// Override for UTM Medium\nexport function withUTMMedium(Component){return props=>{const[value,setValue]=useState(\"\");useEffect(()=>setValue(getUTMValue(\"utm_medium\")),[]);return /*#__PURE__*/_jsx(Component,{...props,value:value,style:{...props.style,display:\"none\"}});};}// Override for UTM Campaign\nexport function withUTMCampaign(Component){return props=>{const[value,setValue]=useState(\"\");useEffect(()=>setValue(getUTMValue(\"utm_campaign\")),[]);return /*#__PURE__*/_jsx(Component,{...props,value:value,style:{...props.style,display:\"none\"}});};}// Override for UTM Term\nexport function withUTMTerm(Component){return props=>{const[value,setValue]=useState(\"\");useEffect(()=>setValue(getUTMValue(\"utm_term\")),[]);return /*#__PURE__*/_jsx(Component,{...props,value:value,style:{...props.style,display:\"none\"}});};}// Override for UTM Content\nexport function withUTMContent(Component){return props=>{const[value,setValue]=useState(\"\");useEffect(()=>setValue(getUTMValue(\"utm_content\")),[]);return /*#__PURE__*/_jsx(Component,{...props,value:value,style:{...props.style,display:\"none\"}});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withUTMMedium\":{\"type\":\"reactHoc\",\"name\":\"withUTMMedium\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withUTMContent\":{\"type\":\"reactHoc\",\"name\":\"withUTMContent\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withUTMSource\":{\"type\":\"reactHoc\",\"name\":\"withUTMSource\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withUTMCampaign\":{\"type\":\"reactHoc\",\"name\":\"withUTMCampaign\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withUTMTerm\":{\"type\":\"reactHoc\",\"name\":\"withUTMTerm\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":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