{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/Gd1Mr1hh4nZkRAGZx1Jd/H16FkmmaGr9mrr0AyMkk/FirebaseAuthGate.js", "ssg:https://framerusercontent.com/modules/xkH35bHxDFoiVrbLgZjU/9lwabXBqlMQgV2IWBrTT/AuthGuard.js"],
  "sourcesContent": ["import{useEffect,useState}from\"react\";export function FirebaseAuthGate(){const[checked,setChecked]=useState(false);useEffect(()=>{const unsubscribe=firebase.auth().onAuthStateChanged(user=>{if(!user){// \uD83D\uDD10 Not logged in? Redirect to login\nwindow.location.href=\"/login\";}else{// \u2705 Auth check complete\nsetChecked(true);}});return()=>unsubscribe();},[]);// Prevent rendering until we know auth status\nif(!checked)return null;return null;}\nexport const __FramerMetadata__ = {\"exports\":{\"FirebaseAuthGate\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FirebaseAuthGate.map", "import{jsx as _jsx}from\"react/jsx-runtime\";import{FirebaseAuthGate}from\"https://framerusercontent.com/modules/Gd1Mr1hh4nZkRAGZx1Jd/H16FkmmaGr9mrr0AyMkk/FirebaseAuthGate.js\";export default function AuthGuard(){return /*#__PURE__*/_jsx(FirebaseAuthGate,{});}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"AuthGuard\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./AuthGuard.map"],
  "mappings": "gGAA6C,SAASA,GAAkB,CAAC,GAAK,CAACC,EAAQC,CAAU,EAAEC,EAAS,EAAK,EAGjH,OAHmHC,EAAU,IAAI,CAAC,IAAMC,EAAY,SAAS,KAAK,EAAE,mBAAmBC,GAAM,CAAKA,EAElMJ,EAAW,EAAI,EADfK,EAAO,SAAS,KAAK,QACH,CAAC,EAAE,MAAM,IAAIF,EAAY,CAAE,EAAE,CAAC,CAAC,EAClB,IAAK,CCHwJ,SAARG,GAA4B,CAAC,OAAoBC,EAAKC,EAAiB,CAAC,CAAC,CAAE",
  "names": ["FirebaseAuthGate", "checked", "setChecked", "ye", "ue", "unsubscribe", "user", "window", "AuthGuard", "p", "FirebaseAuthGate"]
}
