import e from "../DocumentRenderer.js";
import t from "./DocumentMetadataPills.js";
import "react";
import { Fragment as n, jsx as r, jsxs as i } from "react/jsx-runtime";
import { omit as a } from "lodash";
//#region src/features/documents/components/DocumentItem.tsx
var o = ({ document: o, workflow: s, parentWorkflow: c, isActive: l, isLastItem: u, settings: d }) => {
	let f = o.meta;
	return /* @__PURE__ */ i(n, { children: [/* @__PURE__ */ r(e, {
		document: o,
		workflow: s,
		parentWorkflow: c,
		isActive: l,
		isLastItem: u
	}), d.enableDebugMode ? /* @__PURE__ */ r(t, { metaData: {
		...f?.data ?? {},
		document: {
			...o,
			meta: a(f ?? {}, ["data"])
		}
	} }) : /* @__PURE__ */ r(n, {})] });
};
//#endregion
export { o as default };
