"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var border_radius_exports = {};
__export(border_radius_exports, {
  borderRadiusPropertyDataToStyle: () => borderRadiusPropertyDataToStyle
});
module.exports = __toCommonJS(border_radius_exports);
var import_length_percentage = require("./length-percentage");
function borderRadiusPropertyDataToStyle(data, defaultValue = {}) {
  const borderTopLeftRadius = data.borderTopLeftRadius ?? defaultValue.borderTopLeftRadius;
  const borderTopRightRadius = data.borderTopRightRadius ?? defaultValue.borderTopRightRadius;
  const borderBottomRightRadius = data.borderBottomRightRadius ?? defaultValue.borderBottomRightRadius;
  const borderBottomLeftRadius = data.borderBottomLeftRadius ?? defaultValue.borderBottomLeftRadius;
  const style = {};
  if (borderTopLeftRadius != null) {
    style.borderTopLeftRadius = (0, import_length_percentage.lengthPercentageDataToString)(borderTopLeftRadius);
  }
  if (borderTopRightRadius != null) {
    style.borderTopRightRadius = (0, import_length_percentage.lengthPercentageDataToString)(borderTopRightRadius);
  }
  if (borderBottomRightRadius != null) {
    style.borderBottomRightRadius = (0, import_length_percentage.lengthPercentageDataToString)(borderBottomRightRadius);
  }
  if (borderBottomLeftRadius != null) {
    style.borderBottomLeftRadius = (0, import_length_percentage.lengthPercentageDataToString)(borderBottomLeftRadius);
  }
  return style;
}
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  borderRadiusPropertyDataToStyle
});
//# sourceMappingURL=border-radius.js.map