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] = "bc5932c2-db82-4bc1-9b31-e0f25527a4fc", e._sentryDebugIdIdentifier = "sentry-dbid-bc5932c2-db82-4bc1-9b31-e0f25527a4fc");
} catch (e) {}
import { t as LegalEntityTypes } from "./legal-entity-type-VIfNYnJP.js";
import { t as CountryCodes } from "./country-code-D3oCpE4i.js";
//#region src/components/Trust/forms/TrustRoleAndEntityType/types.ts
var trustMemberLegalEntityTypes = [LegalEntityTypes.INDIVIDUAL, LegalEntityTypes.ORGANIZATION];
var countriesWhereSettlorExemptionReasonNotApplicable = [CountryCodes.NewZealand];
var settlorExemptionReasonWithNoneOfTheAbove = [...[
	"contributionBelowThreshold",
	"professionalServiceProvider",
	"deceased"
], "noneOfTheAbove"];
var 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));
var isExemptSettlor = (data) => data.settlorExemptionReason?.some((reason) => reason !== "noneOfTheAbove") ?? false;
var isOrganizationAndSettlor = (data) => data.entityType === LegalEntityTypes.ORGANIZATION && data.role?.length === 1 && data.role[0] === "settlor";
//#endregion
export { trustMemberLegalEntityTypes as a, settlorExemptionReasonWithNoneOfTheAbove as i, isExemptSettlor as n, isOrganizationAndSettlor as r, couldBeExemptSettlor as t };
