const i = (o) => o.map((e) => {
  let l, t;
  return e.fieldType === "selectAsync" && e.field.type === "selectAsync" ? e.field.selectAsyncOptions.multiple ? (t = void 0, l = e.operandsArray.map(e.field.selectAsyncOptions.getOptionId)) : t = e.field.selectAsyncOptions.getOptionId(e.operand1) : e.fieldType === "select" && e.field.type === "select" && e.operandsArray ? e.field.selectOptions.multiple && (l = e.operandsArray) : t = e.operand1, {
    n: e.field.name,
    ft: e.field.type,
    o: e.operator,
    o1: t,
    o2: e.operator === "b" ? e.operand2 : void 0,
    oa: l
  };
});
export {
  i as formatToRawFilter
};
