{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "gallery-archive",
  "type": "registry:component",
  "title": "Gallery Archive",
  "description": "A typographic archive index of year, title and type. Hovering or focusing an entry dims the other rows and shows a floating image preview that trails the pointer.",
  "author": "Hyperblur <hello@hyperblur.dev>",
  "dependencies": [],
  "registryDependencies": [],
  "categories": [
    "components",
    "gallery",
    "archive",
    "list",
    "hover preview",
    "portfolio",
    "index"
  ],
  "docs": "https://hyperblur.dev/effects/gallery-archive",
  "files": [
    {
      "path": "registry/hyperblur/gallery-archive.tsx",
      "type": "registry:component",
      "target": "components/hyperblur/gallery-archive.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nexport type GalleryArchiveImage = {\n  src?: string;\n  title: string;\n  caption?: string;\n  year?: string | number;\n  tag?: string;\n};\n\nexport interface GalleryArchiveProps\n  extends Omit<React.HTMLAttributes<HTMLDivElement>, \"onChange\" | \"onSelect\"> {\n  images?: GalleryArchiveImage[];\n  onChange?: (index: number | null) => void;\n  onSelect?: (index: number) => void;\n  idle?: boolean;\n  previewWidth?: number;\n  showHeader?: boolean;\n  columns?: [string, string, string];\n  accent?: string;\n  label?: string;\n}\n\nconst sampleImages: GalleryArchiveImage[] = [\n  { title: \"Dune Hour\", caption: \"Erg Chebbi, Morocco\", year: 2024, tag: \"Landscape\" },\n  { title: \"Harbor Lights\", caption: \"Lisbon, Portugal\", year: 2023, tag: \"City\" },\n  { title: \"Glacier Line\", caption: \"Jokulsarlon, Iceland\", year: 2022, tag: \"Water\" },\n  { title: \"Pine Ridge\", caption: \"Cascade Range, Oregon\", year: 2021, tag: \"Forest\" },\n  { title: \"Polar Night\", caption: \"Tromso, Norway\", year: 2020, tag: \"Night\" },\n  { title: \"Sun Room\", caption: \"Studio, Brooklyn\", year: 2019, tag: \"Studio\" },\n];\n\nfunction mix(n: number) {\n  let x = Math.imul((n + 7) | 0, 0x9e3779b1) >>> 0;\n  x = Math.imul(x ^ (x >>> 16), 0x85ebca6b) >>> 0;\n  x = Math.imul(x ^ (x >>> 13), 0xc2b2ae35) >>> 0;\n  return (x ^ (x >>> 16)) >>> 0;\n}\n\nfunction sky(a: string, b: string, c: string) {\n  return `<defs><linearGradient id=\"s\" x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\"><stop offset=\"0\" stop-color=\"${a}\"/><stop offset=\"0.62\" stop-color=\"${b}\"/><stop offset=\"1\" stop-color=\"${c}\"/></linearGradient></defs><rect width=\"320\" height=\"240\" fill=\"url(#s)\"/>`;\n}\n\nfunction sceneSvg(k: number) {\n  let b = \"\";\n  if (k === 0) {\n    b =\n      sky(\"#ffd28f\", \"#f2866b\", \"#8a4a7c\") +\n      '<circle cx=\"214\" cy=\"98\" r=\"54\" fill=\"#fff3cf\" opacity=\"0.18\"/><circle cx=\"214\" cy=\"98\" r=\"30\" fill=\"#fff3cf\"/><path d=\"M0 168 Q90 122 172 160 T320 150 V240 H0Z\" fill=\"#dc8752\"/><path d=\"M0 198 Q110 160 204 194 T320 186 V240 H0Z\" fill=\"#ab5840\"/><path d=\"M0 224 Q120 200 236 222 T320 216 V240 H0Z\" fill=\"#6f3437\"/>';\n  } else if (k === 1) {\n    b = sky(\"#0c1230\", \"#28205e\", \"#5c2c6c\") + '<circle cx=\"258\" cy=\"48\" r=\"13\" fill=\"#fff1d6\"/>';\n    for (let i = 0; i < 18; i += 1) {\n      const v = mix(i + 40);\n      b += `<circle cx=\"${v % 320}\" cy=\"${mix(i + 90) % 90}\" r=\"${(0.6 + (v % 4) / 5).toFixed(2)}\" fill=\"#ffffff\" opacity=\"0.7\"/>`;\n    }\n    for (let i = 0; i < 10; i += 1) {\n      const x = i * 34 - 6;\n      const w = 30 + (mix(i) % 10);\n      const h = 70 + (mix(i + 20) % 96);\n      b += `<rect x=\"${x}\" y=\"${222 - h}\" width=\"${w}\" height=\"${h}\" fill=\"#161333\"/>`;\n      for (let r = 0; r < Math.floor((h - 12) / 14); r += 1) {\n        for (let c = 0; c < Math.floor((w - 8) / 9); c += 1) {\n          const q = mix(i * 97 + r * 13 + c);\n          if (q % 3 === 0) b += `<rect x=\"${x + 5 + c * 9}\" y=\"${230 - h + r * 14}\" width=\"4\" height=\"6\" fill=\"${q % 2 ? \"#ffcf7a\" : \"#ff9f86\"}\"/>`;\n        }\n      }\n    }\n    b += '<rect y=\"222\" width=\"320\" height=\"18\" fill=\"#0b0a1f\"/><rect x=\"40\" y=\"228\" width=\"60\" height=\"2\" fill=\"#ffcf7a\" opacity=\"0.35\"/><rect x=\"190\" y=\"232\" width=\"80\" height=\"2\" fill=\"#ff9f86\" opacity=\"0.3\"/>';\n  } else if (k === 2) {\n    b =\n      sky(\"#d9efff\", \"#86bde8\", \"#2f6fa8\") +\n      '<polygon points=\"0,150 46,96 82,128 124,78 170,134 214,92 262,140 320,104 320,170 0,170\" fill=\"#f4fbff\"/><polygon points=\"46,96 60,150 30,150\" fill=\"#c4def2\"/><polygon points=\"124,78 142,150 104,150\" fill=\"#c4def2\"/><polygon points=\"214,92 230,150 196,150\" fill=\"#c4def2\"/><rect y=\"164\" width=\"320\" height=\"76\" fill=\"#17508a\"/><path d=\"M0 182 Q40 176 80 182 T160 182 T240 182 T320 182\" stroke=\"#8ec6f0\" stroke-width=\"2\" fill=\"none\" opacity=\"0.5\"/><path d=\"M0 204 Q40 198 80 204 T160 204 T240 204 T320 204\" stroke=\"#8ec6f0\" stroke-width=\"2\" fill=\"none\" opacity=\"0.35\"/><polygon points=\"88,176 126,176 116,190 96,190\" fill=\"#e8f6ff\"/><polygon points=\"220,196 268,196 256,212 230,212\" fill=\"#d2ecff\"/>';\n  } else if (k === 3) {\n    b = sky(\"#e4ece4\", \"#a9c2b2\", \"#6f8f7e\");\n    const rows: [number, number, string][] = [\n      [120, 50, \"#86a596\"],\n      [150, 62, \"#4b6d5d\"],\n      [186, 78, \"#22392f\"],\n    ];\n    rows.forEach(([base, tall, fill], r) => {\n      for (let i = 0; i < 12; i += 1) {\n        const x = i * 30 + (mix(r * 31 + i) % 18) - 10;\n        const h = tall - 14 + (mix(r * 57 + i) % 28);\n        b += `<polygon points=\"${x},${base - h} ${x - 15},${base + 6} ${x + 15},${base + 6}\" fill=\"${fill}\"/>`;\n      }\n      b += `<rect y=\"${base + 4}\" width=\"320\" height=\"${240 - base}\" fill=\"${fill}\"/>`;\n      if (r === 0) b += '<rect y=\"118\" width=\"320\" height=\"30\" fill=\"#e4ece4\" opacity=\"0.55\"/>';\n    });\n  } else if (k === 4) {\n    b =\n      sky(\"#040a18\", \"#0b1d38\", \"#12304a\") +\n      '<path d=\"M0 96 C70 40 160 126 320 56 L320 104 C170 168 92 84 0 146Z\" fill=\"#3ef0a8\" opacity=\"0.32\"/><path d=\"M0 70 C90 30 170 96 320 30 L320 60 C180 120 96 60 0 110Z\" fill=\"#8f6bff\" opacity=\"0.22\"/><path d=\"M40 110 C120 76 200 140 300 90\" stroke=\"#9fffd6\" stroke-width=\"3\" fill=\"none\" opacity=\"0.4\"/>';\n    for (let i = 0; i < 26; i += 1) {\n      const v = mix(i + 300);\n      b += `<circle cx=\"${v % 320}\" cy=\"${mix(i + 500) % 120}\" r=\"${(0.5 + (v % 3) / 4).toFixed(2)}\" fill=\"#ffffff\" opacity=\"0.75\"/>`;\n    }\n    b +=\n      '<polygon points=\"0,200 60,140 104,176 160,120 220,180 266,150 320,190 320,240 0,240\" fill=\"#0a1626\"/><polygon points=\"160,120 176,136 168,134 160,142 152,134 146,134\" fill=\"#dfeaf5\"/><polygon points=\"60,140 72,152 60,150 50,152\" fill=\"#dfeaf5\"/><rect y=\"214\" width=\"320\" height=\"26\" fill=\"#06101d\"/>';\n  } else {\n    b =\n      '<defs><radialGradient id=\"s\" cx=\"0.32\" cy=\"0.3\" r=\"0.9\"><stop offset=\"0\" stop-color=\"#ffe2c8\"/><stop offset=\"0.55\" stop-color=\"#e09a7c\"/><stop offset=\"1\" stop-color=\"#7c4648\"/></radialGradient><radialGradient id=\"o\" cx=\"0.35\" cy=\"0.3\" r=\"0.75\"><stop offset=\"0\" stop-color=\"#fff6ea\"/><stop offset=\"1\" stop-color=\"#c46f58\"/></radialGradient></defs><rect width=\"320\" height=\"240\" fill=\"url(#s)\"/><path d=\"M188 240 V112 A52 52 0 0 1 292 112 V240Z\" fill=\"#f6c9a8\" opacity=\"0.55\"/><rect x=\"40\" y=\"176\" width=\"140\" height=\"64\" fill=\"#5d3236\"/><rect x=\"40\" y=\"170\" width=\"140\" height=\"8\" fill=\"#7a4447\"/><circle cx=\"110\" cy=\"138\" r=\"32\" fill=\"url(#o)\"/><rect x=\"150\" y=\"128\" width=\"16\" height=\"42\" rx=\"3\" fill=\"#2f2a44\"/><ellipse cx=\"158\" cy=\"128\" rx=\"8\" ry=\"3\" fill=\"#4a4366\"/>';\n  }\n  return `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 320 240\" preserveAspectRatio=\"xMidYMid slice\">${b}</svg>`;\n}\n\nconst sceneCache = new Map<number, string>();\n\nfunction sceneUrl(index: number) {\n  const k = ((index % 6) + 6) % 6;\n  let url = sceneCache.get(k);\n  if (!url) {\n    url = `url(\"data:image/svg+xml,${encodeURIComponent(sceneSvg(k))}\")`;\n    sceneCache.set(k, url);\n  }\n  return url;\n}\n\nfunction imageUrl(src: string | undefined, index: number) {\n  return src ? `url(${JSON.stringify(src)})` : sceneUrl(index);\n}\n\nconst css = `\n.hb-zw2 {\n  --hb-zw2-accent: #2f7bff;\n  position: relative;\n  box-sizing: border-box;\n  width: 100%;\n  color: #ededed;\n  font-family: inherit;\n  container-type: inline-size;\n}\n.hb-zw2 *, .hb-zw2 *::before, .hb-zw2 *::after { box-sizing: border-box; }\n.hb-zw2-head, .hb-zw2-row {\n  display: grid;\n  grid-template-columns: 3.6em minmax(0, 1fr) auto;\n  align-items: center;\n  column-gap: 1em;\n}\n.hb-zw2-head {\n  padding: 0 0.3em 0.55em;\n  font-size: 0.68em;\n  letter-spacing: 0.12em;\n  text-transform: uppercase;\n  color: #8f8f8f;\n}\n.hb-zw2-head span:last-child { text-align: right; }\n.hb-zw2-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid #222222; }\n.hb-zw2-list li { margin: 0; padding: 0; }\n.hb-zw2-row {\n  position: relative;\n  width: 100%;\n  margin: 0;\n  padding: 0.6em 0.3em;\n  border: 0;\n  border-top: 1px solid #222222;\n  background: none;\n  color: inherit;\n  font: inherit;\n  text-align: left;\n  cursor: pointer;\n  outline: none;\n  transition: opacity 0.35s ease, color 0.35s ease;\n}\n.hb-zw2[data-active=\"true\"] .hb-zw2-row { opacity: 0.32; }\n.hb-zw2[data-active=\"true\"] .hb-zw2-row[data-on=\"true\"] { opacity: 1; }\n.hb-zw2-row:focus-visible { box-shadow: inset 0 0 0 2px var(--hb-zw2-accent); border-radius: 6px; }\n.hb-zw2-year {\n  font-size: 0.78em;\n  font-variant-numeric: tabular-nums;\n  letter-spacing: 0.04em;\n  color: #8f8f8f;\n}\n.hb-zw2-title {\n  display: flex;\n  align-items: baseline;\n  gap: 0.5em;\n  min-width: 0;\n  font-size: 1.16em;\n  line-height: 1.3;\n  letter-spacing: -0.01em;\n  white-space: nowrap;\n  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);\n}\n.hb-zw2-title span { overflow: hidden; text-overflow: ellipsis; }\n.hb-zw2-row[data-on=\"true\"] .hb-zw2-title { transform: translateX(0.4em); }\n.hb-zw2-dot {\n  flex: none;\n  width: 0.4em;\n  height: 0.4em;\n  border-radius: 999px;\n  background: var(--hb-zw2-accent);\n  align-self: center;\n  transform: scale(0);\n  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);\n}\n.hb-zw2-row[data-on=\"true\"] .hb-zw2-dot { transform: scale(1); }\n.hb-zw2-tag {\n  justify-self: end;\n  padding: 0.2em 0.65em;\n  border: 1px solid #2a2a2a;\n  border-radius: 999px;\n  font-size: 0.68em;\n  letter-spacing: 0.08em;\n  text-transform: uppercase;\n  color: #a1a1a1;\n  white-space: nowrap;\n}\n.hb-zw2-float {\n  position: absolute;\n  top: 0;\n  left: 0;\n  z-index: 5;\n  width: var(--hb-zw2-pw);\n  aspect-ratio: 4 / 3;\n  pointer-events: none;\n  will-change: transform;\n}\n.hb-zw2-card {\n  position: absolute;\n  inset: 0;\n  overflow: hidden;\n  border-radius: 10px;\n  background: #171717;\n  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08);\n  opacity: 0;\n  transform: scale(0.82);\n  transition: opacity 0.3s ease, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);\n}\n.hb-zw2-card[data-show=\"true\"] { opacity: 1; transform: scale(1); }\n.hb-zw2-layer {\n  position: absolute;\n  inset: 0;\n  background-size: cover;\n  background-position: center;\n  opacity: 0;\n  transform: scale(1.12);\n  transition: opacity 0.4s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);\n}\n.hb-zw2-layer[data-on=\"true\"] { opacity: 1; transform: scale(1); }\n.hb-zw2-label {\n  position: absolute;\n  left: 8px;\n  bottom: 7px;\n  max-width: calc(100% - 16px);\n  padding: 0.25em 0.6em;\n  border-radius: 999px;\n  background: rgba(10, 10, 10, 0.6);\n  -webkit-backdrop-filter: blur(6px);\n  backdrop-filter: blur(6px);\n  font-size: 0.66em;\n  color: #ededed;\n  white-space: nowrap;\n  overflow: hidden;\n  text-overflow: ellipsis;\n}\n@container (max-width: 300px) {\n  .hb-zw2-head, .hb-zw2-row { grid-template-columns: 3em minmax(0, 1fr); }\n  .hb-zw2-tag, .hb-zw2-head span:last-child { display: none; }\n}\n@media (prefers-reduced-motion: reduce) {\n  .hb-zw2-row, .hb-zw2-title, .hb-zw2-dot, .hb-zw2-card, .hb-zw2-layer { transition: none; }\n  .hb-zw2-layer, .hb-zw2-card { transform: none; }\n}\n`;\n\ntype Vec = { x: number; y: number };\n\nexport function GalleryArchive({\n  images,\n  onChange,\n  onSelect,\n  idle = true,\n  previewWidth = 200,\n  showHeader = true,\n  columns = [\"Year\", \"Title\", \"Type\"],\n  accent = \"#2f7bff\",\n  label = \"Archive\",\n  className,\n  style,\n  ...rest\n}: GalleryArchiveProps) {\n  const list = images && images.length ? images : sampleImages;\n  const n = list.length;\n  const [active, setActive] = React.useState<number | null>(null);\n  const rootRef = React.useRef<HTMLDivElement>(null);\n  const floatRef = React.useRef<HTMLDivElement>(null);\n  const rowRefs = React.useRef<(HTMLButtonElement | null)[]>([]);\n  const activeRef = React.useRef<number | null>(null);\n  const userRef = React.useRef(false);\n  const target = React.useRef<Vec>({ x: 0, y: 0 });\n  const pos = React.useRef<Vec | null>(null);\n  const onChangeRef = React.useRef(onChange);\n  const resumeRef = React.useRef(0);\n\n  React.useEffect(() => {\n    onChangeRef.current = onChange;\n  }, [onChange]);\n\n  const setAct = React.useCallback((i: number | null, fromUser: boolean) => {\n    if (activeRef.current === i) return;\n    activeRef.current = i;\n    setActive(i);\n    if (fromUser) onChangeRef.current?.(i);\n  }, []);\n\n  React.useEffect(() => {\n    const root = rootRef.current;\n    const float = floatRef.current;\n    if (!root || !float) return;\n    const reduce = window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches;\n    let visible = true;\n    let raf = 0;\n    let last = 0;\n    let idleIndex = -1;\n    let idleAt = 0;\n    let tilt = 0;\n    const io =\n      typeof IntersectionObserver !== \"undefined\"\n        ? new IntersectionObserver(([entry]) => {\n            visible = entry.isIntersecting;\n            if (visible && !raf) raf = requestAnimationFrame(tick);\n          })\n        : null;\n    io?.observe(root);\n\n    const rowCenter = (i: number) => {\n      const row = rowRefs.current[i];\n      if (!row) return root.clientHeight / 2;\n      const rr = root.getBoundingClientRect();\n      const br = row.getBoundingClientRect();\n      return br.top - rr.top + br.height / 2;\n    };\n\n    function tick(t: number) {\n      raf = 0;\n      if (!visible || !root || !float) return;\n      const W = root.clientWidth;\n      const H = root.clientHeight;\n      const fw = float.offsetWidth;\n      const fh = float.offsetHeight;\n      if (idle && !userRef.current && !reduce && t >= resumeRef.current) {\n        if (!idleAt) idleAt = t + 700;\n        if (t >= idleAt) {\n          idleIndex = (idleIndex + 1) % n;\n          idleAt = t + 1800;\n          setAct(idleIndex, false);\n        }\n        if (idleIndex >= 0) {\n          target.current = {\n            x: W * (0.64 + 0.07 * Math.sin(t / 900)),\n            y: rowCenter(idleIndex) + 6 * Math.cos(t / 700),\n          };\n        }\n      }\n      const tx = Math.min(Math.max(target.current.x, fw / 2 + 2), W - fw / 2 - 2);\n      const ty = Math.min(Math.max(target.current.y, fh / 2 + 2), Math.max(H - fh / 2 - 2, fh / 2 + 2));\n      const dt = last ? Math.min(t - last, 64) : 16;\n      last = t;\n      if (!pos.current || reduce) pos.current = { x: tx, y: ty };\n      const k = 1 - Math.pow(0.82, dt / 16);\n      const vx = (tx - pos.current.x) * k;\n      pos.current = { x: pos.current.x + vx, y: pos.current.y + (ty - pos.current.y) * k };\n      tilt += (Math.max(-9, Math.min(9, vx * 0.6)) - tilt) * 0.12;\n      float.style.transform = `translate3d(${(pos.current.x - fw / 2).toFixed(1)}px, ${(pos.current.y - fh / 2).toFixed(1)}px, 0) rotate(${(reduce ? 0 : tilt).toFixed(2)}deg)`;\n      raf = requestAnimationFrame(tick);\n    }\n\n    raf = requestAnimationFrame(tick);\n    return () => {\n      cancelAnimationFrame(raf);\n      io?.disconnect();\n    };\n  }, [idle, n, setAct]);\n\n  const toLocal = (e: React.PointerEvent) => {\n    const r = rootRef.current?.getBoundingClientRect();\n    if (!r) return;\n    target.current = { x: e.clientX - r.left, y: e.clientY - r.top };\n  };\n\n  const leave = () => {\n    userRef.current = false;\n    resumeRef.current = performance.now() + 1400;\n    setAct(null, true);\n  };\n\n  const onKeyDown = (e: React.KeyboardEvent) => {\n    const i = rowRefs.current.findIndex((el) => el === document.activeElement);\n    if (i < 0) return;\n    let next: number | null = null;\n    if (e.key === \"ArrowDown\") next = Math.min(n - 1, i + 1);\n    else if (e.key === \"ArrowUp\") next = Math.max(0, i - 1);\n    else if (e.key === \"Home\") next = 0;\n    else if (e.key === \"End\") next = n - 1;\n    else if (e.key === \"Escape\") {\n      (document.activeElement as HTMLElement | null)?.blur();\n      leave();\n      return;\n    }\n    if (next === null) return;\n    e.preventDefault();\n    rowRefs.current[next]?.focus();\n  };\n\n  return (\n    <div\n      ref={rootRef}\n      role=\"region\"\n      aria-label={label}\n      data-active={active !== null ? \"true\" : \"false\"}\n      className={className ? `hb-zw2 ${className}` : \"hb-zw2\"}\n      style={{ \"--hb-zw2-accent\": accent, \"--hb-zw2-pw\": `${previewWidth}px`, ...style } as React.CSSProperties}\n      onPointerMove={(e) => {\n        userRef.current = true;\n        toLocal(e);\n      }}\n      onPointerDown={(e) => {\n        userRef.current = true;\n        toLocal(e);\n      }}\n      onPointerLeave={(e) => {\n        if (e.currentTarget.contains(document.activeElement)) return;\n        leave();\n      }}\n      onBlur={(e) => {\n        if (!e.currentTarget.contains(e.relatedTarget as Node | null)) leave();\n      }}\n      onKeyDown={onKeyDown}\n      {...rest}\n    >\n      <style href=\"hb-gallery-archive\" precedence=\"default\">\n        {css}\n      </style>\n      {showHeader ? (\n        <div className=\"hb-zw2-head\" aria-hidden=\"true\">\n          <span>{columns[0]}</span>\n          <span>{columns[1]}</span>\n          <span>{columns[2]}</span>\n        </div>\n      ) : null}\n      <ul className=\"hb-zw2-list\">\n        {list.map((img, i) => (\n          <li key={i}>\n            <button\n              ref={(el) => {\n                rowRefs.current[i] = el;\n              }}\n              type=\"button\"\n              className=\"hb-zw2-row\"\n              data-on={active === i ? \"true\" : \"false\"}\n              aria-label={[img.title, img.caption, img.year, img.tag].filter(Boolean).join(\", \")}\n              onPointerEnter={() => {\n                userRef.current = true;\n                setAct(i, true);\n              }}\n              onFocus={() => {\n                userRef.current = true;\n                const root = rootRef.current;\n                const row = rowRefs.current[i];\n                if (root && row) {\n                  const rr = root.getBoundingClientRect();\n                  const br = row.getBoundingClientRect();\n                  target.current = { x: rr.width * 0.68, y: br.top - rr.top + br.height / 2 };\n                }\n                setAct(i, true);\n              }}\n              onClick={() => onSelect?.(i)}\n            >\n              <span className=\"hb-zw2-year\">{img.year ?? String(i + 1).padStart(2, \"0\")}</span>\n              <span className=\"hb-zw2-title\">\n                <i className=\"hb-zw2-dot\" aria-hidden=\"true\" />\n                <span>{img.title}</span>\n              </span>\n              {img.tag ? <span className=\"hb-zw2-tag\">{img.tag}</span> : <span />}\n            </button>\n          </li>\n        ))}\n      </ul>\n      <div ref={floatRef} className=\"hb-zw2-float\" aria-hidden=\"true\">\n        <div className=\"hb-zw2-card\" data-show={active !== null ? \"true\" : \"false\"}>\n          {list.map((img, i) => (\n            <div\n              key={i}\n              className=\"hb-zw2-layer\"\n              data-on={active === i ? \"true\" : \"false\"}\n              style={{ backgroundImage: imageUrl(img.src, i) }}\n            />\n          ))}\n          {active !== null && list[active].caption ? <span className=\"hb-zw2-label\">{list[active].caption}</span> : null}\n        </div>\n      </div>\n    </div>\n  );\n}\n"
    }
  ]
}