{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Meal delivery as a week: one column per day with its meal.",
  "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/week-menu.json\n    Meal delivery as a week: one column per day (its name and delivery note) with the meal of that day as a small card (picture, name, weight, price). Axes: media (image, none), tone.\n    Props (p): id, title, lead, dishes, sections, empty, labels, media, 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_sections = (p.sections ?? null) -%}\n{%- set v_empty = (p.empty ?? '') -%}\n{%- set v_media = (p.media ?? 'image') -%}\n{%- set v_tone = (p.tone ?? 'default') -%}\n{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}\n{%- set c_10 -%}\n  {%- if og_t(og_eq(og_len(v_sections), 0)) %}\n    {{ include('blocks/empty-state.html.twig', {'p': {'icon': 'calendar', 'title': v_empty}}, with_context = false) }}\n  {%- else %}\n    {%- set c_9 -%}\n      {%- for v_s in og_l(v_sections) %}\n        {%- set c_8 -%}\n          {%- set c_1 -%}\n            {{ og_text(og_get(v_s, ['title'])) }}\n          {%- endset -%}\n          {{ include('compose/Text.html.twig', {'size': 'sm', 'weight': 'semibold', 'children': c_1}, with_context = false) }}\n          {%- set c_2 -%}\n            {{ og_text(og_get(v_s, ['note'])) }}\n          {%- endset -%}\n          {{ include('compose/Text.html.twig', {'size': 'xs', 'class': 'text-muted-foreground', 'children': c_2}, with_context = false) }}\n          {%- for v_d in og_l(v_dishes) %}\n            {%- if og_t(og_eq(og_get(v_d, ['tag']), og_get(v_s, ['key']))) %}\n              {%- set c_7 -%}\n                {%- if og_t(og_eq(v_media, 'image')) %}\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                {%- endif %}\n                {%- set c_3 -%}\n                  {{ og_text(og_get(v_d, ['name'])) }}\n                {%- endset -%}\n                {{ include('compose/Text.html.twig', {'size': 'sm', 'weight': 'semibold', 'children': c_3}, with_context = false) }}\n                {%- set c_6 -%}\n                  {%- set c_4 -%}\n                    {{ og_text(og_get(v_d, ['weight'])) }}\n                  {%- endset -%}\n                  {{ include('compose/Text.html.twig', {'size': 'xs', 'class': 'text-muted-foreground', 'children': c_4}, with_context = false) }}\n                  {%- set c_5 -%}\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-sm font-bold', 'children': c_5}, with_context = false) }}\n                {%- endset -%}\n                {{ include('compose/Group.html.twig', {'gap': '2', 'align': 'baseline', 'justify': 'between', 'children': c_6}, with_context = false) }}\n              {%- endset -%}\n              {{ include('compose/Stack.html.twig', {'gap': '2', 'class': 'rounded bg-card inset-ring inset-ring-border p-4', 'attrs': og_attrs(['data-slot', 'item']), 'children': c_7}, with_context = false) }}\n            {%- endif %}\n          {%- endfor %}\n        {%- endset -%}\n        {{ include('compose/Stack.html.twig', {'gap': '2', 'class': 'border-t-2 border-primary pt-4', 'attrs': og_attrs(['data-slot', 'day']), 'children': c_8}, with_context = false) }}\n      {%- endfor %}\n    {%- endset -%}\n    {{ include('compose/Box.html.twig', {'class': 'grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-5', 'attrs': og_attrs(['data-slot', 'items']), 'children': c_9}, 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_10)}, with_context = false) }}\n",
      "path": "blocks/week-menu.html.twig",
      "target": "blocks/week-menu.html.twig"
    }
  ],
  "meta": {
    "category": "commerce",
    "group": "food",
    "kind": "block",
    "tags": [
      "twig",
      "block"
    ]
  },
  "name": "week-menu",
  "registryDependencies": [
    "box",
    "empty-state",
    "group",
    "inline",
    "media-frame",
    "section-frame",
    "stack",
    "text",
    "utils"
  ],
  "runtime": "twig",
  "title": "Week Menu",
  "type": "registry:block"
}
