import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
import { ExpressionValue } from "../../ExpressionValue";
import { ExpressionValueRenderer } from "../../ExpressionValueRenderer";
import { BracketedDiv, ExpressionPiece } from "../../ExpressionStyles";
import { StringDataDefinition } from "../../../Common/Data/Definitions/StringDataDefinition";
import { BaseStringExpression } from "./BaseString";
export class StringUppercaseExpression extends BaseStringExpression {
    constructor() {
        super();
        this.__type = "String Trim";
        this.value1 = ExpressionValue.createExpressionValue(this, "stringValue", new StringDataDefinition());
    }
    render() {
        return (_jsx(_Fragment, { children: _jsxs(ExpressionPiece, { children: ["text.toUppercase", _jsx(BracketedDiv, { children: _jsx(ExpressionValueRenderer, { el: this.value1 }, void 0) }, void 0)] }, void 0) }, void 0));
    }
    evaluate(data, testContext) {
        return this.value1.evaluate(data, testContext).toUpperCase();
    }
}
//# sourceMappingURL=StringUppercaseExpression.js.map