import { isFunction as u, isArray as p } from "lodash-unified";
import { Comment as c, Fragment as a } from "vue";
import "../../utils/index.mjs";
import { isDef as g } from "../../utils/is.mjs";
const s = (r) => r <= 1 ? 1 : r, n = (r, t = 1) => {
  const o = Math.floor(24 / r), e = o * t;
  return e > 24 ? o : e;
}, d = (r, t = 1) => ({
  xs: n(s(r - 3), t),
  sm: n(s(r - 2), t),
  md: n(s(r - 1), t),
  lg: n(s(r - 1), t),
  xl: n(r, t),
  xxl: n(r, t)
});
function f(r) {
  return u(r.type) ? r.type() : r;
}
function i(r) {
  const t = [], o = r.filter(
    (e) => e && f(e) && e.type !== c
  );
  for (const e of o)
    if (e.type === a || e.type === "template") {
      const l = i(e.children);
      t.push(...l);
    } else if (p(e)) {
      const l = i(e);
      t.push(...l);
    } else
      t.push(f(e));
  return t;
}
const x = (r) => {
  const t = [];
  return t.push(...i(r)), t;
};
function y(r) {
  return g(r) ? (p(r) ? r : [r]).join("") : Date.now();
}
export {
  d as buildColSpan,
  x as genRealChildren,
  y as getStringName
};
