{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Grill cuts side by side: a table or compare cards.",
  "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/dish-compare.json\n    Grill cuts side by side: an accessible table (caption, column and row headers) of the cut, weight, cooking time, heat, marinade and price, or one compare card per cut with the same facts as a description list. Axes: layout (table, cards), tone.\n    Props (p): id, title, lead, dishes, empty, labels, layout, tone, 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_dishes = og_def(p['dishes'], none) -%}\n{%- set v_empty = og_def(p['empty'], '') -%}\n{%- set v_labels = og_def(p['labels'], none) -%}\n{%- set v_layout = og_def(p['layout'], 'table') -%}\n{%- set v_tone = og_def(p['tone'], 'default') -%}\n{%- set v_landmarkLabel = og_def(p['landmarkLabel'], none) -%}\n{%- set c_20 -%}\n  {%- if og_t(og_eq(og_len(v_dishes), 0)) %}\n    {{ og_include('blocks/empty-state.html.j2', {'p': {'icon': 'scale', 'title': v_empty}}) }}\n  {%- elif og_t(og_eq(v_layout, 'table')) %}\n    {%- set c_19 -%}\n      {%- set c_18 -%}\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_9 -%}\n          {%- set c_8 -%}\n            {%- set c_2 -%}\n              {{ og_text(og_get(v_labels, ['cut'])) }}\n            {%- endset -%}\n            {{ og_include('compose/table-head-cell.html.j2', {'p': {'Class': 'py-2', 'Attrs': og_attrs(['scope', 'col'])}, 'children': c_2}) }}\n            {%- set c_3 -%}\n              {{ og_text(og_get(v_labels, ['weight'])) }}\n            {%- endset -%}\n            {{ og_include('compose/table-head-cell.html.j2', {'p': {'Class': 'py-2', 'Attrs': og_attrs(['scope', 'col'])}, 'children': c_3}) }}\n            {%- set c_4 -%}\n              {{ og_text(og_get(v_labels, ['minutes'])) }}\n            {%- endset -%}\n            {{ og_include('compose/table-head-cell.html.j2', {'p': {'Class': 'py-2', 'Attrs': og_attrs(['scope', 'col'])}, 'children': c_4}) }}\n            {%- set c_5 -%}\n              {{ og_text(og_get(v_labels, ['heat'])) }}\n            {%- endset -%}\n            {{ og_include('compose/table-head-cell.html.j2', {'p': {'Class': 'py-2', 'Attrs': og_attrs(['scope', 'col'])}, 'children': c_5}) }}\n            {%- set c_6 -%}\n              {{ og_text(og_get(v_labels, ['marinade'])) }}\n            {%- endset -%}\n            {{ og_include('compose/table-head-cell.html.j2', {'p': {'Class': 'py-2', 'Attrs': og_attrs(['scope', 'col'])}, 'children': c_6}) }}\n            {%- set c_7 -%}\n              {{ og_text(og_get(v_labels, ['price'])) }}\n            {%- endset -%}\n            {{ og_include('compose/table-head-cell.html.j2', {'p': {'Class': 'py-2', 'Attrs': og_attrs(['scope', 'col'])}, 'children': c_7}) }}\n          {%- endset -%}\n          {{ og_include('compose/table-row.html.j2', {'p': {}, 'children': c_8}) }}\n        {%- endset -%}\n        {{ og_include('compose/table-head.html.j2', {'p': {}, 'children': c_9}) }}\n        {%- set c_17 -%}\n          {%- for v_d in og_l(v_dishes) %}\n            {%- set c_16 -%}\n              {%- set c_10 -%}\n                {{ og_text(og_get(v_d, ['name'])) }}\n              {%- endset -%}\n              {{ og_include('compose/table-head-cell.html.j2', {'p': {'Class': 'py-2 font-semibold', 'Attrs': og_attrs(['scope', 'row'])}, 'children': c_10}) }}\n              {%- set c_11 -%}\n                {{ og_text(og_get(v_d, ['weight'])) }}\n              {%- endset -%}\n              {{ og_include('compose/table-cell.html.j2', {'p': {}, 'children': c_11}) }}\n              {%- set c_12 -%}\n                {{ og_text(og_tpl(og_get(v_labels, ['minutes']), [og_str(og_get(v_d, ['minutes']))])) }}\n              {%- endset -%}\n              {{ og_include('compose/table-cell.html.j2', {'p': {}, 'children': c_12}) }}\n              {%- set c_13 -%}\n                {{ og_text(og_get(v_d, ['tag'])) }}\n              {%- endset -%}\n              {{ og_include('compose/table-cell.html.j2', {'p': {}, 'children': c_13}) }}\n              {%- set c_14 -%}\n                {%- for v_x in og_l(og_get(v_d, ['items'])) %}\n                  {{ og_text(v_x) }}\n                {%- endfor %}\n              {%- endset -%}\n              {{ og_include('compose/table-cell.html.j2', {'p': {}, 'children': c_14}) }}\n              {%- set c_15 -%}\n                {{ og_text(og_money(og_get(v_d, ['price']), og_get(v_d, ['currency']))) }}\n              {%- endset -%}\n              {{ og_include('compose/table-cell.html.j2', {'p': {'Class': 'font-semibold'}, 'children': c_15}) }}\n            {%- endset -%}\n            {{ og_include('compose/table-row.html.j2', {'p': {'Attrs': og_attrs(['data-slot', 'item'])}, 'children': c_16}) }}\n          {%- endfor %}\n        {%- endset -%}\n        {{ og_include('compose/table-body.html.j2', {'p': {}, 'children': c_17}) }}\n      {%- endset -%}\n      {{ og_include('compose/table.html.j2', {'p': {'Class': 'w-full text-sm'}, 'children': c_18}) }}\n    {%- endset -%}\n    {{ og_include('compose/box.html.j2', {'p': {'Class': 'w-full overflow-x-auto', 'Attrs': og_attrs(['data-slot', 'compare-table'])}, 'children': c_19}) }}\n  {%- else %}\n    {{ og_include('blocks/cut-cards.html.j2', {'p': {'dishes': v_dishes, 'labels': v_labels}}) }}\n  {%- endif %}\n{%- endset -%}\n{{ og_include('blocks/section-frame.html.j2', {'p': {'id': v_id, 'title': v_title, 'lead': v_lead, 'tone': v_tone, 'landmarkLabel': v_landmarkLabel}, 'children': og_markup(c_20)}) }}\n",
      "path": "blocks/dish-compare.html.j2",
      "target": "blocks/dish-compare.html.j2"
    }
  ],
  "meta": {
    "category": "commerce",
    "group": "food",
    "kind": "block",
    "tags": [
      "jinja2",
      "block"
    ]
  },
  "name": "dish-compare",
  "registryDependencies": [
    "box",
    "cut-cards",
    "empty-state",
    "section-frame",
    "table",
    "table-body",
    "table-caption",
    "table-cell",
    "table-head",
    "table-head-cell",
    "table-row",
    "utils"
  ],
  "runtime": "jinja2",
  "title": "Dish Compare",
  "type": "registry:block"
}
