{
  "$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 = og_def(p['q'], none) -%}\n{%- set v_labels = og_def(p['labels'], none) -%}\n{%- set v_item = og_def(p['item'], none) -%}\n{%- set v_layout = og_def(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        {{ og_include('blocks/media-frame.html.j2', {'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'])}}) }}\n      {%- endif %}\n      {%- set c_3 -%}\n        {%- set c_1 -%}\n          {{ og_text(og_get(v_q, ['author'])) }}\n        {%- endset -%}\n        {{ og_include('compose/text.html.j2', {'p': {'Size': 'sm', 'Weight': 'semibold'}, 'children': c_1}) }}\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        {{ og_include('compose/text.html.j2', {'p': {'Size': 'xs', 'Class': 'text-muted-foreground'}, 'children': c_2}) }}\n      {%- endset -%}\n      {{ og_include('compose/stack.html.j2', {'p': {'Gap': '0'}, 'children': c_3}) }}\n      {{ og_include('icons/lucide-icon.html.j2', {'p': {'Name': 'message-circle', 'Size': 16, 'Class': 'ml-auto text-muted-foreground'}}) }}\n    {%- endset -%}\n    {{ og_include('compose/group.html.j2', {'p': {'Gap': '4', 'Align': 'center'}, 'children': c_4}) }}\n    {%- set c_5 -%}\n      {{ og_text(og_get(v_q, ['quote'])) }}\n    {%- endset -%}\n    {{ og_include('compose/text.html.j2', {'p': {'Size': 'base'}, 'children': c_5}) }}\n  {%- else %}\n    {%- if og_t(not (og_eq(og_get(v_item, ['rating']), 'hide'))) %}\n      {{ og_include('blocks/rating.html.j2', {'p': {'value': og_get(v_q, ['rating']), 'label': og_tpl(og_get(v_labels, ['rating']), [og_get(v_q, ['rating'])])}}) }}\n    {%- endif %}\n    {%- if og_t(og_eq(og_get(v_item, ['mark']), 'icon')) %}\n      {%- set c_6 -%}\n        {{ og_include('icons/lucide-icon.html.j2', {'p': {'Name': og_s(og_get(v_q, ['mark'])), 'Size': 24}}) }}\n      {%- endset -%}\n      {{ og_include('compose/inline.html.j2', {'p': {'Class': 'text-muted-foreground', 'Attrs': og_attrs(['data-slot', 'mark'])}, 'children': c_6}) }}\n    {%- endif %}\n    {%- set c_7 -%}\n      {{ og_text(og_get(v_q, ['quote'])) }}\n    {%- endset -%}\n    {{ og_include('compose/text.html.j2', {'p': {'Size': og_s(('xl' if og_t(og_eq(v_layout, 'single')) else 'base'))}, 'children': c_7}) }}\n    {%- set c_11 -%}\n      {%- if og_t(not (og_eq(og_get(v_item, ['avatar']), 'none'))) %}\n        {{ og_include('blocks/media-frame.html.j2', {'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'])}}) }}\n      {%- endif %}\n      {%- set c_10 -%}\n        {%- set c_8 -%}\n          {{ og_text(og_get(v_q, ['author'])) }}\n        {%- endset -%}\n        {{ og_include('compose/text.html.j2', {'p': {'Size': 'sm', 'Weight': 'semibold'}, 'children': c_8}) }}\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        {{ og_include('compose/text.html.j2', {'p': {'Size': 'sm', 'Class': 'text-muted-foreground'}, 'children': c_9}) }}\n      {%- endset -%}\n      {{ og_include('compose/stack.html.j2', {'p': {'Gap': '0'}, 'children': c_10}) }}\n    {%- endset -%}\n    {{ og_include('compose/group.html.j2', {'p': {'Gap': '4', 'Align': 'center'}, 'children': c_11}) }}\n  {%- endif %}\n{%- endset -%}\n{{ og_include('blocks/figure-block.html.j2', {'p': {'className': og_cnv([og_cnv(['m-0 flex flex-col gap-4', ('' if og_t(og_eq(og_get(v_item, ['kind']), 'plain')) else 'rounded p-6 inset-ring inset-ring-border bg-card'), ('mb-4 break-inside-avoid' if og_t(og_eq(v_layout, 'masonry')) else ('w-80 shrink-0 snap-start' if og_t(og_eq(v_layout, 'strip')) else 'h-full'))])]), 'testid': 'item'}, 'children': og_markup(c_12)}) }}\n",
      "path": "blocks/quote-card.html.j2",
      "target": "blocks/quote-card.html.j2"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "jinja2",
      "component"
    ]
  },
  "name": "quote-card",
  "registryDependencies": [
    "figure-block",
    "group",
    "inline",
    "lucide-icon",
    "media-frame",
    "rating",
    "stack",
    "text",
    "utils"
  ],
  "runtime": "jinja2",
  "title": "Quote Card",
  "type": "registry:component"
}
