import { cn } from "../../lib/utils.js";
import { c } from "react/compiler-runtime";
import "react";
import { jsx } from "react/jsx-runtime";
function Table(a) {
	let o = c(8), s, l;
	o[0] === a ? (s = o[1], l = o[2]) : ({className: s, ...l} = a, o[0] = a, o[1] = s, o[2] = l);
	let u;
	o[3] === s ? u = o[4] : (u = cn("w-full caption-bottom text-sm", s), o[3] = s, o[4] = u);
	let d;
	return o[5] !== l || o[6] !== u ? (d = /* @__PURE__ */ jsx("div", {
		"data-slot": "table-container",
		className: "relative w-full overflow-x-auto",
		children: /* @__PURE__ */ jsx("table", {
			"data-slot": "table",
			className: u,
			...l
		})
	}), o[5] = l, o[6] = u, o[7] = d) : d = o[7], d;
}
function TableHeader(a) {
	let o = c(8), s, l;
	o[0] === a ? (s = o[1], l = o[2]) : ({className: s, ...l} = a, o[0] = a, o[1] = s, o[2] = l);
	let u;
	o[3] === s ? u = o[4] : (u = cn("[&_tr]:border-b", s), o[3] = s, o[4] = u);
	let d;
	return o[5] !== l || o[6] !== u ? (d = /* @__PURE__ */ jsx("thead", {
		"data-slot": "table-header",
		className: u,
		...l
	}), o[5] = l, o[6] = u, o[7] = d) : d = o[7], d;
}
function TableBody(a) {
	let o = c(8), s, l;
	o[0] === a ? (s = o[1], l = o[2]) : ({className: s, ...l} = a, o[0] = a, o[1] = s, o[2] = l);
	let u;
	o[3] === s ? u = o[4] : (u = cn("[&_tr:last-child]:border-0", s), o[3] = s, o[4] = u);
	let d;
	return o[5] !== l || o[6] !== u ? (d = /* @__PURE__ */ jsx("tbody", {
		"data-slot": "table-body",
		className: u,
		...l
	}), o[5] = l, o[6] = u, o[7] = d) : d = o[7], d;
}
function TableFooter(a) {
	let o = c(8), s, l;
	o[0] === a ? (s = o[1], l = o[2]) : ({className: s, ...l} = a, o[0] = a, o[1] = s, o[2] = l);
	let u;
	o[3] === s ? u = o[4] : (u = cn("bg-muted/50 border-t font-medium [&>tr]:last:border-b-0", s), o[3] = s, o[4] = u);
	let d;
	return o[5] !== l || o[6] !== u ? (d = /* @__PURE__ */ jsx("tfoot", {
		"data-slot": "table-footer",
		className: u,
		...l
	}), o[5] = l, o[6] = u, o[7] = d) : d = o[7], d;
}
function TableRow(a) {
	let o = c(8), s, l;
	o[0] === a ? (s = o[1], l = o[2]) : ({className: s, ...l} = a, o[0] = a, o[1] = s, o[2] = l);
	let u;
	o[3] === s ? u = o[4] : (u = cn("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors", s), o[3] = s, o[4] = u);
	let d;
	return o[5] !== l || o[6] !== u ? (d = /* @__PURE__ */ jsx("tr", {
		"data-slot": "table-row",
		className: u,
		...l
	}), o[5] = l, o[6] = u, o[7] = d) : d = o[7], d;
}
function TableHead(a) {
	let o = c(8), s, l;
	o[0] === a ? (s = o[1], l = o[2]) : ({className: s, ...l} = a, o[0] = a, o[1] = s, o[2] = l);
	let u;
	o[3] === s ? u = o[4] : (u = cn("text-muted-foreground h-10 px-4 py-3 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]", s), o[3] = s, o[4] = u);
	let d;
	return o[5] !== l || o[6] !== u ? (d = /* @__PURE__ */ jsx("th", {
		"data-slot": "table-head",
		className: u,
		...l
	}), o[5] = l, o[6] = u, o[7] = d) : d = o[7], d;
}
function TableCell(a) {
	let o = c(8), s, l;
	o[0] === a ? (s = o[1], l = o[2]) : ({className: s, ...l} = a, o[0] = a, o[1] = s, o[2] = l);
	let u;
	o[3] === s ? u = o[4] : (u = cn("px-4 py-3 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]", s), o[3] = s, o[4] = u);
	let d;
	return o[5] !== l || o[6] !== u ? (d = /* @__PURE__ */ jsx("td", {
		"data-slot": "table-cell",
		className: u,
		...l
	}), o[5] = l, o[6] = u, o[7] = d) : d = o[7], d;
}
function TableCaption(a) {
	let o = c(8), s, l;
	o[0] === a ? (s = o[1], l = o[2]) : ({className: s, ...l} = a, o[0] = a, o[1] = s, o[2] = l);
	let u;
	o[3] === s ? u = o[4] : (u = cn("text-muted-foreground mt-4 text-sm", s), o[3] = s, o[4] = u);
	let d;
	return o[5] !== l || o[6] !== u ? (d = /* @__PURE__ */ jsx("caption", {
		"data-slot": "table-caption",
		className: u,
		...l
	}), o[5] = l, o[6] = u, o[7] = d) : d = o[7], d;
}
export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow };
