;
{
  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] = "2c8253fd-3de0-47aa-ba4f-d025ae2c2f48", e._sentryDebugIdIdentifier = "sentry-dbid-2c8253fd-3de0-47aa-ba4f-d025ae2c2f48");
  } catch (e) {
  }
}
;
import { c as useLegalEntity, u as useTranslation, a as addResourceBundles, L as Loader, g as getLegalEntityCountry, a7 as noop, j as TaskTypes, a8 as EntityTypes, _ as __variableDynamicImportRuntimeHelper } from "./StoreProvider-CqQrndhS.js";
import { jsx } from "preact/jsx-runtime";
import { skipToken } from "@tanstack/preact-query";
import { useParams } from "wouter-preact";
import { u as useCapabilityProblems, g as getProblemsForEntity } from "./getProblemsForEntity-C1PgQbDM.js";
import { I as IndividualOnfidoDropin } from "./IndividualDropin-Dc6nJvrr.js";
function UnincorporatedPartnershipIndividualPage({
  memberId: memberIdProp,
  partnershipId,
  member,
  asModal = false,
  hideSidebar = false,
  isTargetLegalEntityType = false,
  onSubmit,
  /** below from {@link DropinProps} */
  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) => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../../Individual/language/bg-BG.json": () => import("./bg-BG-wMYXZGDQ.js"), "../../Individual/language/cs-CZ.json": () => import("./cs-CZ-bkbdzIkF.js"), "../../Individual/language/da-DK.json": () => import("./da-DK-DvZ431fC.js"), "../../Individual/language/de-DE.json": () => import("./de-DE-0uSzhWg5.js"), "../../Individual/language/el-GR.json": () => import("./el-GR-CWWBcvDM.js"), "../../Individual/language/en-US.json": () => import("./en-US-cVpRgdC8.js"), "../../Individual/language/es-ES.json": () => import("./es-ES-B7dt4cn7.js"), "../../Individual/language/et-EE.json": () => import("./et-EE-D_3GB-yT.js"), "../../Individual/language/fi-FI.json": () => import("./fi-FI-REMsyTSr.js"), "../../Individual/language/fr-FR.json": () => import("./fr-FR-CvHWmim-.js"), "../../Individual/language/hr-HR.json": () => import("./hr-HR-LO3oO8yb.js"), "../../Individual/language/hu-HU.json": () => import("./hu-HU-DEKBPTur.js"), "../../Individual/language/it-IT.json": () => import("./it-IT-BeX7-OcD.js"), "../../Individual/language/ja-JP.json": () => import("./ja-JP-B3wVYIJU.js"), "../../Individual/language/lt-LT.json": () => import("./lt-LT-3niAR3rI.js"), "../../Individual/language/lv-LV.json": () => import("./lv-LV-K-KFPny2.js"), "../../Individual/language/nl-NL.json": () => import("./nl-NL-CM5U8ODq.js"), "../../Individual/language/no-NO.json": () => import("./no-NO-BQL_M1pn.js"), "../../Individual/language/pl-PL.json": () => import("./pl-PL-DC_lIAnp.js"), "../../Individual/language/pt-BR.json": () => import("./pt-BR-AZ3roErF.js"), "../../Individual/language/pt-PT.json": () => import("./pt-PT-DVKtHjIY.js"), "../../Individual/language/ro-RO.json": () => import("./ro-RO-CHcD-PGb.js"), "../../Individual/language/sk-SK.json": () => import("./sk-SK-s9Xm01UD.js"), "../../Individual/language/sl-SI.json": () => import("./sl-SI-C0wSbuau.js"), "../../Individual/language/sv-SE.json": () => import("./sv-SE-DtKjf4Go.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;
  const props = {
    taskType: TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_INDIVIDUAL,
    taskName: "partnershipMemberDetails",
    legalEntityResponse: memberLe,
    parentLegalEntity: partnershipLe,
    trustMember: member,
    problems,
    country,
    asModal,
    hideSidebar,
    isTargetLegalEntityType,
    onSubmit,
    handleBackClick,
    handleCloseClick,
    handleHomeClick
  };
  return /* @__PURE__ */ jsx(IndividualOnfidoDropin, { ...props });
}
export {
  UnincorporatedPartnershipIndividualPage
};
