{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "The gallery of a product page: the picture (the file of the product's featured media, a placeholder without one) and optional thumbnails below.",
  "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-gallery.json\n    The gallery of a product page: the picture (the file of the product's featured media, a placeholder without one) and optional thumbnails below.\n    Props (p): name, image, thumbs. -#}\n{%- set v_name = (p.name ?? null) -%}\n{%- set v_image = (p.image ?? null) -%}\n{%- set v_thumbs = (p.thumbs ?? 'below') -%}\n{%- set c_2 -%}\n  {{ include('blocks/media-frame.html.twig', {'p': {'alt': v_name, 'src': v_image, 'ratio': '1/1'}}, with_context = false) }}\n  {%- if og_t(og_eq(v_thumbs, 'below')) %}\n    {%- set c_1 -%}\n      {{ include('blocks/media-frame.html.twig', {'p': {'alt': v_name, 'src': v_image, 'ratio': '1/1', 'className': og_cnv(['ring-2 ring-foreground'])}}, with_context = false) }}\n      {{ include('blocks/media-frame.html.twig', {'p': {'alt': v_name, 'ratio': '1/1'}}, with_context = false) }}\n      {{ include('blocks/media-frame.html.twig', {'p': {'alt': v_name, 'ratio': '1/1'}}, with_context = false) }}\n    {%- endset -%}\n    {{ include('compose/Grid.html.twig', {'cols': '3', 'class': 'gap-4', 'attrs': og_attrs(['data-slot', 'thumbs']), 'children': c_1}, with_context = false) }}\n  {%- endif %}\n{%- endset -%}\n{{ include('compose/Stack.html.twig', {'gap': '4', 'align': 'stretch', 'attrs': og_attrs(['data-slot', 'gallery']), 'children': c_2}, with_context = false) }}\n",
      "path": "blocks/product-gallery.html.twig",
      "target": "blocks/product-gallery.html.twig"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "twig",
      "component"
    ]
  },
  "name": "product-gallery",
  "registryDependencies": [
    "grid",
    "media-frame",
    "stack",
    "utils"
  ],
  "runtime": "twig",
  "title": "Product Gallery",
  "type": "registry:component"
}
