import { playerContext } from "../../player/context.js";
import { PlayerController } from "../../player/player-controller.js";
import { MediaButtonElement } from "../media-button-element.js";
import { selectPlaybackRate } from "@videojs/core/dom";
import { PlaybackRateButtonCore, PlaybackRateButtonDataAttrs } from "@videojs/core";

//#region src/ui/playback-rate-button/playback-rate-button-element.ts
var PlaybackRateButtonElement = class extends MediaButtonElement {
	constructor(..._args) {
		super(..._args);
		this.core = new PlaybackRateButtonCore();
		this.stateAttrMap = PlaybackRateButtonDataAttrs;
		this.mediaState = new PlayerController(this, playerContext, selectPlaybackRate);
	}
	static {
		this.tagName = "media-playback-rate-button";
	}
	activate(state) {
		this.core.cycle(state);
	}
};

//#endregion
export { PlaybackRateButtonElement };
//# sourceMappingURL=playback-rate-button-element.js.map