"use strict";

exports.__esModule = true;
exports.getOperatorLabel = exports.OPERATOR_LABELS = void 0;
var _model = require("../model");
/**
 * Translation keys for filter operators
 */
const OPERATOR_LABELS = exports.OPERATOR_LABELS = {
  [_model.FilterOperator.EQUALS]: 'cairo.filterOperator.equals',
  [_model.FilterOperator.NOT_EQUALS]: 'cairo.filterOperator.notEquals',
  [_model.FilterOperator.IN]: 'cairo.filterOperator.in',
  [_model.FilterOperator.NOT_IN]: 'cairo.filterOperator.notIn',
  [_model.FilterOperator.STARTS_WITH]: 'cairo.filterOperator.startsWith',
  [_model.FilterOperator.IS_EMPTY]: 'cairo.filterOperator.isEmpty',
  [_model.FilterOperator.CONTAINS]: 'cairo.filterOperator.contains',
  [_model.FilterOperator.NOT_CONTAINS]: 'cairo.filterOperator.notContains',
  [_model.FilterOperator.EXISTS]: 'cairo.filterOperator.exists',
  [_model.FilterOperator.NOT_EXISTS]: 'cairo.filterOperator.notExists'
};

/**
 * Get translation key for an operator
 */
const getOperatorLabel = operator => OPERATOR_LABELS[operator] ?? operator;
exports.getOperatorLabel = getOperatorLabel;
//# sourceMappingURL=operatorLabels.js.map