function a(e, n) {
  const { operator: t, conditionValue: r } = e;
  switch (t.name) {
    case "equals":
      return String(n) === String(r);
    case "not_equals":
      return String(n) !== String(r);
    case "greater_than":
      return Number(n) > Number(r);
    case "less_than":
      return Number(n) < Number(r);
    case "greater_than_or_equal":
      return Number(n) >= Number(r);
    case "less_than_or_equal":
      return Number(n) <= Number(r);
    case "contains":
      return String(n).includes(String(r));
    case "not_contains":
      return !String(n).includes(String(r));
    default:
      return process.env.NODE_ENV !== "production" && console.warn(`Unsupported conditional operator: ${t.name}`), !1;
  }
}
export {
  a as evaluateConditionalRule
};
