import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";

var genRadiusStyle = function genRadiusStyle(token) {
  var componentCls = token.componentCls,
      tableRadius = token.tableRadius;
  return _defineProperty({}, "".concat(componentCls, "-wrapper"), _defineProperty({}, componentCls, {
    '&-title': {
      borderRadius: "".concat(tableRadius, "px ").concat(tableRadius, "px 0 0")
    },
    '&-title + &-container': {
      borderStartStartRadius: 0,
      borderStartEndRadius: 0,
      'table > thead > tr:first-child': {
        'th:first-child': {
          borderRadius: 0
        },
        'th:last-child': {
          borderRadius: 0
        }
      }
    },
    '&-container': {
      borderStartStartRadius: tableRadius,
      borderStartEndRadius: tableRadius,
      'table > thead > tr:first-child': {
        'th:first-child': {
          borderStartStartRadius: tableRadius
        },
        'th:last-child': {
          borderStartEndRadius: tableRadius
        }
      }
    },
    '&-footer': {
      borderRadius: "0 0 ".concat(tableRadius, "px ").concat(tableRadius, "px")
    }
  }));
};

export default genRadiusStyle;