import{r as c,Q as P,R as l,P as S,U as b,S as h,T as z}from"./index-7c7a558c.js";function G(e){return c.Children.toArray(e).filter(Boolean)}const N={left:"flex-start",center:"center",right:"flex-end",apart:"space-between"};var C=P((e,{spacing:r,position:a,noWrap:t,grow:n,align:i,count:o})=>({root:{boxSizing:"border-box",display:"flex",flexDirection:"row",alignItems:i||"center",flexWrap:t?"nowrap":"wrap",justifyContent:N[a],gap:l({size:r,sizes:e.spacing}),"& > *":{boxSizing:"border-box",maxWidth:n?`calc(${100/o}% - (${S(l({size:r,sizes:e.spacing}))} - ${l({size:r,sizes:e.spacing})} / ${o}))`:void 0,flexGrow:n?1:0}}}));const I=C;var R=Object.defineProperty,s=Object.getOwnPropertySymbols,d=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable,f=(e,r,a)=>r in e?R(e,r,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[r]=a,$=(e,r)=>{for(var a in r||(r={}))d.call(r,a)&&f(e,a,r[a]);if(s)for(var a of s(r))g.call(r,a)&&f(e,a,r[a]);return e},j=(e,r)=>{var a={};for(var t in e)d.call(e,t)&&r.indexOf(t)<0&&(a[t]=e[t]);if(e!=null&&s)for(var t of s(e))r.indexOf(t)<0&&g.call(e,t)&&(a[t]=e[t]);return a};const E={position:"left",spacing:"md"},W=c.forwardRef((e,r)=>{const a=b("Group",E,e),{className:t,position:n,align:i,children:o,noWrap:m,grow:u,spacing:x,unstyled:y,variant:_}=a,v=j(a,["className","position","align","children","noWrap","grow","spacing","unstyled","variant"]),p=G(o),{classes:O,cx:w}=I({align:i,grow:u,noWrap:m,spacing:x,position:n,count:p.length},{unstyled:y,name:"Group",variant:_});return h.createElement(z,$({className:w(O.root,t),ref:r},v),p)});W.displayName="@mantine/core/Group";export{W as G};
