"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const Filter_1 = __importDefault(require("./Filter"));
const Translation_1 = require("../../../translations/Translation");
class RoomTypeFilter extends Filter_1.default {
    constructor(roomNames) {
        super();
        this.visibleRooms = roomNames;
    }
    getVisibleRooms() {
        return this.visibleRooms;
    }
    getLabel(t) {
        return t(Translation_1.Translation.Step.Room.Filter.RoomType);
    }
    check(room) {
        if (this.visibleRooms.includes(room.name) || this.visibleRooms.includes(room.code)) {
            return room;
        }
        return null;
    }
}
exports.default = RoomTypeFilter;
//# sourceMappingURL=RoomTypeFilter.js.map