import{o as e}from"./rolldown-runtime.C0FnF6B9.js";import{r as t}from"./emotion-is-prop-valid.esm.CuYlOKOk.js";import{i as n}from"./emotion-styled.browser.esm.Dj5rZcu_.js";import{t as r}from"./utils.C3-QKZw0.js";var i=e(t(),1),a=(0,i.createContext)(null);a.displayName=`FlexContext`;var o=({children:e,direction:t,isRoot:o,isDirectlyInColumn:s=!1,wrap:c=!0,parentWidth:l,hasContentWidth:u=!1,hasFixedWidth:d=!1,parentContext:f=null})=>{let p=(0,i.useMemo)(()=>{let e=t===r.HORIZONTAL,n;return n=u?!0:d?!1:f?.isInContentWidthContainer??!1,{direction:t,isInHorizontalLayout:e,isDirectlyInColumn:s,isInRoot:o??!1,wrap:c,parentWidth:l,isInContentWidthContainer:n}},[t,o,s,c,l,u,d,f]);return n(a.Provider,{value:p,children:e})};export{o as n,a as t};