{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "The filled body of the CartDrawer: the lines with a quantity field, then the free-delivery bar, the subtotal and total and the button.",
  "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/drawer-lines.json\n    The filled body of the CartDrawer: the lines with a quantity field, then the free-delivery bar, the subtotal and total and the button.\n    Props (p): lines, rows, labels, drawer, media, field. *}\n{var $v_lines = ($p['lines'] ?? null)}\n{var $v_rows = ($p['rows'] ?? null)}\n{var $v_labels = ($p['labels'] ?? null)}\n{var $v_drawer = ($p['drawer'] ?? null)}\n{var $v_media = ($p['media'] ?? 'image')}\n{var $v_field = ($p['field'] ?? 'qty')}\n{capture $c_7}\n  {foreach og_l($v_lines) as $v_line}\n    {capture $c_6}\n      {if og_t(og_eq($v_media, 'image'))}\n        {=og_include('blocks/media-frame.latte', ['p' => ['alt' => og_get($v_line, ['name']), 'src' => og_get($v_line, ['image']), 'ratio' => '1/1', 'className' => og_cnv(['size-16 shrink-0'])]])|noescape}\n      {/if}\n      {capture $c_5}\n        {capture $c_3}\n          {capture $c_1}\n            {=og_text(og_get($v_line, ['name']))}\n          {/capture}\n          {=og_include('compose/Text.latte', ['size' => 'sm', 'weight' => 'semibold', 'children' => (string) $c_1])|noescape}\n          {capture $c_2}\n            {=og_text(og_money(og_mul(og_get($v_line, ['price']), og_get($v_line, ['qty'])), og_get($v_line, ['currency'])))}\n          {/capture}\n          {=og_include('compose/Inline.latte', ['class' => 'text-sm font-medium', 'children' => (string) $c_2])|noescape}\n        {/capture}\n        {=og_include('compose/Group.latte', ['gap' => '2', 'justify' => 'between', 'align' => 'start', 'children' => (string) $c_3])|noescape}\n        {capture $c_4}\n          {=og_text(og_get($v_line, ['variant']))}\n        {/capture}\n        {=og_include('compose/Text.latte', ['size' => 'xs', 'class' => 'text-muted-foreground', 'children' => (string) $c_4])|noescape}\n        {=og_include('blocks/number-field.latte', ['p' => ['value' => og_str(og_get($v_line, ['qty'])), 'name' => og_tpl('{0}-{1}', [$v_field, og_get($v_line, ['id'])]), 'min' => '1', 'label' => og_get($v_labels, ['qty']), 'decrease' => og_get($v_labels, ['decrease']), 'increase' => og_get($v_labels, ['increase'])]])|noescape}\n      {/capture}\n      {=og_include('compose/Stack.latte', ['gap' => '2', 'align' => 'stretch', 'class' => 'flex-1', 'children' => (string) $c_5])|noescape}\n    {/capture}\n    {=og_include('compose/Group.latte', ['gap' => '4', 'align' => 'start', 'attrs' => og_attrs(['data-slot', 'item']), 'children' => (string) $c_6])|noescape}\n  {/foreach}\n{/capture}\n{=og_include('compose/Stack.latte', ['gap' => '4', 'align' => 'stretch', 'class' => 'flex-1 p-4', 'attrs' => og_attrs(['data-slot', 'lines']), 'children' => (string) $c_7])|noescape}\n{capture $c_15}\n  {capture $c_9}\n    {capture $c_8}\n      {=og_text(og_get($v_drawer, ['progress']))}\n    {/capture}\n    {=og_include('compose/Text.latte', ['size' => 'sm', 'children' => (string) $c_8])|noescape}\n    {=og_include('compose/Progress.latte', ['value' => '96', 'max' => '100', 'attrs' => og_attrs(['aria-label', og_get($v_drawer, ['progress'])])])|noescape}\n  {/capture}\n  {=og_include('compose/Stack.latte', ['gap' => '2', 'align' => 'stretch', 'class' => 'rounded bg-muted p-4', 'attrs' => og_attrs(['data-slot', 'progress']), 'children' => (string) $c_9])|noescape}\n  {capture $c_13}\n    {foreach og_l($v_rows) as $v_row}\n      {var $v_i = $iterator->counter0}\n      {if og_t((og_t(og_get($v_row, ['strong'])) ? true : og_eq($v_i, 0)))}\n        {capture $c_12}\n          {capture $c_10}\n            {=og_text(og_get($v_row, ['label']))}\n          {/capture}\n          {=og_include('compose/Inline.latte', ['children' => (string) $c_10])|noescape}\n          {capture $c_11}\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_11])|noescape}\n        {/capture}\n        {=og_include('compose/ListItem.latte', ['class' => og_s((og_t(og_get($v_row, ['strong'])) ? 'flex justify-between text-base font-bold' : 'flex justify-between text-sm text-muted-foreground')), 'attrs' => og_attrs(['data-slot', 'summary-row']), 'children' => (string) $c_12])|noescape}\n      {/if}\n    {/foreach}\n  {/capture}\n  {=og_include('compose/List.latte', ['tag' => 'ul', 'class' => 'flex flex-col gap-2', 'children' => (string) $c_13])|noescape}\n  {capture $c_14}\n    {=og_text(og_get($v_labels, ['checkout']))}\n  {/capture}\n  {=og_include('compose/Button.latte', ['variant' => 'default', 'size' => 'lg', 'class' => 'w-full', 'children' => (string) $c_14])|noescape}\n{/capture}\n{=og_include('compose/Stack.latte', ['gap' => '4', 'align' => 'stretch', 'class' => 'border-t border-border p-4', 'attrs' => og_attrs(['data-slot', 'drawer-lines']), 'children' => (string) $c_15])|noescape}\n",
      "path": "blocks/drawer-lines.latte",
      "target": "blocks/drawer-lines.latte"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "latte",
      "component"
    ]
  },
  "name": "drawer-lines",
  "registryDependencies": [
    "button",
    "group",
    "inline",
    "list",
    "list-item",
    "media-frame",
    "number-field",
    "progress",
    "stack",
    "text",
    "utils"
  ],
  "runtime": "latte",
  "title": "Drawer Lines",
  "type": "registry:component"
}
