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] = "1479ecf8-fa5f-4bd8-84aa-eb50de1c8c2c", e._sentryDebugIdIdentifier = "sentry-dbid-1479ecf8-fa5f-4bd8-84aa-eb50de1c8c2c");
} catch (e) {}
import { i as Typography, o as createLogger, r as useTranslation } from "./translation-Br5wIPO-.js";
import { r as Loader, t as Button } from "./Button-BDEdGXnd.js";
import { r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-Dm6g0wmt.js";
import { t as LegalEntityTypes } from "./legal-entity-type-VIfNYnJP.js";
import { t as getLegalEntityCountry } from "./getLegalEntityCountry-C6bSV6sB.js";
import { t as useAccountHolder } from "./useAccountHolder-BUQwFdWW.js";
import { t as getCapabilities } from "./processCapabilities-CDSEJpB8.js";
import { t as useAnalyticsContext } from "./useAnalyticsContext-DfTXpZbA.js";
import { t as useToastContext } from "./useToastContext-CK7UoZ5Z.js";
import { t as LoaderWrapper } from "./LoaderWrapper-CRf5MAK1.js";
import { t as useUpdateLegalEntity } from "./useUpdateLegalEntity-CUs6TYPF.js";
import { t as useTaskLandedEvent } from "./useTaskLandedEvent-DCdJo64z.js";
import { t as Field } from "./Field-BEqknhTe.js";
import { t as TileGroup } from "./TileGroup-COge4hw4.js";
import { t as useForm } from "./useForm-DzG9tJAE.js";
import { t as Spacer } from "./Spacer-D1yp_1Io.js";
import { a as getTargetLegalEntityType, c as useSelectionOptions, i as getDefaultLegalArrangementOrSuborganizationType, n as determineOrganizationTypeToUpdate, o as legalArrangementMetadata, r as getBusinessType, t as businessTypeIcons } from "./utils-Cj9-IRaT.js";
import { useEffect, useState } from "preact/hooks";
import { Fragment, jsx, jsxs } from "preact/jsx-runtime";
//#region src/datasets/generators/getBusinessTypeExamplesForCountry.ts
var businessTypeExamples = /* @__PURE__ */ Object.assign({
	"../localized/legalEntityTypeExamples/AT.json": () => import("./AT-C8MN2Fns.js"),
	"../localized/legalEntityTypeExamples/AU.json": () => import("./AU--MSKgcDY.js"),
	"../localized/legalEntityTypeExamples/BE.json": () => import("./BE-yocZ_S-V.js"),
	"../localized/legalEntityTypeExamples/BR.json": () => import("./BR-B8NzP1QV.js"),
	"../localized/legalEntityTypeExamples/CA.json": () => import("./CA-DBQywpjY.js"),
	"../localized/legalEntityTypeExamples/CH.json": () => import("./CH-BL-4faPY.js"),
	"../localized/legalEntityTypeExamples/CZ.json": () => import("./CZ-BKdY5FmV.js"),
	"../localized/legalEntityTypeExamples/DE.json": () => import("./DE-DCHis7y4.js"),
	"../localized/legalEntityTypeExamples/DK.json": () => import("./DK-Bt_PCcFy.js"),
	"../localized/legalEntityTypeExamples/ES.json": () => import("./ES-DjYy5Dao.js"),
	"../localized/legalEntityTypeExamples/FI.json": () => import("./FI-DwaCO8nT.js"),
	"../localized/legalEntityTypeExamples/FR.json": () => import("./FR-bMNYTLCL.js"),
	"../localized/legalEntityTypeExamples/GB.json": () => import("./GB-FU65v6fQ.js"),
	"../localized/legalEntityTypeExamples/HK.json": () => import("./HK-kFldIGd7.js"),
	"../localized/legalEntityTypeExamples/HR.json": () => import("./HR-C57WjbJ_.js"),
	"../localized/legalEntityTypeExamples/HU.json": () => import("./HU-CErZJI70.js"),
	"../localized/legalEntityTypeExamples/IE.json": () => import("./IE-dduN0_TO.js"),
	"../localized/legalEntityTypeExamples/IT.json": () => import("./IT-Dc9lHBRw.js"),
	"../localized/legalEntityTypeExamples/LT.json": () => import("./LT-rnUOqZje.js"),
	"../localized/legalEntityTypeExamples/NL.json": () => import("./NL-BA3EKW3x.js"),
	"../localized/legalEntityTypeExamples/NO.json": () => import("./NO-ltxTSAKY.js"),
	"../localized/legalEntityTypeExamples/PL.json": () => import("./PL-Byz7Yqkt.js"),
	"../localized/legalEntityTypeExamples/PT.json": () => import("./PT-CT-kaH57.js"),
	"../localized/legalEntityTypeExamples/RO.json": () => import("./RO-CRDVNzfL.js"),
	"../localized/legalEntityTypeExamples/SE.json": () => import("./SE-2WATmHl2.js"),
	"../localized/legalEntityTypeExamples/SG.json": () => import("./SG-CdsmZcfV.js"),
	"../localized/legalEntityTypeExamples/SI.json": () => import("./SI-DjUddZcZ.js"),
	"../localized/legalEntityTypeExamples/SK.json": () => import("./SK-vJT5Dj16.js"),
	"../localized/legalEntityTypeExamples/US.json": () => import("./US-C0BIY_Iy.js")
});
var logger$1 = createLogger();
var 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;
};
var useBusinessTypeExamples = (country) => {
	const [examples, setExamples] = useState();
	useEffect(() => {
		getBusinessTypeExamplesForCountry(country).then(setExamples).catch(console.error);
	}, [country]);
	return examples;
};
//#endregion
//#region src/datasets/generators/getLegalArrangementTypeExamplesForCountry.ts
var legalArrangementTypeExamples = /* @__PURE__ */ Object.assign({
	"../localized/legalArrangementTypeExamples/AT.json": () => import("./AT-CJDibmrN.js"),
	"../localized/legalArrangementTypeExamples/AU.json": () => import("./AU-DNxKMzJs.js"),
	"../localized/legalArrangementTypeExamples/BE.json": () => import("./BE-BQ4olBdk.js"),
	"../localized/legalArrangementTypeExamples/BR.json": () => import("./BR-Iin-FtVm.js"),
	"../localized/legalArrangementTypeExamples/CA.json": () => import("./CA-BT05x8jm.js"),
	"../localized/legalArrangementTypeExamples/CH.json": () => import("./CH-DFD2JLw3.js"),
	"../localized/legalArrangementTypeExamples/CZ.json": () => import("./CZ-BbtlKoCl.js"),
	"../localized/legalArrangementTypeExamples/DE.json": () => import("./DE-DmEk0oIa.js"),
	"../localized/legalArrangementTypeExamples/DK.json": () => import("./DK-BjD2emK5.js"),
	"../localized/legalArrangementTypeExamples/ES.json": () => import("./ES-BwwPYP5y.js"),
	"../localized/legalArrangementTypeExamples/FI.json": () => import("./FI-5ySk5gAz.js"),
	"../localized/legalArrangementTypeExamples/FR.json": () => import("./FR-RdDRKklk.js"),
	"../localized/legalArrangementTypeExamples/GB.json": () => import("./GB-Bxb4fPxG.js"),
	"../localized/legalArrangementTypeExamples/HK.json": () => import("./HK-DClfjKdQ.js"),
	"../localized/legalArrangementTypeExamples/HR.json": () => import("./HR-CmnsEDnL.js"),
	"../localized/legalArrangementTypeExamples/HU.json": () => import("./HU-DnRWaWkm.js"),
	"../localized/legalArrangementTypeExamples/IE.json": () => import("./IE-auhNSIUT.js"),
	"../localized/legalArrangementTypeExamples/IT.json": () => import("./IT-CNf1MrI-.js"),
	"../localized/legalArrangementTypeExamples/LT.json": () => import("./LT-ZF-q0fXm.js"),
	"../localized/legalArrangementTypeExamples/NL.json": () => import("./NL-Dt1MHEvX.js"),
	"../localized/legalArrangementTypeExamples/NO.json": () => import("./NO-VE7Sc2IM.js"),
	"../localized/legalArrangementTypeExamples/NZ.json": () => import("./NZ-CJ_5Z1en.js"),
	"../localized/legalArrangementTypeExamples/PL.json": () => import("./PL-BK2Asw5F.js"),
	"../localized/legalArrangementTypeExamples/PT.json": () => import("./PT-CiRGWIB7.js"),
	"../localized/legalArrangementTypeExamples/RO.json": () => import("./RO-BcDEEGjk.js"),
	"../localized/legalArrangementTypeExamples/SE.json": () => import("./SE-Dv7OpBmo.js"),
	"../localized/legalArrangementTypeExamples/SG.json": () => import("./SG-A2_cs4kd.js"),
	"../localized/legalArrangementTypeExamples/SI.json": () => import("./SI-BVTXwA8C.js"),
	"../localized/legalArrangementTypeExamples/SK.json": () => import("./SK-Dq7sWtiL.js"),
	"../localized/legalArrangementTypeExamples/US.json": () => import("./US-BKXr0nm-.js")
});
var logger = createLogger();
var 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;
};
var useLegalArrangementTypeExamples = (country) => {
	const [examples, setExamples] = useState();
	useEffect(() => {
		getLegalArrangementTypeExamplesForCountry(country).then(setExamples).catch(console.error);
	}, [country]);
	return examples;
};
//#endregion
//#region src/components/Shared/forms/BusinessTypeSelection/types.ts
var trusteeTypes = ["individual", "company"];
//#endregion
//#region src/components/Shared/forms/BusinessTypeSelection/BusinessTypeSelection.tsx
var trusteeTypeMetadata = {
	individual: {
		id: "individual",
		name: "individualMember"
	},
	company: {
		id: "company",
		name: "companyMember"
	}
};
var getFormSchema = (isLegalArrangement, isTrust) => {
	const schema = ["businessType"];
	if (isLegalArrangement) schema.push("legalArrangement");
	if (isTrust) schema.push("trusteeType");
	return schema;
};
var 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"
	}
};
var BusinessTypeSelectionSteps = {
	BUSINESS_TYPE_SELECTION: 0,
	LEGAL_ARRANGEMENT_SELECTION: 1,
	WE_CANNOT_SET_UP_ACCOUNT: 2,
	CONFIRM_BUSINESS_SETUP_CHANGE: 3
};
var businessTypeSelectionStepTitles = {
	[BusinessTypeSelectionSteps.BUSINESS_TYPE_SELECTION]: "whatBestDescribesYourBusinessSetup",
	[BusinessTypeSelectionSteps.LEGAL_ARRANGEMENT_SELECTION]: "whichLegalArrangementDoesYourBusinessHave",
	[BusinessTypeSelectionSteps.WE_CANNOT_SET_UP_ACCOUNT]: "sorryWeCantSetUpAnAccountForYou",
	[BusinessTypeSelectionSteps.CONFIRM_BUSINESS_SETUP_CHANGE]: "changeYourBusinessSetup"
};
var 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
	]);
	/**
	* Analytics
	*/
	useTaskLandedEvent("BUSINESS_TYPE_SELECTION");
	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");
				await updateLegalEntity({
					id: rootLegalEntity.id,
					type: targetLegalEntityType
				});
				userEvents.addTaskEvent("Success", trackingPayload);
			}
			if (targetLegalEntityType === LegalEntityTypes.INDIVIDUAL) {
				if (rootLegalEntity.entityAssociations?.length) {
					setLoadingStatus("loading");
					await updateLegalEntity({
						id: rootLegalEntity.id,
						entityAssociations: []
					});
					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 businessTypeExamples = useBusinessTypeExamples(country);
	const businessTiles = Object.keys(businessTypeMetadata).map((option) => {
		const description = t(($) => $[businessTypeMetadata[option].description]);
		const examples = businessTypeExamples?.[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 legalArrangementTypeExamples = useLegalArrangementTypeExamples(country);
	return /* @__PURE__ */ jsx(LoaderWrapper, {
		status: loadingStatus,
		formOpacityWhenLoading: .3,
		showSpinner: false,
		children: /* @__PURE__ */ jsxs("div", {
			className: "adyen-kyc-business-type-selection",
			children: [
				/* @__PURE__ */ jsxs("header", {
					className: "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 = legalArrangementTypeExamples?.[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: "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", { 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"])
						})
					]
				})
			]
		})
	});
};
//#endregion
//#region src/components/Shared/pages/BusinessTypeSelectionPage.tsx
var 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
	});
};
//#endregion
export { BusinessTypeSelectionPage };
