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.BYv_Qzcq.js";import{t as r}from"./utils.C5rmUD0V.js";var i=e(t(),1),a=(0,i.createContext)(null);a.displayName=`FlexContext`;var o=({children:e,direction:t,isRoot:o,wrap:s=!0,parentWidth:c,hasContentWidth:l=!1,hasFixedWidth:u=!1,parentContext:d=null})=>{let f=(0,i.useMemo)(()=>{let e=t===r.HORIZONTAL,n;return n=l?!0:u?!1:d?.isInContentWidthContainer??!1,{direction:t,isInHorizontalLayout:e,isInRoot:o??!1,wrap:s,parentWidth:c,isInContentWidthContainer:n}},[t,o,s,c,l,u,d]);return n(a.Provider,{value:f,children:e})};export{o as n,a as t};