{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Heading, lead, one or two actions and optional media.",
  "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/hero-classic.json\n    The top of a page: heading, lead and actions, with optional media (image, backdrop, code window, cluster). Axes: layout, media kind and side, scale, tone, density, actions mode.\n    Props (p): id, title, text, level, badge, topics, actions, media, layout, scale, tone, density, image, imageAlt, landmarkLabel. *}\n{var $v_id = ($p['id'] ?? null)}\n{var $v_title = ($p['title'] ?? null)}\n{var $v_text = ($p['text'] ?? null)}\n{var $v_level = ($p['level'] ?? 1)}\n{var $v_badge = ($p['badge'] ?? null)}\n{var $v_topics = ($p['topics'] ?? null)}\n{var $v_actions = ($p['actions'] ?? null)}\n{var $v_media = ($p['media'] ?? null)}\n{var $v_layout = ($p['layout'] ?? 'centered')}\n{var $v_scale = ($p['scale'] ?? 'default')}\n{var $v_tone = ($p['tone'] ?? 'default')}\n{var $v_density = ($p['density'] ?? 'roomy')}\n{var $v_image = ($p['image'] ?? null)}\n{var $v_imageAlt = ($p['imageAlt'] ?? null)}\n{var $v_landmarkLabel = ($p['landmarkLabel'] ?? null)}\n{var $v_mediaKind = og_coalesce([og_get($v_media, ['kind']), 'none'])}\n{var $v_mediaSide = og_coalesce([og_get($v_media, ['side']), 'end'])}\n{capture $f_5}\n  {if og_t(og_and([og_eq($v_mediaKind, 'code'), og_get($v_media, ['lines']), og_gt(og_len(og_get($v_media, ['lines'])), 0), og_get($v_media, ['codeTitle']), og_get($v_media, ['prompt'])]))}\n    {=og_include('blocks/code-window.latte', ['p' => ['title' => og_get($v_media, ['codeTitle']), 'prompt' => og_get($v_media, ['prompt']), 'lines' => og_get($v_media, ['lines'])]])|noescape}\n  {/if}\n  {if og_t(og_eq($v_mediaKind, 'cluster'))}\n    {capture $c_9}\n      {capture $c_6}\n        {=og_include('blocks/media-frame.latte', ['p' => ['alt' => $v_title, 'ratio' => '3/4']])|noescape}\n      {/capture}\n      {=og_include('compose/Box.latte', ['class' => og_s(og_cnv(['w-full', ''])), 'children' => (string) $c_6])|noescape}\n      {capture $c_7}\n        {=og_include('blocks/media-frame.latte', ['p' => ['alt' => $v_title, 'ratio' => '4/3']])|noescape}\n      {/capture}\n      {=og_include('compose/Box.latte', ['class' => og_s(og_cnv(['w-full', '-translate-y-4'])), 'children' => (string) $c_7])|noescape}\n      {capture $c_8}\n        {=og_include('blocks/media-frame.latte', ['p' => ['alt' => $v_title, 'ratio' => '3/4']])|noescape}\n      {/capture}\n      {=og_include('compose/Box.latte', ['class' => og_s(og_cnv(['w-full', ''])), 'children' => (string) $c_8])|noescape}\n    {/capture}\n    {=og_include('compose/Grid.latte', ['cols' => '3', 'class' => 'items-end gap-4', 'attrs' => og_attrs(['data-slot', 'cluster']), 'children' => (string) $c_9])|noescape}\n  {/if}\n  {if og_t(og_or([og_eq($v_mediaKind, 'image')]))}\n    {=og_include('blocks/media-frame.latte', ['p' => ['alt' => (og_t($v_imageAlt) ? $v_imageAlt : $v_title), 'src' => $v_image, 'ratio' => '4/3']])|noescape}\n  {/if}\n{/capture}\n{capture $c_10}\n  {=og_include('blocks/backdrop.latte', ['p' => ['kind' => (og_t(og_eq($v_mediaKind, 'backdrop')) ? 'image' : 'none'), 'alt' => (og_t($v_imageAlt) ? $v_imageAlt : $v_title), 'image' => $v_image]])|noescape}\n  {if og_t(og_get($v_actions, ['cta']))}\n    {if og_t(og_eq(og_get($v_actions, ['mode']), 'form'))}\n      {capture $c_4}\n        {capture $c_1}\n          {=og_text(og_get($v_actions, ['emailLabel']))}\n        {/capture}\n        {=og_include('compose/Label.latte', ['htmlFor' => og_s(og_tpl('{0}-email', [$v_id])), 'class' => 'sr-only', 'children' => (string) $c_1])|noescape}\n        {capture $c_3}\n          {=og_include('compose/Input.latte', ['type' => 'text', 'name' => 'prompt', 'class' => 'min-w-0 flex-1', 'placeholder' => og_s(og_get($v_actions, ['emailLabel'])), 'attrs' => og_attrs(['id', og_tpl('{0}-email', [$v_id]), 'data-slot', 'field'])])|noescape}\n          {capture $c_2}\n            {=og_text(og_get($v_actions, ['cta']))}\n          {/capture}\n          {=og_include('compose/Button.latte', ['variant' => 'default', 'size' => 'default', 'href' => og_url(og_s(og_get($v_actions, ['href']))), 'children' => (string) $c_2])|noescape}\n        {/capture}\n        {=og_include('compose/Group.latte', ['gap' => '2', 'align' => 'start', 'class' => 'w-full flex-wrap', 'children' => (string) $c_3])|noescape}\n      {/capture}\n      {=og_include('compose/Box.latte', ['class' => og_s(og_cnv(['w-full max-w-xl', (og_t(og_eq($v_layout, 'centered')) ? 'mx-auto' : '')])), 'attrs' => og_attrs(['data-slot', 'email-form']), 'children' => (string) $c_4])|noescape}\n    {else}\n      {=og_include('blocks/action-group.latte', ['p' => ['primary' => og_get($v_actions, ['cta']), 'primaryHref' => og_get($v_actions, ['href']), 'secondary' => (og_t(og_eq(og_get($v_actions, ['mode']), 'two')) ? og_get($v_actions, ['secondary']) : null), 'secondaryHref' => og_get($v_actions, ['secondaryHref']), 'align' => (og_t(og_eq($v_layout, 'centered')) ? 'center' : 'start')]])|noescape}\n    {/if}\n  {/if}\n  {if og_t(og_and([$v_topics, og_gt(og_len($v_topics), 0)]))}\n    {=og_include('blocks/topic-chips.latte', ['p' => ['topics' => $v_topics]])|noescape}\n  {/if}\n{/capture}\n{=og_include('blocks/section-frame.latte', ['p' => ['id' => $v_id, 'title' => $v_title, 'lead' => $v_text, 'heading' => ['level' => $v_level, 'scale' => $v_scale, 'badge' => $v_badge], 'layout' => (og_t(og_eq($v_layout, 'split')) ? 'split' : 'stack'), 'align' => (og_t(og_eq($v_layout, 'split')) ? 'start' : 'center'), 'media' => ['show' => og_or([og_eq($v_mediaKind, 'image'), og_eq($v_mediaKind, 'code'), og_eq($v_mediaKind, 'cluster')]), 'side' => $v_mediaSide], 'tone' => $v_tone, 'density' => $v_density, 'className' => og_cnv([(og_t(og_eq((og_t(og_eq($v_mediaKind, 'backdrop')) ? 'image' : 'none'), 'image')) ? 'relative isolate overflow-hidden' : '')]), 'landmarkLabel' => $v_landmarkLabel, 'aside' => og_markup($f_5)], 'children' => og_markup($c_10)])|noescape}\n",
      "path": "blocks/hero-classic.latte",
      "target": "blocks/hero-classic.latte"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "hero",
    "kind": "block",
    "tags": [
      "latte",
      "block"
    ]
  },
  "name": "hero-classic",
  "registryDependencies": [
    "action-group",
    "backdrop",
    "box",
    "button",
    "code-window",
    "grid",
    "group",
    "input",
    "label",
    "media-frame",
    "section-frame",
    "topic-chips",
    "utils"
  ],
  "runtime": "latte",
  "title": "Hero Classic",
  "type": "registry:block"
}
