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

const DgaHelperText = /*@__PURE__*/ proxyCustomElement(class DgaHelperText extends H {
    constructor() {
        super();
        this.__registerHost();
        this.helperText = '';
        this.error = false;
    }
    render() {
        var _a;
        return (h("div", { key: '3027091d08930ba6a5c9b1c6339ee6a07973288d', class: `dga-helper-text ${this.error ? "dga-helper-text--error" : ""}` }, h("span", { key: 'b8009e673984f1b8fd2d960ed15ca274d0cb31ba', class: "dga-helper-text__icon" }, this.helperTextIcon && ((_a = this.helperTextIcon) === null || _a === void 0 ? void 0 : _a.name) && h("dga-icon", { key: '51d329ecf87d97d2c6676253316fba7969ad7c87', icon: this.helperTextIcon.name, variant: this.helperTextIcon.variant, type: this.helperTextIcon.type, size: 16 })), h("span", { key: 'c3099672ca5b679e0b3f83a645d804d8e47de975', class: "dga-helper-text__desc" }, this.helperText)));
    }
}, [0, "dga-helper-text", {
        "helperTextIcon": [16],
        "helperText": [1, "helper-text"],
        "error": [4]
    }]);
function defineCustomElement() {
    if (typeof customElements === "undefined") {
        return;
    }
    const components = ["dga-helper-text", "dga-icon"];
    components.forEach(tagName => { switch (tagName) {
        case "dga-helper-text":
            if (!customElements.get(tagName)) {
                customElements.define(tagName, DgaHelperText);
            }
            break;
        case "dga-icon":
            if (!customElements.get(tagName)) {
                defineCustomElement$1();
            }
            break;
    } });
}

export { DgaHelperText as D, defineCustomElement as d };

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