{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Plans, or a product and its rivals, in columns, and the features in rows; yes and no as marks.",
  "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/comparison-table.json\n    Plans, or a product and its competitors, as three columns and the features as rows. A value of yes shows a check, no a dash (both with a hidden word), anything else is shown as text. Axes: highlight (none, middle column), tone, density.\n    Props (p): id, title, rows, empty, labels, highlight, tone, density, landmarkLabel. -#}\n{%- set v_id = og_def(p['id'], none) -%}\n{%- set v_title = og_def(p['title'], none) -%}\n{%- set v_rows = og_def(p['rows'], none) -%}\n{%- set v_empty = og_def(p['empty'], '') -%}\n{%- set v_labels = og_def(p['labels'], none) -%}\n{%- set v_highlight = og_def(p['highlight'], 'none') -%}\n{%- set v_tone = og_def(p['tone'], 'default') -%}\n{%- set v_density = og_def(p['density'], 'default') -%}\n{%- set v_landmarkLabel = og_def(p['landmarkLabel'], none) -%}\n{%- set c_16 -%}\n  {%- if og_t(og_eq(og_len(v_rows), 0)) %}\n    {{ og_include('blocks/empty-state.html.j2', {'p': {'icon': 'table', 'title': v_empty}}) }}\n  {%- else %}\n    {%- set c_15 -%}\n      {%- set c_14 -%}\n        {%- set c_1 -%}\n          {{ og_text(og_get(v_labels, ['caption'])) }}\n        {%- endset -%}\n        {{ og_include('compose/table-caption.html.j2', {'p': {'Class': 'sr-only'}, 'children': c_1}) }}\n        {%- set c_7 -%}\n          {%- set c_6 -%}\n            {%- set c_2 -%}\n              {{ og_text(og_get(v_labels, ['feature'])) }}\n            {%- endset -%}\n            {{ og_include('compose/table-head-cell.html.j2', {'p': {'Class': 'py-4', 'Attrs': og_attrs(['scope', 'col'])}, 'children': c_2}) }}\n            {%- set c_3 -%}\n              {{ og_text(og_get(v_labels, ['a'])) }}\n            {%- endset -%}\n            {{ og_include('compose/table-head-cell.html.j2', {'p': {'Class': 'py-4', 'Attrs': og_attrs(['scope', 'col'])}, 'children': c_3}) }}\n            {%- set c_4 -%}\n              {{ og_text(og_get(v_labels, ['b'])) }}\n            {%- endset -%}\n            {{ og_include('compose/table-head-cell.html.j2', {'p': {'Class': og_s(og_cnv(['py-4', ('bg-muted' if og_t(og_eq(v_highlight, 'middle')) else '')])), 'Attrs': og_attrs(['scope', 'col', 'data-highlight', ('true' if og_t(og_eq(v_highlight, 'middle')) else 'false')])}, 'children': c_4}) }}\n            {%- set c_5 -%}\n              {{ og_text(og_get(v_labels, ['c'])) }}\n            {%- endset -%}\n            {{ og_include('compose/table-head-cell.html.j2', {'p': {'Class': 'py-4', 'Attrs': og_attrs(['scope', 'col'])}, 'children': c_5}) }}\n          {%- endset -%}\n          {{ og_include('compose/table-row.html.j2', {'p': {}, 'children': c_6}) }}\n        {%- endset -%}\n        {{ og_include('compose/table-head.html.j2', {'p': {}, 'children': c_7}) }}\n        {%- set c_13 -%}\n          {%- for v_row in og_l(v_rows) %}\n            {%- set c_12 -%}\n              {%- set c_8 -%}\n                {{ og_text(og_get(v_row, ['label'])) }}\n              {%- endset -%}\n              {{ og_include('compose/table-head-cell.html.j2', {'p': {'Class': og_s(og_cnv(['font-medium', ('py-2' if og_t(og_eq(v_density, 'compact')) else 'py-4')])), 'Attrs': og_attrs(['scope', 'row'])}, 'children': c_8}) }}\n              {%- set c_9 -%}\n                {{ og_include('blocks/compare-mark.html.j2', {'p': {'value': og_get(v_row, ['a']), 'yes': og_get(v_labels, ['yes']), 'no': og_get(v_labels, ['no'])}}) }}\n              {%- endset -%}\n              {{ og_include('compose/table-cell.html.j2', {'p': {'Class': og_s(og_cnv([('py-2' if og_t(og_eq(v_density, 'compact')) else 'py-4')]))}, 'children': c_9}) }}\n              {%- set c_10 -%}\n                {{ og_include('blocks/compare-mark.html.j2', {'p': {'value': og_get(v_row, ['b']), 'yes': og_get(v_labels, ['yes']), 'no': og_get(v_labels, ['no'])}}) }}\n              {%- endset -%}\n              {{ og_include('compose/table-cell.html.j2', {'p': {'Class': og_s(og_cnv([('py-2' if og_t(og_eq(v_density, 'compact')) else 'py-4'), ('bg-muted font-semibold' if og_t(og_eq(v_highlight, 'middle')) else '')]))}, 'children': c_10}) }}\n              {%- set c_11 -%}\n                {{ og_include('blocks/compare-mark.html.j2', {'p': {'value': og_get(v_row, ['c']), 'yes': og_get(v_labels, ['yes']), 'no': og_get(v_labels, ['no'])}}) }}\n              {%- endset -%}\n              {{ og_include('compose/table-cell.html.j2', {'p': {'Class': og_s(('py-2' if og_t(og_eq(v_density, 'compact')) else 'py-4'))}, 'children': c_11}) }}\n            {%- endset -%}\n            {{ og_include('compose/table-row.html.j2', {'p': {'Class': 'border-t border-border', 'Attrs': og_attrs(['data-slot', 'item'])}, 'children': c_12}) }}\n          {%- endfor %}\n        {%- endset -%}\n        {{ og_include('compose/table-body.html.j2', {'p': {}, 'children': c_13}) }}\n      {%- endset -%}\n      {{ og_include('compose/table.html.j2', {'p': {'Class': 'w-full text-left text-sm', 'Attrs': og_attrs(['data-slot', 'compare'])}, 'children': c_14}) }}\n    {%- endset -%}\n    {{ og_include('compose/box.html.j2', {'p': {'Class': 'relative w-full overflow-x-auto'}, 'children': c_15}) }}\n  {%- endif %}\n{%- endset -%}\n{{ og_include('blocks/section-frame.html.j2', {'p': {'id': v_id, 'title': v_title, 'tone': v_tone, 'density': v_density, 'landmarkLabel': v_landmarkLabel}, 'children': og_markup(c_16)}) }}\n",
      "path": "blocks/comparison-table.html.j2",
      "target": "blocks/comparison-table.html.j2"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "pricing",
    "kind": "block",
    "tags": [
      "jinja2",
      "block"
    ]
  },
  "name": "comparison-table",
  "registryDependencies": [
    "box",
    "compare-mark",
    "empty-state",
    "section-frame",
    "table",
    "table-body",
    "table-caption",
    "table-cell",
    "table-head",
    "table-head-cell",
    "table-row",
    "utils"
  ],
  "runtime": "jinja2",
  "title": "Comparison Table",
  "type": "registry:block"
}
