import { audit as e } from "../internal/controllers/audit.controller.js";
import { I18nController as t } from "../internal/controllers/i18n.controller.js";
import { attachInternals as n } from "../internal/utils/a11y.js";
import { TypeNativePopoverController as r } from "../internal/controllers/type-native-popover.controller.js";
import { scopedRegistry as i } from "../internal/decorators/scoped-registry.js";
import { useStyles as a } from "../internal/styles/index.js";
import { popoverStyles as o } from "../internal/styles/popover2.js";
import { statusIcons as s } from "../internal/types/index.js";
import { __decorate as c } from "../_virtual/_@oxc-project_runtime@0.133.0/helpers/esm/decorate.js";
import { Icon as l } from "../icon/icon2.js";
import { IconButton as u } from "../icon-button/icon-button2.js";
import d from "./toast.js";
import { LitElement as f, html as p, nothing as m } from "lit";
import { property as h } from "lit/decorators/property.js";
//#region src/toast/toast.ts
var g = class extends f {
	constructor(...e) {
		super(...e), this.position = "top", this.closable = !1, this.closeTimeout = 0, this.#e = new t(this), this.i18n = this.#e.i18n, this.popoverType = "manual", this.typeNativePopoverController = new r(this);
	}
	static {
		this.styles = a([o, d]);
	}
	static {
		this.metadata = {
			tag: "nve-toast",
			version: "2.0.2"
		};
	}
	static {
		this.elementDefinitions = {
			[u.metadata.tag]: u,
			[l.metadata.tag]: l
		};
	}
	#e;
	render() {
		return p`<div internal-host><slot name="prefix"><nve-icon part="prefix-icon" .name="${s[this.status]}" .ariaLabel="${this.i18n[this.status] ?? this.i18n.information}"></nve-icon></slot>${this.closable ? p`<nve-icon-button part="icon-button" exportparts="icon:icon-button-icon" @click="${this.hidePopover}" icon-name="cancel" container="flat" .ariaLabel="${this.i18n.close}"></nve-icon-button>` : m}<slot></slot></div>`;
	}
	connectedCallback() {
		super.connectedCallback(), n(this), this._internals.role = "alert";
	}
};
c([h({ type: String })], g.prototype, "anchor", void 0), c([h({ type: String })], g.prototype, "trigger", void 0), c([h({
	type: String,
	reflect: !0
})], g.prototype, "position", void 0), c([h({
	type: String,
	reflect: !0
})], g.prototype, "alignment", void 0), c([h({
	type: String,
	reflect: !0
})], g.prototype, "prominence", void 0), c([h({
	type: Boolean,
	reflect: !0,
	attribute: "behavior-trigger"
})], g.prototype, "behaviorTrigger", void 0), c([h({ type: Boolean })], g.prototype, "closable", void 0), c([h({
	type: Number,
	attribute: "close-timeout"
})], g.prototype, "closeTimeout", void 0), c([h({
	type: String,
	reflect: !0
})], g.prototype, "status", void 0), c([h({ type: Object })], g.prototype, "i18n", void 0), g = c([i(), e({ excessiveInstanceLimit: 50 })], g);
//#endregion
export { g as Toast };

//# sourceMappingURL=toast2.js.map