{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "The cards layout of DishCompare: one compare card per cut with a picture, the name, the summary, the weight, heat and price as a description list, and the cooking time.",
  "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/cut-cards.json\n    The cards layout of DishCompare: one compare card per cut with a picture, the name, the summary, the weight, heat and price as a description list, and the cooking time.\n    Props (p): dishes, labels. -#}\n{%- set v_dishes = og_def(p['dishes'], none) -%}\n{%- set v_labels = og_def(p['labels'], none) -%}\n{%- set c_15 -%}\n  {%- for v_d in og_l(v_dishes) %}\n    {%- set c_14 -%}\n      {{ og_include('blocks/media-frame.html.j2', {'p': {'alt': og_get(v_d, ['name']), 'src': og_get(v_d, ['image']), 'ratio': '4/3'}}) }}\n      {%- set c_1 -%}\n        {{ og_text(og_get(v_d, ['name'])) }}\n      {%- endset -%}\n      {{ og_include('compose/text.html.j2', {'p': {'Size': 'lg', 'Weight': 'semibold'}, 'children': c_1}) }}\n      {%- set c_2 -%}\n        {{ og_text(og_get(v_d, ['summary'])) }}\n      {%- endset -%}\n      {{ og_include('compose/text.html.j2', {'p': {'Size': 'sm', 'Class': 'text-muted-foreground'}, 'children': c_2}) }}\n      {%- set c_12 -%}\n        {%- set c_5 -%}\n          {%- set c_3 -%}\n            {{ og_text(og_get(v_labels, ['weight'])) }}\n          {%- endset -%}\n          {{ og_include('compose/inline.html.j2', {'p': {'Class': 'text-muted-foreground'}, 'children': c_3}) }}\n          {%- set c_4 -%}\n            {{ og_text(og_get(v_d, ['weight'])) }}\n          {%- endset -%}\n          {{ og_include('compose/inline.html.j2', {'p': {'Class': 'font-semibold'}, 'children': c_4}) }}\n        {%- endset -%}\n        {{ og_include('compose/list-item.html.j2', {'p': {'Class': 'flex items-center justify-between gap-4'}, 'children': c_5}) }}\n        {%- set c_8 -%}\n          {%- set c_6 -%}\n            {{ og_text(og_get(v_labels, ['heat'])) }}\n          {%- endset -%}\n          {{ og_include('compose/inline.html.j2', {'p': {'Class': 'text-muted-foreground'}, 'children': c_6}) }}\n          {%- set c_7 -%}\n            {{ og_text(og_get(v_d, ['tag'])) }}\n          {%- endset -%}\n          {{ og_include('compose/inline.html.j2', {'p': {'Class': 'font-semibold'}, 'children': c_7}) }}\n        {%- endset -%}\n        {{ og_include('compose/list-item.html.j2', {'p': {'Class': 'flex items-center justify-between gap-4'}, 'children': c_8}) }}\n        {%- set c_11 -%}\n          {%- set c_9 -%}\n            {{ og_text(og_get(v_labels, ['price'])) }}\n          {%- endset -%}\n          {{ og_include('compose/inline.html.j2', {'p': {'Class': 'text-muted-foreground'}, 'children': c_9}) }}\n          {%- set c_10 -%}\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_10}) }}\n        {%- endset -%}\n        {{ og_include('compose/list-item.html.j2', {'p': {'Class': 'flex items-center justify-between gap-4'}, 'children': c_11}) }}\n      {%- endset -%}\n      {{ og_include('compose/list.html.j2', {'p': {'Tag': 'ul', 'Class': 'flex flex-col gap-2 text-sm'}, 'children': c_12}) }}\n      {%- set c_13 -%}\n        {{ og_include('icons/lucide-icon.html.j2', {'p': {'Name': 'timer', 'Size': 16}}) }}\n        {{ og_text(og_tpl(og_get(v_labels, ['minutes']), [og_str(og_get(v_d, ['minutes']))])) }}\n      {%- endset -%}\n      {{ og_include('compose/badge.html.j2', {'p': {'Variant': 'secondary', 'Size': 'default', 'Class': 'w-fit'}, 'children': c_13}) }}\n    {%- endset -%}\n    {{ og_include('compose/stack.html.j2', {'p': {'Gap': '4', 'Class': 'rounded bg-card inset-ring inset-ring-border p-4', 'Attrs': og_attrs(['data-slot', 'item'])}, 'children': c_14}) }}\n  {%- endfor %}\n{%- endset -%}\n{{ og_include('compose/grid.html.j2', {'p': {'Cols': '1-4', 'Class': 'gap-4', 'Attrs': og_attrs(['data-slot', 'items'])}, 'children': c_15}) }}\n",
      "path": "blocks/cut-cards.html.j2",
      "target": "blocks/cut-cards.html.j2"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "jinja2",
      "component"
    ]
  },
  "name": "cut-cards",
  "registryDependencies": [
    "badge",
    "grid",
    "inline",
    "list",
    "list-item",
    "lucide-icon",
    "media-frame",
    "stack",
    "text",
    "utils"
  ],
  "runtime": "jinja2",
  "title": "Cut Cards",
  "type": "registry:component"
}
