Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./stack-constants.cjs`);function t(t){return t===e.DT_STACK_DIRECTION.default}function n(e){return typeof e==`string`?e:typeof e==`object`&&e?e.default:null}function r(n){if(typeof n==`string`)return t(n)?null:e.DT_STACK_DIRECTION[n];if(typeof n==`object`){let{default:r}=n;return t(r)?null:e.DT_STACK_DIRECTION[r]}else return null}function i(t,n,r,i=`d-stack`){return typeof t!=`object`||!t?[]:e.DT_STACK_RESPONSIVE_BREAKPOINTS.map(e=>{let a=t[e];if(!a)return null;let o=Array.isArray(r)?r.includes(a):a in r,s=n===``?`${i}--${e}-${a}`:`${i}--${e}-${n}-${a}`;return o?s:null})}function a(t){return r(t)?`d-stack--${e.DT_STACK_DIRECTION[r(t)]}`:null}function o(t){return i(t,``,e.DT_STACK_DIRECTION)}function s(t){return i(t,`gap`,e.DT_STACK_GAP)}function c(t){return i(t,`align`,e.DT_STACK_ALIGN)}function l(t){return typeof t!=`object`||!t?[]:e.DT_STACK_RESPONSIVE_BREAKPOINTS.map(n=>{let r=t[n];if(!r)return null;let i=e.DT_STACK_JUSTIFY.includes(r),a=p(r);return i?`d-stack--${n}-justify-${a}`:null})}function u(e,t,n,r){return[...o(e),...s(t),...c(n),...l(r)]}function d(t){let r=n(t);return e.DT_STACK_GAP.includes(r)?`d-stack--gap-${r}`:null}function f(t){let r=n(t);return e.DT_STACK_ALIGN.includes(r)?`d-stack--align-${r}`:null}function p(e){return{"space-around":`around`,"space-between":`between`,"space-evenly":`evenly`}[e]||e}function m(t){let r=n(t),i=p(r);return e.DT_STACK_JUSTIFY.includes(r)?`d-stack--justify-${i}`:null}exports.getDefaultAlignClass=f,exports.getDefaultDirectionClass=a,exports.getDefaultGapClass=d,exports.getDefaultJustifyClass=m,exports.getResponsiveClasses=u;
//# sourceMappingURL=utils.cjs.map