{
  "$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 = og_def(p['id'], none) -%}\n{%- set v_title = og_def(p['title'], none) -%}\n{%- set v_details = og_def(p['details'], none) -%}\n{%- set v_specs = og_def(p['specs'], none) -%}\n{%- set v_labels = og_def(p['labels'], none) -%}\n{%- set v_layout = og_def(p['layout'], 'split') -%}\n{%- set v_expand = og_def(p['expand'], 'first') -%}\n{%- set v_tone = og_def(p['tone'], 'default') -%}\n{%- set v_landmarkLabel = og_def(p['landmarkLabel'], none) -%}\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              {{ og_include('compose/inline.html.j2', {'p': {'Class': 'text-base font-semibold'}, 'children': c_1}) }}\n            {%- endset -%}\n            {{ og_include('compose/summary.html.j2', {'p': {'Variant': 'item'}, 'children': c_2}) }}\n            {%- set c_3 -%}\n              {{ og_text(og_get(v_d, ['text'])) }}\n            {%- endset -%}\n            {{ og_include('compose/text.html.j2', {'p': {'Size': 'sm', 'Class': 'pb-4 text-muted-foreground'}, 'children': c_3}) }}\n          {%- endset -%}\n          {{ og_include('compose/disclosure.html.j2', {'p': {'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}) }}\n        {%- endfor %}\n      {%- endset -%}\n      {{ og_include('compose/stack.html.j2', {'p': {'Gap': '0', 'Align': 'stretch', 'Class': og_s(('lg:col-span-2' if og_t(og_eq(v_layout, 'split')) else '')), 'Attrs': og_attrs(['data-slot', 'items'])}, 'children': c_5}) }}\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        {{ og_include('compose/title.html.j2', {'p': {'As': 3, 'Size': 'lg', 'Weight': 'bold'}, 'children': c_6}) }}\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              {{ og_include('compose/inline.html.j2', {'p': {'Class': 'text-muted-foreground'}, 'children': c_7}) }}\n              {%- set c_8 -%}\n                {{ og_text(og_get(v_s, ['value'])) }}\n              {%- endset -%}\n              {{ og_include('compose/inline.html.j2', {'p': {'Class': 'font-medium'}, 'children': c_8}) }}\n            {%- endset -%}\n            {{ og_include('compose/list-item.html.j2', {'p': {'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}) }}\n          {%- endfor %}\n        {%- endset -%}\n        {{ og_include('compose/list.html.j2', {'p': {'Tag': 'ul', 'Class': 'flex flex-col'}, 'children': c_10}) }}\n      {%- endset -%}\n      {{ og_include('compose/stack.html.j2', {'p': {'Gap': '4', 'Align': 'stretch', 'Class': 'rounded bg-card inset-ring inset-ring-border p-6', 'Attrs': og_attrs(['data-slot', 'specs'])}, 'children': c_11}) }}\n    {%- endif %}\n  {%- endset -%}\n  {{ og_include('compose/box.html.j2', {'p': {'Class': og_s(('grid grid-cols-1 items-start gap-8 lg:grid-cols-3' if og_t(og_eq(v_layout, 'split')) else 'grid grid-cols-1 gap-8'))}, 'children': c_12}) }}\n{%- endset -%}\n{{ og_include('blocks/section-frame.html.j2', {'p': {'id': v_id, 'title': v_title, 'tone': v_tone, 'landmarkLabel': v_landmarkLabel}, 'children': og_markup(c_13)}) }}\n",
      "path": "blocks/product-info.html.j2",
      "target": "blocks/product-info.html.j2"
    }
  ],
  "meta": {
    "category": "commerce",
    "group": "product",
    "kind": "block",
    "tags": [
      "jinja2",
      "block"
    ]
  },
  "name": "product-info",
  "registryDependencies": [
    "box",
    "disclosure",
    "inline",
    "list",
    "list-item",
    "section-frame",
    "stack",
    "summary",
    "text",
    "title",
    "utils"
  ],
  "runtime": "jinja2",
  "title": "Product Info",
  "type": "registry:block"
}
