{
  "$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 = (p.id ?? null) -%}\n{%- set v_title = (p.title ?? null) -%}\n{%- set v_lead = (p.lead ?? '') -%}\n{%- set v_dishes = (p.dishes ?? null) -%}\n{%- set v_empty = (p.empty ?? '') -%}\n{%- set v_labels = (p.labels ?? null) -%}\n{%- set v_portions = (p.portions ?? null) -%}\n{%- set v_layout = (p.layout ?? 'rows') -%}\n{%- set v_tone = (p.tone ?? 'default') -%}\n{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}\n{%- set c_18 -%}\n  {%- if og_t(og_eq(og_len(v_dishes), 0)) %}\n    {{ include('blocks/empty-state.html.twig', {'p': {'icon': 'package', 'title': v_empty}}, with_context = false) }}\n  {%- else %}\n    {%- set c_17 -%}\n      {%- for v_d in og_l(v_dishes) %}\n        {%- set c_16 -%}\n          {{ include('blocks/media-frame.html.twig', {'p': {'alt': og_get(v_d, ['name']), 'src': og_get(v_d, ['image']), 'ratio': '4/3'}}, with_context = false) }}\n          {%- set c_15 -%}\n            {%- set c_3 -%}\n              {%- set c_1 -%}\n                {{ include('icons/LucideIcon.html.twig', {'name': 'timer', 'size': 16}, with_context = false) }}\n                {{ og_text(og_tpl(og_get(v_labels, ['minutes']), [og_str(og_get(v_d, ['minutes']))])) }}\n              {%- endset -%}\n              {{ include('compose/Badge.html.twig', {'variant': 'secondary', 'size': 'default', 'children': c_1}, with_context = false) }}\n              {%- if og_t(og_get(v_d, ['badge'])) %}\n                {%- set c_2 -%}\n                  {{ og_text(og_get(v_d, ['badge'])) }}\n                {%- endset -%}\n                {{ include('compose/Badge.html.twig', {'variant': 'outline', 'size': 'default', 'children': c_2}, with_context = false) }}\n              {%- endif %}\n            {%- endset -%}\n            {{ include('compose/Group.html.twig', {'gap': '2', 'class': 'flex-wrap', 'children': c_3}, with_context = false) }}\n            {%- set c_6 -%}\n              {%- set c_4 -%}\n                {{ og_text(og_get(v_d, ['name'])) }}\n              {%- endset -%}\n              {{ include('compose/Text.html.twig', {'size': 'xl', 'weight': 'semibold', 'children': c_4}, with_context = false) }}\n              {%- set c_5 -%}\n                {{ og_text(og_get(v_d, ['summary'])) }}\n              {%- endset -%}\n              {{ include('compose/Text.html.twig', {'size': 'sm', 'class': 'text-muted-foreground', 'children': c_5}, with_context = false) }}\n            {%- endset -%}\n            {{ include('compose/Stack.html.twig', {'gap': '2', 'children': c_6}, with_context = false) }}\n            {%- set c_11 -%}\n              {%- set c_7 -%}\n                {{ og_text(og_get(v_labels, ['ingredients'])) }}\n              {%- endset -%}\n              {{ include('compose/Text.html.twig', {'size': 'sm', 'weight': 'semibold', 'children': c_7}, with_context = false) }}\n              {%- set c_10 -%}\n                {%- for v_x in og_l(og_get(v_d, ['items'])) %}\n                  {%- set c_9 -%}\n                    {{ include('icons/LucideIcon.html.twig', {'name': 'check', 'size': 16, 'class': 'text-primary'}, with_context = false) }}\n                    {%- set c_8 -%}\n                      {{ og_text(v_x) }}\n                    {%- endset -%}\n                    {{ include('compose/Inline.html.twig', {'children': c_8}, with_context = false) }}\n                  {%- endset -%}\n                  {{ include('compose/ListItem.html.twig', {'class': 'flex items-center gap-2', 'attrs': og_attrs(['data-slot', 'items-row']), 'children': c_9}, with_context = false) }}\n                {%- endfor %}\n              {%- endset -%}\n              {{ include('compose/List.html.twig', {'tag': 'ul', 'class': 'grid grid-cols-1 gap-2 text-sm sm:grid-cols-2', 'attrs': og_attrs(['data-slot', 'ingredients']), 'children': c_10}, with_context = false) }}\n            {%- endset -%}\n            {{ include('compose/Stack.html.twig', {'gap': '2', 'children': c_11}, with_context = false) }}\n            {{ include('blocks/option-chips.html.twig', {'p': {'name': og_tpl('{0}-portions-{1}', [v_id, og_get(v_d, ['id'])]), 'legend': og_get(v_labels, ['portions']), 'options': v_portions}}, with_context = false) }}\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              {{ include('compose/Inline.html.twig', {'class': 'text-xl font-bold', 'children': c_12}, with_context = false) }}\n              {%- set c_13 -%}\n                {{ og_text(og_get(v_labels, ['add'])) }}\n              {%- endset -%}\n              {{ include('compose/Button.html.twig', {'variant': 'default', 'size': 'default', 'type': 'button', 'ariaLabel': og_s(og_tpl(og_get(v_labels, ['addOf']), [og_get(v_d, ['name'])])), 'children': c_13}, with_context = false) }}\n            {%- endset -%}\n            {{ include('compose/Group.html.twig', {'gap': '4', 'align': 'center', 'justify': 'between', 'class': 'mt-auto', 'children': c_14}, with_context = false) }}\n          {%- endset -%}\n          {{ include('compose/Stack.html.twig', {'gap': '4', 'children': c_15}, with_context = false) }}\n        {%- endset -%}\n        {{ include('compose/Box.html.twig', {'class': og_s((og_t(og_eq(v_layout, 'cards')) ? 'rounded bg-card inset-ring inset-ring-border flex flex-col gap-4 p-4' : '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}, with_context = false) }}\n      {%- endfor %}\n    {%- endset -%}\n    {{ include('compose/Box.html.twig', {'class': og_s((og_t(og_eq(v_layout, 'cards')) ? 'grid grid-cols-1 gap-8 md:grid-cols-3' : 'flex flex-col gap-8')), 'attrs': og_attrs(['data-slot', 'items']), 'children': c_17}, with_context = false) }}\n  {%- endif %}\n{%- endset -%}\n{{ include('blocks/section-frame.html.twig', {'p': {'id': v_id, 'title': v_title, 'lead': v_lead, 'tone': v_tone, 'landmarkLabel': v_landmarkLabel}, 'children': og_markup(c_18)}, with_context = false) }}\n",
      "path": "blocks/recipe-kits.html.twig",
      "target": "blocks/recipe-kits.html.twig"
    }
  ],
  "meta": {
    "category": "commerce",
    "group": "food",
    "kind": "block",
    "tags": [
      "twig",
      "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": "twig",
  "title": "Recipe Kits",
  "type": "registry:block"
}
