import { cx as e } from "../../../theme/tools.js";
import { Toolbar as t, ToolbarGroup as n } from "../../../components/layout/toolbar/Toolbar.js";
import { container as r, density as i, responsiveMode as a } from "./backofficeToolbar.css.js";
import { jsx as o, jsxs as s } from "react/jsx-runtime";
//#region src/backoffice/molecules/backoffice_toolbar/BackofficeToolbar.tsx
var c = ({ ariaLabel: c, chips: l, className: u, density: d = "compact", filterDrawerTrigger: f, leading: p, primaryActions: m, primaryFilters: h, responsiveMode: g = "auto", search: _, secondaryFilters: v, sort: y, trailing: b, utilityActions: x }) => {
	let S = h != null || v != null || f != null, C = p != null || _ != null || S, w = y != null || x != null || m != null || b != null, T = C || w, E = l != null;
	return !T && !E ? null : /* @__PURE__ */ s(t, {
		ariaLabel: c,
		className: e(r, i[d], a[g], u),
		density: d,
		justify: "start",
		wrap: "nowrap",
		children: [T && /* @__PURE__ */ s("div", {
			className: "chwove6 chwove5 txvbqbfq0 txvbqbey txvbqbhdl txvbqb19uf",
			children: [C && /* @__PURE__ */ s(n, {
				className: "chwove7 txvbqbey txvbqbee txvbqb19ul",
				grow: !0,
				wrap: !0,
				children: [
					p,
					_ != null && /* @__PURE__ */ o("div", {
						className: "chwove9 chwove8 txvbqbv7x",
						children: _
					}),
					S && /* @__PURE__ */ s("div", {
						className: "chwovea txvbqbfpn txvbqbey txvbqbee txvbqbh7g txvbqbhdl txvbqbv7x txvbqb19ul",
						children: [
							h,
							v,
							f
						]
					})
				]
			}), w && /* @__PURE__ */ s(n, {
				className: "chwoveb txvbqbey txvbqbee txvbqblsh txvbqblt4 txvbqb19ul",
				justify: "end",
				wrap: !0,
				children: [y != null && /* @__PURE__ */ o("div", {
					className: "chwoved chwovec txvbqbfpn txvbqbey txvbqbv7x",
					children: y
				}), (x != null || m != null || b != null) && /* @__PURE__ */ s("div", {
					className: "chwovee txvbqbfpn txvbqbey txvbqbee txvbqblsh txvbqblt4 txvbqbh7g txvbqbhdl txvbqb19ul",
					children: [
						x,
						m,
						b
					]
				})]
			})]
		}), E && /* @__PURE__ */ o("div", {
			className: "chwovef txvbqbfpn txvbqbey txvbqbh7g txvbqbhdl txvbqblsu txvbqb19uf txvbqb12hq txvbqb8qb txvbqb2sj txvbqb3tq",
			children: l
		})]
	});
};
//#endregion
export { c as BackofficeToolbar, c as default };

//# sourceMappingURL=BackofficeToolbar.js.map