import n from "./index-extends.js";
import { clsx as v } from "./index-clsx3.js";
import P from "./index-extractEventHandlers.js";
import p from "./index-omitEventHandlers.js";
function j(f) {
  const {
    getSlotProps: a,
    additionalProps: s,
    externalSlotProps: e,
    externalForwardedProps: l,
    className: i
  } = f;
  if (!a) {
    const m = v(s == null ? void 0 : s.className, i, l == null ? void 0 : l.className, e == null ? void 0 : e.className), u = n({}, s == null ? void 0 : s.style, l == null ? void 0 : l.style, e == null ? void 0 : e.style), r = n({}, s, l, e);
    return m.length > 0 && (r.className = m), Object.keys(u).length > 0 && (r.style = u), {
      props: r,
      internalRef: void 0
    };
  }
  const y = P(n({}, l, e)), N = p(e), g = p(l), t = a(y), d = v(t == null ? void 0 : t.className, s == null ? void 0 : s.className, i, l == null ? void 0 : l.className, e == null ? void 0 : e.className), c = n({}, t == null ? void 0 : t.style, s == null ? void 0 : s.style, l == null ? void 0 : l.style, e == null ? void 0 : e.style), o = n({}, t, s, g, N);
  return d.length > 0 && (o.className = d), Object.keys(c).length > 0 && (o.style = c), {
    props: o,
    internalRef: t.ref
  };
}
export {
  j as default
};
