{
  "$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{var $v_id = ($p['id'] ?? null)}\n{var $v_title = ($p['title'] ?? null)}\n{var $v_lead = ($p['lead'] ?? '')}\n{var $v_photos = ($p['photos'] ?? null)}\n{var $v_empty = ($p['empty'] ?? '')}\n{var $v_labels = ($p['labels'] ?? null)}\n{var $v_layout = ($p['layout'] ?? 'grid')}\n{var $v_captions = ($p['captions'] ?? 'show')}\n{var $v_lightbox = ($p['lightbox'] ?? 'closed')}\n{var $v_landmarkLabel = ($p['landmarkLabel'] ?? null)}\n{capture $c_14}\n  {if og_t(og_eq(og_len($v_photos), 0))}\n    {=og_include('blocks/empty-state.latte', ['p' => ['icon' => 'image', 'title' => $v_empty]])|noescape}\n  {else}\n    {if og_t(og_eq($v_layout, 'featured'))}\n      {capture $c_9}\n        {=og_include('blocks/media-frame.latte', ['p' => ['alt' => og_first_of($v_photos, 'title'), 'src' => og_first_of($v_photos, 'image')]])|noescape}\n        {capture $c_7}\n          {capture $c_3}\n            {capture $c_1}\n              {=og_text(og_first_of($v_photos, 'title'))}\n            {/capture}\n            {=og_include('compose/Text.latte', ['size' => 'base', 'weight' => 'semibold', 'children' => (string) $c_1])|noescape}\n            {capture $c_2}\n              {=og_text(og_tpl(og_get($v_labels, ['counter']), [1, og_len($v_photos)]))}\n            {/capture}\n            {=og_include('compose/Text.latte', ['size' => 'xs', 'class' => 'text-muted-foreground', 'children' => (string) $c_2])|noescape}\n          {/capture}\n          {=og_include('compose/Stack.latte', ['gap' => '0', 'children' => (string) $c_3])|noescape}\n          {capture $c_6}\n            {capture $c_4}\n              {=og_include('icons/LucideIcon.latte', ['name' => 'chevron-left', 'size' => 16])|noescape}\n            {/capture}\n            {=og_include('compose/Button.latte', ['variant' => 'outline', 'size' => 'sm', 'layout' => 'icon', 'type' => 'button', 'ariaLabel' => og_s(og_get($v_labels, ['previous'])), 'children' => (string) $c_4])|noescape}\n            {capture $c_5}\n              {=og_include('icons/LucideIcon.latte', ['name' => 'chevron-right', 'size' => 16])|noescape}\n            {/capture}\n            {=og_include('compose/Button.latte', ['variant' => 'outline', 'size' => 'sm', 'layout' => 'icon', 'type' => 'button', 'ariaLabel' => og_s(og_get($v_labels, ['next'])), 'children' => (string) $c_5])|noescape}\n          {/capture}\n          {=og_include('compose/Group.latte', ['gap' => '2', 'children' => (string) $c_6])|noescape}\n        {/capture}\n        {=og_include('compose/Group.latte', ['gap' => '4', 'align' => 'center', 'justify' => 'between', 'children' => (string) $c_7])|noescape}\n        {capture $c_8}\n          {foreach og_l($v_photos) as $v_p}\n            {var $v_i = $iterator->counter0}\n            {=og_include('blocks/media-frame.latte', ['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' : '')])]])|noescape}\n          {/foreach}\n        {/capture}\n        {=og_include('compose/Box.latte', ['class' => 'grid grid-cols-3 gap-2 sm:grid-cols-9', 'attrs' => og_attrs(['data-slot', 'thumbs']), 'children' => (string) $c_8])|noescape}\n      {/capture}\n      {=og_include('compose/Stack.latte', ['gap' => '4', 'align' => 'stretch', 'attrs' => og_attrs(['data-slot', 'featured']), 'children' => (string) $c_9])|noescape}\n    {else}\n      {capture $c_13}\n        {foreach og_l($v_photos) as $v_p}\n          {var $v_i = $iterator->counter0}\n          {capture $c_12}\n            {=og_include('blocks/media-frame.latte', ['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')]])|noescape}\n            {capture $c_10}\n              {=og_include('icons/LucideIcon.latte', ['name' => 'arrow-up-right', 'size' => 16])|noescape}\n            {/capture}\n            {=og_include('compose/Button.latte', ['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' => (string) $c_10])|noescape}\n            {if og_t(og_and([og_eq($v_captions, 'show'), og_or([og_eq($v_layout, 'grid'), og_eq($v_layout, 'masonry')])]))}\n              {capture $c_11}\n                {=og_text(og_get($v_p, ['title']))}\n              {/capture}\n              {=og_include('compose/Box.latte', ['class' => 'text-sm text-muted-foreground', 'attrs' => og_attrs(['data-slot', 'caption']), 'children' => (string) $c_11])|noescape}\n            {/if}\n          {/capture}\n          {=og_include('blocks/figure-block.latte', ['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)])|noescape}\n        {/foreach}\n      {/capture}\n      {=og_include('compose/Box.latte', ['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' => (string) $c_13])|noescape}\n    {/if}\n    {=og_include('blocks/lightbox-stage.latte', ['p' => ['photos' => $v_photos, 'labels' => $v_labels, 'captions' => $v_captions, 'lightbox' => $v_lightbox]])|noescape}\n  {/if}\n{/capture}\n{=og_include('blocks/section-frame.latte', ['p' => ['id' => $v_id, 'title' => $v_title, 'lead' => $v_lead, 'landmarkLabel' => $v_landmarkLabel], 'children' => og_markup($c_14)])|noescape}\n",
      "path": "blocks/lightbox-gallery.latte",
      "target": "blocks/lightbox-gallery.latte"
    }
  ],
  "meta": {
    "category": "commerce",
    "group": "restaurant",
    "kind": "block",
    "tags": [
      "latte",
      "block"
    ]
  },
  "name": "lightbox-gallery",
  "registryDependencies": [
    "box",
    "button",
    "empty-state",
    "figure-block",
    "group",
    "lightbox-stage",
    "lucide-icon",
    "media-frame",
    "section-frame",
    "stack",
    "text",
    "utils"
  ],
  "runtime": "latte",
  "title": "Lightbox Gallery",
  "type": "registry:block"
}
