/*!
 * EdGEL: The University of Edinburgh Design System v5.3.1 (https://design-system.ed.ac.uk/)
 * Copyright 2014-2025 The University of Edinburgh
 *
 * Bootstrap  v5.3.3 (https://getbootstrap.com/)
 * Copyright 2011-2024 The Bootstrap Authors
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
 */
import{_ as t,a as e,x as i,c as s}from"./base-D29SVYIK.js";let a,r,l,n,h,d,b,c,g,u,p=t=>t;class $ extends e{render(){if(!this.titleText||!this.titleLink)return"";const t=this.pageHeading?i(a||(a=p`<h1><a href=${0} class="stretched-link">${0}</a></h1>`),this.titleLink,this.titleText):i(r||(r=p`<a class="h1 stretched-link" href=${0}>${0}</a>`),this.titleLink,this.titleText);let e=i(l||(l=p``));this.subtitleText&&this.subtitleLink&&(e=this.pageHeading?i(n||(n=p`<h2><a href=${0}>${0}</a></h2>`),this.subtitleLink,this.subtitleText):i(h||(h=p`<a class="h2" href=${0}>${0}</a>`),this.subtitleLink,this.subtitleText));const s=this.innerHTML.replaceAll(/<!--[^>]*-->/gm,"").trim(),$=this.brandSrc&&s?i(d||(d=p`
        <div class="container-branding">
          <img class="masthead-branding" src=${0} alt=${0}>
        </div>
      `),this.brandSrc,this.brandAlt):i(b||(b=p``)),k=s?i(c||(c=p`
        <div class="masthead-banner">
          <slot></slot>
          ${0}
        </div>
      `),$):i(g||(g=p``));return i(u||(u=p`
      <div class="masthead-hero">
        ${0}
        <div class="masthead-title">
          ${0}
          ${0}
        </div>
      </div>
    `),k,t,e)}}t($,"properties",{titleText:{type:String,attribute:"title-text"},titleLink:{type:String,attribute:"title-link"},subtitleText:{type:String,attribute:"subtitle-text"},subtitleLink:{type:String,attribute:"subtitle-link"},pageHeading:{type:Boolean,attribute:"page-heading"},brandSrc:{type:String,attribute:"brand-src"},brandAlt:{type:String,attribute:"brand-alt"}}),s("edgel-masthead-hero",$);
