'use strict';

function slugify(text) {
  return text.toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, "");
}
function getPriorityConfig(priority) {
  switch (priority) {
    case "URGENT":
      return {
        label: "Urgent",
        variant: "destructive",
        className: "kanban-priority-urgent"
      };
    case "HIGH":
      return {
        label: "High",
        variant: "outline",
        className: "kanban-priority-high"
      };
    case "MEDIUM":
      return {
        label: "Medium",
        variant: "default",
        className: "kanban-priority-medium"
      };
    case "LOW":
      return {
        label: "Low",
        variant: "secondary",
        className: "kanban-priority-low"
      };
    default:
      return {
        label: "Medium",
        variant: "default",
        className: "kanban-priority-medium"
      };
  }
}
const PRIORITY_OPTIONS = [
  { value: "LOW", label: "Low" },
  { value: "MEDIUM", label: "Medium" },
  { value: "HIGH", label: "High" },
  { value: "URGENT", label: "Urgent" }
];

exports.PRIORITY_OPTIONS = PRIORITY_OPTIONS;
exports.getPriorityConfig = getPriorityConfig;
exports.slugify = slugify;
