import { cx as e } from "../../../theme/tools.js";
import { BackofficeDataTable as t } from "../../organisms/backoffice_data_table/BackofficeDataTable.js";
import { EntityHeader as n } from "../../organisms/entity_header/EntityHeader.js";
import { container as r, containerContained as i, containerPresentation as a, containerRows as o, headerCard as s, headerPresentation as c, tableCard as l, tableCardContained as u, tableFooter as d, tablePresentation as f, tableScroll as p, tableScrollContained as m, toolbarPresentation as h } from "./listPageTemplate.css.js";
import { jsx as g, jsxs as _ } from "react/jsx-runtime";
//#region src/backoffice/templates/list_page_template/ListPageTemplate.tsx
var v = (v) => {
	let { presentation: y = "framed", className: b, toolbarNode: x, statusNode: S, tableFooterNode: C, bodyScrollMode: w = "page" } = v, T = w === "contained", E = x != null, D = S != null, O = o({
		scrollMode: w,
		toolbar: E,
		status: D
	}), k = null, A = null, j = null;
	T && (k = i, A = u, j = m);
	let M = e(r, O, k, a[y], b), N;
	N = "headerNode" in v ? v.headerNode : /* @__PURE__ */ g(n, { ...v.header });
	let P;
	P = "tableNode" in v ? v.tableNode : /* @__PURE__ */ g(t, {
		...v.table,
		bodyScrollMode: w
	});
	let F = null;
	return C != null && (F = /* @__PURE__ */ g("div", {
		className: d,
		"data-list-template-slot": "table-footer",
		children: C
	})), /* @__PURE__ */ _("div", {
		className: M,
		"data-scroll-mode": w,
		children: [
			/* @__PURE__ */ g("div", {
				className: e(s, c[y]),
				"data-list-template-slot": "header",
				children: N
			}),
			E && /* @__PURE__ */ g("div", {
				className: e("dlvvnqm txvbqbv7x", h[y]),
				"data-list-template-slot": "toolbar",
				children: x
			}),
			D && /* @__PURE__ */ g("div", {
				"data-list-template-slot": "status",
				children: S
			}),
			/* @__PURE__ */ _("div", {
				className: e(l, A, f[y]),
				"data-list-template-slot": "table",
				children: [/* @__PURE__ */ g("div", {
					className: e(p, j),
					"data-list-template-slot": "table-scroll",
					children: P
				}), F]
			})
		]
	});
};
//#endregion
export { v as ListPageTemplate, v as default };

//# sourceMappingURL=ListPageTemplate.js.map