{
  "$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{%- set v_brand = (p.brand ?? null) -%}\n{%- set v_brandHref = (p.brandHref ?? null) -%}\n{%- set v_links = (p.links ?? null) -%}\n{%- set v_current = (p.current ?? '') -%}\n{%- set v_login = (p.login ?? null) -%}\n{%- set v_loginHref = (p.loginHref ?? null) -%}\n{%- set v_cta = (p.cta ?? null) -%}\n{%- set v_href = (p.href ?? null) -%}\n{%- set v_skip = (p.skip ?? null) -%}\n{%- set v_navLabel = (p.navLabel ?? null) -%}\n{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}\n{%- set c_10 -%}\n  {%- if og_t(v_skip) %}\n    {%- set c_1 -%}\n      {{ og_text(v_skip) }}\n    {%- endset -%}\n    {{ include('compose/LinkPlain.html.twig', {'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': c_1}, with_context = false) }}\n  {%- endif %}\n  {%- set c_2 -%}\n    {{ og_text(v_brand) }}\n  {%- endset -%}\n  {{ include('blocks/menu-entry.html.twig', {'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)}, with_context = false) }}\n  {%- if og_t(og_and([v_links, og_gt(og_len(v_links), 0)])) %}\n    {%- set c_6 -%}\n      {%- set c_5 -%}\n        {%- for v_l in og_l(v_links) %}\n          {%- if og_t(og_get(v_l, ['href'])) %}\n            {%- set c_3 -%}\n              {{ og_text(og_get(v_l, ['name'])) }}\n            {%- endset -%}\n            {{ include('compose/Link.html.twig', {'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': c_3}, with_context = false) }}\n          {%- else %}\n            {%- set c_4 -%}\n              {{ og_text(og_get(v_l, ['name'])) }}\n            {%- endset -%}\n            {{ include('compose/Inline.html.twig', {'class': 'text-xs font-medium leading-5 text-background', 'attrs': og_attrs(['data-slot', 'nav-link']), 'children': c_4}, with_context = false) }}\n          {%- endif %}\n        {%- endfor %}\n      {%- endset -%}\n      {{ include('compose/Group.html.twig', {'gap': '8', 'align': 'center', 'class': 'flex-wrap', 'children': c_5}, with_context = false) }}\n    {%- endset -%}\n    {{ include('blocks/nav-block.html.twig', {'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)}, with_context = false) }}\n  {%- endif %}\n  {%- set c_9 -%}\n    {%- if og_t(v_login) %}\n      {%- set c_7 -%}\n        {{ og_text(v_login) }}\n      {%- endset -%}\n      {{ include('compose/Button.html.twig', {'href': og_url(og_s(v_loginHref)), 'variant': 'ghost', 'size': 'sm', 'class': 'text-background hover:bg-background/10', 'children': c_7}, with_context = false) }}\n    {%- endif %}\n    {%- if og_t(v_cta) %}\n      {%- set c_8 -%}\n        {{ og_text(v_cta) }}\n      {%- endset -%}\n      {{ include('compose/Button.html.twig', {'href': og_url(og_s(v_href)), 'variant': 'secondary', 'size': 'sm', 'children': c_8}, with_context = false) }}\n    {%- endif %}\n  {%- endset -%}\n  {{ include('compose/Group.html.twig', {'gap': '2', 'align': 'center', 'children': c_9}, with_context = false) }}\n{%- endset -%}\n{{ include('compose/Block.html.twig', {'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': c_10}, with_context = false) }}\n",
      "path": "blocks/hero-head.html.twig",
      "target": "blocks/hero-head.html.twig"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "twig",
      "component"
    ]
  },
  "name": "hero-head",
  "registryDependencies": [
    "block",
    "button",
    "group",
    "inline",
    "link",
    "link-plain",
    "menu-entry",
    "nav-block",
    "presets",
    "utils"
  ],
  "runtime": "twig",
  "title": "Hero Head",
  "type": "registry:component"
}
