function normalizePipelineStageLabel(value) {
  return typeof value === "string" ? value.trim().toLowerCase().replace(/[^a-z0-9]+/g, " ").trim() : "";
}
const TERMINAL_OUTCOME_LABELS = /* @__PURE__ */ new Set([
  "won",
  "win",
  "closed won",
  "closed win",
  "lost",
  "loose",
  "closed lost",
  "closed loose",
  "stalled",
  "stale",
  "closed stalled",
  "closed stale"
]);
function isTerminalPipelineOutcomeLabel(value) {
  const normalized = normalizePipelineStageLabel(value);
  return normalized.length > 0 && TERMINAL_OUTCOME_LABELS.has(normalized);
}
export {
  isTerminalPipelineOutcomeLabel,
  normalizePipelineStageLabel
};
//# sourceMappingURL=pipelineStageUtils.js.map
