"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
class Filter {
    handleButtonClick(originalEvent) {
        if (!this.input.disabled) {
            const selected = !this.state.selected;
            this.state.selected = selected;
            this.emit("click", {
                selected,
                originalEvent,
            });
        }
    }
    onInput(input) {
        this.state = {
            selected: input.selected || false,
        };
    }
}
module.exports = Filter;
