import { p as proxyCustomElement, H, h, c as Host } from './p-604af0ee.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: '7b4337019906155b588661d26fdd266133fc3dd3' }, h("div", { key: '030d1b0d16e57f33bd2acead40d79ada06c62eba', class: `wrapper ${this.variant} `, "aria-label": 'a secondary navigation navbar' }, h("div", { key: '845cbc1af765c49d9c0cd186b3320b44996ddcf9', class: `container ${this.hideDivider ? '' : 'border'}` }, h("div", { key: 'a15f8a49420573d4b24b1dfd7996be03bf29fbf5', class: `content` }, h("slot", { key: '4dbf4b68e5770b1b45d5ada842c6028e3940c0f7', name: "content" })), h("div", { key: '1f2648a0395229235809606ef03ac7e8ecb9ee63', class: `actions` }, h("slot", { key: 'be8df10b159b7e536db796d61ab25f0c1f7203c6', 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 };

//# sourceMappingURL=p-5d92717e.js.map