{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "The cart drawer in its open state, filled or empty.",
  "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/cart-drawer.json\n    The cart drawer in its open state, over a faded page: the head with a close button, the lines with a quantity field, the free-delivery bar, the totals and the button. The empty state shows an icon, a line and the way back. Static markup: opening and closing are the page's. Axes: state (filled, empty), media (image, none).\n    Props (p): id, lines, rows, labels, drawer, state, media, landmarkLabel. *}\n{var $v_id = ($p['id'] ?? null)}\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_state = ($p['state'] ?? 'filled')}\n{var $v_media = ($p['media'] ?? 'image')}\n{var $v_landmarkLabel = ($p['landmarkLabel'] ?? null)}\n{capture $c_11}\n  {capture $c_10}\n    {capture $c_9}\n      {capture $c_1}\n        {=og_include('compose/Box.latte', ['class' => 'h-8 w-48 rounded bg-background'])|noescape}\n        {=og_include('compose/Box.latte', ['class' => 'h-40 rounded bg-background'])|noescape}\n        {=og_include('compose/Box.latte', ['class' => 'h-40 rounded bg-background'])|noescape}\n      {/capture}\n      {=og_include('compose/Box.latte', ['class' => 'hidden flex-1 flex-col gap-4 p-8 sm:flex', 'attrs' => og_attrs(['aria-hidden', 'true']), 'children' => (string) $c_1])|noescape}\n      {capture $c_8}\n        {capture $c_4}\n          {capture $c_2}\n            {=og_text(og_get($v_drawer, ['title']))}\n          {/capture}\n          {=og_include('compose/Title.latte', ['as' => 2, 'size' => 'lg', 'weight' => 'semibold', 'children' => (string) $c_2])|noescape}\n          {capture $c_3}\n            {=og_include('icons/LucideIcon.latte', ['name' => 'x', 'size' => 16])|noescape}\n          {/capture}\n          {=og_include('compose/Button.latte', ['variant' => 'ghost', 'size' => 'sm', 'layout' => 'icon', 'ariaLabel' => og_s(og_get($v_drawer, ['close'])), 'children' => (string) $c_3])|noescape}\n        {/capture}\n        {=og_include('compose/Group.latte', ['gap' => '4', 'align' => 'center', 'justify' => 'between', 'class' => 'border-b border-border p-4', 'children' => (string) $c_4])|noescape}\n        {if og_t(og_or([og_eq($v_state, 'empty'), og_eq(og_len($v_lines), 0)]))}\n          {capture $c_7}\n            {capture $f_5}\n              {capture $c_6}\n                {=og_text(og_get($v_drawer, ['browse']))}\n              {/capture}\n              {=og_include('compose/Button.latte', ['variant' => 'outline', 'size' => 'default', 'children' => (string) $c_6])|noescape}\n            {/capture}\n            {=og_include('blocks/empty-state.latte', ['p' => ['icon' => 'shopping-bag', 'title' => og_get($v_drawer, ['empty']), 'text' => og_get($v_drawer, ['emptyText']), 'action' => og_markup($f_5)]])|noescape}\n          {/capture}\n          {=og_include('compose/Box.latte', ['class' => 'flex flex-1 flex-col justify-center p-4', 'attrs' => og_attrs(['data-slot', 'empty']), 'children' => (string) $c_7])|noescape}\n        {else}\n          {=og_include('blocks/drawer-lines.latte', ['p' => ['field' => og_tpl('{0}-qty', [$v_id]), 'lines' => $v_lines, 'rows' => $v_rows, 'labels' => $v_labels, 'drawer' => $v_drawer, 'media' => $v_media]])|noescape}\n        {/if}\n      {/capture}\n      {=og_include('compose/Box.latte', ['class' => 'flex w-full flex-col bg-background shadow-lg sm:max-w-sm', 'attrs' => og_attrs(['role', 'group', 'aria-label', og_get($v_drawer, ['title']), 'data-slot', 'drawer']), 'children' => (string) $c_8])|noescape}\n    {/capture}\n    {=og_include('compose/Box.latte', ['class' => 'flex min-h-160 overflow-hidden rounded bg-muted inset-ring inset-ring-border', 'children' => (string) $c_9])|noescape}\n  {/capture}\n  {=og_include('compose/Container.latte', ['class' => 'mx-auto w-full max-w-6xl px-4', 'attrs' => og_attrs(['data-slot', 'container']), 'children' => (string) $c_10])|noescape}\n{/capture}\n{=og_include('compose/Block.latte', ['tag' => 'section', 'class' => 'py-8', 'attrs' => og_attrs(['aria-label', og_coalesce([$v_landmarkLabel, og_get($v_drawer, ['title'])]), 'data-slot', 'section']), 'children' => (string) $c_11])|noescape}\n",
      "path": "blocks/cart-drawer.latte",
      "target": "blocks/cart-drawer.latte"
    }
  ],
  "meta": {
    "category": "commerce",
    "group": "checkout",
    "kind": "block",
    "tags": [
      "latte",
      "block"
    ]
  },
  "name": "cart-drawer",
  "registryDependencies": [
    "block",
    "box",
    "button",
    "container",
    "drawer-lines",
    "empty-state",
    "group",
    "lucide-icon",
    "title",
    "utils"
  ],
  "runtime": "latte",
  "title": "Cart Drawer",
  "type": "registry:block"
}
