const multipleOpenStrategy = ({ id, value, opened, parents }) => {
  if (value) {
    let parent = parents.get(id);
    opened.add(id);
    while (parent != null) {
      opened.add(parent);
      parent = parents.get(parent);
    }
    return opened;
  } else {
    opened.delete(id);
  }
  return opened;
};
export {
  multipleOpenStrategy
};
//# sourceMappingURL=multipleOpenStrategy.mjs.map
