import { p as proxyCustomElement, H, h } from './p-BhqVmlhr.js';
import { d as defineCustomElement$1 } from './p-DiC-xcof.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: 'fba2082feeec8236bb4b1c427530200461fde1c7', class: `dga-helper-text ${this.error ? "dga-helper-text--error" : ""}` }, h("span", { key: '045252be8c2ad9d9efc620bb08476f62f18d1bc7', class: "dga-helper-text__icon" }, this.helperTextIcon && ((_a = this.helperTextIcon) === null || _a === void 0 ? void 0 : _a.name) && h("dga-icon", { key: '762ed7b7ff308b0ab447f6f38c7bf421b586e3b4', icon: this.helperTextIcon.name, variant: this.helperTextIcon.variant, type: this.helperTextIcon.type, size: 16 })), h("span", { key: '45d3cea48852598a25cd3d5798c1b9e099411085', class: "dga-helper-text__desc" }, this.helperText)));
    }
}, [0, "dga-helper-text", {
        "helperTextIcon": [16, "helper-text-icon"],
        "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 };
