import { p as proxyCustomElement, H, h, d as Host } from './p-BhqVmlhr.js';

const DgaSecondNavHeader = /*@__PURE__*/ proxyCustomElement(class DgaSecondNavHeader extends H {
    constructor() {
        super();
        this.__registerHost();
        this.variant = 'primary';
    }
    componentWillLoad() {
        this.el.childNodes.forEach((item) => {
            const el = item;
            if (el.tagName === 'DGA-SECOND-NAV-HEADER-CONTENT' && this.hideContent === true) {
                el.style.display = 'none';
            }
            if (el.tagName === 'DGA-SECOND-NAV-HEADER-ACTIONS' && this.hideActions === true) {
                el.style.display = 'none';
            }
            if (el.tagName === 'DGA-SECOND-NAV-HEADER-CONTENT' && el.attributes.getNamedItem('slot') === null) {
                el.setAttribute('slot', 'content');
            }
            if (el.tagName === 'DGA-SECOND-NAV-HEADER-ACTIONS' && el.attributes.getNamedItem('slot') === null) {
                el.setAttribute('slot', 'actions');
            }
        });
    }
    render() {
        return (h(Host, { key: '97c98d0412b928e7690a34db9b858d065ed1a1a5' }, h("div", { key: '7311349c4fcde2f18cd6bf0f87305e0a60d5a4c2', class: `wrapper ${this.variant} `, "aria-label": 'a secondary navigation navbar' }, h("div", { key: 'f77d3a91f40b5f401b68381da4bff897b854a84a', class: `container ${this.hideDivider ? '' : 'border'}` }, h("div", { key: '90657750cdf05e52811c8394f84aca53b92a2e6c', class: `content` }, h("slot", { key: '3ef6c602e27d5092bfeac1fbc013e9f7664f3951', name: "content" })), h("div", { key: '288904638f4e47678ed852fcb58ff2e6e70d9d13', class: `actions` }, h("slot", { key: '1cbf8daedb8ade075c19e1f623ba03c7ac5d25d0', name: "actions" }))))));
    }
    get el() { return this; }
}, [6, "dga-second-nav-header", {
        "variant": [1],
        "hideDivider": [1028, "hide-divider"],
        "hideActions": [4, "hide-actions"],
        "hideContent": [4, "hide-content"]
    }]);
function defineCustomElement() {
    if (typeof customElements === "undefined") {
        return;
    }
    const components = ["dga-second-nav-header"];
    components.forEach(tagName => { switch (tagName) {
        case "dga-second-nav-header":
            if (!customElements.get(tagName)) {
                customElements.define(tagName, DgaSecondNavHeader);
            }
            break;
    } });
}

export { DgaSecondNavHeader as D, defineCustomElement as d };
