1import{D as e,On as t,Rt as n,Zn as r,_ as i,b as a,k as o,mt as s,qt as c,xt as l}from"./runtime-core.esm-bundler-DPmoNEl9.js";import{m as u}from"./dist-B-kFk9Az.js";import{n as d}from"./utils-DICGkfbo.js";import{t as f}from"./Headline-C0L232__.js";var p=[`data-scrolled-x`,`data-scrolled-y`],m=o({__name:`Table`,props:{class:{type:[Boolean,null,String,Object,Array]},striped:{type:Boolean,default:!1},coloredHeader:{type:Boolean,default:!1},coloredFooter:{type:Boolean,default:!1},stickyHeader:{type:Boolean,default:!1},stickyFirstCol:{type:Boolean,default:!1}},setup(e){let o=e,c=n(`tableRef`),{x:f,y:m}=u(c);return(e,n)=>(s(),a(`div`,{"data-slot":`table-container`,class:`relative w-full overflow-auto`,ref_key:`tableRef`,ref:c},[i(`table`,{"data-slot":`table`,"data-scrolled-x":t(f)>0?`true`:`false`,"data-scrolled-y":t(m)>0?`true`:`false`,class:r(t(d)(`isolate w-full caption-bottom text-sm [&_td]:bg-background [&_th]:bg-background [&_tr]:border-stroke-cards`,{"[&_tbody>tr:nth-child(odd)>*]:bg-component":o.striped,"[&_thead>tr>th]:bg-accent-light":o.coloredHeader,"[&_tbody>tr:last-child>*]:bg-accent-light!":o.coloredFooter,"[&_thead>tr>th]:sticky [&_thead>tr>th]:top-0 [&_thead>tr>th]:z-10":o.stickyHeader,"[&_thead>tr>th:first-child]:z-30 [&_tr>*:first-child]:sticky [&_tr>*:first-child]:left-0 [&_tr>*:first-child]:z-20":o.stickyFirstCol,"[&_tr>*:first-child]:after:absolute [&_tr>*:first-child]:after:inset-y-0 [&_tr>*:first-child]:after:right-0 [&_tr>*:first-child]:after:w-8 [&_tr>*:first-child]:after:translate-x-full [&_tr>*:first-child]:after:opacity-0 [&_tr>*:first-child]:after:inset-shadow-[8px_0px_8px_-8px_rgba(0,0,0,0.05)] [&_tr>*:first-child]:after:transition-all [&[data-scrolled-x=true]_tr>*:first-child]:after:opacity-100":o.stickyFirstCol,"[&_thead>tr>th]:before:absolute [&_thead>tr>th]:before:inset-x-0 [&_thead>tr>th]:before:bottom-0 [&_thead>tr>th]:before:z-1 [&_thead>tr>th]:before:h-8 [&_thead>tr>th]:before:translate-y-full [&_thead>tr>th]:before:opacity-0 [&_thead>tr>th]:before:inset-shadow-[0px_8px_8px_-8px_rgba(0,0,0,0.3)] [&_thead>tr>th]:before:transition-all [&[data-scrolled-y=true]_thead>tr>th]:before:opacity-100":o.stickyHeader,"[&[data-scrolled-y=true][data-scrolled-x=true]_thead>tr>th:first-child]:overflow-hidden":o.stickyHeader},o.class))},[l(e.$slots,`default`)],10,p)],512))}}),h=o({__name:`TableBody`,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){let n=e;return(e,i)=>(s(),a(`tbody`,{"data-slot":`table-body`,class:r(t(d)(`[&_tr:last-child]:border-0`,n.class))},[l(e.$slots,`default`)],2))}}),g=o({__name:`TableCaption`,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){let n=e;return(e,i)=>(s(),a(`caption`,{"data-slot":`table-caption`,class:r(t(d)(`mt-4 text-sm text-muted-foreground`,n.class))},[l(e.$slots,`default`)],2))}}),_=o({__name:`TableCell`,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){let n=e;return(e,i)=>(s(),a(`td`,{"data-slot":`table-cell`,class:r(t(d)(`min-w-35 overflow-hidden p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]`,n.class))},[l(e.$slots,`default`)],2))}}),v=o({__name:`TableRow`,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){let n=e;return(e,i)=>(s(),a(`tr`,{"data-slot":`table-row`,class:r(t(d)(`border-b transition-colors data-[state=selected]:bg-muted`,n.class))},[l(e.$slots,`default`)],2))}}),y=o({__name:`TableHead`,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(n){let i=n;return(n,o)=>(s(),a(`th`,{"data-slot":`table-head`,class:r(t(d)(`h-10 min-w-35 px-2 text-left align-middle font-bold whitespace-nowrap text-black [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]`,i.class))},[e(f,{size:`h5`,as:`span`},{default:c(()=>[l(n.$slots,`default`)]),_:3})],2))}}),b=o({__name:`TableHeader`,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){let n=e;return(e,i)=>(s(),a(`thead`,{"data-slot":`table-header`,class:r(t(d)(`[&_tr]:border-b`,n.class))},[l(e.$slots,`default`)],2))}});export{g as a,_ as i,y as n,h as o,v as r,m as s,b as t};
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.