"use strict";
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
    if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
    return cooked;
};
var __assign = (this && this.__assign) || function () {
    __assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
    result["default"] = mod;
    return result;
};
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var React = __importStar(require("react"));
var styled_components_1 = __importDefault(require("styled-components"));
var styleConstants_1 = require("../styleConstants");
var Table_1 = require("../Table");
var styledComponents_1 = require("../Table/styledComponents");
var StyledParameterizerTableCell = styled_components_1.default(styledComponents_1.StyledTableCell)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n  ", " {\n    display: flex;\n\n    &:before {\n      display: block;\n      background-color: ", ";\n      content: attr(data-mobile-th);\n      text-align: ", ";\n      width: 50%;\n    }\n  }\n"], ["\n  ", " {\n    display: flex;\n\n    &:before {\n      display: block;\n      background-color: ",
    ";\n      content: attr(data-mobile-th);\n      text-align: ", ";\n      width: 50%;\n    }\n  }\n"])), styleConstants_1.mediaQueries.MOBILE, function (props) {
    return props.accent ? styleConstants_1.colors.accent.CIVIL_GRAY_4 + "7D" : "transparent";
}, function (props) { return props.align || "left"; });
var StyledParameterizerTableCellInner = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n  ", " {\n    width: 50%;\n  }\n"], ["\n  ", " {\n    width: 50%;\n  }\n"])), styleConstants_1.mediaQueries.MOBILE);
exports.ParameterizerTd = function (props) {
    return (React.createElement(Table_1.Td, __assign({ StyledTableCellComponent: StyledParameterizerTableCell }, props),
        React.createElement(StyledParameterizerTableCellInner, __assign({}, props), props.children)));
};
var templateObject_1, templateObject_2;
//# sourceMappingURL=ParameterizerTableCell.js.map