{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "The selected photo in a dialog: title, close, picture, optional caption and previous/next. Static open state. Used by LightboxGallery.",
  "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/lightbox-stage.json\n    The selected photo in a dialog: title, close, picture, optional caption and previous/next. Static open state. Used by LightboxGallery.\n    Props (p): photos, labels, captions, lightbox. -#}\n{%- set v_photos = (p.photos ?? null) -%}\n{%- set v_labels = (p.labels ?? null) -%}\n{%- set v_captions = (p.captions ?? 'show') -%}\n{%- set v_lightbox = (p.lightbox ?? 'closed') -%}\n{%- set c_10 -%}\n  {%- set c_3 -%}\n    {%- set c_1 -%}\n      {{ og_text(og_first_of(v_photos, 'title')) }}\n    {%- endset -%}\n    {{ include('compose/Text.html.twig', {'size': 'sm', 'weight': 'semibold', 'children': c_1}, with_context = false) }}\n    {%- set c_2 -%}\n      {{ include('icons/LucideIcon.html.twig', {'name': 'x', 'size': 16}, with_context = false) }}\n    {%- endset -%}\n    {{ include('compose/Button.html.twig', {'variant': 'ghost', 'size': 'sm', 'layout': 'icon', 'type': 'button', 'ariaLabel': og_s(og_get(v_labels, ['close'])), 'children': c_2}, with_context = false) }}\n  {%- endset -%}\n  {{ include('compose/Group.html.twig', {'gap': '2', 'align': 'center', 'justify': 'between', 'children': c_3}, with_context = false) }}\n  {{ include('blocks/media-frame.html.twig', {'p': {'alt': og_first_of(v_photos, 'title'), 'src': og_first_of(v_photos, 'image'), 'ratio': '4/3'}}, with_context = false) }}\n  {%- if og_t(og_eq(v_captions, 'show')) %}\n    {%- set c_4 -%}\n      {{ og_text(og_first_of(v_photos, 'tag')) }}\n    {%- endset -%}\n    {{ include('compose/Text.html.twig', {'size': 'sm', 'class': 'text-muted-foreground', 'children': c_4}, with_context = false) }}\n  {%- endif %}\n  {%- set c_9 -%}\n    {%- set c_5 -%}\n      {{ og_text(og_tpl(og_get(v_labels, ['counter']), [1, og_len(v_photos)])) }}\n    {%- endset -%}\n    {{ include('compose/Text.html.twig', {'size': 'xs', 'class': 'text-muted-foreground', 'children': c_5}, with_context = false) }}\n    {%- set c_8 -%}\n      {%- set c_6 -%}\n        {{ include('icons/LucideIcon.html.twig', {'name': 'chevron-left', 'size': 16}, with_context = false) }}\n      {%- endset -%}\n      {{ include('compose/Button.html.twig', {'variant': 'outline', 'size': 'sm', 'layout': 'icon', 'type': 'button', 'ariaLabel': og_s(og_get(v_labels, ['previous'])), 'children': c_6}, with_context = false) }}\n      {%- set c_7 -%}\n        {{ include('icons/LucideIcon.html.twig', {'name': 'chevron-right', 'size': 16}, with_context = false) }}\n      {%- endset -%}\n      {{ include('compose/Button.html.twig', {'variant': 'outline', 'size': 'sm', 'layout': 'icon', 'type': 'button', 'ariaLabel': og_s(og_get(v_labels, ['next'])), 'children': c_7}, with_context = false) }}\n    {%- endset -%}\n    {{ include('compose/Group.html.twig', {'gap': '2', 'children': c_8}, with_context = false) }}\n  {%- endset -%}\n  {{ include('compose/Group.html.twig', {'gap': '2', 'align': 'center', 'justify': 'between', 'children': c_9}, with_context = false) }}\n{%- endset -%}\n{{ include('compose/Dialog.html.twig', {'open': og_t(og_eq(v_lightbox, 'open')), 'size': 'xl', 'ariaLabel': og_s(og_first_of(v_photos, 'title')), 'class': 'gap-4 p-4', 'attrs': og_attrs(['data-slot', 'lightbox']), 'children': c_10}, with_context = false) }}\n",
      "path": "blocks/lightbox-stage.html.twig",
      "target": "blocks/lightbox-stage.html.twig"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "twig",
      "component"
    ]
  },
  "name": "lightbox-stage",
  "registryDependencies": [
    "button",
    "dialog",
    "group",
    "lucide-icon",
    "media-frame",
    "text",
    "utils"
  ],
  "runtime": "twig",
  "title": "Lightbox Stage",
  "type": "registry:component"
}
