import { sliderContext } from "./context.js";
import { ThumbnailElement } from "../thumbnail/thumbnail-element.js";
import { ContextConsumer } from "@videojs/element/context";

//#region src/ui/slider/slider-thumbnail-element.ts
var SliderThumbnailElement = class extends ThumbnailElement {
	static {
		this.tagName = "media-slider-thumbnail";
	}
	#ctx = new ContextConsumer(this, {
		context: sliderContext,
		subscribe: true
	});
	update(changed) {
		const ctx = this.#ctx.value;
		if (ctx) this.time = ctx.pointerValue;
		super.update(changed);
	}
};

//#endregion
export { SliderThumbnailElement };
//# sourceMappingURL=slider-thumbnail-element.js.map