function resolveRuleSetSelectValue(ruleSets, selectedRulesetId) {
  if (!selectedRulesetId) return void 0;
  return ruleSets.some((ruleSet) => ruleSet.id === selectedRulesetId) ? selectedRulesetId : void 0;
}
function selectCustomRuleIdsToDelete(transition, rules) {
  if (transition === "switch") return [];
  return Array.from(new Set(rules.map((rule) => rule.id)));
}
function requiresResetConfirmation(rules) {
  return rules.length > 0;
}
export {
  requiresResetConfirmation,
  resolveRuleSetSelectValue,
  selectCustomRuleIdsToDelete
};
//# sourceMappingURL=availabilityRulesEditorState.js.map
