{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "The head row of a hero band: skip link, brand, menu links (the current one carries aria-current), login and a call to action.",
  "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-head.json\n    The head row of a hero band: skip link, brand, menu links (the current one carries aria-current), login and a call to action.\n    Props (p): brand, brandHref, links, current, login, loginHref, cta, href, skip, navLabel, landmarkLabel. *}\n{var $v_brand = ($p['brand'] ?? null)}\n{var $v_brandHref = ($p['brandHref'] ?? null)}\n{var $v_links = ($p['links'] ?? null)}\n{var $v_current = ($p['current'] ?? '')}\n{var $v_login = ($p['login'] ?? null)}\n{var $v_loginHref = ($p['loginHref'] ?? null)}\n{var $v_cta = ($p['cta'] ?? null)}\n{var $v_href = ($p['href'] ?? null)}\n{var $v_skip = ($p['skip'] ?? null)}\n{var $v_navLabel = ($p['navLabel'] ?? null)}\n{var $v_landmarkLabel = ($p['landmarkLabel'] ?? null)}\n{capture $c_10}\n  {if og_t($v_skip)}\n    {capture $c_1}\n      {=og_text($v_skip)}\n    {/capture}\n    {=og_include('compose/LinkPlain.latte', ['href' => '#main-content', 'class' => 'sr-only focus:not-sr-only focus:fixed focus:left-2 focus:top-2 focus:z-50 focus:rounded focus:bg-background focus:px-4 focus:py-2 focus:text-sm focus:text-foreground focus:inset-ring focus:inset-ring-border', 'attrs' => og_attrs(['data-slot', 'skip-link']), 'children' => (string) $c_1])|noescape}\n  {/if}\n  {capture $c_2}\n    {=og_text($v_brand)}\n  {/capture}\n  {=og_include('blocks/menu-entry.latte', ['p' => ['href' => $v_brandHref, 'className' => og_cnv([og_cnv([og_preset('blocks/presets/defaults.json', ['text', 'small']), 'font-medium leading-6 text-background'])]), 'testid' => 'brand'], 'children' => og_markup($c_2)])|noescape}\n  {if og_t(og_and([$v_links, og_gt(og_len($v_links), 0)]))}\n    {capture $c_6}\n      {capture $c_5}\n        {foreach og_l($v_links) as $v_l}\n          {if og_t(og_get($v_l, ['href']))}\n            {capture $c_3}\n              {=og_text(og_get($v_l, ['name']))}\n            {/capture}\n            {=og_include('compose/Link.latte', ['href' => og_url(og_s(og_get($v_l, ['href']))), 'variant' => 'default', 'ariaCurrent' => og_s((og_t(og_eq(og_get($v_l, ['id']), $v_current)) ? 'page' : null)), 'class' => 'text-xs font-medium leading-5 text-background', 'attrs' => og_attrs(['data-slot', 'nav-link']), 'children' => (string) $c_3])|noescape}\n          {else}\n            {capture $c_4}\n              {=og_text(og_get($v_l, ['name']))}\n            {/capture}\n            {=og_include('compose/Inline.latte', ['class' => 'text-xs font-medium leading-5 text-background', 'attrs' => og_attrs(['data-slot', 'nav-link']), 'children' => (string) $c_4])|noescape}\n          {/if}\n        {/foreach}\n      {/capture}\n      {=og_include('compose/Group.latte', ['gap' => '8', 'align' => 'center', 'class' => 'flex-wrap', 'children' => (string) $c_5])|noescape}\n    {/capture}\n    {=og_include('blocks/nav-block.latte', ['p' => ['label' => (og_t($v_landmarkLabel) ? og_uniq(og_tpl('{0}, {1}', [$v_navLabel, $v_landmarkLabel])) : $v_navLabel), 'testid' => 'site-nav'], 'children' => og_markup($c_6)])|noescape}\n  {/if}\n  {capture $c_9}\n    {if og_t($v_login)}\n      {capture $c_7}\n        {=og_text($v_login)}\n      {/capture}\n      {=og_include('compose/Button.latte', ['href' => og_url(og_s($v_loginHref)), 'variant' => 'ghost', 'size' => 'sm', 'class' => 'text-background hover:bg-background/10', 'children' => (string) $c_7])|noescape}\n    {/if}\n    {if og_t($v_cta)}\n      {capture $c_8}\n        {=og_text($v_cta)}\n      {/capture}\n      {=og_include('compose/Button.latte', ['href' => og_url(og_s($v_href)), 'variant' => 'secondary', 'size' => 'sm', 'children' => (string) $c_8])|noescape}\n    {/if}\n  {/capture}\n  {=og_include('compose/Group.latte', ['gap' => '2', 'align' => 'center', 'children' => (string) $c_9])|noescape}\n{/capture}\n{=og_include('compose/Block.latte', ['tag' => 'header', 'class' => og_s(og_cnv(['flex w-full flex-wrap items-center justify-between pr-4', og_preset('blocks/presets/defaults.json', ['hero', 'head'])])), 'attrs' => og_attrs(['aria-label', $v_landmarkLabel, 'data-slot', 'hero-head']), 'children' => (string) $c_10])|noescape}\n",
      "path": "blocks/hero-head.latte",
      "target": "blocks/hero-head.latte"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "latte",
      "component"
    ]
  },
  "name": "hero-head",
  "registryDependencies": [
    "block",
    "button",
    "group",
    "inline",
    "link",
    "link-plain",
    "menu-entry",
    "nav-block",
    "presets",
    "utils"
  ],
  "runtime": "latte",
  "title": "Hero Head",
  "type": "registry:component"
}
