{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "hero-section-v7",
  "title": "Hero Section v7",
  "description": "Centered hero with serif headline, mono description, Monad-style flip pill CTAs, animated food-delivery demo, and authentication brands marquee.",
  "dependencies": [
    "gsap",
    "lucide-react"
  ],
  "registryDependencies": [
    "https://uiception.com/r/brands-section-v6.json"
  ],
  "files": [
    {
      "path": "registry/new-york/blocks/hero-section-v7/page.tsx",
      "content": "import HeroSectionV7 from \"./components/hero-section-v7\"\n\nexport default function Page() {\n  return <HeroSectionV7 />\n}\n",
      "type": "registry:page",
      "target": "app/hero-section-v7/page.tsx"
    },
    {
      "path": "registry/new-york/blocks/hero-section-v7/components/hero-section-v7.tsx",
      "content": "import { HeroV7Root } from \"./hero-v7-root\"\n\nimport type { HeroV7Props } from \"../lib/config\"\n\nimport \"../styles/hero-section-v7.css\"\n\nexport default function HeroSectionV7(props: HeroV7Props) {\n  return (\n    <section className=\"py-4 md:py-6 lg:py-8\">\n      <HeroV7Root {...props} />\n    </section>\n  )\n}\n",
      "type": "registry:component",
      "target": "app/hero-section-v7/components/hero-section-v7.tsx"
    },
    {
      "path": "registry/new-york/blocks/hero-section-v7/components/hero-v7-root.tsx",
      "content": "import type { HeroV7Props } from \"../lib/config\"\nimport HeroContent from \"./hero-content\"\n\nexport function HeroV7Root(props: HeroV7Props) {\n  return (\n    <div className=\"mx-auto max-w-6xl px-4\">\n      <HeroContent {...props} />\n    </div>\n  )\n}\n",
      "type": "registry:component",
      "target": "app/hero-section-v7/components/hero-v7-root.tsx"
    },
    {
      "path": "registry/new-york/blocks/hero-section-v7/components/hero-content.tsx",
      "content": "import { Instrument_Serif } from \"next/font/google\"\n\nimport type { HeroV7Props } from \"../lib/config\"\nimport { resolveHeroV7Content } from \"../lib/config\"\nimport BrandsSectionV6 from \"../../brands-section-v6/components/brands-section-v6\"\nimport CtaButtons from \"./cta-buttons\"\nimport PipelineDemo from \"./pipeline-demo\"\n\nconst instrumentSerif = Instrument_Serif({\n  subsets: [\"latin\"],\n  weight: [\"400\"],\n})\n\nexport default function HeroContent(props: HeroV7Props) {\n  const content = resolveHeroV7Content(props)\n\n  return (\n    <div className=\"flex flex-col items-center gap-6 text-center\">\n      <h1 className={`${instrumentSerif.className} max-w-3xl text-3xl tracking-tight sm:text-4xl lg:text-5xl lg:leading-[1.15]`}>\n        {content.title}\n      </h1>\n\n      <p className=\"max-w-lg font-mono text-base text-muted-foreground\">\n        {content.description}\n      </p>\n\n      <CtaButtons\n        primaryCta={content.primaryCta}\n        secondaryCta={content.secondaryCta}\n      />\n\n      <PipelineDemo />\n\n      <BrandsSectionV6 />\n    </div>\n  )\n}\n",
      "type": "registry:component",
      "target": "app/hero-section-v7/components/hero-content.tsx"
    },
    {
      "path": "registry/new-york/blocks/hero-section-v7/components/cta-buttons.tsx",
      "content": "\"use client\"\n\nimport { useLayoutEffect, useRef } from \"react\"\nimport Link from \"next/link\"\nimport gsap from \"gsap\"\n\nimport { cn } from \"@/lib/utils\"\n\nimport type { HeroV7Cta } from \"../lib/config\"\nimport { heroV7Content } from \"../lib/config\"\n\nconst CHAR_STAGGER = 0.03\nconst DURATION = 0.45\nconst EASE = \"power3.out\"\n\nfunction playIn(row1: HTMLElement[], row2: HTMLElement[]) {\n  gsap.killTweensOf([...row1, ...row2])\n  gsap.to(row1, {\n    yPercent: -100,\n    duration: DURATION,\n    stagger: CHAR_STAGGER,\n    ease: EASE,\n    overwrite: \"auto\",\n  })\n  gsap.to(row2, {\n    yPercent: 0,\n    duration: DURATION,\n    stagger: CHAR_STAGGER,\n    ease: EASE,\n    overwrite: \"auto\",\n  })\n}\n\nfunction playOut(row1: HTMLElement[], row2: HTMLElement[]) {\n  gsap.killTweensOf([...row1, ...row2])\n  gsap.to(row1, {\n    yPercent: 0,\n    duration: DURATION,\n    stagger: { each: CHAR_STAGGER, from: \"end\" },\n    ease: EASE,\n    overwrite: \"auto\",\n  })\n  gsap.to(row2, {\n    yPercent: 100,\n    duration: DURATION,\n    stagger: { each: CHAR_STAGGER, from: \"end\" },\n    ease: EASE,\n    overwrite: \"auto\",\n  })\n}\n\nfunction useStaggerCtaAnimation(label: string) {\n  const linkRef = useRef<HTMLAnchorElement>(null)\n\n  useLayoutEffect(() => {\n    const link = linkRef.current\n    if (!link) return\n\n    const row1 = gsap.utils.toArray<HTMLElement>(\n      \".hero-v7-cta__stagger-text:not(.hero-v7-cta__stagger-text--second) .hero-v7-cta__char\",\n      link\n    )\n    const row2 = gsap.utils.toArray<HTMLElement>(\n      \".hero-v7-cta__stagger-text--second .hero-v7-cta__char\",\n      link\n    )\n\n    if (row1.length === 0 || row2.length === 0) return\n\n    const reduced = window.matchMedia(\n      \"(prefers-reduced-motion: reduce)\"\n    ).matches\n    if (reduced) {\n      gsap.set([...row1, ...row2], { clearProps: \"all\" })\n      return\n    }\n\n    gsap.set(row1, { yPercent: 0 })\n    gsap.set(row2, { yPercent: 100 })\n\n    let over = false\n    let pressed = false\n\n    const sync = () => {\n      if (over || pressed) playIn(row1, row2)\n      else playOut(row1, row2)\n    }\n\n    const onEnter = () => {\n      over = true\n      sync()\n    }\n\n    const onLeave = () => {\n      over = false\n      pressed = false\n      sync()\n    }\n\n    const onDown = (event: PointerEvent) => {\n      if (!event.isPrimary) return\n      if (event.pointerType === \"mouse\" && event.button !== 0) return\n      pressed = true\n      if (event.pointerType === \"touch\" || event.pointerType === \"pen\") {\n        try {\n          link.setPointerCapture(event.pointerId)\n        } catch {\n\n        }\n      }\n      sync()\n    }\n\n    const onUp = (event: PointerEvent) => {\n      pressed = false\n      try {\n        if (link.hasPointerCapture(event.pointerId)) {\n          link.releasePointerCapture(event.pointerId)\n        }\n      } catch {\n\n      }\n      if (event.pointerType === \"touch\") over = false\n      sync()\n    }\n\n    const onCancel = (event: PointerEvent) => {\n      pressed = false\n      try {\n        if (link.hasPointerCapture(event.pointerId)) {\n          link.releasePointerCapture(event.pointerId)\n        }\n      } catch {\n\n      }\n      sync()\n    }\n\n    link.addEventListener(\"pointerenter\", onEnter)\n    link.addEventListener(\"pointerleave\", onLeave)\n    link.addEventListener(\"pointerdown\", onDown)\n    link.addEventListener(\"pointerup\", onUp)\n    link.addEventListener(\"pointercancel\", onCancel)\n\n    return () => {\n      link.removeEventListener(\"pointerenter\", onEnter)\n      link.removeEventListener(\"pointerleave\", onLeave)\n      link.removeEventListener(\"pointerdown\", onDown)\n      link.removeEventListener(\"pointerup\", onUp)\n      link.removeEventListener(\"pointercancel\", onCancel)\n      gsap.killTweensOf([...row1, ...row2])\n    }\n  }, [label])\n\n  return linkRef\n}\n\nfunction StaggerChars({ chars }: { chars: string[] }) {\n  return (\n    <>\n      {chars.map((char, i) => (\n        <span\n          key={`${char}-${i}`}\n          className=\"hero-v7-cta__char inline-block will-change-transform\"\n        >\n          {char === \" \" ? \"\\u00a0\" : char}\n        </span>\n      ))}\n    </>\n  )\n}\n\nfunction FlipCtaButton({\n  href,\n  label,\n  variant = \"primary\",\n  className,\n}: {\n  href: string\n  label: string\n  variant?: \"primary\" | \"secondary\"\n  className?: string\n}) {\n  const linkRef = useStaggerCtaAnimation(label)\n\n  return (\n    <Link\n      ref={linkRef}\n      href={href}\n      className={cn(\n        \"group relative inline-flex min-h-10 items-center justify-center rounded-full border px-5.5 py-2 font-mono text-sm font-medium tracking-[0.12em] uppercase no-underline transition-[background-color,border-color,color] duration-250 ease-out outline-none\",\n        variant === \"primary\" &&\n          \"border-white/14 bg-[#141414] text-zinc-100 hover:border-blue-500/40 hover:bg-[#1f1f1f] focus-visible:shadow-[0_0_0_2px_color-mix(in_srgb,rgba(59,130,246,0.55)_55%,transparent)] active:border-blue-500/40 active:bg-[#1f1f1f]\",\n        variant === \"secondary\" &&\n          \"border-zinc-900/14 bg-zinc-100 text-zinc-900 hover:border-orange-500/40 hover:bg-zinc-50 focus-visible:shadow-[0_0_0_2px_color-mix(in_srgb,rgba(249,115,22,0.55)_55%,transparent)] active:border-orange-500/40 active:bg-zinc-50\",\n        className\n      )}\n      style={{ touchAction: \"manipulation\" }}\n    >\n      <span\n        className={cn(\n          \"pointer-events-none absolute -inset-px rounded-[inherit] opacity-0 transition-opacity duration-350 ease-[cubic-bezier(0.22,1,0.36,1)] group-hover:opacity-100 group-focus-visible:opacity-100 group-active:opacity-100\",\n          variant === \"primary\" &&\n            \"shadow-[0_0_0_1px_rgba(59,130,246,0.65),0_0_16px_rgba(59,130,246,0.28),0_0_32px_color-mix(in_srgb,rgba(59,130,246,0.28)_65%,transparent)]\",\n          variant === \"secondary\" &&\n            \"shadow-[0_0_0_1px_rgba(249,115,22,0.65),0_0_16px_rgba(249,115,22,0.28),0_0_32px_color-mix(in_srgb,rgba(249,115,22,0.28)_65%,transparent)]\"\n        )}\n        aria-hidden=\"true\"\n      />\n      <span className=\"relative inline-block overflow-hidden leading-none\">\n        <span className=\"hero-v7-cta__stagger-text inline-flex flex-wrap justify-center gap-0\">\n          <StaggerChars chars={label.split(\"\")} />\n        </span>\n        <span\n          className=\"hero-v7-cta__stagger-text hero-v7-cta__stagger-text--second absolute inset-0 inline-flex justify-center\"\n          aria-hidden=\"true\"\n        >\n          <StaggerChars chars={label.split(\"\")} />\n        </span>\n      </span>\n    </Link>\n  )\n}\n\nexport default function CtaButtons({\n  primaryCta = heroV7Content.primaryCta,\n  secondaryCta = heroV7Content.secondaryCta,\n}: {\n  primaryCta?: HeroV7Cta\n  secondaryCta?: HeroV7Cta\n}) {\n  return (\n    <div className=\"flex flex-row flex-wrap justify-center gap-3\">\n      <FlipCtaButton\n        href={primaryCta.href}\n        label={primaryCta.label}\n        variant=\"primary\"\n        className=\"w-full sm:w-auto\"\n      />\n      <FlipCtaButton\n        href={secondaryCta.href}\n        label={secondaryCta.label}\n        variant=\"secondary\"\n        className=\"w-full sm:w-auto\"\n      />\n    </div>\n  )\n}\n",
      "type": "registry:component",
      "target": "app/hero-section-v7/components/cta-buttons.tsx"
    },
    {
      "path": "registry/new-york/blocks/hero-section-v7/components/pipeline-demo.tsx",
      "content": "\"use client\"\n\nimport { Bike, Circle, CookingPot, Receipt } from \"lucide-react\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Doordash } from \"@/components/ui/svgs/doordash\"\nimport { UberEats } from \"@/components/ui/svgs/ubereats\"\n\nimport { usePipelineDemoAnimation } from \"../hooks/use-pipeline-demo-animation\"\nimport {\n  DELIVERY_PLATFORMS,\n  DELIVERY_STAGES,\n  getDeliveryPlatformState,\n  getFooterPlatforms,\n  getFooterStepActive,\n  type DeliveryPlatformState,\n  type PipelineStage,\n} from \"../lib/pipeline-config\"\n\nconst PLATFORM_LOGOS = {\n  ubereats: UberEats,\n  doordash: Doordash,\n} as const\n\nconst STAGE_ICONS = {\n  ingest: Receipt,\n  transform: CookingPot,\n  deliver: Bike,\n} as const\n\ntype StageId = keyof typeof STAGE_ICONS\n\nconst PLATFORM_CHIP_STYLES: Record<DeliveryPlatformState, string> = {\n  inactive: \"[&_svg]:opacity-25\",\n  pending: \"[&_svg]:opacity-40\",\n  queued:\n    \"border-blue-500/35 bg-blue-500/5 ring-2 ring-blue-500/15 [&_svg]:opacity-70\",\n  delivering:\n    \"border-orange-500/25 bg-orange-500/4 [&_svg]:opacity-50\",\n  delivered:\n    \"border-orange-500 bg-orange-500/8 ring-2 ring-orange-500/25 [&_svg]:opacity-100\",\n  complete:\n    \"border-orange-500/45 bg-orange-500/6 [&_svg]:opacity-100\",\n}\n\nfunction StageNode({\n  stageId,\n  label,\n  detail,\n  active,\n}: {\n  stageId: StageId\n  label: string\n  detail: string\n  active: boolean\n}) {\n  const Icon = STAGE_ICONS[stageId]\n\n  return (\n    <div\n      className={cn(\n        \"flex min-h-24 flex-col items-center justify-center gap-1.5 rounded-xl border border-zinc-900/12 px-3 py-3 text-center transition-[border-color,box-shadow,color] duration-300 ease-[cubic-bezier(0.22,1,0.36,1)] dark:border-white/12\",\n        stageId === \"ingest\" &&\n          active &&\n          \"border-zinc-900/28 dark:border-white/28 [&_.hero-v7-pipeline__node-icon]:text-zinc-600 dark:[&_.hero-v7-pipeline__node-icon]:text-zinc-300\",\n        stageId === \"transform\" &&\n          active &&\n          \"border-blue-500 ring-2 ring-blue-500/25 [&_.hero-v7-pipeline__node-icon]:text-blue-500\",\n        stageId === \"deliver\" &&\n          active &&\n          \"border-orange-500 ring-2 ring-orange-500/25 [&_.hero-v7-pipeline__node-icon]:text-orange-500\"\n      )}\n    >\n      <span\n        className=\"hero-v7-pipeline__node-icon inline-flex text-zinc-400 transition-colors duration-300 ease-[cubic-bezier(0.22,1,0.36,1)]\"\n        aria-hidden\n      >\n        <Icon size={20} strokeWidth={1.75} />\n      </span>\n      <span\n        className={cn(\n          \"text-sm font-medium tracking-tight text-foreground transition-colors duration-300 ease-[cubic-bezier(0.22,1,0.36,1)]\",\n          active && stageId === \"ingest\" && \"font-semibold\",\n          active &&\n            stageId === \"transform\" &&\n            \"font-semibold text-blue-600 dark:text-blue-400\",\n          active &&\n            stageId === \"deliver\" &&\n            \"font-semibold text-orange-600 dark:text-orange-400\"\n        )}\n      >\n        {label}\n      </span>\n      <span\n        className={cn(\n          \"max-w-39 text-pretty font-mono text-xs leading-relaxed tracking-tight text-muted-foreground transition-colors duration-300 ease-[cubic-bezier(0.22,1,0.36,1)]\",\n          active && \"text-foreground/75\"\n        )}\n      >\n        {detail}\n      </span>\n    </div>\n  )\n}\n\nfunction PlatformChip({\n  chipId,\n  label,\n  state,\n}: {\n  chipId: keyof typeof PLATFORM_LOGOS\n  label: string\n  state: DeliveryPlatformState\n}) {\n  const Logo = PLATFORM_LOGOS[chipId]\n\n  return (\n    <span\n      className={cn(\n        \"inline-flex items-center justify-center rounded-full border border-zinc-900/10 px-2.5 py-1.5 transition-[border-color,background-color,opacity,box-shadow] duration-300 ease-[cubic-bezier(0.22,1,0.36,1)] dark:border-white/10\",\n        PLATFORM_CHIP_STYLES[state]\n      )}\n    >\n      <Logo className=\"block size-5.5 w-auto transition-opacity duration-300 ease-[cubic-bezier(0.22,1,0.36,1)]\" />\n      <span className=\"sr-only\">{label}</span>\n    </span>\n  )\n}\n\nfunction isStageActive(stage: PipelineStage, id: StageId) {\n  return stage === id\n}\n\nexport default function PipelineDemo() {\n  const { run, stage, activePlatforms, lineARef, lineBRef } =\n    usePipelineDemoAnimation()\n\n  const footerPlatforms = getFooterPlatforms(stage, run.platforms)\n  const footerActive = getFooterStepActive(stage, run.platforms)\n\n  return (\n    <div\n      className=\"mx-auto mt-2 w-full max-w-3xl text-left\"\n      aria-label=\"Live food delivery demo\"\n    >\n      <div className=\"overflow-hidden rounded-2xl border border-zinc-900/10 bg-zinc-50 shadow-[0_24px_48px_-28px_rgba(24,24,27,0.18)] dark:border-white/10 dark:bg-[#141414] dark:shadow-[0_24px_48px_-28px_rgba(0,0,0,0.45)]\">\n        <header className=\"flex items-center justify-between gap-4 border-b border-zinc-900/8 px-4 py-3 text-xs dark:border-white/8\">\n          <div className=\"flex min-w-0 items-center gap-3\">\n            <span className=\"font-mono text-2.75 tracking-wider text-muted-foreground\">\n              {run.id}\n            </span>\n            <span className=\"inline-flex items-center gap-1.5 text-zinc-600 dark:text-zinc-300\">\n              <Circle\n                className={cn(\n                  \"text-zinc-400 transition-colors duration-250 ease-out\",\n                  stage !== \"idle\" && \"text-green-500\"\n                )}\n                size={8}\n                fill=\"currentColor\"\n                aria-hidden\n              />\n              <span className=\"font-mono text-2.75 tracking-wider uppercase\">\n                {stage === \"idle\" ? \"Delivered\" : \"In progress\"}\n              </span>\n            </span>\n          </div>\n          <span className=\"font-mono text-3.25 text-foreground tabular-nums\">\n            {run.etaMin}\n            <span className=\"text-muted-foreground\"> min</span>\n          </span>\n        </header>\n\n        <div className=\"flex flex-col gap-3 px-4 pt-5 pb-4\">\n          <div className=\"relative z-1 grid grid-cols-1 items-start gap-3 sm:grid-cols-[minmax(0,1fr)_2.5rem_minmax(0,1fr)_2.5rem_minmax(0,1fr)] sm:items-stretch sm:gap-0\">\n            <StageNode\n              stageId=\"ingest\"\n              label={DELIVERY_STAGES[0].label}\n              detail={DELIVERY_STAGES[0].detail}\n              active={isStageActive(stage, \"ingest\")}\n            />\n\n            <div\n              ref={lineARef}\n              className=\"hero-v7-pipeline__line hero-v7-pipeline__line--transform relative hidden h-0.5 self-center overflow-hidden rounded-full bg-zinc-900/8 sm:block dark:bg-white/8\"\n              aria-hidden\n            />\n\n            <StageNode\n              stageId=\"transform\"\n              label={DELIVERY_STAGES[1].label}\n              detail={DELIVERY_STAGES[1].detail}\n              active={isStageActive(stage, \"transform\")}\n            />\n\n            <div\n              ref={lineBRef}\n              className=\"hero-v7-pipeline__line hero-v7-pipeline__line--deliver relative hidden h-0.5 self-center overflow-hidden rounded-full bg-zinc-900/8 sm:block dark:bg-white/8\"\n              aria-hidden\n            />\n\n            <StageNode\n              stageId=\"deliver\"\n              label={DELIVERY_STAGES[2].label}\n              detail={DELIVERY_STAGES[2].detail}\n              active={isStageActive(stage, \"deliver\")}\n            />\n          </div>\n\n          <div\n            className=\"flex flex-wrap justify-center gap-2 pt-1\"\n            aria-label=\"Delivery apps\"\n          >\n            {DELIVERY_PLATFORMS.map((chip) => (\n              <PlatformChip\n                key={chip.id}\n                chipId={chip.id}\n                label={chip.label}\n                state={getDeliveryPlatformState(\n                  chip.label,\n                  run.platforms,\n                  stage,\n                  activePlatforms\n                )}\n              />\n            ))}\n          </div>\n        </div>\n\n        <footer className=\"flex flex-wrap items-center justify-center gap-x-2 gap-y-1.5 border-t border-zinc-900/8 px-4 py-3 font-mono text-sm leading-snug dark:border-white/8\">\n          <span\n            className={cn(\n              \"transition-colors duration-300 ease-[cubic-bezier(0.22,1,0.36,1)]\",\n              footerActive.order\n                ? \"font-medium text-foreground\"\n                : \"text-muted-foreground\"\n            )}\n          >\n            {run.order}\n          </span>\n          <span className=\"text-zinc-400\" aria-hidden>\n            →\n          </span>\n          <span\n            className={cn(\n              \"transition-colors duration-300 ease-[cubic-bezier(0.22,1,0.36,1)]\",\n              footerActive.prep\n                ? \"font-medium text-blue-600 dark:text-blue-400\"\n                : \"text-muted-foreground\"\n            )}\n          >\n            {run.prep}\n          </span>\n          <span className=\"text-zinc-400\" aria-hidden>\n            →\n          </span>\n          <span\n            className={cn(\n              \"transition-colors duration-300 ease-[cubic-bezier(0.22,1,0.36,1)]\",\n              footerActive.platforms\n                ? \"font-medium text-orange-600 dark:text-orange-400\"\n                : \"text-muted-foreground\"\n            )}\n          >\n            {footerPlatforms.text}\n          </span>\n        </footer>\n      </div>\n    </div>\n  )\n}\n",
      "type": "registry:component",
      "target": "app/hero-section-v7/components/pipeline-demo.tsx"
    },
    {
      "path": "registry/new-york/blocks/hero-section-v7/hooks/use-pipeline-demo-animation.ts",
      "content": "\"use client\"\n\nimport { useLayoutEffect, useRef, useState, useSyncExternalStore } from \"react\"\nimport gsap from \"gsap\"\n\nimport { DELIVERY_EXAMPLES, type PipelineStage } from \"../lib/pipeline-config\"\n\nfunction subscribeReducedMotion(onStoreChange: () => void) {\n  const mq = window.matchMedia(\"(prefers-reduced-motion: reduce)\")\n  mq.addEventListener(\"change\", onStoreChange)\n  return () => mq.removeEventListener(\"change\", onStoreChange)\n}\n\nfunction getReducedMotion() {\n  return window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches\n}\n\nfunction getReducedMotionServer() {\n  return false\n}\n\nconst TIMING = {\n  startDelay: 0.4,\n  stageHold: 0.55,\n  lineFill: 0.65,\n  deliverPause: 0.15,\n  betweenExamples: 0.85,\n  resizeDebounce: 0.15,\n} as const\n\nexport function usePipelineDemoAnimation() {\n  const reducedMotion = useSyncExternalStore(\n    subscribeReducedMotion,\n    getReducedMotion,\n    getReducedMotionServer\n  )\n  const lineARef = useRef<HTMLDivElement>(null)\n  const lineBRef = useRef<HTMLDivElement>(null)\n  const exampleIndexRef = useRef(0)\n  const timelineRef = useRef<gsap.core.Timeline | null>(null)\n  const delayedCallRef = useRef<gsap.core.Tween | null>(null)\n\n  const [exampleIndex, setExampleIndex] = useState(0)\n  const [stage, setStage] = useState<PipelineStage>(\"idle\")\n  const [activePlatforms, setActivePlatforms] = useState<string[]>([])\n\n  const run = DELIVERY_EXAMPLES[exampleIndex]\n\n  useLayoutEffect(() => {\n    if (!reducedMotion) {\n      return\n    }\n\n    const lineA = lineARef.current\n    const lineB = lineBRef.current\n\n    if (!lineA || !lineB) {\n      return\n    }\n\n    gsap.set([lineA, lineB], { \"--hero-v7-pipeline-line-progress\": \"100%\" })\n  }, [reducedMotion])\n\n  useLayoutEffect(() => {\n    if (reducedMotion) {\n      return\n    }\n\n    const lineA = lineARef.current\n    const lineB = lineBRef.current\n\n    if (!lineA || !lineB) {\n      return\n    }\n\n    let cancelled = false\n\n    const stopAll = () => {\n      timelineRef.current?.kill()\n      timelineRef.current = null\n      delayedCallRef.current?.kill()\n      delayedCallRef.current = null\n      gsap.killTweensOf([lineA, lineB])\n    }\n\n    const resetLines = () => {\n      gsap.set([lineA, lineB], { \"--hero-v7-pipeline-line-progress\": \"0%\" })\n    }\n\n    const playExample = (index: number) => {\n      if (cancelled) {\n        return\n      }\n\n      stopAll()\n\n      exampleIndexRef.current = index\n      const current = DELIVERY_EXAMPLES[index]\n\n      setExampleIndex(index)\n      setStage(\"ingest\")\n      setActivePlatforms([])\n      resetLines()\n\n      const tl = gsap.timeline({\n        onComplete: () => {\n          if (cancelled) {\n            return\n          }\n          const next = (index + 1) % DELIVERY_EXAMPLES.length\n          delayedCallRef.current = gsap.delayedCall(\n            TIMING.betweenExamples,\n            () => playExample(next)\n          )\n        },\n      })\n      timelineRef.current = tl\n\n      tl.call(() => setStage(\"ingest\"))\n        .to({}, { duration: TIMING.stageHold })\n        .to(lineA, {\n          \"--hero-v7-pipeline-line-progress\": \"100%\",\n          duration: TIMING.lineFill,\n          ease: \"power2.out\",\n        })\n        .call(() => setStage(\"transform\"))\n        .to({}, { duration: TIMING.stageHold })\n        .to(lineB, {\n          \"--hero-v7-pipeline-line-progress\": \"100%\",\n          duration: TIMING.lineFill,\n          ease: \"power2.out\",\n        })\n        .call(() => {\n          setStage(\"deliver\")\n          setActivePlatforms([])\n        })\n        .to({}, { duration: TIMING.deliverPause })\n        .call(() => setActivePlatforms(current.platforms))\n        .to({}, { duration: TIMING.stageHold })\n        .call(() => setStage(\"idle\"))\n    }\n\n    delayedCallRef.current = gsap.delayedCall(TIMING.startDelay, () =>\n      playExample(exampleIndexRef.current)\n    )\n\n    const onResize = () => {\n      stopAll()\n      delayedCallRef.current = gsap.delayedCall(TIMING.resizeDebounce, () =>\n        playExample(exampleIndexRef.current)\n      )\n    }\n\n    window.addEventListener(\"resize\", onResize)\n\n    return () => {\n      cancelled = true\n      stopAll()\n      window.removeEventListener(\"resize\", onResize)\n    }\n  }, [reducedMotion])\n\n  if (reducedMotion) {\n    return {\n      run: DELIVERY_EXAMPLES[0],\n      stage: \"idle\" as const,\n      activePlatforms: DELIVERY_EXAMPLES[0].platforms,\n      lineARef,\n      lineBRef,\n    }\n  }\n\n  return {\n    run,\n    stage,\n    activePlatforms,\n    lineARef,\n    lineBRef,\n  }\n}\n",
      "type": "registry:hook",
      "target": "app/hero-section-v7/hooks/use-pipeline-demo-animation.ts"
    },
    {
      "path": "registry/new-york/blocks/hero-section-v7/lib/config.ts",
      "content": "export type HeroV7Cta = {\n  label: string\n  href: string\n}\n\nexport type HeroV7Content = {\n  title: string\n  description: string\n  primaryCta: HeroV7Cta\n  secondaryCta: HeroV7Cta\n}\n\nexport const heroV7Content: HeroV7Content = {\n  title: \"Find your next delivery app partner for your business\",\n  description:\n    \"Take the order, prep the food, send it out on DoorDash or Uber Eats.\",\n  primaryCta: { label: \"Get started\", href: \"#\" },\n  secondaryCta: { label: \"View docs\", href: \"#\" },\n}\n\nexport type HeroV7Props = Partial<HeroV7Content>\n\nexport function resolveHeroV7Content(overrides?: HeroV7Props): HeroV7Content {\n  return {\n    title: overrides?.title ?? heroV7Content.title,\n    description: overrides?.description ?? heroV7Content.description,\n    primaryCta: overrides?.primaryCta ?? heroV7Content.primaryCta,\n    secondaryCta: overrides?.secondaryCta ?? heroV7Content.secondaryCta,\n  }\n}\n",
      "type": "registry:lib",
      "target": "app/hero-section-v7/lib/config.ts"
    },
    {
      "path": "registry/new-york/blocks/hero-section-v7/lib/pipeline-config.ts",
      "content": "export type DeliveryExample = {\n  id: string\n  order: string\n  prep: string\n  platforms: string[]\n  etaMin: number\n}\n\nexport type PipelineStage = \"ingest\" | \"transform\" | \"deliver\" | \"idle\"\n\nexport const DELIVERY_EXAMPLES: DeliveryExample[] = [\n  {\n    id: \"ord_4821\",\n    order: \"Pepperoni pizza\",\n    prep: \"Take out box\",\n    platforms: [\"DoorDash\"],\n    etaMin: 12,\n  },\n  {\n    id: \"ord_7394\",\n    order: \"Chicken wings\",\n    prep: \"Take out box\",\n    platforms: [\"Uber Eats\"],\n    etaMin: 15,\n  },\n]\n\nexport const DELIVERY_STAGES = [\n  {\n    id: \"ingest\",\n    label: \"Order\",\n    detail: \"Customer checks out\",\n  },\n  {\n    id: \"transform\",\n    label: \"Prep\",\n    detail: \"Kitchen packs it\",\n  },\n  {\n    id: \"deliver\",\n    label: \"Deliver\",\n    detail: \"Driver en route\",\n  },\n] as const\n\nexport const DELIVERY_PLATFORMS = [\n  { id: \"ubereats\", label: \"Uber Eats\" },\n  { id: \"doordash\", label: \"DoorDash\" },\n] as const\n\nexport type DeliveryPlatformId = (typeof DELIVERY_PLATFORMS)[number][\"id\"]\n\nexport type DeliveryPlatformState =\n  | \"inactive\"\n  | \"pending\"\n  | \"queued\"\n  | \"delivering\"\n  | \"delivered\"\n  | \"complete\"\n\nexport function getDeliveryPlatformState(\n  platformLabel: string,\n  orderPlatforms: string[],\n  stage: PipelineStage,\n  activePlatforms: string[]\n): DeliveryPlatformState {\n  if (!orderPlatforms.includes(platformLabel)) {\n    return \"inactive\"\n  }\n\n  switch (stage) {\n    case \"idle\":\n      return \"complete\"\n    case \"ingest\":\n      return \"pending\"\n    case \"transform\":\n      return \"queued\"\n    case \"deliver\":\n      return activePlatforms.includes(platformLabel)\n        ? \"delivered\"\n        : \"delivering\"\n    default:\n      return \"pending\"\n  }\n}\n\nexport function getFooterPlatforms(\n  stage: PipelineStage,\n  orderPlatforms: string[]\n) {\n  const route = orderPlatforms.join(\" + \")\n\n  if (stage === \"deliver\" || stage === \"idle\") {\n    return {\n      text: route,\n      highlighted: true,\n    }\n  }\n\n  return {\n    text: route,\n    highlighted: false,\n  }\n}\n\nexport function getFooterStepActive(\n  stage: PipelineStage,\n  orderPlatforms: string[]\n) {\n  const platforms = getFooterPlatforms(stage, orderPlatforms)\n\n  return {\n    order: stage === \"ingest\",\n    prep: stage === \"transform\",\n    platforms: platforms.highlighted,\n  }\n}\n",
      "type": "registry:lib",
      "target": "app/hero-section-v7/lib/pipeline-config.ts"
    },
    {
      "path": "components/ui/svgs/doordash.tsx",
      "content": "import type { SVGProps } from \"react\";\n\nconst Doordash = (props: SVGProps<SVGSVGElement>) => (\n  <svg {...props} viewBox=\"0 0 24 24\" role=\"img\" aria-hidden>\n    <path\n      fill=\"currentColor\"\n      d=\"M23.071 8.409a6.09 6.09 0 00-5.396-3.228H.584A.589.589 0 00.17 6.184L3.894 9.93a1.752 1.752 0 001.242.516h12.049a1.554 1.554 0 11.031 3.108H8.91a.589.589 0 00-.415 1.003l3.725 3.747a1.75 1.75 0 001.242.516h3.757c4.887 0 8.584-5.225 5.852-10.413\"\n    />\n  </svg>\n);\n\nexport { Doordash };\n",
      "type": "registry:component",
      "target": "@ui/svgs/doordash.tsx"
    },
    {
      "path": "components/ui/svgs/ubereats.tsx",
      "content": "import type { SVGProps } from \"react\";\n\nconst UberEats = (props: SVGProps<SVGSVGElement>) => (\n  <svg {...props} viewBox=\"0 0 24 24\" role=\"img\" aria-hidden>\n    <path\n      fill=\"currentColor\"\n      d=\"M0 2.8645v4.9972c0 1.8834 1.3315 3.1297 3.0835 3.1297a2.9652 2.9652 0 0 0 2.1502-.876v.7425H6.445V2.8645H5.223v4.9339c0 1.2642-.8696 2.1198-1.9954 2.122-1.1386-.0023-1.997-.834-1.997-2.122V2.8645zm7.3625 0v7.9934h1.163v-.7318a2.9915 2.9915 0 0 0 2.1177.876c1.714.048 3.1295-1.3283 3.1295-3.0429s-1.4155-3.091-3.1295-3.0429a2.9674 2.9674 0 0 0-2.107.876V2.8645zm9.8857 2.0561c-1.6752-.0074-3.0369 1.3492-3.0356 3.0245 0 1.7366 1.3732 3.0373 3.1537 3.0373a3.123 3.123 0 0 0 2.5578-1.2438l-.8495-.6177a2.0498 2.0498 0 0 1-1.7083.8585c-.9763.0126-1.8147-.6915-1.971-1.6553h4.818v-.379c0-1.734-1.254-3.0238-2.9638-3.0245zm6.1632.0667a1.5943 1.5943 0 0 0-1.376.7657v-.7186h-1.163v5.8235h1.1741V7.5465c0-.9023.5581-1.4847 1.3268-1.4847h.4949V4.9886c-.1576.0013-.3186-.0009-.4568-.0013zm-6.2034.944a1.844 1.844 0 0 1 1.8337 1.486H15.424a1.844 1.844 0 0 1 1.784-1.486zm-6.6589.0056c1.1223-.0084 2.0365.8992 2.0364 2.0215-.0026 1.1203-.914 2.0258-2.0343 2.021a2.0151 2.0151 0 0 1-1.4159-.5987A2.0152 2.0152 0 0 1 8.55 7.9592a2.0152 2.0152 0 0 1 .5838-1.422 2.0152 2.0152 0 0 1 1.4153-.6003zM0 12.9864v7.9716h5.7222v-1.3666H1.5458v-1.971h4.0647v-1.314H1.5458v-1.9556h4.1764v-1.3644zm14.5608.4097v1.6861h-1.1519v1.338h1.1545v3.143c0 .7927.5712 1.4209 1.6005 1.4209h1.6425L17.8 19.646h-1.1412c-.3482 0-.5714-.1509-.5714-.464v-2.7683H17.8v-1.3316h-1.7062v-1.686zm-5.2974 1.5275c-1.7348-.0103-3.141 1.4035-3.1214 3.1382.0196 1.7346 1.4575 3.1163 3.1915 3.0668a2.9915 2.9915 0 0 0 1.912-.6655v.532h1.5175v-5.9129h-1.509v.5257a3.0047 3.0047 0 0 0-1.9205-.6835c-.0244-.0007-.0492-.0006-.0701-.0008zm11.771.0077c-1.5855 0-2.7002.6437-2.7002 1.8854 0 .8607.6132 1.4213 1.936 1.695l1.4478.3286c.5694.1095.7224.2585.7224.4906 0 .3701-.438.6022-1.1279.6022-.876 0-1.3774-.1907-1.5723-.8477h-1.533c.219 1.2307 1.1563 2.05 3.0484 2.05h.0022c1.752 0 2.7422-.819 2.7422-1.9534 0-.8059-.5847-1.4084-1.8089-1.6668l-1.2943-.2605c-.7511-.1358-.988-.2738-.988-.5454 0-.357.3616-.5757 1.0295-.5757.7227 0 1.2527.1925 1.406.8473h1.5175c-.0854-1.2286-.9899-2.0497-2.8273-2.0497zM9.467 16.1815c1.0092.0096 1.8188.8369 1.8067 1.8461.0014 1.0046-.8198 1.816-1.8243 1.8025-1.0075-.0048-1.8203-.8256-1.8155-1.833.0048-1.0076.8255-1.8204 1.833-1.8156z\"\n    />\n  </svg>\n);\n\nexport { UberEats };\n",
      "type": "registry:component",
      "target": "@ui/svgs/ubereats.tsx"
    },
    {
      "path": "registry/new-york/blocks/hero-section-v7/styles/hero-section-v7.css",
      "content": ".hero-v7-pipeline__line::after {\n  content: \"\";\n  position: absolute;\n  inset: 0;\n  width: var(--hero-v7-pipeline-line-progress, 0%);\n  border-radius: inherit;\n  background: #52525b;\n  transition: width 0.05s linear;\n}\n\n.hero-v7-pipeline__line--transform::after {\n  background: #3b82f6;\n}\n\n.hero-v7-pipeline__line--deliver::after {\n  background: #f97316;\n}\n\n.dark .hero-v7-pipeline__line::after {\n  background: #a1a1aa;\n}\n\n.dark .hero-v7-pipeline__line--transform::after {\n  background: #60a5fa;\n}\n\n.dark .hero-v7-pipeline__line--deliver::after {\n  background: #fb923c;\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .hero-v7-pipeline__line::after {\n    width: 100%;\n  }\n\n  .hero-v7-cta__stagger-text--second {\n    display: none;\n  }\n\n  .hero-v7-cta__char {\n    will-change: auto;\n  }\n}\n",
      "type": "registry:file",
      "target": "app/hero-section-v7/styles/hero-section-v7.css"
    }
  ],
  "type": "registry:block"
}