{
  "$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{%- 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_empty = og_def(p['empty'], '') -%}\n{%- set v_labels = og_def(p['labels'], none) -%}\n{%- set v_cols = og_def(p['cols'], '3') -%}\n{%- set v_ratio = og_def(p['ratio'], '4/3') -%}\n{%- set v_tone = og_def(p['tone'], 'default') -%}\n{%- set v_landmarkLabel = og_def(p['landmarkLabel'], none) -%}\n{%- set c_12 -%}\n  {%- if og_t(og_eq(og_len(v_dishes), 0)) %}\n    {{ og_include('blocks/empty-state.html.j2', {'p': {'icon': 'star', 'title': v_empty}}) }}\n  {%- else %}\n    {%- set c_11 -%}\n      {%- for v_d in og_l(v_dishes) %}\n        {%- set c_10 -%}\n          {{ og_include('blocks/media-frame.html.j2', {'p': {'alt': og_get(v_d, ['name']), 'src': og_get(v_d, ['image']), 'ratio': v_ratio}}) }}\n          {%- set c_9 -%}\n            {%- if og_t(og_get(v_d, ['badge'])) %}\n              {%- set c_1 -%}\n                {{ og_text(og_get(v_d, ['badge'])) }}\n              {%- endset -%}\n              {{ og_include('compose/badge.html.j2', {'p': {'Variant': 'secondary', 'Size': 'sm', 'Class': 'w-fit'}, 'children': c_1}) }}\n            {%- endif %}\n            {%- set c_4 -%}\n              {%- set c_2 -%}\n                {{ og_text(og_get(v_d, ['name'])) }}\n              {%- endset -%}\n              {{ og_include('compose/inline.html.j2', {'p': {'Class': 'text-lg font-semibold'}, 'children': c_2}) }}\n              {%- set c_3 -%}\n                {{ og_text(og_get(v_d, ['weight'])) }}\n              {%- endset -%}\n              {{ og_include('compose/inline.html.j2', {'p': {'Class': 'text-sm text-muted-foreground'}, 'children': c_3}) }}\n            {%- endset -%}\n            {{ og_include('compose/group.html.j2', {'p': {'Gap': '2', 'Align': 'baseline', 'Justify': 'between'}, 'children': c_4}) }}\n            {%- set c_5 -%}\n              {{ og_text(og_get(v_d, ['summary'])) }}\n            {%- endset -%}\n            {{ og_include('compose/inline.html.j2', {'p': {'Class': 'text-sm font-normal text-muted-foreground'}, 'children': c_5}) }}\n            {%- set c_8 -%}\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': 'text-base font-bold'}, 'children': c_6}) }}\n              {%- set c_7 -%}\n                {{ og_text(og_get(v_labels, ['open'])) }}\n                {{ og_include('icons/lucide-icon.html.j2', {'p': {'Name': 'arrow-right', 'Size': 16}}) }}\n              {%- endset -%}\n              {{ og_include('compose/inline.html.j2', {'p': {'Class': 'flex items-center gap-2 text-sm text-primary'}, 'children': c_7}) }}\n            {%- endset -%}\n            {{ og_include('compose/group.html.j2', {'p': {'Gap': '2', 'Align': 'center', 'Justify': 'between'}, 'children': c_8}) }}\n          {%- endset -%}\n          {{ og_include('compose/stack.html.j2', {'p': {'Gap': '2'}, 'children': c_9}) }}\n        {%- endset -%}\n        {{ og_include('compose/link.html.j2', {'p': {'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': c_10}) }}\n      {%- endfor %}\n    {%- endset -%}\n    {{ og_include('compose/grid.html.j2', {'p': {'Cols': og_s(('2-4' if og_t(og_eq(v_cols, '4')) else '1-3')), 'Class': 'gap-8', 'Attrs': og_attrs(['data-slot', 'items'])}, 'children': c_11}) }}\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_12)}) }}\n",
      "path": "blocks/dish-showcase.html.j2",
      "target": "blocks/dish-showcase.html.j2"
    }
  ],
  "meta": {
    "category": "commerce",
    "group": "food",
    "kind": "block",
    "tags": [
      "jinja2",
      "block"
    ]
  },
  "name": "dish-showcase",
  "registryDependencies": [
    "badge",
    "empty-state",
    "grid",
    "group",
    "inline",
    "link",
    "lucide-icon",
    "media-frame",
    "section-frame",
    "stack",
    "utils"
  ],
  "runtime": "jinja2",
  "title": "Dish Showcase",
  "type": "registry:block"
}
