{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Ways to get help: email, chat, docs.",
  "devDependencies": [],
  "digest": "0.1.0",
  "files": [
    {
      "content": "<!-- Code generated by packages/kit-compose/src/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT. -->\n<!--\n  Ways to get help as cards or rows, each with an icon, a title, a sentence and an open link. Axes: layout\n  (grid, list), columns, action (link, none), tone (default, muted).\n-->\n<script lang=\"ts\">\nimport type { Feature } from \"./feature-grid.types\";\n\nexport type SupportChannelsProps = {\n  id: string;\n  title: string;\n  channels: Feature[];\n  empty?: string;\n  open: string;\n  layout?: \"grid\" | \"list\";\n  cols?: \"1-2\" | \"1-3\";\n  action?: \"link\" | \"none\";\n  tone?: \"default\" | \"muted\";\n  landmarkLabel?: string;\n};\n</script>\n\n<script setup lang=\"ts\">\nimport Card from \"../compose/Card.vue\";\nimport CardContent from \"../compose/CardContent.vue\";\nimport Grid from \"../compose/Grid.vue\";\nimport LucideIcon from \"../icons/LucideIcon.vue\";\nimport Stack from \"../compose/Stack.vue\";\nimport Text from \"../compose/Text.vue\";\nimport Title from \"../compose/Title.vue\";\nimport EmptyState from \"../components/empty-state.vue\";\nimport MenuEntry from \"../components/menu-entry.vue\";\nimport SectionFrame from \"../components/section-frame.vue\";\nimport { cn } from \"../utils\";\n\nconst {\n  id,\n  title,\n  channels,\n  empty = \"\",\n  open,\n  layout = \"grid\",\n  cols = \"1-3\",\n  action = \"link\",\n  tone = \"default\",\n  landmarkLabel,\n} = defineProps<SupportChannelsProps>();\n</script>\n\n<template>\n  <SectionFrame :id=\"id\" :title=\"title\" :tone=\"tone\" :landmarkLabel=\"landmarkLabel\">\n    <EmptyState v-if=\"((channels?.length ?? 0) === 0)\" icon=\"life-buoy\" :title=\"empty\" />\n    <Grid v-else :cols=\"(((layout as string) === 'list') ? '1' : cols)\" class=\"gap-4\" data-slot=\"items\">\n      <Card\n        v-for=\"c in channels\"\n        :key=\"c.id\"\n        variant=\"default\"\n        :class=\"cn('h-full', (((layout as string) === 'list') ? 'flex-row items-center' : ''))\"\n      >\n        <CardContent :class=\"cn('flex flex-1 gap-4', (((layout as string) === 'list') ? 'items-center' : 'flex-col'))\">\n          <LucideIcon :name=\"c.icon\" :size=\"24\" />\n          <Stack gap=\"2\" class=\"flex-1\">\n            <Title :as=\"3\" size=\"base\" weight=\"bold\">\n              {{ c.title }}\n            </Title>\n            <Text size=\"sm\" class=\"text-muted-foreground\">\n              {{ c.text }}\n            </Text>\n          </Stack>\n          <MenuEntry v-if=\"((action as string) === 'link')\" :href=\"c.href\" class=\"font-semibold\" testid=\"open\">\n            {{ open }}\n          </MenuEntry>\n        </CardContent>\n      </Card>\n    </Grid>\n  </SectionFrame>\n</template>\n",
      "path": "blocks/support-channels.vue",
      "target": "blocks/support-channels.vue"
    }
  ],
  "meta": {
    "category": "support",
    "group": "contact",
    "kind": "block",
    "tags": [
      "vue",
      "block"
    ]
  },
  "name": "support-channels",
  "registryDependencies": [
    "card",
    "card-content",
    "empty-state",
    "feature-grid",
    "grid",
    "lucide-icon",
    "menu-entry",
    "section-frame",
    "stack",
    "text",
    "title",
    "utils"
  ],
  "runtime": "vue",
  "title": "Support Channels",
  "type": "registry:block"
}
