'use strict';

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

const DgaNavHeaderSubMenuLink = class {
    constructor(hostRef) {
        index.registerInstance(this, hostRef);
    }
    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 (index.h("a", { key: '63fd646d76939fcd75384b6a45d85070e401209e', href: this.link, class: `sub-menu__link ${backgroundClass}` }, this.linkStyle && this.linkStyle > 0 ? index.h("div", { class: linkStyleClass }, this.icon && index.h("dga-icon", { icon: this.icon })) : null, index.h("div", { key: '54fca72736bf52ad37d3c31f6d990f0f317f938c', class: "dga-flex-column" }, index.h("span", { key: '3054089671e1353366d75e98d1fb39830ea48386', class: "sub-menu__link-label" }, this.label), this.helperText && index.h("span", { key: '835be33d118ced1b106a8a098709df18a8926169', class: "sub-menu__link-helper" }, this.helperText))));
    }
};

exports.DgaNavHeaderSubMenuLink = DgaNavHeaderSubMenuLink;

//# sourceMappingURL=dga-nav-header-sub-menu-link-cf6b42a7.js.map