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

//#region src/ui/fullscreen-button/fullscreen-button-element.ts
var FullscreenButtonElement = class extends MediaButtonElement {
	constructor(..._args) {
		super(..._args);
		this.core = new FullscreenButtonCore();
		this.stateAttrMap = FullscreenButtonDataAttrs;
		this.mediaState = new PlayerController(this, playerContext, selectFullscreen);
	}
	static {
		this.tagName = "media-fullscreen-button";
	}
	activate(state) {
		this.core.toggle(state);
	}
};

//#endregion
export { FullscreenButtonElement };
//# sourceMappingURL=fullscreen-button-element.js.map