"use strict";

exports.__esModule = true;
exports.transformCustomCheckboxToWQL = void 0;
const transformCustomCheckboxToWQL = (filterName, filterValue) => {
  const filterValueBoolean = filterValue[0];
  if (!filterValueBoolean) {
    return [];
  }
  const condition = {
    [filterName]: {
      $eq: true
    }
  };
  return filterValueBoolean.value ? [condition] : [{
    $not: condition
  }];
};
exports.transformCustomCheckboxToWQL = transformCustomCheckboxToWQL;
//# sourceMappingURL=transformCustomCheckboxToWQL.js.map