{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "block-recording",
  "type": "registry:block",
  "title": "Recording",
  "description": "A call recording on a raised page: who spoke when, the transcript that follows the player, highlights and comments at a moment, and a voice note.",
  "dependencies": [
    "@remixicon/react@^4.9.0"
  ],
  "registryDependencies": [
    "https://wideset.co/r/app-shell.json",
    "https://wideset.co/r/avatar.json",
    "https://wideset.co/r/block-styles.json",
    "https://wideset.co/r/breadcrumbs.json",
    "https://wideset.co/r/button.json",
    "https://wideset.co/r/divider.json",
    "https://wideset.co/r/dropdown-menu.json",
    "https://wideset.co/r/icon-button.json",
    "https://wideset.co/r/list-item.json",
    "https://wideset.co/r/progress-bar.json",
    "https://wideset.co/r/select.json",
    "https://wideset.co/r/sidebar.json",
    "https://wideset.co/r/text-input.json",
    "https://wideset.co/r/utils.json"
  ],
  "files": [
    {
      "path": "src/blocks/recording/brand-mark.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/recording/brand-mark.tsx",
      "content": "'use client';\n\nimport { cn } from '@/lib/wideset/utils';\n\nconst TILE =\n  'M0 16C0 8.45753 0 4.68629 2.34315 2.34315C4.68629 0 8.45753 0 16 0C23.5425 0 27.3137 0 29.6569 2.34315C32 4.68629 32 8.45753 32 16C32 23.5425 32 27.3137 29.6569 29.6569C27.3137 32 23.5425 32 16 32C8.45753 32 4.68629 32 2.34315 29.6569C0 27.3137 0 23.5425 0 16Z';\n\n/**\n * Orbit's mark: a planet and its ring on the inverse tile, so it inverts in dark mode. It takes\n * the size of its place (32px in a sidebar, 36px in a larger switcher). Decorative beside the\n * product's name; give it a `label` when it stands alone.\n */\nexport function BrandMark({ className, label }: { className?: string; label?: string }) {\n  return (\n    <svg\n      viewBox=\"0 0 32 32\"\n      role={label ? 'img' : undefined}\n      aria-label={label}\n      aria-hidden={label ? undefined : true}\n      className={cn('size-ws-14 shrink-0', className)}\n    >\n      <path d={TILE} className=\"fill-(--ws-static-fill-inverse-background)\" />\n      <ellipse\n        cx=\"16\"\n        cy=\"16\"\n        rx=\"10.5\"\n        ry=\"4\"\n        transform=\"rotate(-28 16 16)\"\n        strokeWidth=\"1.75\"\n        className=\"fill-none stroke-(--ws-static-text-inverse-strong)\"\n      />\n      <circle cx=\"16\" cy=\"16\" r=\"4.75\" className=\"fill-(--ws-static-text-inverse-strong)\" />\n    </svg>\n  );\n}\n"
    },
    {
      "path": "src/blocks/recording/call-highlights.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/recording/call-highlights.tsx",
      "content": "'use client';\n\n// TODO(custom): moments in a recording (time, label, the row seeks); Wideset has no timed list.\nimport type { Moment } from './data';\nimport { formatClock } from './format';\n\n/**\n * The moments Orbit marked in the call, in order. Each row is one target across its width: it\n * plays the call from there. The time leads, in a column of its own, so the rows line up.\n */\nexport function CallHighlights({\n  moments,\n  onSeek,\n}: {\n  moments: Moment[];\n  onSeek: (time: number) => void;\n}) {\n  return (\n    <ul className=\"-mx-ws-5 flex flex-col\">\n      {moments.map((moment) => (\n        <li key={moment.at}>\n          <button\n            type=\"button\"\n            onClick={() => onSeek(moment.at)}\n            aria-label={`${moment.label}, at ${formatClock(moment.at)}`}\n            className=\"gap-ws-7 px-ws-5 py-ws-4 rounded-ws-control-lg typography-label-sm hover:bg-ws-dynamic-tertiary-alpha-strong-default focus-visible:wds-focus-visible outline-ws-dynamic-primary-strong-default flex w-full cursor-pointer items-baseline text-left\"\n          >\n            <span className=\"text-ws-static-subtle w-ws-16 shrink-0 tabular-nums\">\n              {formatClock(moment.at)}\n            </span>\n            <span className=\"text-ws-static-strong truncate\">{moment.label}</span>\n          </button>\n        </li>\n      ))}\n    </ul>\n  );\n}\n"
    },
    {
      "path": "src/blocks/recording/call-player.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/recording/call-player.tsx",
      "content": "'use client';\n\n// TODO(custom): audio player controls around the speaker timeline; Wideset has no media player.\nimport { RiForward15Line, RiPauseFill, RiPlayFill, RiReplay15Line } from '@remixicon/react';\nimport { IconButton } from '@/components/ui/wideset/button/IconButton';\nimport { Select } from '@/components/ui/wideset/select/Select';\n\nimport type { Line, Person } from './data';\nimport { formatClock } from './format';\nimport { SpeakerTimeline } from './speaker-timeline';\nimport type { Playback } from './use-playback';\n\nconst SPEEDS = ['0.75', '1', '1.25', '1.5', '2'].map((value) => ({\n  value,\n  label: `${value}×`,\n}));\n\ntype CallPlayerProps = {\n  playback: Playback;\n  speakers: Person[];\n  lines: Line[];\n};\n\n/**\n * The recording's player: who spoke when, then the controls under it. Play is the one filled\n * button on the page, since listening is what the page is for; the skips and the speed stay\n * quiet. With focus on the timeline, the arrows seek and Space plays.\n */\nexport function CallPlayer({ playback, speakers, lines }: CallPlayerProps) {\n  const { time, duration, playing, rate, setRate, seek, toggle, onPlayerKeyDown } = playback;\n\n  return (\n    <section aria-label=\"Recording\" className=\"gap-ws-7 flex flex-col\">\n      <SpeakerTimeline\n        speakers={speakers}\n        lines={lines}\n        time={time}\n        duration={duration}\n        onSeek={seek}\n        onKeyDown={onPlayerKeyDown}\n      />\n      <div className=\"gap-ws-3 flex items-center\">\n        <IconButton\n          icon={playing ? RiPauseFill : RiPlayFill}\n          size=\"sm\"\n          aria-label={playing ? 'Pause' : 'Play'}\n          onClick={toggle}\n        />\n        <IconButton\n          icon={RiReplay15Line}\n          variant=\"secondary\"\n          preset=\"ghost\"\n          size=\"sm\"\n          aria-label=\"Back 15 seconds\"\n          onClick={() => seek(time - 15)}\n        />\n        <IconButton\n          icon={RiForward15Line}\n          variant=\"secondary\"\n          preset=\"ghost\"\n          size=\"sm\"\n          aria-label=\"Forward 15 seconds\"\n          onClick={() => seek(time + 15)}\n        />\n        <p className=\"typography-label-sm px-ws-3 text-ws-static-strong tabular-nums\">\n          {formatClock(time)}\n          <span className=\"text-ws-static-subtle\"> / {formatClock(duration)}</span>\n        </p>\n        <Select\n          size=\"sm\"\n          aria-label=\"Playback speed\"\n          options={SPEEDS}\n          value={String(rate)}\n          onValueChange={(value) => setRate(Number(value))}\n          className=\"ml-auto w-[5.5rem]\"\n        />\n      </div>\n    </section>\n  );\n}\n"
    },
    {
      "path": "src/blocks/recording/comment-field.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/recording/comment-field.tsx",
      "content": "'use client';\n\nimport { RiSendPlaneLine } from '@remixicon/react';\nimport { TextInput } from '@/components/ui/wideset/text-input/TextInput';\nimport { type FormEvent, useState } from 'react';\n\nimport { maya } from './data';\nimport { formatClock } from './format';\nimport { PersonAvatar } from './person-avatar';\n\ntype CommentFieldProps = {\n  /** The moment of the call a comment sent now refers to. */\n  at: number;\n  onComment: (text: string) => void;\n};\n\n/**\n * The one-line field for a comment at the moment the call is at, which its placeholder names:\n * Enter (or the arrow) sends it, and nothing is sent while it is empty.\n */\nexport function CommentField({ at, onComment }: CommentFieldProps) {\n  const [text, setText] = useState('');\n\n  const send = (event: FormEvent) => {\n    event.preventDefault();\n    if (!text.trim()) return;\n    onComment(text.trim());\n    setText('');\n  };\n\n  return (\n    <form onSubmit={send} className=\"gap-ws-5 flex items-center\">\n      <PersonAvatar\n        size=\"sm\"\n        name={maya.name}\n        initials={maya.initials}\n        color={maya.color}\n        aria-hidden\n      />\n      <TextInput\n        size=\"sm\"\n        className=\"min-w-0 flex-1\"\n        value={text}\n        onChange={(event) => setText(event.target.value)}\n      >\n        <TextInput.Input\n          placeholder={`Comment at ${formatClock(at)}`}\n          aria-label={`Comment at ${formatClock(at)}`}\n        />\n        <TextInput.Suffix inner>\n          <TextInput.IconButton\n            type=\"submit\"\n            icon={RiSendPlaneLine}\n            aria-label=\"Send comment\"\n            disabled={!text.trim()}\n          />\n        </TextInput.Suffix>\n      </TextInput>\n    </form>\n  );\n}\n"
    },
    {
      "path": "src/blocks/recording/comment-list.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/recording/comment-list.tsx",
      "content": "'use client';\n\n// TODO(custom): comments left at a moment of a recording (who, the moment, when, text or a voice note); no Comment component in Wideset.\nimport type { Comment } from './data';\nimport { formatClock, formatWhen } from './format';\nimport { PersonAvatar } from './person-avatar';\nimport { TextButton } from './text-button';\nimport { VoiceNote } from './voice-note';\n\ntype CommentListProps = {\n  /** In the order of the moments they refer to. */\n  comments: Comment[];\n  onSeek: (time: number) => void;\n};\n\n/**\n * Comments on the call, in the order of the call: who wrote, the moment they mean (a link that\n * plays from there), how long ago, then the text or the voice note.\n */\nexport function CommentList({ comments, onSeek }: CommentListProps) {\n  return (\n    <ol aria-label=\"Comments\" className=\"gap-ws-9 flex flex-col\">\n      {comments.map((comment) => (\n        <li key={comment.id} className=\"gap-ws-5 flex\">\n          <PersonAvatar\n            size=\"sm\"\n            name={comment.author.name}\n            initials={comment.author.initials}\n            color={comment.author.color}\n            aria-hidden\n          />\n          <div className=\"gap-ws-2 flex min-w-0 flex-1 flex-col\">\n            <p className=\"typography-label-sm gap-ws-5 flex flex-wrap items-baseline\">\n              <span className=\"typography-label-strong-sm text-ws-static-strong\">\n                {comment.author.name}\n              </span>\n              <TextButton\n                onClick={() => onSeek(comment.at)}\n                aria-label={`Play from ${formatClock(comment.at)}`}\n                className=\"tabular-nums\"\n              >\n                {formatClock(comment.at)}\n              </TextButton>\n              <time dateTime={comment.postedAt} className=\"text-ws-static-subtle\">\n                {formatWhen(comment.postedAt)}\n              </time>\n            </p>\n            {'text' in comment ? (\n              <p className=\"typography-body-md text-ws-static-base\">{comment.text}</p>\n            ) : (\n              <VoiceNote duration={comment.voiceNote} />\n            )}\n          </div>\n        </li>\n      ))}\n    </ol>\n  );\n}\n"
    },
    {
      "path": "src/blocks/recording/data.ts",
      "type": "registry:file",
      "target": "blocks/wideset/recording/data.ts",
      "content": "import {\n  type RemixiconComponentType,\n  RiBankCardLine,\n  RiContactsBook3Line,\n  RiHandCoinFill,\n  RiHandCoinLine,\n  RiHome5Line,\n  RiInbox2Line,\n  RiKey2Line,\n  RiLineChartLine,\n  RiPieChart2Line,\n  RiPlugLine,\n  RiQuestionLine,\n  RiSettings3Line,\n  RiTeamLine,\n} from '@remixicon/react';\nimport type { AvatarColor } from '@/components/ui/wideset/avatar/Avatar.colors';\n\n/*\n  This morning's discovery call with Atlas Robotics, recorded in Orbit: Maya Okafor (Lumen\n  Studio) and Oskar Lindqvist, who runs operations at Atlas. Atlas builds warehouse robots and\n  runs service from two sites; they want one place for service requests, parts orders and shift\n  handovers. The call sits on the deal \"Two-site rollout\". Three teammates have commented since.\n*/\n\n/** The product is Orbit; the workspace using it is Lumen Studio. */\nexport const product = { name: 'Orbit' };\nexport const workspace = { name: 'Lumen Studio', initials: 'LS' };\nexport const account = { name: 'Maya Okafor', email: 'maya@lumenstudio.co', initials: 'MO' };\n\n/** \"Now\" for the relative times on the page: the afternoon after the call. */\nexport const NOW = new Date('2026-11-10T15:00');\n\nexport type NavLink = {\n  id: string;\n  label: string;\n  icon: RemixiconComponentType;\n  /** The icon while the page is open (a line icon swaps for its fill). */\n  activeIcon?: RemixiconComponentType;\n};\n\nexport const mainLinks: NavLink[] = [\n  { id: 'home', label: 'Home', icon: RiHome5Line },\n  { id: 'inbox', label: 'Inbox', icon: RiInbox2Line },\n  { id: 'customers', label: 'Customers', icon: RiContactsBook3Line },\n  { id: 'deals', label: 'Deals', icon: RiHandCoinLine, activeIcon: RiHandCoinFill },\n  { id: 'revenue', label: 'Revenue', icon: RiLineChartLine },\n  { id: 'reports', label: 'Reports', icon: RiPieChart2Line },\n];\n\nexport const settingsLinks: NavLink[] = [\n  { id: 'general', label: 'General', icon: RiSettings3Line },\n  { id: 'members', label: 'Members', icon: RiTeamLine },\n  { id: 'billing', label: 'Billing', icon: RiBankCardLine },\n  { id: 'integrations', label: 'Integrations', icon: RiPlugLine },\n  { id: 'api-keys', label: 'API keys', icon: RiKey2Line },\n];\n\nexport const helpLink: NavLink = { id: 'help', label: 'Help and support', icon: RiQuestionLine };\n\nexport type Person = { id: string; name: string; initials: string; color: AvatarColor };\n\nconst person = (id: string, name: string, color: AvatarColor): Person => ({\n  id,\n  name,\n  initials: name\n    .split(' ')\n    .map((part) => part[0])\n    .join(''),\n  color,\n});\n\nexport const maya = person('maya', 'Maya Okafor', 'orange');\nexport const oskar = person('oskar', 'Oskar Lindqvist', 'blue');\nconst jonas = person('jonas', 'Jonas Weber', 'teal');\nconst priya = person('priya', 'Priya Raman', 'purple');\nconst tom = person('tom', 'Tom Becker', 'green');\n\n/** The two people on the call, in the order the timeline lists them. */\nexport const speakers = [maya, oskar];\n\nexport const call = {\n  title: 'Discovery call with Atlas Robotics',\n  customer: 'Atlas Robotics',\n  startedAt: '2026-11-10T11:30',\n  /** Seconds. */\n  duration: 1584,\n  deal: { id: 'atlas-two-site-rollout', name: 'Two-site rollout' },\n};\n\n/** One turn of the call: who spoke, from `at` seconds, what they said. */\nexport type Line = { at: number; speaker: Person; text: string };\n\nconst line = (at: number, speaker: Person, text: string): Line => ({ at, speaker, text });\n\nexport const transcript: Line[] = [\n  line(0, maya, 'Hi Oskar, thanks for making the time. Can you hear me all right?'),\n  line(\n    6,\n    oskar,\n    'Loud and clear. Thanks for sending the agenda yesterday, I added a couple of points.',\n  ),\n  line(\n    14,\n    maya,\n    'Great. Let’s start with how your team works today, and keep the last ten minutes for next steps.',\n  ),\n  line(\n    25,\n    oskar,\n    'Sure. We build warehouse robots and run service and parts from two sites, Denver and Austin. About 120 people between them.',\n  ),\n  line(62, maya, 'And what do they work in today?'),\n  line(\n    68,\n    oskar,\n    'Mostly spreadsheets, and an old ticketing tool that only Denver uses. Austin never moved over, so we have two ways of doing everything.',\n  ),\n  line(130, maya, 'What does that cost you, day to day?'),\n  line(\n    138,\n    oskar,\n    'Handovers, mainly. A technician in Austin can’t see what Denver promised a customer, so they call around. We lose hours every week.',\n  ),\n  line(220, maya, 'You mentioned three workflows in your note. Which would you replace first?'),\n  line(\n    232,\n    oskar,\n    'Service requests first, then parts orders, then shift handovers. Service requests are where our customers feel it.',\n  ),\n  line(330, maya, 'Who owns service requests today?'),\n  line(\n    336,\n    oskar,\n    'Each site’s lead. Lena in Denver, Marco in Austin. They would both need to sign off.',\n  ),\n  line(\n    400,\n    maya,\n    'That is very close to how Halcyon Freight worked before they moved to us. Same two-site split.',\n  ),\n  line(425, oskar, 'Interesting. How long did their move take?'),\n  line(\n    432,\n    maya,\n    'About six weeks a site, one workflow at a time. I can send you their story after the call.',\n  ),\n  line(510, oskar, 'Please do. Our worry is putting both sites through a change at once.'),\n  line(\n    585,\n    maya,\n    'We wouldn’t. We would start with service requests in Denver, then bring Austin over once it works.',\n  ),\n  line(680, oskar, 'That works for us. Do you support single sign-on? Our security team will ask.'),\n  line(691, maya, 'Yes, on the Business plan, with audit logs. I will include our security pack.'),\n  line(785, maya, 'How do you decide on a purchase like this?'),\n  line(\n    820,\n    oskar,\n    'I recommend, our COO signs. Anything over fifty thousand a year goes to the board in January.',\n  ),\n  line(930, oskar, 'Which brings me to pricing. What would 120 seats look like?'),\n  line(\n    942,\n    maya,\n    'Business is 65 dollars a seat a month, so 7,800 a month for 120 seats. I will put it in writing with the annual price.',\n  ),\n  line(1030, oskar, 'And if we start with Denver only?'),\n  line(\n    1038,\n    maya,\n    'Then you pay for Denver’s seats, and Austin joins at the same price when it is ready.',\n  ),\n  line(1165, oskar, 'That makes the first step much easier to approve.'),\n  line(1240, maya, 'What would make this a success for you in six months?'),\n  line(\n    1250,\n    oskar,\n    'One place for every service request, and handovers nobody has to chase. If Austin stops calling Denver, I am happy.',\n  ),\n  line(\n    1390,\n    maya,\n    'Then let’s agree next steps. Today I will send the Halcyon story, the security pack and pricing for Business.',\n  ),\n  line(1420, oskar, 'And a demo for Lena and Marco?'),\n  line(1426, maya, 'Yes. Does the 19th work, at ten your time?'),\n  line(1445, oskar, 'The 19th works. I will send the invite to both of them.'),\n  line(1460, maya, 'Anything you would like me to prepare for it?'),\n  line(1470, oskar, 'Show us a handover between two sites. That is the moment that hurts.'),\n  line(1570, maya, 'Will do. Thanks, Oskar, speak on the 19th.'),\n  line(1576, oskar, 'Thanks, Maya. Bye.'),\n];\n\n/** A moment Orbit marked in the call, from `at` seconds. */\nexport type Moment = { at: number; label: string };\n\nexport const highlights: Moment[] = [\n  { at: 68, label: 'Current tooling' },\n  { at: 232, label: 'Workflows to replace first' },\n  { at: 930, label: 'Pricing question' },\n  { at: 1390, label: 'Next steps' },\n];\n\n/** A comment left at a moment of the call: text, or a voice note `duration` seconds long. */\nexport type Comment = {\n  id: string;\n  author: Person;\n  /** The moment it refers to, in seconds. */\n  at: number;\n  /** When it was left, ISO. */\n  postedAt: string;\n} & ({ text: string } | { voiceNote: number });\n\nexport const comments: Comment[] = [\n  {\n    id: 'jonas-halcyon',\n    author: jonas,\n    at: 400,\n    postedAt: '2026-11-10T13:05',\n    text: 'Halcyon is the right story here. I can join the demo and walk through their rollout.',\n  },\n  {\n    id: 'priya-sso',\n    author: priya,\n    at: 680,\n    postedAt: '2026-11-10T13:40',\n    text: 'I will ask security to have the pack ready before the 19th.',\n  },\n  {\n    id: 'tom-trial',\n    author: tom,\n    at: 1038,\n    postedAt: '2026-11-10T14:10',\n    text: 'Denver first fits their trial. I will extend it to the end of the month.',\n  },\n];\n"
    },
    {
      "path": "src/blocks/recording/format.ts",
      "type": "registry:file",
      "target": "blocks/wideset/recording/format.ts",
      "content": "import { NOW } from './data';\n\n// One locale for the whole screen; swap it for the user's.\nconst LOCALE = 'en-US';\nconst MINUTE = 60_000;\n\nconst relative = new Intl.RelativeTimeFormat(LOCALE, { numeric: 'auto' });\nconst dateTime = new Intl.DateTimeFormat(LOCALE, { dateStyle: 'medium', timeStyle: 'short' });\nconst twoDigits = new Intl.NumberFormat(LOCALE, { minimumIntegerDigits: 2 });\n\n/** A player's clock: \"4:12\", \"26:24\". */\nexport function formatClock(seconds: number) {\n  const whole = Math.floor(seconds);\n  return `${Math.floor(whole / 60)}:${twoDigits.format(whole % 60)}`;\n}\n\n/** The same moment read aloud, for a scrubber's `aria-valuetext`: \"4 min 12 s\". */\nexport function formatSpoken(seconds: number) {\n  const whole = Math.floor(seconds);\n  const minutes = Math.floor(whole / 60);\n  return minutes ? `${minutes} min ${whole % 60} s` : `${whole % 60} s`;\n}\n\n/** A call's length in the header: \"26 min\". */\nexport const formatLength = (seconds: number) => `${Math.round(seconds / 60)} min`;\n\n/** When the call took place: \"Nov 10, 2026, 11:30 AM\". */\nexport const formatDateTime = (iso: string) => dateTime.format(new Date(iso));\n\n/** How long ago a comment was left, the same day: \"Just now\", \"35 minutes ago\", \"2 hours ago\". */\nexport function formatWhen(iso: string) {\n  const minutes = Math.round((NOW.getTime() - new Date(iso).getTime()) / MINUTE);\n  if (minutes < 1) return 'Just now';\n  if (minutes < 60) return relative.format(-minutes, 'minute');\n  return relative.format(-Math.floor(minutes / 60), 'hour');\n}\n"
    },
    {
      "path": "src/blocks/recording/highlight.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/recording/highlight.tsx",
      "content": "'use client';\n\n// TODO(custom): the matched part of a result, marked; Wideset has no text highlight and no token for Figma's gold fill.\n\n/**\n * The first place `query` occurs in `text`, marked as Figma marks a search match: a fill the\n * height of the line (hence `inline-block`). Figma's fill (Non-semantic/Fill/Gold/Subtle) has no\n * token in code: yellow subtle stands in.\n */\nexport function Highlight({ text, query }: { text: string; query: string }) {\n  const start = query ? text.toLowerCase().indexOf(query.toLowerCase()) : -1;\n  if (start < 0) return <>{text}</>;\n  const end = start + query.length;\n\n  return (\n    <>\n      {text.slice(0, start)}\n      <mark className=\"bg-ws-non-semantic-yellow-subtle inline-block text-inherit\">\n        {text.slice(start, end)}\n      </mark>\n      {text.slice(end)}\n    </>\n  );\n}\n"
    },
    {
      "path": "src/blocks/recording/index.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/recording/index.tsx",
      "content": "'use client';\n\nimport '@/styles/wideset-blocks.css';\n\nimport { RiSideBarLine } from '@remixicon/react';\nimport { AppShell } from '@/components/ui/wideset/app-shell/AppShell';\nimport { Breadcrumbs } from '@/components/ui/wideset/breadcrumbs/Breadcrumbs';\nimport { cn } from '@/lib/wideset/utils';\nimport { IconButton } from '@/components/ui/wideset/button/IconButton';\nimport { useId, useState } from 'react';\n\nimport { CallHighlights } from './call-highlights';\nimport { CallPlayer } from './call-player';\nimport { CommentField } from './comment-field';\nimport { CommentList } from './comment-list';\nimport {\n  call,\n  type Comment,\n  comments as initialComments,\n  highlights,\n  maya,\n  NOW,\n  speakers,\n  transcript,\n} from './data';\nimport { RecordingHeader } from './recording-header';\nimport { Section } from './section';\nimport { RecordingSidebar } from './sidebar';\nimport { Transcript } from './transcript';\nimport { usePlayback } from './use-playback';\nimport { VoiceNoteRecorder } from './voice-note-recorder';\n\n/** One column of the page: the header and the body share its edges. */\nconst COLUMN = 'px-ws-14 mx-auto w-full max-w-[80rem]';\n\n/**\n * Recording (Inset direction): a recorded sales call on the raised page beside the workspace\n * sidebar. The header says what the call was; the player under it shows who spoke when. Below a\n * line, the transcript follows the player, and a narrow column holds the moments Orbit marked\n * and the team's comments at a moment, with a field and a voice note to add one at the moment\n * the call is at. The page fills the card and its two columns scroll on their own, so the player\n * stays in view while the transcript moves.\n */\nexport default function Recording() {\n  const sidebarId = useId();\n  const [collapsed, setCollapsed] = useState(false);\n  const playback = usePlayback(call.duration, 0);\n  const [comments, setComments] = useState(initialComments);\n  const at = Math.floor(playback.time);\n\n  const addComment = (comment: Pick<Comment, 'at'> & ({ text: string } | { voiceNote: number })) =>\n    setComments(\n      [\n        ...comments,\n        { ...comment, id: `note-${comments.length}`, author: maya, postedAt: NOW.toISOString() },\n      ].sort((a, b) => a.at - b.at),\n    );\n\n  return (\n    <AppShell className=\"ws-block-utility\" direction=\"inset\">\n      <RecordingSidebar id={sidebarId} collapsed={collapsed} onCollapsedChange={setCollapsed} />\n      <AppShell.Main>\n        <div className=\"h-ws-18 border-ws-static-base flex shrink-0 items-center border-b\">\n          {/* The bar belongs to the surround: it runs edge to edge. The sidebar's toggle is pulled\n              left so its glyph, not its box, sits 20px from the edge; the crumbs follow it. */}\n          <div className=\"gap-ws-5 px-ws-11 flex w-full items-center\">\n            <IconButton\n              icon={RiSideBarLine}\n              variant=\"secondary\"\n              preset=\"ghost\"\n              size=\"sm\"\n              iconClassName=\"text-ws-static-subtle size-ws-9\"\n              aria-label={collapsed ? 'Expand sidebar' : 'Collapse sidebar'}\n              aria-expanded={!collapsed}\n              aria-controls={sidebarId}\n              onClick={() => setCollapsed(!collapsed)}\n              className=\"-ml-ws-5\"\n            />\n            <Breadcrumbs separator=\"arrow\">\n              <Breadcrumbs.Item asChild>\n                <a href=\"#deals\">Deals</a>\n              </Breadcrumbs.Item>\n              <Breadcrumbs.Item asChild>\n                <a href={`#${call.deal.id}`}>{call.customer}</a>\n              </Breadcrumbs.Item>\n              <Breadcrumbs.Item>Discovery call</Breadcrumbs.Item>\n            </Breadcrumbs>\n          </div>\n        </div>\n\n        {/* The page fills the card; on a short window it scrolls inside it instead. */}\n        <div className=\"ws-scrollbar min-h-0 flex-1 overflow-y-auto\">\n          <div className={cn(COLUMN, 'gap-ws-14 pt-ws-14 flex h-full min-h-[42rem] flex-col')}>\n            <RecordingHeader />\n            <CallPlayer playback={playback} speakers={speakers} lines={transcript} />\n\n            <div className=\"gap-ws-16 border-ws-static-base pt-ws-12 grid min-h-0 flex-1 grid-cols-[minmax(0,1fr)_20rem] border-t\">\n              <Transcript\n                lines={transcript}\n                time={playback.time}\n                playing={playback.playing}\n                onSeek={playback.seek}\n              />\n\n              <aside\n                aria-label=\"About the call\"\n                className=\"gap-ws-16 -mx-ws-7 px-ws-7 pb-ws-12 ws-scrollbar flex min-h-0 flex-col overflow-y-auto\"\n              >\n                <Section title=\"Highlights\">\n                  <CallHighlights moments={highlights} onSeek={playback.seek} />\n                </Section>\n                <Section title=\"Comments\">\n                  <CommentList comments={comments} onSeek={playback.seek} />\n                  {/* The field and the recorder share the comments' text edge, past the avatar. */}\n                  <div className=\"gap-ws-5 flex flex-col\">\n                    <CommentField at={at} onComment={(text) => addComment({ at, text })} />\n                    <div className=\"pl-ws-14 flex flex-col\">\n                      <VoiceNoteRecorder\n                        at={at}\n                        onSave={({ at: noteAt, duration }) =>\n                          addComment({ at: noteAt, voiceNote: duration })\n                        }\n                      />\n                    </div>\n                  </div>\n                </Section>\n              </aside>\n            </div>\n          </div>\n        </div>\n      </AppShell.Main>\n    </AppShell>\n  );\n}\n"
    },
    {
      "path": "src/blocks/recording/people.assets.ts",
      "type": "registry:file",
      "target": "blocks/wideset/recording/people.assets.ts",
      "content": "// Portraits of the sample people as small JPEG data URLs (a block ships only .ts and .tsx).\n// Exported from the Wideset Core Figma file by people.cjs: do not edit by hand.\n\n/** A person’s photo by name. People who are not here show their initials. */\nexport const PHOTOS: Record<string, string | undefined> = {\n  'Maya Okafor':\n    'data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/4gHYSUNDX1BST0ZJTEUAAQEAAAHIAAAAAAQwAABtbnRyUkdCIFhZWiAH4AABAAEAAAAAAABhY3NwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAA9tYAAQAAAADTLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAlkZXNjAAAA8AAAACRyWFlaAAABFAAAABRnWFlaAAABKAAAABRiWFlaAAABPAAAABR3dHB0AAABUAAAABRyVFJDAAABZAAAAChnVFJDAAABZAAAAChiVFJDAAABZAAAAChjcHJ0AAABjAAAADxtbHVjAAAAAAAAAAEAAAAMZW5VUwAAAAgAAAAcAHMAUgBHAEJYWVogAAAAAAAAb6IAADj1AAADkFhZWiAAAAAAAABimQAAt4UAABjaWFlaIAAAAAAAACSgAAAPhAAAts9YWVogAAAAAAAA9tYAAQAAAADTLXBhcmEAAAAAAAQAAAACZmYAAPKnAAANWQAAE9AAAApbAAAAAAAAAABtbHVjAAAAAAAAAAEAAAAMZW5VUwAAACAAAAAcAEcAbwBvAGcAbABlACAASQBuAGMALgAgADIAMAAxADb/2wBDAAQDAwQDAwQEBAQFBQQFBwsHBwYGBw4KCggLEA4RERAOEA8SFBoWEhMYEw8QFh8XGBsbHR0dERYgIh8cIhocHRz/2wBDA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2YbJPTA4J717isKWpuS4CCpQ2A+/Wpqi2WqmPcTTdYURiD7SYSkAACloor0SIkWkpe1JQmQopCcU6ZgOvDJBAqFlyV+oyQUnxGilpQMqIAqj+Ierp+n7A7KtUcLdCkpLricpQCcbgO/OOvrWyV2xCUkkZI9aj5mmmLpaVxZCAtDqFIUMdR/NVmp1ljqVq6+Z001orAv2JyE3aH5eZKcl0kqV9TV30PAuT8gtR5QY3cEFPWrTJ0NJ0xK2uNlyMThLoHBH7H6VMWexIjSQ6BtTnckgdKTmDBuLCN6urKGQyzWuxmMEGU+qQ6O6ug+1Ss07UI28FJGKSMc9Dkipq3WJ66KBIKGe6yOPt61urRmOK/M0WWKo5WHqYolslyLeJZbGNxG0HqB3/zTZQKSQoEEdQa2KGW48dDLYwhAwBUTNtrEnO5I3eo6036fVOihbe/mKdiqzEoMCVCipGVZ3mAVN5cR7c1HEEHB4NWCOrjKmaSCPMkLfbsLStw7lK6VOpaCUnjpTRJS06Gx/tvJwP7VdP4+1SBO2Ups9CKos5OTOqMHRsWfQ1nbbHlp4xjmsbqC7IS2Oxyad42rKfpWCZPHkMvoKHmwpJ4PGQfcVh/01bVjCWEAeiDj9KztnBPvTpODQatX9QzCtjp6TiYIWnrdDVuSyCf7yT+lS+8JGEgAU0QOay1JEVOlGJF3ZzlzmelJ3ck14DaQoDFZB0xWMnhSvsKlIw2AjoOairpZkSG1uIGHEjIx3qWzhzHZCayK/Dj1qSMVORAe5//Z',\n};\n"
    },
    {
      "path": "src/blocks/recording/person-avatar.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/recording/person-avatar.tsx",
      "content": "'use client';\n\nimport type { AvatarProps } from '@/components/ui/wideset/avatar/Avatar.types';\nimport { Avatar } from '@/components/ui/wideset/avatar/Avatar';\n\nimport { PHOTOS } from './people.assets';\n\ntype PersonAvatarProps = Pick<\n  AvatarProps,\n  | 'size'\n  | 'shape'\n  | 'status'\n  | 'color'\n  | 'className'\n  | 'style'\n  | 'title'\n  | 'aria-hidden'\n  | 'aria-label'\n> & {\n  /** The person's full name: the key their photo is filed under. */\n  name: string;\n  initials: string;\n  /** Leave empty beside the person's name; pass the name where the avatar stands alone. */\n  alt?: string;\n};\n\n/**\n * A person's avatar: their photo when the sample people have one, otherwise their initials in\n * their colour. A real product mixes the two, so every place the block draws a person asks here\n * and the choice is made once. The initials stay as the fallback if the image fails to load.\n * `style` is passed on because `Avatar.Group` sets the stacking order on each of its avatars.\n */\nexport function PersonAvatar({ name, initials, color, alt = '', ...props }: PersonAvatarProps) {\n  const photo = PHOTOS[name];\n  return photo ? (\n    <Avatar src={photo} alt={alt} initials={initials} {...props} />\n  ) : (\n    <Avatar initials={initials} color={color} {...props} />\n  );\n}\n"
    },
    {
      "path": "src/blocks/recording/recording-header.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/recording/recording-header.tsx",
      "content": "'use client';\n\n// TODO(custom): page header (title, a line of facts, the actions on the right); no PageHeader in Wideset.\nimport {\n  type RemixiconComponentType,\n  RiDeleteBinLine,\n  RiDownload2Line,\n  RiEditLine,\n  RiLinkM,\n  RiMoreFill,\n  RiShareLine,\n} from '@remixicon/react';\nimport { Avatar } from '@/components/ui/wideset/avatar/Avatar';\nimport { Button } from '@/components/ui/wideset/button/Button';\nimport { DropdownMenu } from '@/components/ui/wideset/dropdown/DropdownMenu';\nimport { IconButton } from '@/components/ui/wideset/button/IconButton';\nimport { ListItem } from '@/components/ui/wideset/list-item/ListItem';\n\nimport { call, speakers } from './data';\nimport { formatDateTime, formatLength } from './format';\nimport { PersonAvatar } from './person-avatar';\nimport { TextLink } from './text-link';\n\nconst MENU: { label: string; icon: RemixiconComponentType }[] = [\n  { label: 'Copy link', icon: RiLinkM },\n  { label: 'Rename', icon: RiEditLine },\n];\n\n/** The dot between two facts on the header's line. */\nfunction Dot() {\n  return (\n    <span aria-hidden=\"true\" className=\"text-ws-static-subtle\">\n      {'·'}\n    </span>\n  );\n}\n\n/**\n * The recording's header: what the call was, then one line of facts (who was on it, when, how\n * long, the deal it belongs to) and on the right what to do with it. Nothing here is filled:\n * the page's one filled button is the player's Play.\n */\nexport function RecordingHeader() {\n  return (\n    <header className=\"gap-ws-12 flex flex-wrap items-center justify-between\">\n      <div className=\"gap-ws-3 flex min-w-0 flex-col\">\n        <h1 className=\"typography-title-sm text-ws-static-strong\">{call.title}</h1>\n        <div className=\"typography-body-md text-ws-static-subtle gap-ws-5 flex flex-wrap items-center\">\n          <span className=\"gap-ws-5 flex items-center\">\n            <Avatar.Group size=\"xs\" className=\"w-fit shrink-0\">\n              {speakers.map((person) => (\n                <PersonAvatar\n                  key={person.id}\n                  name={person.name}\n                  initials={person.initials}\n                  color={person.color}\n                />\n              ))}\n            </Avatar.Group>\n            {speakers.map((person) => person.name).join(' and ')}\n          </span>\n          <Dot />\n          <time dateTime={call.startedAt}>{formatDateTime(call.startedAt)}</time>\n          <Dot />\n          <span className=\"tabular-nums\">{formatLength(call.duration)}</span>\n          <Dot />\n          <span>\n            Deal <TextLink href={`#${call.deal.id}`}>{call.deal.name}</TextLink>\n          </span>\n        </div>\n      </div>\n\n      <div className=\"gap-ws-5 flex items-center\">\n        <DropdownMenu>\n          <DropdownMenu.Trigger asChild>\n            <IconButton\n              icon={RiMoreFill}\n              variant=\"secondary\"\n              preset=\"border\"\n              size=\"sm\"\n              aria-label=\"More actions\"\n            />\n          </DropdownMenu.Trigger>\n          <DropdownMenu.Content align=\"end\" className=\"ws-block-utility w-[14rem]\">\n            {MENU.map(({ label, icon: Icon }) => (\n              <DropdownMenu.Item key={label}>\n                <ListItem.Prefix>\n                  <Icon className=\"size-ws-9\" />\n                </ListItem.Prefix>\n                <ListItem.Content>\n                  <ListItem.Label>{label}</ListItem.Label>\n                </ListItem.Content>\n              </DropdownMenu.Item>\n            ))}\n            <DropdownMenu.Separator />\n            <DropdownMenu.Item variant=\"danger\">\n              <ListItem.Prefix>\n                <RiDeleteBinLine className=\"size-ws-9\" />\n              </ListItem.Prefix>\n              <ListItem.Content>\n                <ListItem.Label>Delete recording</ListItem.Label>\n              </ListItem.Content>\n            </DropdownMenu.Item>\n          </DropdownMenu.Content>\n        </DropdownMenu>\n        <Button variant=\"secondary\" preset=\"border\" size=\"sm\">\n          <Button.Icon icon={RiDownload2Line} />\n          Download\n        </Button>\n        <Button variant=\"secondary\" preset=\"border\" size=\"sm\">\n          <Button.Icon icon={RiShareLine} />\n          Share\n        </Button>\n      </div>\n    </header>\n  );\n}\n"
    },
    {
      "path": "src/blocks/recording/section.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/recording/section.tsx",
      "content": "'use client';\n\n// TODO(custom): section title above its content, with an optional control on the right; Wideset has no Section or PageSection.\nimport { cn } from '@/lib/wideset/utils';\nimport { type ReactNode, useId } from 'react';\n\ntype SectionProps = {\n  title: string;\n  /** A control in the title row (a search field). */\n  action?: ReactNode;\n  className?: string;\n  children: ReactNode;\n};\n\n/**\n * One part of the page: a 16px title, then what it holds. The title row is a control's height\n * whether or not it holds one, so titles side by side line up. The title names the region.\n */\nexport function Section({ title, action, className, children }: SectionProps) {\n  const id = useId();\n\n  return (\n    <section aria-labelledby={id} className={cn('gap-ws-7 flex flex-col', className)}>\n      <div className=\"min-h-ws-14 gap-ws-9 flex items-center justify-between\">\n        <h2 id={id} className=\"typography-label-strong-md text-ws-static-strong\">\n          {title}\n        </h2>\n        {action}\n      </div>\n      {children}\n    </section>\n  );\n}\n"
    },
    {
      "path": "src/blocks/recording/sidebar.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/recording/sidebar.tsx",
      "content": "'use client';\n\n// TODO(custom): workspace switcher and account menu are composed by hand.\nimport {\n  RiAddLine,\n  RiArrowDownSLine,\n  RiLogoutBoxRLine,\n  RiSearchLine,\n  RiSettingsLine,\n} from '@remixicon/react';\nimport { Divider } from '@/components/ui/wideset/divider/Divider';\nimport { DropdownMenu } from '@/components/ui/wideset/dropdown/DropdownMenu';\nimport { IconButton } from '@/components/ui/wideset/button/IconButton';\nimport { ListItem } from '@/components/ui/wideset/list-item/ListItem';\nimport { Sidebar } from '@/components/ui/wideset/sidebar/Sidebar';\nimport { type SidebarProps } from '@/components/ui/wideset/sidebar/Sidebar.types';\nimport { TextInput } from '@/components/ui/wideset/text-input/TextInput';\nimport { useState } from 'react';\n\nimport { BrandMark } from './brand-mark';\nimport {\n  account,\n  helpLink,\n  mainLinks,\n  type NavLink,\n  product,\n  settingsLinks,\n  workspace,\n} from './data';\nimport { PersonAvatar } from './person-avatar';\n\n/**\n * The workspace sidebar: switcher, search, the app's pages, settings and the signed-in account.\n * Its toggle sits in the page bar, so the screen holds `collapsed` and passes it down; collapsed,\n * it keeps the mark, the page icons and the avatar.\n */\nexport function RecordingSidebar(\n  props: Pick<SidebarProps, 'id' | 'collapsed' | 'onCollapsedChange'>,\n) {\n  const [active, setActive] = useState('deals');\n\n  const link = ({ id, label, icon, activeIcon }: NavLink) => (\n    <Sidebar.Item\n      key={id}\n      href={`#${id}`}\n      icon={active === id ? (activeIcon ?? icon) : icon}\n      label={label}\n      active={active === id}\n      onClick={() => setActive(id)}\n    />\n  );\n\n  const nav = (\n    <nav aria-label=\"Workspace\" className=\"gap-ws-9 flex flex-col\">\n      <div className=\"flex flex-col\">{mainLinks.map(link)}</div>\n      <Divider weight=\"thin\" />\n      <div role=\"group\" aria-labelledby=\"sidebar-settings\" className=\"gap-ws-2 flex flex-col\">\n        <Sidebar.SectionHeader id=\"sidebar-settings\">Settings</Sidebar.SectionHeader>\n        {settingsLinks.map(link)}\n      </div>\n    </nav>\n  );\n\n  return (\n    <Sidebar {...props}>\n      <Sidebar.Header>\n        <Sidebar.Expanded>\n          <div className=\"gap-ws-9 flex flex-col\">\n            <div className=\"gap-ws-7 pt-ws-3 pb-ws-7 flex items-center\">\n              <BrandMark className=\"size-ws-15\" />\n              <div className=\"flex min-w-0 flex-1 flex-col\">\n                <span className=\"typography-label-strong-sm text-ws-static-strong truncate\">\n                  {workspace.name}\n                </span>\n                <span className=\"typography-caption-md text-ws-static-subtle truncate\">\n                  {product.name}\n                </span>\n              </div>\n              <DropdownMenu>\n                <DropdownMenu.Trigger asChild>\n                  <IconButton\n                    icon={RiArrowDownSLine}\n                    variant=\"secondary\"\n                    preset=\"ghost\"\n                    size=\"xs\"\n                    aria-label=\"Switch workspace\"\n                    className=\"mr-ws-3\"\n                  />\n                </DropdownMenu.Trigger>\n                <DropdownMenu.Content className=\"ws-block-utility\" align=\"end\">\n                  <DropdownMenu.Item data-state=\"checked\">\n                    <ListItem.Content>\n                      <ListItem.Label>{workspace.name}</ListItem.Label>\n                    </ListItem.Content>\n                  </DropdownMenu.Item>\n                  <DropdownMenu.Separator />\n                  <DropdownMenu.Item>\n                    <ListItem.Prefix>\n                      <RiAddLine className=\"size-ws-9\" />\n                    </ListItem.Prefix>\n                    <ListItem.Content>\n                      <ListItem.Label>New workspace</ListItem.Label>\n                    </ListItem.Content>\n                  </DropdownMenu.Item>\n                </DropdownMenu.Content>\n              </DropdownMenu>\n            </div>\n            <TextInput size=\"sm\">\n              <TextInput.Prefix inner>\n                <TextInput.Icon icon={RiSearchLine} />\n              </TextInput.Prefix>\n              <TextInput.Input type=\"search\" placeholder=\"Search\" aria-label=\"Search\" />\n            </TextInput>\n          </div>\n        </Sidebar.Expanded>\n        <Sidebar.Collapsed>\n          <div className=\"pt-ws-3 pb-ws-7 flex justify-center\">\n            <BrandMark className=\"size-ws-15\" />\n          </div>\n        </Sidebar.Collapsed>\n      </Sidebar.Header>\n\n      {/* A section draws only the slot for the state it is in, so the pages go in both. */}\n      <Sidebar.Section scrollable>{nav}</Sidebar.Section>\n\n      <Sidebar.Footer>\n        <div className=\"gap-ws-9 flex flex-col\">\n          <div className=\"flex flex-col\">{link(helpLink)}</div>\n          {/* On the grey ground the line keeps the nav's inset: run edge to edge, it would stop\n              short of the page and read as broken. */}\n          <div className=\"border-ws-static-base pt-ws-5 border-t\">\n            <Sidebar.Expanded>\n              <DropdownMenu>\n                <DropdownMenu.Trigger asChild>\n                  <button\n                    type=\"button\"\n                    className=\"gap-ws-5 px-ws-5 py-ws-3 rounded-ws-control-lg hover:bg-ws-dynamic-tertiary-alpha-strong-default focus-visible:wds-focus-visible outline-ws-dynamic-primary-strong-default flex w-full items-center text-left\"\n                  >\n                    <PersonAvatar name={account.name} initials={account.initials} color=\"orange\" />\n                    <span className=\"flex min-w-0 flex-1 flex-col\">\n                      <span className=\"typography-label-strong-sm text-ws-static-base truncate\">\n                        {account.name}\n                      </span>\n                      <span className=\"typography-caption-md text-ws-static-subtle truncate\">\n                        {account.email}\n                      </span>\n                    </span>\n                    <RiArrowDownSLine\n                      aria-hidden=\"true\"\n                      className=\"size-ws-9 text-ws-static-strong\"\n                    />\n                  </button>\n                </DropdownMenu.Trigger>\n                <DropdownMenu.Content side=\"top\" align=\"start\" className=\"ws-block-utility w-[14rem]\">\n                  <DropdownMenu.Item>\n                    <ListItem.Prefix>\n                      <RiSettingsLine className=\"size-ws-9\" />\n                    </ListItem.Prefix>\n                    <ListItem.Content>\n                      <ListItem.Label>Account settings</ListItem.Label>\n                    </ListItem.Content>\n                  </DropdownMenu.Item>\n                  <DropdownMenu.Separator />\n                  <DropdownMenu.Item variant=\"danger\">\n                    <ListItem.Prefix>\n                      <RiLogoutBoxRLine className=\"size-ws-9\" />\n                    </ListItem.Prefix>\n                    <ListItem.Content>\n                      <ListItem.Label>Log out</ListItem.Label>\n                    </ListItem.Content>\n                  </DropdownMenu.Item>\n                </DropdownMenu.Content>\n              </DropdownMenu>\n            </Sidebar.Expanded>\n            <Sidebar.Collapsed>\n              <div className=\"flex justify-center\">\n                <PersonAvatar\n                  name={account.name}\n                  initials={account.initials}\n                  color=\"orange\"\n                  title={account.name}\n                  alt={account.name}\n                />\n              </div>\n            </Sidebar.Collapsed>\n          </div>\n        </div>\n      </Sidebar.Footer>\n    </Sidebar>\n  );\n}\n"
    },
    {
      "path": "src/blocks/recording/speaker-timeline.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/recording/speaker-timeline.tsx",
      "content": "'use client';\n\n// TODO(custom): speaker timeline (who spoke when, one row a person, the played part and the playhead) with a range input over it; Wideset has no audio player or timeline.\nimport type { KeyboardEvent } from 'react';\n\nimport type { Line, Person } from './data';\nimport { formatSpoken } from './format';\nimport { PersonAvatar } from './person-avatar';\n\n/** Height of one person's row, in px: the SVG draws both rows at this pitch. */\nconst ROW = 32;\n\ntype SpeakerTimelineProps = {\n  speakers: Person[];\n  lines: Line[];\n  time: number;\n  duration: number;\n  onSeek: (time: number) => void;\n  onKeyDown: (event: KeyboardEvent) => void;\n};\n\n/**\n * Who spoke when: a row a person, their turns as 4px bars in one neutral tone, so the two read\n * apart by row and not by colour. The part already played turns the brand colour and a playhead\n * marks now. A native range input lies over the bars, so a click anywhere seeks there and the\n * keyboard works as it does on any slider.\n */\nexport function SpeakerTimeline({\n  speakers,\n  lines,\n  time,\n  duration,\n  onSeek,\n  onKeyDown,\n}: SpeakerTimelineProps) {\n  const at = (seconds: number) => `${(seconds / duration) * 100}%`;\n  // A turn runs to the next line, less a hair so two turns in a row stay apart; a short one\n  // (\"And what do they work in today?\") keeps a few pixels so it still shows.\n  const turns = lines.map((line, index) => {\n    const end = (lines[index + 1]?.at ?? duration) - duration * 0.002;\n    return {\n      speaker: line.speaker,\n      start: line.at,\n      end: Math.max(end, line.at + duration * 0.004),\n    };\n  });\n  const height = speakers.length * ROW;\n\n  return (\n    <div className=\"gap-ws-9 grid grid-cols-[10rem_minmax(0,1fr)] items-stretch\">\n      <ul aria-label=\"Speakers\" className=\"flex flex-col\">\n        {speakers.map((speaker) => (\n          <li key={speaker.id} className=\"h-ws-14 gap-ws-5 flex items-center\">\n            <PersonAvatar\n              size=\"xs\"\n              name={speaker.name}\n              initials={speaker.initials}\n              color={speaker.color}\n              aria-hidden\n            />\n            <span className=\"typography-label-sm text-ws-static-base truncate\">{speaker.name}</span>\n          </li>\n        ))}\n      </ul>\n\n      <div className=\"relative\">\n        <input\n          type=\"range\"\n          min={0}\n          max={duration}\n          step={1}\n          value={Math.floor(time)}\n          onChange={(event) => onSeek(Number(event.target.value))}\n          onKeyDown={onKeyDown}\n          aria-label=\"Seek\"\n          aria-valuetext={`${formatSpoken(time)} of ${formatSpoken(duration)}`}\n          className=\"peer inset-ws-0 absolute h-full w-full cursor-pointer opacity-0\"\n        />\n        <span className=\"rounded-ws-control-sm peer-focus-visible:wds-focus-visible outline-ws-dynamic-primary-strong-default flex\">\n          <svg aria-hidden=\"true\" width=\"100%\" height={height} className=\"overflow-visible\">\n            {speakers.map((speaker, row) => {\n              const y = row * ROW + ROW / 2 - 2;\n              return (\n                <g key={speaker.id}>\n                  {/* The person's lane, the track a ProgressBar draws, so silence reads as theirs. */}\n                  <rect\n                    y={y}\n                    width=\"100%\"\n                    height=\"4\"\n                    rx=\"2\"\n                    className=\"fill-(--ws-dynamic-stroke-secondary-default)\"\n                  />\n                  {turns\n                    .filter((turn) => turn.speaker.id === speaker.id)\n                    .map((turn) => (\n                      <g key={turn.start}>\n                        <rect\n                          x={at(turn.start)}\n                          y={y}\n                          width={at(turn.end - turn.start)}\n                          height=\"4\"\n                          rx=\"2\"\n                          className=\"fill-(--ws-semantic-stroke-neutral)\"\n                        />\n                        {time > turn.start && (\n                          <rect\n                            x={at(turn.start)}\n                            y={y}\n                            width={at(Math.min(time, turn.end) - turn.start)}\n                            height=\"4\"\n                            rx=\"2\"\n                            className=\"fill-ws-dynamic-primary-default\"\n                          />\n                        )}\n                      </g>\n                    ))}\n                </g>\n              );\n            })}\n            <rect\n              x={at(time)}\n              width=\"2\"\n              height=\"100%\"\n              rx=\"1\"\n              transform=\"translate(-1 0)\"\n              className=\"fill-ws-dynamic-primary-default\"\n            />\n          </svg>\n        </span>\n      </div>\n    </div>\n  );\n}\n"
    },
    {
      "path": "src/blocks/recording/text-button.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/recording/text-button.tsx",
      "content": "'use client';\n\n// TODO(custom): an action drawn as the help line's text link; Wideset has no text-style button for an action inside a sentence (LinkButton is an anchor with control padding).\nimport { cn } from '@/lib/wideset/utils';\nimport type { ButtonHTMLAttributes } from 'react';\n\n/**\n * An action inside a sentence (resend, change the address, switch the method), drawn as\n * `TextLink` draws a link: body text in the primary colour, underlined. It is a `button`, so it\n * never navigates or submits.\n */\nexport function TextButton({\n  className,\n  children,\n  ...props\n}: ButtonHTMLAttributes<HTMLButtonElement>) {\n  return (\n    <button\n      type=\"button\"\n      className={cn(\n        'text-ws-dynamic-primary-default hover:text-ws-dynamic-primary-hover active:text-ws-dynamic-primary-pressed rounded-ws-control-sm focus-visible:wds-focus-visible outline-ws-dynamic-primary-strong-default cursor-pointer underline decoration-from-font',\n        className,\n      )}\n      {...props}\n    >\n      {children}\n    </button>\n  );\n}\n"
    },
    {
      "path": "src/blocks/recording/text-link.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/recording/text-link.tsx",
      "content": "'use client';\n\n// TODO(custom): a link inside a sentence; Wideset has no inline text link (LinkButton is a control with its own padding and height).\nimport { cn } from '@/lib/wideset/utils';\nimport type { AnchorHTMLAttributes } from 'react';\n\n/**\n * A link inside a sentence, as Figma draws the terms link: the sentence's own type in the primary\n * colour. The underline comes on hover and focus.\n */\nexport function TextLink({\n  className,\n  children,\n  ...props\n}: AnchorHTMLAttributes<HTMLAnchorElement>) {\n  return (\n    <a\n      className={cn(\n        'text-ws-dynamic-primary-default hover:text-ws-dynamic-primary-hover active:text-ws-dynamic-primary-pressed rounded-ws-control-sm focus-visible:wds-focus-visible outline-ws-dynamic-primary-strong-default decoration-from-font hover:underline focus-visible:underline',\n        className,\n      )}\n      {...props}\n    >\n      {children}\n    </a>\n  );\n}\n"
    },
    {
      "path": "src/blocks/recording/transcript.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/recording/transcript.tsx",
      "content": "'use client';\n\n// TODO(custom): call transcript (speaker, time, text; the spoken line marked and followed; search with the match marked); Wideset has no transcript or timed list.\nimport { RiSearchLine } from '@remixicon/react';\nimport { TextInput } from '@/components/ui/wideset/text-input/TextInput';\nimport { useEffect, useRef, useState } from 'react';\n\nimport type { Line } from './data';\nimport { formatClock } from './format';\nimport { Highlight } from './highlight';\nimport { PersonAvatar } from './person-avatar';\nimport { Section } from './section';\n\ntype TranscriptProps = {\n  lines: Line[];\n  time: number;\n  playing: boolean;\n  onSeek: (time: number) => void;\n};\n\n/**\n * What was said, a turn a row: who, when, what. The line being spoken carries the selected\n * treatment and, while the call plays, the list scrolls to keep it in view (not while searching,\n * when the reader is somewhere else). A row is one target across its width: it seeks there. The\n * search keeps the lines that match and marks the match.\n */\nexport function Transcript({ lines, time, playing, onSeek }: TranscriptProps) {\n  const listRef = useRef<HTMLOListElement>(null);\n  const [query, setQuery] = useState('');\n  const needle = query.trim().toLowerCase();\n\n  const current = lines.filter((line) => line.at <= time).at(-1)?.at;\n  const shown = needle\n    ? lines.filter(\n        (line) =>\n          line.text.toLowerCase().includes(needle) ||\n          line.speaker.name.toLowerCase().includes(needle),\n      )\n    : lines;\n\n  useEffect(() => {\n    const list = listRef.current;\n    const row = list?.querySelector<HTMLElement>('[aria-current=\"true\"]');\n    if (!playing || needle || !list || !row) return;\n    const smooth =\n      typeof window.matchMedia === 'function' &&\n      !window.matchMedia('(prefers-reduced-motion: reduce)').matches;\n    // Keep the spoken line a third of the way down, so what comes next is in view.\n    list.scrollTo({\n      top: row.offsetTop - list.clientHeight / 3,\n      behavior: smooth ? 'smooth' : 'auto',\n    });\n  }, [current, playing, needle]);\n\n  return (\n    <Section\n      title=\"Transcript\"\n      className=\"min-h-0\"\n      action={\n        <TextInput\n          size=\"sm\"\n          className=\"w-[16rem]\"\n          value={query}\n          onChange={(event) => setQuery(event.target.value)}\n        >\n          <TextInput.Prefix inner>\n            <TextInput.Icon icon={RiSearchLine} />\n          </TextInput.Prefix>\n          <TextInput.Input\n            type=\"search\"\n            placeholder=\"Search the transcript\"\n            aria-label=\"Search the transcript\"\n          />\n          {query && (\n            <TextInput.Suffix inner>\n              <TextInput.ClearButton onClear={() => setQuery('')} />\n            </TextInput.Suffix>\n          )}\n        </TextInput>\n      }\n    >\n      {shown.length ? (\n        <ol\n          ref={listRef}\n          aria-label=\"Transcript lines\"\n          className=\"-mx-ws-7 px-ws-3 pt-ws-3 pb-ws-12 ws-scrollbar relative min-h-0 flex-1 overflow-y-auto\"\n        >\n          {shown.map((line) => (\n            <li key={line.at}>\n              <button\n                type=\"button\"\n                aria-current={line.at === current || undefined}\n                onClick={() => onSeek(line.at)}\n                className=\"gap-ws-7 px-ws-5 py-ws-5 rounded-ws-control-lg hover:bg-ws-dynamic-tertiary-alpha-strong-default aria-[current=true]:bg-ws-dynamic-primary-alpha-strong-default focus-visible:wds-focus-visible outline-ws-dynamic-primary-strong-default flex w-full cursor-pointer items-start text-left\"\n              >\n                <PersonAvatar\n                  size=\"sm\"\n                  name={line.speaker.name}\n                  initials={line.speaker.initials}\n                  color={line.speaker.color}\n                  aria-hidden\n                />\n                <span className=\"gap-ws-1 flex min-w-0 flex-1 flex-col\">\n                  <span className=\"gap-ws-5 flex items-baseline\">\n                    <span className=\"typography-label-strong-sm text-ws-static-strong\">\n                      <Highlight text={line.speaker.name} query={query.trim()} />\n                    </span>\n                    <span className=\"typography-label-sm text-ws-static-subtle tabular-nums\">\n                      {formatClock(line.at)}\n                    </span>\n                  </span>\n                  <span className=\"typography-body-md text-ws-static-base\">\n                    <Highlight text={line.text} query={query.trim()} />\n                  </span>\n                </span>\n              </button>\n            </li>\n          ))}\n        </ol>\n      ) : (\n        <p role=\"status\" className=\"typography-body-md text-ws-static-subtle py-ws-5\">\n          Nothing in the call matches “{query.trim()}”.\n        </p>\n      )}\n    </Section>\n  );\n}\n"
    },
    {
      "path": "src/blocks/recording/use-playback.ts",
      "type": "registry:file",
      "target": "blocks/wideset/recording/use-playback.ts",
      "content": "'use client';\n\nimport { type KeyboardEvent, useEffect, useState } from 'react';\n\n/** How often the clock moves, in milliseconds. */\nconst TICK = 250;\n/** How far each arrow key seeks, in seconds. */\nconst SEEK_KEYS: Record<string, number> = {\n  ArrowLeft: -5,\n  ArrowDown: -5,\n  ArrowRight: 5,\n  ArrowUp: 5,\n};\n\nexport type Playback = ReturnType<typeof usePlayback>;\n\n/**\n * The clock of a drawn player. A block ships no media, so a timer moves `time` while `playing`,\n * at `rate`, and stops at the end the way a player does. `seek` clamps to the length.\n */\nexport function usePlayback(duration: number, start = 0) {\n  const [time, setTime] = useState(start);\n  const [playing, setPlaying] = useState(false);\n  const [rate, setRate] = useState(1);\n  const ended = time >= duration;\n\n  useEffect(() => {\n    if (!playing) return;\n    const id = window.setInterval(\n      () => setTime((now) => Math.min(duration, now + (TICK / 1000) * rate)),\n      TICK,\n    );\n    return () => window.clearInterval(id);\n  }, [playing, rate, duration]);\n\n  useEffect(() => {\n    if (ended) setPlaying(false);\n  }, [ended]);\n\n  const seek = (to: number) => setTime(Math.min(duration, Math.max(0, to)));\n  const play = () => {\n    // From the end, play starts over.\n    if (ended) setTime(0);\n    setPlaying(true);\n  };\n  const pause = () => setPlaying(false);\n  const toggle = () => (playing ? pause() : play());\n\n  /**\n   * The player's keys, for the stage and the scrubber: the arrows seek five seconds, Space plays\n   * and pauses. A button already plays on Space through its click, so it is left to do that.\n   */\n  const onPlayerKeyDown = (event: KeyboardEvent) => {\n    const delta = SEEK_KEYS[event.key];\n    if (delta) {\n      event.preventDefault();\n      seek(time + delta);\n    } else if (event.key === ' ' && !(event.target instanceof HTMLButtonElement)) {\n      event.preventDefault();\n      toggle();\n    }\n  };\n\n  return {\n    time,\n    duration,\n    playing,\n    ended,\n    rate,\n    setRate,\n    seek,\n    play,\n    pause,\n    toggle,\n    onPlayerKeyDown,\n  };\n}\n"
    },
    {
      "path": "src/blocks/recording/voice-note-recorder.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/recording/voice-note-recorder.tsx",
      "content": "'use client';\n\n// TODO(custom): voice note recorder (a pulsing dot, the time recorded, stop or discard); Wideset has no recorder.\nimport { RiMicLine, RiStopFill } from '@remixicon/react';\nimport { Button } from '@/components/ui/wideset/button/Button';\nimport { useEffect, useState } from 'react';\n\nimport { formatClock } from './format';\n\ntype VoiceNoteRecorderProps = {\n  /** The moment of the call the note will refer to, when recording starts. */\n  at: number;\n  onSave: (note: { at: number; duration: number }) => void;\n};\n\n/**\n * Recording a voice note, kept to one row. A small secondary button turns into the recording\n * row: a pulsing dot (still when the user asks for less motion), the time recorded, Discard and\n * Stop. Stop saves the note to the comments at the moment recording began. The block ships no\n * audio, so a timer stands in for the microphone.\n */\nexport function VoiceNoteRecorder({ at, onSave }: VoiceNoteRecorderProps) {\n  const [startedAt, setStartedAt] = useState<number | null>(null);\n  const [elapsed, setElapsed] = useState(0);\n\n  useEffect(() => {\n    if (startedAt === null) return;\n    const id = window.setInterval(() => setElapsed((seconds) => seconds + 1), 1000);\n    return () => window.clearInterval(id);\n  }, [startedAt]);\n\n  const reset = () => {\n    setStartedAt(null);\n    setElapsed(0);\n  };\n\n  if (startedAt === null) {\n    return (\n      <Button\n        size=\"sm\"\n        variant=\"secondary\"\n        preset=\"border\"\n        onClick={() => setStartedAt(at)}\n        className=\"self-start\"\n      >\n        <Button.Icon icon={RiMicLine} />\n        Record a note\n      </Button>\n    );\n  }\n\n  return (\n    <div\n      role=\"group\"\n      aria-label=\"Recording a voice note\"\n      className=\"h-ws-14 gap-ws-5 pl-ws-7 pr-ws-3 border-ws-static-base rounded-ws-control-lg flex items-center border\"\n    >\n      <span\n        aria-hidden=\"true\"\n        className=\"size-ws-5 rounded-ws-control-full bg-ws-semantic-inverse-negative shrink-0 motion-safe:animate-pulse\"\n      />\n      <span className=\"typography-label-sm text-ws-static-strong\">Recording</span>\n      <span className=\"typography-label-sm text-ws-static-subtle tabular-nums\">\n        {formatClock(elapsed)}\n      </span>\n      <span className=\"gap-ws-3 ml-auto flex\">\n        <Button size=\"xs\" variant=\"secondary\" preset=\"ghost\" onClick={reset}>\n          Discard\n        </Button>\n        <Button\n          size=\"xs\"\n          variant=\"secondary\"\n          preset=\"border\"\n          onClick={() => {\n            if (elapsed > 0) onSave({ at: startedAt, duration: elapsed });\n            reset();\n          }}\n        >\n          <Button.Icon icon={RiStopFill} />\n          Stop\n        </Button>\n      </span>\n    </div>\n  );\n}\n"
    },
    {
      "path": "src/blocks/recording/voice-note.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/recording/voice-note.tsx",
      "content": "'use client';\n\n// TODO(custom): a voice note's playback row (play, how far, length); Wideset has no audio player.\nimport { RiPauseFill, RiPlayFill } from '@remixicon/react';\nimport { IconButton } from '@/components/ui/wideset/button/IconButton';\nimport { ProgressBar } from '@/components/ui/wideset/progress-bar/ProgressBar';\n\nimport { formatClock } from './format';\nimport { usePlayback } from './use-playback';\n\n/**\n * A voice note in the comments, kept to one row: play, a 4px bar of how far it has played, and\n * its length (the time played while it plays). It has its own clock, apart from the call's.\n */\nexport function VoiceNote({ duration }: { duration: number }) {\n  const { time, playing, toggle } = usePlayback(duration);\n  const elapsed = Math.min(time, duration);\n\n  return (\n    <div className=\"gap-ws-5 flex items-center\">\n      <IconButton\n        icon={playing ? RiPauseFill : RiPlayFill}\n        variant=\"secondary\"\n        preset=\"border\"\n        size=\"xs\"\n        aria-label={playing ? 'Pause voice note' : 'Play voice note'}\n        onClick={toggle}\n      />\n      <ProgressBar\n        value={elapsed}\n        max={duration}\n        aria-label=\"Voice note\"\n        aria-valuetext={`${formatClock(elapsed)} of ${formatClock(duration)}`}\n      />\n      <span className=\"typography-label-sm text-ws-static-subtle shrink-0 tabular-nums\">\n        {formatClock(playing ? elapsed : duration)}\n      </span>\n    </div>\n  );\n}\n"
    }
  ],
  "meta": {
    "version": "1.1.0",
    "commit": "a734f9f0"
  }
}
