{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"testimonials","title":"Testimonials","description":"Testimonials Section with Results, React. Testimonials with receipts: one customer at a time writes their quote in, with the number that moved beside it, over a wall of short quotes that each carry a result.","type":"registry:block","author":"Detent","dependencies":["motion"],"registryDependencies":["https://detentui.com/r/theme.json"],"files":[{"path":"components/detent/blocks/testimonials/Testimonials.tsx","target":"components/detent/blocks/testimonials/Testimonials.tsx","type":"registry:block","content":"'use client'\n\nimport { useEffect, useMemo, useState } from 'react'\nimport type { CSSProperties } from 'react'\nimport { motion, useReducedMotion } from 'motion/react'\nimport { tap } from '@/components/detent/lib/feel'\nimport { Orb } from '@/components/detent/ui/Orb'\nimport { ArrowRight } from '@/components/detent/blocks/kit/icons'\nimport { useDirector } from '@/components/detent/blocks/kit/director'\nimport { accentVars } from '@/components/detent/blocks/kit/props'\nimport type { BlockProps } from '@/components/detent/blocks/kit/props'\nimport { QUOTES, STORIES } from '@/components/detent/blocks/testimonials/content'\nimport type { Short, Story } from '@/components/detent/blocks/testimonials/content'\nimport { ease, press } from '@/components/detent/lib/motion'\n\nconst DWELL = 7600\n\nexport type TestimonialsProps = BlockProps & {\n  product?: string\n  eyebrow?: string\n  title?: [string, string]\n  stories?: Story[]\n  quotes?: Short[]\n}\n\nexport function Testimonials({\n  autoplay = false,\n  accent,\n  product = 'Detent',\n  eyebrow = 'Customers',\n  title = ['Teams that handed it the queue,', 'and got their week back.'],\n  stories: given,\n  quotes = QUOTES,\n  className = '',\n}: TestimonialsProps) {\n  const stories = useMemo(() => given ?? STORIES.map((s) => ({ ...s, quote: s.quote.replaceAll('Detent', product) })), [given, product])\n  const [at, setAt] = useState(0)\n  const [run, setRun] = useState(0)\n  const [handed, setHanded] = useState(!autoplay)\n  const director = useDirector(\n    async (wait) => {\n      await wait(DWELL)\n      setAt((a) => (a + 1) % stories.length)\n      setRun((r) => r + 1)\n    },\n    autoplay,\n    () => setHanded(true),\n  )\n  const show = (i: number) => {\n    setAt(i)\n    setRun((r) => r + 1)\n  }\n  const cell = (on: boolean) => `col-start-1 row-start-1 transition-[opacity,visibility] ease-detent ${on ? 'duration-300' : 'invisible opacity-0 duration-150'}`\n\n  return (\n    <div className={`pro-app @container h-full w-full overflow-y-auto overflow-x-hidden bg-surface text-ink [scrollbar-width:thin] ${className}`} style={accentVars(accent)}>\n      <section className=\"mx-auto max-w-[1180px] px-5 py-14 @3xl:px-8 @3xl:py-20\">\n        <header>\n          <p className=\"text-footnote font-medium text-[var(--dt-accent-ink)]\">{eyebrow}</p>\n          <h2 className=\"mt-3 text-[clamp(28px,4.2cqi,44px)] font-normal leading-[1.06] tracking-[-0.04em] text-ink\">\n            {title[0]}\n            <span className=\"block text-[color-mix(in_oklch,var(--ink)_42%,transparent)]\">{title[1]}</span>\n          </h2>\n        </header>\n\n        <figure className=\"mt-10 grid gap-8 rounded-[24px] bg-[var(--dt-card)] p-6 shadow-[0_0_0_1px_var(--line)] @3xl:mt-12 @3xl:p-10 @4xl:grid-cols-[minmax(0,1fr)_248px] @4xl:gap-12\">\n          <div className=\"min-w-0\">\n            <span aria-hidden className=\"block h-7 text-[60px] leading-[0.9] text-[var(--dt-accent)]\">\n              “\n            </span>\n            <blockquote className=\"mt-3 grid text-[clamp(20px,2.5cqi,27px)] leading-[1.32] tracking-[-0.022em] text-ink\">\n              {stories.map((s, i) => (\n                <p key={s.id} aria-hidden={i !== at} className={cell(i === at)}>\n                  {i === at ? <Writing key={run} text={s.quote} delay={run ? 180 : 500} /> : <Plain text={s.quote} />}\n                </p>\n              ))}\n            </blockquote>\n            <figcaption className=\"mt-7 grid\">\n              {stories.map((s, i) => (\n                <span key={s.id} aria-hidden={i !== at} className={`${cell(i === at)} flex items-center gap-3`}>\n                  <Orb seed={s.name} hue={s.hue} size={36} />\n                  <span>\n                    <span className=\"block text-callout font-medium text-ink\">{s.name}</span>\n                    <span className=\"block text-footnote text-ink-3\">\n                      {s.role}, {s.company}\n                    </span>\n                  </span>\n                </span>\n              ))}\n            </figcaption>\n          </div>\n\n          <div className=\"flex flex-col justify-between gap-6\">\n            <div className=\"grid\">\n              {stories.map((s, i) => (\n                <div key={s.id} aria-hidden={i !== at} className={`${cell(i === at)} rounded-[16px] bg-surface p-5 shadow-raised`}>\n                  <p className=\"text-footnote text-ink-3\">{s.metric}</p>\n                  <div className=\"mt-4 flex items-end gap-3\">\n                    <span>\n                      <span className=\"block text-caption text-ink-3\">Before</span>\n                      <span className=\"tnum block text-[20px] leading-tight tracking-[-0.02em] text-ink-3 line-through decoration-[color-mix(in_oklch,var(--ink)_30%,transparent)]\">{s.before}</span>\n                    </span>\n                    <ArrowRight size={15} className=\"mb-1.5 shrink-0 text-ink-3\" />\n                    <span>\n                      <span className=\"block text-caption font-medium text-[var(--dt-accent-ink)]\">With {product}</span>\n                      <motion.span key={i === at ? run : 'rest'} className=\"tnum block text-[34px] leading-none tracking-[-0.04em] text-ink\" initial={i === at ? { opacity: 0, y: 6 } : false} animate={{ opacity: 1, y: 0 }} transition={{ duration: 0.5, delay: 0.25, ease: ease.out }}>\n                        {s.after}\n                      </motion.span>\n                    </span>\n                  </div>\n                </div>\n              ))}\n            </div>\n\n            <div role=\"radiogroup\" aria-label=\"Customer\" className=\"flex gap-1.5\" onPointerDownCapture={director.onPointerDownCapture} onPointerUpCapture={director.onPointerUpCapture} onKeyDownCapture={director.onKeyDownCapture}>\n              {stories.map((s, i) => (\n                <motion.button whileTap={press}\n                  key={s.id}\n                  type=\"button\"\n                  role=\"radio\"\n                  aria-checked={i === at}\n                  aria-label={`${s.name}, ${s.company}`}\n                  title={s.name}\n                  onKeyDown={(e) => {\n                    const d = e.key === 'ArrowRight' ? 1 : e.key === 'ArrowLeft' ? -1 : 0\n                    if (!d) return\n                    e.preventDefault()\n                    const n = (at + d + stories.length) % stories.length\n                    show(n)\n                    ;(e.currentTarget.parentElement?.children[n] as HTMLElement | undefined)?.focus()\n                  }}\n                  tabIndex={i === at ? 0 : -1}\n                  onClick={() => (tap(), i !== at && show(i))}\n                  className=\"ring-focus relative grid size-10 place-items-center rounded-full\"\n                >\n                  <svg aria-hidden viewBox=\"0 0 40 40\" className=\"absolute inset-0 size-full -rotate-90\">\n                    <circle cx=\"20\" cy=\"20\" r=\"18.75\" fill=\"none\" stroke=\"var(--line-strong)\" strokeWidth=\"1.5\" className={`transition-opacity ease-detent ${i === at ? '' : 'opacity-0'}`} />\n                    {i === at && <motion.circle key={handed ? 'held' : run} cx=\"20\" cy=\"20\" r=\"18.75\" fill=\"none\" stroke=\"var(--dt-accent)\" strokeWidth=\"1.5\" strokeLinecap=\"round\" initial={{ pathLength: handed ? 1 : 0 }} animate={{ pathLength: 1 }} transition={{ duration: handed ? 0 : DWELL / 1000, ease: 'linear' }} />}\n                  </svg>\n                  <Orb seed={s.name} hue={s.hue} size={28} className={`transition-[filter,opacity] ease-detent duration-300 ${i === at ? '' : 'opacity-70 grayscale-[0.5] hover:opacity-100 hover:grayscale-0'}`} />\n                </motion.button>\n              ))}\n            </div>\n          </div>\n        </figure>\n\n        <ul className=\"mt-3 columns-1 gap-3 @3xl:columns-2 @5xl:columns-3\">\n          {quotes.map((q) => (\n            <li key={q.name} className=\"mb-3 break-inside-avoid rounded-[20px] bg-[var(--dt-card)] p-5 shadow-[0_0_0_1px_var(--line)]\">\n              <p className=\"text-callout leading-[22px] text-ink\">“{q.quote}”</p>\n              <div className=\"mt-5 flex items-center gap-2.5\">\n                <Orb seed={q.name} hue={q.hue} size={28} />\n                <span className=\"min-w-0 flex-1\">\n                  <span className=\"block truncate text-footnote font-medium text-ink\">{q.name}</span>\n                  <span className=\"block truncate text-caption text-ink-3\">\n                    {q.role}, {q.company}\n                  </span>\n                </span>\n                <span className=\"chip tnum shrink-0 rounded-full px-2 text-caption font-medium leading-6 text-[var(--dt-accent-ink)] [--chip:var(--dt-accent)]\">{q.result}</span>\n              </div>\n            </li>\n          ))}\n        </ul>\n      </section>\n    </div>\n  )\n}\n\ntype Piece = { t: string; mark: boolean }\nconst pieces = (q: string): Piece[] =>\n  q\n    .split(/(\\{[^}]*\\})/)\n    .filter(Boolean)\n    .map((s) => (s.startsWith('{') ? { t: s.slice(1, -1), mark: true } : { t: s, mark: false }))\n\nconst highlight = (on: boolean): CSSProperties => ({\n  color: 'inherit',\n  backgroundColor: 'transparent',\n  backgroundImage: 'linear-gradient(color-mix(in oklch, var(--dt-accent) 15%, transparent), color-mix(in oklch, var(--dt-accent) 15%, transparent))',\n  backgroundRepeat: 'no-repeat',\n  backgroundPosition: '0 82%',\n  backgroundSize: on ? '100% 0.62em' : '0% 0.62em',\n  transition: 'background-size 1100ms cubic-bezier(0.6, 0, 0.3, 1)',\n})\n\nfunction Writing({ text, delay = 0, pace = 30 }: { text: string; delay?: number; pace?: number }) {\n  const reduce = useReducedMotion()\n  const ps = pieces(text)\n  const total = ps.reduce((n, p) => n + p.t.split(/\\s+/).filter(Boolean).length, 0)\n  const [shown, setShown] = useState(reduce ? total : 0)\n  useEffect(() => {\n    if (shown >= total) return\n    const t = setTimeout(() => setShown(shown + 1), shown === 0 ? delay : pace)\n    return () => clearTimeout(t)\n  }, [shown, total, delay, pace])\n  let w = 0\n  return ps.map((p, k) => {\n    const body = p.t\n      .split(/(\\s+)/)\n      .filter(Boolean)\n      .map((tok, j) => {\n        if (/^\\s+$/.test(tok)) return tok\n        const i = w++\n        return (\n          <span key={j} className={i < shown ? 'word-in ai-warm' : 'invisible'}>\n            {tok}\n          </span>\n        )\n      })\n    if (!p.mark) return <span key={k}>{body}</span>\n    return (\n      <mark key={k} style={highlight(shown >= w)}>\n        {body}\n      </mark>\n    )\n  })\n}\n\nfunction Plain({ text }: { text: string }) {\n  return pieces(text).map((p, k) => (p.mark ? <mark key={k} style={highlight(true)}>{p.t}</mark> : <span key={k}>{p.t}</span>))\n}\n"},{"path":"components/detent/blocks/testimonials/content.ts","target":"components/detent/blocks/testimonials/content.ts","type":"registry:block","content":"export type Story = {\n  id: string\n  name: string\n  role: string\n  company: string\n  hue: number\n  quote: string\n  metric: string\n  before: string\n  after: string\n}\n\nexport const STORIES: Story[] = [\n  {\n    id: 'priya',\n    name: 'Priya Shah',\n    role: 'Head of Support',\n    company: 'Fieldwork',\n    hue: 330,\n    quote: 'We were drowning in where-is-my-order tickets. Detent now answers {two out of three before anyone on the team has opened their laptop,} and the answers are better than our macros ever were.',\n    metric: 'Resolved without a person',\n    before: '0%',\n    after: '68%',\n  },\n  {\n    id: 'marcus',\n    name: 'Marcus Bell',\n    role: 'COO',\n    company: 'Northwind',\n    hue: 210,\n    quote: 'The approval step is why we said yes. It refunds, replaces and extends trials, but {nothing that moves money happens without one of us.} Finance signed off in a day.',\n    metric: 'First reply',\n    before: '6h 40m',\n    after: '9s',\n  },\n  {\n    id: 'elena',\n    name: 'Elena Sokolova',\n    role: 'Support Lead',\n    company: 'Tessera',\n    hue: 150,\n    quote: 'We support customers in eleven languages with a team of six. {Nobody is translating at 2am anymore,} and our satisfaction scores went up, not down.',\n    metric: 'Satisfaction',\n    before: '4.1',\n    after: '4.7',\n  },\n  {\n    id: 'tom',\n    name: 'Tom Okafor',\n    role: 'Founder',\n    company: 'kite',\n    hue: 40,\n    quote: 'I set it up on a Sunday from our help center. {By Monday it had closed 212 tickets,} and I read every one of them. I’d have sent all but three.',\n    metric: 'Closed on day one',\n    before: '0',\n    after: '212',\n  },\n]\n\nexport type Short = { name: string; role: string; company: string; hue: number; quote: string; result: string }\n\nexport const QUOTES: Short[] = [\n  { name: 'Hana Ito', role: 'Support Ops', company: 'Orbital', hue: 260, quote: 'Our first reply went from hours to seconds. Customers noticed before we announced it.', result: 'First reply −98%' },\n  { name: 'Diego Álvarez', role: 'CX Manager', company: 'Saltbox', hue: 20, quote: 'It hands off with a summary so good my team stopped asking customers to repeat themselves.', result: 'Repeat contacts −41%' },\n  { name: 'Ama Owusu', role: 'Brand Lead', company: 'Ferngrove', hue: 120, quote: 'The tone settings are the reason it sounds like us and not like a script.', result: 'Satisfaction 4.8' },\n  { name: 'Ben Carter', role: 'VP Support', company: 'Holloway', hue: 230, quote: 'We turned it on for billing first. Two weeks later we turned it on for everything.', result: 'Live in 2 weeks' },\n  { name: 'Lina Park', role: 'Support Lead', company: 'Quillstone', hue: 300, quote: 'Every answer shows where it came from, so I trust it the way I’d trust a good new hire.', result: '71% resolved' },\n  { name: 'Sam Reyes', role: 'Head of CX', company: 'Marlow & Co', hue: 70, quote: 'Paying per conversation meant we could start small and prove it before asking for budget.', result: '$0 to start' },\n]\n"},{"path":"components/detent/blocks/kit/props.tsx","target":"components/detent/blocks/kit/props.tsx","type":"registry:block","content":"'use client'\n\nimport { createContext, useContext } from 'react'\nimport type { CSSProperties } from 'react'\n\nexport type BlockProps = {\n  autoplay?: boolean\n  accent?: string\n  className?: string\n}\n\nexport const Names = createContext({ assistant: 'Detent', product: 'Detent' })\nexport const useNames = () => useContext(Names)\n\nexport const handle = (s: string) => s.toLowerCase().replace(/[^a-z0-9]+/g, '-')\n\nexport function accentVars(accent?: string): CSSProperties | undefined {\n  if (!accent) return undefined\n  return {\n    ['--dt-accent' as string]: accent,\n    ['--dt-accent-ink' as string]: `light-dark(color-mix(in oklch, ${accent} 82%, black), color-mix(in oklch, ${accent} 60%, white))`,\n  }\n}\n"},{"path":"components/detent/lib/feel.ts","target":"components/detent/lib/feel.ts","type":"registry:block","content":"export const tap = () => {\n  if (typeof window !== 'undefined') window.dispatchEvent(new Event('detent:tap'))\n}\n\nlet keyed = true\nif (typeof window !== 'undefined') {\n  window.addEventListener('keydown', () => void (keyed = true), true)\n  window.addEventListener('pointerdown', () => void (keyed = false), true)\n}\nexport const byKey = () => keyed\n"},{"path":"components/detent/ui/Orb.tsx","target":"components/detent/ui/Orb.tsx","type":"registry:block","content":"import type { CSSProperties } from 'react'\n\nfunction hash(s: string) {\n  let h = 2166136261\n  for (let i = 0; i < s.length; i++) h = Math.imul(h ^ s.charCodeAt(i), 16777619)\n  return h >>> 0\n}\n\nconst at = (r: number, deg: number) => {\n  const a = (deg * Math.PI) / 180\n  return `${(50 + r * Math.cos(a)).toFixed(1)}% ${(50 + r * Math.sin(a)).toFixed(1)}%`\n}\n\nexport function Orb({ seed, hue, size = 32, quiet = false, className = '', style }: { seed: string; hue?: number; size?: number; quiet?: boolean; className?: string; style?: CSSProperties }) {\n  const n = hash(seed)\n  const h = hue ?? n % 360\n  const turn = n % 360\n  const comp = (h + 160 + (n % 40)) % 360\n  const warm = (h + 30 + ((n >> 6) % 30)) % 360\n  const glint = (h + 190 + ((n >> 11) % 40)) % 360\n  const c = (v: number) => (quiet ? v * 0.32 : v).toFixed(3)\n  return (\n    <span aria-hidden className={`relative block shrink-0 overflow-hidden rounded-full ${className}`} style={{ width: size, height: size, ...style }}>\n      <span\n        className=\"absolute -inset-[18%] block\"\n        style={{\n          background: [\n            `radial-gradient(circle at 46% 42%, oklch(0.84 ${c(0.15)} ${h}) 0%, transparent 60%)`,\n            `radial-gradient(circle at ${at(50, turn + 165)}, oklch(0.84 ${c(0.15)} ${comp}) 0%, transparent 40%)`,\n            `radial-gradient(circle at ${at(50, turn + 45)}, oklch(${quiet ? 0.66 : 0.7} ${c(0.19)} ${warm}) 0%, transparent 42%)`,\n            `radial-gradient(circle at ${at(52, turn - 65)}, oklch(0.88 ${c(0.1)} ${glint}) 0%, transparent 28%)`,\n            `oklch(${quiet ? 0.72 : 0.78} ${c(0.15)} ${h})`,\n          ].join(', '),\n          filter: `blur(${Math.max(1.5, size * 0.1)}px)`,\n        }}\n      />\n      <span\n        className=\"absolute inset-0 block rounded-full\"\n        style={{\n          background: 'radial-gradient(circle at 34% 26%, rgb(255 255 255 / 0.42) 0%, rgb(255 255 255 / 0.12) 26%, transparent 46%)',\n          boxShadow: `inset 0 ${-size * 0.1}px ${size * 0.22}px oklch(0.4 0.12 ${h} / 0.2), inset 0 0 0 0.5px rgb(0 0 0 / 0.07)`,\n        }}\n      />\n    </span>\n  )\n}\n"},{"path":"components/detent/blocks/kit/icons.tsx","target":"components/detent/blocks/kit/icons.tsx","type":"registry:block","content":"import { useId } from 'react'\nimport type { SVGProps } from 'react'\n\ntype P = SVGProps<SVGSVGElement> & { size?: number }\n\nfunction Svg({ size = 18, children, ...rest }: P) {\n  return (\n    <svg width={size} height={size} viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth={1.5} strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden {...rest}>\n      {children}\n    </svg>\n  )\n}\n\nexport const Check = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M5 12.5l4.5 4.5L19 7.5\" />\n  </Svg>\n)\n\nexport const ChevronDown = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M6.5 9.5 12 15l5.5-5.5\" />\n  </Svg>\n)\n\nexport const ChevronRight = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M9.5 6.5 15 12l-5.5 5.5\" />\n  </Svg>\n)\n\nexport const ChevronLeft = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M14.5 6.5 9 12l5.5 5.5\" />\n  </Svg>\n)\n\nexport const Reset = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M4.5 12a7.5 7.5 0 1 0 2.2-5.3\" />\n    <path d=\"M4.5 4.5v4h4\" />\n  </Svg>\n)\n\nexport const Close = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M6.5 6.5l11 11M17.5 6.5l-11 11\" />\n  </Svg>\n)\n\nexport const Plus = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M12 5.5v13M5.5 12h13\" />\n  </Svg>\n)\n\nexport const Search = (p: P) => (\n  <Svg {...p}>\n    <circle cx=\"11\" cy=\"11\" r=\"6.25\" />\n    <path d=\"m15.75 15.75 3.75 3.75\" />\n  </Svg>\n)\n\nexport const Orbit = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M18.06 8.5A7 7 0 1 1 15.5 5.94\" />\n    <circle cx=\"16.95\" cy=\"7.05\" r=\"1.9\" fill=\"currentColor\" stroke=\"none\" />\n  </Svg>\n)\n\nexport const Refresh = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M19.5 12a7.5 7.5 0 1 1-2.2-5.3\" />\n    <path d=\"M19.5 4.5v4h-4\" />\n  </Svg>\n)\n\nexport const Note = (p: P) => (\n  <Svg {...p}>\n    <rect x=\"5\" y=\"3.5\" width=\"14\" height=\"17\" rx=\"2.5\" />\n    <path d=\"M8.75 8.5h6.5M8.75 12h6.5M8.75 15.5h3.5\" />\n  </Svg>\n)\n\nexport const FilePage = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M13.5 3.5H8A2.5 2.5 0 0 0 5.5 6v12A2.5 2.5 0 0 0 8 20.5h8a2.5 2.5 0 0 0 2.5-2.5V8.5Z\" />\n    <path d=\"M13.5 3.5v5h5\" />\n  </Svg>\n)\n\nexport const Copy = (p: P) => (\n  <Svg {...p}>\n    <rect x=\"8.5\" y=\"8.5\" width=\"11\" height=\"11\" rx=\"2.5\" />\n    <path d=\"M15.5 8.5v-2a2 2 0 0 0-2-2h-7a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h2\" />\n  </Svg>\n)\n\nexport const ArrowUp = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M12 19V5.5M6.5 11 12 5.5l5.5 5.5\" />\n  </Svg>\n)\n\nexport const ArrowRight = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M5 12h13.5M13 6.5l5.5 5.5-5.5 5.5\" />\n  </Svg>\n)\n\nexport const ArrowLeft = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M19 12H5.5M11 6.5 5.5 12l5.5 5.5\" />\n  </Svg>\n)\n\nexport const Return = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M18.5 5.5V11a3 3 0 0 1-3 3H5.5M10 9.5 5.5 14l4.5 4.5\" />\n  </Svg>\n)\n\nexport const ArrowUpRight = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M7.5 16.5l9-9M9 7.5h7.5V15\" />\n  </Svg>\n)\n\nexport const Pencil = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M11.5 4.5H7A2.5 2.5 0 0 0 4.5 7v10A2.5 2.5 0 0 0 7 19.5h10a2.5 2.5 0 0 0 2.5-2.5v-4.5\" />\n    <path d=\"M17.6 3.9a1.9 1.9 0 0 1 2.7 2.7l-7.8 7.8-3.5.8.8-3.5Z\" />\n  </Svg>\n)\n\nexport const Folder = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M3.5 7.5A2.5 2.5 0 0 1 6 5h3.4c.6 0 1.1.2 1.5.6l1.2 1.2c.4.4.9.6 1.5.6H18a2.5 2.5 0 0 1 2.5 2.5v6.6A2.5 2.5 0 0 1 18 19H6a2.5 2.5 0 0 1-2.5-2.5Z\" />\n  </Svg>\n)\n\nexport const Code = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M8.5 7.5 4 12l4.5 4.5M15.5 7.5 20 12l-4.5 4.5\" />\n  </Svg>\n)\n\nexport const Download = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M12 4.5v11M7.5 11l4.5 4.5 4.5-4.5M5 19.5h14\" />\n  </Svg>\n)\n\nexport const Upload = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M12 15.5v-11M7.5 9 12 4.5 16.5 9M5 19.5h14\" />\n  </Svg>\n)\n\nexport const Thumb = ({ down, ...p }: P & { down?: boolean }) => (\n  <Svg {...p} style={{ transform: down ? 'scale(1, -1)' : undefined, ...p.style }}>\n    <path d=\"M7.5 10.5 11 4a1.8 1.8 0 0 1 3.3 1.3l-.8 3.7h4.9a2 2 0 0 1 2 2.4l-1.2 6.4a2 2 0 0 1-2 1.7H7.5Z\" />\n    <path d=\"M4.5 10.5h3v9h-3a1 1 0 0 1-1-1v-7a1 1 0 0 1 1-1Z\" />\n  </Svg>\n)\n\nexport const Sun = (p: P) => (\n  <Svg {...p}>\n    <circle cx=\"12\" cy=\"12\" r=\"4\" />\n    <path d=\"M12 3v1.5M12 19.5V21M3 12h1.5M19.5 12H21M5.6 5.6l1.1 1.1M17.3 17.3l1.1 1.1M5.6 18.4l1.1-1.1M17.3 6.7l1.1-1.1\" />\n  </Svg>\n)\n\nexport const Moon = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M19.5 14.5A7.5 7.5 0 0 1 9.5 4.5a7.5 7.5 0 1 0 10 10Z\" />\n  </Svg>\n)\n\nexport const Stop = (p: P) => (\n  <Svg {...p}>\n    <rect x=\"7\" y=\"7\" width=\"10\" height=\"10\" rx=\"2.25\" fill=\"currentColor\" stroke=\"none\" />\n  </Svg>\n)\n\nexport const Pause = (p: P) => (\n  <Svg {...p} strokeWidth={p.strokeWidth ?? 2}>\n    <path d=\"M9 7v10M15 7v10\" />\n  </Svg>\n)\n\nexport const Mail = (p: P) => (\n  <Svg {...p}>\n    <rect x=\"3.5\" y=\"5.5\" width=\"17\" height=\"13\" rx=\"2.5\" />\n    <path d=\"m4.5 7.5 7.5 5.25 7.5-5.25\" />\n  </Svg>\n)\n\nexport const Expand = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M14.5 4.5h5v5M9.5 19.5h-5v-5M19.5 4.5l-6 6M4.5 19.5l6-6\" />\n  </Svg>\n)\n\nexport const Card = (p: P) => (\n  <Svg {...p}>\n    <rect x=\"3.5\" y=\"5.5\" width=\"17\" height=\"13\" rx=\"2.5\" />\n    <path d=\"M3.5 10h17M7 15h3\" />\n  </Svg>\n)\n\nexport const Bolt = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M13 3.5 5.5 13.5h6l-1 7 7.5-10h-6Z\" />\n  </Svg>\n)\n\nexport const People = (p: P) => (\n  <Svg {...p}>\n    <circle cx=\"9\" cy=\"8.5\" r=\"3\" />\n    <path d=\"M3.5 19a5.5 5.5 0 0 1 11 0\" />\n    <path d=\"M15.5 5.6a3 3 0 0 1 0 5.8M17.5 14.3a5.5 5.5 0 0 1 3 4.7\" />\n  </Svg>\n)\n\nexport const Person = (p: P) => (\n  <Svg {...p}>\n    <circle cx=\"12\" cy=\"8\" r=\"3.5\" />\n    <path d=\"M5 19.5a7 7 0 0 1 14 0\" />\n  </Svg>\n)\n\nexport const Sliders = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M4.5 7.5h8.5M17 7.5h2.5M4.5 16.5H7M11 16.5h8.5\" />\n    <circle cx=\"15\" cy=\"7.5\" r=\"2\" />\n    <circle cx=\"9\" cy=\"16.5\" r=\"2\" />\n  </Svg>\n)\n\nexport const Key = (p: P) => (\n  <Svg {...p}>\n    <circle cx=\"8\" cy=\"15.5\" r=\"3.75\" />\n    <path d=\"M10.7 12.8 19 4.5M16 7.5l2.5 2.5M13.75 9.75l2 2\" />\n  </Svg>\n)\n\nexport const Shield = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M12 3.5 5 6.5v5c0 4.3 3 7.6 7 9 4-1.4 7-4.7 7-9v-5Z\" />\n    <path d=\"m9.25 12 2 2 3.5-3.75\" />\n  </Svg>\n)\n\nexport const Lock = (p: P) => (\n  <Svg {...p}>\n    <rect x=\"5.5\" y=\"10.5\" width=\"13\" height=\"9.5\" rx=\"2.5\" />\n    <path d=\"M8.5 10.5V8a3.5 3.5 0 0 1 7 0v2.5\" />\n  </Svg>\n)\n\nexport const Sidebar = (p: P) => (\n  <Svg {...p}>\n    <rect x=\"3.5\" y=\"4.5\" width=\"17\" height=\"15\" rx=\"3\" />\n    <path d=\"M9.5 4.5v15\" />\n  </Svg>\n)\n\nexport const PullRequest = (p: P) => (\n  <Svg {...p}>\n    <circle cx=\"6.5\" cy=\"6\" r=\"2\" />\n    <circle cx=\"6.5\" cy=\"18\" r=\"2\" />\n    <circle cx=\"17.5\" cy=\"18\" r=\"2\" />\n    <path d=\"M6.5 8v8M17.5 16v-6.5a3 3 0 0 0-3-3H11\" />\n    <path d=\"m13 4.5-2 2 2 2\" />\n  </Svg>\n)\n\nexport const Clock = (p: P) => (\n  <Svg {...p}>\n    <circle cx=\"12\" cy=\"12\" r=\"8\" />\n    <path d=\"M12 7.5V12l3 2\" />\n  </Svg>\n)\n\nexport const Terminal = (p: P) => (\n  <Svg {...p}>\n    <rect x=\"3.5\" y=\"4.5\" width=\"17\" height=\"15\" rx=\"3\" />\n    <path d=\"m7.5 9.5 2.5 2.5-2.5 2.5M12.5 14.5h4\" />\n  </Svg>\n)\n\nexport const Filter = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M4.5 7h15M7.5 12h9M10.5 17h3\" />\n  </Svg>\n)\n\nexport const Mic = (p: P) => (\n  <Svg {...p}>\n    <rect x=\"9\" y=\"3.5\" width=\"6\" height=\"11\" rx=\"3\" />\n    <path d=\"M5.5 11.5a6.5 6.5 0 0 0 13 0M12 18v2.5\" />\n  </Svg>\n)\n\nexport const MicOff = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M15 9.5V6.5a3 3 0 0 0-5.6-1.5M9 9v2.5a3 3 0 0 0 4.9 2.3\" />\n    <path d=\"M5.5 11.5a6.5 6.5 0 0 0 10.6 5M18.4 13a6.5 6.5 0 0 0 .1-1.5M12 18v2.5M4 4l16 16\" />\n  </Svg>\n)\n\nexport const Captions = (p: P) => (\n  <Svg {...p}>\n    <rect x=\"3.5\" y=\"5.5\" width=\"17\" height=\"13\" rx=\"3\" />\n    <path d=\"M7.5 13.5h5M14.5 13.5h2M7.5 10.5h2M11.5 10.5h5\" />\n  </Svg>\n)\n\nfunction Solid({ size = 22, children, ...rest }: P) {\n  return (\n    <svg width={size} height={size} viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden {...rest}>\n      {children}\n    </svg>\n  )\n}\n\nconst HANDSET = 'M2.75 12.9C2.75 9.55 6.9 7.6 12 7.6S21.25 9.55 21.25 12.9v1.55c0 .95-.8 1.65-1.75 1.5l-2.6-.4a1.6 1.6 0 0 1-1.35-1.58v-1.4A12.6 12.6 0 0 0 12 11.9c-1.25 0-2.4.18-3.55.67v1.4a1.6 1.6 0 0 1-1.35 1.58l-2.6.4c-.95.15-1.75-.55-1.75-1.5Z'\n\nexport const MicSolid = (p: P) => (\n  <Solid {...p}>\n    <rect x=\"8.25\" y=\"2.5\" width=\"7.5\" height=\"12.5\" rx=\"3.75\" />\n    <path d=\"M5.25 11.25a6.75 6.75 0 0 0 13.5 0M12 18v3.25\" fill=\"none\" stroke=\"currentColor\" strokeWidth={1.9} strokeLinecap=\"round\" />\n  </Solid>\n)\n\nexport function MicOffSolid(p: P) {\n  const id = useId()\n  return (\n    <Solid {...p}>\n      <mask id={id}>\n        <rect width=\"24\" height=\"24\" fill=\"#fff\" />\n        <path d=\"M4.5 3.5 19.5 20.5\" stroke=\"#000\" strokeWidth={5} strokeLinecap=\"round\" />\n      </mask>\n      <g mask={`url(#${id})`}>\n        <rect x=\"8.25\" y=\"2.5\" width=\"7.5\" height=\"12.5\" rx=\"3.75\" />\n        <path d=\"M5.25 11.25a6.75 6.75 0 0 0 13.5 0M12 18v3.25\" fill=\"none\" stroke=\"currentColor\" strokeWidth={1.9} strokeLinecap=\"round\" />\n      </g>\n      <path d=\"M4.5 3.5 19.5 20.5\" stroke=\"currentColor\" strokeWidth={1.9} strokeLinecap=\"round\" />\n    </Solid>\n  )\n}\n\nexport const Handset = (p: P) => (\n  <Solid {...p}>\n    <path d={HANDSET} />\n  </Solid>\n)\n\nexport function CaptionsSolid(p: P) {\n  const id = useId()\n  return (\n    <Solid {...p}>\n      <mask id={id}>\n        <rect width=\"24\" height=\"24\" fill=\"#fff\" />\n        <path d=\"M6.75 10.25h3.5M12.25 10.25h5M6.75 13.75h7.5M16.25 13.75h1\" stroke=\"#000\" strokeWidth={1.9} strokeLinecap=\"round\" />\n      </mask>\n      <rect x=\"3\" y=\"5.5\" width=\"18\" height=\"13\" rx=\"3.75\" mask={`url(#${id})`} />\n    </Solid>\n  )\n}\n\nexport const Calendar = (p: P) => (\n  <Svg {...p}>\n    <rect x=\"4\" y=\"5.5\" width=\"16\" height=\"14.5\" rx=\"3\" />\n    <path d=\"M4 10h16M8.5 3.5v4M15.5 3.5v4\" />\n  </Svg>\n)\n\nexport const Undo = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M9 14 4.5 9.5 9 5\" />\n    <path d=\"M4.5 9.5H14a5.5 5.5 0 0 1 0 11h-3\" />\n  </Svg>\n)\n\nexport const Chart = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M5 19.5v-7M10 19.5v-15M15 19.5v-9M20 19.5v-12\" />\n  </Svg>\n)\n\nexport const Chats = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M7.5 4.5h9A2.5 2.5 0 0 1 19 7v6.5a2.5 2.5 0 0 1-2.5 2.5H10.5L6.5 19.5V16A2.5 2.5 0 0 1 5 13.5V7a2.5 2.5 0 0 1 2.5-2.5Z\" />\n  </Svg>\n)\n\nexport const Share = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M12 14V3.5M8.25 7.25 12 3.5l3.75 3.75\" />\n    <path d=\"M8.5 10.5h-1A2.5 2.5 0 0 0 5 13v4.5A2.5 2.5 0 0 0 7.5 20h9a2.5 2.5 0 0 0 2.5-2.5V13a2.5 2.5 0 0 0-2.5-2.5h-1\" />\n  </Svg>\n)\n\nexport const Link = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M10.5 13.5a3.5 3.5 0 0 0 5 0l3-3a3.5 3.5 0 0 0-5-5l-1 1\" />\n    <path d=\"M13.5 10.5a3.5 3.5 0 0 0-5 0l-3 3a3.5 3.5 0 0 0 5 5l1-1\" />\n  </Svg>\n)\n\nexport const Trash = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M4.5 7h15M9.5 7V5.5a1.5 1.5 0 0 1 1.5-1.5h2a1.5 1.5 0 0 1 1.5 1.5V7M6.5 7l.8 11a2 2 0 0 0 2 1.9h5.4a2 2 0 0 0 2-1.9l.8-11\" />\n  </Svg>\n)\n\nexport const LogOut = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M14 4.5H7A2.5 2.5 0 0 0 4.5 7v10A2.5 2.5 0 0 0 7 19.5h7M10.5 12h9M16.5 8.5 20 12l-3.5 3.5\" />\n  </Svg>\n)\n\nexport const Help = (p: P) => (\n  <Svg {...p}>\n    <circle cx=\"12\" cy=\"12\" r=\"8\" />\n    <path d=\"M9.75 9.75a2.25 2.25 0 1 1 3.1 2.08c-.5.2-.85.68-.85 1.22v.45\" />\n    <path d=\"M12 16.5h.01\" strokeWidth={2.2} />\n  </Svg>\n)\n\nexport const Grid = (p: P) => (\n  <Svg {...p}>\n    <rect x=\"4.5\" y=\"4.5\" width=\"6\" height=\"6\" rx=\"1.75\" />\n    <rect x=\"13.5\" y=\"4.5\" width=\"6\" height=\"6\" rx=\"1.75\" />\n    <rect x=\"4.5\" y=\"13.5\" width=\"6\" height=\"6\" rx=\"1.75\" />\n    <rect x=\"13.5\" y=\"13.5\" width=\"6\" height=\"6\" rx=\"1.75\" />\n  </Svg>\n)\n\nexport const Paperclip = (p: P) => (\n  <Svg {...p}>\n    <path d=\"m19 11.5-7.1 7.1a4.5 4.5 0 0 1-6.4-6.4l7.6-7.6a3 3 0 0 1 4.25 4.25l-7.4 7.4a1.5 1.5 0 0 1-2.1-2.1l6.7-6.7\" />\n  </Svg>\n)\n\nexport const Photo = (p: P) => (\n  <Svg {...p}>\n    <rect x=\"4\" y=\"5\" width=\"16\" height=\"14\" rx=\"3\" />\n    <circle cx=\"9\" cy=\"10\" r=\"1.5\" />\n    <path d=\"m20 15.5-4.2-4.2a1.5 1.5 0 0 0-2.1 0L6 19\" />\n  </Svg>\n)\n\nexport const Plan = (p: P) => (\n  <Svg {...p}>\n    <path d=\"m4.5 7 1.5 1.5L8.75 5.75M4.5 15l1.5 1.5 2.75-2.75M11.5 7.5h8M11.5 15.5h8\" />\n  </Svg>\n)\n\nexport const At = (p: P) => (\n  <Svg {...p}>\n    <circle cx=\"12\" cy=\"12\" r=\"3.25\" />\n    <path d=\"M15.25 12v1.5a2.25 2.25 0 0 0 4.5 0V12a7.75 7.75 0 1 0-3.1 6.2\" />\n  </Svg>\n)\n\nexport const Slash = (p: P) => (\n  <Svg {...p}>\n    <rect x=\"4\" y=\"4\" width=\"16\" height=\"16\" rx=\"4.5\" />\n    <path d=\"m14 8-4 8\" />\n  </Svg>\n)\n"},{"path":"components/detent/blocks/kit/director.ts","target":"components/detent/blocks/kit/director.ts","type":"registry:block","content":"'use client'\n\nimport { createContext, useContext, useEffect, useLayoutEffect, useRef, useState } from 'react'\nimport type { PointerEvent } from 'react'\nimport { pressed } from '@/components/detent/lib/hand'\n\nexport const STOP = Symbol('stop')\nexport type Wait = (ms: number) => Promise<void>\n\nexport const InPlay = createContext(true)\n\nexport function useDirector(script: (wait: Wait, pass: number) => Promise<void>, autoplay = true, onTakeOver?: () => void) {\n  const play = useContext(InPlay)\n  const touched = useRef(!autoplay)\n  const latest = useRef(script)\n  useLayoutEffect(() => {\n    latest.current = script\n  })\n  const [begun, setBegun] = useState(play)\n  if (play && !begun) setBegun(true)\n  const gate = useRef(play)\n  const held = useRef<(() => void)[]>([])\n  useLayoutEffect(() => {\n    gate.current = play\n    if (!play) return\n    const resume = held.current\n    held.current = []\n    resume.forEach((go) => go())\n  }, [play])\n  useEffect(() => {\n    if (!autoplay || !begun) return\n    let on = true\n    const wait: Wait = (ms) =>\n      new Promise((r, x) => {\n        const go = () => (!on || touched.current ? x(STOP) : gate.current ? r() : held.current.push(go))\n        setTimeout(go, ms)\n      })\n    ;(async () => {\n      for (let pass = 0; ; pass++) await latest.current(wait, pass)\n    })().catch(() => {})\n    return () => {\n      on = false\n    }\n  }, [autoplay, begun])\n  const takeOver = () => {\n    if (!touched.current) onTakeOver?.()\n    touched.current = true\n  }\n  // Build the press handlers per event so takeOver is only handed over outside render.\n  const onPointerDownCapture = (e?: PointerEvent) => pressed(takeOver).onPointerDownCapture(e)\n  const onPointerUpCapture = (e?: PointerEvent) => pressed(takeOver).onPointerUpCapture(e)\n  return { onPointerDownCapture, onPointerUpCapture, onKeyDownCapture: takeOver, touched }\n}\n\nexport const sleeper = (ok: () => boolean) => (ms: number) => new Promise<void>((r, x) => setTimeout(() => (ok() ? r() : x(STOP)), ms))\n"},{"path":"components/detent/lib/motion.ts","target":"components/detent/lib/motion.ts","type":"registry:block","content":"export const ease = {\n  out: [0.2, 0.9, 0.25, 1] as const,\n  inOut: [0.6, 0, 0.3, 1] as const,\n}\n\nexport const dur = {\n  exit: 0.12,\n  hover: 0.15,\n  enter: 0.2,\n  swap: 0.24,\n  panel: 0.34,\n}\n\nexport const spring = {\n  snappy: { type: 'spring', stiffness: 560, damping: 42, mass: 0.6 } as const,\n  smooth: { type: 'spring', bounce: 0, duration: 0.36 } as const,\n  soft: { type: 'spring', bounce: 0.12, duration: 0.5 } as const,\n  release: { type: 'spring', stiffness: 320, damping: 32 } as const,\n  move: { type: 'spring', stiffness: 420, damping: 38 } as const,\n  data: { type: 'spring', stiffness: 170, damping: 26 } as const,\n  pop: { type: 'spring', bounce: 0.3, duration: 0.4 } as const,\n}\n\nexport const appear = {\n  initial: { opacity: 0, scale: 0.96 },\n  animate: { opacity: 1, scale: 1, transition: { duration: dur.swap, ease: ease.out } },\n  exit: { opacity: 0, scale: 0.97, transition: { duration: dur.exit, ease: ease.out } },\n}\n\nexport const slide = {\n  enter: (dir: number) => ({ x: dir * 24, opacity: 0 }),\n  center: { x: 0, opacity: 1 },\n  exit: (dir: number) => ({ x: dir * -24, opacity: 0 }),\n}\n\nexport const press = { scale: 0.97 }\n\nexport const staggerFor = (count: number) => Math.min(0.04, 0.2 / Math.max(1, count))\n"},{"path":"components/detent/lib/hand.ts","target":"components/detent/lib/hand.ts","type":"registry:block","content":"import type { PointerEvent, RefObject } from 'react'\n\nconst HOLD = 3000\nconst CONTROL = 'button,a,input,textarea,select,label,[role=\"button\"],[role=\"tab\"],[role=\"option\"],[role=\"slider\"],[role=\"switch\"],[contenteditable],[draggable]'\nconst timers = new WeakMap<object, ReturnType<typeof setTimeout>>()\nlet downAt: [number, number] | null = null\n\nexport const hover = (held: RefObject<boolean>) => ({\n  onPointerEnter: (e: PointerEvent) => {\n    if (e.pointerType === 'touch') return\n    held.current = true\n    clearTimeout(timers.get(held))\n    timers.set(held, setTimeout(() => (held.current = false), HOLD))\n  },\n  onPointerLeave: () => {\n    clearTimeout(timers.get(held))\n    held.current = false\n  },\n})\n\nexport const pressed = (take: () => void) => ({\n  onPointerDownCapture: (e?: PointerEvent) => {\n    if (e?.pointerType === 'touch') downAt = [e.clientX, e.clientY]\n    else take()\n  },\n  onPointerUpCapture: (e?: PointerEvent) => {\n    if (e?.pointerType !== 'touch' || !downAt) return\n    const moved = Math.hypot(e.clientX - downAt[0], e.clientY - downAt[1]) > 10\n    downAt = null\n    if (moved || (e.target as Element).closest?.(CONTROL)) take()\n  },\n})\n"}],"docs":"Usage, props and when to use it: https://detentui.com/blocks/testimonials.md . Wrap your root layout once in <MotionConfig reducedMotion=\"user\"> from motion/react so the motion respects reduced-motion settings.","meta":{"tier":"free","docs":"https://detentui.com/blocks/testimonials.md"}}