import { cx as e } from "../../../theme/tools.js";
import { EntityHeader as t } from "../../organisms/entity_header/EntityHeader.js";
import { body as n, container as r, headerCard as i, headerCardDensity as a, rowSingle as o, rowSplit as s, rowSplitBase as c, sidePanelBase as l, sidePanelCard as u, sidePanelPlain as d, sidePanelTopVar as f } from "./detailPageTemplate.css.js";
import { jsx as p, jsxs as m } from "react/jsx-runtime";
//#region src/backoffice/templates/detail_page_template/DetailPageTemplate.tsx
var h = (h) => {
	let { children: g, aboveContent: _, className: v, tabsNode: y, sidePanel: b, sidePanelVariant: x = "card", sidePanelStickyTop: S, layoutVariant: C, headerDensity: w = "default" } = h, T = b != null, E = "single";
	T && (E = "split");
	let D = C ?? E;
	T || (D = "single");
	let O = D === "split", k = o;
	O && (k = e(s, c));
	let A;
	A = "headerNode" in h ? h.headerNode : /* @__PURE__ */ p(t, { ...h.header });
	let j = S?.trim(), M;
	j != null && j !== "" && (M = { [f]: j });
	let N = u;
	x === "plain" && (N = d);
	let P = e(l, N);
	return /* @__PURE__ */ m("div", {
		className: e(r, v),
		style: M,
		children: [
			/* @__PURE__ */ p("div", {
				className: k,
				children: /* @__PURE__ */ p("div", {
					className: e(i, a[w]),
					children: A
				})
			}),
			y != null && /* @__PURE__ */ p("div", {
				className: k,
				children: /* @__PURE__ */ p("div", {
					className: "eno74pd eno74pc txvbqbpty txvbqbv49 txvbqbly7 txvbqbuv7",
					children: y
				})
			}),
			/* @__PURE__ */ m("div", {
				className: k,
				children: [/* @__PURE__ */ m("div", {
					className: n,
					children: [_, g]
				}), T && /* @__PURE__ */ p("aside", {
					className: P,
					children: b
				})]
			})
		]
	});
};
//#endregion
export { h as DetailPageTemplate, h as default };

//# sourceMappingURL=DetailPageTemplate.js.map