/*!
 * EdGEL: The University of Edinburgh Design System v5.0.0 (https://design-system.ed.ac.uk/)
 * Copyright 2014-2023 The University of Edinburgh
 *
 * Bootstrap  v5.3.2 (https://getbootstrap.com/)
 * Copyright 2011-2023 The Bootstrap Authors
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
 */
import{_ as t,i as e,x as r,c as s}from"./base-2Isyko0t.js";import{E as o,e as a}from"./collapse-zYCjoaZf.js";import"./collapse-Fp-mMCqS.js";import"./selector-engine-FWBG9T7Z.js";let l,n,i,p=t=>t;class c extends o{constructor(){super(),this.expanded=!1,this.colour="dark",this.collapseInternal=!1}render(){const t={hamburger:!0,"hamburger-expanded":this.expanded},e=`${this.colour}`.replaceAll(/[^a-z-]/g,"");if(!this.controls)throw new Error('Missing "controls" attribute');const s=`btn-${e}`,o=r(l||(l=p`
      <span class=${0} aria-hidden="true"></span>
      <slot></slot>
    `),a(t));return r(n||(n=p`
      <span class="edgel-js">
        ${0}
      </span>
    `),this.buttonHtml(o,s))}}t(c,"properties",{expanded:{type:Boolean,reflect:!0,attribute:"expanded"},colour:{type:String,attribute:"colour"},controls:{type:String,attribute:"controls"},parent:{type:String,attribute:"parent"}}),t(c,"styles",[e(i||(i=p`::slotted(*) { color: var(--edgel-hamburger-colour, inherit); }`))]),s("edgel-hamburger",c);
