import { cn } from "../../lib/utils.js";
import { c } from "react/compiler-runtime";
import "react";
import { jsx } from "react/jsx-runtime";
import { Slot } from "@radix-ui/react-slot";
import { cva } from "class-variance-authority";
var badgeVariants = cva("inline-flex items-center justify-center rounded-full border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden", {
	variants: { variant: {
		default: "border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",
		secondary: "border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",
		destructive: "border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
		outline: "text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"
	} },
	defaultVariants: { variant: "default" }
});
function Badge(a) {
	let o = c(12), s, l, u, d;
	o[0] === a ? (s = o[1], l = o[2], u = o[3], d = o[4]) : ({className: s, variant: d, asChild: u, ...l} = a, o[0] = a, o[1] = s, o[2] = l, o[3] = u, o[4] = d);
	let f = u !== void 0 && u ? Slot : "span", p;
	o[5] !== s || o[6] !== d ? (p = cn(badgeVariants({ variant: d }), s), o[5] = s, o[6] = d, o[7] = p) : p = o[7];
	let m;
	return o[8] !== f || o[9] !== l || o[10] !== p ? (m = /* @__PURE__ */ jsx(f, {
		"data-slot": "badge",
		className: p,
		...l
	}), o[8] = f, o[9] = l, o[10] = p, o[11] = m) : m = o[11], m;
}
export { Badge, badgeVariants };
