(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,14390,e=>{"use strict";var t=e.i(43476),r=e.i(35416),a=e.i(96892);let l=(0,e.i(56420).default)("arrow-up-down",[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]]);e.s(["DataTable",0,function({columns:e,sortBy:s,sortDir:d,onSortChange:o,children:i}){return(0,t.jsx)("div",{className:"overflow-x-auto rounded-lg border border-border",children:(0,t.jsxs)("table",{className:"w-full text-sm",children:[(0,t.jsx)("thead",{className:"bg-primary/5",children:(0,t.jsx)("tr",{children:e.map(e=>{let i=s===e.key,c=e.sortable?i?"asc"===d?a.ArrowUp:r.ArrowDown:l:null;return(0,t.jsx)("th",{className:`px-4 py-3 text-left font-semibold text-foreground ${e.headerClassName??""}`,children:e.sortable&&o?(0,t.jsxs)("button",{type:"button",onClick:()=>o(e.key),className:"inline-flex items-center gap-1 hover:text-accent",children:[e.label,c&&(0,t.jsx)(c,{size:13,className:i?"text-accent":"text-muted","aria-hidden":!0})]}):e.label},e.key)})})}),(0,t.jsx)("tbody",{className:"divide-y divide-border",children:i})]})})}],14390)},35416,e=>{"use strict";let t=(0,e.i(56420).default)("arrow-down",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);e.s(["ArrowDown",0,t],35416)},96892,e=>{"use strict";let t=(0,e.i(56420).default)("arrow-up",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);e.s(["ArrowUp",0,t],96892)}]);