"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../../theme/internal.js");const s=require("../../theme/util/genComponentStyleHook.js"),a=require("../../theme/util/statistic.js"),d=r=>{const{componentCls:e}=r;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"}}}},$=r=>{const{componentCls:e}=r;return{[e]:{position:"relative",maxWidth:"100%",minHeight:1}}},u=(r,e)=>{const{componentCls:t,gridColumns:i}=r,o={};for(let n=i;n>=0;n--)n===0?(o[`${t}${e}-${n}`]={display:"none"},o[`${t}-push-${n}`]={insetInlineStart:"auto"},o[`${t}-pull-${n}`]={insetInlineEnd:"auto"},o[`${t}${e}-push-${n}`]={insetInlineStart:"auto"},o[`${t}${e}-pull-${n}`]={insetInlineEnd:"auto"},o[`${t}${e}-offset-${n}`]={marginInlineEnd:0},o[`${t}${e}-order-${n}`]={order:0}):(o[`${t}${e}-${n}`]={display:"block",flex:`0 0 ${n/i*100}%`,maxWidth:`${n/i*100}%`},o[`${t}${e}-push-${n}`]={insetInlineStart:`${n/i*100}%`},o[`${t}${e}-pull-${n}`]={insetInlineEnd:`${n/i*100}%`},o[`${t}${e}-offset-${n}`]={marginInlineStart:`${n/i*100}%`},o[`${t}${e}-order-${n}`]={order:n});return o},l=(r,e)=>u(r,e),c=(r,e,t)=>({[`@media (min-width: ${e}px)`]:{...l(r,t)}}),p=s.default("Grid",r=>[d(r)]),f=s.default("Grid",r=>{const e=a.merge(r,{gridColumns:24}),t={"-sm":e.screenSMMin,"-md":e.screenMDMin,"-lg":e.screenLGMin,"-xl":e.screenXLMin,"-xxl":e.screenXXLMin};return[$(e),l(e,""),l(e,"-xs"),Object.keys(t).map(i=>c(e,t[i],i)).reduce((i,o)=>({...i,...o}),{})]});exports.useColStyle=f;exports.useRowStyle=p;
