{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Menu sections with dotted leaders to the price; no cart.",
  "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/restaurant-menu.json\n    A restaurant menu by sections: a nav of section links, then each section (heading and note) with its dishes as menu lines (name, a dotted leader, the price; the summary and weight below). No cart. Axes: cols (1, 2), tone.\n    Props (p): id, title, lead, dishes, sections, empty, labels, cols, 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_sections = og_def(p['sections'], none) -%}\n{%- set v_empty = og_def(p['empty'], '') -%}\n{%- set v_labels = og_def(p['labels'], none) -%}\n{%- set v_cols = og_def(p['cols'], '1') -%}\n{%- set v_tone = og_def(p['tone'], 'default') -%}\n{%- set v_landmarkLabel = og_def(p['landmarkLabel'], none) -%}\n{%- set c_14 -%}\n  {%- if og_t(og_eq(og_len(v_sections), 0)) %}\n    {{ og_include('blocks/empty-state.html.j2', {'p': {'icon': 'star', 'title': v_empty}}) }}\n  {%- else %}\n    {%- set c_13 -%}\n      {{ og_include('blocks/menu-section-nav.html.j2', {'p': {'label': og_get(v_labels, ['sections']), 'sections': v_sections, 'prefix': v_id, 'landmarkLabel': v_landmarkLabel}}) }}\n      {%- set c_12 -%}\n        {%- for v_s in og_l(v_sections) %}\n          {%- set c_11 -%}\n            {%- set c_3 -%}\n              {%- set c_1 -%}\n                {{ og_text(og_get(v_s, ['title'])) }}\n              {%- endset -%}\n              {{ og_include('compose/title.html.j2', {'p': {'As': 3, 'Size': 'xl', 'Weight': 'bold'}, 'children': c_1}) }}\n              {%- set c_2 -%}\n                {{ og_text(og_get(v_s, ['note'])) }}\n              {%- endset -%}\n              {{ og_include('compose/text.html.j2', {'p': {'Size': 'sm', 'Class': 'text-muted-foreground'}, 'children': c_2}) }}\n            {%- endset -%}\n            {{ og_include('compose/stack.html.j2', {'p': {'Gap': '0', 'Class': 'border-b border-border pb-2'}, 'children': c_3}) }}\n            {%- set c_10 -%}\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                  {%- set c_9 -%}\n                    {%- set c_7 -%}\n                      {%- set c_4 -%}\n                        {{ og_text(og_get(v_d, ['name'])) }}\n                      {%- endset -%}\n                      {{ og_include('compose/inline.html.j2', {'p': {'Class': 'font-semibold'}, 'children': c_4}) }}\n                      {%- if og_t(og_get(v_d, ['badge'])) %}\n                        {%- set c_5 -%}\n                          {{ og_text(og_get(v_d, ['badge'])) }}\n                        {%- endset -%}\n                        {{ og_include('compose/badge.html.j2', {'p': {'Variant': 'outline', 'Size': 'sm'}, 'children': c_5}) }}\n                      {%- endif %}\n                      {{ og_include('compose/inline.html.j2', {'p': {'Class': 'flex-1 border-b border-dotted border-border', 'Attrs': og_attrs(['aria-hidden', 'true'])}}) }}\n                      {%- set c_6 -%}\n                        {{ og_text(og_money(og_get(v_d, ['price']), og_get(v_d, ['currency']))) }}\n                      {%- endset -%}\n                      {{ og_include('compose/inline.html.j2', {'p': {'Class': 'font-semibold'}, 'children': c_6}) }}\n                    {%- endset -%}\n                    {{ og_include('compose/box.html.j2', {'p': {'Class': 'flex items-baseline gap-2'}, 'children': c_7}) }}\n                    {%- set c_8 -%}\n                      {{ og_text(og_tpl('{0} · {1}', [og_get(v_d, ['summary']), og_get(v_d, ['weight'])])) }}\n                    {%- endset -%}\n                    {{ og_include('compose/text.html.j2', {'p': {'Size': 'sm', 'Class': 'text-muted-foreground'}, 'children': c_8}) }}\n                  {%- endset -%}\n                  {{ og_include('compose/list-item.html.j2', {'p': {'Class': 'flex flex-col gap-0', 'Attrs': og_attrs(['data-slot', 'item'])}, 'children': c_9}) }}\n                {%- endif %}\n              {%- endfor %}\n            {%- endset -%}\n            {{ og_include('compose/list.html.j2', {'p': {'Tag': 'ul', 'Class': 'flex flex-col gap-4'}, 'children': c_10}) }}\n          {%- endset -%}\n          {{ og_include('compose/stack.html.j2', {'p': {'Gap': '4', 'Attrs': og_attrs(['id', og_tpl('{0}-{1}', [v_id, og_get(v_s, ['key'])]), 'data-slot', 'menusection'])}, 'children': c_11}) }}\n        {%- endfor %}\n      {%- endset -%}\n      {{ og_include('compose/box.html.j2', {'p': {'Class': og_s(('grid grid-cols-1 gap-8 md:grid-cols-2' if og_t(og_eq(v_cols, '2')) else 'flex flex-col gap-8')), 'Attrs': og_attrs(['data-slot', 'items'])}, 'children': c_12}) }}\n    {%- endset -%}\n    {{ og_include('compose/stack.html.j2', {'p': {'Gap': '8', 'Align': 'stretch', 'Class': og_s(('mx-auto w-full max-w-3xl' if og_t(og_eq(v_cols, '1')) else ''))}, 'children': c_13}) }}\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_14)}) }}\n",
      "path": "blocks/restaurant-menu.html.j2",
      "target": "blocks/restaurant-menu.html.j2"
    }
  ],
  "meta": {
    "category": "commerce",
    "group": "food",
    "kind": "block",
    "tags": [
      "jinja2",
      "block"
    ]
  },
  "name": "restaurant-menu",
  "registryDependencies": [
    "badge",
    "box",
    "empty-state",
    "inline",
    "list",
    "list-item",
    "menu-section-nav",
    "section-frame",
    "stack",
    "text",
    "title",
    "utils"
  ],
  "runtime": "jinja2",
  "title": "Restaurant Menu",
  "type": "registry:block"
}
