import { DT_STACK_DIRECTION as r, DT_STACK_GAP as f, DT_STACK_ALIGN as g, DT_STACK_JUSTIFY as d, DT_STACK_RESPONSIVE_BREAKPOINTS as p } from "./stack-constants.js";
function o(n) {
  return n === r.default;
}
function i(n) {
  return typeof n == "string" ? n : typeof n == "object" && n !== null ? n.default : null;
}
function c(n) {
  if (typeof n == "string")
    return o(n) ? null : r[n];
  if (typeof n == "object") {
    const { default: t } = n;
    return o(t) ? null : r[t];
  } else
    return null;
}
function a(n, t, e, s = "d-stack") {
  return typeof n != "object" || n === null ? [] : p.map((l) => {
    const u = n[l];
    if (!u) return null;
    const y = Array.isArray(e) ? e.includes(u) : u in e, D = t === "" ? `${s}--${l}-${u}` : `${s}--${l}-${t}-${u}`;
    return y ? D : null;
  });
}
function m(n) {
  return c(n) ? `d-stack--${r[c(n)]}` : null;
}
function _(n) {
  return a(n, "", r);
}
function A(n) {
  return a(n, "gap", f);
}
function T(n) {
  return a(n, "align", g);
}
function $(n) {
  return typeof n != "object" || n === null ? [] : p.map((t) => {
    const e = n[t];
    if (!e) return null;
    const s = d.includes(e), l = C(e);
    return s ? `d-stack--${t}-justify-${l}` : null;
  });
}
function R(n, t, e, s) {
  return [
    ..._(n),
    ...A(t),
    ...T(e),
    ...$(s)
  ];
}
function v(n) {
  const t = i(n);
  return f.includes(t) ? `d-stack--gap-${t}` : null;
}
function I(n) {
  const t = i(n);
  return g.includes(t) ? `d-stack--align-${t}` : null;
}
function C(n) {
  return {
    "space-around": "around",
    "space-between": "between",
    "space-evenly": "evenly"
  }[n] || n;
}
function J(n) {
  const t = i(n), e = C(t);
  return d.includes(t) ? `d-stack--justify-${e}` : null;
}
export {
  I as getDefaultAlignClass,
  m as getDefaultDirectionClass,
  v as getDefaultGapClass,
  J as getDefaultJustifyClass,
  R as getResponsiveClasses
};
//# sourceMappingURL=utils.js.map
