{
  "$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 = (p.id ?? null) -%}\n{%- set v_title = (p.title ?? null) -%}\n{%- set v_lead = (p.lead ?? '') -%}\n{%- set v_dishes = (p.dishes ?? null) -%}\n{%- set v_empty = (p.empty ?? '') -%}\n{%- set v_labels = (p.labels ?? null) -%}\n{%- set v_layout = (p.layout ?? 'table') -%}\n{%- set v_tone = (p.tone ?? 'default') -%}\n{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}\n{%- set c_20 -%}\n  {%- if og_t(og_eq(og_len(v_dishes), 0)) %}\n    {{ include('blocks/empty-state.html.twig', {'p': {'icon': 'scale', 'title': v_empty}}, with_context = false) }}\n  {%- elseif 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        {{ include('compose/TableCaption.html.twig', {'class': 'sr-only', 'children': c_1}, with_context = false) }}\n        {%- set c_9 -%}\n          {%- set c_8 -%}\n            {%- set c_2 -%}\n              {{ og_text(og_get(v_labels, ['cut'])) }}\n            {%- endset -%}\n            {{ include('compose/TableHeadCell.html.twig', {'class': 'py-2', 'attrs': og_attrs(['scope', 'col']), 'children': c_2}, with_context = false) }}\n            {%- set c_3 -%}\n              {{ og_text(og_get(v_labels, ['weight'])) }}\n            {%- endset -%}\n            {{ include('compose/TableHeadCell.html.twig', {'class': 'py-2', 'attrs': og_attrs(['scope', 'col']), 'children': c_3}, with_context = false) }}\n            {%- set c_4 -%}\n              {{ og_text(og_get(v_labels, ['minutes'])) }}\n            {%- endset -%}\n            {{ include('compose/TableHeadCell.html.twig', {'class': 'py-2', 'attrs': og_attrs(['scope', 'col']), 'children': c_4}, with_context = false) }}\n            {%- set c_5 -%}\n              {{ og_text(og_get(v_labels, ['heat'])) }}\n            {%- endset -%}\n            {{ include('compose/TableHeadCell.html.twig', {'class': 'py-2', 'attrs': og_attrs(['scope', 'col']), 'children': c_5}, with_context = false) }}\n            {%- set c_6 -%}\n              {{ og_text(og_get(v_labels, ['marinade'])) }}\n            {%- endset -%}\n            {{ include('compose/TableHeadCell.html.twig', {'class': 'py-2', 'attrs': og_attrs(['scope', 'col']), 'children': c_6}, with_context = false) }}\n            {%- set c_7 -%}\n              {{ og_text(og_get(v_labels, ['price'])) }}\n            {%- endset -%}\n            {{ include('compose/TableHeadCell.html.twig', {'class': 'py-2', 'attrs': og_attrs(['scope', 'col']), 'children': c_7}, with_context = false) }}\n          {%- endset -%}\n          {{ include('compose/TableRow.html.twig', {'children': c_8}, with_context = false) }}\n        {%- endset -%}\n        {{ include('compose/TableHead.html.twig', {'children': c_9}, with_context = false) }}\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              {{ include('compose/TableHeadCell.html.twig', {'class': 'py-2 font-semibold', 'attrs': og_attrs(['scope', 'row']), 'children': c_10}, with_context = false) }}\n              {%- set c_11 -%}\n                {{ og_text(og_get(v_d, ['weight'])) }}\n              {%- endset -%}\n              {{ include('compose/TableCell.html.twig', {'children': c_11}, with_context = false) }}\n              {%- set c_12 -%}\n                {{ og_text(og_tpl(og_get(v_labels, ['minutes']), [og_str(og_get(v_d, ['minutes']))])) }}\n              {%- endset -%}\n              {{ include('compose/TableCell.html.twig', {'children': c_12}, with_context = false) }}\n              {%- set c_13 -%}\n                {{ og_text(og_get(v_d, ['tag'])) }}\n              {%- endset -%}\n              {{ include('compose/TableCell.html.twig', {'children': c_13}, with_context = false) }}\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              {{ include('compose/TableCell.html.twig', {'children': c_14}, with_context = false) }}\n              {%- set c_15 -%}\n                {{ og_text(og_money(og_get(v_d, ['price']), og_get(v_d, ['currency']))) }}\n              {%- endset -%}\n              {{ include('compose/TableCell.html.twig', {'class': 'font-semibold', 'children': c_15}, with_context = false) }}\n            {%- endset -%}\n            {{ include('compose/TableRow.html.twig', {'attrs': og_attrs(['data-slot', 'item']), 'children': c_16}, with_context = false) }}\n          {%- endfor %}\n        {%- endset -%}\n        {{ include('compose/TableBody.html.twig', {'children': c_17}, with_context = false) }}\n      {%- endset -%}\n      {{ include('compose/Table.html.twig', {'class': 'w-full text-sm', 'children': c_18}, with_context = false) }}\n    {%- endset -%}\n    {{ include('compose/Box.html.twig', {'class': 'w-full overflow-x-auto', 'attrs': og_attrs(['data-slot', 'compare-table']), 'children': c_19}, with_context = false) }}\n  {%- else %}\n    {{ include('blocks/cut-cards.html.twig', {'p': {'dishes': v_dishes, 'labels': v_labels}}, with_context = false) }}\n  {%- endif %}\n{%- endset -%}\n{{ include('blocks/section-frame.html.twig', {'p': {'id': v_id, 'title': v_title, 'lead': v_lead, 'tone': v_tone, 'landmarkLabel': v_landmarkLabel}, 'children': og_markup(c_20)}, with_context = false) }}\n",
      "path": "blocks/dish-compare.html.twig",
      "target": "blocks/dish-compare.html.twig"
    }
  ],
  "meta": {
    "category": "commerce",
    "group": "food",
    "kind": "block",
    "tags": [
      "twig",
      "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": "twig",
  "title": "Dish Compare",
  "type": "registry:block"
}
