import{b as e,jt as t,u as n,ut as r}from"./index-cYnyErBl.js";import{t as i}from"./skeleton-BYSy5H0w.js";var a=r();function o({rows:e=5,cols:t=4}){return(0,a.jsxs)(`div`,{className:`rounded-lg border border-border overflow-hidden`,children:[(0,a.jsx)(`div`,{className:`p-4 bg-muted/50 flex gap-4`,children:Array.from({length:t}).map((e,t)=>(0,a.jsx)(i,{className:`h-4 flex-1`},t))}),Array.from({length:e}).map((e,n)=>(0,a.jsx)(`div`,{className:`p-4 border-t border-border flex gap-4`,children:Array.from({length:t}).map((e,t)=>(0,a.jsx)(i,{className:`h-4 flex-1`},t))},n))]})}function s({icon:e,heading:t,subtext:r,actionLabel:i,onAction:o}){return(0,a.jsxs)(`div`,{className:`flex flex-col items-center justify-center py-16 text-center`,children:[e&&(0,a.jsx)(e,{className:`h-12 w-12 text-muted-foreground/40 mb-4`}),(0,a.jsx)(`h3`,{className:`text-base font-semibold text-foreground`,children:t}),r&&(0,a.jsx)(`p`,{className:`text-sm text-muted-foreground mt-1 max-w-sm`,children:r}),i&&o&&(0,a.jsx)(n,{onClick:o,className:`mt-4`,children:i})]})}t();function c({className:t,...n}){return(0,a.jsx)(`div`,{"data-slot":`table-container`,className:`relative w-full overflow-x-auto`,children:(0,a.jsx)(`table`,{"data-slot":`table`,className:e(`w-full caption-bottom text-sm`,t),...n})})}function l({className:t,...n}){return(0,a.jsx)(`thead`,{"data-slot":`table-header`,className:e(`[&_tr]:border-b`,t),...n})}function u({className:t,...n}){return(0,a.jsx)(`tbody`,{"data-slot":`table-body`,className:e(`[&_tr:last-child]:border-0`,t),...n})}function d({className:t,...n}){return(0,a.jsx)(`tr`,{"data-slot":`table-row`,className:e(`border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted`,t),...n})}function f({className:t,...n}){return(0,a.jsx)(`th`,{"data-slot":`table-head`,className:e(`h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]`,t),...n})}function p({className:t,...n}){return(0,a.jsx)(`td`,{"data-slot":`table-cell`,className:e(`p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]`,t),...n})}export{l as a,o as c,f as i,u as n,d as o,p as r,s,c as t};