{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Category sections with DishCards in a grid, or denser menu rows; prices can be hidden.",
  "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/menu-board.json\n    A restaurant menu board: category sections with DishCards in a grid, or denser menu rows in a list or a sectioned column. Axes: layout (sections, grid, list), prices (show, hide), density. Composes DishCard; section rows use MenuRow.\n    Props (p): id, title, lead, dishes, sections, empty, labels, layout, prices, density, 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_sections = (p.sections ?? null) -%}\n{%- set v_empty = (p.empty ?? '') -%}\n{%- set v_labels = (p.labels ?? null) -%}\n{%- set v_layout = (p.layout ?? 'sections') -%}\n{%- set v_prices = (p.prices ?? 'show') -%}\n{%- set v_density = (p.density ?? 'default') -%}\n{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}\n{%- set c_9 -%}\n  {%- if og_t(og_eq(og_len(v_sections), 0)) %}\n    {{ include('blocks/empty-state.html.twig', {'p': {'icon': 'star', 'title': v_empty}}, with_context = false) }}\n  {%- else %}\n    {%- set c_8 -%}\n      {%- if og_t(og_eq(v_layout, 'sections')) %}\n        {{ include('blocks/menu-section-nav.html.twig', {'p': {'label': og_get(v_labels, ['sections']), 'sections': v_sections, 'prefix': v_id, 'landmarkLabel': v_landmarkLabel}}, with_context = false) }}\n      {%- endif %}\n      {%- set c_7 -%}\n        {%- for v_s in og_l(v_sections) %}\n          {%- set c_6 -%}\n            {%- set c_3 -%}\n              {%- set c_1 -%}\n                {{ og_text(og_get(v_s, ['title'])) }}\n              {%- endset -%}\n              {{ include('compose/Title.html.twig', {'as': 3, 'size': 'xl', 'weight': 'bold', 'children': c_1}, with_context = false) }}\n              {%- set c_2 -%}\n                {{ og_text(og_get(v_s, ['note'])) }}\n              {%- endset -%}\n              {{ include('compose/Text.html.twig', {'size': 'sm', 'class': 'text-muted-foreground', 'children': c_2}, with_context = false) }}\n            {%- endset -%}\n            {{ include('compose/Stack.html.twig', {'gap': '0', 'class': 'border-b border-border pb-2', 'children': c_3}, with_context = false) }}\n            {%- if og_t(og_eq(v_layout, 'grid')) %}\n              {%- set c_4 -%}\n                {%- for v_d in og_l(v_dishes) %}\n                  {%- if og_t(og_eq(og_get(v_d, ['tag']), og_get(v_s, ['key']))) %}\n                    {{ include('blocks/dish-card.html.twig', {'p': {'dish': v_d, 'labels': {'add': og_get(v_labels, ['add'])}, 'media': (og_t(og_eq(v_density, 'compact')) ? 'none' : 'image'), 'prices': v_prices, 'action': 'none', 'density': v_density}}, with_context = false) }}\n                  {%- endif %}\n                {%- endfor %}\n              {%- endset -%}\n              {{ include('compose/Grid.html.twig', {'cols': '1-3', 'class': 'gap-4', 'children': c_4}, with_context = false) }}\n            {%- else %}\n              {%- set c_5 -%}\n                {%- for v_d in og_l(v_dishes) %}\n                  {%- if og_t(og_eq(og_get(v_d, ['tag']), og_get(v_s, ['key']))) %}\n                    {{ include('blocks/menu-row.html.twig', {'p': {'dish': v_d, 'prices': v_prices}}, with_context = false) }}\n                  {%- endif %}\n                {%- endfor %}\n              {%- endset -%}\n              {{ include('compose/List.html.twig', {'tag': 'ul', 'class': 'flex flex-col', 'children': c_5}, with_context = false) }}\n            {%- endif %}\n          {%- endset -%}\n          {{ include('compose/Stack.html.twig', {'gap': og_s((og_t(og_eq(v_density, 'compact')) ? '2' : '4')), 'attrs': og_attrs(['id', og_tpl('{0}-{1}', [v_id, og_get(v_s, ['key'])]), 'data-slot', 'menusection']), 'children': c_6}, with_context = false) }}\n        {%- endfor %}\n      {%- endset -%}\n      {{ include('compose/Box.html.twig', {'class': 'flex flex-col gap-8', 'attrs': og_attrs(['data-slot', 'items']), 'children': c_7}, with_context = false) }}\n    {%- endset -%}\n    {{ include('compose/Stack.html.twig', {'gap': '8', 'align': 'stretch', 'children': c_8}, with_context = false) }}\n  {%- endif %}\n{%- endset -%}\n{{ include('blocks/section-frame.html.twig', {'p': {'id': v_id, 'title': v_title, 'lead': v_lead, 'density': v_density, 'landmarkLabel': v_landmarkLabel}, 'children': og_markup(c_9)}, with_context = false) }}\n",
      "path": "blocks/menu-board.html.twig",
      "target": "blocks/menu-board.html.twig"
    }
  ],
  "meta": {
    "category": "commerce",
    "group": "restaurant",
    "kind": "block",
    "tags": [
      "twig",
      "block"
    ]
  },
  "name": "menu-board",
  "registryDependencies": [
    "box",
    "dish-card",
    "empty-state",
    "grid",
    "list",
    "menu-row",
    "menu-section-nav",
    "section-frame",
    "stack",
    "text",
    "title",
    "utils"
  ],
  "runtime": "twig",
  "title": "Menu Board",
  "type": "registry:block"
}
