function sanitizeAmount(raw) {
  const cleaned = raw.replace(/[^\d.]/g, "");
  const firstDot = cleaned.indexOf(".");
  if (firstDot === -1) return cleaned;
  return cleaned.slice(0, firstDot + 1) + cleaned.slice(firstDot + 1).replace(/\./g, "");
}
function sanitizeProbability(raw) {
  const digits = raw.replace(/\D/g, "");
  if (!digits) return "";
  return String(Math.min(100, Number(digits)));
}
export {
  sanitizeAmount,
  sanitizeProbability
};
//# sourceMappingURL=dealNumericInput.js.map
