{"version":3,"file":"shared-lib.Dmx-ti6d.mjs","names":[],"sources":["https:/framerusercontent.com/modules/cCeKj7NbeDRU37jTXis7/khyBu0Q46nb3Z9MQ1XqS/siteMetadata.js"],"sourcesContent":["// Generated by Framer (c2a8602)\nexport default function metadata(params,activeLocale){return{customHTMLBodyEnd:'<script>\\n/** NAVODE Auth UI v4-mini — 100\\xd740, instant, portal menu (no email shown) */\\n(() => {\\n  if (window.__NAVODE_AUTH_UI_MINI_V4__) return;\\n  window.__NAVODE_AUTH_UI_MINI_V4__ = true;\\n\\n  // ---- Framer routes ----\\n  const BASE        = \"https://navode.framer.website\";\\n  const LOGIN_URL   = `${BASE}/log-in`;\\n  const SIGNUP_URL  = `${BASE}/create-account`;\\n\\n  // ---- Styles (100\\xd740 host; fixed-position portal menu) ----\\n  const css = `\\n    #authBox { display:inline-block; width:100px; height:40px; }\\n    #authBox .nv-auth-wrap{\\n      position:relative; width:100%; height:100%;\\n      box-sizing:border-box; padding:4px;\\n      border:1px solid #e5e7eb; border-radius:12px; background:#fff;\\n      box-shadow:0 2px 8px rgba(15,23,42,.04);\\n      font-family:Arial,Helvetica,sans-serif;\\n    }\\n    #authBox .nv-btn{\\n      width:100%; height:100%; box-sizing:border-box;\\n      border-radius:8px; border:1px solid transparent;\\n      background:#93c5fd; color:#0b1220; cursor:pointer;\\n      font-weight:700; font-size:12px; letter-spacing:.1px;\\n      display:inline-flex; align-items:center; justify-content:center;\\n      transition:filter .12s, transform .06s, opacity .12s;\\n      user-select:none;\\n    }\\n    #authBox .ghost{ background:#fff; color:#0f172a; border-color:#e5e7eb; }\\n    #authBox .nv-btn:hover{ filter:brightness(1.03); }\\n    #authBox .nv-btn:active{ transform:translateY(1px); }\\n    #authBox .caret{ margin-left:6px; font-size:10px; line-height:1; opacity:.8; }\\n\\n    .nv-auth-portal{ position:fixed; inset:0; pointer-events:none; z-index:2147483000; }\\n    .nv-menu{\\n      position:fixed; min-width:200px; pointer-events:auto;\\n      background:#fff; border:1px solid #e5e7eb; border-radius:10px;\\n      box-shadow:0 12px 28px rgba(15,23,42,.16); padding:6px; display:none;\\n      font-family:Arial,Helvetica,sans-serif;\\n    }\\n    .nv-menu.open{ display:block; }\\n    .mi{\\n      display:flex; align-items:center; height:36px; padding:0 10px;\\n      border-radius:8px; color:#0f172a; text-decoration:none; font-size:13px; font-weight:600;\\n    }\\n    .mi:hover{ background:#f7fbff; }\\n    .mi.primary{ background:#e8f1ff; border:1px solid #d7e7ff; }\\n    .nv-sr-only{ position:absolute; width:1px; height:1px; margin:-1px; border:0; padding:0; clip:rect(0 0 0 0); overflow:hidden; white-space:nowrap; }\\n  `;\\n  const style = document.createElement(\"style\");\\n  style.textContent = css;\\n  document.head.appendChild(style);\\n\\n  const hostId = \"authBox\";\\n  const $ = (id) => document.getElementById(id);\\n\\n  // ---- Instant guess (no network) ----\\n  const SB_REF = (window.SUPABASE_URL || \"\").match(/^https:\\\\/\\\\/([^.]+)\\\\.supabase\\\\.co\\\\/?$/)?.[1] || null;\\n  const SB_AUTH_KEY = SB_REF ? `sb-${SB_REF}-auth-token` : null;\\n  const CACHE_KEY = \"navode.isAuthed\";\\n\\n  function guessFromSupabaseLocal(){\\n    try{\\n      if (!SB_AUTH_KEY) return null;\\n      const raw = localStorage.getItem(SB_AUTH_KEY);\\n      if (!raw) return null;\\n      const obj = JSON.parse(raw);\\n      const sess = obj?.currentSession || obj?.session || null;\\n      const exp = obj?.expiresAt || obj?.expires_at || sess?.expires_at || null;\\n      if (exp && Date.now() > Number(exp)*1000) return false;\\n      return !!(sess && (sess.access_token || sess?.user));\\n    }catch{ return null; }\\n  }\\n  function guessFromCache(){\\n    const v = localStorage.getItem(CACHE_KEY);\\n    return v === \"1\" ? true : v === \"0\" ? false : null;\\n  }\\n  function cacheAuth(v){ try{ localStorage.setItem(CACHE_KEY, v ? \"1\":\"0\"); }catch{} }\\n\\n  // ---- Portal menu (fixed so it won’t be clipped) ----\\n  const portal = document.createElement(\"div\");\\n  portal.className = \"nv-auth-portal\";\\n  const menu = document.createElement(\"div\");\\n  menu.className = \"nv-menu\";\\n  menu.innerHTML = `\\n    <div class=\"nv-sr-only\" role=\"status\" aria-live=\"polite\">Auth menu</div>\\n    <a class=\"mi\" href=\"${LOGIN_URL}\" target=\"_top\">Log in</a>\\n    <a class=\"mi primary\" href=\"${SIGNUP_URL}\" target=\"_top\">Create an account</a>\\n  `;\\n  portal.appendChild(menu);\\n  document.body.appendChild(portal);\\n\\n  let lastToggleTime = 0;\\n\\n  function openMenuNear(buttonEl){\\n    const r = buttonEl.getBoundingClientRect();\\n    const pad = 8, mw = 220, mh = 90;\\n    let left = Math.min(window.innerWidth - mw - pad, Math.max(pad, r.left));\\n    let top  = Math.min(window.innerHeight - mh - pad, r.bottom + 6);\\n    if (r.bottom + mh + pad > window.innerHeight) top = Math.max(pad, r.top - mh - 6);\\n    menu.style.left = Math.round(left) + \"px\";\\n    menu.style.top  = Math.round(top)  + \"px\";\\n    menu.classList.add(\"open\");\\n  }\\n  function closeMenu(){ menu.classList.remove(\"open\"); }\\n\\n  // ---- Renderers ----\\n  function renderLoggedOut(host){\\n    host.innerHTML = \"\";\\n    const wrap = document.createElement(\"div\");\\n    wrap.className = \"nv-auth-wrap\";\\n\\n    const btn = document.createElement(\"button\");\\n    btn.className = \"nv-btn ghost\";\\n    btn.id = \"nv-toggle\";\\n    btn.type = \"button\";\\n    btn.innerHTML = `Log in <span class=\"caret\">▾</span>`;\\n\\n    btn.addEventListener(\"click\", (e)=>{\\n      e.stopPropagation();\\n      const now = performance.now();\\n      if (menu.classList.contains(\"open\") || now - lastToggleTime < 350) {\\n        window.top.location.href = LOGIN_URL;\\n        return;\\n      }\\n      lastToggleTime = now;\\n      openMenuNear(btn);\\n    }, { passive: true });\\n\\n    document.addEventListener(\"click\", closeMenu);\\n    document.addEventListener(\"keydown\", (e)=>{ if(e.key===\"Escape\") closeMenu(); });\\n\\n    wrap.appendChild(btn);\\n    host.appendChild(wrap);\\n  }\\n\\n  function renderLoggedIn(host){\\n    host.innerHTML = \"\";\\n    const wrap = document.createElement(\"div\");\\n    wrap.className = \"nv-auth-wrap\";\\n    const out = document.createElement(\"button\");\\n    out.className = \"nv-btn\";\\n    out.id = \"nv-logout\";\\n    out.type = \"button\";\\n    out.textContent = \"Log out\";\\n    wrap.appendChild(out);\\n    host.appendChild(wrap);\\n  }\\n\\n  function render(isAuthed){\\n    const host = $(hostId);\\n    if (!host) return;\\n    closeMenu();\\n    isAuthed ? renderLoggedIn(host) : renderLoggedOut(host);\\n  }\\n\\n  // ---- Instant paint\\n  (function instant(){\\n    const local = guessFromSupabaseLocal();\\n    const cached = guessFromCache();\\n    render(!!(local ?? cached));\\n  })();\\n\\n  // ---- Reconcile with Supabase (async)\\n  (async () => {\\n    try{\\n      const { data: { session} } = await window.supabase.auth.getSession();\\n      const authed = !!session;\\n      cacheAuth(authed);\\n      render(authed);\\n    }catch{}\\n  })();\\n\\n  // ---- Live updates\\n  try {\\n    window.supabase.auth.onAuthStateChange((_evt, sess) => {\\n      const authed = !!sess;\\n      cacheAuth(authed);\\n      render(authed);\\n    });\\n  } catch {}\\n\\n  // ---- Logout\\n  document.addEventListener(\"click\", async (e)=>{\\n    const btn = e.target.closest(\"#nv-logout\");\\n    if (!btn) return;\\n    try{\\n      btn.disabled = true; btn.style.opacity = \".7\"; btn.textContent = \"Logging out…\";\\n      await window.supabase.auth.signOut();\\n    }catch{}\\n    cacheAuth(false);\\n    render(false);\\n  });\\n})();\\n</script>',customHTMLBodyStart:'<!-- Supabase JS -->\\n<script src=\"https://cdn.jsdelivr.net/npm/@supabase/supabase-js@2\"></script>\\n<script>\\n  // Your project (OK to expose the anon key on the client)\\n  const SUPABASE_URL = \"https://nisqtkfqcnludilvsbgs.supabase.co\";\\n  const SUPABASE_ANON_KEY = \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Im5pc3F0a2ZxY25sdWRpbHZzYmdzIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NTY4NzExMzgsImV4cCI6MjA3MjQ0NzEzOH0.6_qQ17alwVTmD1SiQ6LAvxHJARpkiwaooVQ_wX_IU-Q\";\\n\\n  window.supabase = supabase.createClient(SUPABASE_URL, SUPABASE_ANON_KEY, {\\n    auth: {\\n      autoRefreshToken: true,\\n      persistSession: true,\\n      detectSessionInUrl: true\\n    }\\n  });\\n</script>\\n',customHTMLHeadEnd:'<script async=\"\" src=\"https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-7257157353079060\" crossorigin=\"anonymous\"></script>',description:\"The ultimate roadtripping app.\",favicon:\"https://framerusercontent.com/assets/MlNLUddo4G3NOOkmvFoP8RS8M.png\",robots:\"max-image-preview:large\",title:\"Navode\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"2DACA,SAAwB,EAAS,EAAO,EAAa,CAAC,MAAM,CAAC,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAA0gO,oBAAoB;;;;;;;;;;;;;;;EAAqrB,kBAAkB,0JAAyJ,YAAY,iCAAiC,QAAQ,qEAAqE,OAAO,0BAA0B,MAAM,SAAS"}