(input)
| 6352 | // Licensed under the MIT license. |
| 6353 | var _group = require("./group"); |
| 6354 | function invertSearchExpressionGroup(input) { |
| 6355 | //this only works if all expressions in this group have the same clause |
| 6356 | const output = { |
| 6357 | expressions: input.expressions.map(invertSearchExpression) |
| 6358 | }; |
| 6359 | if (input.clause) output.clause = invertedClauses[input.clause]; |
| 6360 | return output; |
| 6361 | } |
| 6362 | const invertedOperators = { |
| 6363 | "!=": "==", |
| 6364 | "==": "!=", |