{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Pick a main, a side and a drink beside the total.",
  "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/combo-builder.json\n    A set (combo) builder: three numbered steps, each a radio group of cards with the price (main, side, drink), beside or under a summary with the live total and the order button. Axes: layout (split, stacked), tone.\n    Props (p): id, title, lead, labels, mains, sides, drinks, total, currency, 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_labels = og_def(p['labels'], none) -%}\n{%- set v_mains = og_def(p['mains'], none) -%}\n{%- set v_sides = og_def(p['sides'], none) -%}\n{%- set v_drinks = og_def(p['drinks'], none) -%}\n{%- set v_total = og_def(p['total'], none) -%}\n{%- set v_currency = og_def(p['currency'], none) -%}\n{%- set v_layout = og_def(p['layout'], 'split') -%}\n{%- set v_tone = og_def(p['tone'], 'default') -%}\n{%- set v_landmarkLabel = og_def(p['landmarkLabel'], none) -%}\n{%- set c_9 -%}\n  {%- set c_8 -%}\n    {%- set c_1 -%}\n      {{ og_include('blocks/option-chips.html.j2', {'p': {'name': og_tpl('{0}-main', [v_id]), 'legend': og_get(v_labels, ['main']), 'options': v_mains, 'extra': 'price', 'layout': 'column'}}) }}\n      {{ og_include('blocks/option-chips.html.j2', {'p': {'name': og_tpl('{0}-side', [v_id]), 'legend': og_get(v_labels, ['side']), 'options': v_sides, 'extra': 'price', 'layout': 'column'}}) }}\n      {{ og_include('blocks/option-chips.html.j2', {'p': {'name': og_tpl('{0}-drink', [v_id]), 'legend': og_get(v_labels, ['drink']), 'options': v_drinks, 'extra': 'price', 'layout': 'column'}}) }}\n    {%- endset -%}\n    {{ og_include('compose/box.html.j2', {'p': {'Class': og_s(('flex flex-col gap-8 lg:col-span-2' if og_t(og_eq(v_layout, 'split')) else 'flex flex-col gap-8 lg:col-span-3')), 'Attrs': og_attrs(['data-slot', 'steps'])}, 'children': c_1}) }}\n    {%- set c_7 -%}\n      {%- set c_2 -%}\n        {{ og_text(og_get(v_labels, ['summary'])) }}\n      {%- endset -%}\n      {{ og_include('compose/text.html.j2', {'p': {'Size': 'lg', 'Weight': 'semibold'}, 'children': c_2}) }}\n      {%- set c_5 -%}\n        {%- set c_3 -%}\n          {{ og_text(og_get(v_labels, ['total'])) }}\n        {%- endset -%}\n        {{ og_include('compose/text.html.j2', {'p': {'Size': 'sm', 'Class': 'text-muted-foreground'}, 'children': c_3}) }}\n        {%- set c_4 -%}\n          {{ og_text(og_money(v_total, v_currency)) }}\n        {%- endset -%}\n        {{ og_include('compose/inline.html.j2', {'p': {'Class': 'text-2xl font-bold', 'Attrs': og_attrs(['role', 'status', 'aria-live', 'polite', 'data-slot', 'total'])}, 'children': c_4}) }}\n      {%- endset -%}\n      {{ og_include('compose/group.html.j2', {'p': {'Gap': '2', 'Align': 'baseline', 'Justify': 'between'}, 'children': c_5}) }}\n      {%- set c_6 -%}\n        {{ og_include('icons/lucide-icon.html.j2', {'p': {'Name': 'shopping-bag', 'Size': 16}}) }}\n        {{ og_text(og_get(v_labels, ['add'])) }}\n      {%- endset -%}\n      {{ og_include('compose/button.html.j2', {'p': {'Variant': 'default', 'Size': 'lg', 'Type': 'button', 'Class': 'w-full'}, 'children': c_6}) }}\n    {%- endset -%}\n    {{ og_include('compose/stack.html.j2', {'p': {'Gap': '4', 'Class': og_s(('rounded bg-card inset-ring inset-ring-border flex flex-col gap-4 p-6 lg:sticky lg:top-8' if og_t(og_eq(v_layout, 'split')) else 'rounded bg-card inset-ring inset-ring-border flex flex-col gap-4 p-6')), 'Attrs': og_attrs(['data-slot', 'summary'])}, 'children': c_7}) }}\n  {%- endset -%}\n  {{ og_include('compose/box.html.j2', {'p': {'Class': 'grid grid-cols-1 items-start gap-8 lg:grid-cols-3'}, 'children': c_8}) }}\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_9)}) }}\n",
      "path": "blocks/combo-builder.html.j2",
      "target": "blocks/combo-builder.html.j2"
    }
  ],
  "meta": {
    "category": "commerce",
    "group": "food",
    "kind": "block",
    "tags": [
      "jinja2",
      "block"
    ]
  },
  "name": "combo-builder",
  "registryDependencies": [
    "box",
    "button",
    "group",
    "inline",
    "lucide-icon",
    "option-chips",
    "section-frame",
    "stack",
    "text",
    "utils"
  ],
  "runtime": "jinja2",
  "title": "Combo Builder",
  "type": "registry:block"
}
