{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "A photo gallery with a dialog for the selected picture. Additive to Photo gallery.",
  "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-gallery.json\n    Photos in a grid, a masonry of mixed heights, or a featured picture over thumbnails, with a dialog that shows the selected photo. Static markup: the dialog open state is a prop. Axes: layout (grid, masonry, featured), captions (show, hide), lightbox (open, closed).\n    Props (p): id, title, lead, photos, empty, labels, layout, captions, lightbox, landmarkLabel. -#}\n{%- set v_id = (p.id ?? null) -%}\n{%- set v_title = (p.title ?? null) -%}\n{%- set v_lead = (p.lead ?? '') -%}\n{%- set v_photos = (p.photos ?? null) -%}\n{%- set v_empty = (p.empty ?? '') -%}\n{%- set v_labels = (p.labels ?? null) -%}\n{%- set v_layout = (p.layout ?? 'grid') -%}\n{%- set v_captions = (p.captions ?? 'show') -%}\n{%- set v_lightbox = (p.lightbox ?? 'closed') -%}\n{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}\n{%- set c_14 -%}\n  {%- if og_t(og_eq(og_len(v_photos), 0)) %}\n    {{ include('blocks/empty-state.html.twig', {'p': {'icon': 'image', 'title': v_empty}}, with_context = false) }}\n  {%- else %}\n    {%- if og_t(og_eq(v_layout, 'featured')) %}\n      {%- set c_9 -%}\n        {{ include('blocks/media-frame.html.twig', {'p': {'alt': og_first_of(v_photos, 'title'), 'src': og_first_of(v_photos, 'image')}}, with_context = false) }}\n        {%- set c_7 -%}\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': 'base', 'weight': 'semibold', 'children': c_1}, with_context = false) }}\n            {%- set c_2 -%}\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_2}, with_context = false) }}\n          {%- endset -%}\n          {{ include('compose/Stack.html.twig', {'gap': '0', 'children': c_3}, with_context = false) }}\n          {%- set c_6 -%}\n            {%- set c_4 -%}\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_4}, with_context = false) }}\n            {%- set c_5 -%}\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_5}, with_context = false) }}\n          {%- endset -%}\n          {{ include('compose/Group.html.twig', {'gap': '2', 'children': c_6}, with_context = false) }}\n        {%- endset -%}\n        {{ include('compose/Group.html.twig', {'gap': '4', 'align': 'center', 'justify': 'between', 'children': c_7}, with_context = false) }}\n        {%- set c_8 -%}\n          {%- for v_p in og_l(v_photos) %}\n            {%- set v_i = loop.index0 -%}\n            {{ include('blocks/media-frame.html.twig', {'p': {'alt': og_get(v_p, ['title']), 'src': og_get(v_p, ['image']), 'ratio': '1/1', 'className': og_cnv([(og_t(og_eq(v_i, 0)) ? 'ring-2 ring-foreground' : '')])}}, with_context = false) }}\n          {%- endfor %}\n        {%- endset -%}\n        {{ include('compose/Box.html.twig', {'class': 'grid grid-cols-3 gap-2 sm:grid-cols-9', 'attrs': og_attrs(['data-slot', 'thumbs']), 'children': c_8}, with_context = false) }}\n      {%- endset -%}\n      {{ include('compose/Stack.html.twig', {'gap': '4', 'align': 'stretch', 'attrs': og_attrs(['data-slot', 'featured']), 'children': c_9}, with_context = false) }}\n    {%- else %}\n      {%- set c_13 -%}\n        {%- for v_p in og_l(v_photos) %}\n          {%- set v_i = loop.index0 -%}\n          {%- set c_12 -%}\n            {{ include('blocks/media-frame.html.twig', {'p': {'alt': og_get(v_p, ['title']), 'src': og_get(v_p, ['image']), 'ratio': (og_t(og_eq(v_layout, 'masonry')) ? (og_t(og_eq(og_get(v_p, ['size']), 'tall')) ? '3/4' : (og_t(og_eq(og_get(v_p, ['size']), 'wide')) ? '16/9' : (og_t(og_eq(og_get(v_p, ['size']), 'large')) ? '4/3' : '1/1'))) : '4/3')}}, with_context = false) }}\n            {%- set c_10 -%}\n              {{ include('icons/LucideIcon.html.twig', {'name': 'arrow-up-right', 'size': 16}, with_context = false) }}\n            {%- endset -%}\n            {{ include('compose/Button.html.twig', {'variant': 'ghost', 'size': 'sm', 'layout': 'icon', 'type': 'button', 'class': 'absolute right-2 top-2 bg-background', 'ariaLabel': og_s(og_get(v_labels, ['open'])), 'children': c_10}, with_context = false) }}\n            {%- if og_t(og_and([og_eq(v_captions, 'show'), og_or([og_eq(v_layout, 'grid'), og_eq(v_layout, 'masonry')])])) %}\n              {%- set c_11 -%}\n                {{ og_text(og_get(v_p, ['title'])) }}\n              {%- endset -%}\n              {{ include('compose/Box.html.twig', {'class': 'text-sm text-muted-foreground', 'attrs': og_attrs(['data-slot', 'caption']), 'children': c_11}, with_context = false) }}\n            {%- endif %}\n          {%- endset -%}\n          {{ include('blocks/figure-block.html.twig', {'p': {'className': og_cnv([og_cnv(['relative flex flex-col gap-2', (og_t(og_eq(v_layout, 'masonry')) ? 'mb-4 break-inside-avoid' : '')])]), 'testid': 'item'}, 'children': og_markup(c_12)}, with_context = false) }}\n        {%- endfor %}\n      {%- endset -%}\n      {{ include('compose/Box.html.twig', {'class': og_s((og_t(og_eq(v_layout, 'masonry')) ? 'columns-1 gap-4 sm:columns-2 lg:columns-3' : 'grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3')), 'attrs': og_attrs(['data-slot', 'items']), 'children': c_13}, with_context = false) }}\n    {%- endif %}\n    {{ include('blocks/lightbox-stage.html.twig', {'p': {'photos': v_photos, 'labels': v_labels, 'captions': v_captions, 'lightbox': v_lightbox}}, with_context = false) }}\n  {%- endif %}\n{%- endset -%}\n{{ include('blocks/section-frame.html.twig', {'p': {'id': v_id, 'title': v_title, 'lead': v_lead, 'landmarkLabel': v_landmarkLabel}, 'children': og_markup(c_14)}, with_context = false) }}\n",
      "path": "blocks/lightbox-gallery.html.twig",
      "target": "blocks/lightbox-gallery.html.twig"
    }
  ],
  "meta": {
    "category": "commerce",
    "group": "restaurant",
    "kind": "block",
    "tags": [
      "twig",
      "block"
    ]
  },
  "name": "lightbox-gallery",
  "registryDependencies": [
    "box",
    "button",
    "empty-state",
    "figure-block",
    "group",
    "lightbox-stage",
    "lucide-icon",
    "media-frame",
    "section-frame",
    "stack",
    "text",
    "utils"
  ],
  "runtime": "twig",
  "title": "Lightbox Gallery",
  "type": "registry:block"
}
