{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "One customer quote of TestimonialGrid: a card, a plain figure or a social post, with the author's picture, the stars and a company glyph as `item` says.",
  "devDependencies": [],
  "digest": "0.1.0",
  "files": [
    {
      "content": "{#- Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.\n    Source: packages/compose-gen/specs/organisms/quote-card.json\n    One customer quote of TestimonialGrid: a card, a plain figure or a social post, with the author's picture, the stars and a company glyph as `item` says.\n    Props (p): q, labels, item, layout. -#}\n{%- set v_q = (p.q ?? null) -%}\n{%- set v_labels = (p.labels ?? null) -%}\n{%- set v_item = (p.item ?? null) -%}\n{%- set v_layout = (p.layout ?? 'grid') -%}\n{%- set c_12 -%}\n  {%- if og_t(og_eq(og_get(v_item, ['kind']), 'social')) %}\n    {%- set c_4 -%}\n      {%- if og_t(not (og_eq(og_get(v_item, ['avatar']), 'none'))) %}\n        {{ include('blocks/media-frame.html.twig', {'p': {'alt': og_get(v_q, ['author']), 'src': og_get(v_q, ['image']), 'ratio': '1/1', 'className': og_cnv(['size-12 shrink-0 rounded-full'])}}, with_context = false) }}\n      {%- endif %}\n      {%- set c_3 -%}\n        {%- set c_1 -%}\n          {{ og_text(og_get(v_q, ['author'])) }}\n        {%- endset -%}\n        {{ include('compose/Text.html.twig', {'size': 'sm', 'weight': 'semibold', 'children': c_1}, with_context = false) }}\n        {%- set c_2 -%}\n          {{ og_text(og_tpl(og_get(v_labels, ['handleLine']), [og_get(v_q, ['handle']), og_get(v_q, ['time'])])) }}\n        {%- endset -%}\n        {{ include('compose/Text.html.twig', {'size': 'xs', 'class': 'text-muted-foreground', 'children': c_2}, with_context = false) }}\n      {%- endset -%}\n      {{ include('compose/Stack.html.twig', {'gap': '0', 'children': c_3}, with_context = false) }}\n      {{ include('icons/LucideIcon.html.twig', {'name': 'message-circle', 'size': 16, 'class': 'ml-auto text-muted-foreground'}, with_context = false) }}\n    {%- endset -%}\n    {{ include('compose/Group.html.twig', {'gap': '4', 'align': 'center', 'children': c_4}, with_context = false) }}\n    {%- set c_5 -%}\n      {{ og_text(og_get(v_q, ['quote'])) }}\n    {%- endset -%}\n    {{ include('compose/Text.html.twig', {'size': 'base', 'children': c_5}, with_context = false) }}\n  {%- else %}\n    {%- if og_t(not (og_eq(og_get(v_item, ['rating']), 'hide'))) %}\n      {{ include('blocks/rating.html.twig', {'p': {'value': og_get(v_q, ['rating']), 'label': og_tpl(og_get(v_labels, ['rating']), [og_get(v_q, ['rating'])])}}, with_context = false) }}\n    {%- endif %}\n    {%- if og_t(og_eq(og_get(v_item, ['mark']), 'icon')) %}\n      {%- set c_6 -%}\n        {{ include('icons/LucideIcon.html.twig', {'name': og_s(og_get(v_q, ['mark'])), 'size': 24}, with_context = false) }}\n      {%- endset -%}\n      {{ include('compose/Inline.html.twig', {'class': 'text-muted-foreground', 'attrs': og_attrs(['data-slot', 'mark']), 'children': c_6}, with_context = false) }}\n    {%- endif %}\n    {%- set c_7 -%}\n      {{ og_text(og_get(v_q, ['quote'])) }}\n    {%- endset -%}\n    {{ include('compose/Text.html.twig', {'size': og_s((og_t(og_eq(v_layout, 'single')) ? 'xl' : 'base')), 'children': c_7}, with_context = false) }}\n    {%- set c_11 -%}\n      {%- if og_t(not (og_eq(og_get(v_item, ['avatar']), 'none'))) %}\n        {{ include('blocks/media-frame.html.twig', {'p': {'alt': og_get(v_q, ['author']), 'src': og_get(v_q, ['image']), 'ratio': '1/1', 'className': og_cnv(['size-12 shrink-0 rounded-full'])}}, with_context = false) }}\n      {%- endif %}\n      {%- set c_10 -%}\n        {%- set c_8 -%}\n          {{ og_text(og_get(v_q, ['author'])) }}\n        {%- endset -%}\n        {{ include('compose/Text.html.twig', {'size': 'sm', 'weight': 'semibold', 'children': c_8}, with_context = false) }}\n        {%- set c_9 -%}\n          {{ og_text(og_tpl(og_get(v_labels, ['byLine']), [og_get(v_q, ['role']), og_get(v_q, ['company'])])) }}\n        {%- endset -%}\n        {{ include('compose/Text.html.twig', {'size': 'sm', 'class': 'text-muted-foreground', 'children': c_9}, with_context = false) }}\n      {%- endset -%}\n      {{ include('compose/Stack.html.twig', {'gap': '0', 'children': c_10}, with_context = false) }}\n    {%- endset -%}\n    {{ include('compose/Group.html.twig', {'gap': '4', 'align': 'center', 'children': c_11}, with_context = false) }}\n  {%- endif %}\n{%- endset -%}\n{{ include('blocks/figure-block.html.twig', {'p': {'className': og_cnv([og_cnv(['m-0 flex flex-col gap-4', (og_t(og_eq(og_get(v_item, ['kind']), 'plain')) ? '' : 'rounded p-6 inset-ring inset-ring-border bg-card'), (og_t(og_eq(v_layout, 'masonry')) ? 'mb-4 break-inside-avoid' : (og_t(og_eq(v_layout, 'strip')) ? 'w-80 shrink-0 snap-start' : 'h-full'))])]), 'testid': 'item'}, 'children': og_markup(c_12)}, with_context = false) }}\n",
      "path": "blocks/quote-card.html.twig",
      "target": "blocks/quote-card.html.twig"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "twig",
      "component"
    ]
  },
  "name": "quote-card",
  "registryDependencies": [
    "figure-block",
    "group",
    "inline",
    "lucide-icon",
    "media-frame",
    "rating",
    "stack",
    "text",
    "utils"
  ],
  "runtime": "twig",
  "title": "Quote Card",
  "type": "registry:component"
}
