{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Dish cards that each open the dish page; 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/dish-showcase.json\n    A showcase of dishes: each card is one link to the dish page (picture, badge, name, weight, summary, price and an arrow). No cart here. Axes: cols (3, 4), ratio (4/3, 1/1), tone.\n    Props (p): id, title, lead, dishes, empty, labels, cols, ratio, 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_empty = ($p['empty'] ?? '')}\n{var $v_labels = ($p['labels'] ?? null)}\n{var $v_cols = ($p['cols'] ?? '3')}\n{var $v_ratio = ($p['ratio'] ?? '4/3')}\n{var $v_tone = ($p['tone'] ?? 'default')}\n{var $v_landmarkLabel = ($p['landmarkLabel'] ?? null)}\n{capture $c_12}\n  {if og_t(og_eq(og_len($v_dishes), 0))}\n    {=og_include('blocks/empty-state.latte', ['p' => ['icon' => 'star', 'title' => $v_empty]])|noescape}\n  {else}\n    {capture $c_11}\n      {foreach og_l($v_dishes) as $v_d}\n        {capture $c_10}\n          {=og_include('blocks/media-frame.latte', ['p' => ['alt' => og_get($v_d, ['name']), 'src' => og_get($v_d, ['image']), 'ratio' => $v_ratio]])|noescape}\n          {capture $c_9}\n            {if og_t(og_get($v_d, ['badge']))}\n              {capture $c_1}\n                {=og_text(og_get($v_d, ['badge']))}\n              {/capture}\n              {=og_include('compose/Badge.latte', ['variant' => 'secondary', 'size' => 'sm', 'class' => 'w-fit', 'children' => (string) $c_1])|noescape}\n            {/if}\n            {capture $c_4}\n              {capture $c_2}\n                {=og_text(og_get($v_d, ['name']))}\n              {/capture}\n              {=og_include('compose/Inline.latte', ['class' => 'text-lg font-semibold', 'children' => (string) $c_2])|noescape}\n              {capture $c_3}\n                {=og_text(og_get($v_d, ['weight']))}\n              {/capture}\n              {=og_include('compose/Inline.latte', ['class' => 'text-sm text-muted-foreground', 'children' => (string) $c_3])|noescape}\n            {/capture}\n            {=og_include('compose/Group.latte', ['gap' => '2', 'align' => 'baseline', 'justify' => 'between', 'children' => (string) $c_4])|noescape}\n            {capture $c_5}\n              {=og_text(og_get($v_d, ['summary']))}\n            {/capture}\n            {=og_include('compose/Inline.latte', ['class' => 'text-sm font-normal text-muted-foreground', 'children' => (string) $c_5])|noescape}\n            {capture $c_8}\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' => 'text-base font-bold', 'children' => (string) $c_6])|noescape}\n              {capture $c_7}\n                {=og_text(og_get($v_labels, ['open']))}\n                {=og_include('icons/LucideIcon.latte', ['name' => 'arrow-right', 'size' => 16])|noescape}\n              {/capture}\n              {=og_include('compose/Inline.latte', ['class' => 'flex items-center gap-2 text-sm text-primary', 'children' => (string) $c_7])|noescape}\n            {/capture}\n            {=og_include('compose/Group.latte', ['gap' => '2', 'align' => 'center', 'justify' => 'between', 'children' => (string) $c_8])|noescape}\n          {/capture}\n          {=og_include('compose/Stack.latte', ['gap' => '2', 'children' => (string) $c_9])|noescape}\n        {/capture}\n        {=og_include('compose/Link.latte', ['href' => og_url(og_s(og_coalesce([og_get($v_d, ['href']), og_tpl('#/dish/{0}', [og_get($v_d, ['id'])])]))), 'variant' => 'block', 'class' => 'group flex-col items-stretch gap-4', 'attrs' => og_attrs(['data-slot', 'item']), 'children' => (string) $c_10])|noescape}\n      {/foreach}\n    {/capture}\n    {=og_include('compose/Grid.latte', ['cols' => og_s((og_t(og_eq($v_cols, '4')) ? '2-4' : '1-3')), 'class' => 'gap-8', 'attrs' => og_attrs(['data-slot', 'items']), 'children' => (string) $c_11])|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_12)])|noescape}\n",
      "path": "blocks/dish-showcase.latte",
      "target": "blocks/dish-showcase.latte"
    }
  ],
  "meta": {
    "category": "commerce",
    "group": "food",
    "kind": "block",
    "tags": [
      "latte",
      "block"
    ]
  },
  "name": "dish-showcase",
  "registryDependencies": [
    "badge",
    "empty-state",
    "grid",
    "group",
    "inline",
    "link",
    "lucide-icon",
    "media-frame",
    "section-frame",
    "stack",
    "utils"
  ],
  "runtime": "latte",
  "title": "Dish Showcase",
  "type": "registry:block"
}
