;
{
  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] = "1c0a9e43-2032-41b8-a59a-3e9a30ccbb53", e._sentryDebugIdIdentifier = "sentry-dbid-1c0a9e43-2032-41b8-a59a-3e9a30ccbb53");
  } catch (e) {
  }
}
;
import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
import { a3 as createLogger, u as useTranslation, p as useAnalyticsContext, m as useAccountHolder, bq as getCapabilities, g as getLegalEntityCountry, o as LegalEntityTypes, z as Typography, V as Button, c as useLegalEntity, L as Loader, R as ROOT_LE } from "./StoreProvider-CqQrndhS.js";
import { useState, useEffect } from "preact/hooks";
import { u as useUpdateLegalEntity } from "./useUpdateLegalEntity-CcNBhTXa.js";
import { F as Field } from "./Field-BL3Mh7gm.js";
import { L as LoaderWrapper } from "./LoaderWrapper-Dr1uK-LS.js";
import { S as Spacer } from "./Spacer-BK3jDget.js";
import { T as TileGroup } from "./TileGroup-CFNn8NKj.js";
import { u as useToastContext } from "./useToastContext-CPvuqSMm.js";
import { u as useForm } from "./useForm-BFLyeF0c.js";
import { u as useSelectionOptions, g as getBusinessType, a as getDefaultLegalArrangementOrSuborganizationType, l as legalArrangementMetadata, b as getTargetLegalEntityType, c as businessTypeIcons, d as determineOrganizationTypeToUpdate } from "./utils-COH-Yj4p.js";
const businessTypeExamples = /* @__PURE__ */ Object.assign({ "../localized/legalEntityTypeExamples/AT.json": () => import("./AT-EpV7jN58.js"), "../localized/legalEntityTypeExamples/AU.json": () => import("./AU-pBsEvEUy.js"), "../localized/legalEntityTypeExamples/BE.json": () => import("./BE-CU5o9cmc.js"), "../localized/legalEntityTypeExamples/BR.json": () => import("./BR-ORoHRwTk.js"), "../localized/legalEntityTypeExamples/CA.json": () => import("./CA-VXNq-m6m.js"), "../localized/legalEntityTypeExamples/CH.json": () => import("./CH-B_-afpD_.js"), "../localized/legalEntityTypeExamples/CZ.json": () => import("./CZ-CTw_bQIu.js"), "../localized/legalEntityTypeExamples/DE.json": () => import("./DE-D_jIDxOH.js"), "../localized/legalEntityTypeExamples/DK.json": () => import("./DK-dBzrfgpQ.js"), "../localized/legalEntityTypeExamples/ES.json": () => import("./ES-DYbZmFcJ.js"), "../localized/legalEntityTypeExamples/FI.json": () => import("./FI-C9nRvop7.js"), "../localized/legalEntityTypeExamples/FR.json": () => import("./FR-BycGQO4W.js"), "../localized/legalEntityTypeExamples/GB.json": () => import("./GB-DFyzo5sN.js"), "../localized/legalEntityTypeExamples/HK.json": () => import("./HK-WqZ5UBEF.js"), "../localized/legalEntityTypeExamples/HR.json": () => import("./HR-CRa19tH1.js"), "../localized/legalEntityTypeExamples/HU.json": () => import("./HU-D5NCweWf.js"), "../localized/legalEntityTypeExamples/IE.json": () => import("./IE-rhATS57q.js"), "../localized/legalEntityTypeExamples/IT.json": () => import("./IT-wD7dHdYD.js"), "../localized/legalEntityTypeExamples/LT.json": () => import("./LT-0F72uCyI.js"), "../localized/legalEntityTypeExamples/NL.json": () => import("./NL-q2U2l276.js"), "../localized/legalEntityTypeExamples/NO.json": () => import("./NO-CX12Zsf_.js"), "../localized/legalEntityTypeExamples/PL.json": () => import("./PL-CwCXF3Yu.js"), "../localized/legalEntityTypeExamples/PT.json": () => import("./PT-Dei5v1nD.js"), "../localized/legalEntityTypeExamples/RO.json": () => import("./RO-Dxk08mOu.js"), "../localized/legalEntityTypeExamples/SE.json": () => import("./SE-AP3gLiyy.js"), "../localized/legalEntityTypeExamples/SG.json": () => import("./SG-DMcOb17i.js"), "../localized/legalEntityTypeExamples/SI.json": () => import("./SI-BXe-yndm.js"), "../localized/legalEntityTypeExamples/SK.json": () => import("./SK-DwdgoGnD.js"), "../localized/legalEntityTypeExamples/US.json": () => import("./US-DHxLSqeC.js") });
const logger$1 = createLogger();
const getBusinessTypeExamplesForCountry = async (country) => {
  const importForCountry = businessTypeExamples[`../localized/legalEntityTypeExamples/${country}.json`];
  if (!importForCountry) {
    logger$1.warn(`No business type examples available for ${country}`);
    return {};
  }
  return (await importForCountry()).default;
};
const useBusinessTypeExamples = (country) => {
  const [examples, setExamples] = useState();
  useEffect(() => {
    getBusinessTypeExamplesForCountry(country).then(setExamples).catch(console.error);
  }, [country]);
  return examples;
};
const legalArrangementTypeExamples = /* @__PURE__ */ Object.assign({
  "../localized/legalArrangementTypeExamples/AT.json": () => import("./AT-C_G2OvQI.js"),
  "../localized/legalArrangementTypeExamples/AU.json": () => import("./AU-CaovX9P8.js"),
  "../localized/legalArrangementTypeExamples/BE.json": () => import("./BE-H45zzgu4.js"),
  "../localized/legalArrangementTypeExamples/BR.json": () => import("./BR-Dmkd5VjU.js"),
  "../localized/legalArrangementTypeExamples/CA.json": () => import("./CA-BZ1GNmhP.js"),
  "../localized/legalArrangementTypeExamples/CH.json": () => import("./CH-DVyjmrDH.js"),
  "../localized/legalArrangementTypeExamples/CZ.json": () => import("./CZ-1E7Zx2il.js"),
  "../localized/legalArrangementTypeExamples/DE.json": () => import("./DE-D7HKgI77.js"),
  "../localized/legalArrangementTypeExamples/DK.json": () => import("./DK-x6M9-ek-.js"),
  "../localized/legalArrangementTypeExamples/ES.json": () => import("./ES-CeohntGo.js"),
  "../localized/legalArrangementTypeExamples/FI.json": () => import("./FI-BOex4MFx.js"),
  "../localized/legalArrangementTypeExamples/FR.json": () => import("./FR-CAxkckai.js"),
  "../localized/legalArrangementTypeExamples/GB.json": () => import("./GB-DUnW-a4M.js"),
  "../localized/legalArrangementTypeExamples/HK.json": () => import("./HK-eKVHN8Vg.js"),
  "../localized/legalArrangementTypeExamples/HR.json": () => import("./HR-BHhcnUGU.js"),
  "../localized/legalArrangementTypeExamples/HU.json": () => import("./HU-hfSSMbei.js"),
  "../localized/legalArrangementTypeExamples/IE.json": () => import("./IE-BN3Eiv5M.js"),
  "../localized/legalArrangementTypeExamples/IT.json": () => import("./IT-CBt6Os6J.js"),
  "../localized/legalArrangementTypeExamples/LT.json": () => import("./LT-Dkevn83h.js"),
  "../localized/legalArrangementTypeExamples/NL.json": () => import("./NL-zm__7LWV.js"),
  "../localized/legalArrangementTypeExamples/NO.json": () => import("./NO-BAcMdKUJ.js"),
  "../localized/legalArrangementTypeExamples/NZ.json": () => import("./NZ-DDRknBQk.js"),
  "../localized/legalArrangementTypeExamples/PL.json": () => import("./PL-D6_6gquq.js"),
  "../localized/legalArrangementTypeExamples/PT.json": () => import("./PT-C2dln191.js"),
  "../localized/legalArrangementTypeExamples/RO.json": () => import("./RO-C_utD--1.js"),
  "../localized/legalArrangementTypeExamples/SE.json": () => import("./SE-BqGOP1F1.js"),
  "../localized/legalArrangementTypeExamples/SG.json": () => import("./SG-dEj6fGdY.js"),
  "../localized/legalArrangementTypeExamples/SI.json": () => import("./SI-DBADzvYO.js"),
  "../localized/legalArrangementTypeExamples/SK.json": () => import("./SK-DamCBYsZ.js"),
  "../localized/legalArrangementTypeExamples/US.json": () => import("./US-CxBcdqfz.js")
});
const logger = createLogger();
const getLegalArrangementTypeExamplesForCountry = async (country) => {
  const importForCountry = legalArrangementTypeExamples[`../localized/legalArrangementTypeExamples/${country}.json`];
  if (!importForCountry) {
    logger.warn(`No legal arrangement type examples available for ${country}`);
    return {};
  }
  return (await importForCountry()).default;
};
const useLegalArrangementTypeExamples = (country) => {
  const [examples, setExamples] = useState();
  useEffect(() => {
    getLegalArrangementTypeExamplesForCountry(country).then(setExamples).catch(console.error);
  }, [country]);
  return examples;
};
const trusteeTypes = ["individual", "company"];
const trusteeTypeMetadata = {
  individual: {
    id: "individual",
    name: "individualMember"
  },
  company: {
    id: "company",
    name: "companyMember"
  }
};
const getFormSchema = (isLegalArrangement, isTrust) => {
  const schema = ["businessType"];
  if (isLegalArrangement) {
    schema.push("legalArrangement");
  }
  if (isTrust) {
    schema.push("trusteeType");
  }
  return schema;
};
const businessTypeSelectionValidationRules = {
  businessType: {
    modes: ["blur"],
    validate: (businessType) => !!businessType,
    errorMessage: "fieldIsRequired"
  },
  legalArrangement: {
    modes: ["blur"],
    validate: (legalArrangement) => !!legalArrangement,
    errorMessage: "fieldIsRequired"
  },
  trusteeType: {
    modes: ["blur"],
    validate: (trusteeType) => !!trusteeType,
    errorMessage: "fieldIsRequired"
  }
};
const BusinessTypeSelectionSteps = {
  BUSINESS_TYPE_SELECTION: 0,
  LEGAL_ARRANGEMENT_SELECTION: 1,
  WE_CANNOT_SET_UP_ACCOUNT: 2,
  CONFIRM_BUSINESS_SETUP_CHANGE: 3
};
const businessTypeSelectionStepTitles = {
  [BusinessTypeSelectionSteps.BUSINESS_TYPE_SELECTION]: "whatBestDescribesYourBusinessSetup",
  [BusinessTypeSelectionSteps.LEGAL_ARRANGEMENT_SELECTION]: "whichLegalArrangementDoesYourBusinessHave",
  [BusinessTypeSelectionSteps.WE_CANNOT_SET_UP_ACCOUNT]: "sorryWeCantSetUpAnAccountForYou",
  [BusinessTypeSelectionSteps.CONFIRM_BUSINESS_SETUP_CHANGE]: "changeYourBusinessSetup"
};
const BusinessTypeSelection = ({
  rootLegalEntity,
  onComplete,
  onBack
}) => {
  const { t } = useTranslation("common");
  const userEvents = useAnalyticsContext();
  const { showToast } = useToastContext();
  const { accountHolder } = useAccountHolder();
  const [loadingStatus, setLoadingStatus] = useState();
  const [currentStep, setCurrentStep] = useState(
    BusinessTypeSelectionSteps.BUSINESS_TYPE_SELECTION
  );
  const [formSchema, setFormSchema] = useState([
    "businessType"
  ]);
  const { mutateAsync: updateLegalEntity } = useUpdateLegalEntity();
  const hasBackButton = currentStep === BusinessTypeSelectionSteps.LEGAL_ARRANGEMENT_SELECTION || currentStep === BusinessTypeSelectionSteps.WE_CANNOT_SET_UP_ACCOUNT || currentStep === BusinessTypeSelectionSteps.BUSINESS_TYPE_SELECTION && Boolean(onBack);
  const { legalArrangementOptions, adjustedBusinessTypeMetadata: businessTypeMetadata } = useSelectionOptions(rootLegalEntity);
  const currentLegalEntityType = rootLegalEntity.type;
  const currentCompanyTypesValue = rootLegalEntity.organization?.type;
  const capabilities = getCapabilities(rootLegalEntity);
  const country = getLegalEntityCountry(rootLegalEntity);
  const defaultBusinessType = getBusinessType(
    businessTypeMetadata,
    country,
    accountHolder,
    rootLegalEntity.type,
    rootLegalEntity.organization?.type,
    capabilities
  );
  const defaultLegalArrangementType = legalArrangementOptions.find(
    (item) => item === getDefaultLegalArrangementOrSuborganizationType(rootLegalEntity, accountHolder)
  );
  const defaultTrusteeType = rootLegalEntity.type === LegalEntityTypes.INDIVIDUAL ? trusteeTypeMetadata.individual : trusteeTypeMetadata.company;
  const { handleChangeFor, triggerValidation, data, valid, errors, isValid } = useForm({
    schema: formSchema,
    defaultData: {
      businessType: defaultBusinessType,
      legalArrangement: legalArrangementMetadata[defaultLegalArrangementType],
      trusteeType: defaultTrusteeType
    },
    rules: businessTypeSelectionValidationRules
  });
  const newAccountHolder = data.businessType?.accountHolder || data.legalArrangement?.accountHolder;
  const targetLegalArrangement = data.legalArrangement?.id;
  const isTrust = targetLegalArrangement === "aTrust";
  const isUnincorporatedPartnership = targetLegalArrangement === "partnershipUnincorporated";
  const trustOrUnincorporatedPartnership = isTrust || isUnincorporatedPartnership;
  const targetLegalEntityType = getTargetLegalEntityType(
    data.businessType?.id,
    data.legalArrangement?.id,
    data.trusteeType?.id,
    rootLegalEntity.type
  );
  const isLegalEntityTypeChanging = currentLegalEntityType !== targetLegalEntityType;
  const isLegalArrangementChanging = currentCompanyTypesValue !== targetLegalArrangement;
  useEffect(() => {
    setFormSchema(
      getFormSchema(
        data.businessType?.id === "legalArrangement" && !!data.legalArrangement || currentStep === BusinessTypeSelectionSteps.LEGAL_ARRANGEMENT_SELECTION,
        trustOrUnincorporatedPartnership
      )
    );
  }, [data.businessType, data.legalArrangement, currentStep, trustOrUnincorporatedPartnership]);
  useEffect(() => {
    userEvents.addTaskEvent("Landed on page", {
      actionType: "start"
    });
  }, [userEvents]);
  const handleNextClick = async () => {
    if (loadingStatus === "loading") return;
    triggerValidation();
    if (isValid) {
      userEvents.addPageEvent("Clicked button", {
        actionType: "next"
      });
      if (data.businessType?.id === "legalArrangement") {
        if (currentStep !== BusinessTypeSelectionSteps.LEGAL_ARRANGEMENT_SELECTION) {
          setCurrentStep(BusinessTypeSelectionSteps.LEGAL_ARRANGEMENT_SELECTION);
          return;
        }
      }
      if (newAccountHolder !== accountHolder || isLegalEntityTypeChanging) {
        if (accountHolder) {
          setCurrentStep(BusinessTypeSelectionSteps.CONFIRM_BUSINESS_SETUP_CHANGE);
          return;
        }
        await updateLegalEntityAndSelectAccountHolder();
      } else {
        onComplete(newAccountHolder);
      }
      if (isLegalArrangementChanging) {
        await updateLegalEntityAndSelectAccountHolder();
      }
    }
  };
  const updateLegalEntityAndSelectAccountHolder = async () => {
    const trackingPayload = {
      actionType: "submit"
    };
    try {
      if (isLegalEntityTypeChanging) {
        setLoadingStatus("loading");
        const updateLegalEntityPayload = {
          type: targetLegalEntityType
        };
        await updateLegalEntity({ ...updateLegalEntityPayload, id: rootLegalEntity.id });
        userEvents.addTaskEvent("Success", trackingPayload);
      }
      if (targetLegalEntityType === LegalEntityTypes.INDIVIDUAL) {
        if (rootLegalEntity.entityAssociations?.length) {
          setLoadingStatus("loading");
          const updateLegalEntityPayload = {
            entityAssociations: []
          };
          await updateLegalEntity({ ...updateLegalEntityPayload, id: rootLegalEntity.id });
          userEvents.addTaskEvent("Success", trackingPayload);
        }
        return;
      }
      const targetOrganizationType = determineOrganizationTypeToUpdate(
        targetLegalArrangement,
        currentCompanyTypesValue
      );
      if (targetOrganizationType !== void 0) {
        await updateLegalEntity?.({
          organization: {
            type: targetOrganizationType
          },
          id: rootLegalEntity.id
        });
        userEvents.addTaskEvent("Success", trackingPayload);
      }
      if (!targetLegalArrangement && defaultLegalArrangementType) {
        await updateLegalEntity?.({
          entityAssociations: [],
          id: rootLegalEntity.id
        });
        userEvents.addTaskEvent("Success", trackingPayload);
      }
    } catch {
      showToast({ label: t(($) => $["failedToUpdateDetails"]), variant: "error" });
    } finally {
      setLoadingStatus("success");
      onComplete(newAccountHolder);
    }
  };
  const handleBackClick = () => {
    if (currentStep === BusinessTypeSelectionSteps.WE_CANNOT_SET_UP_ACCOUNT) {
      setCurrentStep(BusinessTypeSelectionSteps.LEGAL_ARRANGEMENT_SELECTION);
    }
    if (currentStep === BusinessTypeSelectionSteps.LEGAL_ARRANGEMENT_SELECTION) {
      setCurrentStep(BusinessTypeSelectionSteps.BUSINESS_TYPE_SELECTION);
    }
    if (currentStep === BusinessTypeSelectionSteps.BUSINESS_TYPE_SELECTION) {
      onBack?.();
    }
  };
  const isWeCannotSetUpAccountStep = currentStep === BusinessTypeSelectionSteps.WE_CANNOT_SET_UP_ACCOUNT;
  const businessTypeExamples2 = useBusinessTypeExamples(country);
  const businessTiles = Object.keys(businessTypeMetadata).map((option) => {
    const description = t(($) => $[businessTypeMetadata[option].description]);
    const examples = businessTypeExamples2?.[option];
    const subTitle = examples ? `${description} ${t(($) => $["forExample_"], {
      examples: examples.join(", "),
      interpolation: { escapeValue: false },
      ns: "ui"
    })}` : description;
    return {
      value: option,
      label: t(($) => $[businessTypeMetadata[option].name]),
      subTitle,
      icon: businessTypeIcons[option]
    };
  });
  const legalArrangementTypeExamples2 = useLegalArrangementTypeExamples(country);
  return /* @__PURE__ */ jsx(LoaderWrapper, { status: loadingStatus, formOpacityWhenLoading: 0.3, showSpinner: false, children: /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-business-type-selection", children: [
    /* @__PURE__ */ jsxs("header", { className: "adyen-kyc-u-margin-bottom-32", children: [
      /* @__PURE__ */ jsx(Typography, { el: "h2", variant: "title-m", children: t(($) => $[businessTypeSelectionStepTitles[currentStep]]) }),
      currentStep === BusinessTypeSelectionSteps.CONFIRM_BUSINESS_SETUP_CHANGE && /* @__PURE__ */ jsx(Typography, { el: "p", variant: "title", children: t(($) => $["someInformationWillNotBeSaved"]) })
    ] }),
    currentStep === BusinessTypeSelectionSteps.BUSINESS_TYPE_SELECTION && /* @__PURE__ */ jsx(
      Field,
      {
        el: "fieldset",
        name: "businessType",
        errorMessage: errors.businessType?.errorMessage,
        showErrorIconBottom: true,
        isValid: valid.businessType,
        children: (childProps) => /* @__PURE__ */ jsx(
          TileGroup,
          {
            ...childProps,
            name: "businessType",
            tiles: businessTiles,
            selected: data.businessType?.id ?? "",
            onChange: (value) => handleChangeFor("businessType")(businessTypeMetadata[value]),
            isHorizontal: true
          }
        )
      }
    ),
    currentStep === BusinessTypeSelectionSteps.LEGAL_ARRANGEMENT_SELECTION && /* @__PURE__ */ jsxs(Fragment, { children: [
      /* @__PURE__ */ jsx(
        Field,
        {
          name: "legalArrangement",
          el: "fieldset",
          errorMessage: errors.legalArrangement?.errorMessage,
          showErrorIconBottom: true,
          isValid: valid.legalArrangement,
          children: (childProps) => /* @__PURE__ */ jsx(
            TileGroup,
            {
              ...childProps,
              name: "legalArrangement",
              tiles: legalArrangementOptions.map((option) => {
                const description = t(($) => $[legalArrangementMetadata[option].description]);
                const examples = legalArrangementTypeExamples2?.[option];
                const subTitle = examples ? `${description} (${t(($) => $["forExample_"], {
                  examples: examples.join(", "),
                  interpolation: { escapeValue: false },
                  ns: "ui"
                })})` : description;
                return {
                  value: option,
                  label: t(($) => $[legalArrangementMetadata[option].name]),
                  subTitle
                };
              }),
              selected: data.legalArrangement?.id ?? "",
              onChange: (value) => handleChangeFor("legalArrangement")(
                legalArrangementMetadata[value]
              ),
              isHorizontal: true
            }
          )
        }
      ),
      trustOrUnincorporatedPartnership && /* @__PURE__ */ jsx(
        Field,
        {
          el: "fieldset",
          name: "trusteeType",
          label: t(
            ($) => $[isTrust ? "whatTypeOfTrusteeAreYou" : "whatTypeOfPartnershipAreYou"]
          ),
          helper: isUnincorporatedPartnership ? t(($) => $["whatTypeOfPartnershipAreYouGuidance"]) : void 0,
          className: "adyen-kyc-u-margin-top-32",
          errorMessage: errors.trusteeType?.errorMessage,
          showErrorIconBottom: true,
          isValid: valid.trusteeType,
          children: (childProps) => /* @__PURE__ */ jsx(
            TileGroup,
            {
              ...childProps,
              name: "trusteeType",
              tiles: trusteeTypes.map((option) => ({
                value: option,
                label: t(($) => $[trusteeTypeMetadata[option].name])
              })),
              selected: data.trusteeType?.id ?? "",
              onChange: (value) => handleChangeFor("trusteeType")(trusteeTypeMetadata[value]),
              isHorizontal: true
            }
          )
        }
      )
    ] }),
    isWeCannotSetUpAccountStep && /* @__PURE__ */ jsxs(Fragment, { children: [
      /* @__PURE__ */ jsx("p", { children: t(($) => $["ourFinancialServicesAreNotAvailableYetForPartnershipsAndAssociations"]) }),
      /* @__PURE__ */ jsx("p", { className: "u-margin-top-32", children: t(($) => $["needHelpYouCanAlwaysReachOutToCustomerSupport"]) })
    ] }),
    currentStep === BusinessTypeSelectionSteps.CONFIRM_BUSINESS_SETUP_CHANGE ? /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-business-type-selection__confirm", children: [
      /* @__PURE__ */ jsx(
        Button,
        {
          variant: "secondary",
          onClick: () => setCurrentStep(BusinessTypeSelectionSteps.BUSINESS_TYPE_SELECTION),
          children: t(($) => $["cancel"])
        }
      ),
      /* @__PURE__ */ jsx(Button, { onClick: () => updateLegalEntityAndSelectAccountHolder(), children: t(($) => $["yesChange"]) })
    ] }) : /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-business-type-selection__nav", children: [
      hasBackButton && /* @__PURE__ */ jsx(Button, { onClick: handleBackClick, variant: "secondary", icon: "chevron-left", children: t(($) => $["back"]) }),
      /* @__PURE__ */ jsx(Spacer, {}),
      !isWeCannotSetUpAccountStep && /* @__PURE__ */ jsx(
        Button,
        {
          disabled: currentStep === BusinessTypeSelectionSteps.LEGAL_ARRANGEMENT_SELECTION && !data.legalArrangement,
          onClick: handleNextClick,
          children: t(($) => $["continue"])
        }
      )
    ] })
  ] }) });
};
const BusinessTypeSelectionPage = ({
  onComplete,
  onBack
}) => {
  const { data: rootLe, isLoading } = useLegalEntity(ROOT_LE);
  if (isLoading || !rootLe) {
    return /* @__PURE__ */ jsx(Loader, {});
  }
  return /* @__PURE__ */ jsx(BusinessTypeSelection, { onComplete, onBack, rootLegalEntity: rootLe });
};
export {
  BusinessTypeSelectionPage
};
