1import{r as n,j as s}from"./chunk-LFPYN7LY-BYCOceFh.js";import{i as E,c as b,f as j,a as I}from"./use-style-config-ZxeY2J_M.js";function A(e){return n.Children.toArray(e).filter(t=>n.isValidElement(t))}function R(e,t){return Array.isArray(e)?e.map(r=>r===null?null:t(r)):E(e)?Object.keys(e).reduce((r,i)=>(r[i]=t(e[i]),r),{}):e!=null?t(e):null}const W=e=>s.jsx(b.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});W.displayName="StackItem";function M(e){const{spacing:t,direction:r}=e,i={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":R(r,a=>i[a])}}const _=j((e,t)=>{const{isInline:r,direction:i,align:a,justify:g,spacing:d="0.5rem",wrap:S,children:h,divider:l,className:C,shouldWrapChildren:m,...w}=e,u=r?"row":i??"column",x=n.useMemo(()=>M({spacing:d,direction:u}),[d,u]),o=!!l,y=!m&&!o,N=n.useMemo(()=>{const f=A(h);return y?f:f.map((c,k)=>{const v=typeof c.key<"u"?c.key:k,V=k+1===f.length,p=m?s.jsx(W,{children:c},v):c;if(!o)return p;const B=n.cloneElement(l,{__css:x}),D=V?null:B;return s.jsxs(n.Fragment,{children:[p,D]},v)})},[l,x,o,y,m,h]),L=I("chakra-stack",C);return s.jsx(b.div,{ref:t,display:"flex",alignItems:a,justifyContent:g,flexDirection:u,flexWrap:S,gap:o?void 0:d,className:L,...w,children:N})});_.displayName="Stack";const O=j((e,t)=>s.jsx(_,{align:"center",...e,direction:"column",ref:t}));O.displayName="VStack";export{_ as S,O as V,R as m};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.