const u = ["lg", "md", "sm", "xs", "xxs"];
function d({
  id: m,
  layouts: s,
  initialHeight: a,
  y: c,
  x: o,
  w: r,
  minH: x,
  minW: y
}) {
  const t = {
    i: m,
    x: o ?? 0,
    y: c ?? 1 / 0,
    w: r || 20,
    h: a || 35,
    minW: y || 6,
    minH: x || 10
  }, n = s ? { ...s } : {};
  return u.forEach((i) => {
    n[i] || (n[i] = []);
    const f = n[i].reduce(
      (h, e) => Math.max(h, e.y + e.h),
      0
    );
    t.y = t.y === 1 / 0 ? f : t.y, n[i].push({ ...t });
  }), n;
}
export {
  d as createFrameLayouts
};
