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

const DgaHeaderActionBtn = /*@__PURE__*/ proxyCustomElement(class DgaHeaderActionBtn extends H {
    constructor() {
        super();
        this.__registerHost();
        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))));
    }
}, [0, "dga-header-action-btn", {
        "label": [1],
        "icon": [1],
        "active": [4],
        "extraClasses": [1, "extra-classes"],
        "onClick": [16]
    }]);
function defineCustomElement() {
    if (typeof customElements === "undefined") {
        return;
    }
    const components = ["dga-header-action-btn", "dga-icon"];
    components.forEach(tagName => { switch (tagName) {
        case "dga-header-action-btn":
            if (!customElements.get(tagName)) {
                customElements.define(tagName, DgaHeaderActionBtn);
            }
            break;
        case "dga-icon":
            if (!customElements.get(tagName)) {
                defineCustomElement$1();
            }
            break;
    } });
}

export { DgaHeaderActionBtn as D, defineCustomElement as d };

//# sourceMappingURL=p-c32440a4.js.map