{
  "$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{var $v_id = ($p['id'] ?? null)}\n{var $v_title = ($p['title'] ?? null)}\n{var $v_rows = ($p['rows'] ?? null)}\n{var $v_empty = ($p['empty'] ?? '')}\n{var $v_labels = ($p['labels'] ?? null)}\n{var $v_layout = ($p['layout'] ?? 'card')}\n{var $v_cta = ($p['cta'] ?? 'show')}\n{var $v_note = ($p['note'] ?? 'show')}\n{var $v_tone = ($p['tone'] ?? 'default')}\n{var $v_density = ($p['density'] ?? 'default')}\n{var $v_landmarkLabel = ($p['landmarkLabel'] ?? null)}\n{capture $c_9}\n  {if og_t(og_eq(og_len($v_rows), 0))}\n    {=og_include('blocks/empty-state.latte', ['p' => ['icon' => 'receipt', 'title' => $v_empty]])|noescape}\n  {else}\n    {capture $c_8}\n      {capture $c_7}\n        {capture $c_4}\n          {foreach og_l($v_rows) as $v_row}\n            {capture $c_3}\n              {capture $c_1}\n                {=og_text(og_get($v_row, ['label']))}\n              {/capture}\n              {=og_include('compose/Inline.latte', ['children' => (string) $c_1])|noescape}\n              {capture $c_2}\n                {=og_text(og_money(og_get($v_row, ['amount']), og_get($v_row, ['currency'])))}\n              {/capture}\n              {=og_include('compose/Inline.latte', ['children' => (string) $c_2])|noescape}\n            {/capture}\n            {=og_include('compose/ListItem.latte', ['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' => (string) $c_3])|noescape}\n          {/foreach}\n        {/capture}\n        {=og_include('compose/List.latte', ['tag' => 'ul', 'class' => 'flex flex-col gap-4', 'children' => (string) $c_4])|noescape}\n        {if og_t(og_eq($v_cta, 'show'))}\n          {capture $c_5}\n            {=og_text(og_get($v_labels, ['checkout']))}\n          {/capture}\n          {=og_include('compose/Button.latte', ['variant' => 'default', 'size' => 'default', 'class' => 'w-full', 'children' => (string) $c_5])|noescape}\n        {/if}\n        {if og_t(og_eq($v_note, 'show'))}\n          {capture $c_6}\n            {=og_text(og_get($v_labels, ['note']))}\n          {/capture}\n          {=og_include('compose/Text.latte', ['size' => 'xs', 'class' => 'text-muted-foreground', 'children' => (string) $c_6])|noescape}\n        {/if}\n      {/capture}\n      {=og_include('compose/Stack.latte', ['gap' => '4', 'align' => 'stretch', 'children' => (string) $c_7])|noescape}\n    {/capture}\n    {=og_include('compose/Box.latte', ['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' => (string) $c_8])|noescape}\n  {/if}\n{/capture}\n{=og_include('blocks/section-frame.latte', ['p' => ['id' => $v_id, 'title' => $v_title, 'tone' => $v_tone, 'density' => $v_density, 'measure' => 'md', 'landmarkLabel' => $v_landmarkLabel], 'children' => og_markup($c_9)])|noescape}\n",
      "path": "blocks/order-summary.latte",
      "target": "blocks/order-summary.latte"
    }
  ],
  "meta": {
    "category": "commerce",
    "group": "checkout",
    "kind": "block",
    "tags": [
      "latte",
      "block"
    ]
  },
  "name": "order-summary",
  "registryDependencies": [
    "box",
    "button",
    "empty-state",
    "inline",
    "list",
    "list-item",
    "section-frame",
    "stack",
    "text",
    "utils"
  ],
  "runtime": "latte",
  "title": "Order Summary",
  "type": "registry:block"
}
