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] = "2d56c58b-b940-4ff4-b688-af5edf8bb2e2", e._sentryDebugIdIdentifier = "sentry-dbid-2d56c58b-b940-4ff4-b688-af5edf8bb2e2");
} catch (e) {}
import { t as useId } from "./useId-eJSYfA6i.js";
import cx from "classnames";
import { jsx, jsxs } from "preact/jsx-runtime";
var StructuredList_module_default = {
	"structured-list": "adyen-kyc-structured-list",
	structuredList: "adyen-kyc-structured-list",
	"structured-list-section-field": "adyen-kyc-structured-list-section-field",
	structuredListSectionField: "adyen-kyc-structured-list-section-field",
	"structured-list-section-label": "adyen-kyc-structured-list-section-label",
	structuredListSectionLabel: "adyen-kyc-structured-list-section-label",
	"structured-list-section-data": "adyen-kyc-structured-list-section-data",
	structuredListSectionData: "adyen-kyc-structured-list-section-data",
	"structured-list-section-detail": "adyen-kyc-structured-list-section-detail",
	structuredListSectionDetail: "adyen-kyc-structured-list-section-detail"
};
//#endregion
//#region src/components/ui/atoms/StructuredList/StructuredList.tsx
var StructuredList = ({ className, detailsGroupClassName, items }) => {
	const structuredListClassNames = cx(StructuredList_module_default.structuredList, className);
	const detailsGroupClassNames = cx(StructuredList_module_default.structuredListSectionData, detailsGroupClassName);
	return /* @__PURE__ */ jsx("dl", {
		className: structuredListClassNames,
		children: items.map((item) => /* @__PURE__ */ jsx(StructuredListItemEl, {
			item,
			detailsGroupClassNames
		}, `${item.term}${item.details}`))
	});
};
var StructuredListItemEl = ({ item: { term, details }, detailsGroupClassNames }) => {
	const uniqueId = useId("structured-list-item");
	return /* @__PURE__ */ jsxs("div", {
		className: StructuredList_module_default.structuredListSectionField,
		children: [/* @__PURE__ */ jsx("dt", {
			id: uniqueId,
			className: StructuredList_module_default.structuredListSectionLabel,
			children: term
		}), Array.isArray(details) ? /* @__PURE__ */ jsx("div", {
			className: detailsGroupClassNames,
			children: details.map((detail) => /* @__PURE__ */ jsx("dd", {
				"aria-labelledby": uniqueId,
				className: StructuredList_module_default.structuredListSectionDetail,
				children: detail
			}))
		}) : /* @__PURE__ */ jsx("dd", {
			"aria-labelledby": uniqueId,
			className: detailsGroupClassNames,
			children: details
		})]
	});
};
//#endregion
export { StructuredList as t };
