import{$ as e,Tt as t,et as n,ht as r}from"./button-DqbiydrF.js";var i=e=>{let{componentCls:t}=e;return{[t]:{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`}}}},a=e=>{let{componentCls:t}=e;return{[t]:{position:`relative`,maxWidth:`100%`,minHeight:1}}},o=(t,n)=>{let{componentCls:r,gridColumns:i,antCls:a}=t,[o,s]=e(a,`grid`),[,c]=e(a,`col`),l={};for(let e=i;e>=0;e--)e===0?(l[`${r}${n}-${e}`]={display:`none`},l[`${r}-push-${e}`]={insetInlineStart:`auto`},l[`${r}-pull-${e}`]={insetInlineEnd:`auto`},l[`${r}${n}-push-${e}`]={insetInlineStart:`auto`},l[`${r}${n}-pull-${e}`]={insetInlineEnd:`auto`},l[`${r}${n}-offset-${e}`]={marginInlineStart:0},l[`${r}${n}-order-${e}`]={order:0}):(l[`${r}${n}-${e}`]=[{[o(`display`)]:`block`,display:`block`},{display:s(`display`),flex:`0 0 ${e/i*100}%`,maxWidth:`${e/i*100}%`}],l[`${r}${n}-push-${e}`]={insetInlineStart:`${e/i*100}%`},l[`${r}${n}-pull-${e}`]={insetInlineEnd:`${e/i*100}%`},l[`${r}${n}-offset-${e}`]={marginInlineStart:`${e/i*100}%`},l[`${r}${n}-order-${e}`]={order:e});return l[`${r}${n}-flex`]={flex:c(`${n.replace(/-/,``)}-flex`)},l},s=(e,t)=>o(e,t),c=(e,n,r)=>({[`@media (min-width: ${t(n)})`]:{...s(e,r)}}),l=()=>({}),u=()=>({}),d=n(`Grid`,i,l),f=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin,xxxl:e.screenXXXLMin}),p=n(`Grid`,e=>{let t=r(e,{gridColumns:24}),n=f(t);return delete n.xs,[a(t),s(t,``),s(t,`-xs`),Object.keys(n).map(e=>c(t,n[e],`-${e}`)).reduce((e,t)=>({...e,...t}),{})]},u);export{p as n,d as r,f as t};