import { DT_STACK_DIRECTION as n, DT_STACK_GAP as r, DT_STACK_RESPONSIVE_BREAKPOINTS as f } from "./stack-constants.js";
function l(e) {
  return e === n.default;
}
function s(e) {
  if (u(e) === "string")
    return l(e) ? null : n[e];
  if (u(e) === "object") {
    const { default: t } = e;
    return l(t) ? null : n[t];
  } else
    return null;
}
function o(e) {
  return typeof e == "string" ? e : typeof e == "object" ? e.default : null;
}
function u(e) {
  return typeof e;
}
function D(e) {
  return s(e) ? `d-stack--${n[s(e)]}` : null;
}
function c(e) {
  return u(e) === "object" ? [
    ...f.map((t) => e[t] ? `d-stack--${t}-${e[t]}` : null)
  ] : [];
}
function i(e) {
  return typeof e == "object" ? [
    ...f.map((t) => r.includes(e[t]) ? `d-stack--${t}-gap-${e[t]}` : null)
  ] : [];
}
function p(e, t) {
  return [
    ...c(e),
    ...i(t)
  ];
}
function _(e) {
  const t = o(e);
  return r.includes(t) ? `d-stack--gap-${t}` : null;
}
export {
  u as directionPropType,
  D as getDefaultDirectionClass,
  _ as getDefaultGapClass,
  p as getResponsiveClasses
};
//# sourceMappingURL=utils.js.map
