{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "google-maps-embed",
  "title": "Google Maps Embed",
  "description": "A Google Maps embed for one or more locations, with no API key needed: a hairline location list that crossfades the map, map/satellite and zoom controls, a darkened map for dark themes, directions and copy-address actions, live local time and an optional click-to-load consent screen.",
  "dependencies": [
    "lucide-react",
    "clsx",
    "tailwind-merge"
  ],
  "files": [
    {
      "path": "registry/new-york/google-maps-embed/google-maps-embed.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\nimport { Check, Copy, MapPin, Minus, Navigation, Phone, Plus } from \"lucide-react\";\nimport { clsx, type ClassValue } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nfunction cn(...inputs: ClassValue[]) {\n  return twMerge(clsx(inputs));\n}\n\nexport interface MapLocation {\n  id: string;\n  name: string;\n  address: string;\n  /** What Google searches for. Defaults to \"lat,lng\" when both are set, otherwise the address. */\n  query?: string;\n  lat?: number;\n  lng?: number;\n  /** Small tag next to the name, e.g. \"HQ\". */\n  label?: string;\n  hours?: string;\n  phone?: string;\n  /** IANA time zone, e.g. \"Europe/Istanbul\". Shows the location's live local time. */\n  timeZone?: string;\n  /** Overrides the component's zoom for this location. */\n  zoom?: number;\n}\n\nexport type GoogleMapsEmbedTheme = \"dark\" | \"light\";\nexport type GoogleMapsEmbedMapType = \"roadmap\" | \"satellite\";\nexport type GoogleMapsEmbedTone = \"auto\" | \"default\" | \"dark\" | \"muted\";\n\nexport interface GoogleMapsEmbedProps extends Omit<React.ComponentPropsWithoutRef<\"section\">, \"children\" | \"title\"> {\n  locations?: MapLocation[];\n  defaultLocationId?: string;\n  eyebrow?: string;\n  title?: string;\n  description?: string;\n  /** Google Maps Embed API key. Without one the keyless embed URL is used, which needs no setup. */\n  apiKey?: string;\n  zoom?: number;\n  mapType?: GoogleMapsEmbedMapType;\n  /** \"auto\" darkens the map in the dark theme. \"muted\" is greyscale. Satellite is never filtered. */\n  mapTone?: GoogleMapsEmbedTone;\n  /** Language for map labels, e.g. \"en\", \"tr\", \"de\". */\n  language?: string;\n  /** Show a placeholder until the visitor agrees to load Google Maps (GDPR-friendly). */\n  requireConsent?: boolean;\n  /** Map height in px on wide layouts. */\n  height?: number;\n  showControls?: boolean;\n  showActions?: boolean;\n  theme?: GoogleMapsEmbedTheme;\n  radius?: number;\n  onLocationChange?: (location: MapLocation) => void;\n}\n\nconst LOCATIONS: MapLocation[] = [\n  { id: \"istanbul\", name: \"Istanbul Studio\", label: \"HQ\", address: \"Serdar-ı Ekrem Sokağı, Galata, Beyoğlu, İstanbul\", hours: \"Mon–Fri · 09:00–18:00\", phone: \"+90 212 555 0142\", timeZone: \"Europe/Istanbul\", zoom: 16 },\n  { id: \"berlin\", name: \"Berlin Office\", address: \"Torstraße, Mitte, Berlin\", hours: \"Mon–Fri · 10:00–19:00\", phone: \"+49 30 5550 1873\", timeZone: \"Europe/Berlin\", zoom: 15 },\n  { id: \"lisbon\", name: \"Lisbon Workshop\", address: \"Rua da Rosa, Bairro Alto, Lisboa\", hours: \"Tue–Sat · 10:00–18:00\", phone: \"+351 21 555 0196\", timeZone: \"Europe/Lisbon\", zoom: 16 },\n];\n\nfunction palette(theme: GoogleMapsEmbedTheme, radius: number): React.CSSProperties & Record<`--${string}`, string> {\n  const light = theme === \"light\";\n  return {\n    \"--gm-bg\": light ? \"#fafaf9\" : \"#0b0b0c\",\n    \"--gm-surface\": light ? \"#f2f2f0\" : \"#141416\",\n    \"--gm-surface-2\": light ? \"#e9e9e6\" : \"#1c1c1f\",\n    \"--gm-line\": light ? \"#e2e2df\" : \"#242427\",\n    \"--gm-ink\": light ? \"#18181b\" : \"#ededee\",\n    \"--gm-muted\": light ? \"#6f6f76\" : \"#8c8c92\",\n    \"--gm-accent\": light ? \"#16a34a\" : \"#4ade80\",\n    \"--gm-radius\": `${radius}px`,\n    color: \"var(--gm-ink)\",\n    fontFamily: \"inherit\",\n  };\n}\n\nconst FILTERS: Record<Exclude<GoogleMapsEmbedTone, \"auto\">, string> = {\n  default: \"none\",\n  dark: \"invert(0.92) hue-rotate(180deg) saturate(0.7) brightness(0.92) contrast(0.95)\",\n  muted: \"grayscale(1) contrast(1.04) brightness(1.02)\",\n};\n\nconst focus = \"outline-none focus-visible:ring-2 focus-visible:ring-[var(--gm-ink)] focus-visible:ring-offset-2 focus-visible:ring-offset-[var(--gm-bg)]\";\nconst pad = (n: number) => n.toString().padStart(2, \"0\");\n\nfunction queryOf(location: MapLocation) {\n  if (location.query) return location.query;\n  if (location.lat != null && location.lng != null) return `${location.lat},${location.lng}`;\n  return location.address;\n}\n\nfunction embedUrl(location: MapLocation, opts: { apiKey?: string; zoom: number; mapType: GoogleMapsEmbedMapType; language: string }) {\n  const q = encodeURIComponent(queryOf(location));\n  if (opts.apiKey) {\n    return `https://www.google.com/maps/embed/v1/place?key=${encodeURIComponent(opts.apiKey)}&q=${q}&zoom=${opts.zoom}&maptype=${opts.mapType}&language=${opts.language}`;\n  }\n  return `https://www.google.com/maps?q=${q}&z=${opts.zoom}&t=${opts.mapType === \"satellite\" ? \"k\" : \"m\"}&hl=${opts.language}&output=embed`;\n}\n\nconst directionsUrl = (location: MapLocation) => `https://www.google.com/maps/dir/?api=1&destination=${encodeURIComponent(queryOf(location))}`;\nconst openUrl = (location: MapLocation) => `https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(queryOf(location))}`;\n\nfunction formatCoords(lat: number, lng: number) {\n  return `${Math.abs(lat).toFixed(4)}° ${lat >= 0 ? \"N\" : \"S\"}  ${Math.abs(lng).toFixed(4)}° ${lng >= 0 ? \"E\" : \"W\"}`;\n}\n\n// A shared 30-second tick for the local-time readouts. The server snapshot is 0, so nothing time-based renders\n// until hydration and the markup always matches.\nconst TICK = 30_000;\nfunction subscribeTick(callback: () => void) {\n  const id = window.setInterval(callback, TICK);\n  return () => window.clearInterval(id);\n}\nconst getTick = () => Math.floor(Date.now() / TICK);\nconst getServerTick = () => 0;\n\nfunction LocalTime({ timeZone }: { timeZone: string }) {\n  const tick = React.useSyncExternalStore(subscribeTick, getTick, getServerTick);\n  let text = \"--:--\";\n  if (tick) {\n    try {\n      text = new Intl.DateTimeFormat(\"en-GB\", { hour: \"2-digit\", minute: \"2-digit\", timeZone }).format(tick * TICK);\n    } catch {\n      text = \"--:--\";\n    }\n  }\n  return <span className=\"tabular-nums\">{text}</span>;\n}\n\n/** Hairline street plan drawn behind the iframe: the loading state, and the consent placeholder. */\nfunction MapPlaceholder() {\n  return (\n    <svg aria-hidden=\"true\" className=\"absolute inset-0 h-full w-full text-[var(--gm-line)]\" preserveAspectRatio=\"xMidYMid slice\" viewBox=\"0 0 800 520\">\n      <defs>\n        <pattern id=\"gm-grid\" width=\"40\" height=\"40\" patternUnits=\"userSpaceOnUse\">\n          <path d=\"M40 0H0V40\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"0.6\" opacity=\"0.55\" />\n        </pattern>\n      </defs>\n      <rect width=\"800\" height=\"520\" fill=\"var(--gm-surface)\" />\n      <rect width=\"800\" height=\"520\" fill=\"url(#gm-grid)\" />\n      <g fill=\"none\" stroke=\"currentColor\" strokeLinecap=\"round\">\n        <path d=\"M-20 380 C 160 330, 260 420, 420 300 S 700 180, 840 210\" strokeWidth=\"14\" opacity=\"0.9\" />\n        <path d=\"M120 -20 C 170 140, 140 260, 230 540\" strokeWidth=\"8\" />\n        <path d=\"M520 -20 C 500 120, 600 260, 560 540\" strokeWidth=\"8\" />\n        <path d=\"M-20 120 L 840 60\" strokeWidth=\"5\" />\n        <path d=\"M-20 470 L 840 430\" strokeWidth=\"5\" />\n        <path d=\"M330 -20 L 380 540\" strokeWidth=\"3\" />\n        <path d=\"M680 -20 L 650 540\" strokeWidth=\"3\" />\n      </g>\n    </svg>\n  );\n}\n\nfunction IconButton({ label, onClick, disabled, children }: { label: string; onClick: () => void; disabled?: boolean; children: React.ReactNode }) {\n  return (\n    <button type=\"button\" aria-label={label} title={label} onClick={onClick} disabled={disabled} className={cn(\"inline-flex size-8 cursor-pointer items-center justify-center text-[var(--gm-muted)] transition-colors hover:bg-[var(--gm-surface-2)] hover:text-[var(--gm-ink)] disabled:cursor-not-allowed disabled:opacity-35 disabled:hover:bg-transparent\", focus)}>\n      {children}\n    </button>\n  );\n}\n\ninterface Layer {\n  src: string;\n  loaded: boolean;\n  /** Kept per layer, so the outgoing map keeps its tone while the next one loads. */\n  filter: string;\n}\n\nexport function GoogleMapsEmbed({\n  locations = LOCATIONS,\n  defaultLocationId,\n  eyebrow = \"Visit us\",\n  title = \"Find our studios\",\n  description = \"Three rooms, one practice. Drop by for a coffee or book a walkthrough of the workshop.\",\n  apiKey,\n  zoom = 15,\n  mapType: initialMapType = \"roadmap\",\n  mapTone = \"auto\",\n  language = \"en\",\n  requireConsent = false,\n  height = 480,\n  showControls = true,\n  showActions = true,\n  theme = \"dark\",\n  radius = 12,\n  onLocationChange,\n  className,\n  style,\n  ...props\n}: GoogleMapsEmbedProps) {\n  const id = React.useId();\n  const mapId = `${id}-map`;\n  const [activeId, setActiveId] = React.useState(defaultLocationId ?? locations[0]?.id);\n  const active = locations.find((location) => location.id === activeId) ?? locations[0];\n  const [mapType, setMapType] = React.useState(initialMapType);\n  const [zoomOffset, setZoomOffset] = React.useState<Record<string, number>>({});\n  const [consented, setConsented] = React.useState(!requireConsent);\n  const [copied, setCopied] = React.useState<string | null>(null);\n  const copyTimer = React.useRef(0);\n  const pruneTimer = React.useRef(0);\n  const revealTimer = React.useRef(0);\n  const tabs = React.useRef<(HTMLButtonElement | null)[]>([]);\n\n  React.useEffect(() => () => {\n    window.clearTimeout(copyTimer.current);\n    window.clearTimeout(pruneTimer.current);\n    window.clearTimeout(revealTimer.current);\n  }, []);\n\n  const baseZoom = active?.zoom ?? zoom;\n  const currentZoom = Math.min(21, Math.max(3, baseZoom + (active ? zoomOffset[active.id] ?? 0 : 0)));\n  const src = active ? embedUrl(active, { apiKey, zoom: currentZoom, mapType, language }) : \"\";\n  const showMap = consented && Boolean(src);\n  const tone = mapType === \"satellite\" ? \"default\" : mapTone === \"auto\" ? (theme === \"dark\" ? \"dark\" : \"default\") : mapTone;\n  const filter = FILTERS[tone];\n\n  // Stacked iframes: the previous map stays up until the new one has loaded, then the new one fades in over it.\n  const [layers, setLayers] = React.useState<Layer[]>(() => (showMap ? [{ src, loaded: false, filter }] : []));\n  const top = layers[layers.length - 1];\n  if (showMap && top?.src !== src) {\n    setLayers((prev) => [...prev.filter((layer) => layer.loaded && layer.src !== src).slice(-1), { src, loaded: false, filter }]);\n  } else if (top && top.src === src && top.filter !== filter) {\n    // Tone or theme changed without a new URL: restyle the current map in place.\n    setLayers((prev) => prev.map((layer, i) => (i === prev.length - 1 ? { ...layer, filter } : layer)));\n  }\n  const loading = showMap && !(top?.src === src && top.loaded);\n\n  // The iframe's load event fires before Google has painted its tiles, so wait a beat before fading it in.\n  const handleLoad = (loadedSrc: string) => {\n    window.clearTimeout(revealTimer.current);\n    window.clearTimeout(pruneTimer.current);\n    revealTimer.current = window.setTimeout(() => {\n      setLayers((prev) => prev.map((layer) => (layer.src === loadedSrc ? { ...layer, loaded: true } : layer)));\n      pruneTimer.current = window.setTimeout(() => {\n        setLayers((prev) => {\n          const last = prev[prev.length - 1];\n          return last?.loaded && prev.length > 1 ? [last] : prev;\n        });\n      }, 600);\n    }, 450);\n  };\n\n  const select = (location: MapLocation) => {\n    if (location.id === active?.id) return;\n    setActiveId(location.id);\n    onLocationChange?.(location);\n  };\n\n  const onTabKey = (event: React.KeyboardEvent, index: number) => {\n    const keys: Record<string, number> = { ArrowDown: index + 1, ArrowRight: index + 1, ArrowUp: index - 1, ArrowLeft: index - 1, Home: 0, End: locations.length - 1 };\n    if (!(event.key in keys)) return;\n    event.preventDefault();\n    const next = (keys[event.key] + locations.length) % locations.length;\n    tabs.current[next]?.focus();\n    select(locations[next]);\n  };\n\n  const copyAddress = async (location: MapLocation) => {\n    try {\n      await navigator.clipboard.writeText(location.address);\n      setCopied(location.id);\n      window.clearTimeout(copyTimer.current);\n      copyTimer.current = window.setTimeout(() => setCopied(null), 1600);\n    } catch {\n      // Clipboard can be blocked (insecure context, permissions); the address stays visible to copy by hand.\n    }\n  };\n\n  const multiple = locations.length > 1;\n\n  return (\n    <section\n      aria-label={title}\n      className={cn(\"@container min-w-0 overflow-hidden rounded-[var(--gm-radius)] border border-[var(--gm-line)] bg-[var(--gm-line)]\", className)}\n      style={{ ...palette(theme, radius), ...style }}\n      {...props}\n    >\n      <style>{`@keyframes gm-sweep{from{transform:translateX(-100%)}to{transform:translateX(250%)}}`}</style>\n      <div className=\"grid gap-px @min-[760px]:grid-cols-[minmax(280px,340px)_minmax(0,1fr)] @min-[760px]:grid-rows-[auto_1fr_auto]\">\n        {/* Header */}\n        <div className=\"bg-[var(--gm-bg)] p-6 @min-[760px]:p-7\">\n          <p className=\"flex items-center gap-2 text-[10px] font-medium tracking-[0.16em] text-[var(--gm-muted)] uppercase\">\n            <MapPin size={12} strokeWidth={1.75} aria-hidden=\"true\" />\n            {eyebrow}\n          </p>\n          <h2 className=\"mt-4 text-[26px] leading-[1.1] font-medium tracking-[-0.02em] @min-[760px]:text-[28px]\">{title}</h2>\n          {description && <p className=\"mt-3 max-w-[34ch] text-[13px] leading-relaxed text-[var(--gm-muted)]\">{description}</p>}\n        </div>\n\n        {/* Map */}\n        <div className=\"relative flex min-w-0 flex-col bg-[var(--gm-bg)] @min-[760px]:col-start-2 @min-[760px]:row-span-3 @min-[760px]:row-start-1\">\n          <div\n            id={mapId}\n            role={multiple ? \"tabpanel\" : undefined}\n            aria-label={active ? `Map of ${active.name}` : \"Map\"}\n            className=\"relative h-[320px] overflow-hidden bg-[var(--gm-surface)] @min-[760px]:h-auto @min-[760px]:min-h-[var(--gm-map-h)] @min-[760px]:flex-1\"\n            style={{ [\"--gm-map-h\" as string]: `${height}px` }}\n          >\n            <MapPlaceholder />\n            {layers.map((layer, i) => (\n              <iframe\n                key={layer.src}\n                src={layer.src}\n                title={active ? `Google Map of ${active.name}` : \"Google Map\"}\n                loading=\"lazy\"\n                referrerPolicy=\"no-referrer-when-downgrade\"\n                allowFullScreen\n                onLoad={() => handleLoad(layer.src)}\n                className=\"absolute inset-0 h-full w-full border-0 transition-opacity duration-500 ease-out motion-reduce:transition-none\"\n                style={{ filter: layer.filter, opacity: layer.loaded ? 1 : 0, zIndex: i + 1 }}\n              />\n            ))}\n            {!consented && (\n              <div className=\"absolute inset-0 z-10 flex items-center justify-center p-6\">\n                <div className=\"w-full max-w-[300px] border border-[var(--gm-line)] bg-[var(--gm-bg)] p-5\">\n                  <p className=\"text-[14px] font-medium\">Show the map?</p>\n                  <p className=\"mt-1.5 text-[12px] leading-relaxed text-[var(--gm-muted)]\">This loads Google Maps, which may set cookies and see your IP address.</p>\n                  <div className=\"mt-4 flex flex-wrap gap-2\">\n                    <button type=\"button\" onClick={() => setConsented(true)} className={cn(\"inline-flex h-8 cursor-pointer items-center rounded-md bg-[var(--gm-ink)] px-3 text-[12.5px] font-medium text-[var(--gm-bg)]\", focus)}>\n                      Load map\n                    </button>\n                    {active && (\n                      <a href={openUrl(active)} target=\"_blank\" rel=\"noreferrer\" className={cn(\"inline-flex h-8 items-center gap-1.5 rounded-md bg-[var(--gm-surface-2)] px-3 text-[12.5px]\", focus)}>\n                        Open in Google Maps\n                      </a>\n                    )}\n                  </div>\n                </div>\n              </div>\n            )}\n            {consented && loading && (\n              <div aria-hidden=\"true\" className=\"pointer-events-none absolute inset-x-0 top-0 z-20 h-px overflow-hidden bg-[var(--gm-line)]\">\n                <div className=\"h-full w-2/5 bg-[var(--gm-ink)] motion-reduce:hidden\" style={{ animation: \"gm-sweep 1.1s cubic-bezier(.4,0,.2,1) infinite\" }} />\n              </div>\n            )}\n          </div>\n\n          {/* Readout + controls */}\n          <div className=\"flex min-h-11 flex-wrap items-center justify-between gap-x-4 gap-y-1 border-t border-[var(--gm-line)] py-1.5 pr-1.5 pl-4 font-mono text-[10.5px] text-[var(--gm-muted)]\">\n            <span className=\"min-w-0 truncate\" aria-live=\"polite\">\n              {loading ? \"Loading map…\" : active ? (active.lat != null && active.lng != null ? formatCoords(active.lat, active.lng) : active.address) : \"\"}\n            </span>\n            {showControls && consented && (\n              <div className=\"flex items-center gap-2\">\n                <div role=\"group\" aria-label=\"Map type\" className=\"flex h-8 items-center border border-[var(--gm-line)] p-0.5\">\n                  {([\"roadmap\", \"satellite\"] as const).map((type) => (\n                    <button\n                      key={type}\n                      type=\"button\"\n                      aria-pressed={mapType === type}\n                      onClick={() => setMapType(type)}\n                      className={cn(\"h-full cursor-pointer px-2.5 font-sans text-[11.5px] transition-colors\", mapType === type ? \"bg-[var(--gm-surface-2)] text-[var(--gm-ink)]\" : \"text-[var(--gm-muted)] hover:text-[var(--gm-ink)]\", focus)}\n                    >\n                      {type === \"roadmap\" ? \"Map\" : \"Satellite\"}\n                    </button>\n                  ))}\n                </div>\n                <div className=\"flex h-8 items-center border border-[var(--gm-line)]\">\n                  <IconButton label=\"Zoom out\" disabled={currentZoom <= 3} onClick={() => active && setZoomOffset((prev) => ({ ...prev, [active.id]: (prev[active.id] ?? 0) - 1 }))}>\n                    <Minus size={14} />\n                  </IconButton>\n                  <span className=\"w-7 text-center tabular-nums\" aria-label={`Zoom level ${currentZoom}`}>{currentZoom}</span>\n                  <IconButton label=\"Zoom in\" disabled={currentZoom >= 21} onClick={() => active && setZoomOffset((prev) => ({ ...prev, [active.id]: (prev[active.id] ?? 0) + 1 }))}>\n                    <Plus size={14} />\n                  </IconButton>\n                </div>\n              </div>\n            )}\n          </div>\n        </div>\n\n        {/* Locations */}\n        <div\n          role={multiple ? \"tablist\" : undefined}\n          aria-label={multiple ? \"Locations\" : undefined}\n          aria-orientation={multiple ? \"vertical\" : undefined}\n          className=\"grid content-start gap-px bg-[var(--gm-line)] @min-[760px]:col-start-1\"\n        >\n          {locations.map((location, i) => {\n            const selected = location.id === active?.id;\n            const body = (\n              <>\n                {selected && multiple && <span aria-hidden=\"true\" className=\"absolute inset-y-0 left-0 w-0.5 bg-[var(--gm-ink)]\" />}\n                <span className={cn(\"pt-0.5 font-mono text-[10px] tabular-nums\", selected ? \"text-[var(--gm-ink)]\" : \"text-[var(--gm-muted)]\")}>{pad(i + 1)}</span>\n                <span className=\"min-w-0 flex-1\">\n                  <span className=\"flex items-center gap-2\">\n                    <span className=\"truncate text-[14px] font-medium\">{location.name}</span>\n                    {location.label && <span className=\"shrink-0 border border-[var(--gm-line)] px-1.5 py-px font-mono text-[9px] tracking-wider text-[var(--gm-muted)] uppercase\">{location.label}</span>}\n                  </span>\n                  <span className=\"mt-1 block text-[12.5px] leading-snug text-[var(--gm-muted)]\">{location.address}</span>\n                  {location.hours && <span className=\"mt-2 block font-mono text-[10.5px] text-[var(--gm-muted)]\">{location.hours}</span>}\n                </span>\n              </>\n            );\n            const cell = cn(\"relative flex w-full gap-4 p-5 text-left transition-colors @min-[760px]:px-7\", selected ? \"bg-[var(--gm-surface)]\" : \"bg-[var(--gm-bg)]\");\n            return multiple ? (\n              <button\n                key={location.id}\n                ref={(el) => {\n                  tabs.current[i] = el;\n                }}\n                type=\"button\"\n                role=\"tab\"\n                aria-selected={selected}\n                aria-controls={mapId}\n                tabIndex={selected ? 0 : -1}\n                onClick={() => select(location)}\n                onKeyDown={(event) => onTabKey(event, i)}\n                className={cn(cell, \"cursor-pointer\", !selected && \"hover:bg-[var(--gm-surface)]\", focus, \"focus-visible:ring-inset focus-visible:ring-offset-0\")}\n              >\n                {body}\n              </button>\n            ) : (\n              <div key={location.id} className={cell}>\n                {body}\n              </div>\n            );\n          })}\n          {locations.length === 0 && <p className=\"bg-[var(--gm-bg)] p-6 text-[13px] text-[var(--gm-muted)]\">No locations yet.</p>}\n        </div>\n\n        {/* Actions for the selected location */}\n        {showActions && active && (\n          <div className=\"bg-[var(--gm-bg)] p-5 @min-[760px]:col-start-1 @min-[760px]:px-7 @min-[760px]:py-6\">\n            <div className=\"grid grid-cols-[minmax(0,1fr)_minmax(0,1fr)_auto] gap-2\">\n              <a href={directionsUrl(active)} target=\"_blank\" rel=\"noreferrer\" className={cn(\"inline-flex h-9 items-center justify-center gap-2 rounded-md bg-[var(--gm-ink)] px-2.5 text-[13px] font-medium whitespace-nowrap text-[var(--gm-bg)] transition-opacity hover:opacity-90\", focus)}>\n                <Navigation size={14} strokeWidth={2} aria-hidden=\"true\" className=\"shrink-0\" />\n                Directions\n              </a>\n              <a href={openUrl(active)} target=\"_blank\" rel=\"noreferrer\" className={cn(\"inline-flex h-9 items-center justify-center gap-2 rounded-md bg-[var(--gm-surface-2)] px-2.5 text-[13px] whitespace-nowrap transition-colors hover:text-[var(--gm-ink)]\", focus)}>\n                Open in Maps\n              </a>\n              <button type=\"button\" onClick={() => copyAddress(active)} aria-label={copied === active.id ? \"Address copied\" : \"Copy address\"} title=\"Copy address\" className={cn(\"inline-flex size-9 cursor-pointer items-center justify-center rounded-md bg-[var(--gm-surface-2)] text-[var(--gm-muted)] transition-colors hover:text-[var(--gm-ink)]\", focus)}>\n                {copied === active.id ? <Check size={14} className=\"text-[var(--gm-accent)]\" /> : <Copy size={14} strokeWidth={1.75} />}\n              </button>\n            </div>\n            {(active.phone || active.timeZone) && (\n              <div className=\"mt-5 flex flex-wrap items-center justify-between gap-x-4 gap-y-2 border-t border-[var(--gm-line)] pt-4 text-[12px] text-[var(--gm-muted)]\">\n                {active.phone && (\n                  <a href={`tel:${active.phone.replace(/[^\\d+]/g, \"\")}`} className={cn(\"inline-flex items-center gap-2 transition-colors hover:text-[var(--gm-ink)]\", focus)}>\n                    <Phone size={13} strokeWidth={1.75} aria-hidden=\"true\" />\n                    {active.phone}\n                  </a>\n                )}\n                {active.timeZone && (\n                  <span className=\"inline-flex items-center gap-2 font-mono text-[10.5px]\">\n                    <span aria-hidden=\"true\" className=\"size-1.5 rounded-full bg-[var(--gm-accent)]\" />\n                    <LocalTime timeZone={active.timeZone} /> local\n                  </span>\n                )}\n              </div>\n            )}\n          </div>\n        )}\n      </div>\n    </section>\n  );\n}\n",
      "type": "registry:component"
    }
  ],
  "type": "registry:component"
}