{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Subtotal, shipping, tax and 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/order-summary.json\n    The totals of an order: subtotal, shipping, tax and the total, with a checkout button and a note. Axes: layout (card, plain), cta (show, hide), note (show, hide), density, tone.\n    Props (p): id, title, rows, empty, labels, layout, cta, note, tone, density, landmarkLabel. -#}\n{%- set v_id = (p.id ?? null) -%}\n{%- set v_title = (p.title ?? null) -%}\n{%- set v_rows = (p.rows ?? null) -%}\n{%- set v_empty = (p.empty ?? '') -%}\n{%- set v_labels = (p.labels ?? null) -%}\n{%- set v_layout = (p.layout ?? 'card') -%}\n{%- set v_cta = (p.cta ?? 'show') -%}\n{%- set v_note = (p.note ?? 'show') -%}\n{%- set v_tone = (p.tone ?? 'default') -%}\n{%- set v_density = (p.density ?? 'default') -%}\n{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}\n{%- set c_9 -%}\n  {%- if og_t(og_eq(og_len(v_rows), 0)) %}\n    {{ include('blocks/empty-state.html.twig', {'p': {'icon': 'receipt', 'title': v_empty}}, with_context = false) }}\n  {%- else %}\n    {%- set c_8 -%}\n      {%- set c_7 -%}\n        {%- set c_4 -%}\n          {%- for v_row in og_l(v_rows) %}\n            {%- set c_3 -%}\n              {%- set c_1 -%}\n                {{ og_text(og_get(v_row, ['label'])) }}\n              {%- endset -%}\n              {{ include('compose/Inline.html.twig', {'children': c_1}, with_context = false) }}\n              {%- set c_2 -%}\n                {{ og_text(og_money(og_get(v_row, ['amount']), og_get(v_row, ['currency']))) }}\n              {%- endset -%}\n              {{ include('compose/Inline.html.twig', {'children': c_2}, with_context = false) }}\n            {%- endset -%}\n            {{ include('compose/ListItem.html.twig', {'class': og_s(og_cnv(['flex items-center justify-between gap-4', (og_t(og_get(v_row, ['strong'])) ? 'border-t border-border pt-4 text-base font-bold' : 'text-sm text-muted-foreground')])), 'attrs': og_attrs(['data-slot', 'item']), 'children': c_3}, with_context = false) }}\n          {%- endfor %}\n        {%- endset -%}\n        {{ include('compose/List.html.twig', {'tag': 'ul', 'class': 'flex flex-col gap-4', 'children': c_4}, with_context = false) }}\n        {%- if og_t(og_eq(v_cta, 'show')) %}\n          {%- set c_5 -%}\n            {{ og_text(og_get(v_labels, ['checkout'])) }}\n          {%- endset -%}\n          {{ include('compose/Button.html.twig', {'variant': 'default', 'size': 'default', 'class': 'w-full', 'children': c_5}, with_context = false) }}\n        {%- endif %}\n        {%- if og_t(og_eq(v_note, 'show')) %}\n          {%- set c_6 -%}\n            {{ og_text(og_get(v_labels, ['note'])) }}\n          {%- endset -%}\n          {{ include('compose/Text.html.twig', {'size': 'xs', 'class': 'text-muted-foreground', 'children': c_6}, with_context = false) }}\n        {%- endif %}\n      {%- endset -%}\n      {{ include('compose/Stack.html.twig', {'gap': '4', 'align': 'stretch', 'children': c_7}, with_context = false) }}\n    {%- endset -%}\n    {{ include('compose/Box.html.twig', {'class': og_s(og_cnv([(og_t(og_eq(v_layout, 'card')) ? 'rounded bg-card p-6 inset-ring inset-ring-border' : '')])), 'attrs': og_attrs(['data-slot', 'summary']), 'children': c_8}, with_context = false) }}\n  {%- endif %}\n{%- endset -%}\n{{ include('blocks/section-frame.html.twig', {'p': {'id': v_id, 'title': v_title, 'tone': v_tone, 'density': v_density, 'measure': 'md', 'landmarkLabel': v_landmarkLabel}, 'children': og_markup(c_9)}, with_context = false) }}\n",
      "path": "blocks/order-summary.html.twig",
      "target": "blocks/order-summary.html.twig"
    }
  ],
  "meta": {
    "category": "commerce",
    "group": "checkout",
    "kind": "block",
    "tags": [
      "twig",
      "block"
    ]
  },
  "name": "order-summary",
  "registryDependencies": [
    "box",
    "button",
    "empty-state",
    "inline",
    "list",
    "list-item",
    "section-frame",
    "stack",
    "text",
    "utils"
  ],
  "runtime": "twig",
  "title": "Order Summary",
  "type": "registry:block"
}
