{
  "$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{%- set v_id = (p.id ?? null) -%}\n{%- set v_title = (p.title ?? null) -%}\n{%- set v_details = (p.details ?? null) -%}\n{%- set v_specs = (p.specs ?? null) -%}\n{%- set v_labels = (p.labels ?? null) -%}\n{%- set v_layout = (p.layout ?? 'split') -%}\n{%- set v_expand = (p.expand ?? 'first') -%}\n{%- set v_tone = (p.tone ?? 'default') -%}\n{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}\n{%- set c_13 -%}\n  {%- set c_12 -%}\n    {%- if og_t(og_gt(og_len(v_details), 0)) %}\n      {%- set c_5 -%}\n        {%- for v_d in og_l(v_details) %}\n          {%- set v_i = loop.index0 -%}\n          {%- set c_4 -%}\n            {%- set c_2 -%}\n              {%- set c_1 -%}\n                {{ og_text(og_get(v_d, ['title'])) }}\n              {%- endset -%}\n              {{ include('compose/Inline.html.twig', {'class': 'text-base font-semibold', 'children': c_1}, with_context = false) }}\n            {%- endset -%}\n            {{ include('compose/Summary.html.twig', {'variant': 'item', 'children': c_2}, with_context = false) }}\n            {%- set c_3 -%}\n              {{ og_text(og_get(v_d, ['text'])) }}\n            {%- endset -%}\n            {{ include('compose/Text.html.twig', {'size': 'sm', 'class': 'pb-4 text-muted-foreground', 'children': c_3}, with_context = false) }}\n          {%- endset -%}\n          {{ include('compose/Disclosure.html.twig', {'variant': 'item', 'open': og_t(og_and([og_eq(v_expand, 'first'), og_eq(v_i, 0)])), 'attrs': og_attrs(['data-slot', 'item']), 'children': c_4}, with_context = false) }}\n        {%- endfor %}\n      {%- endset -%}\n      {{ include('compose/Stack.html.twig', {'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': c_5}, with_context = false) }}\n    {%- endif %}\n    {%- if og_t(og_gt(og_len(v_specs), 0)) %}\n      {%- set c_11 -%}\n        {%- set c_6 -%}\n          {{ og_text(og_get(v_labels, ['specs'])) }}\n        {%- endset -%}\n        {{ include('compose/Title.html.twig', {'as': 3, 'size': 'lg', 'weight': 'bold', 'children': c_6}, with_context = false) }}\n        {%- set c_10 -%}\n          {%- for v_s in og_l(v_specs) %}\n            {%- set c_9 -%}\n              {%- set c_7 -%}\n                {{ og_text(og_get(v_s, ['label'])) }}\n              {%- endset -%}\n              {{ include('compose/Inline.html.twig', {'class': 'text-muted-foreground', 'children': c_7}, with_context = false) }}\n              {%- set c_8 -%}\n                {{ og_text(og_get(v_s, ['value'])) }}\n              {%- endset -%}\n              {{ include('compose/Inline.html.twig', {'class': 'font-medium', 'children': c_8}, with_context = false) }}\n            {%- endset -%}\n            {{ include('compose/ListItem.html.twig', {'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': c_9}, with_context = false) }}\n          {%- endfor %}\n        {%- endset -%}\n        {{ include('compose/List.html.twig', {'tag': 'ul', 'class': 'flex flex-col', 'children': c_10}, with_context = false) }}\n      {%- endset -%}\n      {{ include('compose/Stack.html.twig', {'gap': '4', 'align': 'stretch', 'class': 'rounded bg-card inset-ring inset-ring-border p-6', 'attrs': og_attrs(['data-slot', 'specs']), 'children': c_11}, with_context = false) }}\n    {%- endif %}\n  {%- endset -%}\n  {{ include('compose/Box.html.twig', {'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': c_12}, with_context = false) }}\n{%- endset -%}\n{{ include('blocks/section-frame.html.twig', {'p': {'id': v_id, 'title': v_title, 'tone': v_tone, 'landmarkLabel': v_landmarkLabel}, 'children': og_markup(c_13)}, with_context = false) }}\n",
      "path": "blocks/product-info.html.twig",
      "target": "blocks/product-info.html.twig"
    }
  ],
  "meta": {
    "category": "commerce",
    "group": "product",
    "kind": "block",
    "tags": [
      "twig",
      "block"
    ]
  },
  "name": "product-info",
  "registryDependencies": [
    "box",
    "disclosure",
    "inline",
    "list",
    "list-item",
    "section-frame",
    "stack",
    "summary",
    "text",
    "title",
    "utils"
  ],
  "runtime": "twig",
  "title": "Product Info",
  "type": "registry:block"
}
