import{k as l,m as d,n as $}from"./main-9ymbdppi.js";const c=t=>{const{componentCls:e}=t;return{[e]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},p=t=>{const{componentCls:e}=t;return{[e]:{position:"relative",maxWidth:"100%",minHeight:1}}},u=(t,e)=>{const{prefixCls:i,componentCls:o,gridColumns:s}=t,r={};for(let n=s;n>=0;n--)n===0?(r[`${o}${e}-${n}`]={display:"none"},r[`${o}-push-${n}`]={insetInlineStart:"auto"},r[`${o}-pull-${n}`]={insetInlineEnd:"auto"},r[`${o}${e}-push-${n}`]={insetInlineStart:"auto"},r[`${o}${e}-pull-${n}`]={insetInlineEnd:"auto"},r[`${o}${e}-offset-${n}`]={marginInlineStart:0},r[`${o}${e}-order-${n}`]={order:0}):(r[`${o}${e}-${n}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${n/s*100}%`,maxWidth:`${n/s*100}%`}],r[`${o}${e}-push-${n}`]={insetInlineStart:`${n/s*100}%`},r[`${o}${e}-pull-${n}`]={insetInlineEnd:`${n/s*100}%`},r[`${o}${e}-offset-${n}`]={marginInlineStart:`${n/s*100}%`},r[`${o}${e}-order-${n}`]={order:n});return r[`${o}${e}-flex`]={flex:`var(--${i}${e}-flex)`},r},a=(t,e)=>u(t,e),m=(t,e,i)=>({[`@media (min-width: ${$(e)})`]:Object.assign({},a(t,i))}),f=()=>({}),g=()=>({}),S=l("Grid",c,f),y=t=>({xs:t.screenXSMin,sm:t.screenSMMin,md:t.screenMDMin,lg:t.screenLGMin,xl:t.screenXLMin,xxl:t.screenXXLMin}),M=l("Grid",t=>{const e=d(t,{gridColumns:24}),i=y(e);return delete i.xs,[p(e),a(e,""),a(e,"-xs"),Object.keys(i).map(o=>m(e,i[o],`-${o}`)).reduce((o,s)=>Object.assign(Object.assign({},o),s),{})]},g);export{S as a,y as g,M as u};
