"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.IntersectionRuleRow = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const IntersectionRuleColumn_1 = require("./IntersectionRuleColumn");
const CommonStyles_1 = require("../../DesignUI/CommonStyles");
const IntersectionRuleResult_1 = require("./IntersectionRuleResult");
const IntersectionRuleRow = (props) => {
    const { expressions, ruleDefinition, yexpression, y } = props;
    return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(CommonStyles_1.RuleTableIndexColumn, { x: 0, y: y + 2, children: y + 1 }), (0, jsx_runtime_1.jsx)(IntersectionRuleColumn_1.IntersectionRuleColumn, { ruleDefinition: ruleDefinition, expression: yexpression, direction: "y", index: props.y }), (0, jsx_runtime_1.jsx)(CommonStyles_1.RuleTableHeaderSplit, { width: 1, height: 44, x: 2, y: y + 2 }), expressions.map((exp, index) => ((0, jsx_runtime_1.jsx)(IntersectionRuleResult_1.IntersectionRuleResult, { ruleDefinition: ruleDefinition, resultCell: ruleDefinition.findResultCellByXY(exp._id, yexpression._id), x: index, y: y }, exp._id))), (0, jsx_runtime_1.jsx)(CommonStyles_1.RuleTableHeaderActionColumn, {})] }));
};
exports.IntersectionRuleRow = IntersectionRuleRow;
//# sourceMappingURL=IntersectionRuleRow.js.map