{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "waitlist-counter",
  "type": "registry:component",
  "title": "Waitlist: Live Counter",
  "description": "A light, centered waitlist with an email field, a rolling counter that ticks up live and on signup, an avatar stack and a road-to-launch bar. After signup it shows the spot number and a referral link to copy.",
  "author": "Hyperblur <hello@hyperblur.dev>",
  "dependencies": [],
  "registryDependencies": [],
  "categories": [
    "waitlist",
    "waitlist",
    "email",
    "counter",
    "referral",
    "launch",
    "light"
  ],
  "docs": "https://hyperblur.dev/effects/waitlist-counter",
  "files": [
    {
      "path": "registry/hyperblur/waitlist-counter.tsx",
      "type": "registry:component",
      "target": "components/hyperblur/waitlist-counter.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nexport interface WaitlistCounterProps extends Omit<React.HTMLAttributes<HTMLElement>, \"title\" | \"onSubmit\"> {\n  eyebrow?: string;\n  title?: string;\n  subtitle?: string;\n  count?: number;\n  live?: boolean;\n  avatars?: string[];\n  placeholder?: string;\n  ctaLabel?: string;\n  progress?: number;\n  progressLabel?: string;\n  milestones?: string[];\n  referralBase?: string;\n  referralBonus?: string;\n  onSubmit?: (email: string, position: number) => void;\n  onReferralCopy?: (url: string) => void;\n  accent?: string;\n}\n\nconst css = `\n@keyframes hb-kh8-fill { from { transform: scaleX(0); } }\n@keyframes hb-kh8-shine {\n  0% { transform: translateX(-100%); }\n  100% { transform: translateX(250%); }\n}\n@keyframes hb-kh8-in {\n  from { opacity: 0; transform: translate3d(0, 10px, 0) scale(0.98); }\n  to { opacity: 1; transform: none; }\n}\n@keyframes hb-kh8-ping {\n  0% { transform: scale(1); opacity: 0.7; }\n  100% { transform: scale(2.4); opacity: 0; }\n}\n@keyframes hb-kh8-bump {\n  0% { transform: none; }\n  40% { transform: translateY(-2px); color: var(--hb-kh8-accent); }\n  100% { transform: none; }\n}\n.hb-kh8 {\n  --hb-kh8-accent: #6d4aff;\n  --hb-kh8-ink: #121216;\n  --hb-kh8-muted: #6b6b76;\n  position: relative;\n  box-sizing: border-box;\n  width: 100%;\n  overflow: hidden;\n  container-type: inline-size;\n  background: #ffffff;\n  color: var(--hb-kh8-ink);\n  font-family: inherit;\n  -webkit-font-smoothing: antialiased;\n}\n.hb-kh8 *, .hb-kh8 *::before, .hb-kh8 *::after { box-sizing: border-box; }\n.hb-kh8-bg {\n  position: absolute;\n  inset: 0;\n  pointer-events: none;\n  background:\n    radial-gradient(46% 40% at 50% 0%, color-mix(in srgb, var(--hb-kh8-accent) 14%, transparent), transparent 70%),\n    radial-gradient(30% 30% at 12% 90%, color-mix(in srgb, var(--hb-kh8-accent) 6%, transparent), transparent 70%),\n    radial-gradient(30% 30% at 88% 80%, rgba(255, 170, 120, 0.1), transparent 70%);\n}\n.hb-kh8-arcs {\n  position: absolute;\n  top: -540px;\n  left: 50%;\n  width: 1100px;\n  height: 1100px;\n  margin-left: -550px;\n  border-radius: 50%;\n  pointer-events: none;\n  background: repeating-radial-gradient(circle, transparent 0 79px, rgba(18, 18, 22, 0.05) 79px 80px);\n  mask-image: radial-gradient(circle, #000 30%, transparent 70%);\n  -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 70%);\n}\n.hb-kh8-in {\n  position: relative;\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  max-width: 1120px;\n  margin: 0 auto;\n  padding: 72px 20px 80px;\n  text-align: center;\n}\n.hb-kh8-eyebrow {\n  display: inline-flex;\n  align-items: center;\n  gap: 8px;\n  height: 30px;\n  padding: 0 14px;\n  border: 1px solid rgba(18, 18, 22, 0.08);\n  border-radius: 999px;\n  background: rgba(255, 255, 255, 0.8);\n  box-shadow: 0 1px 2px rgba(18, 18, 22, 0.04);\n  color: #3e3e48;\n  font-size: 12.5px;\n  font-weight: 500;\n}\n.hb-kh8-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--hb-kh8-accent); }\n.hb-kh8-dot::after {\n  content: \"\";\n  position: absolute;\n  inset: 0;\n  border-radius: 50%;\n  background: var(--hb-kh8-accent);\n  animation: hb-kh8-ping 1.8s ease-out infinite;\n}\n.hb-kh8-title {\n  max-width: 760px;\n  margin: 20px 0 0;\n  font-size: clamp(36px, 6.4cqw, 66px);\n  font-weight: 650;\n  line-height: 1;\n  letter-spacing: -0.05em;\n  text-wrap: balance;\n}\n.hb-kh8-title span {\n  background: linear-gradient(100deg, var(--hb-kh8-accent), color-mix(in srgb, var(--hb-kh8-accent) 50%, #ff7a59));\n  -webkit-background-clip: text;\n  background-clip: text;\n  color: transparent;\n}\n.hb-kh8-sub {\n  max-width: 520px;\n  margin: 18px 0 0;\n  color: var(--hb-kh8-muted);\n  font-size: 16.5px;\n  line-height: 1.6;\n  text-wrap: pretty;\n}\n.hb-kh8-form {\n  display: flex;\n  width: 100%;\n  max-width: 460px;\n  margin-top: 30px;\n  padding: 5px;\n  border: 1px solid rgba(18, 18, 22, 0.1);\n  border-radius: 999px;\n  background: #ffffff;\n  box-shadow: 0 1px 2px rgba(18, 18, 22, 0.05), 0 14px 34px -18px color-mix(in srgb, var(--hb-kh8-accent) 45%, rgba(18, 18, 22, 0.3));\n  transition: border-color 0.2s ease, box-shadow 0.2s ease;\n}\n.hb-kh8-form:focus-within {\n  border-color: color-mix(in srgb, var(--hb-kh8-accent) 55%, transparent);\n  box-shadow: 0 0 0 4px color-mix(in srgb, var(--hb-kh8-accent) 14%, transparent), 0 14px 34px -18px color-mix(in srgb, var(--hb-kh8-accent) 45%, rgba(18, 18, 22, 0.3));\n}\n.hb-kh8-input {\n  flex: 1;\n  min-width: 0;\n  height: 44px;\n  margin: 0;\n  padding: 0 8px 0 16px;\n  border: 0;\n  background: transparent;\n  color: var(--hb-kh8-ink);\n  font: inherit;\n  font-size: 15px;\n  outline: none;\n}\n.hb-kh8-input::placeholder { color: #9a9aa4; }\n.hb-kh8-btn {\n  position: relative;\n  flex: none;\n  height: 44px;\n  margin: 0;\n  padding: 0 20px;\n  overflow: hidden;\n  border: 0;\n  border-radius: 999px;\n  background: var(--hb-kh8-ink);\n  color: #ffffff;\n  font: inherit;\n  font-size: 14.5px;\n  font-weight: 600;\n  white-space: nowrap;\n  cursor: pointer;\n  transition: transform 0.15s ease, background-color 0.2s ease;\n}\n.hb-kh8-btn:hover { background: #000000; }\n.hb-kh8-btn:active { transform: scale(0.97); }\n.hb-kh8-btn:focus-visible { outline: 2px solid var(--hb-kh8-accent); outline-offset: 3px; }\n.hb-kh8-err { margin: 10px 0 0; color: #d14343; font-size: 13px; }\n.hb-kh8-social {\n  display: flex;\n  flex-wrap: wrap;\n  align-items: center;\n  justify-content: center;\n  gap: 10px 14px;\n  margin-top: 22px;\n  color: var(--hb-kh8-muted);\n  font-size: 14px;\n}\n.hb-kh8-avs { display: flex; padding-left: 8px; }\n.hb-kh8-av {\n  display: grid;\n  place-items: center;\n  width: 30px;\n  height: 30px;\n  margin-left: -8px;\n  border: 2px solid #ffffff;\n  border-radius: 50%;\n  color: #ffffff;\n  font-size: 10.5px;\n  font-weight: 700;\n  box-shadow: 0 1px 2px rgba(18, 18, 22, 0.12);\n}\n.hb-kh8-count { color: var(--hb-kh8-ink); font-weight: 600; }\n.hb-kh8-roll {\n  display: inline-flex;\n  vertical-align: bottom;\n  font-variant-numeric: tabular-nums;\n}\n.hb-kh8-col {\n  display: inline-block;\n  height: 1.25em;\n  overflow: hidden;\n  line-height: 1.25em;\n}\n.hb-kh8-strip {\n  display: flex;\n  flex-direction: column;\n  transition: transform 0.7s cubic-bezier(0.2, 0.9, 0.2, 1);\n}\n.hb-kh8-strip span { height: 1.25em; }\n.hb-kh8-sep { display: inline-block; line-height: 1.25em; }\n.hb-kh8-prog {\n  width: 100%;\n  max-width: 520px;\n  margin-top: 34px;\n  padding: 16px 18px 14px;\n  border: 1px solid rgba(18, 18, 22, 0.07);\n  border-radius: 18px;\n  background: rgba(250, 250, 252, 0.9);\n  box-shadow: 0 1px 0 #ffffff inset;\n  text-align: left;\n}\n.hb-kh8-ph { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 13px; }\n.hb-kh8-ph span { color: var(--hb-kh8-muted); }\n.hb-kh8-ph b { font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; }\n.hb-kh8-bar {\n  position: relative;\n  height: 8px;\n  margin-top: 10px;\n  overflow: hidden;\n  border-radius: 999px;\n  background: rgba(18, 18, 22, 0.07);\n}\n.hb-kh8-fill {\n  position: absolute;\n  inset: 0 auto 0 0;\n  overflow: hidden;\n  border-radius: 999px;\n  background: linear-gradient(90deg, color-mix(in srgb, var(--hb-kh8-accent) 70%, #ffffff), var(--hb-kh8-accent));\n  transform-origin: left;\n  animation: hb-kh8-fill 1.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s both;\n}\n.hb-kh8-fill::after {\n  content: \"\";\n  position: absolute;\n  inset: 0;\n  width: 40%;\n  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);\n  animation: hb-kh8-shine 2.6s ease-in-out 1.8s infinite;\n}\n.hb-kh8-ms {\n  display: grid;\n  grid-template-columns: repeat(var(--hb-kh8-n), minmax(0, 1fr));\n  margin: 10px 0 0;\n  padding: 0;\n  list-style: none;\n  font-size: 11.5px;\n}\n.hb-kh8-ms li { display: flex; align-items: center; gap: 5px; color: #9a9aa4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }\n.hb-kh8-ms li:not(:first-child) { justify-content: center; }\n.hb-kh8-ms li:last-child { justify-content: flex-end; }\n.hb-kh8-ms li[data-done=\"true\"] { color: #3e3e48; }\n.hb-kh8-ms li::before { content: \"\"; flex: none; width: 6px; height: 6px; border-radius: 50%; background: rgba(18, 18, 22, 0.15); }\n.hb-kh8-ms li[data-done=\"true\"]::before { background: var(--hb-kh8-accent); }\n.hb-kh8-done {\n  width: 100%;\n  max-width: 480px;\n  margin-top: 30px;\n  padding: 22px;\n  border: 1px solid color-mix(in srgb, var(--hb-kh8-accent) 25%, rgba(18, 18, 22, 0.08));\n  border-radius: 22px;\n  background: linear-gradient(180deg, color-mix(in srgb, var(--hb-kh8-accent) 6%, #ffffff), #ffffff);\n  box-shadow: 0 20px 44px -26px color-mix(in srgb, var(--hb-kh8-accent) 50%, rgba(18, 18, 22, 0.3));\n  animation: hb-kh8-in 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;\n}\n.hb-kh8-check {\n  display: grid;\n  place-items: center;\n  width: 40px;\n  height: 40px;\n  margin: 0 auto;\n  border-radius: 50%;\n  background: var(--hb-kh8-accent);\n  color: #ffffff;\n  box-shadow: 0 0 0 6px color-mix(in srgb, var(--hb-kh8-accent) 14%, transparent);\n}\n.hb-kh8-check svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }\n.hb-kh8-dt { margin: 14px 0 0; font-size: 20px; font-weight: 650; letter-spacing: -0.02em; }\n.hb-kh8-dt span { color: var(--hb-kh8-accent); font-variant-numeric: tabular-nums; }\n.hb-kh8-dd { margin: 6px 0 0; color: var(--hb-kh8-muted); font-size: 14px; line-height: 1.5; }\n.hb-kh8-ref {\n  display: flex;\n  align-items: center;\n  gap: 8px;\n  margin-top: 16px;\n  padding: 5px 5px 5px 14px;\n  border: 1px solid rgba(18, 18, 22, 0.1);\n  border-radius: 12px;\n  background: #ffffff;\n  text-align: left;\n}\n.hb-kh8-url {\n  flex: 1;\n  min-width: 0;\n  overflow: hidden;\n  color: var(--hb-kh8-ink);\n  font-family: var(--font-mono, ui-monospace), SFMono-Regular, Menlo, monospace;\n  font-size: 13px;\n  white-space: nowrap;\n  text-overflow: ellipsis;\n}\n.hb-kh8-copy {\n  display: inline-flex;\n  flex: none;\n  align-items: center;\n  gap: 6px;\n  height: 34px;\n  margin: 0;\n  padding: 0 12px;\n  border: 0;\n  border-radius: 9px;\n  background: var(--hb-kh8-ink);\n  color: #ffffff;\n  font: inherit;\n  font-size: 13px;\n  font-weight: 600;\n  cursor: pointer;\n  transition: background-color 0.2s ease;\n}\n.hb-kh8-copy[data-done=\"true\"] { background: var(--hb-kh8-accent); }\n.hb-kh8-copy:focus-visible { outline: 2px solid var(--hb-kh8-accent); outline-offset: 2px; }\n.hb-kh8-copy svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }\n.hb-kh8-sr {\n  position: absolute;\n  width: 1px;\n  height: 1px;\n  margin: -1px;\n  overflow: hidden;\n  clip-path: inset(50%);\n  white-space: nowrap;\n}\n@container (max-width: 420px) {\n  .hb-kh8-form { flex-direction: column; gap: 6px; border-radius: 20px; }\n  .hb-kh8-input { height: 46px; }\n  .hb-kh8-btn { width: 100%; }\n  .hb-kh8-ms li:not(:first-child):not(:last-child) { display: none; }\n  .hb-kh8-ms { grid-template-columns: 1fr 1fr; }\n}\n@container (min-width: 720px) {\n  .hb-kh8-in { padding: 88px 40px 100px; }\n}\n@media (prefers-reduced-motion: reduce) {\n  .hb-kh8 *, .hb-kh8 *::before, .hb-kh8 *::after { animation: none !important; transition: none !important; }\n}\n`;\n\nconst defaultAvatars = [\"Maya Lin\", \"Jonah Reyes\", \"Sofia Duarte\", \"Kenji Mori\", \"Ava Brooks\"];\nconst defaultMilestones = [\"Alpha\", \"Private beta\", \"Public beta\", \"Launch\"];\nconst palette = [\"#6d4aff\", \"#ff7a59\", \"#14b8a6\", \"#f59e0b\", \"#3b82f6\", \"#ec4899\"];\nconst ticks = [1, 2, 1, 1, 3, 1, 2, 1, 4, 1];\n\nfunction hashText(text: string) {\n  let h = 2166136261;\n  for (let i = 0; i < text.length; i++) {\n    h ^= text.charCodeAt(i);\n    h = Math.imul(h, 16777619);\n  }\n  return h >>> 0;\n}\n\nfunction initials(name: string) {\n  return name\n    .split(\" \")\n    .map((p) => p[0])\n    .slice(0, 2)\n    .join(\"\");\n}\n\nfunction Roll({ value }: { value: number }) {\n  const text = value.toLocaleString(\"en-US\");\n  const chars = text.split(\"\");\n  return (\n    <span className=\"hb-kh8-roll\">\n      <span className=\"hb-kh8-sr\">{text}</span>\n      {chars.map((ch, i) => {\n        const key = chars.length - i;\n        if (ch >= \"0\" && ch <= \"9\") {\n          return (\n            <span key={`d${key}`} className=\"hb-kh8-col\" aria-hidden=\"true\">\n              <span className=\"hb-kh8-strip\" style={{ transform: `translateY(${-Number(ch) * 10}%)` }}>\n                {[0, 1, 2, 3, 4, 5, 6, 7, 8, 9].map((d) => (\n                  <span key={d}>{d}</span>\n                ))}\n              </span>\n            </span>\n          );\n        }\n        return (\n          <span key={`s${key}`} className=\"hb-kh8-sep\" aria-hidden=\"true\">\n            {ch}\n          </span>\n        );\n      })}\n    </span>\n  );\n}\n\nexport function WaitlistCounter({\n  eyebrow = \"Private beta opens March 2027\",\n  title = \"Be first in line for Orbit\",\n  subtitle = \"The calendar that plans your week around deep work. We are letting people in from the waitlist in batches of 500.\",\n  count = 2431,\n  live = true,\n  avatars = defaultAvatars,\n  placeholder = \"you@company.com\",\n  ctaLabel = \"Join the waitlist\",\n  progress = 72,\n  progressLabel = \"Road to launch\",\n  milestones = defaultMilestones,\n  referralBase = \"https://orbit.so/r/\",\n  referralBonus = \"Every friend who joins moves you up 250 spots.\",\n  onSubmit,\n  onReferralCopy,\n  accent = \"#6d4aff\",\n  className,\n  style,\n  ...rest\n}: WaitlistCounterProps) {\n  const [ahead, setAhead] = React.useState(count);\n  const [email, setEmail] = React.useState(\"\");\n  const [error, setError] = React.useState(\"\");\n  const [joined, setJoined] = React.useState<{ position: number; code: string } | null>(null);\n  const [copied, setCopied] = React.useState(false);\n  const step = React.useRef(0);\n  const timer = React.useRef<number | undefined>(undefined);\n  const uid = React.useId().replace(/[^a-zA-Z0-9]/g, \"\");\n\n  React.useEffect(() => {\n    if (!live) return;\n    const id = window.setInterval(() => {\n      const add = ticks[step.current % ticks.length];\n      step.current += 1;\n      setAhead((a) => a + add);\n    }, 3200);\n    return () => window.clearInterval(id);\n  }, [live]);\n\n  React.useEffect(() => () => window.clearTimeout(timer.current), []);\n\n  const submit = (e: React.FormEvent<HTMLFormElement>) => {\n    e.preventDefault();\n    const value = email.trim();\n    if (!/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/.test(value)) {\n      setError(\"Enter a valid email address.\");\n      return;\n    }\n    setError(\"\");\n    const position = ahead + 1;\n    const code = hashText(value.toLowerCase()).toString(36).slice(0, 6).padEnd(6, \"x\");\n    setAhead(position);\n    setJoined({ position, code });\n    onSubmit?.(value, position);\n  };\n\n  const url = joined ? `${referralBase}${joined.code}` : \"\";\n\n  const copy = () => {\n    if (!url) return;\n    const done = () => {\n      setCopied(true);\n      window.clearTimeout(timer.current);\n      timer.current = window.setTimeout(() => setCopied(false), 1800);\n    };\n    onReferralCopy?.(url);\n    if (typeof navigator !== \"undefined\" && navigator.clipboard) {\n      navigator.clipboard.writeText(url).then(done, done);\n    } else {\n      done();\n    }\n  };\n\n  const pct = Math.min(Math.max(progress, 0), 100);\n  const words = title.split(\" \");\n  const tail = words.length > 1 ? words.pop() : \"\";\n  const head = words.join(\" \");\n\n  return (\n    <section\n      className={[\"hb-kh8\", className].filter(Boolean).join(\" \")}\n      style={{ [\"--hb-kh8-accent\" as string]: accent, ...style } as React.CSSProperties}\n      {...rest}\n    >\n      <style href=\"hb-waitlist-counter\" precedence=\"default\">{css}</style>\n      <div className=\"hb-kh8-bg\" aria-hidden=\"true\" />\n      <div className=\"hb-kh8-arcs\" aria-hidden=\"true\" />\n      <div className=\"hb-kh8-in\">\n        {eyebrow ? (\n          <span className=\"hb-kh8-eyebrow\">\n            <span className=\"hb-kh8-dot\" aria-hidden=\"true\" />\n            {eyebrow}\n          </span>\n        ) : null}\n        <h2 className=\"hb-kh8-title\">\n          {head} {tail ? <span>{tail}</span> : null}\n        </h2>\n        {subtitle ? <p className=\"hb-kh8-sub\">{subtitle}</p> : null}\n        {joined ? (\n          <div className=\"hb-kh8-done\" role=\"status\">\n            <span className=\"hb-kh8-check\" aria-hidden=\"true\">\n              <svg viewBox=\"0 0 24 24\">\n                <path d=\"M5 12.5l4.5 4.5L19 7.5\" />\n              </svg>\n            </span>\n            <p className=\"hb-kh8-dt\">\n              You are in. Spot <span>#{joined.position.toLocaleString(\"en-US\")}</span>\n            </p>\n            <p className=\"hb-kh8-dd\">{referralBonus}</p>\n            <div className=\"hb-kh8-ref\">\n              <span className=\"hb-kh8-url\" title={url}>\n                {url.replace(\"https://\", \"\").replace(\"http://\", \"\")}\n              </span>\n              <button type=\"button\" className=\"hb-kh8-copy\" data-done={copied ? \"true\" : \"false\"} onClick={copy}>\n                {copied ? (\n                  <svg viewBox=\"0 0 16 16\" aria-hidden=\"true\">\n                    <path d=\"M3.5 8.5l3 3 6-7\" />\n                  </svg>\n                ) : (\n                  <svg viewBox=\"0 0 16 16\" aria-hidden=\"true\">\n                    <rect x=\"5.5\" y=\"5.5\" width=\"8\" height=\"8\" rx=\"1.8\" />\n                    <path d=\"M10.5 3.5V3A1.5 1.5 0 0 0 9 1.5H4A1.5 1.5 0 0 0 2.5 3v5A1.5 1.5 0 0 0 4 9.5h.5\" />\n                  </svg>\n                )}\n                {copied ? \"Copied\" : \"Copy link\"}\n              </button>\n            </div>\n            <span className=\"hb-kh8-sr\" aria-live=\"polite\">\n              {copied ? \"Referral link copied\" : \"\"}\n            </span>\n          </div>\n        ) : (\n          <>\n            <form className=\"hb-kh8-form\" onSubmit={submit} noValidate>\n              <label htmlFor={`${uid}-email`} className=\"hb-kh8-sr\">\n                Email address\n              </label>\n              <input\n                id={`${uid}-email`}\n                className=\"hb-kh8-input\"\n                type=\"email\"\n                inputMode=\"email\"\n                autoComplete=\"email\"\n                placeholder={placeholder}\n                value={email}\n                aria-invalid={error ? true : undefined}\n                aria-describedby={error ? `${uid}-err` : undefined}\n                onChange={(e) => {\n                  setEmail(e.target.value);\n                  if (error) setError(\"\");\n                }}\n              />\n              <button type=\"submit\" className=\"hb-kh8-btn\">\n                {ctaLabel}\n              </button>\n            </form>\n            {error ? (\n              <p className=\"hb-kh8-err\" id={`${uid}-err`} role=\"alert\">\n                {error}\n              </p>\n            ) : null}\n          </>\n        )}\n        <div className=\"hb-kh8-social\">\n          {avatars.length ? (\n            <span className=\"hb-kh8-avs\" aria-hidden=\"true\">\n              {avatars.slice(0, 5).map((n, i) => (\n                <span key={n} className=\"hb-kh8-av\" style={{ background: palette[hashText(n) % palette.length], zIndex: 5 - i }}>\n                  {initials(n)}\n                </span>\n              ))}\n            </span>\n          ) : null}\n          <span>\n            <span className=\"hb-kh8-count\">\n              <Roll value={ahead} />\n            </span>{\" \"}\n            {joined ? \"on the list now, including you\" : \"people ahead of you\"}\n          </span>\n        </div>\n        <div className=\"hb-kh8-prog\">\n          <div className=\"hb-kh8-ph\">\n            <span>{progressLabel}</span>\n            <b>{pct}%</b>\n          </div>\n          <div className=\"hb-kh8-bar\" role=\"progressbar\" aria-valuemin={0} aria-valuemax={100} aria-valuenow={pct} aria-label={progressLabel}>\n            <span className=\"hb-kh8-fill\" style={{ width: `${pct}%` }} />\n          </div>\n          {milestones.length ? (\n            <ol className=\"hb-kh8-ms\" style={{ [\"--hb-kh8-n\" as string]: String(milestones.length) } as React.CSSProperties}>\n              {milestones.map((m, i) => {\n                const at = milestones.length === 1 ? 100 : (i / (milestones.length - 1)) * 100;\n                return (\n                  <li key={m} data-done={pct >= at ? \"true\" : \"false\"}>\n                    {m}\n                  </li>\n                );\n              })}\n            </ol>\n          ) : null}\n        </div>\n      </div>\n    </section>\n  );\n}\n"
    }
  ]
}