1import{o as e}from"./rolldown-runtime-eil0g4P7.js";import{$N as t,Fw as n,ME as r,QE as i,bx as a,dw as o,eE as s,jN as c,nE as l,uw as u,vx as d,xx as f,yx as p}from"./initial-W8XsXakm.js";import{$y as m,As as h,DF as g,Ms as _,RB as v,kb as y}from"./icons-DpkGVEtF.js";var b=e(t(),1),x=c(),S=`group-data-[sticky-shadow=on]/scroll:shadow-[inset_1px_0_0_0_#e5e5e5,-2px_0_4px_-2px_rgba(0,0,0,0.08)]`,C=`group-data-[sticky-shadow-left=on]/scroll:shadow-[inset_-1px_0_0_0_#e5e5e5,2px_0_4px_-2px_rgba(0,0,0,0.08)]`,w={text:(0,x.jsx)(g,{className:`size-3`,strokeWidth:2,"aria-hidden":`true`}),number:(0,x.jsx)(l,{className:`size-3`,strokeWidth:2,"aria-hidden":`true`}),date:(0,x.jsx)(i,{className:`size-3`,strokeWidth:2,"aria-hidden":`true`}),select:(0,x.jsx)(h,{className:`size-3`,strokeWidth:2,"aria-hidden":`true`}),status:(0,x.jsx)(r,{className:`size-3`,strokeWidth:2,"aria-hidden":`true`}),user:(0,x.jsx)(n,{className:`size-3`,strokeWidth:2,"aria-hidden":`true`}),checkbox:(0,x.jsx)(_,{className:`size-3`,strokeWidth:2,"aria-hidden":`true`}),image:(0,x.jsx)(s,{className:`size-3`,strokeWidth:2,"aria-hidden":`true`})};function T(e){if(!e)return;let t=e.scrollWidth-e.clientWidth;e.dataset.stickyShadow=t>1&&e.scrollLeft<t-1?`on`:`off`,e.dataset.stickyShadowLeft=t>1&&e.scrollLeft>1?`on`:`off`}function E({className:e,scroll:t=!0,pinColumns:n=!1,children:r}){let i=b.useCallback(e=>T(e),[]),a=o(n?`table-fixed w-max min-w-full`:`w-full`,`border-separate border-spacing-0`,u.geist);return t?(0,x.jsx)(`div`,{className:o(`w-full max-w-full min-h-0 overflow-hidden rounded-xl border border-neutral-200 bg-white`,e),children:(0,x.jsx)(`div`,{ref:i,onScroll:e=>T(e.currentTarget),"data-sticky-shadow":`off`,className:`scrollbar-pill group/scroll h-full w-full max-w-full overflow-auto focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-neutral-600 focus-visible:ring-inset`,children:(0,x.jsx)(`table`,{className:a,children:r})})}):(0,x.jsx)(`div`,{className:o(`w-full max-w-full rounded-xl border border-neutral-200 bg-white [&_tbody_tr:last-child_td]:border-b-0`,e),children:(0,x.jsx)(`table`,{className:a,children:r})})}function D({className:e,children:t}){return(0,x.jsx)(`thead`,{className:o(`bg-neutral-50 [&_tr_th:first-child]:rounded-tl-xl [&_tr_th:last-child]:rounded-tr-xl`,e),children:(0,x.jsx)(`tr`,{className:`h-8`,children:t})})}function O({type:e,label:t,sortApplied:n=!1,filterApplied:r=!1,align:i=`left`,className:s,customIcon:c,sortTrigger:l,filterTrigger:u,growLabel:h=!1,deniedNote:g}){let _=u!==void 0||r,b=l!==void 0||n;return(0,x.jsxs)(`div`,{className:o(`relative flex items-center gap-1.5`,i===`right`&&`justify-end`,s),children:[t||c?(0,x.jsx)(`span`,{className:`shrink-0 text-neutral-500`,children:c??w[e]}):null,(0,x.jsx)(`span`,{className:o(`text-[13px] font-medium text-neutral-500`,h?`min-w-0 flex-1 truncate`:`whitespace-nowrap`),children:t}),g!==void 0&&(0,x.jsx)(a,{children:(0,x.jsxs)(d,{children:[(0,x.jsx)(f,{"aria-label":g,className:`shrink-0 rounded-sm text-neutral-400 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-neutral-600`,children:(0,x.jsx)(m,{className:`size-3`,strokeWidth:2})}),(0,x.jsx)(p,{children:(0,x.jsx)(`p`,{className:`max-w-[240px] text-pretty`,children:g})})]})}),(_||b)&&(0,x.jsxs)(`span`,{className:`flex shrink-0 items-center`,children:[_&&(0,x.jsx)(A,{label:`${t} filter`,applied:r,trigger:u,icon:(0,x.jsx)(y,{className:`size-3`,strokeWidth:2})}),b&&(0,x.jsx)(A,{label:`${t} sort`,applied:n,trigger:l,icon:(0,x.jsx)(v,{className:`size-3`,strokeWidth:2})})]})]})}function k({width:e,align:t=`left`,isFirst:n=!1,stickyRight:r=!1,stickyLeft:i=!1,className:a,...s}){return(0,x.jsx)(`th`,{scope:`col`,style:e===void 0?void 0:{width:typeof e==`number`?`${e}px`:e},className:o(`sticky top-0 h-8 bg-neutral-50 pl-3 pr-2 text-left align-middle`,r?`right-0 z-20 ${S}`:`z-10`,i&&`left-0 z-20 group-data-[sticky-shadow-left=on]/scroll:shadow-[inset_-1px_0_0_0_#e5e5e5,2px_0_4px_-2px_rgba(0,0,0,0.08)]`,t===`right`&&`text-right`,a),children:(0,x.jsx)(O,{...s,align:t,isFirst:n})})}function A({icon:e,label:t,applied:n,trigger:r}){let i=(0,x.jsx)(`button`,{type:`button`,"aria-label":t,"aria-pressed":n,"data-applied":n||void 0,className:o(`inline-flex size-5 items-center justify-center rounded-sm transition-[color,background-color] duration-150`,n?`text-emerald-600 hover:bg-emerald-50`:`text-neutral-400 hover:bg-neutral-100 hover:text-neutral-600`),children:e});return r===void 0?i:b.cloneElement(r,void 0,i)}function j({className:e,children:t}){return(0,x.jsx)(`tbody`,{className:o(e),children:t})}function M({className:e,children:t,onClick:n,onDoubleClick:r}){return(0,x.jsx)(`tr`,{onClick:n,onDoubleClick:r,className:o(`group/row h-12 transition-colors hover:bg-neutral-50`,(n||r)&&`cursor-pointer`,e),children:t})}function N({className:e,align:t=`left`,isFirst:n=!1,noBorder:r=!1,rowSpan:i,colSpan:a,width:s,stickyRight:c=!1,stickyLeft:l=!1,onClick:u,title:d,children:f}){return(0,x.jsx)(`td`,{rowSpan:i,colSpan:a,title:d,style:s===void 0?void 0:{width:typeof s==`
1number`?`${s}px`:s},className:o(`whitespace-nowrap align-middle text-[13px] text-neutral-800`,`px-3`,!r&&`border-b border-neutral-100`,s!==void 0&&`overflow-hidden`,t===`right`&&`text-right`,c&&`sticky right-0 z-10 bg-white group-hover/row:bg-neutral-50 ${S}`,l&&`sticky left-0 z-10 bg-white group-hover/row:bg-neutral-50 group-data-[sticky-shadow-left=on]/scroll:shadow-[inset_-1px_0_0_0_#e5e5e5,2px_0_4px_-2px_rgba(0,0,0,0.08)]`,e),onClick:u,children:f})}var P=E;P.Header=D,P.HeaderCell=k,P.HeaderContent=O,P.Body=j,P.Row=M,P.Cell=N;export{T as i,C as n,P as r,w 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.