{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "A picture in a fixed ratio that follows the theme. `src` is the picture of the light theme, `darkSrc` the one of the dark theme (without it the dark theme shows `src`). Without both (an empty string counts as none) it shows the built-in neutral placeholders (base64 data URIs, one",
  "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/patterns/media-frame.json\n    A picture in a fixed ratio that follows the theme. `src` is the picture of the light theme, `darkSrc` the one of the dark theme (without it the dark theme shows `src`). Without both (an empty string counts as none) it shows the built-in neutral placeholders (base64 data URIs, one light and one dark), so a page can be laid out before it has pictures; the placeholder is decorative (`alt` is empty), stands in for a real `src` and is switched by the theme token. A real picture gets `alt` and loads lazily. `ratio` comes from the recipe; the corners are the plain theme radius.\n    Props (p): alt, src, darkSrc, ratio, className. *}\n{var $k_PLACEHOLDER = ['light' => 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0MDAgMzAwIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJ4TWlkWU1pZCBzbGljZSI+PHJlY3Qgd2lkdGg9IjQwMCIgaGVpZ2h0PSIzMDAiIGZpbGw9IiNlMmU4ZjAiLz48Y2lyY2xlIGN4PSIyOTYiIGN5PSI5NiIgcj0iMzAiIGZpbGw9IiNjYmQ1ZTEiLz48cGF0aCBkPSJNMCAzMDBWMjE0bDk2LTc2IDg4IDcwIDY0LTQ4IDE1MiA5NnY0NHoiIGZpbGw9IiNjYmQ1ZTEiLz48cGF0aCBkPSJNMCAzMDB2LTUybDEyMC02MCAxMTAgNjIgNjAtMzAgMTEwIDgwdjB6IiBmaWxsPSIjOTRhM2I4IiBvcGFjaXR5PSIwLjU1Ii8+PC9zdmc+', 'dark' => 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0MDAgMzAwIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJ4TWlkWU1pZCBzbGljZSI+PHJlY3Qgd2lkdGg9IjQwMCIgaGVpZ2h0PSIzMDAiIGZpbGw9IiMxZTI5M2IiLz48Y2lyY2xlIGN4PSIyOTYiIGN5PSI5NiIgcj0iMzAiIGZpbGw9IiMzMzQxNTUiLz48cGF0aCBkPSJNMCAzMDBWMjE0bDk2LTc2IDg4IDcwIDY0LTQ4IDE1MiA5NnY0NHoiIGZpbGw9IiMzMzQxNTUiLz48cGF0aCBkPSJNMCAzMDB2LTUybDEyMC02MCAxMTAgNjIgNjAtMzAgMTEwIDgwdjB6IiBmaWxsPSIjNDc1NTY5IiBvcGFjaXR5PSIwLjU1Ii8+PC9zdmc+']}\n{var $v_alt = ($p['alt'] ?? null)}\n{var $v_src = ($p['src'] ?? null)}\n{var $v_darkSrc = ($p['darkSrc'] ?? null)}\n{var $v_ratio = ($p['ratio'] ?? '16/9')}\n{var $v_lightSrc = (og_t($v_src) ? $v_src : og_at($k_PLACEHOLDER, 'light'))}\n{var $v_nightSrc = (og_t($v_darkSrc) ? $v_darkSrc : (og_t($v_src) ? $v_src : og_at($k_PLACEHOLDER, 'dark')))}\n{var $v_shownAlt = (og_t($v_src) ? $v_alt : '')}\n{var $v_loadHint = (og_t($v_src) ? 'lazy' : null)}\n{var $v_decodeHint = (og_t($v_src) ? 'async' : null)}\n{capture $c_1}\n  {=og_include('compose/Image.latte', ['src' => og_url(og_s($v_lightSrc), true), 'alt' => og_s($v_shownAlt), 'loading' => og_s($v_loadHint), 'decoding' => og_s($v_decodeHint), 'class' => 'absolute inset-0 size-full object-cover dark:hidden', 'attrs' => og_attrs(['data-theme-src', 'light'])])|noescape}\n  {=og_include('compose/Image.latte', ['src' => og_url(og_s($v_nightSrc), true), 'alt' => og_s($v_shownAlt), 'loading' => og_s($v_loadHint), 'decoding' => og_s($v_decodeHint), 'class' => 'absolute inset-0 hidden size-full object-cover dark:block', 'attrs' => og_attrs(['data-theme-src', 'dark'])])|noescape}\n{/capture}\n{=og_include('compose/Box.latte', ['class' => og_s(og_cnv([og_recipe('blocks/recipes/media-frame.variants.json', ['ratio' => $v_ratio]), ($p['className'] ?? '')])), 'attrs' => og_attrs(['data-slot', 'media-frame', 'data-placeholder', (og_t($v_src) ? 'false' : 'true')]), 'children' => (string) $c_1])|noescape}\n",
      "path": "blocks/media-frame.latte",
      "target": "blocks/media-frame.latte"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "latte",
      "component"
    ]
  },
  "name": "media-frame",
  "registryDependencies": [
    "box",
    "image",
    "presets",
    "utils"
  ],
  "runtime": "latte",
  "title": "Media Frame",
  "type": "registry:component"
}
