{
  "$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{var $v_id = ($p['id'] ?? null)}\n{var $v_title = ($p['title'] ?? null)}\n{var $v_lead = ($p['lead'] ?? '')}\n{var $v_dishes = ($p['dishes'] ?? null)}\n{var $v_sections = ($p['sections'] ?? null)}\n{var $v_empty = ($p['empty'] ?? '')}\n{var $v_labels = ($p['labels'] ?? null)}\n{var $v_cols = ($p['cols'] ?? '1')}\n{var $v_tone = ($p['tone'] ?? 'default')}\n{var $v_landmarkLabel = ($p['landmarkLabel'] ?? null)}\n{capture $c_14}\n  {if og_t(og_eq(og_len($v_sections), 0))}\n    {=og_include('blocks/empty-state.latte', ['p' => ['icon' => 'star', 'title' => $v_empty]])|noescape}\n  {else}\n    {capture $c_13}\n      {=og_include('blocks/menu-section-nav.latte', ['p' => ['label' => og_get($v_labels, ['sections']), 'sections' => $v_sections, 'prefix' => $v_id, 'landmarkLabel' => $v_landmarkLabel]])|noescape}\n      {capture $c_12}\n        {foreach og_l($v_sections) as $v_s}\n          {capture $c_11}\n            {capture $c_3}\n              {capture $c_1}\n                {=og_text(og_get($v_s, ['title']))}\n              {/capture}\n              {=og_include('compose/Title.latte', ['as' => 3, 'size' => 'xl', 'weight' => 'bold', 'children' => (string) $c_1])|noescape}\n              {capture $c_2}\n                {=og_text(og_get($v_s, ['note']))}\n              {/capture}\n              {=og_include('compose/Text.latte', ['size' => 'sm', 'class' => 'text-muted-foreground', 'children' => (string) $c_2])|noescape}\n            {/capture}\n            {=og_include('compose/Stack.latte', ['gap' => '0', 'class' => 'border-b border-border pb-2', 'children' => (string) $c_3])|noescape}\n            {capture $c_10}\n              {foreach og_l($v_dishes) as $v_d}\n                {if og_t(og_eq(og_get($v_d, ['tag']), og_get($v_s, ['key'])))}\n                  {capture $c_9}\n                    {capture $c_7}\n                      {capture $c_4}\n                        {=og_text(og_get($v_d, ['name']))}\n                      {/capture}\n                      {=og_include('compose/Inline.latte', ['class' => 'font-semibold', 'children' => (string) $c_4])|noescape}\n                      {if og_t(og_get($v_d, ['badge']))}\n                        {capture $c_5}\n                          {=og_text(og_get($v_d, ['badge']))}\n                        {/capture}\n                        {=og_include('compose/Badge.latte', ['variant' => 'outline', 'size' => 'sm', 'children' => (string) $c_5])|noescape}\n                      {/if}\n                      {=og_include('compose/Inline.latte', ['class' => 'flex-1 border-b border-dotted border-border', 'attrs' => og_attrs(['aria-hidden', 'true'])])|noescape}\n                      {capture $c_6}\n                        {=og_text(og_money(og_get($v_d, ['price']), og_get($v_d, ['currency'])))}\n                      {/capture}\n                      {=og_include('compose/Inline.latte', ['class' => 'font-semibold', 'children' => (string) $c_6])|noescape}\n                    {/capture}\n                    {=og_include('compose/Box.latte', ['class' => 'flex items-baseline gap-2', 'children' => (string) $c_7])|noescape}\n                    {capture $c_8}\n                      {=og_text(og_tpl('{0} · {1}', [og_get($v_d, ['summary']), og_get($v_d, ['weight'])]))}\n                    {/capture}\n                    {=og_include('compose/Text.latte', ['size' => 'sm', 'class' => 'text-muted-foreground', 'children' => (string) $c_8])|noescape}\n                  {/capture}\n                  {=og_include('compose/ListItem.latte', ['class' => 'flex flex-col gap-0', 'attrs' => og_attrs(['data-slot', 'item']), 'children' => (string) $c_9])|noescape}\n                {/if}\n              {/foreach}\n            {/capture}\n            {=og_include('compose/List.latte', ['tag' => 'ul', 'class' => 'flex flex-col gap-4', 'children' => (string) $c_10])|noescape}\n          {/capture}\n          {=og_include('compose/Stack.latte', ['gap' => '4', 'attrs' => og_attrs(['id', og_tpl('{0}-{1}', [$v_id, og_get($v_s, ['key'])]), 'data-slot', 'menusection']), 'children' => (string) $c_11])|noescape}\n        {/foreach}\n      {/capture}\n      {=og_include('compose/Box.latte', ['class' => og_s((og_t(og_eq($v_cols, '2')) ? 'grid grid-cols-1 gap-8 md:grid-cols-2' : 'flex flex-col gap-8')), 'attrs' => og_attrs(['data-slot', 'items']), 'children' => (string) $c_12])|noescape}\n    {/capture}\n    {=og_include('compose/Stack.latte', ['gap' => '8', 'align' => 'stretch', 'class' => og_s((og_t(og_eq($v_cols, '1')) ? 'mx-auto w-full max-w-3xl' : '')), 'children' => (string) $c_13])|noescape}\n  {/if}\n{/capture}\n{=og_include('blocks/section-frame.latte', ['p' => ['id' => $v_id, 'title' => $v_title, 'lead' => $v_lead, 'tone' => $v_tone, 'landmarkLabel' => $v_landmarkLabel], 'children' => og_markup($c_14)])|noescape}\n",
      "path": "blocks/restaurant-menu.latte",
      "target": "blocks/restaurant-menu.latte"
    }
  ],
  "meta": {
    "category": "commerce",
    "group": "food",
    "kind": "block",
    "tags": [
      "latte",
      "block"
    ]
  },
  "name": "restaurant-menu",
  "registryDependencies": [
    "badge",
    "box",
    "empty-state",
    "inline",
    "list",
    "list-item",
    "menu-section-nav",
    "section-frame",
    "stack",
    "text",
    "title",
    "utils"
  ],
  "runtime": "latte",
  "title": "Restaurant Menu",
  "type": "registry:block"
}
