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] = "325007e3-8c96-451a-9fe9-669a5f7fbbad", e._sentryDebugIdIdentifier = "sentry-dbid-325007e3-8c96-451a-9fe9-669a5f7fbbad");
} catch (e) {}
import { n as addResourceBundles, r as useTranslation } from "./translation-DYpZlvOH.js";
import { r as Loader } from "./Button-DOLNhJTG.js";
import { r as useLegalEntity } from "./useLegalEntity-DFEptY6O.js";
import { t as getLegalEntityCountry } from "./getLegalEntityCountry-C6bSV6sB.js";
import { a as noop } from "./AnalyticsContext-zvlAxIPp.js";
import { t as _rolldown_dynamic_import_helper_default } from "./_rolldown_dynamic_import_helper-CCXvMgfE.js";
import { C as EntityTypes } from "./processCapabilities-CI_g2ItO.js";
import { t as TaskTypes } from "./taskTypes-DWaxzvnQ.js";
import { n as useCapabilityProblems, t as getProblemsForEntity } from "./getProblemsForEntity-DWdc4uXg.js";
import { t as IndividualDropin } from "./IndividualDropin-CEpexYMc.js";
import { jsx } from "preact/jsx-runtime";
import { skipToken } from "@tanstack/preact-query";
import { useParams } from "wouter-preact";
//#region src/components/UnincorporatedPartnership/pages/UnincorporatedPartnershipIndividualPage.tsx
function UnincorporatedPartnershipIndividualPage({ memberId: memberIdProp, partnershipId, member, 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: partnershipLe } = useLegalEntity(partnershipId ?? 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-DPA8C7cd.js"),
			"../../Individual/language/cs-CZ.json": () => import("./cs-CZ-7rXXuJIs.js"),
			"../../Individual/language/da-DK.json": () => import("./da-DK-uqXEDzsX.js"),
			"../../Individual/language/de-DE.json": () => import("./de-DE-Bx3yWhvM.js"),
			"../../Individual/language/el-GR.json": () => import("./el-GR-DyDZNY1Y.js"),
			"../../Individual/language/en-US.instructions.json": () => import("./en-US.instructions-kje2iQeM.js"),
			"../../Individual/language/en-US.json": () => import("./en-US--qOOYh8v.js"),
			"../../Individual/language/es-ES.json": () => import("./es-ES-OQQLpoI2.js"),
			"../../Individual/language/et-EE.json": () => import("./et-EE-Dh2jDTFG.js"),
			"../../Individual/language/fi-FI.json": () => import("./fi-FI-F0phsC5e.js"),
			"../../Individual/language/fr-FR.json": () => import("./fr-FR-Bo3Ui9bW.js"),
			"../../Individual/language/hr-HR.json": () => import("./hr-HR-BtQMffYR.js"),
			"../../Individual/language/hu-HU.json": () => import("./hu-HU-BJ98-oo4.js"),
			"../../Individual/language/it-IT.json": () => import("./it-IT-CwwFjn4z.js"),
			"../../Individual/language/ja-JP.json": () => import("./ja-JP-D6qS54Zm.js"),
			"../../Individual/language/lt-LT.json": () => import("./lt-LT-D3XnG1Jr.js"),
			"../../Individual/language/lv-LV.json": () => import("./lv-LV-B_Uypp3t.js"),
			"../../Individual/language/nl-NL.json": () => import("./nl-NL-DxYcxeQo.js"),
			"../../Individual/language/no-NO.json": () => import("./no-NO-DMJwgC8y.js"),
			"../../Individual/language/pl-PL.json": () => import("./pl-PL-DU49RDRD.js"),
			"../../Individual/language/pt-BR.json": () => import("./pt-BR-DReb0iHZ.js"),
			"../../Individual/language/pt-PT.json": () => import("./pt-PT-D7H8b_VC.js"),
			"../../Individual/language/ro-RO.json": () => import("./ro-RO-sc5JtH0w.js"),
			"../../Individual/language/sk-SK.json": () => import("./sk-SK-BgG5lOt0.js"),
			"../../Individual/language/sl-SI.json": () => import("./sl-SI-CEVc1txT.js"),
			"../../Individual/language/sv-SE.json": () => import("./sv-SE-g8sg5z4z.js")
		}), `../../Individual/language/${lang}.json`, 5)
	}]);
	if (!partnershipLe || memberId && !memberLe) return /* @__PURE__ */ jsx(Loader, {});
	const country = getLegalEntityCountry(memberLe ?? partnershipLe);
	const problems = capabilityProblems && memberId ? getProblemsForEntity(capabilityProblems, EntityTypes.LEGAL_ENTITY, memberId) : void 0;
	return /* @__PURE__ */ jsx(IndividualDropin, {
		taskType: TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_INDIVIDUAL,
		taskName: "partnershipMemberDetails",
		legalEntityResponse: memberLe,
		parentLegalEntity: partnershipLe,
		trustMember: member,
		problems,
		country,
		asModal,
		hideSidebar,
		isTargetLegalEntityType,
		onSubmit,
		handleBackClick,
		handleCloseClick,
		handleHomeClick
	});
}
//#endregion
export { UnincorporatedPartnershipIndividualPage };
