export{a as dga_header_action_btn,f as dga_nav_header,D as dga_nav_header_actions,e as dga_nav_header_link,c as dga_nav_header_logos,b as dga_nav_header_main,d as dga_nav_header_menu}from"./p-23961272.js";import{r as s,h as t,g as n,H as r}from"./p-0d5a2e05.js";const i=class{constructor(e){s(this,e);this.active=false;this.subMenuFullWidth=false}onActiveChange(){if(this.active&&this.submenu){this.submenu.style.display="block";this.submenu.style.maxHeight=`${this.submenu.scrollHeight}px`}else if(this.submenu){this.submenu.style.maxHeight=""}}componentDidLoad(){this.submenu=this.el.shadowRoot.querySelector(".header__sub-menu");this.onActiveChange()}render(){const e=this.background==="Brand"?"header__sub-menu--bg-brand":"";const a=this.subMenuFullWidth?"header__sub-menu--full":"";return t("div",{key:"60795e354d8aca73dbadda2e1abb81731662d046",class:`header__sub-menu ${e} ${a}`,ref:e=>this.submenu=e},t("div",{key:"e26408241071d544add36fb1769893e9964ebbd5",class:"sub-menu__container"},t("slot",{key:"59998beb0e160440d9c7c788b826dba6ee98712b"})))}get el(){return n(this)}static get watchers(){return{active:["onActiveChange"]}}};const o=class{constructor(e){s(this,e);this.variant="primary"}componentWillLoad(){this.el.childNodes.forEach((e=>{const a=e;if(a.tagName==="DGA-SECOND-NAV-HEADER-CONTENT"&&this.hideContent===true){a.style.display="none"}if(a.tagName==="DGA-SECOND-NAV-HEADER-ACTIONS"&&this.hideActions===true){a.style.display="none"}if(a.tagName==="DGA-SECOND-NAV-HEADER-CONTENT"&&a.attributes.getNamedItem("slot")===null){a.setAttribute("slot","content")}if(a.tagName==="DGA-SECOND-NAV-HEADER-ACTIONS"&&a.attributes.getNamedItem("slot")===null){a.setAttribute("slot","actions")}}))}render(){return t(r,{key:"7b4337019906155b588661d26fdd266133fc3dd3"},t("div",{key:"030d1b0d16e57f33bd2acead40d79ada06c62eba",class:`wrapper ${this.variant} `,"aria-label":"a secondary navigation navbar"},t("div",{key:"845cbc1af765c49d9c0cd186b3320b44996ddcf9",class:`container ${this.hideDivider?"":"border"}`},t("div",{key:"a15f8a49420573d4b24b1dfd7996be03bf29fbf5",class:`content`},t("slot",{key:"4dbf4b68e5770b1b45d5ada842c6028e3940c0f7",name:"content"})),t("div",{key:"1f2648a0395229235809606ef03ac7e8ecb9ee63",class:`actions`},t("slot",{key:"be8df10b159b7e536db796d61ab25f0c1f7203c6",name:"actions"})))))}get el(){return n(this)}};const l=class{constructor(e){s(this,e)}render(){return t(r,{key:"573f01829709de8e8bb5ab134445c13f9958ee22"},t("div",{key:"3be4cd1e638b0786ecbd49baaf7dc1223cc236de",class:`items-container`},t("slot",{key:"50c985bdb80a92cdc542bd296be3a5bbc00b9db2"})))}};const h=class{constructor(e){s(this,e)}render(){return t(r,{key:"eea53f3f4cacd826343df1c500235fc3876587f9"},t("div",{key:"0d016bb7c6afb92c03fd665c6e46c54d12eac988",class:`items-container`},t("slot",{key:"97755366fd00f0545d15157357238e41fa614a74"})))}};const _=class{constructor(e){s(this,e)}connectedCallback(){this.el.childNodes.forEach((e=>{const a=e;if(a.tagName==="DGA-ICON".toLocaleUpperCase()&&a.attributes.getNamedItem("slot")===null){a.setAttribute("slot","icon")}}))}render(){return t(r,{key:"4d2ca1cf5c638f5647d9f80f47aa505455434576"},t("slot",{key:"9aaf12cbe019b34b41e8cbed03b508b1c0d01a28",name:"icon"}),t("slot",{key:"adccc572b834f22150efdae46405800b5f5b588a",name:"label"},this.label))}get el(){return n(this)}};export{i as dga_nav_header_sub_menu,o as dga_second_nav_header,l as dga_second_nav_header_actions,h as dga_second_nav_header_content,_ as dga_second_nav_header_item};
//# sourceMappingURL=p-8eee1481.entry.js.map