{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "popup-tour-spotlight",
  "type": "registry:component",
  "title": "Tour Spotlight",
  "description": "Wraps any screen and walks through it step by step: a rounded spotlight glides between targets while everything else dims, and the step card follows with a pointer tail, progress pills and arrow key navigation.",
  "author": "Hyperblur <hello@hyperblur.dev>",
  "dependencies": [],
  "registryDependencies": [],
  "categories": [
    "modals",
    "onboarding",
    "tour",
    "spotlight",
    "walkthrough",
    "coachmark",
    "steps"
  ],
  "docs": "https://hyperblur.dev/effects/popup-tour-spotlight",
  "files": [
    {
      "path": "registry/hyperblur/popup-tour-spotlight.tsx",
      "type": "registry:component",
      "target": "components/hyperblur/popup-tour-spotlight.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nexport interface PopupTourStep {\n  target: string;\n  title: string;\n  body: string;\n}\n\nexport interface PopupTourSpotlightProps extends React.HTMLAttributes<HTMLDivElement> {\n  steps?: PopupTourStep[];\n  children?: React.ReactNode;\n  open?: boolean;\n  defaultOpen?: boolean;\n  onOpenChange?: (open: boolean) => void;\n  defaultStep?: number;\n  onStepChange?: (index: number) => void;\n  onFinish?: (completed: boolean) => void;\n  padding?: number;\n  showTrigger?: boolean;\n  triggerLabel?: string;\n  embedded?: boolean;\n  accent?: string;\n}\n\nconst defaultSteps: PopupTourStep[] = [\n  { target: \"[data-tour='search']\", title: \"Find anything\", body: \"Press / to search projects, people and files from any screen.\" },\n  { target: \"[data-tour='new']\", title: \"Start a project\", body: \"Briefs, sprints and launch checklists are one click away.\" },\n  { target: \"[data-tour='insights']\", title: \"Watch the numbers\", body: \"Weekly throughput updates live as your team closes tasks.\" },\n  { target: \"[data-tour='team']\", title: \"Bring your team\", body: \"Invite teammates. Guests only see the projects you share.\" },\n];\n\nconst focusable = 'a[href], button:not([disabled]), input:not([disabled]), textarea:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex=\"-1\"])';\n\nconst css = `\n.hb-xf8 { --hb-xf8-accent: #2f7bff; position: relative; box-sizing: border-box; width: 100%; overflow: hidden; border-radius: 16px; font-family: inherit; color: #ededed; isolation: isolate; }\n.hb-xf8 *, .hb-xf8 *::before, .hb-xf8 *::after { box-sizing: border-box; }\n.hb-xf8-layer { position: absolute; inset: 0; z-index: 20; }\n.hb-xf8-hole { position: absolute; border-radius: 12px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--hb-xf8-accent) 70%, transparent), 0 0 0 6px color-mix(in srgb, var(--hb-xf8-accent) 18%, transparent), 0 0 0 200vmax rgba(3,3,5,.66); transition: top .55s cubic-bezier(.65,0,.2,1.15), left .55s cubic-bezier(.65,0,.2,1.15), width .55s cubic-bezier(.65,0,.2,1.15), height .55s cubic-bezier(.65,0,.2,1.15); pointer-events: none; animation: hb-xf8-fade .35s ease both; }\n.hb-xf8-hole::after { content: \"\"; position: absolute; inset: -6px; border-radius: 16px; border: 1.5px solid var(--hb-xf8-accent); opacity: 0; animation: hb-xf8-pulse 2s cubic-bezier(.2,.7,.3,1) .6s infinite; }\n.hb-xf8-card { position: absolute; width: min(272px, calc(100% - 16px)); padding: 14px 14px 12px; border-radius: 16px; background: linear-gradient(180deg, #1a1a1a, #121212); border: 1px solid #2c2c2c; box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 24px 48px -16px rgba(0,0,0,.85); outline: none; transition: top .55s cubic-bezier(.65,0,.2,1.1), left .55s cubic-bezier(.65,0,.2,1.1); animation: hb-xf8-in .45s cubic-bezier(.16,1,.3,1) both; }\n.hb-xf8-card[data-ready=\"false\"] { visibility: hidden; }\n.hb-xf8-tail { position: absolute; width: 12px; height: 12px; background: #1a1a1a; border: 1px solid #2c2c2c; transform: rotate(45deg); transition: left .55s cubic-bezier(.65,0,.2,1.1); }\n.hb-xf8-card[data-side=\"below\"] .hb-xf8-tail { top: -6.5px; border-right: 0; border-bottom: 0; border-radius: 3px 0 0 0; }\n.hb-xf8-card[data-side=\"above\"] .hb-xf8-tail { bottom: -6.5px; border-left: 0; border-top: 0; background: #121212; border-radius: 0 0 3px 0; }\n.hb-xf8-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }\n.hb-xf8-count { font-family: var(--font-mono), ui-monospace, monospace; font-size: 10.5px; letter-spacing: .08em; color: color-mix(in srgb, var(--hb-xf8-accent) 70%, #fff); }\n.hb-xf8-skip { all: unset; font-size: 11.5px; color: #7a7a7a; cursor: pointer; border-radius: 4px; transition: color .2s; }\n.hb-xf8-skip:hover { color: #ededed; }\n.hb-xf8-skip:focus-visible { outline: 2px solid var(--hb-xf8-accent); outline-offset: 2px; }\n.hb-xf8-text { animation: hb-xf8-swap .4s cubic-bezier(.2,.8,.2,1) both; }\n.hb-xf8-title { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: -.01em; }\n.hb-xf8-body { margin: 4px 0 0; font-size: 12.5px; line-height: 1.45; color: #a1a1a1; }\n.hb-xf8-foot { display: flex; align-items: center; gap: 8px; margin-top: 12px; }\n.hb-xf8-dots { display: flex; gap: 4px; flex: 1; }\n.hb-xf8-dot { height: 4px; width: 8px; border-radius: 999px; background: #2e2e2e; transition: width .4s cubic-bezier(.3,1.3,.5,1), background .3s; }\n.hb-xf8-dot[data-on=\"true\"] { width: 20px; background: var(--hb-xf8-accent); }\n.hb-xf8-dot[data-past=\"true\"] { background: color-mix(in srgb, var(--hb-xf8-accent) 45%, #2e2e2e); }\n.hb-xf8-btn { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 9px; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: background .2s, transform .15s cubic-bezier(.3,.7,.4,1), filter .2s; white-space: nowrap; }\n.hb-xf8-btn:active { transform: scale(.96); }\n.hb-xf8-btn:focus-visible { outline: 2px solid var(--hb-xf8-accent); outline-offset: 2px; }\n.hb-xf8-back { color: #a1a1a1; }\n.hb-xf8-back:hover { background: #222; color: #ededed; }\n.hb-xf8-next { color: #fff; background: var(--hb-xf8-accent); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 6px 16px -8px var(--hb-xf8-accent); }\n.hb-xf8-next:hover { filter: brightness(1.1); }\n.hb-xf8-next svg { width: 12px; height: 12px; }\n.hb-xf8-start { all: unset; box-sizing: border-box; position: absolute; right: 12px; bottom: 12px; z-index: 5; display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: #fff; background: var(--hb-xf8-accent); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 10px 24px -10px var(--hb-xf8-accent); cursor: pointer; animation: hb-xf8-in .4s cubic-bezier(.16,1,.3,1) both; transition: transform .15s cubic-bezier(.3,.7,.4,1); }\n.hb-xf8-start:active { transform: scale(.96); }\n.hb-xf8-start:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }\n.hb-xf8-start svg { width: 14px; height: 14px; }\n.hb-xf8-app { display: grid; grid-template-columns: 112px 1fr; min-height: 300px; background: #0c0c0c; border: 1px solid #1f1f1f; border-radius: 16px; overflow: hidden; }\n.hb-xf8-side { padding: 12px 8px; border-right: 1px solid #1c1c1c; background: #0e0e0e; display: grid; align-content: start; gap: 2px; }\n.hb-xf8-brand { display: flex; align-items: center; gap: 7px; padding: 0 6px 10px; font-size: 12px; font-weight: 600; }\n.hb-xf8-brand i { font-style: normal; width: 16px; height: 16px; border-radius: 5px; background: linear-gradient(135deg, var(--hb-xf8-accent), #9b6bff); }\n.hb-xf8-nav { display: flex; align-items: center; gap: 7px; height: 26px; padding: 0 6px; border-radius: 7px; font-size: 11.5px; color: #8f8f8f; }\n.hb-xf8-nav[data-on=\"true\"] { color: #ededed; background: #181818; }\n.hb-xf8-nav span { width: 10px; height: 10px; border-radius: 3px; border: 1.5px solid currentColor; opacity: .7; }\n.hb-xf8-main { padding: 12px; display: grid; align-content: start; gap: 10px; min-width: 0; }\n.hb-xf8-bar { display: flex; align-items: center; gap: 8px; }\n.hb-xf8-search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 9px; border-radius: 9px; background: #141414; border: 1px solid #222; font-size: 11.5px; color: #6f6f6f; }\n.hb-xf8-search svg { width: 12px; height: 12px; flex: none; }\n.hb-xf8-search kbd { margin-left: auto; font-family: var(--font-mono), ui-monospace, monospace; font-size: 10px; padding: 1px 5px; border-radius: 4px; border: 1px solid #2a2a2a; color: #8f8f8f; }\n.hb-xf8-new { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px; border-radius: 9px; font-size: 11.5px; font-weight: 600; color: #0a0a0a; background: #ededed; white-space: nowrap; }\n.hb-xf8-team { display: flex; }\n.hb-xf8-team span { width: 24px; height: 24px; border-radius: 50%; margin-left: -6px; box-shadow: 0 0 0 2px #0c0c0c; display: grid; place-items: center; font-size: 9px; font-weight: 600; color: #fff; }\n.hb-xf8-cards { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }\n.hb-xf8-panel { border-radius: 12px; background: #121212; border: 1px solid #1f1f1f; padding: 10px; min-width: 0; }\n.hb-xf8-ptitle { font-size: 10.5px; color: #8f8f8f; }\n.hb-xf8-pval { margin-top: 2px; font-size: 18px; font-weight: 600; letter-spacing: -.02em; }\n.hb-xf8-pval small { font-size: 10.5px; color: #3ddc84; font-weight: 500; margin-left: 4px; }\n.hb-xf8-chart { display: flex; align-items: flex-end; gap: 4px; height: 70px; margin-top: 8px; }\n.hb-xf8-chart span { flex: 1; border-radius: 3px 3px 1px 1px; background: linear-gradient(color-mix(in srgb, var(--hb-xf8-accent) 80%, #fff 0%), color-mix(in srgb, var(--hb-xf8-accent) 30%, #121212)); }\n.hb-xf8-task { display: flex; align-items: center; gap: 7px; padding: 6px 0; font-size: 11px; color: #bdbdbd; border-bottom: 1px solid #1a1a1a; }\n.hb-xf8-task:last-child { border-bottom: 0; }\n.hb-xf8-task i { font-style: normal; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid #3a3a3a; flex: none; }\n.hb-xf8-task[data-done=\"true\"] i { background: #3ddc84; border-color: #3ddc84; }\n.hb-xf8-task[data-done=\"true\"] { color: #6f6f6f; text-decoration: line-through; }\n@keyframes hb-xf8-fade { from { opacity: 0; } }\n@keyframes hb-xf8-in { from { opacity: 0; transform: translateY(6px) scale(.97); } }\n@keyframes hb-xf8-swap { from { opacity: 0; transform: translateY(4px); } }\n@keyframes hb-xf8-pulse { 0% { opacity: .9; transform: scale(.98); } 80%, 100% { opacity: 0; transform: scale(1.08); } }\n@media (prefers-reduced-motion: reduce) {\n  .hb-xf8 *, .hb-xf8 *::after { animation: none !important; transition: none !important; }\n}\n`;\n\nfunction DefaultApp() {\n  const bars = [38, 52, 44, 61, 57, 72, 66, 84, 78, 92];\n  return (\n    <div className=\"hb-xf8-app\">\n      <div className=\"hb-xf8-side\">\n        <div className=\"hb-xf8-brand\"><i aria-hidden=\"true\" />Northwind</div>\n        {[\"Home\", \"Projects\", \"Inbox\", \"Reports\", \"Settings\"].map((n, i) => (\n          <div key={n} className=\"hb-xf8-nav\" data-on={i === 1}><span aria-hidden=\"true\" />{n}</div>\n        ))}\n      </div>\n      <div className=\"hb-xf8-main\">\n        <div className=\"hb-xf8-bar\">\n          <div className=\"hb-xf8-search\" data-tour=\"search\">\n            <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2\" strokeLinecap=\"round\" aria-hidden=\"true\"><circle cx=\"11\" cy=\"11\" r=\"6.5\" /><path d=\"m20 20-4.2-4.2\" /></svg>\n            Search projects\n            <kbd>/</kbd>\n          </div>\n          <div className=\"hb-xf8-new\" data-tour=\"new\">+ New</div>\n          <div className=\"hb-xf8-team\" data-tour=\"team\" style={{ paddingLeft: 6 }}>\n            <span style={{ background: \"#c2456e\" }}>AK</span>\n            <span style={{ background: \"#2f7bff\" }}>JM</span>\n            <span style={{ background: \"#d08a2a\" }}>RS</span>\n          </div>\n        </div>\n        <div className=\"hb-xf8-cards\">\n          <div className=\"hb-xf8-panel\" data-tour=\"insights\">\n            <div className=\"hb-xf8-ptitle\">Tasks closed this week</div>\n            <div className=\"hb-xf8-pval\">148<small>+18%</small></div>\n            <div className=\"hb-xf8-chart\" aria-hidden=\"true\">\n              {bars.map((b, i) => (\n                <span key={i} style={{ height: `${b}%` }} />\n              ))}\n            </div>\n          </div>\n          <div className=\"hb-xf8-panel\">\n            <div className=\"hb-xf8-ptitle\">Today</div>\n            {[\n              [\"Review launch copy\", true],\n              [\"Sync with design\", true],\n              [\"QA checkout flow\", false],\n              [\"Ship v2.4 notes\", false],\n            ].map(([t, d]) => (\n              <div key={String(t)} className=\"hb-xf8-task\" data-done={d ? \"true\" : \"false\"}><i aria-hidden=\"true\" />{t}</div>\n            ))}\n          </div>\n        </div>\n      </div>\n    </div>\n  );\n}\n\ntype Box = { top: number; left: number; width: number; height: number };\n\nexport function PopupTourSpotlight({\n  steps = defaultSteps,\n  children,\n  open,\n  defaultOpen,\n  onOpenChange,\n  defaultStep = 0,\n  onStepChange,\n  onFinish,\n  padding = 6,\n  showTrigger = true,\n  triggerLabel = \"Take the tour\",\n  embedded = false,\n  accent = \"#2f7bff\",\n  className = \"\",\n  style,\n  ...rest\n}: PopupTourSpotlightProps) {\n  const uid = React.useId().replace(/[^a-zA-Z0-9_-]/g, \"\");\n  const [inner, setInner] = React.useState(defaultOpen ?? embedded);\n  const active = (open ?? inner) && steps.length > 0;\n  const [index, setIndex] = React.useState(Math.min(defaultStep, Math.max(0, steps.length - 1)));\n  const [hole, setHole] = React.useState<Box | null>(null);\n  const [card, setCard] = React.useState({ top: 0, left: 0, tail: 24, side: \"below\" as \"below\" | \"above\" });\n  const rootRef = React.useRef<HTMLDivElement>(null);\n  const stageRef = React.useRef<HTMLDivElement>(null);\n  const cardRef = React.useRef<HTMLDivElement>(null);\n  const startRef = React.useRef<HTMLButtonElement>(null);\n  const touched = React.useRef(false);\n  const finishRef = React.useRef(onFinish);\n  const step = steps[Math.min(index, steps.length - 1)];\n\n  React.useEffect(() => {\n    finishRef.current = onFinish;\n  });\n\n  const setOpen = React.useCallback(\n    (value: boolean) => {\n      touched.current = true;\n      if (open === undefined) setInner(value);\n      onOpenChange?.(value);\n    },\n    [open, onOpenChange],\n  );\n\n  const finish = React.useCallback(\n    (completed: boolean) => {\n      finishRef.current?.(completed);\n      setOpen(false);\n    },\n    [setOpen],\n  );\n\n  const go = (next: number) => {\n    if (next >= steps.length) {\n      finish(true);\n      return;\n    }\n    const v = Math.max(0, next);\n    setIndex(v);\n    onStepChange?.(v);\n  };\n\n  const measure = React.useCallback(() => {\n    const root = rootRef.current;\n    const stage = stageRef.current;\n    if (!root || !stage || !step) return;\n    const el = stage.querySelector<HTMLElement>(step.target);\n    const rr = root.getBoundingClientRect();\n    const k = rr.width / (root.offsetWidth || 1) || 1;\n    const r = { width: root.offsetWidth, height: root.offsetHeight };\n    const box: Box = el\n      ? (() => {\n          const t = el.getBoundingClientRect();\n          return { top: (t.top - rr.top) / k - padding, left: (t.left - rr.left) / k - padding, width: t.width / k + padding * 2, height: t.height / k + padding * 2 };\n        })()\n      : { top: r.height / 2, left: r.width / 2, width: 0, height: 0 };\n    setHole(box);\n    const cw = cardRef.current?.offsetWidth ?? 272;\n    const ch = cardRef.current?.offsetHeight ?? 150;\n    const gap = 14;\n    const below = r.height - (box.top + box.height) >= ch + gap + 8 || box.top < ch + gap + 8;\n    const top = below ? Math.min(box.top + box.height + gap, r.height - ch - 8) : box.top - gap - ch;\n    const center = box.left + box.width / 2;\n    const left = Math.max(8, Math.min(r.width - cw - 8, center - cw / 2));\n    const tail = Math.max(16, Math.min(cw - 28, center - left - 6));\n    setCard({ top: Math.round(Math.max(8, top)), left: Math.round(left), tail: Math.round(tail), side: below ? \"below\" : \"above\" });\n  }, [step, padding]);\n\n  React.useEffect(() => {\n    if (!active) return;\n    const a = requestAnimationFrame(() => {\n      measure();\n      requestAnimationFrame(measure);\n    });\n    const ro = new ResizeObserver(() => measure());\n    if (rootRef.current) ro.observe(rootRef.current);\n    return () => {\n      cancelAnimationFrame(a);\n      ro.disconnect();\n    };\n  }, [active, measure]);\n\n  React.useEffect(() => {\n    if (!active || embedded) return;\n    const panel = cardRef.current;\n    if (!panel) return;\n    const opener = document.activeElement instanceof HTMLElement ? document.activeElement : null;\n    const fallback = startRef;\n    const html = document.documentElement;\n    const prevOverflow = html.style.overflow;\n    html.style.overflow = \"hidden\";\n    panel.focus({ preventScroll: true });\n    const onKey = (e: KeyboardEvent) => {\n      if (e.key === \"Escape\") {\n        e.preventDefault();\n        finish(false);\n        return;\n      }\n      if (e.key !== \"Tab\") return;\n      const nodes = Array.from(panel.querySelectorAll<HTMLElement>(focusable));\n      if (!nodes.length) return;\n      const first = nodes[0];\n      const last = nodes[nodes.length - 1];\n      const cur = document.activeElement;\n      if (e.shiftKey && (cur === first || cur === panel || !panel.contains(cur))) {\n        e.preventDefault();\n        last.focus();\n      } else if (!e.shiftKey && (cur === last || !panel.contains(cur))) {\n        e.preventDefault();\n        first.focus();\n      }\n    };\n    document.addEventListener(\"keydown\", onKey);\n    return () => {\n      document.removeEventListener(\"keydown\", onKey);\n      html.style.overflow = prevOverflow;\n      if (opener && opener.isConnected) opener.focus({ preventScroll: true });\n      else requestAnimationFrame(() => fallback.current?.focus({ preventScroll: true }));\n    };\n  }, [active, embedded, finish]);\n\n  React.useEffect(() => {\n    if (!embedded || !touched.current) return;\n    if (active) cardRef.current?.focus({ preventScroll: true });\n    else startRef.current?.focus({ preventScroll: true });\n  }, [embedded, active]);\n\n  const onCardKey = (e: React.KeyboardEvent) => {\n    if (e.key === \"ArrowRight\") {\n      e.preventDefault();\n      go(index + 1);\n    } else if (e.key === \"ArrowLeft\") {\n      e.preventDefault();\n      go(index - 1);\n    } else if (e.key === \"Escape\" && embedded) {\n      e.stopPropagation();\n      finish(false);\n    }\n  };\n\n  const last = index >= steps.length - 1;\n\n  return (\n    <div ref={rootRef} className={`hb-xf8 ${className}`} style={{ \"--hb-xf8-accent\": accent, ...style } as React.CSSProperties} {...rest}>\n      <style href=\"hb-popup-tour-spotlight\" precedence=\"default\">{css}</style>\n      <div ref={stageRef} inert={active}>\n        {children ?? <DefaultApp />}\n      </div>\n      {active && step && (\n        <div className=\"hb-xf8-layer\">\n          {hole && <div className=\"hb-xf8-hole\" style={{ top: hole.top, left: hole.left, width: hole.width, height: hole.height }} aria-hidden=\"true\" />}\n          <div\n            ref={cardRef}\n            className=\"hb-xf8-card\"\n            role=\"dialog\"\n            aria-modal={embedded ? undefined : true}\n            aria-labelledby={`${uid}-t`}\n            aria-describedby={`${uid}-b`}\n            tabIndex={-1}\n            data-side={card.side}\n            data-ready={hole ? \"true\" : \"false\"}\n            style={{ top: card.top, left: card.left }}\n            onKeyDown={onCardKey}\n          >\n            <span className=\"hb-xf8-tail\" style={{ left: card.tail }} aria-hidden=\"true\" />\n            <div className=\"hb-xf8-meta\">\n              <span className=\"hb-xf8-count\">STEP {index + 1} / {steps.length}</span>\n              <button type=\"button\" className=\"hb-xf8-skip\" onClick={() => finish(false)}>Skip tour</button>\n            </div>\n            <div className=\"hb-xf8-text\" key={index} aria-live=\"polite\">\n              <h3 className=\"hb-xf8-title\" id={`${uid}-t`}>{step.title}</h3>\n              <p className=\"hb-xf8-body\" id={`${uid}-b`}>{step.body}</p>\n            </div>\n            <div className=\"hb-xf8-foot\">\n              <div className=\"hb-xf8-dots\" aria-hidden=\"true\">\n                {steps.map((s, i) => (\n                  <span key={s.target + i} className=\"hb-xf8-dot\" data-on={i === index} data-past={i < index} />\n                ))}\n              </div>\n              {index > 0 && (\n                <button type=\"button\" className=\"hb-xf8-btn hb-xf8-back\" onClick={() => go(index - 1)}>Back</button>\n              )}\n              <button type=\"button\" className=\"hb-xf8-btn hb-xf8-next\" onClick={() => go(index + 1)}>\n                {last ? \"Finish\" : \"Next\"}\n                {!last && (\n                  <svg viewBox=\"0 0 12 12\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.8\" strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden=\"true\"><path d=\"M2.5 6h7M6.5 3l3 3-3 3\" /></svg>\n                )}\n              </button>\n            </div>\n          </div>\n        </div>\n      )}\n      {!active && showTrigger && (\n        <button\n          ref={startRef}\n          type=\"button\"\n          className=\"hb-xf8-start\"\n          onClick={() => {\n            setIndex(0);\n            setOpen(true);\n          }}\n        >\n          <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.9\" strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden=\"true\"><circle cx=\"12\" cy=\"12\" r=\"8.5\" /><path d=\"m10 8.5 5 3.5-5 3.5z\" fill=\"currentColor\" /></svg>\n          {triggerLabel}\n        </button>\n      )}\n    </div>\n  );\n}\n"
    }
  ]
}