{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Texts in an accordion beside a card of specs.",
  "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/product-info.json\n    The details of a product under its buy box: texts in an accordion (native details) beside a card with the specs. Axes: layout (split: the specs beside the texts, stacked: below them), expand (first: the first text open, none), tone.\n    Props (p): id, title, details, specs, labels, layout, expand, tone, landmarkLabel. *}\n{var $v_id = ($p['id'] ?? null)}\n{var $v_title = ($p['title'] ?? null)}\n{var $v_details = ($p['details'] ?? null)}\n{var $v_specs = ($p['specs'] ?? null)}\n{var $v_labels = ($p['labels'] ?? null)}\n{var $v_layout = ($p['layout'] ?? 'split')}\n{var $v_expand = ($p['expand'] ?? 'first')}\n{var $v_tone = ($p['tone'] ?? 'default')}\n{var $v_landmarkLabel = ($p['landmarkLabel'] ?? null)}\n{capture $c_13}\n  {capture $c_12}\n    {if og_t(og_gt(og_len($v_details), 0))}\n      {capture $c_5}\n        {foreach og_l($v_details) as $v_d}\n          {var $v_i = $iterator->counter0}\n          {capture $c_4}\n            {capture $c_2}\n              {capture $c_1}\n                {=og_text(og_get($v_d, ['title']))}\n              {/capture}\n              {=og_include('compose/Inline.latte', ['class' => 'text-base font-semibold', 'children' => (string) $c_1])|noescape}\n            {/capture}\n            {=og_include('compose/Summary.latte', ['variant' => 'item', 'children' => (string) $c_2])|noescape}\n            {capture $c_3}\n              {=og_text(og_get($v_d, ['text']))}\n            {/capture}\n            {=og_include('compose/Text.latte', ['size' => 'sm', 'class' => 'pb-4 text-muted-foreground', 'children' => (string) $c_3])|noescape}\n          {/capture}\n          {=og_include('compose/Disclosure.latte', ['variant' => 'item', 'open' => og_t(og_and([og_eq($v_expand, 'first'), og_eq($v_i, 0)])), 'attrs' => og_attrs(['data-slot', 'item']), 'children' => (string) $c_4])|noescape}\n        {/foreach}\n      {/capture}\n      {=og_include('compose/Stack.latte', ['gap' => '0', 'align' => 'stretch', 'class' => og_s((og_t(og_eq($v_layout, 'split')) ? 'lg:col-span-2' : '')), 'attrs' => og_attrs(['data-slot', 'items']), 'children' => (string) $c_5])|noescape}\n    {/if}\n    {if og_t(og_gt(og_len($v_specs), 0))}\n      {capture $c_11}\n        {capture $c_6}\n          {=og_text(og_get($v_labels, ['specs']))}\n        {/capture}\n        {=og_include('compose/Title.latte', ['as' => 3, 'size' => 'lg', 'weight' => 'bold', 'children' => (string) $c_6])|noescape}\n        {capture $c_10}\n          {foreach og_l($v_specs) as $v_s}\n            {capture $c_9}\n              {capture $c_7}\n                {=og_text(og_get($v_s, ['label']))}\n              {/capture}\n              {=og_include('compose/Inline.latte', ['class' => 'text-muted-foreground', 'children' => (string) $c_7])|noescape}\n              {capture $c_8}\n                {=og_text(og_get($v_s, ['value']))}\n              {/capture}\n              {=og_include('compose/Inline.latte', ['class' => 'font-medium', 'children' => (string) $c_8])|noescape}\n            {/capture}\n            {=og_include('compose/ListItem.latte', ['class' => 'flex items-center justify-between gap-4 border-b border-border py-2 text-sm last:border-b-0', 'attrs' => og_attrs(['data-slot', 'spec']), 'children' => (string) $c_9])|noescape}\n          {/foreach}\n        {/capture}\n        {=og_include('compose/List.latte', ['tag' => 'ul', 'class' => 'flex flex-col', 'children' => (string) $c_10])|noescape}\n      {/capture}\n      {=og_include('compose/Stack.latte', ['gap' => '4', 'align' => 'stretch', 'class' => 'rounded bg-card inset-ring inset-ring-border p-6', 'attrs' => og_attrs(['data-slot', 'specs']), 'children' => (string) $c_11])|noescape}\n    {/if}\n  {/capture}\n  {=og_include('compose/Box.latte', ['class' => og_s((og_t(og_eq($v_layout, 'split')) ? 'grid grid-cols-1 items-start gap-8 lg:grid-cols-3' : 'grid grid-cols-1 gap-8')), 'children' => (string) $c_12])|noescape}\n{/capture}\n{=og_include('blocks/section-frame.latte', ['p' => ['id' => $v_id, 'title' => $v_title, 'tone' => $v_tone, 'landmarkLabel' => $v_landmarkLabel], 'children' => og_markup($c_13)])|noescape}\n",
      "path": "blocks/product-info.latte",
      "target": "blocks/product-info.latte"
    }
  ],
  "meta": {
    "category": "commerce",
    "group": "product",
    "kind": "block",
    "tags": [
      "latte",
      "block"
    ]
  },
  "name": "product-info",
  "registryDependencies": [
    "box",
    "disclosure",
    "inline",
    "list",
    "list-item",
    "section-frame",
    "stack",
    "summary",
    "text",
    "title",
    "utils"
  ],
  "runtime": "latte",
  "title": "Product Info",
  "type": "registry:block"
}
