{
  "version": 3,
  "sources": ["account-nav.js"],
  "sourcesContent": ["// ─────────────────────────────────────────────────────────────────────────\n// Mobile account navigation. Collapses the horizontal .account-subnav row into\n// a hamburger menu on small screens (≤640px) so the account header reads like a\n// normal mobile site: logo left, menu button right, Sign out folded inside.\n//\n// Self-enhancing and shared — loaded once via auth.js, so every /account/ page\n// gets it with zero per-page markup. No-ops on pages without a subnav (login,\n// signup, the report/plan readers). Desktop is untouched (CSS hides the burger).\n// ─────────────────────────────────────────────────────────────────────────\n\n// The ONE canonical account nav — a single source of truth so every page shows\n// the same top bar. Folds in the old secondary \".account-subtabs\" destinations.\n//\n// `group` splits the nav two ways on desktop: the few \"primary\" destinations sit\n// in the top bar, everything else tucks into the profile (avatar) dropdown on the\n// right — Billing, Sales Transcripts, Voice of Customer, Activity. On mobile the\n// hamburger still shows the FULL flat list, so nothing is buried behind an extra\n// tap. Order here is the render order in every surface.\nimport { safeHref } from \"/account/safe-url.js\";\nimport { NAV, YOUR_PAGES_HREF, REVIEW_HREF, SETTINGS_HREF } from \"/account/review-customer.js\";\nconst ACCOUNT_LINKS = [\n  { href: \"/account/\",                   label: \"Home\",              group: \"primary\" },\n  { href: \"/account/audits/\",            label: \"Crawls\",            group: \"primary\" },\n  // A company's home: its pages, calendar, hub, settings and who has access (account/brand/), the one customer home.\n  { href: \"/account/brand/\",             label: \"Your pages\",        group: \"primary\", title: \"Every page we make for your company, its calendar, its hub, and who has access\" },\n  { href: \"/account/actions/\",           label: \"To-Dos\",            group: \"primary\" },\n  { href: \"/account/dashboard/\",         label: \"Dashboard\",         group: \"primary\" },\n  // The free-tier entry point, visible from every account page. A plain link on\n  // purpose: /account/audits/?foundation=start opens the Foundation step on\n  // arrival (new-audit-flow.js), so no page needs to import the modal to offer it.\n  { href: \"/account/audits/?foundation=start\", label: \"Start Your Foundation\", group: \"primary\", cta: true },\n  { href: \"/account/activity/\",          label: \"Activity\",          group: \"profile\" },\n  { href: \"/account/hub/\",               label: \"Resource Hub\",      group: \"profile\", title: \"Your resource hub: every page made for you, on one home page\" },\n  { href: \"/account/membership/\",        label: \"Billing\",           group: \"profile\" },\n  { href: \"/account/transcripts/\",       label: \"Sales Transcripts\", group: \"profile\", title: \"Sales call transcripts\" },\n  { href: \"/account/voice-of-customer/\", label: \"Voice of Customer\", group: \"profile\", title: \"Voice of Customer\" },\n];\n// A customer with a page plan (functions/api/your-pages.js \"me\") gets their own bar: Review (the pages we send them)\n// and Settings, with Team, Email preferences and Billing behind the avatar. That's all a customer does here: give\n// feedback on the pages and control their own settings. Everyone else, operators included, and anyone without a\n// page plan, keeps the bar above. The answer is kept for the tab's session, so the bar is right from first paint.\nconst TAB_ICONS = {\n  home: '<path d=\"M3 10.5 12 3l9 7.5\"/><path d=\"M5 9.5V21h14V9.5\"/>',\n  pages: '<rect x=\"4\" y=\"3\" width=\"16\" height=\"18\" rx=\"2\"/><path d=\"M8 8h8\"/><path d=\"M8 12h8\"/><path d=\"M8 16h5\"/>',\n  settings: '<circle cx=\"12\" cy=\"12\" r=\"3\"/><path d=\"M19.4 15a1.7 1.7 0 0 0 .3 1.8l.1.1a2 2 0 1 1-2.8 2.8l-.1-.1a1.7 1.7 0 0 0-1.8-.3 1.7 1.7 0 0 0-1 1.5V21a2 2 0 1 1-4 0v-.1a1.7 1.7 0 0 0-1.1-1.5 1.7 1.7 0 0 0-1.8.3l-.1.1a2 2 0 1 1-2.8-2.8l.1-.1a1.7 1.7 0 0 0 .3-1.8 1.7 1.7 0 0 0-1.5-1H3a2 2 0 1 1 0-4h.1a1.7 1.7 0 0 0 1.5-1.1 1.7 1.7 0 0 0-.3-1.8l-.1-.1a2 2 0 1 1 2.8-2.8l.1.1a1.7 1.7 0 0 0 1.8.3H9a1.7 1.7 0 0 0 1-1.5V3a2 2 0 1 1 4 0v.1a1.7 1.7 0 0 0 1 1.5 1.7 1.7 0 0 0 1.8-.3l.1-.1a2 2 0 1 1 2.8 2.8l-.1.1a1.7 1.7 0 0 0-.3 1.8V9a1.7 1.7 0 0 0 1.5 1H21a2 2 0 1 1 0 4h-.1a1.7 1.7 0 0 0-1.5 1z\"/>',\n};\nexport function customerLinks() {\n  return [\n    { href: REVIEW_HREF, label: NAV.review, group: \"primary\", icon: \"pages\" },\n    { href: SETTINGS_HREF, label: NAV.settings, group: \"primary\", icon: \"settings\" },\n    { href: \"/account/brand/?people=1\", label: NAV.team, group: \"profile\" },\n    { href: \"/account/brand/?row=emails#settings\", label: NAV.emails, group: \"profile\" },\n    { href: \"/account/membership/\", label: NAV.billing, group: \"profile\" },\n  ];\n}\nconst CUST_KEY = \"rl.custnav.v2\", CUST_TTL = 30 * 60e3;\nfunction cachedMe() {\n  try { const x = JSON.parse(sessionStorage.getItem(CUST_KEY) || \"null\"); return x && Date.now() - x.at < CUST_TTL ? x.me : null; } catch { return null; }\n}\nexport const linksFor = (me) => (me && me.customer && !me.operator ? customerLinks(me) : ACCOUNT_LINKS);\nlet LINKS = linksFor(cachedMe());\nconst PRIMARY = () => LINKS.filter((l) => l.group === \"primary\");\nconst PROFILE = () => LINKS.filter((l) => l.group === \"profile\");\n\n// Run fn once the page has loaded and gone idle — for work nothing on screen is\n// waiting for. After `load`, then requestIdleCallback (with a deadline, so a busy\n// page still gets it); where there is no requestIdleCallback (Safari), a 1.5 s\n// timer. Never throws.\nexport function whenIdle(fn, { timeout = 4000, fallbackMs = 1500, loadCapMs = 8000 } = {}) {\n  let ran = false;\n  const run = () => { if (ran) return; ran = true; try { fn(); } catch { /* best-effort */ } };\n  let queued = false;\n  const idle = () => {\n    if (queued) return; queued = true;\n    try { if (typeof requestIdleCallback === \"function\") { requestIdleCallback(run, { timeout }); return; } } catch { /* fall through */ }\n    setTimeout(run, fallbackMs);\n  };\n  try {\n    if (typeof document !== \"undefined\" && document.readyState !== \"complete\" && typeof addEventListener === \"function\") {\n      addEventListener(\"load\", idle, { once: true });\n      setTimeout(idle, loadCapMs);   // a resource that never finishes must not hold it forever\n      return;\n    }\n  } catch { /* fall through */ }\n  idle();\n}\n\nfunction currentNavHref() {\n  const p = location.pathname;\n  if (p === \"/account/\" || p === \"/account\") return \"/account/\";\n  if (p.startsWith(\"/account/crawl\")) return \"/account/audits/\"; // the crawl hub lives under Crawls\n  const m = LINKS\n    .filter((l) => l.href !== \"/account/\" && p.startsWith(l.href))\n    .sort((a, b) => b.href.length - a.href.length)[0];\n  return m ? m.href : null;\n}\n\n// Render the single-bar nav on every account page that has the standard chrome\n// (a .site-nav + .account-subnav). No-ops on the booklet readers / login / ops.\n// Idempotent — safe to run once per load, including on pages already migrated.\nfunction canonicalAccountNav() {\n  const siteNav = document.querySelector(\".site-nav\");\n  const inner = siteNav && siteNav.querySelector(\".site-nav__inner\");\n  const subnav = document.querySelector(\".account-subnav\");\n  if (!siteNav || !inner || !subnav) return;\n\n  if (!document.querySelector('link[href=\"/account/redesign.css\"]')) {\n    const link = document.createElement(\"link\");\n    link.rel = \"stylesheet\";\n    link.href = \"/account/redesign.css\";\n    document.head.appendChild(link);\n  }\n  siteNav.classList.add(\"rl-topbar\");\n  if (subnav.parentElement !== inner) inner.appendChild(subnav); // into the logo bar\n\n  const cur = currentNavHref();\n  let host = subnav.querySelector(\".account-subnav__links\");\n  if (!host) { host = document.createElement(\"div\"); host.className = \"account-subnav__links\"; subnav.prepend(host); }\n  // Desktop top bar shows only the primary destinations; the rest live in the\n  // profile dropdown built below.\n  host.innerHTML = PRIMARY().map((l) =>\n    `<a href=\"${safeHref(l.href)}\" class=\"account-subnav__link${l.cta ? \" account-subnav__link--cta\" : \"\"}\"${l.href === cur ? ' aria-current=\"page\"' : \"\"}${l.title ? ` title=\"${l.title}\"` : \"\"}>${l.label}</a>`).join(\"\");\n\n  // The old inline \"Sign out\" button (.account-subnav__signout, id=\"signout\") is\n  // wired per-page, so we leave it in the DOM — CSS hides it — and surface Sign\n  // out inside the profile dropdown instead.\n  buildProfileMenu(subnav, cur);\n  document.querySelectorAll(\".account-subtabs\").forEach((el) => el.remove());\n  scopeVocLinks();\n}\n\n// Voice of Customer is the evidence base a foundation is built on, so from inside a\n// crawl it has to mean THIS crawl's evidence. Without an id the API falls back to\n// \"the latest VoC across every series you can see\" — for an operator that is a coin\n// flip, and for a customer with more than one crawl it is quietly the wrong document.\n// Anywhere without a crawl in scope (Home, To-Dos, Dashboard) the id-less link is\n// correct and is left alone.\nfunction scopeVocLinks() {\n  const id = new URLSearchParams(location.search).get(\"id\");\n  if (!id || !/^[0-9a-f-]{36}$/i.test(id)) return;\n  document.querySelectorAll('a[href^=\"/account/voice-of-customer/\"]').forEach((a) => {\n    const u = new URL(a.getAttribute(\"href\"), location.origin);\n    if (u.searchParams.has(\"id\")) return;\n    u.searchParams.set(\"id\", id);\n    a.setAttribute(\"href\", safeHref(u.pathname + u.search + u.hash));\n  });\n}\n\n// The profile dropdown — an avatar button pinned to the right of the top bar that\n// opens a small menu of the secondary destinations (Activity, Billing, Sales\n// Transcripts, Voice of Customer) plus Sign out. Desktop-only: it lives inside\n// .account-subnav, which account.css hides on mobile (the hamburger covers those\n// links there). Idempotent.\nfunction buildProfileMenu(subnav, cur) {\n  if (subnav.querySelector(\".rl-profile\")) return;\n  const onProfilePage = PROFILE().some((l) => l.href === cur);\n  const wrap = document.createElement(\"div\");\n  wrap.className = \"rl-profile\";\n  wrap.innerHTML =\n    `<button type=\"button\" class=\"rl-profile__btn${onProfilePage ? \" is-active\" : \"\"}\" ` +\n    `aria-haspopup=\"true\" aria-expanded=\"false\" aria-label=\"Profile and settings\">` +\n    `<span class=\"rl-profile__avatar\" aria-hidden=\"true\">` +\n    `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"12\" cy=\"8\" r=\"4\"/><path d=\"M4 21a8 8 0 0 1 16 0\"/></svg>` +\n    `</span></button>` +\n    `<div class=\"rl-profile__menu\" hidden role=\"menu\" aria-label=\"Profile\">` +\n    PROFILE().map((l) =>\n      `<a class=\"rl-profile__link\" role=\"menuitem\" href=\"${safeHref(l.href)}\"` +\n      `${l.href === cur ? ' aria-current=\"page\"' : \"\"}${l.title ? ` title=\"${l.title}\"` : \"\"}>${l.label}</a>`).join(\"\") +\n    `<div class=\"rl-profile__sep\"></div>` +\n    `<button type=\"button\" class=\"rl-profile__signout\" role=\"menuitem\">Sign out</button>` +\n    `</div>`;\n  subnav.appendChild(wrap);\n\n  const btn = wrap.querySelector(\".rl-profile__btn\");\n  const menu = wrap.querySelector(\".rl-profile__menu\");\n  const setOpen = (open) => {\n    menu.hidden = !open;\n    btn.setAttribute(\"aria-expanded\", String(open));\n    wrap.classList.toggle(\"is-open\", open);\n  };\n  btn.addEventListener(\"click\", (e) => { e.stopPropagation(); setOpen(menu.hidden); });\n  document.addEventListener(\"click\", (e) => { if (!wrap.contains(e.target)) setOpen(false); });\n  document.addEventListener(\"keydown\", (e) => { if (e.key === \"Escape\") setOpen(false); });\n  wrap.querySelectorAll(\".rl-profile__link\").forEach((a) => a.addEventListener(\"click\", () => setOpen(false)));\n  wrap.querySelector(\".rl-profile__signout\").addEventListener(\"click\", async () => {\n    setOpen(false);\n    try { const { signOut } = await import(\"/account/auth.js\"); await signOut(); }\n    catch { location.href = \"/account/login/\"; }\n  });\n\n  // Swap the placeholder person glyph for the user's monogram once resolved.\n  (async () => {\n    try {\n      const { getUser } = await import(\"/account/auth.js\");\n      const u = await getUser();\n      const src = (u && (u.user_metadata?.full_name || u.user_metadata?.name || u.email)) || \"\";\n      const initial = src.trim() ? src.trim()[0].toUpperCase() : \"\";\n      if (initial) {\n        const av = wrap.querySelector(\".rl-profile__avatar\");\n        av.textContent = initial;\n        av.classList.add(\"rl-profile__avatar--mono\");\n      }\n    } catch {}\n  })();\n}\n\nfunction initAccountNav() {\n  canonicalAccountNav(); // unify the desktop nav first, then enhance for mobile\n  // Operators get the universal switcher (My account / Ops board / View as customer)\n  // on EVERY account page — lazy-loaded, no-ops for everyone else.\n  if (document.querySelector(\".account-subnav\")) {\n    import(\"/account/operator-bar.js\").then((m) => m.initOperatorBar()).catch(() => {});\n  }\n  const subnav = document.querySelector(\".account-subnav\");\n  const navInner = document.querySelector(\".site-nav__inner\");\n  if (!subnav || !navInner || navInner.querySelector(\".acct-burger\")) return;\n\n  // The mobile menu shows the FULL flat list (primary + profile), unlike the\n  // desktop bar which splits the profile links into the avatar dropdown. Built\n  // straight from ACCOUNT_LINKS so nothing is buried behind an extra tap; current\n  // page is matched via currentNavHref() (same logic the desktop bar uses).\n  const curHref = currentNavHref();\n  const links = menuLinks(curHref);\n  if (!links.length) return;\n\n  // Hamburger button → into the top logo bar (flex space-between puts it right).\n  const burger = document.createElement(\"button\");\n  burger.type = \"button\";\n  burger.className = \"acct-burger\";\n  burger.setAttribute(\"aria-label\", \"Open account menu\");\n  burger.setAttribute(\"aria-expanded\", \"false\");\n  burger.setAttribute(\"aria-controls\", \"acct-menu\");\n  burger.innerHTML =\n    '<span class=\"acct-burger__bar\"></span><span class=\"acct-burger__bar\"></span><span class=\"acct-burger__bar\"></span>';\n  navInner.appendChild(burger);\n\n  // Backdrop + slide-down panel live at the top of <body> so they're never\n  // clipped by a positioned/hidden ancestor (e.g. the authed #dash container).\n  const backdrop = document.createElement(\"div\");\n  backdrop.className = \"acct-menu__backdrop\";\n\n  const menu = document.createElement(\"nav\");\n  menu.className = \"acct-menu\";\n  menu.id = \"acct-menu\";\n  menu.setAttribute(\"aria-label\", \"Account\");\n  menu.innerHTML =\n    `<div class=\"acct-menu__links\">${menuHtml(links)}</div>` +\n    `<button type=\"button\" class=\"acct-menu__signout\">Sign out</button>`;\n\n  document.body.append(backdrop, menu);\n\n  // ── Persistent bottom tab bar (mobile) ─────────────────────────────────────\n  // The hamburger holds the full list (+ Sign out); the tab bar surfaces the\n  // primary destinations so navigation is always exposed on mobile, on every\n  // account page — no need to open a menu to move around. Mirrors the desktop\n  // top bar (Home, Crawls, To-Dos, Dashboard); the profile-group links (Activity,\n  // Billing, …) live in the hamburger, and Activity's unread badge rides the\n  // hamburger button (see paintActivityBadge).\n  // Icons are inline SVG (stroke: currentColor) so they pick up the accent on\n  // the current tab.\n  const TABS = LINKS !== ACCOUNT_LINKS ? null : DEFAULT_TABS;\n  // Current tab = the subnav link flagged aria-current; fall back to a path match.\n  const tabbar = document.createElement(\"nav\");\n  tabbar.className = \"acct-tabbar\";\n  tabbar.setAttribute(\"aria-label\", \"Account sections\");\n  tabbar.innerHTML = tabbarHtml(TABS, links);\n  document.body.appendChild(tabbar);\n  document.body.classList.add(\"has-tabbar\"); // CSS reserves bottom padding on mobile\n\n  // ── The escape hatch ───────────────────────────────────────────────────────\n  // Self-serve should never mean stranded. One quiet line at the foot of every\n  // account page says how to reach a person, in the two ways that already work.\n  if (!document.querySelector(\".acct-ask\")) {\n    const ask = document.createElement(\"footer\");\n    ask.className = \"acct-ask\";\n    ask.innerHTML = `Stuck, or unsure what a number means? Reply to any email from us, or write to <a href=\"mailto:hello@resonatelabs.co\">hello@resonatelabs.co</a>. A person answers.`;\n    (document.querySelector(\"main.account\") || document.body).appendChild(ask);\n  }\n  pinTabbarToScreenBottom(tabbar);\n\n  // ── Activity inbox badge ───────────────────────────────────────────────────\n  // A live unread count on the profile avatar (desktop) and hamburger (mobile) —\n  // the \"more\" surfaces Activity now lives behind — plus the Activity row inside\n  // each menu, so new activity announces itself on EVERY account page. Source is the\n  // same 60s-TTL SWR cache the Activity page uses (sessionStorage-backed, per tab),\n  // so this costs at most one inbox fetch per minute per tab — not one per page.\n  const ACTIVITY_HREF = \"/account/activity/\";\n  function paintActivityBadge(n) {\n    // Activity now lives behind the profile dropdown (desktop) and the hamburger\n    // (mobile), so the badge rides those \"more\" surfaces plus the Activity row\n    // inside each menu — not the top bar or bottom tab bar anymore.\n    const targets = [\n      subnav.querySelector(\".rl-profile__btn\"),\n      subnav.querySelector(`.rl-profile__link[href=\"${ACTIVITY_HREF}\"]`),\n      burger,\n      menu.querySelector(`.acct-menu__link[href=\"${ACTIVITY_HREF}\"]`),\n    ];\n    for (const el of targets) {\n      if (!el) continue;\n      let b = el.querySelector(\".acct-badge\");\n      if (n > 0) {\n        if (!b) { b = document.createElement(\"span\"); b.className = \"acct-badge\"; el.appendChild(b); }\n        b.textContent = n > 99 ? \"99+\" : String(n);\n        // The number alone reads as a system alert; the label says what it is.\n        const what = `${n} unread in Activity: notes and replies from our team on your crawls`;\n        b.setAttribute(\"aria-label\", what);\n        el.title = what;\n        el.classList.add(\"has-badge\");\n      } else if (b) { b.remove(); el.classList.remove(\"has-badge\"); el.removeAttribute(\"title\"); }\n    }\n  }\n  // The Activity page computes the same count locally and broadcasts it, so opening\n  // a thread there updates this badge instantly without a refetch.\n  window.addEventListener(\"activity:unread\", (e) => paintActivityBadge(Math.max(0, (e.detail && e.detail.count) | 0)));\n\n  async function refreshActivityBadge() {\n    try {\n      const [{ swr }, { apiPost }] = await Promise.all([\n        import(\"/account/datacache.js\"), import(\"/account/auth.js\"),\n      ]);\n      let prefs = null;\n      const count = (inbox) => {\n        const seen = (prefs && prefs.prefs && prefs.prefs.seen) || {};\n        const ms = (iso) => (iso ? Date.parse(iso) || 0 : 0);\n        const allRead = ms(prefs && prefs.prefs && prefs.prefs.allReadAt);\n        let n = 0;\n        for (const s of (inbox && inbox.sections) || []) for (const r of s.rows) {\n          if (ms(r.at) > Math.max(ms(seen[r.tkey]), allRead)) n++;\n        }\n        return n;\n      };\n      let painted = false;\n      const [inbox, pr] = await Promise.all([\n        // A fresher inbox repaints the badge — a targeted update of one number.\n        swr(\"activity-inbox\", () => apiPost(\"/api/collab/inbox\", {}), {\n          ttl: 60000, onUpdate: (fresh) => { if (painted) paintActivityBadge(count(fresh)); },\n        }),\n        apiPost(\"/api/user-preferences\", { scope: \"activity\" }).catch(() => null),\n      ]);\n      prefs = pr;\n      paintActivityBadge(count(inbox));\n      painted = true;\n    } catch {}\n  }\n  /* The Activity page broadcasts its own count; everywhere else, self-fetch\n     (cached) — but not now. These two reads used to leave with the page's own\n     first requests and compete with them for the connection, for a badge on a\n     menu nobody has opened yet. Nothing at first paint reads the badge (it is\n     painted into the menu whenever the count arrives), so they wait until the\n     page is idle. */\n  if (!location.pathname.startsWith(ACTIVITY_HREF)) whenIdle(refreshActivityBadge);\n\n  const setOpen = (open) => {\n    burger.classList.toggle(\"is-open\", open);\n    burger.setAttribute(\"aria-expanded\", String(open));\n    burger.setAttribute(\"aria-label\", open ? \"Close account menu\" : \"Open account menu\");\n    menu.classList.toggle(\"is-open\", open);\n    backdrop.classList.toggle(\"is-open\", open);\n    document.body.classList.toggle(\"acct-menu-open\", open);\n  };\n\n  burger.addEventListener(\"click\", () => setOpen(!menu.classList.contains(\"is-open\")));\n  backdrop.addEventListener(\"click\", () => setOpen(false));\n  // Delegated: the links are drawn again when a customer's bar replaces the default one (paintNav).\n  menu.addEventListener(\"click\", (e) => { if (e.target.closest && e.target.closest(\".acct-menu__link\")) setOpen(false); });\n  document.addEventListener(\"keydown\", (e) => { if (e.key === \"Escape\") setOpen(false); });\n\n  // Sign out resolves lazily (dynamic import avoids a static cycle with auth.js,\n  // which loads this module). Falls back to the login route if anything fails.\n  menu.querySelector(\".acct-menu__signout\").addEventListener(\"click\", async () => {\n    setOpen(false);\n    try { const { signOut } = await import(\"/account/auth.js\"); await signOut(); }\n    catch { location.href = \"/account/login/\"; }\n  });\n\n  // Again, because the mobile menu is built after canonicalAccountNav() already ran.\n  // Idempotent — it skips any link that already carries an id.\n  scopeVocLinks();\n  // Is this a customer with a page plan? Asked once the page is idle (at once on their Pages, where it shows),\n  // kept for the session, and the bar is drawn again only if the answer changes it.\n  if (location.pathname.startsWith(YOUR_PAGES_HREF)) refreshCustomerNav(true); else if (!cachedMe()) whenIdle(() => refreshCustomerNav());\n}\n\n// ── The bar's pieces, drawn from LINKS (so a customer's bar can replace the default in place) ──\nfunction menuLinks(curHref) {\n  return LINKS.map((l) => ({ href: l.href, text: l.label, current: l.href === curHref, cta: !!l.cta }));\n}\nfunction menuHtml(links) {\n  return links.map((l) =>\n    `<a class=\"acct-menu__link${l.current ? \" is-current\" : \"\"}${l.cta ? \" acct-menu__link--cta\" : \"\"}\" href=\"${safeHref(l.href)}\"` +\n    `${l.current ? ' aria-current=\"page\"' : \"\"}>${l.text}</a>`).join(\"\");\n}\nfunction tabbarHtml(tabs, links) {\n  const list = tabs || PRIMARY().map((l) => ({ href: l.href, label: l.label, icon: TAB_ICONS[l.icon] || TAB_ICONS.home }));\n  // Current tab = the link flagged current; fall back to a path match.\n  const currentHref = (links.find((l) => l.current) || {}).href || location.pathname;\n  return list.map((t) => {\n    const isCur = t.href === currentHref;\n    return `<a class=\"acct-tab${isCur ? \" is-current\" : \"\"}\" href=\"${safeHref(t.href)}\"${isCur ? ' aria-current=\"page\"' : \"\"}>` +\n      `<svg class=\"acct-tab__icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\">${t.icon}</svg>` +\n      `<span class=\"acct-tab__label\">${t.label}</span></a>`;\n  }).join(\"\");\n}\n// Draw every piece of the bar again from LINKS: the top links, the avatar menu, the phone menu and tab bar.\nfunction paintNav() {\n  const subnav = document.querySelector(\".account-subnav\");\n  if (!subnav) return;\n  const cur = currentNavHref();\n  const host = subnav.querySelector(\".account-subnav__links\");\n  if (host) host.innerHTML = PRIMARY().map((l) =>\n    `<a href=\"${safeHref(l.href)}\" class=\"account-subnav__link${l.cta ? \" account-subnav__link--cta\" : \"\"}\"${l.href === cur ? ' aria-current=\"page\"' : \"\"}${l.title ? ` title=\"${l.title}\"` : \"\"}>${l.label}</a>`).join(\"\");\n  subnav.querySelector(\".rl-profile\")?.remove();\n  buildProfileMenu(subnav, cur);\n  const links = menuLinks(cur);\n  const m = document.querySelector(\"#acct-menu .acct-menu__links\");\n  if (m) m.innerHTML = menuHtml(links);\n  const tb = document.querySelector(\".acct-tabbar\");\n  if (tb) tb.innerHTML = tabbarHtml(LINKS === ACCOUNT_LINKS ? DEFAULT_TABS : null, links);\n}\nconst DEFAULT_TABS = [\n  { href: \"/account/\", label: \"Home\", icon: TAB_ICONS.home },\n  { href: \"/account/audits/\", label: \"Crawls\", icon: '<circle cx=\"11\" cy=\"11\" r=\"7\"/><path d=\"m20 20-3.6-3.6\"/>' },\n  { href: \"/account/actions/\", label: \"To-Dos\", icon: '<path d=\"M9 6h11\"/><path d=\"M9 12h11\"/><path d=\"M9 18h11\"/><path d=\"m4 5 1.2 1.2L7.5 4\"/><path d=\"m4 11 1.2 1.2L7.5 10\"/><path d=\"m4 17 1.2 1.2L7.5 16\"/>' },\n  { href: \"/account/dashboard/\", label: \"Dashboard\", icon: '<rect x=\"3\" y=\"3\" width=\"7\" height=\"9\" rx=\"1\"/><rect x=\"14\" y=\"3\" width=\"7\" height=\"5\" rx=\"1\"/><rect x=\"14\" y=\"12\" width=\"7\" height=\"9\" rx=\"1\"/><rect x=\"3\" y=\"16\" width=\"7\" height=\"5\" rx=\"1\"/>' },\n];\nasync function refreshCustomerNav(force = false) {\n  if (!force && cachedMe()) return;\n  try {\n    const { apiPost } = await import(\"/account/auth.js\");\n    const me = await apiPost(\"/api/your-pages\", { action: \"me\" });\n    try { sessionStorage.setItem(CUST_KEY, JSON.stringify({ at: Date.now(), me })); } catch { /* private mode */ }\n    const want = linksFor(me);\n    if (JSON.stringify(want) === JSON.stringify(LINKS)) return;\n    LINKS = want;\n    paintNav();\n  } catch { /* signed out, or offline: the bar stays as it is */ }\n}\n\n// ── Keep the tab bar on the real bottom edge, browser toolbar or not ─────────\n// iOS Safari lays `position: fixed; bottom: 0` out against the viewport as sized\n// while its own bottom toolbar (back/forward arrows, share) is showing. Scroll\n// that toolbar away and the visible area gets ~100pt taller, but the bar stays\n// where the toolbar used to start — stranded mid-screen with page content\n// scrolling underneath it, instead of sitting flat on the bottom of the phone.\n//\n// So we measure it: `visualViewport` reports where the screen actually ends, the\n// bar's own client rect reports where the browser put it, and the gap between\n// them goes into --tabbar-shift (see .acct-tabbar in account.css). The shift is\n// clamped to positive values, so this can only ever push the bar DOWN toward the\n// real edge — browsers that already pin it correctly (desktop, Android Chrome)\n// measure a gap of 0 and are left alone.\nfunction pinTabbarToScreenBottom(tabbar) {\n  const vv = window.visualViewport;\n  if (!vv) return; // no way to ask where the screen ends; leave `bottom: 0` be\n  const root = document.documentElement;\n  let shift = 0, raf = 0;\n\n  const measure = () => {\n    raf = 0;\n    // Hidden by the desktop breakpoint or the embed chrome — nothing to pin.\n    const rect = tabbar.getBoundingClientRect();\n    if (!rect.height) return;\n    // Pinch-zoom makes visual-viewport coordinates meaningless here: fall back\n    // to the plain `bottom: 0` position rather than chase a moving frame.\n    const gap = vv.scale > 1.01 ? -shift : vv.offsetTop + vv.height - rect.bottom;\n    // Correct against where the bar currently renders, so the shift converges\n    // regardless of which viewport the browser measured `bottom: 0` from. The\n    // 160px ceiling is a sanity rail (Safari's toolbar is ~50pt); a negative\n    // result means the visible area SHRANK — an open keyboard — and lifting the\n    // bar there would park it on top of the field being typed into.\n    const next = Math.max(0, Math.min(Math.round(shift + gap), 160));\n    if (next === shift) return;\n    shift = next;\n    root.style.setProperty(\"--tabbar-shift\", shift + \"px\");\n  };\n  const schedule = () => { if (!raf) raf = requestAnimationFrame(measure); };\n\n  // resize fires when the toolbar collapses/expands; scroll catches the visual\n  // viewport sliding within the layout viewport on the way there.\n  vv.addEventListener(\"resize\", schedule);\n  vv.addEventListener(\"scroll\", schedule);\n  window.addEventListener(\"orientationchange\", schedule);\n  window.addEventListener(\"pageshow\", schedule); // bfcache restores mid-scroll state\n  schedule();\n}\n\nif (document.readyState === \"loading\") {\n  document.addEventListener(\"DOMContentLoaded\", initAccountNav);\n} else {\n  initAccountNav();\n}\n"],
  "mappings": "AAkBA,OAAS,YAAAA,MAAgB,uBACzB,OAAS,OAAAC,EAAK,mBAAAC,EAAiB,eAAAC,EAAa,iBAAAC,MAAqB,8BACjE,MAAMC,EAAgB,CACpB,CAAE,KAAM,YAA+B,MAAO,OAAqB,MAAO,SAAU,EACpF,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AAM,CACpBD,EAAM,EAEN,MAAME,EAAOvC,EAAO,sBAAsB,EAC1C,GAAI,CAACuC,EAAK,OAAQ,OAGlB,MAAMC,EAAMN,EAAG,MAAQ,KAAO,CAACE,EAAQF,EAAG,UAAYA,EAAG,OAASK,EAAK,OAMjEE,EAAO,KAAK,IAAI,EAAG,KAAK,IAAI,KAAK,MAAML,EAAQI,CAAG,EAAG,GAAG,CAAC,EAC3DC,IAASL,IACbA,EAAQK,EACRN,EAAK,MAAM,YAAY,iBAAkBC,EAAQ,IAAI,EACvD,EACMM,EAAW,IAAM,CAAOL,IAAKA,EAAM,sBAAsBC,CAAO,EAAG,EAIzEJ,EAAG,iBAAiB,SAAUQ,CAAQ,EACtCR,EAAG,iBAAiB,SAAUQ,CAAQ,EACtC,OAAO,iBAAiB,oBAAqBA,CAAQ,EACrD,OAAO,iBAAiB,WAAYA,CAAQ,EAC5CA,EAAS,CACX,CAEI,SAAS,aAAe,UAC1B,SAAS,iBAAiB,mBAAoBpD,CAAc,EAE5DA,EAAe",
  "names": ["safeHref", "NAV", "YOUR_PAGES_HREF", "REVIEW_HREF", "SETTINGS_HREF", "ACCOUNT_LINKS", "TAB_ICONS", "CUST_KEY", "CUST_TTL", "cachedMe", "x", "me", "LINKS", "PRIMARY", "l", "PROFILE", "fn", "timeout", "fallbackMs", "loadCapMs", "ran", "run", "queued", "idle", "currentNavHref", "p", "m", "a", "b", "canonicalAccountNav", "siteNav", "inner", "subnav", "link", "cur", "host", "buildProfileMenu", "el", "scopeVocLinks", "id", "u", "onProfilePage", "wrap", "btn", "menu", "setOpen", "open", "e", "signOut", "getUser", "src", "initial", "av", "initAccountNav", "navInner", "curHref", "links", "menuLinks", "burger", "backdrop", "menuHtml", "TABS", "DEFAULT_TABS", "tabbar", "tabbarHtml", "ask", "pinTabbarToScreenBottom", "ACTIVITY_HREF", "paintActivityBadge", "n", "targets", "what", "refreshActivityBadge", "swr", "apiPost", "prefs", "count", "inbox", "seen", "ms", "iso", "allRead", "s", "r", "painted", "pr", "fresh", "refreshCustomerNav", "tabs", "list", "currentHref", "t", "isCur", "paintNav", "tb", "force", "want", "vv", "root", "shift", "raf", "measure", "rect", "gap", "next", "schedule"]
}
