var __defProp = Object.defineProperty;
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });

// src/utils/camelCase.ts
var camelCase = /* @__PURE__ */ __name((text) => text.replace(/(?:^\w|[A-Z]|\b\w)/g, function(word, index) {
  return index === 0 ? word.toLowerCase() : word.toUpperCase();
}).replace(/\s+/g, ""), "camelCase");

// src/utils/capitalizeFirstLetter.ts
function capitalizeFirstLetter(string, lowerRest = true) {
  return string.charAt(0).toUpperCase() + (lowerRest ? string.slice(1).toLowerCase() : string.slice(1));
}
__name(capitalizeFirstLetter, "capitalizeFirstLetter");

// src/utils/convertColumnTypeToPrimitive.ts
var convertColumnTypeToPrimitive = /* @__PURE__ */ __name((type) => {
  let primitiveType;
  switch (type) {
    case "date":
      primitiveType = "date";
      break;
    case "boolean":
      primitiveType = "boolean";
      break;
    case "json":
    case "longText":
    case "string":
    case "enum":
    case "password":
    case "slug":
      primitiveType = "string";
      break;
    case "number":
    case "relationship":
    case "file":
      primitiveType = "number";
      break;
  }
  return primitiveType;
}, "convertColumnTypeToPrimitive");

// src/utils/removeDiacritics.ts
var removeDiacritics = /* @__PURE__ */ __name((input) => input.normalize("NFD").replace(/[\u0300-\u036f]/g, ""), "removeDiacritics");

// src/utils/replaceFileExtension.ts
var replaceFileExtension = /* @__PURE__ */ __name((filename, extension) => filename.replace(/\.[^.]+$/, extension.startsWith(".") ? extension : `.${extension}`), "replaceFileExtension");
export {
  camelCase,
  capitalizeFirstLetter,
  convertColumnTypeToPrimitive,
  removeDiacritics,
  replaceFileExtension
};
//# sourceMappingURL=index.js.map