import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { BaseLogicExpression } from "./BaseLogic";
import { ExpressionValue } from "../../ExpressionValue";
import { ExpressionValueRenderer } from "../../ExpressionValueRenderer";
import { BracketedDiv, ExpressionPiece } from "../../ExpressionStyles";
import { BooleanDataDefinition } from "../../../Common/Data/Definitions/BooleanDataDefinition";
export class NotExpression extends BaseLogicExpression {
    constructor() {
        super();
        this.__type = "Not";
        this.value1 = ExpressionValue.createExpressionValue(this, "value1", new BooleanDataDefinition());
        this.expressionValueType = new BooleanDataDefinition();
    }
    render() {
        return (_jsxs(ExpressionPiece, { children: ["not", _jsx(BracketedDiv, { children: _jsx(ExpressionValueRenderer, { el: this.value1 }, void 0) }, void 0)] }, void 0));
    }
    evaluate(data, testContext) {
        return !this.value1.evaluate(data, testContext);
    }
}
//# sourceMappingURL=Not.js.map