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, containerNoToolbar as i, containerPresentation as a, containerWithToolbar as o, headerCard as s, headerPresentation as c, tableCard as l, tableFooter as u, tablePresentation as d, tableScroll as f, toolbarPresentation as p } from "./listPageTemplate.css.js";
import { jsx as m, jsxs as h } from "react/jsx-runtime";
//#region src/backoffice/templates/list_page_template/ListPageTemplate.tsx
var g = (g) => {
	let { presentation: _ = "framed", className: v, toolbarNode: y, statusNode: b, tableFooterNode: x } = g, S = i;
	y != null && (S = o);
	let C = e(r, S, a[_], v), w;
	w = "headerNode" in g ? g.headerNode : /* @__PURE__ */ m(n, { ...g.header });
	let T;
	T = "tableNode" in g ? g.tableNode : /* @__PURE__ */ m(t, { ...g.table });
	let E = null;
	return x != null && (E = /* @__PURE__ */ m("div", {
		className: u,
		children: x
	})), /* @__PURE__ */ h("div", {
		className: C,
		children: [
			/* @__PURE__ */ m("div", {
				className: e(s, c[_]),
				children: w
			}),
			y != null && /* @__PURE__ */ m("div", {
				className: e("dlvvnq8", p[_]),
				children: y
			}),
			b != null && /* @__PURE__ */ m("div", { children: b }),
			/* @__PURE__ */ h("div", {
				className: e(l, d[_]),
				children: [/* @__PURE__ */ m("div", {
					className: f,
					children: T
				}), E]
			})
		]
	});
};
//#endregion
export { g as ListPageTemplate, g as default };

//# sourceMappingURL=ListPageTemplate.js.map