import{d as e,n as t,t as n}from"./objectSpread2-DtFdQpqy.js";import{a as r,n as i}from"./preload-helper-EQ20WQt-.js";import{d as a,u as o}from"./prop-types-DdDwMzX7.js";import{ft as s}from"./poll-9cD-z1op.js";import{t as c}from"./classnames-CFUb2mE1.js";var l=e(c()),u=e(r());function d(e){return e?u.Children.toArray(e).filter(Boolean).length>0:!1}var f=i();a(),t();var p=[`flex`,`fullscreen`,`className`,`children`],m=[`isLoading`,`emptyMessage`,`className`,`children`],h=[`focusable`,`className`,`children`],g=(0,u.forwardRef)((e,t)=>{let{flex:r=!0,fullscreen:i,className:a,children:s}=e,c=o(e,p);return(0,f.jsx)(`div`,n(n({className:(0,l.default)(`scrollable`,{"scrollable--flex":r,fullscreen:i},a),ref:t},c),{},{children:s}))});g.displayName=`Scrollable`;var _=(0,u.forwardRef)((e,t)=>{let{isLoading:r,emptyMessage:i,className:a,children:c}=e,u=o(e,m);return!r&&!d(c)&&i?(0,f.jsx)(`div`,{className:`empty-column-indicator`,children:(0,f.jsx)(`span`,{children:i})}):(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(`div`,n(n({role:`feed`,className:(0,l.default)(`item-list`,a),ref:t},u),{},{children:!r&&c})),r&&(0,f.jsx)(`div`,{className:`scrollable__append`,children:(0,f.jsx)(s,{})})]})});_.displayName=`ItemList`;var v=(0,u.forwardRef)((e,t)=>{let{focusable:r,className:i,children:a}=e,s=o(e,h);return(0,f.jsx)(`article`,n(n({ref:t,className:(0,l.default)(i,{focusable:r}),tabIndex:-1},s),{},{children:a}))});v.displayName=`Article`;export{_ as n,g as r,v as t};
//# sourceMappingURL=components-B4r59FBl.js.map