{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Choose the meat, the weight and the sides of a grill (mangal) dish.",
  "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/grill-builder.json\n    A grill (mangal) dish builder: the meat as picture cards in a radio group, the weight as chips, the sides as checkboxes with prices, then a summary with the live total and the order button. Axes: layout (split, stacked), tone.\n    Props (p): id, title, lead, labels, meats, weights, sides, total, currency, 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_labels = (p.labels ?? null) -%}\n{%- set v_meats = (p.meats ?? null) -%}\n{%- set v_weights = (p.weights ?? null) -%}\n{%- set v_sides = (p.sides ?? null) -%}\n{%- set v_total = (p.total ?? null) -%}\n{%- set v_currency = (p.currency ?? null) -%}\n{%- set v_layout = (p.layout ?? 'split') -%}\n{%- set v_tone = (p.tone ?? 'default') -%}\n{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}\n{%- set c_9 -%}\n  {%- set c_8 -%}\n    {%- set c_1 -%}\n      {{ include('blocks/meat-cards.html.twig', {'p': {'name': og_tpl('{0}-meat', [v_id]), 'legend': og_get(v_labels, ['meat']), 'options': v_meats}}, with_context = false) }}\n      {{ include('blocks/option-chips.html.twig', {'p': {'name': og_tpl('{0}-weight', [v_id]), 'legend': og_get(v_labels, ['weight']), 'options': v_weights, 'extra': 'note'}}, with_context = false) }}\n      {{ include('blocks/side-checks.html.twig', {'p': {'name': og_tpl('{0}-sides', [v_id]), 'legend': og_get(v_labels, ['sides']), 'options': v_sides}}, with_context = false) }}\n    {%- endset -%}\n    {{ include('compose/Box.html.twig', {'class': og_s((og_t(og_eq(v_layout, 'split')) ? 'flex flex-col gap-8 lg:col-span-2' : 'flex flex-col gap-8 lg:col-span-3')), 'attrs': og_attrs(['data-slot', 'steps']), 'children': c_1}, with_context = false) }}\n    {%- set c_7 -%}\n      {%- set c_2 -%}\n        {{ og_text(og_get(v_labels, ['summary'])) }}\n      {%- endset -%}\n      {{ include('compose/Text.html.twig', {'size': 'lg', 'weight': 'semibold', 'children': c_2}, with_context = false) }}\n      {%- set c_5 -%}\n        {%- set c_3 -%}\n          {{ og_text(og_get(v_labels, ['total'])) }}\n        {%- endset -%}\n        {{ include('compose/Text.html.twig', {'size': 'sm', 'class': 'text-muted-foreground', 'children': c_3}, with_context = false) }}\n        {%- set c_4 -%}\n          {{ og_text(og_money(v_total, v_currency)) }}\n        {%- endset -%}\n        {{ include('compose/Inline.html.twig', {'class': 'text-2xl font-bold', 'attrs': og_attrs(['role', 'status', 'aria-live', 'polite', 'data-slot', 'total']), 'children': c_4}, with_context = false) }}\n      {%- endset -%}\n      {{ include('compose/Group.html.twig', {'gap': '2', 'align': 'baseline', 'justify': 'between', 'children': c_5}, with_context = false) }}\n      {%- set c_6 -%}\n        {{ include('icons/LucideIcon.html.twig', {'name': 'shopping-bag', 'size': 16}, with_context = false) }}\n        {{ og_text(og_get(v_labels, ['add'])) }}\n      {%- endset -%}\n      {{ include('compose/Button.html.twig', {'variant': 'default', 'size': 'lg', 'type': 'button', 'class': 'w-full', '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, 'split')) ? 'rounded bg-card inset-ring inset-ring-border flex flex-col gap-4 p-6 lg:sticky lg:top-8' : 'rounded bg-card inset-ring inset-ring-border flex flex-col gap-4 p-6')), 'attrs': og_attrs(['data-slot', 'summary']), 'children': c_7}, with_context = false) }}\n  {%- endset -%}\n  {{ include('compose/Box.html.twig', {'class': 'grid grid-cols-1 items-start gap-8 lg:grid-cols-3', 'children': c_8}, with_context = false) }}\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_9)}, with_context = false) }}\n",
      "path": "blocks/grill-builder.html.twig",
      "target": "blocks/grill-builder.html.twig"
    }
  ],
  "meta": {
    "category": "commerce",
    "group": "food",
    "kind": "block",
    "tags": [
      "twig",
      "block"
    ]
  },
  "name": "grill-builder",
  "registryDependencies": [
    "box",
    "button",
    "group",
    "inline",
    "lucide-icon",
    "meat-cards",
    "option-chips",
    "section-frame",
    "side-checks",
    "stack",
    "text",
    "utils"
  ],
  "runtime": "twig",
  "title": "Grill Builder",
  "type": "registry:block"
}
