import DocumentMetadataPills_default from "./DocumentMetadataPills.js";
import DocumentRenderer_default from "./DocumentRenderer.js";
import { c } from "react/compiler-runtime";
import React from "react";
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
import { omit } from "lodash";
var DocumentItem_default = (s) => {
	let l = c(13), { document: u, workflow: d, pipeline: f, isActive: p, isLastItem: m, settings: h } = s, g = u.meta, _;
	l[0] !== u || l[1] !== p || l[2] !== m || l[3] !== f || l[4] !== d ? (_ = /* @__PURE__ */ jsx(DocumentRenderer_default, {
		document: u,
		workflow: d,
		pipeline: f,
		isActive: p,
		isLastItem: m
	}), l[0] = u, l[1] = p, l[2] = m, l[3] = f, l[4] = d, l[5] = _) : _ = l[5];
	let v;
	l[6] !== u || l[7] !== g || l[8] !== h.enableDebugMode ? (v = h.enableDebugMode ? /* @__PURE__ */ jsx(DocumentMetadataPills_default, { metaData: {
		...g?.data ?? {},
		document: {
			...u,
			meta: omit(g ?? {}, ["data"])
		}
	} }) : /* @__PURE__ */ jsx(Fragment$1, {}), l[6] = u, l[7] = g, l[8] = h.enableDebugMode, l[9] = v) : v = l[9];
	let y;
	return l[10] !== _ || l[11] !== v ? (y = /* @__PURE__ */ jsxs(Fragment$1, { children: [_, v] }), l[10] = _, l[11] = v, l[12] = y) : y = l[12], y;
};
export { DocumentItem_default as default };
