import{a as e}from"./chunk-BNv3lrIs.js";import{n as t,t as n}from"./jsx-runtime-pmtNMKr4.js";import{a as r,n as i,r as a,t as o}from"./ThemeProvider-B0jyGdy2.js";var s=e(r()),c=e(t()),l=n();function u({as:e,bsPrefix:t,className:n,...r}){t=a(t,`col`);let c=o(),l=i(),u=[],d=[];return c.forEach(e=>{let n=r[e];delete r[e];let i,a,o;typeof n==`object`&&n?{span:i,offset:a,order:o}=n:i=n;let s=e===l?``:`-${e}`;i&&u.push(i===!0?`${t}${s}`:`${t}${s}-${i}`),o!=null&&d.push(`order${s}-${o}`),a!=null&&d.push(`offset${s}-${a}`)}),[{...r,className:(0,s.default)(n,...u,...d)},{as:e,bsPrefix:t,spans:u}]}var d=c.forwardRef((e,t)=>{let[{className:n,...r},{as:i=`div`,bsPrefix:a,spans:o}]=u(e);return(0,l.jsx)(i,{...r,ref:t,className:(0,s.default)(n,!o.length&&a)})});d.displayName=`Col`;export{d as t};