import { CriteriaNode } from './CriteriaNode.js';
/**
 * @internal
 */
export class ArrayCriteriaNode extends CriteriaNode {
  process(qb, options) {
    return this.payload.map(node => {
      return node.process(qb, options);
    });
  }
  unwrap() {
    return this.payload.map(node => {
      return node.unwrap();
    });
  }
  willAutoJoin(qb, alias, options) {
    return this.payload.some(node => {
      return node.willAutoJoin(qb, alias, options);
    });
  }
  isStrict() {
    return this.strict || this.payload.some(node => node.isStrict());
  }
}
