'use strict';

const index = require('./index-a0b63bee.js');

const DgaNavHeader = class {
    constructor(hostRef) {
        index.registerInstance(this, hostRef);
        this.fullWidth = true;
        this.divider = true;
        this.sticky = false;
    }
    // @Prop() position: 'sticky' | 'relative' = 'relative';
    render() {
        return (index.h("header", { key: '7890b45dc43b94531d5a254a3b65ac8fa5407a05', class: `header ${this.divider ? 'header--divider' : ''} ${this.sticky ? 'header--sticky' : ''}` }, index.h("nav", { key: '8a5ba851658aa7ec1d5c5430b8768634fc956f0c', class: `header-nav--${this.fullWidth ? 'full' : 'fixed'}` }, index.h("slot", { key: '921d03eb9293b518fe139005b242057b45e6bf03' }))));
    }
};

const DgaNavHeaderMain = class {
    constructor(hostRef) {
        index.registerInstance(this, hostRef);
        this.toggleCollapsed = index.createEvent(this, "toggleCollapsed", 7);
        this.collapsed = false;
        this.handleToggle = () => {
            this.toggleCollapsed.emit(!this.collapsed);
        };
    }
    render() {
        return (index.h("div", { key: 'aa3782138401de094b45222a48168b94871dfdda', class: "header-nav__main" }, index.h("button", { key: '0a201a855682cc4545bdc8ad97111b42d6685f11', type: "button", onClick: this.handleToggle, class: "header-menu__btn" }, index.h("span", { key: '75061c26af6527c02bfbc0e9498a28a27c538b1d', class: "btn-icon header-menu__btn-icon" }, index.h("dga-icon", { key: '8f6ae11a9d54ea6ccc7f4b3b7e04a243a8d5888e', icon: this.collapsed ? 'menu01' : 'cancel01' }))), index.h("slot", { key: '893cc7b8ed6337a11e6b23196bc90967563e5e40' })));
    }
};

const DgaNavHeaderLogos = class {
    constructor(hostRef) {
        index.registerInstance(this, hostRef);
        this.logoLink = '#';
        this.govLink = '#';
    }
    render() {
        return (index.h("div", { key: '024d4b118aab6dc2985330fdb21d1a4e7338ba6b', class: "header-nav__branding" }, this.govSrc && (index.h("div", { key: '8342c99fcf03ec2f276c332b926c1ea402ee3a20', class: "flex xs-hide" }, index.h("a", { key: '16b60d9e9b48174476314ef97e1da3efb753d60c', href: this.govLink }, index.h("img", { key: '4feda357530b87fb103a2f23f85c97b94daf47a6', src: this.govSrc, alt: this.govAlt })), index.h("div", { key: '0a4a41878459583c1471bb74fa4683c6d3d160db', class: "ver-divider" }))), index.h("a", { key: '87bfad1d6fa109ceeb4dbcb3774a63496a2759e9', href: this.logoLink, class: "header__logo" }, index.h("img", { key: '2566a6efa62de0fd090e672c47ce40d3de78f9f6', src: this.logoSrc, alt: this.logoAlt }))));
    }
};

const DgaNavHeaderMenu = class {
    constructor(hostRef) {
        index.registerInstance(this, hostRef);
    }
    render() {
        return (index.h("ul", { key: '278484d1e5a57248261f4777977cc856ee5d53d6', class: "header-nav__menu" }, index.h("slot", { key: '340a401288047721b491a8189590da172c8eaf8f' })));
    }
};

const DgaNavHeaderLink = class {
    constructor(hostRef) {
        index.registerInstance(this, hostRef);
        this.linkClicked = index.createEvent(this, "linkClicked", 7);
        this.iconProps = {};
        this.active = false;
        this.subMenuBackground = 'Brand';
        this.subMenuFullWidth = true;
        this.handleClick = (event) => {
            event.preventDefault();
            this.linkClicked.emit();
        };
    }
    render() {
        return (index.h("li", { key: '4b3b13062ddd98356ec9b101e48f6402e0c1e80b' }, index.h("a", { key: '1ebf012e8082418aeb2d302bb420733382b8b195', href: "#", class: `header-menu__item ${this.active ? 'header-menu__item--active' : ''}`, onClick: this.handleClick }, index.h("span", { key: '4886f6efb78c354e4a83698734ec24c823bcdc53', class: "header-menu__item-label" }, this.label), index.h("span", { key: 'dbc45de1700773f837aefb30f54bc3eb30397e9d', class: "header-menu__item-arrow" }, index.h("dga-icon", Object.assign({ key: '19421abfad077540719b936b5d7ffadc154d14da', icon: this.icon }, this.iconProps)))), this.active && (index.h("dga-nav-header-sub-menu", { key: 'f1b4d97dac7ccf4702de719d663e514b8b611412', active: this.active, "sub-menu-full-width": this.subMenuFullWidth, background: this.subMenuBackground }, index.h("slot", { key: 'eba8938408e3b4eaf3f47df81c1ac9cc09dca08a' })))));
    }
};

const DgaNavHeaderActions = class {
    constructor(hostRef) {
        index.registerInstance(this, hostRef);
    }
    render() {
        return (index.h(index.Fragment, { key: '33b9469d257bf7da9611a91f8a20a13297b91b8d' }, index.h("button", { key: '56970851ef0ede0a9ec5658bce30bd593f18fde4', type: "button", class: "header-menu__btn btn btn--lg btn--subtle btn--icon" }, index.h("span", { key: '17888484fb7266ec3d8341a553954ac1dbb92972', class: "btn-icon header-menu__btn-icon" }, index.h("dga-icon", { key: '98179edf4fb8ffa5d6210e16c2496622c08ede64', icon: "MoreHorizontalCircleIcon", variant: "solid" }))), index.h("ul", { key: 'd8fab68dc250e2164b9372efe0aae03eaea1f5b0', class: "header-nav__actions" }, index.h("slot", { key: '4217f4d9162a78f6de71ca6c405cc1fe80d1d55e' }))));
    }
};

const DgaHeaderActionBtn = class {
    constructor(hostRef) {
        index.registerInstance(this, hostRef);
        this.active = false;
        this.extraClasses = '';
    }
    handleClick(event) {
        event.preventDefault();
        if (this.onClick) {
            this.onClick();
        }
    }
    render() {
        return (index.h("li", { key: '3f681b153e16c38be5ec69a3d6663ebbc02a45ed' }, index.h("a", { key: 'cc1b8d50dd58dc911d7f5cc48d1d0b3a44db8b61', href: "#", class: `header-menu__item ${this.active ? 'header-menu__item--active' : ''} ${this.extraClasses}`, onClick: this.handleClick.bind(this) }, index.h("span", { key: 'a5aa75e71b9ea6797303996ab8e108233856d97d', class: "header-menu__item-arrow" }, index.h("dga-icon", { key: '5b02ad0699805fbc76b902e260b09f1ae8777cb1', icon: this.icon })), index.h("span", { key: '090ab9d96f8aa7ec5719e42b3cbd4eed46ea1bdd', class: "header-menu__item-label" }, this.label))));
    }
};

exports.DgaHeaderActionBtn = DgaHeaderActionBtn;
exports.DgaNavHeader = DgaNavHeader;
exports.DgaNavHeaderActions = DgaNavHeaderActions;
exports.DgaNavHeaderLink = DgaNavHeaderLink;
exports.DgaNavHeaderLogos = DgaNavHeaderLogos;
exports.DgaNavHeaderMain = DgaNavHeaderMain;
exports.DgaNavHeaderMenu = DgaNavHeaderMenu;

//# sourceMappingURL=dga-header-action-btn-5c41bd3a.js.map