{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "card-locations-locations-2-2",
  "type": "registry:block",
  "title": "Locations 2",
  "description": "Workspace card from the overtrue/ui workspace examples. Editable source, scoped styles, and demo interactions.",
  "categories": [
    "cards",
    "workspace"
  ],
  "registryDependencies": [
    "https://ui.overtrue.xyz/r/overtrue-card-foundation.json"
  ],
  "files": [
    {
      "path": "src/blocks/registry/locations-locations-2-2.tsx",
      "type": "registry:component",
      "target": "components/overtrue/blocks/locations-locations-2-2.tsx",
      "content": "\"use client\";\nimport { BlockFrame } from \"./runtime/blocks/frame\";\nimport \"./runtime/cards.css\";\n// Extracted from src/components/overtrue/scenes/locations.tsx:146.\nimport { useState } from \"react\";\nimport { type GeoMapPoint } from \"./runtime/registry/overtrue/geo-map\";\nimport { DetailList } from \"./runtime/registry/overtrue/detail-list\";\nimport { SceneCard, Go, Person } from \"./runtime/components/overtrue/scenes/shared\";\nconst locations = [\n  {\n    id: \"london\",\n    label: \"London\",\n    lat: 51.507,\n    lng: -0.128,\n    value: 3,\n    description: \"Design & research\",\n    zone: \"Europe/London\",\n    lead: \"Maya Okafor\",\n  },\n  {\n    id: \"berlin\",\n    label: \"Berlin\",\n    lat: 52.52,\n    lng: 13.405,\n    value: 2,\n    description: \"Client operations\",\n    zone: \"Europe/Berlin\",\n    lead: \"Alina Petrova\",\n  },\n  {\n    id: \"tokyo\",\n    label: \"Tokyo\",\n    lat: 35.676,\n    lng: 139.65,\n    value: 1,\n    description: \"Engineering\",\n    zone: \"Asia/Tokyo\",\n    lead: \"Leo Nakamura\",\n  },\n  {\n    id: \"lisbon\",\n    label: \"Lisbon\",\n    lat: 38.722,\n    lng: -9.139,\n    value: 2,\n    description: \"Content & brand\",\n    zone: \"Europe/Lisbon\",\n    lead: \"Nora Jensen\",\n  },\n] satisfies (GeoMapPoint & { zone: string; lead: string })[];\nfunction CardExample({ id = \"maps\" }: { id?: string } = {}) {\n  const [selected] = useState<string | null>(\"london\");\n  const office = locations.find((location) => location.id === selected);\n\n  return (\n    <>\n      <div className=\"overtrue-block-content\" data-workspace-page={id}>\n        <SceneCard title={office?.label ?? \"Select a location\"}>\n          {office ? (\n            <>\n              <Person name={office.lead} subtitle=\"Local contact\" />\n              <DetailList\n                items={[\n                  { id: \"zone\", label: \"Time zone\", value: office.zone },\n                  {\n                    id: \"time\",\n                    label: \"Local time\",\n                    value: new Intl.DateTimeFormat(\"en-GB\", {\n                      timeZone: office.zone,\n                      hour: \"2-digit\",\n                      minute: \"2-digit\",\n                    }).format(new Date(\"2026-09-21T10:00:00Z\")),\n                  },\n                  {\n                    id: \"team\",\n                    label: \"Team members\",\n                    value: String(office.value),\n                  },\n                ]}\n              />\n              <p>Times shown for Monday, September 21 at 10:00 UTC.</p>\n              {office.id === \"berlin\" && (\n                <Go to=\"/map-fullsize\">Studio directions</Go>\n              )}\n            </>\n          ) : (\n            <p>\n              Choose a marker or directory entry to see the location details.\n            </p>\n          )}\n        </SceneCard>\n      </div>\n    </>\n  );\n}\n\nexport default function Block() { return <BlockFrame><CardExample /></BlockFrame>; }\n"
    }
  ],
  "docs": "Documentation: https://ui.overtrue.xyz/blocks/locations-locations-2-2. Includes the shared card foundation and hosted demo imagery. Replace sample data and navigation with your application data."
}
