{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "testimonial-card",
  "type": "registry:item",
  "title": "Testimonial Card",
  "description": "A quote from a customer, with who said it: their name, their role or company (`byline`), and their picture (or initials). Marked up as a <figure> with a <blockquote> and a <figcaption>.",
  "dependencies": [
    "@zubra/runtime@^5.13.1"
  ],
  "categories": [
    "section"
  ],
  "registryDependencies": [
    "https://zubra-js.github.io/zubra-ui/r/theme.json"
  ],
  "files": [
    {
      "path": "components/testimonial-card.js",
      "type": "registry:file",
      "target": "~/src/components/zubra/testimonial-card.js",
      "content": "// Generated by zubra from testimonial-card.zb. Do not edit.\nimport { $define, $r, $t } from \"@zubra/runtime\";\nimport { state as __zubraState, computed as __zubraComputed } from \"@zubra/runtime\";\n\nexport const tag = \"testimonial-card\";\n\nexport default $define(tag, {\n  props: {\n    \"name\": { attribute: \"name\", default: \"\", required: false },\n    \"byline\": { attribute: \"byline\", default: \"\", required: false },\n    \"src\": { attribute: \"src\", default: \"\", required: false },\n  },\n  abi: 3,\n  shadow: false,\n  form: false,\n  slots: [\"default\"],\n  events: [],\n  styled: true,\n  styles: \"@layer theme, base, components, utilities;\\n@layer components {\\n@scope (testimonial-card) to ([data-zb-slotted=\\\"testimonial-card\\\"]) {\\n  :scope { display: block; }\\n  figure { display: grid; gap: 1rem; height: 100%; margin: 0; padding: 1.4rem; border: 1px solid var(--border, #e4e4e7); border-radius: var(--radius, 0.625rem); background: var(--card, #fff); box-sizing: border-box; }\\n  blockquote { margin: 0; font-size: 1.05rem; line-height: 1.55; text-wrap: pretty; }\\n  blockquote::before { content: \\\"“\\\"; display: block; height: 1.5rem; font-size: 3rem; line-height: 1; color: var(--primary, #18181b); opacity: 0.5; }\\n  figcaption { display: flex; align-items: center; gap: 0.75rem; margin-top: auto; }\\n  .quote-photo { display: grid; place-items: center; flex: none; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--muted, #f4f4f5); font-weight: 700; font-size: 0.9rem; overflow: hidden; }\\n  .quote-photo img { width: 100%; height: 100%; object-fit: cover; }\\n  .quote-who { display: grid; }\\n  .quote-name { font-weight: 700; }\\n  .quote-role { font-size: 0.85rem; color: color-mix(in oklab, var(--muted-foreground, #71717a) 75%, var(--foreground, #18181b)); }\\n}\\n}\\n\",\n  template: \"\\n  <figure>\\n    <blockquote><!--[--><!--]--></blockquote>\\n    <figcaption>\\n      <span class=\\\"quote-photo\\\" aria-hidden=\\\"true\\\"><!--[--><!--]--></span>\\n      <span class=\\\"quote-who\\\"><span class=\\\"quote-name\\\"></span><span class=\\\"quote-role\\\"></span></span>\\n    </figcaption>\\n  </figure>\\n\",\n  setup($p, $emit) {\nfunction __zubraAssign(signal, value) { signal.set(value); return value }\nfunction __zubraUpdate(signal, delta, prefix) { const old = signal.get(); signal.set(old + delta); return prefix ? old + delta : old }\n  const failed = __zubraState(false)\n  // Plain string methods, so the server renders them too (a pattern is the browser's alone): a\n  // tab or line break between the names counts as a space.\n  const initials = __zubraComputed(() => ($p.name.replaceAll(\"\\t\", \" \").replaceAll(\"\\n\", \" \").replaceAll(\"\\r\", \" \").trim().split(\" \").filter((part) => part !== \"\").map((part) => part[0]).slice(0, 2).join(\"\").toUpperCase()))\n    return [\n      { path: [0, 0, 0], slot: \"default\", fallback: null },\n      { path: [0, 1, 0, 0], when: () => ($p.src && !($r(failed))), blocks: [{ template: \"<img alt=\\\"\\\">\", parts: () => [{ path: [0], attribute: \"src\", url: true, value: () => $p.src }, { path: [0], on: \"error\", handler: () => (() => (__zubraAssign(failed, true))) }] }, { template: \"<span></span>\", parts: () => [{ path: [0], text: () => $t($r(initials)) }] }] },\n      { path: [0, 1, 1, 0], text: () => $t($p.name) },\n      { path: [0, 1, 1, 1], text: () => $t($p.byline) },\n    ];\n  },\n});\n"
    }
  ]
}
