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

//#region src/ui/pip-button/pip-button-element.ts
var PiPButtonElement = class extends MediaButtonElement {
	constructor(..._args) {
		super(..._args);
		this.core = new PiPButtonCore();
		this.stateAttrMap = PiPButtonDataAttrs;
		this.mediaState = new PlayerController(this, playerContext, selectPiP);
	}
	static {
		this.tagName = "media-pip-button";
	}
	activate(state) {
		this.core.toggle(state);
	}
};

//#endregion
export { PiPButtonElement };
//# sourceMappingURL=pip-button-element.js.map