;
{
  try {
    let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
    n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "6359946e-7a77-4b07-8e87-a12e93931dab", e._sentryDebugIdIdentifier = "sentry-dbid-6359946e-7a77-4b07-8e87-a12e93931dab");
  } catch (e) {
  }
}
;
import { o as LegalEntityTypes, a0 as CountryCodes } from "./StoreProvider-CqQrndhS.js";
const trustMemberLegalEntityTypes = [
  LegalEntityTypes.INDIVIDUAL,
  LegalEntityTypes.ORGANIZATION
];
const countriesWhereSettlorExemptionReasonNotApplicable = [CountryCodes.NewZealand];
const settlorExemptionReasons = [
  "contributionBelowThreshold",
  "professionalServiceProvider",
  "deceased"
];
const settlorExemptionReasonWithNoneOfTheAbove = [
  ...settlorExemptionReasons,
  "noneOfTheAbove"
];
const couldBeExemptSettlor = (data, country) => data.entityType === LegalEntityTypes.INDIVIDUAL && data.role !== void 0 && data.role.includes("settlor") && !data.role.some((role) => role !== "settlor") && (!country || !countriesWhereSettlorExemptionReasonNotApplicable.includes(country));
const isExemptSettlor = (data) => data.settlorExemptionReason?.some((reason) => reason !== "noneOfTheAbove") ?? false;
const isOrganizationAndSettlor = (data) => data.entityType === LegalEntityTypes.ORGANIZATION && data.role?.length === 1 && data.role[0] === "settlor";
export {
  isExemptSettlor as a,
  couldBeExemptSettlor as c,
  isOrganizationAndSettlor as i,
  settlorExemptionReasonWithNoneOfTheAbove as s,
  trustMemberLegalEntityTypes as t
};
