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] = "e889bcfa-6f12-47a0-b30f-a13e10840cef", e._sentryDebugIdIdentifier = "sentry-dbid-e889bcfa-6f12-47a0-b30f-a13e10840cef");
} catch (e) {}
import { i as Typography, r as useTranslation } from "./translation-DYpZlvOH.js";
import { t as Button } from "./Button-DOLNhJTG.js";
import { t as StackLayout } from "./StackLayout-D0Kqs-Ti.js";
import { i as TaskStatuses } from "./taskStatus-CvMqhrOK.js";
import { t as TaskListItem } from "./TaskListItem-DmBwUgW-.js";
import { t as Divider } from "./Divider-CrK4vlsJ.js";
import { Fragment, jsx, jsxs } from "preact/jsx-runtime";
var Adaptive_module_default = {
	"adaptive-component-header": "adyen-kyc-adaptive-component-header",
	adaptiveComponentHeader: "adyen-kyc-adaptive-component-header",
	"adaptive-component-main": "adyen-kyc-adaptive-component-main",
	adaptiveComponentMain: "adyen-kyc-adaptive-component-main",
	"adaptive-component-heading": "adyen-kyc-adaptive-component-heading",
	adaptiveComponentHeading: "adyen-kyc-adaptive-component-heading",
	"adaptive-component-description": "adyen-kyc-adaptive-component-description",
	adaptiveComponentDescription: "adyen-kyc-adaptive-component-description",
	"adaptive-component-divider": "adyen-kyc-adaptive-component-divider",
	adaptiveComponentDivider: "adyen-kyc-adaptive-component-divider",
	"adaptive-component-actions": "adyen-kyc-adaptive-component-actions",
	adaptiveComponentActions: "adyen-kyc-adaptive-component-actions"
};
//#endregion
//#region src/adaptiveWorkflow/components/Task/contextMap.ts
var contextMap$1 = {
	additionalBusinessDetails: {
		title: "additionalBusinessDetails",
		icon: "company"
	},
	identityScreening: {
		title: "enhancedIdentityScreening",
		icon: "user"
	},
	fundingSources: {
		title: "fundingSources",
		icon: "coins"
	},
	taxReporting: {
		title: "taxReporting",
		icon: "document"
	},
	serviceAgreement: {
		title: "servicesAgreement",
		icon: "reporting"
	}
};
//#endregion
//#region src/adaptiveWorkflow/components/Task/Task.tsx
var Task = ({ id }) => {
	const { t } = useTranslation("adaptive");
	const { t: commonT } = useTranslation("common");
	const { title, icon } = contextMap$1[id];
	return /* @__PURE__ */ jsx(TaskListItem, {
		titleKey: "1Minute",
		title: title ? t(($) => $[title]) : commonT(($) => $["additionalInformation"]),
		icon,
		status: TaskStatuses.DETAILS_REQUIRED,
		onNavigateToTask: () => window.alert("get task config (for steps, sections, and components)")
	});
};
//#endregion
//#region src/adaptiveWorkflow/components/TaskGroup/contextMap.ts
var contextMap = {
	businessInformation: {
		heading: "businessInformation",
		description: "placeholder"
	},
	financialProducts: {
		heading: "setUpFinancialProducts",
		description: "placeholder"
	},
	contracting: {
		heading: "reviewAndSignLegalDisclosures",
		description: "placeholder"
	}
};
var TaskGroup_module_default = {
	"task-group-header": "adyen-kyc-task-group-header",
	taskGroupHeader: "adyen-kyc-task-group-header",
	"task-group-description": "adyen-kyc-task-group-description",
	taskGroupDescription: "adyen-kyc-task-group-description"
};
//#endregion
//#region src/adaptiveWorkflow/components/TaskGroup/TaskGroup.tsx
var TaskGroup = ({ id, tasks }) => {
	const { t } = useTranslation("adaptive");
	const { heading, description } = contextMap[id];
	return /* @__PURE__ */ jsxs(StackLayout, {
		gap: "xSmall",
		children: [/* @__PURE__ */ jsxs("div", {
			className: TaskGroup_module_default.taskGroupHeader,
			children: [/* @__PURE__ */ jsx(Typography, {
				variant: "title",
				el: "h2",
				children: heading ? t(($) => $[heading]) : t(($) => $["additionalDetails"])
			}), description && /* @__PURE__ */ jsx(Typography, {
				variant: "body",
				color: "tertiary",
				className: TaskGroup_module_default.taskGroupDescription,
				children: t(($) => $[description])
			})]
		}), tasks.map((task) => /* @__PURE__ */ jsx(Task, { ...task }, task.id))]
	});
};
//#endregion
//#region src/adaptiveWorkflow/components/TaskGroupParser/TaskGroupParser.tsx
var TaskGroupParser = ({ taskGroups }) => {
	return /* @__PURE__ */ jsx(StackLayout, { children: taskGroups.map((taskGroup) => /* @__PURE__ */ jsx(TaskGroup, { ...taskGroup }, taskGroup.id)) });
};
//#endregion
//#region src/adaptiveWorkflow/components/Adaptive.tsx
var Adaptive = ({ taskGroups }) => {
	const { t } = useTranslation("adaptive");
	const { t: commonT } = useTranslation("common");
	return /* @__PURE__ */ jsxs(Fragment, { children: [
		/* @__PURE__ */ jsx("div", { className: Adaptive_module_default.adaptiveComponentHeader }),
		/* @__PURE__ */ jsxs("div", {
			className: Adaptive_module_default.adaptiveComponentMain,
			children: [
				/* @__PURE__ */ jsxs("div", {
					className: Adaptive_module_default.adaptiveComponentHeading,
					children: [/* @__PURE__ */ jsx(Typography, {
						variant: "title-l",
						el: "h1",
						children: t(($) => $["welcomeBack"], { name: "John Doe" })
					}), /* @__PURE__ */ jsx(Typography, {
						className: Adaptive_module_default.adaptiveComponentDescription,
						children: t(($) => $["weveReusedYourExistingMerchant"])
					})]
				}),
				/* @__PURE__ */ jsx("div", {
					className: Adaptive_module_default.adaptiveComponentDivider,
					children: /* @__PURE__ */ jsx(Divider, {})
				}),
				taskGroups && /* @__PURE__ */ jsx(TaskGroupParser, { taskGroups })
			]
		}),
		/* @__PURE__ */ jsx("div", {
			className: Adaptive_module_default.adaptiveComponentActions,
			children: /* @__PURE__ */ jsxs(StackLayout, {
				gap: "small",
				children: [/* @__PURE__ */ jsx(Button, {
					onClick: () => {},
					fullWidth: true,
					children: commonT(($) => $["submit"])
				}), /* @__PURE__ */ jsx(Button, {
					variant: "tertiary",
					onClick: () => {},
					fullWidth: true,
					children: commonT(($) => $["back"])
				})]
			})
		})
	] });
};
//#endregion
export { Adaptive };
