import { jsx as c } from "@emotion/react/jsx-runtime";
import { useBase as w } from "@m4l/core";
import { getSize as i } from "../../utils/getSize/index.js";
import { BodyNodeRootStyled as y } from "../../slots/PrintingSystemSlots.js";
const j = (s) => {
  const {
    children: r,
    direction: e = "row",
    gap: a = "unset",
    style: p,
    width: o = "auto",
    height: n = "auto",
    paddingTop: u = "unset",
    paddingRight: m = "unset",
    paddingBottom: h = "unset",
    paddingLeft: f = "unset",
    alignX: d = "unset",
    alignY: g = "unset",
    grow: l = !1
  } = s, { unitSize: t } = w();
  return /* @__PURE__ */ c(
    y,
    {
      style: {
        flexDirection: e,
        gap: i(a, t),
        width: i(o, t),
        height: i(n, t),
        minWidth: i(o, t),
        minHeight: i(n, t),
        paddingTop: i(u, t),
        paddingRight: i(m, t),
        paddingBottom: i(h, t),
        paddingLeft: i(f, t),
        justifyContent: e === "row" ? d : g,
        alignItems: e === "row" ? g : d,
        flex: l ? 1 : "unset",
        ...p
      },
      children: r
    }
  );
};
export {
  j as BodyNode
};
