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] = "644b8b2a-8b93-498b-a032-64f8c5644604", e._sentryDebugIdIdentifier = "sentry-dbid-644b8b2a-8b93-498b-a032-64f8c5644604");
} catch (e) {}
import { n as addResourceBundles, r as useTranslation } from "./translation-Br5wIPO-.js";
import { r as Loader } from "./Button-BDEdGXnd.js";
import { r as useLegalEntity } from "./useLegalEntity-Dm6g0wmt.js";
import { t as getLegalEntityCountry } from "./getLegalEntityCountry-C6bSV6sB.js";
import { a as noop } from "./AnalyticsContext-C0HNdPss.js";
import { t as _rolldown_dynamic_import_helper_default } from "./_rolldown_dynamic_import_helper-CCXvMgfE.js";
import { C as EntityTypes } from "./processCapabilities-CDSEJpB8.js";
import { t as TaskTypes } from "./taskTypes-DWaxzvnQ.js";
import { n as useCapabilityProblems, t as getProblemsForEntity } from "./getProblemsForEntity-COcJt47f.js";
import { t as IndividualDropin } from "./IndividualDropin-DImA9Gce.js";
import { jsx } from "preact/jsx-runtime";
import { skipToken } from "@tanstack/preact-query";
import { useParams } from "wouter-preact";
//#region src/components/Trust/pages/TrustMemberIndividualPage.tsx
function TrustMemberIndividualPage({ trustId, memberId: memberIdProp, newMember, asModal = false, hideSidebar = false, isTargetLegalEntityType = false, onSubmit, handleBackClick, handleCloseClick, handleHomeClick = noop }) {
	const routeParams = useParams();
	const memberId = memberIdProp ?? routeParams.memberId;
	const { data: memberLe } = useLegalEntity(memberId ?? skipToken);
	const { data: trustLe } = useLegalEntity(trustId ?? skipToken);
	const capabilityProblems = useCapabilityProblems();
	const { i18n } = useTranslation();
	addResourceBundles(i18n, [{
		ns: "individual",
		importFn: (lang) => _rolldown_dynamic_import_helper_default(/* @__PURE__ */ Object.assign({
			"../../Individual/language/bg-BG.json": () => import("./bg-BG-CS6SQDE2.js"),
			"../../Individual/language/cs-CZ.json": () => import("./cs-CZ-C-nfIYKA.js"),
			"../../Individual/language/da-DK.json": () => import("./da-DK-DO88W3qD.js"),
			"../../Individual/language/de-DE.json": () => import("./de-DE-YX6rtv17.js"),
			"../../Individual/language/el-GR.json": () => import("./el-GR-Be15a5W8.js"),
			"../../Individual/language/en-US.instructions.json": () => import("./en-US.instructions-CXa3foCe.js"),
			"../../Individual/language/en-US.json": () => import("./en-US-BDZwHN0Y.js"),
			"../../Individual/language/es-ES.json": () => import("./es-ES-D1BkDJkz.js"),
			"../../Individual/language/et-EE.json": () => import("./et-EE-BZ26f0MN.js"),
			"../../Individual/language/fi-FI.json": () => import("./fi-FI-CeJPt0gg.js"),
			"../../Individual/language/fr-FR.json": () => import("./fr-FR-lfoSPY0e.js"),
			"../../Individual/language/hr-HR.json": () => import("./hr-HR-CMgsuYh2.js"),
			"../../Individual/language/hu-HU.json": () => import("./hu-HU-C0Y9wmOY.js"),
			"../../Individual/language/it-IT.json": () => import("./it-IT-Cm3ujfY_.js"),
			"../../Individual/language/ja-JP.json": () => import("./ja-JP-BbXt47jb.js"),
			"../../Individual/language/lt-LT.json": () => import("./lt-LT-CDdoDT7A.js"),
			"../../Individual/language/lv-LV.json": () => import("./lv-LV-DpfhFur0.js"),
			"../../Individual/language/nl-NL.json": () => import("./nl-NL-B0uwKjKV.js"),
			"../../Individual/language/no-NO.json": () => import("./no-NO-BlsDONGK.js"),
			"../../Individual/language/pl-PL.json": () => import("./pl-PL-Ct3cI8Sk.js"),
			"../../Individual/language/pt-BR.json": () => import("./pt-BR-CqDjOIYt.js"),
			"../../Individual/language/pt-PT.json": () => import("./pt-PT-Dl_yfKGH.js"),
			"../../Individual/language/ro-RO.json": () => import("./ro-RO-D9YjxrDi.js"),
			"../../Individual/language/sk-SK.json": () => import("./sk-SK-CQ1N3c8X.js"),
			"../../Individual/language/sl-SI.json": () => import("./sl-SI-B8-rZ169.js"),
			"../../Individual/language/sv-SE.json": () => import("./sv-SE-guJk9E1n.js")
		}), `../../Individual/language/${lang}.json`, 5)
	}, {
		ns: "trust",
		importFn: (lang) => _rolldown_dynamic_import_helper_default(/* @__PURE__ */ Object.assign({
			"../language/bg-BG.json": () => import("./bg-BG-YZ34LkMd.js"),
			"../language/cs-CZ.json": () => import("./cs-CZ-Bl8qBkx4.js"),
			"../language/da-DK.json": () => import("./da-DK-BOU9aCaN.js"),
			"../language/de-DE.json": () => import("./de-DE-B8D6bV3u.js"),
			"../language/el-GR.json": () => import("./el-GR-mGnv3b-O.js"),
			"../language/en-US.json": () => import("./en-US-aJtjsYKh.js"),
			"../language/es-ES.json": () => import("./es-ES-BAAL2h3R.js"),
			"../language/et-EE.json": () => import("./et-EE-C4U93xrJ.js"),
			"../language/fi-FI.json": () => import("./fi-FI-IwaR92iX.js"),
			"../language/fr-FR.json": () => import("./fr-FR-DwYX21r1.js"),
			"../language/hr-HR.json": () => import("./hr-HR-CFAySNqh.js"),
			"../language/hu-HU.json": () => import("./hu-HU-DXHf3uuK.js"),
			"../language/it-IT.json": () => import("./it-IT-BK6Yn4vc.js"),
			"../language/ja-JP.json": () => import("./ja-JP-B5fRnSzi.js"),
			"../language/lt-LT.json": () => import("./lt-LT-Dkvuak-E.js"),
			"../language/lv-LV.json": () => import("./lv-LV-Cz0igciN.js"),
			"../language/nl-NL.json": () => import("./nl-NL-BTuDiajY.js"),
			"../language/no-NO.json": () => import("./no-NO-D6C6Imfk.js"),
			"../language/pl-PL.json": () => import("./pl-PL-DNdGYT-E.js"),
			"../language/pt-BR.json": () => import("./pt-BR-BgiNMjMc.js"),
			"../language/pt-PT.json": () => import("./pt-PT-CWzCKCL8.js"),
			"../language/ro-RO.json": () => import("./ro-RO-DLtPW1MX.js"),
			"../language/sk-SK.json": () => import("./sk-SK-DNKyL6Hl.js"),
			"../language/sl-SI.json": () => import("./sl-SI-DNgxTuIJ.js"),
			"../language/sv-SE.json": () => import("./sv-SE-BM8WESGs.js")
		}), `../language/${lang}.json`, 3)
	}]);
	if (!trustLe || memberId && !memberLe) return /* @__PURE__ */ jsx(Loader, {});
	const country = getLegalEntityCountry(memberLe ?? trustLe);
	const problems = capabilityProblems && memberId ? getProblemsForEntity(capabilityProblems, EntityTypes.LEGAL_ENTITY, memberId) : void 0;
	return /* @__PURE__ */ jsx(IndividualDropin, {
		taskType: TaskTypes.TRUST_MEMBER_INDIVIDUAL,
		taskName: "trustMemberDetails",
		legalEntityResponse: memberLe,
		parentLegalEntity: trustLe,
		trustMember: newMember,
		problems,
		country,
		asModal,
		hideSidebar,
		isTargetLegalEntityType,
		onSubmit,
		handleBackClick,
		handleCloseClick,
		handleHomeClick
	});
}
//#endregion
export { TrustMemberIndividualPage };
