{
  "$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 = og_def(p['id'], none) -%}\n{%- set v_title = og_def(p['title'], none) -%}\n{%- set v_rows = og_def(p['rows'], none) -%}\n{%- set v_empty = og_def(p['empty'], '') -%}\n{%- set v_labels = og_def(p['labels'], none) -%}\n{%- set v_layout = og_def(p['layout'], 'card') -%}\n{%- set v_cta = og_def(p['cta'], 'show') -%}\n{%- set v_note = og_def(p['note'], 'show') -%}\n{%- set v_tone = og_def(p['tone'], 'default') -%}\n{%- set v_density = og_def(p['density'], 'default') -%}\n{%- set v_landmarkLabel = og_def(p['landmarkLabel'], none) -%}\n{%- set c_9 -%}\n  {%- if og_t(og_eq(og_len(v_rows), 0)) %}\n    {{ og_include('blocks/empty-state.html.j2', {'p': {'icon': 'receipt', 'title': v_empty}}) }}\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              {{ og_include('compose/inline.html.j2', {'p': {}, 'children': c_1}) }}\n              {%- set c_2 -%}\n                {{ og_text(og_money(og_get(v_row, ['amount']), og_get(v_row, ['currency']))) }}\n              {%- endset -%}\n              {{ og_include('compose/inline.html.j2', {'p': {}, 'children': c_2}) }}\n            {%- endset -%}\n            {{ og_include('compose/list-item.html.j2', {'p': {'Class': og_s(og_cnv(['flex items-center justify-between gap-4', ('border-t border-border pt-4 text-base font-bold' if og_t(og_get(v_row, ['strong'])) else 'text-sm text-muted-foreground')])), 'Attrs': og_attrs(['data-slot', 'item'])}, 'children': c_3}) }}\n          {%- endfor %}\n        {%- endset -%}\n        {{ og_include('compose/list.html.j2', {'p': {'Tag': 'ul', 'Class': 'flex flex-col gap-4'}, 'children': c_4}) }}\n        {%- if og_t(og_eq(v_cta, 'show')) %}\n          {%- set c_5 -%}\n            {{ og_text(og_get(v_labels, ['checkout'])) }}\n          {%- endset -%}\n          {{ og_include('compose/button.html.j2', {'p': {'Variant': 'default', 'Size': 'default', 'Class': 'w-full'}, 'children': c_5}) }}\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          {{ og_include('compose/text.html.j2', {'p': {'Size': 'xs', 'Class': 'text-muted-foreground'}, 'children': c_6}) }}\n        {%- endif %}\n      {%- endset -%}\n      {{ og_include('compose/stack.html.j2', {'p': {'Gap': '4', 'Align': 'stretch'}, 'children': c_7}) }}\n    {%- endset -%}\n    {{ og_include('compose/box.html.j2', {'p': {'Class': og_s(og_cnv([('rounded bg-card p-6 inset-ring inset-ring-border' if og_t(og_eq(v_layout, 'card')) else '')])), 'Attrs': og_attrs(['data-slot', 'summary'])}, 'children': c_8}) }}\n  {%- endif %}\n{%- endset -%}\n{{ og_include('blocks/section-frame.html.j2', {'p': {'id': v_id, 'title': v_title, 'tone': v_tone, 'density': v_density, 'measure': 'md', 'landmarkLabel': v_landmarkLabel}, 'children': og_markup(c_9)}) }}\n",
      "path": "blocks/order-summary.html.j2",
      "target": "blocks/order-summary.html.j2"
    }
  ],
  "meta": {
    "category": "commerce",
    "group": "checkout",
    "kind": "block",
    "tags": [
      "jinja2",
      "block"
    ]
  },
  "name": "order-summary",
  "registryDependencies": [
    "box",
    "button",
    "empty-state",
    "inline",
    "list",
    "list-item",
    "section-frame",
    "stack",
    "text",
    "utils"
  ],
  "runtime": "jinja2",
  "title": "Order Summary",
  "type": "registry:block"
}
