import { p as proxyCustomElement, H, h } from './p-604af0ee.js';
import { d as defineCustomElement$1 } from './p-888b8e69.js';

const DgaNavHeaderSubMenuLink = /*@__PURE__*/ proxyCustomElement(class DgaNavHeaderSubMenuLink extends H {
    constructor() {
        super();
        this.__registerHost();
    }
    render() {
        const backgroundClass = this.background === 'Brand' ? 'sub-menu__link--on-color' : '';
        const linkStyleClass = this.linkStyle && this.linkStyle > 0 ? (this.linkStyle === 2 ? 'sub-menu__link-icon--bg' : 'sub-menu__link-icon') : '';
        return (h("a", { key: '63fd646d76939fcd75384b6a45d85070e401209e', href: this.link, class: `sub-menu__link ${backgroundClass}` }, this.linkStyle && this.linkStyle > 0 ? h("div", { class: linkStyleClass }, this.icon && h("dga-icon", { icon: this.icon })) : null, h("div", { key: '54fca72736bf52ad37d3c31f6d990f0f317f938c', class: "dga-flex-column" }, h("span", { key: '3054089671e1353366d75e98d1fb39830ea48386', class: "sub-menu__link-label" }, this.label), this.helperText && h("span", { key: '835be33d118ced1b106a8a098709df18a8926169', class: "sub-menu__link-helper" }, this.helperText))));
    }
}, [0, "dga-nav-header-sub-menu-link", {
        "background": [1],
        "link": [1],
        "linkStyle": [2, "link-style"],
        "label": [1],
        "helperText": [1, "helper-text"],
        "icon": [1]
    }]);
function defineCustomElement() {
    if (typeof customElements === "undefined") {
        return;
    }
    const components = ["dga-nav-header-sub-menu-link", "dga-icon"];
    components.forEach(tagName => { switch (tagName) {
        case "dga-nav-header-sub-menu-link":
            if (!customElements.get(tagName)) {
                customElements.define(tagName, DgaNavHeaderSubMenuLink);
            }
            break;
        case "dga-icon":
            if (!customElements.get(tagName)) {
                defineCustomElement$1();
            }
            break;
    } });
}

export { DgaNavHeaderSubMenuLink as D, defineCustomElement as d };

//# sourceMappingURL=p-95ec9284.js.map