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-title-element.ts
var AlertDialogTitleElement = class extends ContextPartElement {
	constructor(..._args) {
		super(..._args);
		this.consumer = new ContextConsumer(this, {
			context: alertDialogContext,
			subscribe: true
		});
	}
	static {
		this.tagName = "media-alert-dialog-title";
	}
	update(changed) {
		super.update(changed);
		const titleId = this.consumer.value?.state.titleId;
		if (titleId) this.id = titleId;
	}
};

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