import { hostAttr as e } from "../../internal/decorators/host-attr.js";
import { scopedRegistry as t } from "../../internal/decorators/scoped-registry.js";
import { useStyles as n } from "../../internal/styles/index.js";
import { __decorate as r } from "../../_virtual/_@oxc-project_runtime@0.130.0/helpers/decorate.js";
import { Icon as i } from "../../icon/icon2.js";
import a from "./control-message.js";
import { LitElement as o, html as s } from "lit";
import { property as c } from "lit/decorators/property.js";
//#region src/forms/control-message/control-message.ts
var l = {
	undefined: "information-circle-stroke",
	disabled: "information-circle-stroke",
	warning: "exclamation-triangle",
	success: "checkmark-circle",
	error: "exclamation-circle"
}, u = class extends o {
	constructor(...e) {
		super(...e), this.error = null, this.slot = "messages";
	}
	static {
		this.styles = n([a]);
	}
	static {
		this.metadata = {
			tag: "nve-control-message",
			version: "0.2.3"
		};
	}
	static {
		this.elementDefinitions = { [i.metadata.tag]: i };
	}
	render() {
		return s`<div internal-host><slot name="icon"><nve-icon part="icon" name="${this.error ? l.error : l[this.status]}"></nve-icon></slot><slot></slot></div>`;
	}
};
r([c({
	type: String,
	reflect: !0
})], u.prototype, "status", void 0), r([c({
	type: String,
	reflect: !0
})], u.prototype, "error", void 0), r([e()], u.prototype, "slot", void 0), u = r([t()], u);
//#endregion
export { u as ControlMessage };

//# sourceMappingURL=control-message2.js.map