/*!
 * EdGEL: The University of Edinburgh Design System v5.1.6-rc.2 (https://design-system.ed.ac.uk/)
 * Copyright 2014-2024 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,i as e,x as r,c as s}from"./base-D_0WJ-EF.js";import{E as o,e as a}from"./collapse-CGp8X6ms.js";import"./collapse-BN3IFvYQ.js";import"./selector-engine-CW-6rw1H.js";let l,n,i,p,c=t=>t;class d 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} w-100`,o=r(l||(l=c`
      <span class=${0} aria-hidden="true"></span>
      <slot></slot>
    `),a(t));return r(n||(n=c`
      <span class="edgel-js">
        ${0}
      </span>
    `),this.buttonHtml(o,s))}}t(d,"properties",{expanded:{type:Boolean,reflect:!0,attribute:"expanded"},colour:{type:String,attribute:"colour"},controls:{type:String,attribute:"controls"},parent:{type:String,attribute:"parent"}}),t(d,"styles",[e(i||(i=c`::slotted(*) { color: var(--edgel-hamburger-colour, inherit); }`)),e(p||(p=c`:host { display: inline-block; }`))]),s("edgel-hamburger",d);
