async function deleteAvailabilityRuleSet(actions) {
  const ruleSetId = actions.ruleSetId;
  if (!ruleSetId) return "noop";
  const confirmed = await actions.confirmDelete();
  if (!confirmed) return "cancelled";
  try {
    await actions.deleteRuleSet(ruleSetId);
    await actions.clearAssignment();
    await actions.refreshRuleSets();
    actions.onSuccess();
    return "deleted";
  } catch (error) {
    actions.onError(error);
    return "failed";
  }
}
export {
  deleteAvailabilityRuleSet
};
//# sourceMappingURL=deleteAvailabilityRuleSet.js.map
