import { r as registerInstance, h, c as createEvent, F as Fragment } from './index-1acf58d3.js';

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

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

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

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

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

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

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

export { DgaNavHeaderActions as D, DgaHeaderActionBtn as a, DgaNavHeaderMain as b, DgaNavHeaderLogos as c, DgaNavHeaderMenu as d, DgaNavHeaderLink as e, DgaNavHeader as f };

//# sourceMappingURL=dga-header-action-btn-073b4404.js.map