import { audit as e } from "../internal/controllers/audit.controller.js";
import { I18nController as t } from "../internal/controllers/i18n.controller.js";
import { TypeNativePopoverController as n } from "../internal/controllers/type-native-popover.controller.js";
import { scopedRegistry as r } from "../internal/decorators/scoped-registry.js";
import { useStyles as i } from "../internal/styles/index.js";
import { popoverStyles as a } from "../internal/styles/popover2.js";
import { __decorate as o } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/decorate.js";
import { IconButton as s } from "../icon-button/icon-button2.js";
import c from "./dropdown.js";
import { LitElement as l, html as u } from "lit";
import { property as d } from "lit/decorators/property.js";
import { query as f } from "lit/decorators/query.js";
//#region src/dropdown/dropdown.ts
var p = class extends l {
	constructor(...e) {
		super(...e), this.position = "bottom", this.alignment = "start", this.closable = !1, this.arrow = !1, this.modal = !0, this.popoverType = "auto", this.#e = new t(this), this.typeNativePopoverController = new n(this), this.i18n = this.#e.i18n;
	}
	static {
		this.styles = i([a, c]);
	}
	static {
		this.metadata = {
			tag: "nve-dropdown",
			version: "0.2.3"
		};
	}
	static {
		this.elementDefinitions = { [s.metadata.tag]: s };
	}
	#e;
	get popoverDismissible() {
		return this.modal;
	}
	render() {
		return u`<div internal-host><slot name="header"></slot>${this.closable ? u`<nve-icon-button part="icon-button" exportparts="icon:icon-button-icon" @click="${this.hidePopover}" icon-name="cancel" container="flat" size="sm" .ariaLabel="${this.i18n.close}"></nve-icon-button>` : ""}<slot></slot><slot name="footer"></slot>${this.arrow ? u`<div class="arrow"></div>` : ""}</div>`;
	}
};
o([d({ type: String })], p.prototype, "anchor", void 0), o([d({ type: String })], p.prototype, "trigger", void 0), o([d({
	type: String,
	reflect: !0
})], p.prototype, "position", void 0), o([d({
	type: String,
	reflect: !0
})], p.prototype, "alignment", void 0), o([d({
	type: Boolean,
	reflect: !0,
	attribute: "behavior-trigger"
})], p.prototype, "behaviorTrigger", void 0), o([d({ type: Boolean })], p.prototype, "closable", void 0), o([d({ type: Boolean })], p.prototype, "arrow", void 0), o([d({
	type: Boolean,
	reflect: !0
})], p.prototype, "modal", void 0), o([d({
	type: String,
	attribute: "popover-type"
})], p.prototype, "popoverType", void 0), o([f(".arrow")], p.prototype, "popoverArrow", void 0), o([d({ type: Object })], p.prototype, "i18n", void 0), p = o([e({ excessiveInstanceLimit: 50 }), r()], p);
//#endregion
export { p as Dropdown };

//# sourceMappingURL=dropdown2.js.map