import { W as WatchlistRepository } from "./watchlist.repository-AWk553yL.js";
const checkIfFreeEmailDomain = async (email) => {
  const emailDomain = email.split("@")[1].toLowerCase();
  if (!emailDomain)
    return true;
  if (emailDomain === "gmail.com" || emailDomain === "outlook.com")
    return true;
  const watchlistRepository = new WatchlistRepository();
  return !!await watchlistRepository.getFreeEmailDomainInWatchlist(emailDomain);
};
const getFieldIdentifier = (field) => field.identifier || field.label;
const getFieldIdentifier$1 = getFieldIdentifier;
export {
  checkIfFreeEmailDomain as c,
  getFieldIdentifier$1 as g
};
