import { cn } from "../../lib/utils.js";
import { c } from "react/compiler-runtime";
import "react";
import { jsx } from "react/jsx-runtime";
import { CircleIcon } from "lucide-react";
import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
function RadioGroup(i) {
	let a = c(8), o, s;
	a[0] === i ? (o = a[1], s = a[2]) : ({className: o, ...s} = i, a[0] = i, a[1] = o, a[2] = s);
	let l;
	a[3] === o ? l = a[4] : (l = cn("grid gap-3", o), a[3] = o, a[4] = l);
	let u;
	return a[5] !== s || a[6] !== l ? (u = /* @__PURE__ */ jsx(RadioGroupPrimitive.Root, {
		"data-slot": "radio-group",
		className: l,
		...s
	}), a[5] = s, a[6] = l, a[7] = u) : u = a[7], u;
}
function RadioGroupItem(a) {
	let o = c(9), 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("border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50", s), o[3] = s, o[4] = u);
	let d;
	o[5] === Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ jsx(RadioGroupPrimitive.Indicator, {
		"data-slot": "radio-group-indicator",
		className: "relative flex items-center justify-center",
		children: /* @__PURE__ */ jsx(CircleIcon, { className: "fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2" })
	}), o[5] = d) : d = o[5];
	let f;
	return o[6] !== l || o[7] !== u ? (f = /* @__PURE__ */ jsx(RadioGroupPrimitive.Item, {
		"data-slot": "radio-group-item",
		className: u,
		...l,
		children: d
	}), o[6] = l, o[7] = u, o[8] = f) : f = o[8], f;
}
export { RadioGroup, RadioGroupItem };
