{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Kits with the ingredients list, the cooking time and the portions.",
  "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/recipe-kits.json\n    Recipe kits delivered home: a picture beside the kit name, cooking time, the ingredients list, a portions radio group and the price with an add button. Axes: layout (rows, cards), tone.\n    Props (p): id, title, lead, dishes, empty, labels, portions, layout, 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_portions = og_def(p['portions'], none) -%}\n{%- set v_layout = og_def(p['layout'], 'rows') -%}\n{%- set v_tone = og_def(p['tone'], 'default') -%}\n{%- set v_landmarkLabel = og_def(p['landmarkLabel'], none) -%}\n{%- set c_18 -%}\n  {%- if og_t(og_eq(og_len(v_dishes), 0)) %}\n    {{ og_include('blocks/empty-state.html.j2', {'p': {'icon': 'package', 'title': v_empty}}) }}\n  {%- else %}\n    {%- set c_17 -%}\n      {%- for v_d in og_l(v_dishes) %}\n        {%- set c_16 -%}\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_15 -%}\n            {%- set c_3 -%}\n              {%- set c_1 -%}\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'}, 'children': c_1}) }}\n              {%- if og_t(og_get(v_d, ['badge'])) %}\n                {%- set c_2 -%}\n                  {{ og_text(og_get(v_d, ['badge'])) }}\n                {%- endset -%}\n                {{ og_include('compose/badge.html.j2', {'p': {'Variant': 'outline', 'Size': 'default'}, 'children': c_2}) }}\n              {%- endif %}\n            {%- endset -%}\n            {{ og_include('compose/group.html.j2', {'p': {'Gap': '2', 'Class': 'flex-wrap'}, 'children': c_3}) }}\n            {%- set c_6 -%}\n              {%- set c_4 -%}\n                {{ og_text(og_get(v_d, ['name'])) }}\n              {%- endset -%}\n              {{ og_include('compose/text.html.j2', {'p': {'Size': 'xl', 'Weight': 'semibold'}, 'children': c_4}) }}\n              {%- set c_5 -%}\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_5}) }}\n            {%- endset -%}\n            {{ og_include('compose/stack.html.j2', {'p': {'Gap': '2'}, 'children': c_6}) }}\n            {%- set c_11 -%}\n              {%- set c_7 -%}\n                {{ og_text(og_get(v_labels, ['ingredients'])) }}\n              {%- endset -%}\n              {{ og_include('compose/text.html.j2', {'p': {'Size': 'sm', 'Weight': 'semibold'}, 'children': c_7}) }}\n              {%- set c_10 -%}\n                {%- for v_x in og_l(og_get(v_d, ['items'])) %}\n                  {%- set c_9 -%}\n                    {{ og_include('icons/lucide-icon.html.j2', {'p': {'Name': 'check', 'Size': 16, 'Class': 'text-primary'}}) }}\n                    {%- set c_8 -%}\n                      {{ og_text(v_x) }}\n                    {%- endset -%}\n                    {{ og_include('compose/inline.html.j2', {'p': {}, 'children': c_8}) }}\n                  {%- endset -%}\n                  {{ og_include('compose/list-item.html.j2', {'p': {'Class': 'flex items-center gap-2', 'Attrs': og_attrs(['data-slot', 'items-row'])}, 'children': c_9}) }}\n                {%- endfor %}\n              {%- endset -%}\n              {{ og_include('compose/list.html.j2', {'p': {'Tag': 'ul', 'Class': 'grid grid-cols-1 gap-2 text-sm sm:grid-cols-2', 'Attrs': og_attrs(['data-slot', 'ingredients'])}, 'children': c_10}) }}\n            {%- endset -%}\n            {{ og_include('compose/stack.html.j2', {'p': {'Gap': '2'}, 'children': c_11}) }}\n            {{ og_include('blocks/option-chips.html.j2', {'p': {'name': og_tpl('{0}-portions-{1}', [v_id, og_get(v_d, ['id'])]), 'legend': og_get(v_labels, ['portions']), 'options': v_portions}}) }}\n            {%- set c_14 -%}\n              {%- set c_12 -%}\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-xl font-bold'}, 'children': c_12}) }}\n              {%- set c_13 -%}\n                {{ og_text(og_get(v_labels, ['add'])) }}\n              {%- endset -%}\n              {{ og_include('compose/button.html.j2', {'p': {'Variant': 'default', 'Size': 'default', 'Type': 'button', 'AriaLabel': og_s(og_tpl(og_get(v_labels, ['addOf']), [og_get(v_d, ['name'])]))}, 'children': c_13}) }}\n            {%- endset -%}\n            {{ og_include('compose/group.html.j2', {'p': {'Gap': '4', 'Align': 'center', 'Justify': 'between', 'Class': 'mt-auto'}, 'children': c_14}) }}\n          {%- endset -%}\n          {{ og_include('compose/stack.html.j2', {'p': {'Gap': '4'}, 'children': c_15}) }}\n        {%- endset -%}\n        {{ og_include('compose/box.html.j2', {'p': {'Class': og_s(('rounded bg-card inset-ring inset-ring-border flex flex-col gap-4 p-4' if og_t(og_eq(v_layout, 'cards')) else 'rounded bg-card inset-ring inset-ring-border grid grid-cols-1 gap-8 p-6 md:grid-cols-2')), 'Attrs': og_attrs(['data-slot', 'item'])}, 'children': c_16}) }}\n      {%- endfor %}\n    {%- endset -%}\n    {{ og_include('compose/box.html.j2', {'p': {'Class': og_s(('grid grid-cols-1 gap-8 md:grid-cols-3' if og_t(og_eq(v_layout, 'cards')) else 'flex flex-col gap-8')), 'Attrs': og_attrs(['data-slot', 'items'])}, 'children': c_17}) }}\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_18)}) }}\n",
      "path": "blocks/recipe-kits.html.j2",
      "target": "blocks/recipe-kits.html.j2"
    }
  ],
  "meta": {
    "category": "commerce",
    "group": "food",
    "kind": "block",
    "tags": [
      "jinja2",
      "block"
    ]
  },
  "name": "recipe-kits",
  "registryDependencies": [
    "badge",
    "box",
    "button",
    "empty-state",
    "group",
    "inline",
    "list",
    "list-item",
    "lucide-icon",
    "media-frame",
    "option-chips",
    "section-frame",
    "stack",
    "text",
    "utils"
  ],
  "runtime": "jinja2",
  "title": "Recipe Kits",
  "type": "registry:block"
}
