'use strict';

var dgaHeaderActionBtn = require('./dga-header-action-btn-C9zCNIGD.js');
var index = require('./index-DSiE2De_.js');

const DgaSecondNavHeader = class {
    constructor(hostRef) {
        index.registerInstance(this, hostRef);
        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 (index.h(index.Host, { key: '97c98d0412b928e7690a34db9b858d065ed1a1a5' }, index.h("div", { key: '7311349c4fcde2f18cd6bf0f87305e0a60d5a4c2', class: `wrapper ${this.variant} `, "aria-label": 'a secondary navigation navbar' }, index.h("div", { key: 'f77d3a91f40b5f401b68381da4bff897b854a84a', class: `container ${this.hideDivider ? '' : 'border'}` }, index.h("div", { key: '90657750cdf05e52811c8394f84aca53b92a2e6c', class: `content` }, index.h("slot", { key: '3ef6c602e27d5092bfeac1fbc013e9f7664f3951', name: "content" })), index.h("div", { key: '288904638f4e47678ed852fcb58ff2e6e70d9d13', class: `actions` }, index.h("slot", { key: '1cbf8daedb8ade075c19e1f623ba03c7ac5d25d0', name: "actions" }))))));
    }
    get el() { return index.getElement(this); }
};

const DgaSecondNavHeaderActions = class {
    constructor(hostRef) {
        index.registerInstance(this, hostRef);
    }
    render() {
        return (index.h(index.Host, { key: 'd1e640c6c31419544931a943928581ef2ea7eb5c' }, index.h("div", { key: '0ed3577db3702c1a6a9541119c5869052bfdfc51', class: `items-container` }, index.h("slot", { key: 'a876aa2c50147c276c9c687b9a4588aa7c5aea0c' }))));
    }
};

const DgaSecondNavHeaderContent = class {
    constructor(hostRef) {
        index.registerInstance(this, hostRef);
    }
    render() {
        return (index.h(index.Host, { key: '91c825b1539a33b6c559e9e684428bd9af3e83ae' }, index.h("div", { key: '5e480a12ae5ffac72c5aad75c6b71f3ed3b1b733', class: `items-container` }, index.h("slot", { key: '091a6c6eea6c714f2366d977d54650b942b7adde' }))));
    }
};

const DgaSecondNavHeaderItem = class {
    constructor(hostRef) {
        index.registerInstance(this, hostRef);
    }
    connectedCallback() {
        this.el.childNodes.forEach((item) => {
            const el = item;
            if (el.tagName === 'DGA-ICON'.toLocaleUpperCase() && el.attributes.getNamedItem('slot') === null) {
                el.setAttribute('slot', 'icon');
            }
        });
    }
    render() {
        return (index.h(index.Host, { key: 'a85326c31b79ccdebf74482c9dd4e1dbb3647f69' }, index.h("slot", { key: '4cb233cf04983344e759015607e4eadbb3576a68', name: 'icon' }), index.h("slot", { key: 'a01ddbac3667222c95ab5e72169875c8fe0094e6', name: 'label' }, this.label)));
    }
    get el() { return index.getElement(this); }
};

exports.dga_header_action_btn = dgaHeaderActionBtn.DgaHeaderActionBtn;
exports.dga_nav_header = dgaHeaderActionBtn.DgaNavHeader;
exports.dga_nav_header_actions = dgaHeaderActionBtn.DgaNavHeaderActions;
exports.dga_nav_header_link = dgaHeaderActionBtn.DgaNavHeaderLink;
exports.dga_nav_header_logos = dgaHeaderActionBtn.DgaNavHeaderLogos;
exports.dga_nav_header_main = dgaHeaderActionBtn.DgaNavHeaderMain;
exports.dga_nav_header_menu = dgaHeaderActionBtn.DgaNavHeaderMenu;
exports.dga_second_nav_header = DgaSecondNavHeader;
exports.dga_second_nav_header_actions = DgaSecondNavHeaderActions;
exports.dga_second_nav_header_content = DgaSecondNavHeaderContent;
exports.dga_second_nav_header_item = DgaSecondNavHeaderItem;
