{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Pizza cards with a size and a crust radio group and an add button.",
  "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/pizza-picker.json\n    Pizzas with a picker on each card: the picture, name and toppings, a radio group of sizes and one of crusts (each a fieldset with role radiogroup), the price and an add button. Axes: layout (cards, rows), tone.\n    Props (p): id, title, lead, dishes, empty, labels, sizes, crusts, 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_sizes = (p.sizes ?? null) -%}\n{%- set v_crusts = (p.crusts ?? null) -%}\n{%- set v_layout = (p.layout ?? 'cards') -%}\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_dishes), 0)) %}\n    {{ include('blocks/empty-state.html.twig', {'p': {'icon': 'star', 'title': v_empty}}, with_context = false) }}\n  {%- else %}\n    {%- set c_9 -%}\n      {%- for v_d in og_l(v_dishes) %}\n        {%- set c_8 -%}\n          {{ include('blocks/media-frame.html.twig', {'p': {'alt': og_get(v_d, ['name']), 'src': og_get(v_d, ['image']), 'ratio': '1/1'}}, with_context = false) }}\n          {%- set c_7 -%}\n            {%- set c_3 -%}\n              {%- set c_1 -%}\n                {{ og_text(og_get(v_d, ['name'])) }}\n              {%- endset -%}\n              {{ include('compose/Text.html.twig', {'size': 'lg', 'weight': 'semibold', 'children': c_1}, with_context = false) }}\n              {%- set c_2 -%}\n                {{ og_text(og_get(v_d, ['summary'])) }}\n              {%- endset -%}\n              {{ include('compose/Text.html.twig', {'size': 'sm', 'class': 'text-muted-foreground', 'children': c_2}, with_context = false) }}\n            {%- endset -%}\n            {{ include('compose/Stack.html.twig', {'gap': '2', 'children': c_3}, with_context = false) }}\n            {{ include('blocks/option-chips.html.twig', {'p': {'name': og_tpl('{0}-size-{1}', [v_id, og_get(v_d, ['id'])]), 'legend': og_get(v_labels, ['size']), 'options': v_sizes}}, with_context = false) }}\n            {{ include('blocks/option-chips.html.twig', {'p': {'name': og_tpl('{0}-crust-{1}', [v_id, og_get(v_d, ['id'])]), 'legend': og_get(v_labels, ['crust']), 'options': v_crusts}}, with_context = false) }}\n            {%- set c_6 -%}\n              {%- set c_4 -%}\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_4}, with_context = false) }}\n              {%- set c_5 -%}\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_5}, with_context = false) }}\n            {%- endset -%}\n            {{ include('compose/Group.html.twig', {'gap': '4', 'align': 'center', 'justify': 'between', 'class': 'mt-auto', 'children': c_6}, with_context = false) }}\n          {%- endset -%}\n          {{ include('compose/Stack.html.twig', {'gap': '4', 'class': og_s((og_t(og_eq(v_layout, 'rows')) ? 'md:col-span-2' : '')), 'children': c_7}, with_context = false) }}\n        {%- endset -%}\n        {{ include('compose/Box.html.twig', {'class': og_s((og_t(og_eq(v_layout, 'rows')) ? 'rounded bg-card inset-ring inset-ring-border grid grid-cols-1 gap-4 p-4 md:grid-cols-3' : 'rounded bg-card inset-ring inset-ring-border flex flex-col gap-4 p-4')), 'attrs': og_attrs(['data-slot', 'item']), 'children': c_8}, with_context = false) }}\n      {%- endfor %}\n    {%- endset -%}\n    {{ include('compose/Box.html.twig', {'class': og_s((og_t(og_eq(v_layout, 'rows')) ? 'flex flex-col gap-4' : 'grid grid-cols-1 gap-4 md:grid-cols-3')), '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/pizza-picker.html.twig",
      "target": "blocks/pizza-picker.html.twig"
    }
  ],
  "meta": {
    "category": "commerce",
    "group": "food",
    "kind": "block",
    "tags": [
      "twig",
      "block"
    ]
  },
  "name": "pizza-picker",
  "registryDependencies": [
    "box",
    "button",
    "empty-state",
    "group",
    "inline",
    "media-frame",
    "option-chips",
    "section-frame",
    "stack",
    "text",
    "utils"
  ],
  "runtime": "twig",
  "title": "Pizza Picker",
  "type": "registry:block"
}
