import { BackofficeKeyValueList as e } from "../backoffice_key_value_list/BackofficeKeyValueList.js";
import { BackofficeDetailSection as t } from "../backoffice_detail_section/BackofficeDetailSection.js";
import { BackofficeReferenceValue as n } from "../backoffice_reference_value/BackofficeReferenceValue.js";
import { Fragment as r, jsx as i, jsxs as a } from "react/jsx-runtime";
//#region src/backoffice/molecules/backoffice_audit_metadata_panel/BackofficeAuditMetadataPanel.tsx
var o = ({ className: o, emptyLabel: s, items: c, title: l }) => c.length === 0 ? null : /* @__PURE__ */ i(t, {
	title: l,
	className: o,
	children: /* @__PURE__ */ i(e, {
		items: c.map((e) => {
			let t = null;
			e.actor != null && (t = /* @__PURE__ */ i(n, {
				kind: e.actor.kind,
				value: e.actor.label,
				emptyLabel: s
			}));
			let o = null;
			e.at != null && t != null && (o = " ");
			let c = null;
			return (e.at != null || t != null) && (c = /* @__PURE__ */ a(r, { children: [
				e.at,
				o,
				t
			] })), {
				id: e.id,
				label: e.label,
				value: c
			};
		}),
		emptyLabel: s,
		variant: "plain",
		layout: "grid"
	})
});
//#endregion
export { o as BackofficeAuditMetadataPanel, o as default };

//# sourceMappingURL=BackofficeAuditMetadataPanel.js.map