{"version":3,"file":"RedirectView.C0pVK6cE.mjs","names":[],"sources":["https:/framerusercontent.com/modules/y3UwrFjbUaIJNRMWJ65X/BMJKKANZptnbAkK9B5fd/RedirectView.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,forwardRef}from\"react\";/**\n * Framer Override: Track token on page load\n * Event name: \"token\"\n * Captures:\n *  - user_id\n *  - token (event param)\n *  - token (user property)\n */export function withTrackOnly(Component){return /*#__PURE__*/forwardRef(function WithTrackOnly(props,ref){useEffect(()=>{console.log(\"📡 Tracking-only override running\");// 1. Read token from URL ?u=XXXX\nconst url=new URL(window.location.href);const token=url.searchParams.get(\"u\");if(!token){console.log(\"⚠️ No token found in URL\");return;}console.log(\"✅ Token captured:\",token);// 2. Ensure GA is available\nif(typeof window.gtag!==\"function\"){console.log(\"❌ gtag not available\");return;}window.gtag(\"set\",{user_id:token});window.gtag(\"set\",\"user_properties\",{token:token});window.gtag(\"event\",\"token\",{token:token,page_path:window.location.pathname,page_location:window.location.href});console.log(\"✅ GA event sent: token\");},[]);return /*#__PURE__*/_jsx(Component,{...props,ref:ref});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withTrackOnly\":{\"type\":\"reactHoc\",\"name\":\"withTrackOnly\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./RedirectView.map"],"mappings":"uIAOG,SAAgB,EAAc,EAAU,CAAC,OAAoB,EAAW,SAAuB,EAAM,EAAI,CAEuN,OAFtN,MAAc,CAAC,QAAQ,IAAI,oCAAoC,CACpI,IAAM,EAApC,IAAI,IAAI,EAAO,SAAS,KAAK,CAAiB,aAAa,IAAI,IAAI,CAAC,GAAG,CAAC,EAAM,CAAC,QAAQ,IAAI,2BAA2B,CAAC,OACjI,GADyI,QAAQ,IAAI,oBAAoB,EAAM,CAC5K,OAAO,EAAO,MAAO,WAAW,CAAC,QAAQ,IAAI,uBAAuB,CAAC,OAAQ,EAAO,KAAK,MAAM,CAAC,QAAQ,EAAM,CAAC,CAAC,EAAO,KAAK,MAAM,kBAAkB,CAAO,QAAM,CAAC,CAAC,EAAO,KAAK,QAAQ,QAAQ,CAAO,QAAM,UAAU,EAAO,SAAS,SAAS,cAAc,EAAO,SAAS,KAAK,CAAC,CAAC,QAAQ,IAAI,yBAAyB,EAAG,EAAE,CAAC,CAAqB,EAAK,EAAU,CAAC,GAAG,EAAU,MAAI,CAAC,EAAG,sBATjV,IAAwC"}