{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "One quote beside a picture, a rating panel or over logo tiles; stacked quotes beside a picture; four compact quotes; figures over a featured quote and a stack.",
  "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-split.json\n    Testimonials in a split or with figures. Axes: layout (media: one quote card and an action beside a picture, logos: one quote over four logo tiles beside a picture, rating: one quote beside a rating panel, stack: three stacked quote cards beside a picture, compact: four short quote cards in a row, bento: figures over a featured quote beside a stack), mediaSide, tone.\n    Props (p): id, title, lead, badge, quotes, labels, extras, actions, layout, mediaSide, tone, empty, image, imageAlt, landmarkLabel. -#}\n{%- set v_id = og_def(p['id'], none) -%}\n{%- set v_title = og_def(p['title'], none) -%}\n{%- set v_lead = og_def(p['lead'], '') -%}\n{%- set v_badge = og_def(p['badge'], '') -%}\n{%- set v_quotes = og_def(p['quotes'], none) -%}\n{%- set v_labels = og_def(p['labels'], none) -%}\n{%- set v_extras = og_def(p['extras'], none) -%}\n{%- set v_actions = og_def(p['actions'], none) -%}\n{%- set v_layout = og_def(p['layout'], 'media') -%}\n{%- set v_mediaSide = og_def(p['mediaSide'], 'end') -%}\n{%- set v_tone = og_def(p['tone'], 'default') -%}\n{%- set v_empty = og_def(p['empty'], '') -%}\n{%- set v_image = og_def(p['image'], none) -%}\n{%- set v_imageAlt = og_def(p['imageAlt'], none) -%}\n{%- set v_landmarkLabel = og_def(p['landmarkLabel'], none) -%}\n{%- if og_t(og_eq(og_len(v_quotes), 0)) %}\n  {%- set c_1 -%}\n    {{ og_include('blocks/empty-state.html.j2', {'p': {'icon': 'quote', 'title': v_empty}}) }}\n  {%- endset -%}\n  {{ og_include('blocks/section-frame.html.j2', {'p': {'id': v_id, 'title': v_title, 'lead': v_lead, 'heading': {'badge': v_badge}, 'tone': v_tone, 'landmarkLabel': v_landmarkLabel}, 'children': og_markup(c_1)}) }}\n{%- elif og_t(og_or([og_eq(v_layout, 'compact'), og_eq(v_layout, 'bento')])) %}\n  {%- set c_3 -%}\n    {%- if og_t(og_eq(v_layout, 'bento')) %}\n      {{ og_include('blocks/quote-figures.html.j2', {'p': {'extras': v_extras}}) }}\n    {%- endif %}\n    {%- set c_2 -%}\n      {%- for v_q in og_l(v_quotes) %}\n        {%- set v_i = loop.index0 -%}\n        {{ og_include('blocks/quote-slot.html.j2', {'p': {'q': v_q, 'labels': v_labels, 'layout': ('single' if og_t(og_and([og_eq(v_layout, 'bento'), og_eq(v_i, 0)])) else 'grid'), 'className': og_cnv([('lg:row-span-3' if og_t(og_and([og_eq(v_layout, 'bento'), og_eq(v_i, 0)])) else '')])}}) }}\n      {%- endfor %}\n    {%- endset -%}\n    {{ og_include('compose/box.html.j2', {'p': {'Class': og_s(('grid grid-cols-1 gap-4 lg:grid-cols-2' if og_t(og_eq(v_layout, 'bento')) else 'grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4'))}, 'children': c_2}) }}\n  {%- endset -%}\n  {{ og_include('blocks/section-frame.html.j2', {'p': {'id': v_id, 'title': v_title, 'lead': v_lead, 'heading': {'badge': v_badge}, 'tone': v_tone, 'landmarkLabel': v_landmarkLabel}, 'children': og_markup(c_3)}) }}\n{%- else %}\n  {%- set f_5 -%}\n    {%- if og_t(og_eq(v_layout, 'rating')) %}\n      {{ og_include('blocks/quote-rating-panel.html.j2', {'p': {'extras': v_extras, 'labels': v_labels}}) }}\n    {%- else %}\n      {{ og_include('blocks/media-frame.html.j2', {'p': {'alt': (v_imageAlt if og_t(v_imageAlt) else v_title), 'src': v_image, 'ratio': '4/3'}}) }}\n    {%- endif %}\n  {%- endset -%}\n  {%- set c_6 -%}\n    {%- if og_t(og_or([og_eq(v_layout, 'media'), og_eq(v_layout, 'logos'), og_eq(v_layout, 'rating')])) %}\n      {%- for v_q in og_l(v_quotes) %}\n        {%- set v_i = loop.index0 -%}\n        {%- if og_t(og_lt(v_i, 1)) %}\n          {{ og_include('blocks/quote-slot.html.j2', {'p': {'q': v_q, 'labels': v_labels, 'kind': ('card' if og_t(og_eq(v_layout, 'media')) else 'plain'), 'layout': 'single', 'className': og_cnv([''])}}) }}\n        {%- endif %}\n      {%- endfor %}\n    {%- endif %}\n    {%- if og_t(og_eq(v_layout, 'logos')) %}\n      {{ og_include('blocks/quote-logo-tiles.html.j2', {'p': {'extras': v_extras}}) }}\n    {%- endif %}\n    {%- if og_t(og_eq(v_layout, 'stack')) %}\n      {%- set c_4 -%}\n        {%- for v_q in og_l(v_quotes) %}\n          {%- set v_i = loop.index0 -%}\n          {%- if og_t(og_lt(v_i, 3)) %}\n            {{ og_include('blocks/quote-slot.html.j2', {'p': {'q': v_q, 'labels': v_labels, 'layout': 'stack', 'className': og_cnv([''])}}) }}\n          {%- endif %}\n        {%- endfor %}\n      {%- endset -%}\n      {{ og_include('compose/stack.html.j2', {'p': {'Gap': '4', 'Align': 'stretch'}, 'children': c_4}) }}\n    {%- endif %}\n    {%- if og_t(og_or([og_eq(v_layout, 'media'), og_eq(v_layout, 'logos'), og_eq(v_layout, 'rating')])) %}\n      {{ og_include('blocks/action-group.html.j2', {'p': {'primary': og_get(v_actions, ['cta']), 'primaryHref': og_get(v_actions, ['href']), 'secondary': (og_get(v_actions, ['secondary']) if og_t(og_eq(og_get(v_actions, ['mode']), 'two')) else none), 'secondaryHref': og_get(v_actions, ['secondaryHref'])}}) }}\n    {%- endif %}\n  {%- endset -%}\n  {{ og_include('blocks/section-frame.html.j2', {'p': {'id': v_id, 'title': v_title, 'lead': v_lead, 'heading': {'badge': v_badge}, 'tone': v_tone, 'layout': 'split', 'media': {'show': true, 'side': v_mediaSide}, 'landmarkLabel': v_landmarkLabel, 'aside': og_markup(f_5)}, 'children': og_markup(c_6)}) }}\n{%- endif %}\n",
      "path": "blocks/quote-split.html.j2",
      "target": "blocks/quote-split.html.j2"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "proof",
    "kind": "block",
    "tags": [
      "jinja2",
      "block"
    ]
  },
  "name": "quote-split",
  "registryDependencies": [
    "action-group",
    "box",
    "empty-state",
    "media-frame",
    "quote-figures",
    "quote-logo-tiles",
    "quote-rating-panel",
    "quote-slot",
    "section-frame",
    "stack",
    "utils"
  ],
  "runtime": "jinja2",
  "title": "Quote Split",
  "type": "registry:block"
}
