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

//#region src/ui/play-button/play-button-element.ts
var PlayButtonElement = class extends MediaButtonElement {
	constructor(..._args) {
		super(..._args);
		this.core = new PlayButtonCore();
		this.stateAttrMap = PlayButtonDataAttrs;
		this.mediaState = new PlayerController(this, playerContext, selectPlayback);
	}
	static {
		this.tagName = "media-play-button";
	}
	activate(state) {
		this.core.toggle(state);
	}
};

//#endregion
export { PlayButtonElement };
//# sourceMappingURL=play-button-element.js.map