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] = "9be99559-aa8e-48a6-ab69-690eaaa7c1f7", e._sentryDebugIdIdentifier = "sentry-dbid-9be99559-aa8e-48a6-ab69-690eaaa7c1f7");
} catch (e) {}
import { t as DecisionMakerTypes } from "./decision-maker-type-DHBYiKIe.js";
import { t as Scenarios } from "./get-scenarios-D432otQE.js";
//#region src/utils/decisionMaker.ts
var DEFAULT_DECISION_MAKER_REQUIREMENTS = [
	{
		roleTypes: [DecisionMakerTypes.OWNER, DecisionMakerTypes.CONTROLLING_PERSON],
		min: 1,
		max: Infinity
	},
	{
		roleTypes: [DecisionMakerTypes.OWNER],
		min: 0,
		max: 4
	},
	{
		roleTypes: [DecisionMakerTypes.CONTROLLING_PERSON],
		min: 0,
		max: Infinity
	},
	{
		roleTypes: [DecisionMakerTypes.SIGNATORY],
		min: 1,
		max: Infinity
	}
];
var PER_COUNTRY_DECISION_MAKER_REQUIREMENTS_OVERRIDES = {
	AE: [...DEFAULT_DECISION_MAKER_REQUIREMENTS, {
		roleTypes: [DecisionMakerTypes.DIRECTOR],
		min: 3,
		max: Infinity
	}],
	US: [
		{
			roleTypes: [DecisionMakerTypes.CONTROLLING_PERSON],
			min: 1,
			max: Infinity
		},
		{
			roleTypes: [DecisionMakerTypes.OWNER],
			min: 0,
			max: 4
		},
		{
			roleTypes: [DecisionMakerTypes.SIGNATORY],
			min: 1,
			max: Infinity
		}
	],
	BR: [
		{
			roleTypes: [DecisionMakerTypes.CONTROLLING_PERSON],
			min: 1,
			max: Infinity
		},
		{
			roleTypes: [DecisionMakerTypes.OWNER],
			min: 0,
			max: 4
		},
		{
			roleTypes: [DecisionMakerTypes.SIGNATORY],
			min: 1,
			max: Infinity
		}
	],
	AU: [...DEFAULT_DECISION_MAKER_REQUIREMENTS, {
		roleTypes: [DecisionMakerTypes.DIRECTOR],
		min: 3,
		max: Infinity
	}],
	CA: [...DEFAULT_DECISION_MAKER_REQUIREMENTS, {
		roleTypes: [DecisionMakerTypes.DIRECTOR],
		min: 1,
		max: Infinity
	}],
	HK: [...DEFAULT_DECISION_MAKER_REQUIREMENTS, {
		roleTypes: [DecisionMakerTypes.DIRECTOR],
		min: 1,
		max: Infinity
	}],
	IN: [...DEFAULT_DECISION_MAKER_REQUIREMENTS, {
		roleTypes: [DecisionMakerTypes.DIRECTOR],
		min: 3,
		max: 15
	}],
	NZ: [...DEFAULT_DECISION_MAKER_REQUIREMENTS, {
		roleTypes: [DecisionMakerTypes.DIRECTOR],
		min: 1,
		max: Infinity
	}],
	SG: [...DEFAULT_DECISION_MAKER_REQUIREMENTS, {
		roleTypes: [DecisionMakerTypes.DIRECTOR],
		min: 1,
		max: Infinity
	}],
	GB: [...DEFAULT_DECISION_MAKER_REQUIREMENTS, {
		roleTypes: [DecisionMakerTypes.DIRECTOR],
		min: 1,
		max: Infinity
	}],
	JP: [...DEFAULT_DECISION_MAKER_REQUIREMENTS, {
		roleTypes: [DecisionMakerTypes.DIRECTOR],
		min: 1,
		max: Infinity
	}]
};
var PER_SCENARIO_DECISION_MAKER_REQUIREMENTS_OVERRIDES = { L_BAFIN: [...DEFAULT_DECISION_MAKER_REQUIREMENTS, {
	roleTypes: [DecisionMakerTypes.DIRECTOR],
	min: 1,
	max: Infinity
}] };
var getDecisionMakerRequirements = (country, matchingScenarios) => {
	if (matchingScenarios && matchingScenarios?.includes(Scenarios.L_BAFIN)) return PER_SCENARIO_DECISION_MAKER_REQUIREMENTS_OVERRIDES[Scenarios.L_BAFIN];
	if (country) {
		const countryRequirements = PER_COUNTRY_DECISION_MAKER_REQUIREMENTS_OVERRIDES[country];
		if (countryRequirements) return countryRequirements;
	}
	return DEFAULT_DECISION_MAKER_REQUIREMENTS;
};
function getAvailableDecisionMakerRoleTypes(country, matchingScenarios) {
	return getDecisionMakerRequirements(country, matchingScenarios).filter((req) => req.roleTypes.length === 1).map((req) => ({
		roleType: req.roleTypes[0],
		min: req.min,
		max: req.max
	}));
}
var DEFAULT_DESCRIPTIONS_MAP = {
	[DecisionMakerTypes.OWNER]: "provideAllOwners",
	[DecisionMakerTypes.CONTROLLING_PERSON]: "ifNoOwnersSpecifyControllingPersons",
	[DecisionMakerTypes.DIRECTOR]: "provideAllDirectors",
	[DecisionMakerTypes.SIGNATORY]: "provideAtLeastOneSignatory"
};
var PER_COUNTRY_DESCRIPTION_OVERRIDES = {
	US: { [DecisionMakerTypes.CONTROLLING_PERSON]: "provideOneControllingPerson" },
	BR: { [DecisionMakerTypes.CONTROLLING_PERSON]: "provideOneControllingPerson" }
};
var getDecisionMakerDescriptionMap = (country) => ({
	...DEFAULT_DESCRIPTIONS_MAP,
	...PER_COUNTRY_DESCRIPTION_OVERRIDES[country]
});
//#endregion
export { getDecisionMakerDescriptionMap as n, getDecisionMakerRequirements as r, getAvailableDecisionMakerRoleTypes as t };
