{"version":3,"file":"UTMTracking.CSwMEIYF.mjs","names":["useState","useState","useState","__esmMin","window","init_npm_react_18_3_1","init_ssg_sandbox_shims","_e","init_jsx_runtime","c","ce","navigator","withGCLID","value","setValue","getGclidValue","Component","props","init_GgGclid","gclid","getCookie","match","name","withMetaFBP","val","setVal","withMetaFBC","withUserAgent","withIPAddress","res","data","err","init_MetaOfflineTracking","withUTMSource","getUTMValue","withUTMMedium","withUTMCampaign","withUTMTerm","withUTMContent","init_UTMTracking","paramValue","paramName"],"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__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./UTMTracking.map"],"mappings":"A,8IAIA,SAAgBY,EAAU,EAAU,CAAC,MAAO,IAAO,CAAC,GAAK,CAACC,EAAMC,GAAUd,EAAS,EAAE,EAAiD,OAA/CU,MAAc,CAACI,EAASC,EAAc,CAAC,CAAE,EAAE,CAAC,CAAC,EAAsB,gBAAKC,EAAU,CAAC,GAAGC,EAAY,QAAM,MAAM,CAAC,GAAGA,EAAM,MAAM,SAAS,WAAW,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,OAAO,SAAS,SAAS,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAE,CAAE,C,gDAH7T,MAAkB,CAAC,GAAUb,IAAS,OAAY,MAAM,GAA+D,IAAMe,EAAM,IAApD,gBAAgBf,EAAO,SAAS,MAA4B,CAAC,CAAC,IAAI,OAAO,EAE9J,OADGe,GAAO,eAAe,QAAQ,QAAQA,CAAK,EAASA,GAChD,eAAe,QAAQ,OAAO,GAAG,EAAG,C,OCF3C,SAASC,EAAU,EAAK,CAAC,GAAG,OAAO,SAAW,IAAY,MAAM,GAAG,IAAIC,EAAM,SAAS,OAAO,MAAU,OAAO,QAAQC,EAAK,UAAU,CAAC,EAA+C,OAA1CD,EAAa,mBAAmBA,EAAM,EAAE,EAAQ,EAAG,CAC9L,SAAgBE,EAAY,EAAU,CAAC,MAAO,IAAO,CAAC,GAAK,CAACC,EAAIC,GAAQxB,EAAS,EAAE,EAAiD,OAA/CS,MAAc,CAACe,EAAOL,EAAU,MAAM,CA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