{"version":3,"file":"shared-lib.C66W0GqE.mjs","names":[],"sources":["https:/framerusercontent.com/modules/skYWY23PAJCw9wzljfR2/BDc2xNlkHOwdG0KSTvkc/siteMetadata.js"],"sourcesContent":["// Generated by Framer (569b461)\nexport default function metadata(params,activeLocale){return{customHTMLBodyEnd:'<!-- Whop checkout loader -->\\n<script async=\"\" defer=\"\" src=\"https://js.whop.com/static/checkout/loader.js\"></script>\\n\\n<!-- Start of HubSpot Embed Code -->\\n<script id=\"hs-script-loader\" async=\"\" defer=\"\" src=\"https://js.hs-scripts.com/48512363.js\"></script>\\n<!-- End of HubSpot Embed Code -->\\n\\n<!-- Supabase JS -->\\n<script src=\"https://cdn.jsdelivr.net/npm/@supabase/supabase-js@2\"></script>\\n\\n<script>\\n/* Idempotent HubSpot + Supabase bootstrap */\\n(function () {\\n  // 1) HubSpot queue\\n  window._hsq = window._hsq || [];\\n\\n  // 2) Create ONE Supabase client and expose it globally\\n  if (!window.sb) {\\n    const SUPABASE_URL  = \"https://nzsfbdgnbfiwfqbjttzb.supabase.co\";\\n    const SUPABASE_ANON = \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Im56c2ZiZGduYmZpd2ZxYmp0dHpiIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NTY5MDM1NzAsImV4cCI6MjA3MjQ3OTU3MH0.p4Z2sBS8i-ubSGyK9xMVNIqIbDNHXkUosJwAkaW8PUk\";\\n    window.sb = window.supabase.createClient(SUPABASE_URL, SUPABASE_ANON);\\n  }\\n\\n  // 3) Define hsTrack ONCE (needed for SPA virtual pageviews)\\n  if (!window.hsTrack) {\\n    window.hsTrack = function (path) {\\n      window._hsq = window._hsq || [];\\n      if (path) window._hsq.push([\\'setPath\\', path]); // SPA: set path first\\n      window._hsq.push([\\'trackPageView\\']);           // then send pageview\\n    };\\n  }\\n\\n  // 4) Identify current user (once) and FLUSH with a pageview\\n  (async () => {\\n    try {\\n      const { data: { session } } = await window.sb.auth.getSession();\\n      const email  = session?.user?.email;\\n      const userId = session?.user?.id;\\n      if (email) {\\n        window._hsq.push([\\'identify\\', { email, user_id: userId }]);\\n        window.hsTrack(); // identity is only sent on trackPageView/event\\n      }\\n    } catch (e) { /* no-op */ }\\n  })();\\n\\n  // 5) Also re-identify on auth changes (guard so we don\\'t double-bind)\\n  if (!window.__hsAuthHooked) {\\n    window.__hsAuthHooked = true;\\n    window.sb.auth.onAuthStateChange((_evt, session) => {\\n      const email  = session?.user?.email;\\n      const userId = session?.user?.id;\\n      if (email) {\\n        window._hsq.push([\\'identify\\', { email, user_id: userId }]);\\n        window.hsTrack();\\n      }\\n    });\\n  }\\n\\n  // 6) SPA route hooks (guard so we don\\'t hook twice)\\n  if (!window.__hsSpaHooked) {\\n    window.__hsSpaHooked = true;\\n    const origPush = history.pushState;\\n    const origReplace = history.replaceState;\\n    const fire = () => window.hsTrack(location.pathname + location.search + location.hash);\\n    history.pushState = function () { origPush.apply(this, arguments); fire(); };\\n    history.replaceState = function () { origReplace.apply(this, arguments); fire(); };\\n    window.addEventListener(\\'popstate\\', fire);\\n  }\\n})();\\n</script>\\n\\n\\n<script>\\n/* UC Tracker v2 — transitions-only\\n   - One page_view on enter, one page_close (with engaged_ms) on exit\\n   - Deduped exit (visibilitychange/pagehide)\\n   - Absolute URLs + best-effort email capture\\n   - SPA-aware (pushState/replaceState/popstate)\\n   - sendBeacon with keepalive fallback\\n*/\\n(function () {\\n  if (window.__UC_TRACKER_V2__) return;\\n  window.__UC_TRACKER_V2__ = true;\\n\\n  const INGEST = \"https://nzsfbdgnbfiwfqbjttzb.supabase.co/functions/v1/events-ingest\";\\n\\n  // Stable ids\\n  const mkid = () =>\\n    (window.crypto && crypto.randomUUID)\\n      ? crypto.randomUUID()\\n      : Date.now().toString(36) + Math.random().toString(36).slice(2);\\n  const AID_KEY = \"uc:aid\";\\n  const SID_KEY = \"uc:sid\";\\n  const aid = localStorage.getItem(AID_KEY) || (localStorage.setItem(AID_KEY, mkid()), localStorage.getItem(AID_KEY));\\n  let sid = sessionStorage.getItem(SID_KEY) || (sessionStorage.setItem(SID_KEY, mkid()), sessionStorage.getItem(SID_KEY));\\n\\n  // Email resolver (best-effort). Wait briefly at boot; subscribe for later updates.\\n  let currentEmail = null;\\n  async function resolveEmail(timeoutMs = 400) {\\n    try {\\n      const sb = window.sb || window.supabaseClient;\\n      if (!sb?.auth) return null;\\n      const t0 = performance.now();\\n      while (performance.now() - t0 < timeoutMs) {\\n        const { data: { session } = {} } = await sb.auth.getSession();\\n        const em = session?.user?.email || null;\\n        if (em) { currentEmail = em; break; }\\n        await new Promise(r => setTimeout(r, 50));\\n      }\\n      sb.auth.onAuthStateChange?.((_e, s) => { currentEmail = s?.user?.email || null; });\\n    } catch {}\\n    return currentEmail;\\n  }\\n\\n  // Page state\\n  let href = location.href;              // absolute URL\\n  let ref  = document.referrer || null;  // absolute when available\\n  let visibleSince = (document.visibilityState === \"visible\") ? performance.now() : null;\\n  let engagedMs = 0;\\n  let closing = false;                   // one-shot exit guard\\n\\n  const now = () => performance.now();\\n\\n  function addVisibleChunk() {\\n    if (visibleSince != null) {\\n      engagedMs += Math.max(0, Math.round(now() - visibleSince));\\n      visibleSince = now();\\n    }\\n  }\\n\\n  function beacon(payload) {\\n    const txt = JSON.stringify(payload);\\n    try {\\n      const blob = new Blob([txt], { type: \"application/json\" });\\n      const queued = navigator.sendBeacon(INGEST, blob);           // preferred for unload\\n      if (!queued) {\\n        fetch(INGEST, { method: \"POST\", headers: { \"content-type\": \"application/json\" }, body: txt, keepalive: true })\\n          .catch(() => {});\\n      }\\n    } catch {\\n      try {\\n        fetch(INGEST, { method: \"POST\", headers: { \"content-type\": \"application/json\" }, body: txt, keepalive: true })\\n          .catch(() => {});\\n      } catch {}\\n    }\\n  }\\n\\n  function log(event_name, extra) {\\n    beacon({\\n      event_name,\\n      email: currentEmail ? String(currentEmail).toLowerCase() : null,\\n      anonymous_id: aid,\\n      session_id: sid,\\n      page_url: href,    // absolute\\n      referrer: ref,\\n      ...extra\\n    });\\n  }\\n\\n  function startPage(newHref, newRef) {\\n    // reset per-route state\\n    closing = false;\\n    href = newHref;\\n    ref  = newRef ?? (document.referrer || null);\\n    engagedMs = 0;\\n    visibleSince = (document.visibilityState === \"visible\") ? now() : null;\\n    log(\"page_view\", null);\\n  }\\n\\n  function endPage(reason) {\\n    if (closing) return;               // <- dedupe guard\\n    closing = true;\\n    if (document.visibilityState === \"visible\") addVisibleChunk();\\n    const total = Math.max(0, Math.round(engagedMs));\\n    log(\"page_close\", { engaged_ms: total, reason });\\n  }\\n\\n  // Public flush (e.g., before navigating to HubSpot)\\n  window.ucFlush = (reason) => { try { endPage(reason || \"manual\"); } catch {} };\\n\\n  // Visibility & exit — only one page_close will be emitted because of the guard\\n  document.addEventListener(\"visibilitychange\", () => {\\n    if (document.visibilityState === \"hidden\") endPage(\"hidden\");\\n    else visibleSince = now();\\n  });\\n  window.addEventListener(\"pagehide\", () => endPage(\"pagehide\")); // BFCache-friendly\\n  // (The pagehide event is designed for unload/BFCache; visibilitychange fires for backgrounding.) \\n  // MDN/web.dev recommend these over \\'unload\\'. \\n\\n  // SPA routing: close old route, start new\\n  (function hookRouter() {\\n    const fire = () => {\\n      const newHref = location.href;\\n      if (newHref !== href) {\\n        const prev = href;\\n        endPage(\"route-change\");\\n        startPage(newHref, prev);\\n      }\\n    };\\n    const _push = history.pushState, _replace = history.replaceState;\\n    history.pushState = function () { _push.apply(this, arguments); fire(); };\\n    history.replaceState = function () { _replace.apply(this, arguments); fire(); };\\n    window.addEventListener(\"popstate\", fire);\\n  })();\\n\\n  // Boot: try to resolve email briefly, then start logging\\n  (async function boot() {\\n    await resolveEmail(400); // don’t block too long\\n    startPage(href, ref);\\n  })();\\n})();\\n</script>\\n\\n\\n',customHTMLHeadEnd:'\\n\\n\\n<style>\\n/* Apply vertical spacing to BOTH ul and ol lists */\\nul.framer-text,\\nol.framer-text {\\n  display: table !important;\\n  border-collapse: separate !important;\\n  /* 1em of vertical gap between each list “row” (li) */\\n  border-spacing: 0 1.5em !important;\\n}\\n\\nblockquote.framer-text.framer-styles-preset-1ij4zq8 {\\n  /* Make sure it’s displayed as a block element */\\n  display: block !important;\\n\\n  /* Override all margin-block settings */\\n  margin-block-start: 2.5em !important;\\n  margin-block-end: 2.5em !important;\\n  margin-inline-start: 0 !important;\\n  margin-inline-end: 0 !important;\\n\\n  /* Also set top/bottom margin to catch any leftover rules */\\n  margin-top: 2.5em !important;\\n  margin-bottom: 2.5em !important;\\n\\n  /* Optional: you can add padding or other styling if desired */\\n  /* padding: 1em !important; */\\n  /* background: #20202020; /* debug: semi-transparent background */\\n  position: relative !important; /* ensure your pseudo-element is anchored properly */\\n}\\n\\n</style>\\n\\n<!-- 1) Load Supabase -->\\n<script src=\"https://cdn.jsdelivr.net/npm/@supabase/supabase-js@2\"></script>\\n\\n<!-- 2) Create a global client early in <head> so magic-link sessions are captured -->\\n<script>\\n  // Use YOUR values; these are yours from earlier:\\n  const SUPABASE_URL = \"https://nzsfbdgnbfiwfqbjttzb.supabase.co\";\\n  const SUPABASE_ANON_KEY = \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Im56c2ZiZGduYmZpd2ZxYmp0dHpiIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NTY5MDM1NzAsImV4cCI6MjA3MjQ3OTU3MH0.p4Z2sBS8i-ubSGyK9xMVNIqIbDNHXkUosJwAkaW8PUk\";\\n\\n  window.supabaseClient = supabase.createClient(SUPABASE_URL, SUPABASE_ANON_KEY, {\\n    auth: {\\n      persistSession: true,\\n      autoRefreshToken: true,\\n      detectSessionInUrl: true // <-- ensures magic-link session is saved on landing\\n    }\\n  });\\n</script>\\n\\n<!-- 3) Prime your first-login popup once a real session exists -->\\n<script type=\"module\">\\n  (function waitForClient(){\\n    const supa = window.supabaseClient;\\n    if (!supa) { setTimeout(waitForClient, 25); return; }\\n\\n    supa.auth.onAuthStateChange(async (event, session) => {\\n      if (event !== \"SIGNED_IN\" || !session) return;\\n\\n      // Avoid double-priming within the same tab/session\\n      const sid = session.access_token ? session.access_token.slice(-16) : String(Date.now());\\n      const onceKey = \"uc:primed:\" + sid;\\n      if (sessionStorage.getItem(onceKey)) return;\\n      sessionStorage.setItem(onceKey, \"1\");\\n\\n      // Only set the popup flag if the server-validated metadata says we haven\\'t shown it\\n      const { data: { user } } = await supa.auth.getUser();\\n      if (!user?.user_metadata?.welcome_shown && !localStorage.getItem(\"pending_license_check\")) {\\n        localStorage.setItem(\"pending_license_check\", \"true\");\\n      }\\n    });\\n  })();\\n</script>',description:\"All the courses and digital products of Mike Hoffmann in one place. Learn all the tactics I used to acquire multiple vending routes successfully with amazing cashflow to live the life of my dreams.\",favicon:\"https://framerusercontent.com/assets/EmMKuJ0dgko7HeQ6VEaw1dAkjY.jpeg\",robots:\"max-image-preview:large\",title:\"Courses | Mike Hoffmann\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"oDACA,SAAwB,EAAS,EAAO,EAAa,CAAC,MAAM,CAAC,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAkyP,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAA+yF,YAAY,wMAAwM,QAAQ,uEAAuE,OAAO,0BAA0B,MAAM,0BAA0B"}