{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Kits with the ingredients list, the cooking time and the portions.",
  "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/recipe-kits.json\n    Recipe kits delivered home: a picture beside the kit name, cooking time, the ingredients list, a portions radio group and the price with an add button. Axes: layout (rows, cards), tone.\n    Props (p): id, title, lead, dishes, empty, labels, portions, layout, 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_portions = ($p['portions'] ?? null)}\n{var $v_layout = ($p['layout'] ?? 'rows')}\n{var $v_tone = ($p['tone'] ?? 'default')}\n{var $v_landmarkLabel = ($p['landmarkLabel'] ?? null)}\n{capture $c_18}\n  {if og_t(og_eq(og_len($v_dishes), 0))}\n    {=og_include('blocks/empty-state.latte', ['p' => ['icon' => 'package', 'title' => $v_empty]])|noescape}\n  {else}\n    {capture $c_17}\n      {foreach og_l($v_dishes) as $v_d}\n        {capture $c_16}\n          {=og_include('blocks/media-frame.latte', ['p' => ['alt' => og_get($v_d, ['name']), 'src' => og_get($v_d, ['image']), 'ratio' => '4/3']])|noescape}\n          {capture $c_15}\n            {capture $c_3}\n              {capture $c_1}\n                {=og_include('icons/LucideIcon.latte', ['name' => 'timer', 'size' => 16])|noescape}\n                {=og_text(og_tpl(og_get($v_labels, ['minutes']), [og_str(og_get($v_d, ['minutes']))]))}\n              {/capture}\n              {=og_include('compose/Badge.latte', ['variant' => 'secondary', 'size' => 'default', 'children' => (string) $c_1])|noescape}\n              {if og_t(og_get($v_d, ['badge']))}\n                {capture $c_2}\n                  {=og_text(og_get($v_d, ['badge']))}\n                {/capture}\n                {=og_include('compose/Badge.latte', ['variant' => 'outline', 'size' => 'default', 'children' => (string) $c_2])|noescape}\n              {/if}\n            {/capture}\n            {=og_include('compose/Group.latte', ['gap' => '2', 'class' => 'flex-wrap', 'children' => (string) $c_3])|noescape}\n            {capture $c_6}\n              {capture $c_4}\n                {=og_text(og_get($v_d, ['name']))}\n              {/capture}\n              {=og_include('compose/Text.latte', ['size' => 'xl', 'weight' => 'semibold', 'children' => (string) $c_4])|noescape}\n              {capture $c_5}\n                {=og_text(og_get($v_d, ['summary']))}\n              {/capture}\n              {=og_include('compose/Text.latte', ['size' => 'sm', 'class' => 'text-muted-foreground', 'children' => (string) $c_5])|noescape}\n            {/capture}\n            {=og_include('compose/Stack.latte', ['gap' => '2', 'children' => (string) $c_6])|noescape}\n            {capture $c_11}\n              {capture $c_7}\n                {=og_text(og_get($v_labels, ['ingredients']))}\n              {/capture}\n              {=og_include('compose/Text.latte', ['size' => 'sm', 'weight' => 'semibold', 'children' => (string) $c_7])|noescape}\n              {capture $c_10}\n                {foreach og_l(og_get($v_d, ['items'])) as $v_x}\n                  {capture $c_9}\n                    {=og_include('icons/LucideIcon.latte', ['name' => 'check', 'size' => 16, 'class' => 'text-primary'])|noescape}\n                    {capture $c_8}\n                      {=og_text($v_x)}\n                    {/capture}\n                    {=og_include('compose/Inline.latte', ['children' => (string) $c_8])|noescape}\n                  {/capture}\n                  {=og_include('compose/ListItem.latte', ['class' => 'flex items-center gap-2', 'attrs' => og_attrs(['data-slot', 'items-row']), 'children' => (string) $c_9])|noescape}\n                {/foreach}\n              {/capture}\n              {=og_include('compose/List.latte', ['tag' => 'ul', 'class' => 'grid grid-cols-1 gap-2 text-sm sm:grid-cols-2', 'attrs' => og_attrs(['data-slot', 'ingredients']), 'children' => (string) $c_10])|noescape}\n            {/capture}\n            {=og_include('compose/Stack.latte', ['gap' => '2', 'children' => (string) $c_11])|noescape}\n            {=og_include('blocks/option-chips.latte', ['p' => ['name' => og_tpl('{0}-portions-{1}', [$v_id, og_get($v_d, ['id'])]), 'legend' => og_get($v_labels, ['portions']), 'options' => $v_portions]])|noescape}\n            {capture $c_14}\n              {capture $c_12}\n                {=og_text(og_money(og_get($v_d, ['price']), og_get($v_d, ['currency'])))}\n              {/capture}\n              {=og_include('compose/Inline.latte', ['class' => 'text-xl font-bold', 'children' => (string) $c_12])|noescape}\n              {capture $c_13}\n                {=og_text(og_get($v_labels, ['add']))}\n              {/capture}\n              {=og_include('compose/Button.latte', ['variant' => 'default', 'size' => 'default', 'type' => 'button', 'ariaLabel' => og_s(og_tpl(og_get($v_labels, ['addOf']), [og_get($v_d, ['name'])])), 'children' => (string) $c_13])|noescape}\n            {/capture}\n            {=og_include('compose/Group.latte', ['gap' => '4', 'align' => 'center', 'justify' => 'between', 'class' => 'mt-auto', 'children' => (string) $c_14])|noescape}\n          {/capture}\n          {=og_include('compose/Stack.latte', ['gap' => '4', 'children' => (string) $c_15])|noescape}\n        {/capture}\n        {=og_include('compose/Box.latte', ['class' => og_s((og_t(og_eq($v_layout, 'cards')) ? 'rounded bg-card inset-ring inset-ring-border flex flex-col gap-4 p-4' : 'rounded bg-card inset-ring inset-ring-border grid grid-cols-1 gap-8 p-6 md:grid-cols-2')), 'attrs' => og_attrs(['data-slot', 'item']), 'children' => (string) $c_16])|noescape}\n      {/foreach}\n    {/capture}\n    {=og_include('compose/Box.latte', ['class' => og_s((og_t(og_eq($v_layout, 'cards')) ? 'grid grid-cols-1 gap-8 md:grid-cols-3' : 'flex flex-col gap-8')), 'attrs' => og_attrs(['data-slot', 'items']), 'children' => (string) $c_17])|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_18)])|noescape}\n",
      "path": "blocks/recipe-kits.latte",
      "target": "blocks/recipe-kits.latte"
    }
  ],
  "meta": {
    "category": "commerce",
    "group": "food",
    "kind": "block",
    "tags": [
      "latte",
      "block"
    ]
  },
  "name": "recipe-kits",
  "registryDependencies": [
    "badge",
    "box",
    "button",
    "empty-state",
    "group",
    "inline",
    "list",
    "list-item",
    "lucide-icon",
    "media-frame",
    "option-chips",
    "section-frame",
    "stack",
    "text",
    "utils"
  ],
  "runtime": "latte",
  "title": "Recipe Kits",
  "type": "registry:block"
}
