{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "google-chrome-windows-with-video",
  "title": "Google Chrome (Windows, w/ video)",
  "description": "Windows Google Chrome mock with bundled screen video under the omnibox; swap /videos/blocks/... or pass videoSrc on the base component.",
  "registryDependencies": [
    "https://uiception.com/r/block-media.json",
    "https://uiception.com/r/google-chrome-windows.json"
  ],
  "files": [
    {
      "path": "registry/new-york/blocks/google-chrome-windows-with-video/page.tsx",
      "content": "import GoogleChromeWindowsWithVideo from \"./components/google-chrome-windows-with-video\"\n\nexport default function Page() {\n  return (\n    <div className=\"px-4 py-4 md:px-6 md:py-6\">\n      <GoogleChromeWindowsWithVideo />\n    </div>\n  )\n}\n",
      "type": "registry:page",
      "target": "app/google-chrome-windows-with-video/page.tsx"
    },
    {
      "path": "registry/new-york/blocks/google-chrome-windows-with-video/components/google-chrome-windows-with-video.tsx",
      "content": "import { GoogleChromeWindowsWithVideoRoot } from \"./google-chrome-windows-with-video-root\"\nimport { createBlockVideo } from \"@/lib/block-media\"\n\nconst blockVideo = createBlockVideo(\"google-chrome-windows-with-video\")\nexport default function GoogleChromeWindowsWithVideo() {\n  return (\n    <GoogleChromeWindowsWithVideoRoot screenSrc={blockVideo(\"video.mp4\")} />\n  )\n}\n",
      "type": "registry:component",
      "target": "app/google-chrome-windows-with-video/components/google-chrome-windows-with-video.tsx"
    },
    {
      "path": "registry/new-york/blocks/google-chrome-windows-with-video/components/google-chrome-windows-with-video-root.tsx",
      "content": "\"use client\"\n\nimport { useCallback, useState } from \"react\"\n\nimport GoogleChromeWindows from \"../../google-chrome-windows/components/google-chrome-windows\"\nimport GoogleHomePreview from \"../../google-chrome-windows/components/google-home-preview\"\nimport PageLoadingBar from \"../../google-chrome-windows/components/page-loading-bar\"\nimport { useSimulatedPageLoad } from \"../../google-chrome-windows/hooks/use-simulated-page-load\"\n\n\nconst OMNIBOX_PROMPTS = [\"vercel.com/home\"] as const\n\nexport function GoogleChromeWindowsWithVideoRoot({ screenSrc }: { screenSrc: string }) {\n  const [cycleKey, setCycleKey] = useState(0)\n  const { phase, progress, startLoading, reset } = useSimulatedPageLoad()\n\n  const handleTypedComplete = useCallback(() => {\n    startLoading()\n  }, [startLoading])\n\n  const handleVideoEnded = useCallback(() => {\n    reset()\n    setCycleKey((k) => k + 1)\n  }, [reset])\n\n  return (\n    <GoogleChromeWindows\n      key={cycleKey}\n      omniboxTypingPrompts={OMNIBOX_PROMPTS}\n      omniboxTypingLoop={false}\n      onOmniboxTypedComplete={handleTypedComplete}\n      aspectRatio=\"16/9\"\n      minHeight={0}\n      className=\"max-w-4xl\"\n    >\n      <div className=\"relative size-full\">\n        <PageLoadingBar progress={progress} visible={phase === \"loading\"} />\n        {phase === \"loaded\" ? (\n          <video\n            className=\"absolute inset-0 block size-full border-none object-cover object-center\"\n            src={screenSrc}\n            muted\n            playsInline\n            autoPlay\n            onEnded={handleVideoEnded}\n            aria-label=\"Screen content video demo\"\n          />\n        ) : (\n          <GoogleHomePreview className=\"absolute inset-0\" />\n        )}\n      </div>\n    </GoogleChromeWindows>\n  )\n}\n",
      "type": "registry:component",
      "target": "app/google-chrome-windows-with-video/components/google-chrome-windows-with-video-root.tsx"
    },
    {
      "path": "public/videos/blocks/google-chrome-windows-with-video/video.mp4.gitkeep",
      "content": "Place your asset here. Same base name, any supported format: mp4, webm, mov, or m4v. Remove the .gitkeep extension from the filename.",
      "type": "registry:file",
      "target": "public/videos/blocks/google-chrome-windows-with-video/video.mp4.gitkeep"
    }
  ],
  "type": "registry:block"
}