import { cx as e } from "../../../theme/tools.js";
import { container as t } from "./backofficeTableToolbar.css.js";
import { Fragment as n, jsx as r, jsxs as i } from "react/jsx-runtime";
//#region src/backoffice/molecules/backoffice_table_toolbar/BackofficeTableToolbar.tsx
var a = ({ allFiltersSlot: a, searchSlot: o, promotedFiltersSlot: s, filtersSlot: c, sortSlot: l, refreshSlot: u, primaryActionSlot: d, ctaSlot: f, chipsSlot: p, className: m }) => {
	let h = c;
	h == null && (s != null || a != null) && (h = /* @__PURE__ */ i(n, { children: [s, a] }));
	let g = d ?? f, _ = o != null || h != null || l != null || u != null || g != null, v = p != null;
	return !_ && !v ? null : /* @__PURE__ */ i("div", {
		className: e(t, m),
		children: [_ && /* @__PURE__ */ i("div", {
			className: "p4hwvs2 p4hwvs1 txvbqb9iy txvbqbaog txvbqbcg",
			children: [/* @__PURE__ */ i("div", {
				className: "p4hwvs4 p4hwvs3 txvbqb9iy txvbqbcg txvbqbao7 txvbqbk5y",
				children: [o != null && /* @__PURE__ */ r("div", {
					className: "p4hwvs6 p4hwvs5 txvbqbk5y",
					children: o
				}), h != null && /* @__PURE__ */ r("div", {
					className: "p4hwvs8 p4hwvs7 txvbqb9ip txvbqbcp txvbqbao7 txvbqbajy txvbqbk5y txvbqbaj7",
					children: h
				})]
			}), (l != null || u != null || g != null) && /* @__PURE__ */ i("div", {
				className: "p4hwvsa p4hwvs9 txvbqb9iy txvbqbcg txvbqbao7 txvbqbdp7",
				children: [l != null && /* @__PURE__ */ r("div", {
					className: "p4hwvsc p4hwvsb txvbqbkhp",
					children: l
				}), (u != null || g != null) && /* @__PURE__ */ i("div", {
					className: "p4hwvse p4hwvsd txvbqb9ip txvbqbcp txvbqbdp7 txvbqbao7 txvbqbajy",
					children: [u, g]
				})]
			})]
		}), v && /* @__PURE__ */ r("div", {
			className: "p4hwvsf txvbqb9ip txvbqbcp txvbqbajy txvbqbao7 txvbqbp6g txvbqb4sg txvbqb1qg txvbqb2cg",
			children: p
		})]
	});
};
//#endregion
export { a as BackofficeTableToolbar, a as default };

//# sourceMappingURL=BackofficeTableToolbar.js.map