{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "waitlist-core",
  "title": "Waitlist: content and kit",
  "description": "Every word of the waitlist template, plus the vermilion palette with the field's tokens, the line (the ticking count, and your place, credit and pause kept in sessionStorage), the week of bars, the referral link, the mark, the column and the entrances its sections share.",
  "dependencies": [
    "motion"
  ],
  "registryDependencies": [
    "https://eased.dev/r/eased-tokens.json",
    "https://eased.dev/r/eased-motion.json",
    "https://eased.dev/r/template-core.json",
    "https://eased.dev/r/progressive-blur.json",
    "https://eased.dev/r/shimmer-text.json",
    "https://eased.dev/r/button.json",
    "https://eased.dev/r/eased-copy.json"
  ],
  "files": [
    {
      "path": "src/registry/eased/templates/waitlist/content.ts",
      "content": "import type { EmailCaptureContent } from \"../_shared/email-capture\";\nimport type { FaqItem } from \"../_shared/faq\";\nimport type { FooterContent } from \"../_shared/footer\";\n\n/**\n * Every word and number of the waitlist template. The sample product is Wendle, a calendar\n * that plans your week, not out yet and letting people in by place in line. Links that start\n * with \"/\" are the template's own pages. The count, the places and the leaderboard are sample\n * data: wire them to your list (README, \"Before you ship\").\n */\n\n/** Your referral link, on the brand's own domain. Replace the path with each person's code. */\nconst LINK = \"https://wendle.example/r/sample\";\n\nexport const brand = {\n  name: \"Wendle\",\n  /** One line for the footer and the press kit. */\n  line: \"The calendar that plans your week.\",\n  /** The legal name in the footer and the legal pages. */\n  company: \"Wendle Labs\",\n  domain: \"wendle.example\",\n};\n\n/** The top bar: the home link's name, the one page link and the action. */\nexport const nav = {\n  label: \"Main\",\n  skip: \"Skip to content\",\n  home: \"Wendle home\",\n  press: { label: \"Press kit\", href: \"/press\" },\n  place: { label: \"Your place\", href: \"/thanks\" },\n  /** The action before you have a place: to the form. */\n  join: { label: \"Get a place\", href: \"/#join\" },\n};\n\n/* ---------- The line ------------------------------------------------------------------- */\n\n/**\n * The list. `waiting` is how many people are in line when the page loads; the count then\n * ticks up by itself, one or two people every `tick` seconds or so (kit.tsx). `credit` is\n * how many places a friend joining from your link moves you up.\n */\nexport const queue = {\n  waiting: 2480,\n  /** Seconds before the first tick, then the shortest and longest gap between ticks. */\n  firstTick: 4,\n  tick: [6, 15] as const,\n  credit: 10,\n  /** The place a visitor sees on the referral page before they have joined. */\n  samplePlace: 2481,\n  /** The sample referral link. */\n  link: LINK,\n};\n\n/* ---------- Home ----------------------------------------------------------------------- */\n\nexport const hero = {\n  label: \"Private beta, opening in waves\",\n  title: \"Get in line.\",\n  lead: \"Wendle plans your week around the hours you actually have. We let people in by place in line, a few hundred at a time.\",\n  /** The count before you join, and after. */\n  waiting: \"people waiting\",\n  saving: \"Saving your place…\",\n  yours: \"your place in line\",\n  /** After you join: how many are behind you. */\n  behind: (n: number) => (n === 0 ? \"nobody behind you yet\" : `${n.toLocaleString(\"en-US\")} behind you`),\n  /** Under the form before you join: what happens to the address. */\n  promise: \"One email when it’s your turn. Nothing else.\",\n  pause: \"Pause motion\",\n  play: \"Play motion\",\n};\n\nexport const capture: EmailCaptureContent = {\n  label: \"Email address\",\n  placeholder: \"you@company.example\",\n  submit: \"Join the waitlist\",\n  required: \"Enter your email to get a place.\",\n  invalid: \"That doesn’t look like an email address.\",\n  /** Replaced in hero.tsx by the line that names your place. */\n  sent: \"You’re in.\",\n  failed: \"We couldn’t save your place. Try again in a moment.\",\n};\n\n/** The line that takes the form's place: shown, and read once with the place. */\nexport const joined = {\n  shown: \"You’re in. Your link is below.\",\n  spoken: (place: string) => `You’re in. Your place in line is ${place}. Your link is below.`,\n};\n\n/** Share your link: the referral row under the form, and the referral page. */\nexport const referral = {\n  title: (credit: number) => `Share your link and move up ${credit} places`,\n  linkLabel: \"Your referral link\",\n  copy: \"Copy link\",\n  copied: \"Copied\",\n  /** After the copy, a friend joins from the link (the demo plays it a beat later). */\n  pending: \"Copied. Waiting for a friend to join…\",\n  /** `moved` is what the credit actually gave: less than the credit near the front, 0 at #1. */\n  credited: (moved: number) =>\n    moved === 0 ? \"A friend joined from your link. You’re already first in line.\" : `A friend joined from your link. You moved up ${moved} ${moved === 1 ? \"place\" : \"places\"}.`,\n  creditedSpoken: (moved: number, place: string) =>\n    moved === 0 ? \"A friend joined from your link. You’re already first in line.\" : `A friend joined from your link. You moved up ${moved} ${moved === 1 ? \"place\" : \"places\"}, to ${place}.`,\n  /** When the clipboard refuses: the link is selectable, so say how. */\n  failed: \"Couldn’t copy. Select the link and copy it.\",\n};\n\n/** The press lines under the first screen: invented newsletters, invented words. */\nexport const press = {\n  label: \"Written about by\",\n  lines: [\n    { quote: \"A calendar that finally says no for you.\", source: \"Quarterday\" },\n    { quote: \"Planning, without the planning.\", source: \"The Slow Tab\" },\n    { quote: \"The first waitlist I sent to friends.\", source: \"Halfweek\" },\n  ],\n} as const;\n\n/**\n * The product beside the form: Wendle's week for one sample person, Monday to Friday, 9:00 to\n * 18:00. Every total in it (meetings, planned, kept, free, and each task's hours) is counted\n * from `blocks`, so editing a block keeps them true. Hours are decimal: 9.5 is 9:30.\n */\nexport const product = {\n  label: \"Wendle planning a sample week: meetings from your calendars, the work Wendle placed around them, and the hours it keeps free.\",\n  title: \"This week\",\n  range: \"Mon to Fri\",\n  /** The working day the grid shows, in hours. */\n  day: [9, 18] as const,\n  days: [\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"],\n  kinds: { meeting: \"Meetings\", planned: \"Planned\", kept: \"Kept\", free: \"Free\" },\n  /** The app's own rail: its views (the week is open) and the signed-in person's initials. */\n  views: [\"Week\", \"Plans\", \"Kept\"],\n  initials: \"AK\",\n  tasksLabel: \"To plan\",\n  /** What Wendle is asked to fit in, and by when. A task's placed hours are its blocks'. */\n  tasks: [\n    { id: \"plan\", title: \"Q1 plan\", hours: 7, due: \"Fri\" },\n    { id: \"deck\", title: \"Board deck\", hours: 3, due: \"Wed\" },\n    { id: \"notes\", title: \"Hiring notes\", hours: 2, due: \"Thu\" },\n    { id: \"inbox\", title: \"Inbox\", hours: 2.5, due: \"Daily\" },\n  ],\n  due: (day: string) => (day === \"Daily\" ? \"30 min a day\" : `By ${day}`),\n  /** Shown under a task when its blocks add up to less than it asked for. */\n  short: (hours: string) => `${hours} short`,\n  /**\n   * `day` is an index into `days`; a planned block names its task. Keep titles to a word or\n   * two: a day is about 50px wide on a 320px phone and 60px at 1024.\n   */\n  blocks: [\n    { day: 0, from: 9.5, to: 10, kind: \"meeting\", title: \"Sync\" },\n    { day: 0, from: 10, to: 12, kind: \"planned\", title: \"Q1 plan\", task: \"plan\" },\n    { day: 0, from: 12.5, to: 13.5, kind: \"kept\", title: \"Lunch\" },\n    { day: 0, from: 13.5, to: 14.5, kind: \"meeting\", title: \"Review\" },\n    { day: 0, from: 15, to: 16, kind: \"planned\", title: \"Deck\", task: \"deck\" },\n    { day: 0, from: 16.5, to: 17, kind: \"planned\", title: \"Inbox\", task: \"inbox\" },\n    { day: 1, from: 9.5, to: 10, kind: \"meeting\", title: \"Sync\" },\n    { day: 1, from: 10, to: 11.5, kind: \"meeting\", title: \"Hiring\" },\n    { day: 1, from: 11.5, to: 12.5, kind: \"planned\", title: \"Deck\", task: \"deck\" },\n    { day: 1, from: 12.5, to: 13.5, kind: \"kept\", title: \"Lunch\" },\n    { day: 1, from: 14, to: 16, kind: \"planned\", title: \"Q1 plan\", task: \"plan\" },\n    { day: 1, from: 16.5, to: 17, kind: \"planned\", title: \"Inbox\", task: \"inbox\" },\n    { day: 1, from: 17, to: 18, kind: \"kept\", title: \"Gym\" },\n    { day: 2, from: 9.5, to: 10, kind: \"meeting\", title: \"Sync\" },\n    { day: 2, from: 10, to: 11, kind: \"planned\", title: \"Deck\", task: \"deck\" },\n    { day: 2, from: 11, to: 12, kind: \"meeting\", title: \"Budget\" },\n    { day: 2, from: 12.5, to: 13.5, kind: \"kept\", title: \"Lunch\" },\n    { day: 2, from: 14, to: 15, kind: \"planned\", title: \"Notes\", task: \"notes\" },\n    { day: 2, from: 15.5, to: 16.5, kind: \"meeting\", title: \"Partner\" },\n    { day: 2, from: 16.5, to: 17, kind: \"planned\", title: \"Inbox\", task: \"inbox\" },\n    { day: 3, from: 9.5, to: 10, kind: \"meeting\", title: \"Sync\" },\n    { day: 3, from: 10, to: 12, kind: \"planned\", title: \"Q1 plan\", task: \"plan\" },\n    { day: 3, from: 12.5, to: 13.5, kind: \"kept\", title: \"Lunch\" },\n    { day: 3, from: 13.5, to: 14.5, kind: \"meeting\", title: \"1:1\" },\n    { day: 3, from: 15, to: 16, kind: \"planned\", title: \"Notes\", task: \"notes\" },\n    { day: 3, from: 16.5, to: 17, kind: \"planned\", title: \"Inbox\", task: \"inbox\" },\n    { day: 3, from: 17, to: 18, kind: \"kept\", title: \"Gym\" },\n    { day: 4, from: 9.5, to: 10, kind: \"meeting\", title: \"Sync\" },\n    { day: 4, from: 10, to: 11, kind: \"meeting\", title: \"Retro\" },\n    { day: 4, from: 11, to: 12, kind: \"planned\", title: \"Q1 plan\", task: \"plan\" },\n    { day: 4, from: 12.5, to: 13.5, kind: \"kept\", title: \"Lunch\" },\n    { day: 4, from: 14, to: 15, kind: \"meeting\", title: \"Client\" },\n    { day: 4, from: 16.5, to: 17, kind: \"planned\", title: \"Inbox\", task: \"inbox\" },\n  ] satisfies { day: number; from: number; to: number; kind: \"meeting\" | \"planned\" | \"kept\"; title: string; task?: string }[],\n};\n\n/**\n * How the line moves, shown as a sample person's referral page a week in. Every number on it is\n * counted from `friends`: each confirmed friend moves the place up `queue.credit` (never past\n * #1), and the next wave lets in #1 to `wave`.\n */\nexport const how = {\n  label: \"How the line moves\",\n  title: \"Earlier for everyone who brings a friend.\",\n  lead: \"Everyone in line gets a link. Each friend who joins from it and confirms their email moves you up ten places; a link opened and left moves nothing. We let people in from the front, a few hundred at a time, and email you when it’s your turn.\",\n  caption: \"How the line moved for one sample person in the week after they joined.\",\n  /** The mock's title: a sample person's referrals, not the template's own Your place page. */\n  page: \"Leni’s referrals\",\n  person: { name: \"Leni V.\", initials: \"LV\" },\n  link: \"wendle.example/r/leni\",\n  copy: \"Copy link\",\n  /** Where the sample person joined, and the last place in the next wave. */\n  joinedAt: 412,\n  wave: 300,\n  stats: {\n    place: \"Place in line\",\n    from: (place: string) => `Joined at ${place}`,\n    friends: \"Friends joined\",\n    confirmed: (n: number) => `${n} confirmed`,\n    moved: \"Places moved\",\n    per: (credit: number) => `${credit} per confirmed friend`,\n    /** The places between the sample person and the next wave, which lets in #1 to `through`. */\n    wave: \"To the next wave\",\n    toGo: (n: number, through: string) => (n === 0 ? `You’re in it: it lets in #1 to ${through}` : `It lets in #1 to ${through}`),\n  },\n  table: {\n    caption: \"Friends who joined from the sample link, and how far each moved the place\",\n    columns: { friend: \"Friend\", joined: \"Joined\", via: \"From\", status: \"Status\", moved: \"Moved you\", place: \"Place after\" },\n    confirmed: \"Confirmed\",\n    waiting: \"Not confirmed\",\n  },\n  /** In the order they joined. `via` is which of the referral page's messages they came from. */\n  friends: [\n    { name: \"Oskar L.\", joined: \"Mon 08:42\", via: \"A text\", confirmed: true },\n    { name: \"Dalia F.\", joined: \"Mon 19:15\", via: \"An email\", confirmed: true },\n    { name: \"Mateus R.\", joined: \"Tue 12:03\", via: \"A post\", confirmed: false },\n    { name: \"Signe H.\", joined: \"Wed 07:58\", via: \"A text\", confirmed: true },\n    { name: \"Halvor K.\", joined: \"Thu 21:36\", via: \"A post\", confirmed: true },\n    { name: \"Esme D.\", joined: \"Sat 10:20\", via: \"An email\", confirmed: false },\n    { name: \"Ilse B.\", joined: \"Sun 16:47\", via: \"A text\", confirmed: true },\n  ],\n};\n\nexport const faq = {\n  label: \"Questions\",\n  title: \"Before you join\",\n  /** Beside the heading: where the questions not answered here go. */\n  more: { lead: \"Something else?\", label: \"hello@wendle.example\", href: \"mailto:hello@wendle.example\" },\n  items: [\n    {\n      question: \"When do I get in?\",\n      answer: \"We open in waves of a few hundred, from the front of the line. Most people who joined in the first month are already in.\",\n    },\n    {\n      question: \"What does it cost?\",\n      answer: \"Nothing while it’s in beta. When we add paid plans, everyone who joined from the waitlist keeps their first year free.\",\n    },\n    {\n      question: \"Which calendars does it work with?\",\n      answer: \"Any calendar that speaks CalDAV or iCal, plus the big hosted ones. Wendle reads them; it only writes to the one you choose.\",\n    },\n    {\n      question: \"When does a friend count?\",\n      answer: \"When they confirm their email. A link that’s only opened, or an address that never confirms, moves nobody.\",\n    },\n    {\n      question: \"Can my place go down?\",\n      answer: \"No. People who join after you go behind you, and a friend who later leaves the list doesn’t take their ten places back.\",\n    },\n    {\n      question: \"Can I leave the waitlist?\",\n      answer: \"Yes. Every email has a one-click link that takes you off the list and deletes your address.\",\n    },\n  ] satisfies FaqItem[],\n};\n\n/* ---------- Referral page --------------------------------------------------------------- */\n\nexport const thanks = {\n  label: \"Your place\",\n  title: \"You’re in line.\",\n  lead: \"Keep this page. It’s where your place lives, and your link is how you move it.\",\n  /** Reached without a place: the page shows a sample and says so. */\n  sampleTitle: \"A place in line looks like this.\",\n  sampleLead: \"You haven’t joined yet. Leave your email and this page shows your own place.\",\n  sampleAction: { label: \"Get a place\", href: \"/#join\" },\n  placeLabel: \"Place\",\n  shareLabel: \"Share it your way\",\n  /** Share buttons copy a ready message; they never open another site. */\n  shares: [\n    { id: \"text\", title: \"A text message\", message: `I’m in line for Wendle, the calendar that plans your week. Join with my link and we both move up: ${LINK}` },\n    {\n      id: \"email\",\n      title: \"An email\",\n      message:\n        `Subject: A calendar that plans the week for you\\n\\nI joined the waitlist for Wendle. If you join with my link we both move up ten places: ${LINK}`,\n    },\n    { id: \"post\", title: \"A post\", message: `Waiting for Wendle? Me too. Skip ahead with my link: ${LINK}` },\n  ],\n  copy: (title: string) => `Copy ${title.toLowerCase()}`,\n  copyShort: \"Copy\",\n  copied: \"Copied\",\n  sharedNote: (title: string) => `${title} copied. Paste it wherever you talk to people.`,\n  board: {\n    title: \"Moving up this week\",\n    caption: \"Who moved furthest this week, by friends who joined from their link\",\n    columns: { rank: \"Rank\", name: \"Name\", friends: \"Friends\", moved: \"Places moved\" },\n    rows: [\n      { name: \"Ines M.\", friends: 14, moved: 140 },\n      { name: \"Tobi A.\", friends: 11, moved: 110 },\n      { name: \"Rafaela K.\", friends: 9, moved: 90 },\n      { name: \"Jun P.\", friends: 6, moved: 60 },\n      { name: \"Marit S.\", friends: 4, moved: 40 },\n    ],\n    you: \"You\",\n  },\n};\n\n/* ---------- Press kit ------------------------------------------------------------------- */\n\nexport const pressKit = {\n  label: \"Press kit\",\n  title: \"Wendle, for people writing about it.\",\n  lead: \"The name, the mark, the colours and a paragraph about us. Use them as they are; ask us before changing them.\",\n  mark: {\n    title: \"The wordmark\",\n    body: \"The mark is a week seen side on, and a line of people: seven days, one of them lifted. That one is your place. Keep a space around it as wide as a day.\",\n    tiles: [\n      { id: \"field\", label: \"On vermilion\" },\n      { id: \"paper\", label: \"On paper\" },\n      { id: \"ink\", label: \"On ink\" },\n    ],\n    download: \"SVG\",\n  },\n  colours: {\n    title: \"Colours\",\n    /** The week's bars on vermilion: drawn in the mark's tile, not listed. */\n    fieldBar: \"#FD8453\",\n    copy: \"Copy\",\n    copied: \"Copied\",\n    swatches: [\n      { id: \"vermilion\", name: \"Vermilion\", hex: \"#FA5E2E\", note: \"The field in light\" },\n      { id: \"signal\", name: \"Signal\", hex: \"#CE2700\", note: \"Buttons and links on paper\" },\n      { id: \"cream\", name: \"Your place\", hex: \"#F8D8B4\", note: \"The lifted day, in light\" },\n      { id: \"ink\", name: \"Ink\", hex: \"#260906\", note: \"Type on vermilion and paper\" },\n      { id: \"paper\", name: \"Paper\", hex: \"#FEF9F4\", note: \"Type on ink\" },\n    ],\n  },\n  boilerplate: {\n    title: \"About Wendle\",\n    copy: \"Copy paragraph\",\n    text: \"Wendle is a calendar that plans your week. You tell it what matters and when you work best; it finds the hours, guards them and moves things when your week changes. Wendle is built by Wendle Labs, a team of nine, and is in private beta with people let in by place in line.\",\n  },\n  assets: {\n    title: \"Downloads\",\n    items: [\n      { name: \"Logo pack\", detail: \"SVG and PNG, light and dark\", size: \"1.4 MB\", format: \"ZIP\" },\n      { name: \"Product screens\", detail: \"Six screens at 2x\", size: \"18.2 MB\", format: \"ZIP\" },\n      { name: \"Team photo\", detail: \"Print resolution\", size: \"6.8 MB\", format: \"JPG\" },\n      { name: \"Fact sheet\", detail: \"One page\", size: \"220 KB\", format: \"PDF\" },\n    ],\n    download: \"Download\",\n    /** What a download says in the sample, where there is no file behind it. */\n    sample: \"Sample asset\",\n  },\n  contact: { title: \"Press enquiries\", body: \"We answer within a working day.\", email: \"press@wendle.example\" },\n};\n\n/* ---------- Chrome ---------------------------------------------------------------------- */\n\nexport const footer: FooterContent = {\n  columns: [\n    {\n      title: \"Wendle\",\n      links: [\n        { label: \"Waitlist\", href: \"/\" },\n        { label: \"Your place\", href: \"/thanks\" },\n        { label: \"Press kit\", href: \"/press\" },\n      ],\n    },\n    {\n      title: \"Contact\",\n      links: [\n        { label: \"hello@wendle.example\", href: \"mailto:hello@wendle.example\" },\n        { label: \"press@wendle.example\", href: \"mailto:press@wendle.example\" },\n      ],\n    },\n  ],\n  legal: {\n    line: \"© 2026 Wendle Labs\",\n    label: \"Legal\",\n    links: [\n      { label: \"Privacy\", href: \"/privacy\" },\n      { label: \"Terms\", href: \"/terms\" },\n    ],\n  },\n};\n\nexport const notFound = {\n  art: \"404\",\n  ticket: \"No such place\",\n  title: \"This place isn’t in line.\",\n  body: \"The page you followed doesn’t exist, or it moved. Your place on the waitlist is safe.\",\n  linksLabel: \"Pages people look for\",\n  links: [\n    { label: \"Join the waitlist\", href: \"/\" },\n    { label: \"Your place\", href: \"/thanks\" },\n    { label: \"Press kit\", href: \"/press\" },\n  ],\n};\n",
      "type": "registry:lib",
      "target": "@components/eased/templates/waitlist/content.ts"
    },
    {
      "path": "src/registry/eased/templates/waitlist/content-legal.ts",
      "content": "import type { LegalDoc } from \"../_shared/legal\";\n\n/** Wendle's privacy notice and terms for the waitlist. Sample text: replace it with your own before launch. */\n\nexport const legalLabels = {\n  updated: \"Last updated\",\n  contents: \"On this page\",\n};\nexport const legalNote = \"Sample text. Replace it with your own before you launch; it is not legal advice.\";\n\nexport const privacy: LegalDoc = {\n  title: \"Privacy\",\n  updated: \"2026-11-20\",\n  intro: \"What we keep when you join the Wendle waitlist, why, and how to have it deleted. It is short because we keep very little.\",\n  sections: [\n    {\n      title: \"Who we are\",\n      body: [\"Wendle Labs, [your registered address], is the controller of your data. Write to privacy@wendle.example.\"],\n    },\n    {\n      title: \"What we keep\",\n      body: [\n        \"Only what the waitlist needs:\",\n        {\n          list: [\n            \"Your email address\",\n            \"Your place in line and when you joined\",\n            \"The referral link we gave you, and how many people joined from it\",\n          ],\n        },\n        \"We don’t keep the names of the people you share your link with. When they join, they give us their own email, and it is theirs.\",\n      ],\n    },\n    {\n      title: \"What we do with it\",\n      body: [\n        \"We email you when it’s your turn, and at most once a month before that if something about your place changes. We never sell your address or use it for advertising.\",\n      ],\n    },\n    {\n      title: \"Who we share it with\",\n      body: [\"One email provider, [your email provider], which sends our emails and stores your address on our behalf under a data processing agreement.\"],\n    },\n    {\n      title: \"How long we keep it\",\n      body: [\"Until you get in, or until you leave the waitlist. If you don’t open Wendle within six months of your invite, we delete your address.\"],\n    },\n    {\n      title: \"Your rights\",\n      body: [\n        \"You can ask for a copy of what we hold, correct it or have it deleted. Every email has a one-click link that removes you. You can also complain to [your data protection authority].\",\n      ],\n    },\n  ],\n};\n\nexport const terms: LegalDoc = {\n  title: \"Terms\",\n  updated: \"2026-11-20\",\n  intro: \"The rules of the waitlist. Wendle itself will have its own terms, which you’ll see before you start using it.\",\n  sections: [\n    {\n      title: \"The waitlist\",\n      body: [\"Joining is free and doesn’t commit you to anything. Your place is an estimate of when you’ll get in, not a promise of a date.\"],\n    },\n    {\n      title: \"Referrals\",\n      body: [\n        \"Each person who joins from your link and confirms their email moves you up the number of places shown on your page. We may change that number; it never takes places away that you already earned.\",\n        \"One person, one place. We remove places earned with made-up or duplicate addresses, and may remove the place that earned them.\",\n      ],\n    },\n    {\n      title: \"Changes\",\n      body: [\"If we change these terms in a way that affects your place, we’ll email you before the change applies.\"],\n    },\n    {\n      title: \"Contact\",\n      body: [\"Questions about these terms go to hello@wendle.example.\"],\n    },\n  ],\n};\n",
      "type": "registry:lib",
      "target": "@components/eased/templates/waitlist/content-legal.ts"
    },
    {
      "path": "src/registry/eased/templates/waitlist/kit.tsx",
      "content": "\"use client\";\n\nimport { motion } from \"motion/react\";\nimport type { ReactNode } from \"react\";\nimport { enter, reducedFade, stagger, useSafeReducedMotion } from \"../../lib/motion\";\nimport { BaseProvider } from \"../_shared/base\";\nimport { brand } from \"./content\";\nimport { LineProvider, RESTORE_SCRIPT } from \"./line\";\n\n/**\n * The pieces every section of the waitlist shares: the token set and the page root, the\n * column, the label, the entrances, the mark and the page opening.\n */\n\n/* ---------- Tokens -------------------------------------------------------------------- */\n\nconst LIGHT = `\n  --eased-bg: oklch(98.4% 0.008 60);\n  --eased-surface: oklch(100% 0 0);\n  --eased-surface-raised: oklch(100% 0 0);\n  --eased-surface-sunken: oklch(95.8% 0.012 55);\n  --eased-surface-hover: oklch(94.6% 0.014 55);\n  --eased-surface-active: oklch(91.8% 0.018 50);\n  --eased-line-subtle: oklch(91% 0.012 55);\n  --eased-line: oklch(86% 0.016 50);\n  --eased-line-strong: oklch(72% 0.02 45);\n  --eased-text: oklch(20% 0.035 35);\n  --eased-text-secondary: oklch(38% 0.03 35);\n  --eased-text-muted: oklch(48% 0.025 38);\n  --eased-brand: oklch(55% 0.205 33);\n  --eased-brand-hover: oklch(51% 0.2 32);\n  --eased-brand-active: oklch(47% 0.19 31);\n  --eased-brand-subtle: oklch(55% 0.205 33 / 0.1);\n  --eased-brand-line: oklch(55% 0.205 33 / 0.5);\n  --eased-brand-text: oklch(50% 0.19 33);\n  --eased-text-on-brand: oklch(99% 0.005 60);\n  --eased-danger: oklch(50% 0.2 15);\n  --eased-danger-text: oklch(46% 0.19 15);\n  --eased-danger-subtle: oklch(50% 0.2 15 / 0.1);\n  --eased-success-text: oklch(45% 0.12 155);\n  --eased-success-subtle: oklch(62% 0.15 155 / 0.14);\n  --eased-ring: oklch(55% 0.205 33 / 0.6);\n  --eased-ring-soft: oklch(55% 0.205 33 / 0.18);\n  --eased-shadow-tint: 25% 0.05 35;\n`;\n\nconst DARK = `\n  --eased-bg: oklch(16% 0.018 40);\n  --eased-surface: oklch(19.5% 0.02 40);\n  --eased-surface-raised: oklch(22.5% 0.022 40);\n  --eased-surface-sunken: oklch(13.5% 0.016 40);\n  --eased-surface-hover: oklch(24% 0.024 40);\n  --eased-surface-active: oklch(27.5% 0.026 40);\n  --eased-line-subtle: oklch(26% 0.022 40);\n  --eased-line: oklch(32% 0.024 40);\n  --eased-line-strong: oklch(43% 0.026 40);\n  --eased-text: oklch(96.5% 0.012 70);\n  --eased-text-secondary: oklch(80% 0.02 60);\n  --eased-text-muted: oklch(68% 0.025 55);\n  --eased-brand: oklch(70% 0.17 38);\n  --eased-brand-hover: oklch(74% 0.15 42);\n  --eased-brand-active: oklch(66% 0.17 36);\n  --eased-brand-subtle: oklch(70% 0.17 38 / 0.14);\n  --eased-brand-line: oklch(70% 0.17 38 / 0.55);\n  --eased-brand-text: oklch(76% 0.14 42);\n  --eased-text-on-brand: oklch(18% 0.04 35);\n  --eased-danger: oklch(66% 0.18 15);\n  --eased-danger-text: oklch(75% 0.14 15);\n  --eased-danger-subtle: oklch(66% 0.18 15 / 0.16);\n  --eased-success-text: oklch(80% 0.13 155);\n  --eased-success-subtle: oklch(72% 0.15 155 / 0.16);\n  --eased-ring: oklch(70% 0.17 38 / 0.6);\n  --eased-ring-soft: oklch(70% 0.17 38 / 0.2);\n  --eased-shadow-tint: 5% 0.02 40;\n`;\n\n/**\n * The field, in one hue: ink type on vermilion in light, paper type on a red-black in dark.\n * Controls on it are glass over the field, and the brand turns to the type's colour so the one\n * filled action reads. `--wl-bar` and `--wl-yours` are the week's bars and your place.\n */\nconst FIELD_LIGHT = `\n  --wl-base: oklch(68% 0.2 37);\n  --wl-bar: oklch(74% 0.16 42);\n  --wl-yours: oklch(90% 0.06 70);\n  --eased-bg: var(--wl-base);\n  --eased-surface: oklch(100% 0 0 / 0.22);\n  --eased-surface-raised: oklch(100% 0 0 / 0.3);\n  --eased-surface-sunken: oklch(20% 0.05 30 / 0.08);\n  --eased-surface-hover: oklch(100% 0 0 / 0.3);\n  --eased-surface-active: oklch(100% 0 0 / 0.42);\n  --eased-line-subtle: oklch(20% 0.05 30 / 0.16);\n  --eased-line: oklch(20% 0.05 30 / 0.26);\n  --eased-line-strong: oklch(20% 0.05 30 / 0.42);\n  --eased-text: oklch(19% 0.05 30);\n  --eased-text-secondary: oklch(19% 0.05 30 / 0.94);\n  --eased-text-muted: oklch(19% 0.05 30 / 0.9);\n  --eased-brand: oklch(19% 0.05 30);\n  --eased-brand-hover: oklch(26% 0.06 30);\n  --eased-brand-active: oklch(31% 0.07 30);\n  --eased-brand-text: oklch(19% 0.05 30);\n  --eased-brand-line: oklch(19% 0.05 30 / 0.5);\n  --eased-brand-subtle: oklch(19% 0.05 30 / 0.1);\n  --eased-text-on-brand: oklch(97% 0.012 70);\n  --eased-ring: oklch(19% 0.05 30 / 0.75);\n  --eased-ring-soft: oklch(19% 0.05 30 / 0.22);\n`;\n\nconst FIELD_DARK = `\n  --wl-base: oklch(19% 0.04 30);\n  --wl-bar: oklch(25% 0.07 32);\n  --wl-yours: oklch(49% 0.185 32);\n  --eased-surface: oklch(100% 0 0 / 0.08);\n  --eased-surface-raised: oklch(100% 0 0 / 0.12);\n  --eased-surface-sunken: oklch(0% 0 0 / 0.2);\n  --eased-surface-hover: oklch(100% 0 0 / 0.14);\n  --eased-surface-active: oklch(100% 0 0 / 0.2);\n  --eased-line-subtle: oklch(100% 0 0 / 0.16);\n  --eased-line: oklch(100% 0 0 / 0.26);\n  --eased-line-strong: oklch(100% 0 0 / 0.42);\n  --eased-text: oklch(97% 0.012 70);\n  --eased-text-secondary: oklch(97% 0.012 70 / 0.92);\n  --eased-text-muted: oklch(97% 0.012 70 / 0.88);\n  --eased-brand: oklch(97% 0.012 70);\n  --eased-brand-hover: oklch(92% 0.025 60);\n  --eased-brand-active: oklch(87% 0.035 55);\n  --eased-brand-text: oklch(97% 0.012 70);\n  --eased-brand-line: oklch(100% 0 0 / 0.55);\n  --eased-brand-subtle: oklch(100% 0 0 / 0.12);\n  --eased-text-on-brand: oklch(25% 0.08 30);\n  --eased-ring: oklch(100% 0 0 / 0.8);\n  --eased-ring-soft: oklch(100% 0 0 / 0.22);\n`;\n\n/**\n * Wendle's tokens, on its root in both themes. `[data-wl-field]` is the colour field (home and\n * the referral page open on it); `[data-wl-paper]` puts the page's own tokens back inside it,\n * for the email form, so the field and the error under it read as they do anywhere else.\n * `.wl-rise` is the first screen's entrance: CSS, so it plays before hydration and never\n * plays at all under reduced motion.\n */\nconst THEME = `\n[data-wendle], [data-wendle] [data-wl-paper] {${LIGHT}\n  --eased-radius-panel: 14px;\n  --eased-radius-surface: 24px;\n  --eased-radius-control: 10px;\n  --eased-radius-control-sm: 8px;\n  --eased-radius-control-xs: 6px;\n  --wl-header: 4rem;\n}\n[data-theme=\"dark\"] [data-wendle], [data-theme=\"dark\"] [data-wendle] [data-wl-paper] {${DARK}}\n[data-wendle] [data-wl-field] {${FIELD_LIGHT}}\n[data-theme=\"dark\"] [data-wendle] [data-wl-field] {${FIELD_DARK}}\n@keyframes wl-rise { from { opacity: 0; transform: translateY(8px); } }\n.wl-rise { animation: wl-rise 0.5s var(--eased-ease-enter) both; animation-delay: calc(var(--i, 0) * ${stagger.line}s); }\n@media (prefers-reduced-motion: reduce) { .wl-rise { animation: none; } }\n`;\n\n/** The page root: the token set, the canvas and type, the mount for links and overlays, and the line. */\nexport function Root({ base, children }: { base: string; children: ReactNode }) {\n  return (\n    <div data-wendle=\"\" className=\"flex min-h-dvh flex-col bg-bg font-sans text-ui text-text\">\n      <style href=\"eased-wendle-theme\" precedence=\"default\">\n        {THEME}\n      </style>\n      <script dangerouslySetInnerHTML={{ __html: RESTORE_SCRIPT }} />\n      <BaseProvider base={base}>\n        <LineProvider>{children}</LineProvider>\n      </BaseProvider>\n    </div>\n  );\n}\n\n/* ---------- Layout -------------------------------------------------------------------- */\n\n/** The page column: the full 1440px canvas less a 16px gutter (24px from sm, 40px from xl). */\nexport const COLUMN = \"mx-auto w-full max-w-[90rem] px-4 sm:px-6 xl:px-10\";\n\n/** Small labels over sections, in the mono, set in caps at 12px (rule 48). */\nexport const LABEL = \"font-mono text-ui-xs uppercase tracking-caps text-text-muted\";\n\n/** Section headings: the sans at 600, tight. */\nexport const TITLE = \"font-display text-display-4xl font-semibold tracking-display text-balance text-text sm:text-display-5xl\";\n\n/** Places as the template writes them: \"#2,481\". */\nconst PLACE = new Intl.NumberFormat(\"en-US\");\nexport const formatCount = (n: number) => PLACE.format(n);\nexport const formatPlace = (n: number) => `#${PLACE.format(n)}`;\n\n/**\n * Rises 8px and fades in the first time it scrolls into view, `index` lines after the first\n * (rule 89). Reduced motion only changes the start and the timing, and remounts so it never\n * keeps a start pose read before the setting was known. Below the first screen only: the\n * first screen rises with `.wl-rise`, which needs no script.\n */\nexport function Reveal({ index = 0, className = \"\", children }: { index?: number; className?: string; children: ReactNode }) {\n  const reduced = useSafeReducedMotion();\n  return (\n    <motion.div\n      key={reduced ? \"reduced\" : \"full\"}\n      className={className}\n      initial={reduced ? { opacity: 0 } : { opacity: 0, y: 8 }}\n      whileInView={{ opacity: 1, y: 0 }}\n      viewport={{ once: true, amount: 0.2 }}\n      transition={reduced ? reducedFade : { ...enter, duration: 0.4, delay: index * stagger.line }}\n    >\n      {children}\n    </motion.div>\n  );\n}\n\n/** A page's opening, past the home page: the label, the h1 (`#page-title`) and a lead, rising in as the first screen does. */\nexport function PageHead({ label, title, lead, children }: { label: string; title: ReactNode; lead?: ReactNode; children?: ReactNode }) {\n  return (\n    <div className=\"flex flex-col gap-pad-base\">\n      <p className={`wl-rise ${LABEL}`}>{label}</p>\n      <h1 id=\"page-title\" className=\"wl-rise max-w-4xl font-display text-display-5xl font-semibold tracking-display text-balance text-text [--i:1] sm:text-display-6xl\">\n        {title}\n      </h1>\n      {lead && <p className=\"wl-rise max-w-2xl text-ui-md text-pretty text-text-secondary [--i:2] sm:text-ui-lg\">{lead}</p>}\n      {children}\n    </div>\n  );\n}\n\n/* ---------- Mark ---------------------------------------------------------------------- */\n\n/** Wendle's mark: a week seen side on, seven days with the fifth lifted, the one it kept free. */\nexport function Mark({ className = \"size-5\" }: { className?: string }) {\n  return (\n    <svg viewBox=\"0 0 20 20\" className={`shrink-0 ${className}`} aria-hidden>\n      {[0, 1, 2, 3, 4, 5, 6].map((d) => (\n        <rect key={d} x={1 + d * 2.6} y={d === 4 ? 2.5 : 7.5} width=\"2\" height=\"10\" rx=\"1\" fill=\"currentColor\" opacity={d === 4 ? 1 : 0.62} />\n      ))}\n    </svg>\n  );\n}\n\n/** The mark and the name, the home link's content. */\nexport function Wordmark({ className = \"\", markClassName = \"size-5\" }: { className?: string; markClassName?: string }) {\n  return (\n    <span className={`inline-flex items-center gap-2 ${className}`}>\n      <Mark className={markClassName} />\n      <span className=\"font-semibold tracking-display\">{brand.name}</span>\n    </span>\n  );\n}\n",
      "type": "registry:component",
      "target": "@components/eased/templates/waitlist/kit.tsx"
    },
    {
      "path": "src/registry/eased/templates/waitlist/line.tsx",
      "content": "\"use client\";\n\nimport { createContext, use, useCallback, useEffect, useMemo, useRef, useState, useSyncExternalStore, type ReactNode } from \"react\";\nimport { useSafeReducedMotion } from \"../../lib/motion\";\nimport { queue } from \"./content\";\n\n/**\n * The line: how many people are waiting, your place once you join, whether a friend's credit\n * has moved you, and whether the page's motion is paused. The count starts at `queue.waiting`\n * and ticks up by one (now and then two) after a beat, at a slow, uneven pace, while the tab\n * is visible and motion isn't paused. Your place, the credit and the pause live in\n * sessionStorage, so they follow you between pages and survive a reload. Nothing here touches\n * the network: swap the ticking for your list's real count (README, \"Before you ship\").\n */\n\nexport type Line = {\n  waiting: number;\n  /** Your place, once you have joined; null before. */\n  place: number | null;\n  /** Whether a friend's credit has moved you up yet (the demo grants one). */\n  credited: boolean;\n  paused: boolean;\n  setPaused: (paused: boolean) => void;\n  /** Takes the next place in line and returns it. */\n  join: () => number;\n  /** Moves your place up by `queue.credit` (never past #1), once. */\n  credit: () => void;\n  /**\n   * False for the first frame after hydration, while a saved place is filled in: anything that\n   * would animate a change (a roll, the bar's rise, an entrance) shows the saved state at once.\n   */\n  live: boolean;\n};\n\n/* ---------- The stored part ------------------------------------------------------------- */\n\ntype Saved = { place: number | null; credited: boolean; paused: boolean | null };\n\nconst KEY = \"wendle-line\";\nconst HIDE = \"wl-restore\";\n\n/**\n * Runs as the page parses, before React: with a saved place, it hides the parts that will change\n * (`data-wl-restore`) until the saved line is on screen, so a reload never flashes the form or the\n * sample count. A style in <head>, not an attribute, so hydration compares nothing it changed.\n */\nexport const RESTORE_SCRIPT = `try{var s=JSON.parse(sessionStorage.getItem(\"${KEY}\")||\"{}\");if(s.place>0){var t=document.createElement(\"style\");t.id=\"${HIDE}\";t.textContent=\"[data-wl-restore]{visibility:hidden}\";document.head.appendChild(t)}}catch(e){}`;\nconst EMPTY: Saved = { place: null, credited: false, paused: null };\nlet memory = EMPTY;\nlet raw: string | null | undefined;\nconst listeners = new Set<() => void>();\n\n/** The saved line, read once per change; storage can throw (private mode, blocked site data), so memory stands in. */\nfunction read(): Saved {\n  let next: string | null = null;\n  try {\n    next = window.sessionStorage.getItem(KEY);\n  } catch {\n    return memory;\n  }\n  if (next === raw) return memory;\n  raw = next;\n  try {\n    const parsed = next ? (JSON.parse(next) as Partial<Saved>) : {};\n    memory = {\n      place: Number.isInteger(parsed.place) && parsed.place! > 0 ? parsed.place! : null,\n      credited: parsed.credited === true,\n      paused: typeof parsed.paused === \"boolean\" ? parsed.paused : null,\n    };\n  } catch {\n    memory = EMPTY;\n  }\n  return memory;\n}\n\nfunction write(patch: Partial<Saved>) {\n  memory = { ...read(), ...patch };\n  try {\n    raw = JSON.stringify(memory);\n    window.sessionStorage.setItem(KEY, raw);\n  } catch {\n    // Memory still holds it for this page.\n  }\n  listeners.forEach((l) => l());\n}\n\nconst subscribe = (l: () => void) => {\n  listeners.add(l);\n  return () => listeners.delete(l);\n};\n\n/* ---------- The provider ---------------------------------------------------------------- */\n\nconst LineContext = createContext<Line | null>(null);\n\n/** Seconds until the next person joins: uneven, inside `queue.tick`. */\nconst gap = () => queue.tick[0] + Math.random() * (queue.tick[1] - queue.tick[0]);\n\nexport function LineProvider({ children }: { children: ReactNode }) {\n  // The server and hydration render the empty line; the saved one follows straight after.\n  const saved = useSyncExternalStore(subscribe, read, () => EMPTY);\n  const reduced = useSafeReducedMotion();\n  // Under reduced motion the line starts still, ticking included, until you press Play.\n  const paused = saved.paused ?? reduced;\n\n  // A ref as well as state, so a join reads the count as it is now, ticks during the send included.\n  const count = useRef(queue.waiting);\n  const [ticked, setTicked] = useState(queue.waiting);\n  const waiting = Math.max(ticked, saved.place ?? 0);\n\n  useEffect(() => {\n    if (paused) return;\n    let timer = 0;\n    const schedule = (seconds: number) => {\n      timer = window.setTimeout(() => {\n        // A hidden tab keeps its count: nobody sees it, and a burst on return would read as fake.\n        if (!document.hidden) {\n          count.current = Math.max(count.current, read().place ?? 0) + (Math.random() < 0.18 ? 2 : 1);\n          setTicked(count.current);\n        }\n        schedule(gap());\n      }, seconds * 1000);\n    };\n    schedule(queue.firstTick);\n    return () => window.clearTimeout(timer);\n  }, [paused]);\n\n  const join = useCallback(() => {\n    const next = Math.max(count.current, read().place ?? 0) + 1;\n    count.current = next;\n    setTicked(next);\n    write({ place: next, credited: false });\n    return next;\n  }, []);\n\n  const credit = useCallback(() => {\n    const { place, credited } = read();\n    if (place === null || credited) return;\n    write({ place: Math.max(1, place - queue.credit), credited: true });\n  }, []);\n\n  const setPaused = useCallback((p: boolean) => write({ paused: p }), []);\n\n  // The saved line arrives in the render right after hydration; a frame later the page is live.\n  const [live, setLive] = useState(false);\n  useEffect(() => {\n    const frame = requestAnimationFrame(() => {\n      setLive(true);\n      document.getElementById(HIDE)?.remove();\n    });\n    return () => cancelAnimationFrame(frame);\n  }, []);\n\n  const line = useMemo(\n    () => ({ waiting, place: saved.place, credited: saved.credited, paused, setPaused, join, credit, live }),\n    [waiting, saved.place, saved.credited, paused, setPaused, join, credit, live],\n  );\n  return <LineContext value={line}>{children}</LineContext>;\n}\n\n/** The line, from the template's Root. */\nexport function useLine() {\n  const line = use(LineContext);\n  if (!line) throw new Error(\"useLine needs the template's Root around it.\");\n  return line;\n}\n\n/** How far a credit moves a place: `queue.credit`, or less near the front. */\nexport const creditFrom = (place: number) => Math.max(1, place - queue.credit);\n",
      "type": "registry:component",
      "target": "@components/eased/templates/waitlist/line.tsx"
    },
    {
      "path": "src/registry/eased/templates/waitlist/field.tsx",
      "content": "\"use client\";\n\nimport { motion, useInView } from \"motion/react\";\nimport { useRef } from \"react\";\nimport { instant, smooth, useSafeReducedMotion } from \"../../lib/motion\";\nimport { ProgressiveBlur } from \"../../progressive-blur/progressive-blur\";\nimport { hero } from \"./content\";\nimport { useLine } from \"./line\";\n\n/**\n * The field is Wendle's mark at the size of the page: seven hard-edged bars, a week and a line\n * of people, with the fifth lifted in a colour of its own. That one is your place: it steps up\n * when you join and again when a friend's credit lands (`step`). The others breathe up and down\n * on long, uneven loops, transform only, and a progressive blur softens them toward the foot.\n * Everything holds still under reduced motion, while paused and off screen, which leaves the\n * same week as a still composition.\n */\n\nconst CSS = `\n@keyframes wl-breathe { from { transform: translateY(var(--wl-from)); } to { transform: translateY(var(--wl-to)); } }\n[data-wl-art] [data-bar] { animation: wl-breathe var(--wl-loop) ease-in-out infinite alternate; }\n[data-wl-art][data-still] [data-bar] { animation-play-state: paused; }\n@media (prefers-reduced-motion: reduce) { [data-wl-art] [data-bar] { animation: none; } }\n`;\n\n/** Each day's top edge (share of the field's height from the top) and its loop. The fifth is yours. */\nconst DAYS = [\n  { top: \"34%\", loop: \"37s\", from: \"0%\", to: \"-4%\" },\n  { top: \"25%\", loop: \"43s\", from: \"-2%\", to: \"3%\" },\n  { top: \"41%\", loop: \"31s\", from: \"1%\", to: \"-3%\" },\n  { top: \"29%\", loop: \"47s\", from: \"-3%\", to: \"2%\" },\n  { top: \"17%\", loop: \"53s\", from: \"0%\", to: \"-2%\" },\n  { top: \"38%\", loop: \"41s\", from: \"2%\", to: \"-2%\" },\n  { top: \"47%\", loop: \"35s\", from: \"-1%\", to: \"3%\" },\n];\nconst YOURS = 4;\n\n/** How far your bar rises per step: joined, then credited. */\nconst STEP = [\"0svh\", \"-7svh\", \"-13svh\"] as const;\n\nexport function FieldArt({ step = 0, blur = true }: { step?: 0 | 1 | 2; blur?: boolean }) {\n  const ref = useRef<HTMLDivElement>(null);\n  const seen = useInView(ref, { amount: 0 });\n  const reduced = useSafeReducedMotion();\n  const { paused, live } = useLine();\n  const stopped = paused || !seen;\n  return (\n    <div ref={ref} aria-hidden data-wl-art=\"\" data-still={stopped ? \"\" : undefined} className=\"pointer-events-none absolute inset-0 overflow-hidden bg-bg\">\n      <style href=\"eased-wendle-field\" precedence=\"default\">\n        {CSS}\n      </style>\n      <div className=\"absolute inset-0 flex gap-[1.6%] px-[1.6%]\">\n        {DAYS.map((d, i) => (\n          <motion.div\n            key={d.top}\n            className=\"relative flex-1\"\n            initial={false}\n            animate={{ y: i === YOURS ? STEP[step] : \"0svh\" }}\n            transition={reduced || !live ? instant : smooth}\n          >\n            <span\n              data-bar=\"\"\n              className={`absolute inset-x-0 -bottom-[45%] rounded-t-full ${i === YOURS ? \"bg-(--wl-yours)\" : \"bg-(--wl-bar)\"}`}\n              style={{ top: d.top, [\"--wl-loop\" as string]: d.loop, [\"--wl-from\" as string]: d.from, [\"--wl-to\" as string]: d.to }}\n            />\n          </motion.div>\n        ))}\n      </div>\n      {blur && <ProgressiveBlur side=\"bottom\" size={280} maxBlur={24} layers={6} tint={false} />}\n    </div>\n  );\n}\n\n/** Pause motion: stops the field and the count, and remembers it across pages. */\nexport function MotionToggle({ className = \"\" }: { className?: string }) {\n  const { paused, setPaused } = useLine();\n  return (\n    <button\n      type=\"button\"\n      onClick={() => setPaused(!paused)}\n      className={`focus-ring inline-flex h-11 shrink-0 cursor-pointer items-center gap-2 rounded-control px-3 text-ui-sm text-text-secondary transition-colors duration-(--eased-duration-fast) hover-fine:bg-surface-hover hover-fine:text-text active:bg-surface-active ${className}`}\n    >\n      <svg viewBox=\"0 0 16 16\" className=\"size-4 shrink-0\" aria-hidden>\n        {paused ? (\n          <path d=\"M5.5 3.8v8.4a.6.6 0 0 0 .9.5l6.6-4.2a.6.6 0 0 0 0-1L6.4 3.3a.6.6 0 0 0-.9.5Z\" fill=\"currentColor\" />\n        ) : (\n          <>\n            <rect x=\"4\" y=\"3.5\" width=\"2.6\" height=\"9\" rx=\"0.8\" fill=\"currentColor\" />\n            <rect x=\"9.4\" y=\"3.5\" width=\"2.6\" height=\"9\" rx=\"0.8\" fill=\"currentColor\" />\n          </>\n        )}\n      </svg>\n      {paused ? hero.play : hero.pause}\n    </button>\n  );\n}\n",
      "type": "registry:component",
      "target": "@components/eased/templates/waitlist/field.tsx"
    },
    {
      "path": "src/registry/eased/templates/waitlist/referral.tsx",
      "content": "\"use client\";\n\nimport { AnimatePresence, motion } from \"motion/react\";\nimport { useEffect, useRef, useState } from \"react\";\nimport { useCopy } from \"../../_primitives/copy/copy\";\nimport { Button } from \"../../button/button\";\nimport { exitFast, instant, reducedFade, swap, swapIn, swapOut, swapShown, useSafeReducedMotion } from \"../../lib/motion\";\nimport { ShimmerText } from \"../../shimmer-text/shimmer-text\";\nimport { queue, referral } from \"./content\";\nimport { useLine } from \"./line\";\n\n/**\n * Your referral link and the line over it. Copy the link and, a beat later, the demo plays a\n * friend joining from it: the line says so and `onCredit` moves your place up. It plays once;\n * copying again only copies. A real list credits you when the friend confirms their email,\n * so call `onCredit` from that instead (README, \"Before you ship\"). When the clipboard refuses,\n * the line says to select the link, which is selectable.\n */\n\n/** How long after the copy the sample friend joins, ms: long enough to read \"Copied\". */\nconst FRIEND_MS = 1100;\n\ntype Phase = \"idle\" | \"failed\" | \"waiting\" | \"credited\";\n\nexport function Referral({\n  credited,\n  onCredit,\n  moved,\n  creditedPlace,\n  className = \"\",\n}: {\n  /** Already credited (the line moved before): the line opens on the credit. */\n  credited: boolean;\n  onCredit: () => void;\n  /** How many places the credit moves you: the credit, or less near the front. */\n  moved: number;\n  /** Your place once the credit applies, as read aloud (\"#2,471\"). */\n  creditedPlace: string;\n  className?: string;\n}) {\n  const reduced = useSafeReducedMotion();\n  const { live } = useLine();\n  const [phase, setPhase] = useState<Phase>(\"idle\");\n  const [said, setSaid] = useState(\"\");\n  const timer = useRef(0);\n  useEffect(() => () => window.clearTimeout(timer.current), []);\n  // What the credit gave, kept when it lands so the line doesn't recount from the new place.\n  const [gave, setGave] = useState(moved);\n  const shown: Phase = credited && phase !== \"failed\" ? \"credited\" : phase;\n\n  const { copied, copy } = useCopy(queue.link, {\n    onCopy: () => {\n      setSaid(referral.copied);\n      if (credited || phase === \"waiting\") {\n        if (phase === \"failed\") setPhase(\"idle\");\n        return;\n      }\n      setPhase(\"waiting\");\n      timer.current = window.setTimeout(() => {\n        setGave(moved);\n        setPhase(\"credited\");\n        onCredit();\n        setSaid(referral.creditedSpoken(moved, creditedPlace));\n      }, FRIEND_MS);\n    },\n  });\n\n  const press = async () => {\n    if (await copy()) return;\n    setPhase(\"failed\");\n    setSaid(referral.failed);\n  };\n\n  const line =\n    shown === \"failed\" ? referral.failed : shown === \"waiting\" ? referral.pending : shown === \"credited\" ? referral.credited(phase === \"credited\" ? gave : moved) : referral.title(queue.credit);\n\n  return (\n    <div className={`flex min-w-0 flex-col gap-2 ${className}`}>\n      {/* The line swaps like Text Swap but may wrap on phones, so it is its own swap, two lines\n          tall below sm so the link under it never moves. */}\n      <div className=\"grid text-ui text-text *:col-start-1 *:row-start-1 max-sm:min-h-[2lh]\">\n        <AnimatePresence initial={false}>\n          <motion.p\n            key={shown}\n            className=\"text-pretty\"\n            initial={!live ? false : reduced ? { opacity: 0 } : swapIn}\n            animate={reduced ? { opacity: 1 } : swapShown}\n            exit={!live ? { opacity: 0, transition: instant } : reduced ? { opacity: 0, transition: reducedFade } : { ...swapOut, transition: { ...swap, opacity: exitFast, filter: exitFast } }}\n            transition={reduced ? reducedFade : swap}\n          >\n            {shown === \"waiting\" ? (\n              <ShimmerText swap={false} className=\"text-text-secondary\">\n                {line}\n              </ShimmerText>\n            ) : (\n              line\n            )}\n          </motion.p>\n        </AnimatePresence>\n      </div>\n      <div className=\"flex min-w-0 items-center gap-2\">\n        <span className=\"flex h-control-md min-w-0 flex-1 items-center rounded-control border border-line bg-surface px-3 font-mono text-ui-sm text-text\">\n          <span className=\"sr-only\">{referral.linkLabel}: </span>\n          <span className=\"truncate select-all\">{queue.link.replace(/^https:\\/\\//, \"\")}</span>\n        </span>\n        <Button size=\"md\" hitArea onClick={() => void press()} className=\"shrink-0\">\n          {copied ? referral.copied : referral.copy}\n        </Button>\n      </div>\n      <p role=\"status\" className=\"sr-only\">\n        {said}\n      </p>\n    </div>\n  );\n}\n",
      "type": "registry:component",
      "target": "@components/eased/templates/waitlist/referral.tsx"
    }
  ],
  "meta": {
    "template": "waitlist",
    "kind": "template-lib",
    "industries": [
      "saas"
    ]
  },
  "type": "registry:lib"
}