{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Cards with a quantity field and an add button, under a live cart count.",
  "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/dish-cart-grid.json\n    Dishes added to the cart from the card: the live cart count over a grid of cards, each with a picture, name, weight, price and a quantity field named after the dish beside the add button. Axes: media (image, none), tone.\n    Props (p): id, title, lead, dishes, empty, labels, count, media, tone, landmarkLabel. *}\n{var $v_id = ($p['id'] ?? null)}\n{var $v_title = ($p['title'] ?? null)}\n{var $v_lead = ($p['lead'] ?? '')}\n{var $v_dishes = ($p['dishes'] ?? null)}\n{var $v_empty = ($p['empty'] ?? '')}\n{var $v_labels = ($p['labels'] ?? null)}\n{var $v_count = ($p['count'] ?? 0)}\n{var $v_media = ($p['media'] ?? 'image')}\n{var $v_tone = ($p['tone'] ?? 'default')}\n{var $v_landmarkLabel = ($p['landmarkLabel'] ?? null)}\n{capture $c_11}\n  {if og_t(og_eq(og_len($v_dishes), 0))}\n    {=og_include('blocks/empty-state.latte', ['p' => ['icon' => 'shopping-bag', 'title' => $v_empty]])|noescape}\n  {else}\n    {capture $c_10}\n      {capture $c_1}\n        {=og_include('blocks/cart-count.latte', ['p' => ['count' => $v_count, 'label' => og_get($v_labels, ['inCart'])]])|noescape}\n      {/capture}\n      {=og_include('compose/Group.latte', ['justify' => 'end', 'children' => (string) $c_1])|noescape}\n      {capture $c_9}\n        {foreach og_l($v_dishes) as $v_d}\n          {capture $c_8}\n            {if og_t(og_eq($v_media, 'image'))}\n              {=og_include('blocks/media-frame.latte', ['p' => ['alt' => og_get($v_d, ['name']), 'src' => og_get($v_d, ['image'])]])|noescape}\n            {/if}\n            {capture $c_6}\n              {capture $c_4}\n                {capture $c_2}\n                  {=og_text(og_get($v_d, ['name']))}\n                {/capture}\n                {=og_include('compose/Text.latte', ['size' => 'base', 'weight' => 'semibold', 'children' => (string) $c_2])|noescape}\n                {capture $c_3}\n                  {=og_text(og_get($v_d, ['weight']))}\n                {/capture}\n                {=og_include('compose/Text.latte', ['size' => 'xs', 'class' => 'text-muted-foreground', 'children' => (string) $c_3])|noescape}\n              {/capture}\n              {=og_include('compose/Group.latte', ['gap' => '2', 'align' => 'baseline', 'justify' => 'between', 'children' => (string) $c_4])|noescape}\n              {capture $c_5}\n                {=og_text(og_money(og_get($v_d, ['price']), og_get($v_d, ['currency'])))}\n              {/capture}\n              {=og_include('compose/Text.latte', ['size' => 'lg', 'weight' => 'bold', 'children' => (string) $c_5])|noescape}\n            {/capture}\n            {=og_include('compose/Stack.latte', ['gap' => '2', 'class' => og_s((og_t(og_eq($v_media, 'image')) ? 'px-4' : 'px-4 pt-4')), 'children' => (string) $c_6])|noescape}\n            {capture $c_7}\n              {=og_include('blocks/add-qty.latte', ['p' => ['name' => og_tpl('{0}-qty-{1}', [$v_id, og_get($v_d, ['id'])]), 'dish' => og_get($v_d, ['name']), 'labels' => $v_labels]])|noescape}\n            {/capture}\n            {=og_include('compose/Box.latte', ['class' => 'px-4', 'children' => (string) $c_7])|noescape}\n          {/capture}\n          {=og_include('compose/Stack.latte', ['gap' => '4', 'class' => 'rounded bg-card inset-ring inset-ring-border overflow-hidden pb-4', 'attrs' => og_attrs(['data-slot', 'item']), 'children' => (string) $c_8])|noescape}\n        {/foreach}\n      {/capture}\n      {=og_include('compose/Grid.latte', ['cols' => '1-3', 'class' => 'gap-4', 'attrs' => og_attrs(['data-slot', 'items']), 'children' => (string) $c_9])|noescape}\n    {/capture}\n    {=og_include('compose/Stack.latte', ['gap' => '4', 'align' => 'stretch', 'children' => (string) $c_10])|noescape}\n  {/if}\n{/capture}\n{=og_include('blocks/section-frame.latte', ['p' => ['id' => $v_id, 'title' => $v_title, 'lead' => $v_lead, 'tone' => $v_tone, 'landmarkLabel' => $v_landmarkLabel], 'children' => og_markup($c_11)])|noescape}\n",
      "path": "blocks/dish-cart-grid.latte",
      "target": "blocks/dish-cart-grid.latte"
    }
  ],
  "meta": {
    "category": "commerce",
    "group": "food",
    "kind": "block",
    "tags": [
      "latte",
      "block"
    ]
  },
  "name": "dish-cart-grid",
  "registryDependencies": [
    "add-qty",
    "box",
    "cart-count",
    "empty-state",
    "grid",
    "group",
    "media-frame",
    "section-frame",
    "stack",
    "text",
    "utils"
  ],
  "runtime": "latte",
  "title": "Dish Cart Grid",
  "type": "registry:block"
}
