"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DateGetYearExpressionEditor = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const ExpressionRuleEditor_1 = require("../ExpressionRuleEditor");
const ObserveState_1 = require("../../../CommonUI/StateManagement/ObserveState");
const ExpressionStyles_1 = require("../../Builder/ExpressionStyles");
const ExpressionValueRenderer_1 = require("../../Builder/ExpressionValueRenderer");
class DateGetYearExpressionEditor extends ExpressionRuleEditor_1.ExpressionRuleEditor {
    render() {
        return ((0, jsx_runtime_1.jsx)(ObserveState_1.ObserveState, { listenTo: this.ruleData.value1, control: () => ((0, jsx_runtime_1.jsxs)(ExpressionStyles_1.ExpressionPiece, { hasChild: !!this.ruleData.value1.subExpression, children: ["get year", (0, jsx_runtime_1.jsx)(ExpressionStyles_1.BracketedDiv, { hasChild: !!this.ruleData.value1.subExpression, children: (0, jsx_runtime_1.jsx)(ExpressionValueRenderer_1.ExpressionValueRenderer, { el: this.ruleData.value1 }) })] })) }));
    }
}
exports.DateGetYearExpressionEditor = DateGetYearExpressionEditor;
//# sourceMappingURL=DateGetYearExpressionEditor.js.map