import { EViewType } from "./index.js";
export class ViewLevels {
    _div;
    _buttonGame = null;
    _viewManager;
    constructor(div, viewManager) {
        this._div = div;
        this._viewManager = viewManager;
        this.buttonGameClicked = this.buttonGameClicked.bind(this);
    }
    get div() {
        return this._div;
    }
    activate() {
        this._buttonGame = document.getElementById("btn-game");
        if (!!this._buttonGame) {
            this._buttonGame.addEventListener("click", this.buttonGameClicked);
        }
    }
    deactivate() {
        this._buttonGame?.removeEventListener("click", this.buttonGameClicked);
    }
    buttonGameClicked() {
        this._viewManager.showView(EViewType.Game);
    }
}
//# sourceMappingURL=ViewLevels.js.map