import{d as c,s as d,e as o,l as i,i as n,t as _,f as l,k as r,b as m,aG as b,w as p,c as f,j as h,m as T}from"./BdHKhsMk.js";const g={class:"relative w-full overflow-auto"},$=c({__name:"Table",props:{class:{}},setup(e){const s=e;return(a,t)=>(o(),d("div",g,[i("table",{class:_(l(r)("w-full caption-bottom text-sm",s.class))},[n(a.$slots,"default")],2)]))}}),R=Object.assign($,{__name:"UiTable"}),x=c({__name:"TableBody",props:{class:{}},setup(e){const s=e;return(a,t)=>(o(),d("tbody",{class:_(l(r)("[&_tr:last-child]:border-0",s.class))},[n(a.$slots,"default")],2))}}),F=Object.assign(x,{__name:"UiTableBody"}),j=c({__name:"TableCaption",props:{class:{}},setup(e){const s=e;return(a,t)=>(o(),d("caption",{class:_(l(r)("mt-4 text-sm text-muted-foreground",s.class))},[n(a.$slots,"default")],2))}});Object.assign(j,{__name:"UiTableCaption"});const w=c({__name:"TableCell",props:{class:{}},setup(e){const s=e;return(a,t)=>(o(),d("td",{class:_(l(r)("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-0.5",s.class))},[n(a.$slots,"default")],2))}}),y=Object.assign(w,{__name:"UiTableCell"}),C=c({__name:"TableRow",props:{class:{},asChild:{type:Boolean},as:{default:"tr"}},setup(e){const s=e;return(a,t)=>(o(),m(l(b),{as:s.as,"as-child":s.asChild,class:_(l(r)("table-row border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",s.class))},{default:p(()=>[n(a.$slots,"default")]),_:3},8,["as","as-child","class"]))}}),O=Object.assign(C,{__name:"UiTableRow"}),U={class:"flex items-center justify-center py-10"},k=c({__name:"TableEmpty",props:{class:{},colspan:{default:1}},setup(e){const s=e,a=f(()=>{const{class:t,...u}=s;return u});return(t,u)=>(o(),m(O,null,{default:p(()=>[h(y,T({class:l(r)("p-4 whitespace-nowrap align-middle text-sm text-foreground",s.class)},a.value),{default:p(()=>[i("div",U,[n(t.$slots,"default")])]),_:3},16,["class"])]),_:3}))}});Object.assign(k,{__name:"UiTableEmpty"});const B=c({__name:"TableFooter",props:{class:{}},setup(e){const s=e;return(a,t)=>(o(),d("tfoot",{class:_(l(r)("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",s.class))},[n(a.$slots,"default")],2))}});Object.assign(B,{__name:"UiTableFooter"});const v=c({__name:"TableHead",props:{class:{}},setup(e){const s=e;return(a,t)=>(o(),d("th",{class:_(l(r)("h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-0.5",s.class))},[n(a.$slots,"default")],2))}}),N=Object.assign(v,{__name:"UiTableHead"}),H=c({__name:"TableHeader",props:{class:{}},setup(e){const s=e;return(a,t)=>(o(),d("thead",{class:_(l(r)("[&_tr]:border-b",s.class))},[n(a.$slots,"default")],2))}}),P=Object.assign(H,{__name:"UiTableHeader"});export{R as T,P as a,O as b,N as c,F as d,y as e};
