import { jsx as _jsx } from "react/jsx-runtime";
import { PropertyEditorBoolean } from "../../../../../CommonUI/PropertyEditing/PropertyEditorBoolean";
import { PropertyEditorBooleanList } from "../../../../../CommonUI/PropertyEditing/PropertyEditorBooleanList";
import { StyledSwitch } from "../../../../../CommonUI/PropertyEditing/PropertyEditorStyles";
import { StateManager } from "../../../../../CommonUI/StateManagement/StateManager";
import { BaseRule, ValueTableCellLine } from "../BaseRule";
export class BaseBooleanRule extends BaseRule {
    renderOneLineValue(value) {
        return (_jsx(ValueTableCellLine, { children: _jsx(StyledSwitch, { checked: value }, void 0) }, void 0));
    }
    renderListEditor(cell) {
        return (_jsx(PropertyEditorBooleanList, { editObject: cell, propertyName: "values", updateCallback: () => {
                StateManager.propertyChanged(cell, "values");
            }, bottomHeader: true }, void 0));
    }
    renderOneLineEditor(cell) {
        return (_jsx(PropertyEditorBoolean, { editObject: cell, propertyName: "values", updateCallback: () => StateManager.propertyChanged(cell, "values") }, void 0));
    }
}
//# sourceMappingURL=BaseBooleanRule.js.map