import e from"../../theme/util/genComponentStyleHook.mjs";import{merge as t}from"../../theme/util/statistic.mjs";import{alignItemsValues as n,flexWrapValues as r,justifyContentValues as i}from"../utils.mjs";var a=e=>{let{componentCls:t}=e;return{[t]:{display:`flex`,"&-vertical":{flexDirection:`column`},"&-rtl":{direction:`rtl`},"&:empty":{display:`none`}}}},o=e=>{let{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},s=e=>{let{componentCls:t}=e,n={};return r.forEach(e=>{n[`${t}-wrap-${e}`]={flexWrap:e}}),n},c=e=>{let{componentCls:t}=e,r={};return n.forEach(e=>{r[`${t}-align-${e}`]={alignItems:e}}),r},l=e=>{let{componentCls:t}=e,n={};return i.forEach(e=>{n[`${t}-justify-${e}`]={justifyContent:e}}),n},u=e(`Flex`,e=>{let n=t(e,{flexGapSM:e.paddingXS,flexGap:e.padding,flexGapLG:e.paddingLG});return[a(n),o(n),s(n),c(n),l(n)]});export{u as default};