import { alertDialogContext } from "./context.js";
import { ContextPartElement } from "../context-part-element.js";
import { ContextConsumer } from "@videojs/element/context";

//#region src/ui/alert-dialog/alert-dialog-description-element.ts
var AlertDialogDescriptionElement = class extends ContextPartElement {
	constructor(..._args) {
		super(..._args);
		this.consumer = new ContextConsumer(this, {
			context: alertDialogContext,
			subscribe: true
		});
	}
	static {
		this.tagName = "media-alert-dialog-description";
	}
	update(changed) {
		super.update(changed);
		const descriptionId = this.consumer.value?.state.descriptionId;
		if (descriptionId) this.id = descriptionId;
	}
};

//#endregion
export { AlertDialogDescriptionElement };
//# sourceMappingURL=alert-dialog-description-element.js.map