const o = {
  equal: {
    label: "Col = X (Equal)",
    form: {
      column: {
        label: "Column",
        fieldType: "SUniversalPColumnId",
        defaultValue: () => {
        }
      },
      type: {
        label: "Predicate",
        fieldType: "FilterType",
        defaultValue: () => "equal"
      },
      x: {
        label: "X",
        fieldType: "number",
        defaultValue: () => 0
      }
    },
    supportedFor: l
  },
  notEqual: {
    label: "Col ≠ X (Not Equal)",
    form: {
      column: {
        label: "Column",
        fieldType: "SUniversalPColumnId",
        defaultValue: () => {
        }
      },
      type: {
        label: "Predicate",
        fieldType: "FilterType",
        defaultValue: () => "notEqual"
      },
      x: {
        label: "X",
        fieldType: "number",
        defaultValue: () => 0
      }
    },
    supportedFor: l
  },
  lessThan: {
    label: "Col < X (Less Than)",
    form: {
      column: {
        label: "Column",
        fieldType: "SUniversalPColumnId",
        defaultValue: () => {
        }
      },
      type: {
        label: "Predicate",
        fieldType: "FilterType",
        defaultValue: () => "lessThan"
      },
      x: {
        label: "X",
        fieldType: "number",
        defaultValue: () => 0
      }
    },
    supportedFor: l
  },
  greaterThan: {
    label: "Col > X (Greater Than)",
    form: {
      column: {
        label: "Column",
        fieldType: "SUniversalPColumnId",
        defaultValue: () => {
        }
      },
      type: {
        label: "Predicate",
        fieldType: "FilterType",
        defaultValue: () => "greaterThan"
      },
      x: {
        label: "X",
        fieldType: "number",
        defaultValue: () => 0
      }
    },
    supportedFor: l
  },
  lessThanOrEqual: {
    label: "Col ≤ X (Less Than or Equal)",
    form: {
      column: {
        label: "Column",
        fieldType: "SUniversalPColumnId",
        defaultValue: () => {
        }
      },
      type: {
        label: "Predicate",
        fieldType: "FilterType",
        defaultValue: () => "lessThanOrEqual"
      },
      x: {
        label: "X",
        fieldType: "number",
        defaultValue: () => 0
      }
    },
    supportedFor: l
  },
  greaterThanOrEqual: {
    label: "Col ≥ X (Greater Than or Equal)",
    form: {
      column: {
        label: "Column",
        fieldType: "SUniversalPColumnId",
        defaultValue: () => {
        }
      },
      type: {
        label: "Predicate",
        fieldType: "FilterType",
        defaultValue: () => "greaterThanOrEqual"
      },
      x: {
        label: "X",
        fieldType: "number",
        defaultValue: () => 0
      }
    },
    supportedFor: l
  },
  // Columns comparison
  equalToColumn: {
    label: "Col₁ = Col₂ (Compare Columns)",
    form: {
      column: {
        label: "Col₁",
        fieldType: "SUniversalPColumnId",
        defaultValue: () => {
        }
      },
      type: {
        label: "Predicate",
        fieldType: "FilterType",
        defaultValue: () => "equalToColumn"
      },
      rhs: {
        label: "Col₂",
        fieldType: "SUniversalPColumnId",
        defaultValue: () => {
        }
      }
    },
    supportedFor: (e, a) => l(e) && (a === void 0 || l(a))
  },
  lessThanColumn: {
    label: "Col₁ < Col₂ (Compare Columns)",
    form: {
      column: {
        label: "Col₁",
        fieldType: "SUniversalPColumnId",
        defaultValue: () => {
        }
      },
      type: {
        label: "Predicate",
        fieldType: "FilterType",
        defaultValue: () => "lessThanColumn"
      },
      rhs: {
        label: "Col₂",
        fieldType: "SUniversalPColumnId",
        defaultValue: () => {
        }
      },
      minDiff: {
        label: "Margin (positive)",
        fieldType: "number?",
        defaultValue: () => {
        }
      }
    },
    supportedFor: (e, a) => l(e) && (a === void 0 || l(a))
  },
  greaterThanColumn: {
    label: "Col₁ > Col₂ (Compare Columns)",
    form: {
      column: {
        label: "Col₁",
        fieldType: "SUniversalPColumnId",
        defaultValue: () => {
        }
      },
      type: {
        label: "Predicate",
        fieldType: "FilterType",
        defaultValue: () => "greaterThanColumn"
      },
      rhs: {
        label: "Col₂",
        fieldType: "SUniversalPColumnId",
        defaultValue: () => {
        }
      },
      minDiff: {
        label: "Margin (positive)",
        fieldType: "number?",
        defaultValue: () => {
        }
      }
    },
    supportedFor: (e, a) => l(e) && (a === void 0 || l(a))
  },
  lessThanColumnOrEqual: {
    label: "Col₁ ≤ Col₂ (Compare Columns)",
    form: {
      column: {
        label: "Col₁",
        fieldType: "SUniversalPColumnId",
        defaultValue: () => {
        }
      },
      type: {
        label: "Predicate",
        fieldType: "FilterType",
        defaultValue: () => "lessThanColumnOrEqual"
      },
      rhs: {
        label: "Col₂",
        fieldType: "SUniversalPColumnId",
        defaultValue: () => {
        }
      },
      minDiff: {
        label: "Margin (positive)",
        fieldType: "number?",
        defaultValue: () => {
        }
      }
    },
    supportedFor: (e, a) => l(e) && (a === void 0 || l(a))
  },
  greaterThanColumnOrEqual: {
    label: "Col₁ ≥ Col₂ (Compare Columns)",
    form: {
      column: {
        label: "Col₁",
        fieldType: "SUniversalPColumnId",
        defaultValue: () => {
        }
      },
      type: {
        label: "Predicate",
        fieldType: "FilterType",
        defaultValue: () => "greaterThanColumnOrEqual"
      },
      rhs: {
        label: "Col₂",
        fieldType: "SUniversalPColumnId",
        defaultValue: () => {
        }
      },
      minDiff: {
        label: "Margin (positive)",
        fieldType: "number?",
        defaultValue: () => {
        }
      }
    },
    supportedFor: (e, a) => l(e) && (a === void 0 || l(a))
  },
  // Ordering filters
  topN: {
    label: "Top N",
    form: {
      column: {
        label: "Rank By Column",
        fieldType: "SUniversalPColumnId",
        defaultValue: () => {
        }
      },
      type: {
        label: "Predicate",
        fieldType: "FilterType",
        defaultValue: () => "topN"
      },
      n: {
        label: "N",
        fieldType: "number",
        defaultValue: () => 10
      }
    },
    supportedFor: l
  },
  bottomN: {
    label: "Bottom N",
    form: {
      column: {
        label: "Rank By Column",
        fieldType: "SUniversalPColumnId",
        defaultValue: () => {
        }
      },
      type: {
        label: "Predicate",
        fieldType: "FilterType",
        defaultValue: () => "bottomN"
      },
      n: {
        label: "N",
        fieldType: "number",
        defaultValue: () => 10
      }
    },
    supportedFor: l
  },
  patternContainSubsequence: {
    label: "Col ~ Seq (Contain Subsequence)",
    form: {
      column: {
        label: "Column",
        fieldType: "SUniversalPColumnId",
        defaultValue: () => {
        }
      },
      type: {
        label: "Predicate",
        fieldType: "FilterType",
        defaultValue: () => "patternContainSubsequence"
      },
      value: {
        label: "Seq",
        fieldType: "string",
        defaultValue: () => ""
      }
    },
    supportedFor: u
  },
  patternNotContainSubsequence: {
    label: "Col ≁ Seq (Not Contain Subsequence)",
    form: {
      column: {
        label: "Column",
        fieldType: "SUniversalPColumnId",
        defaultValue: () => {
        }
      },
      type: {
        label: "Predicate",
        fieldType: "FilterType",
        defaultValue: () => "patternNotContainSubsequence"
      },
      value: {
        label: "Seq",
        fieldType: "string",
        defaultValue: () => ""
      }
    },
    supportedFor: u
  },
  patternEquals: {
    label: "Col = Seq (Equals)",
    form: {
      column: {
        label: "Column",
        fieldType: "SUniversalPColumnId",
        defaultValue: () => {
        }
      },
      type: {
        label: "Predicate",
        fieldType: "FilterType",
        defaultValue: () => "patternEquals"
      },
      value: {
        label: "Seq",
        fieldType: "string",
        defaultValue: () => ""
      }
    },
    supportedFor: u
  },
  patternNotEquals: {
    label: "Col ≠ Seq (Not Equal)",
    form: {
      column: {
        label: "Column",
        fieldType: "SUniversalPColumnId",
        defaultValue: () => {
        }
      },
      type: {
        label: "Predicate",
        fieldType: "FilterType",
        defaultValue: () => "patternNotEquals"
      },
      value: {
        label: "Seq",
        fieldType: "string",
        defaultValue: () => ""
      }
    },
    supportedFor: u
  },
  isNA: {
    label: "Is NA",
    form: {
      column: {
        label: "Column",
        fieldType: "SUniversalPColumnId",
        defaultValue: () => {
        }
      },
      type: {
        label: "Predicate",
        fieldType: "FilterType",
        defaultValue: () => "isNA"
      }
    },
    supportedFor: () => !0
  },
  isNotNA: {
    label: "Is Not NA",
    form: {
      column: {
        label: "Column",
        fieldType: "SUniversalPColumnId",
        defaultValue: () => {
        }
      },
      type: {
        label: "Predicate",
        fieldType: "FilterType",
        defaultValue: () => "isNotNA"
      }
    },
    supportedFor: () => !0
  },
  or: {
    label: "Or",
    form: {
      type: {
        fieldType: "FilterType",
        label: "Predicate",
        defaultValue: () => "or"
      },
      filters: {
        fieldType: "unknown[]",
        label: "Filters",
        defaultValue: () => []
      }
    },
    supportedFor: () => !1
  },
  and: {
    label: "And",
    form: {
      type: {
        fieldType: "FilterType",
        label: "Predicate",
        defaultValue: () => "and"
      },
      filters: {
        fieldType: "unknown[]",
        label: "Filters",
        defaultValue: () => []
      }
    },
    supportedFor: () => !1
  },
  not: {
    label: "Not",
    form: {
      type: {
        fieldType: "FilterType",
        label: "Predicate",
        defaultValue: () => "not"
      },
      filter: {
        fieldType: "form",
        label: "Filter",
        defaultValue: () => {
        }
      }
    },
    supportedFor: () => !1
  },
  patternMatchesRegularExpression: {
    label: "Col ~ X (Matches Regular Expression)",
    form: {
      column: {
        label: "Column",
        fieldType: "SUniversalPColumnId",
        defaultValue: () => {
        }
      },
      type: {
        label: "Predicate",
        fieldType: "FilterType",
        defaultValue: () => "patternMatchesRegularExpression"
      },
      value: {
        label: "Seq",
        fieldType: "string",
        defaultValue: () => ""
      }
    },
    supportedFor: u
  },
  patternFuzzyContainSubsequence: {
    label: "Col ~ Seq (Fuzzy Contain Subsequence)",
    form: {
      column: {
        label: "Column",
        fieldType: "SUniversalPColumnId",
        defaultValue: () => {
        }
      },
      type: {
        label: "Predicate",
        fieldType: "FilterType",
        defaultValue: () => "patternFuzzyContainSubsequence"
      },
      value: {
        label: "Set",
        fieldType: "string",
        defaultValue: () => ""
      }
    },
    supportedFor: u
  },
  inSet: {
    label: "Col ∈ Set (In Set)",
    form: {
      column: {
        label: "Column",
        fieldType: "SUniversalPColumnId",
        defaultValue: () => {
        }
      },
      type: {
        label: "Predicate",
        fieldType: "FilterType",
        defaultValue: () => "inSet"
      },
      value: {
        fieldType: "unknown[]",
        label: "Set",
        defaultValue: () => []
      }
    },
    supportedFor: u
  },
  notInSet: {
    label: "Col ∉ Set (Not In Set)",
    form: {
      column: {
        label: "Column",
        fieldType: "SUniversalPColumnId",
        defaultValue: () => {
        }
      },
      type: {
        label: "Predicate",
        fieldType: "FilterType",
        defaultValue: () => "notInSet"
      },
      value: {
        label: "Seq",
        fieldType: "unknown[]",
        defaultValue: () => []
      }
    },
    supportedFor: u
  }
};
function r(e) {
  return e ? Object.entries(o).filter(([a, t]) => t.supportedFor(e)).map(([a, t]) => ({
    label: t.label,
    value: a
  })) : [];
}
function d(e) {
  return o[e];
}
function l(e) {
  return e.valueType === "Int" || e.valueType === "Long" || e.valueType === "Float" || e.valueType === "Double";
}
function u(e) {
  return e.valueType === "String";
}
export {
  o as filterUiMetadata,
  d as getFilterUiMetadata,
  r as getFilterUiTypeOptions
};
//# sourceMappingURL=metadata.js.map
