import { cn as e } from "../../lib/utils.js";
import "react";
import { jsx as t, jsxs as n } from "react/jsx-runtime";
import * as r from "@radix-ui/react-accordion";
import { ChevronDownIcon as i } from "lucide-react";
//#region src/components/ui/accordion.tsx
function a({ ...e }) {
	return /* @__PURE__ */ t(r.Root, {
		"data-slot": "accordion",
		...e
	});
}
function o({ className: n, ...i }) {
	return /* @__PURE__ */ t(r.Item, {
		"data-slot": "accordion-item",
		className: e("border-b last:border-b-0", n),
		...i
	});
}
function s({ className: a, children: o, ...s }) {
	return /* @__PURE__ */ t(r.Header, {
		className: "flex",
		children: /* @__PURE__ */ n(r.Trigger, {
			"data-slot": "accordion-trigger",
			className: e("focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180", a),
			...s,
			children: [o, /* @__PURE__ */ t(i, { className: "text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200" })]
		})
	});
}
function c({ className: n, children: i, ...a }) {
	return /* @__PURE__ */ t(r.Content, {
		"data-slot": "accordion-content",
		className: "data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",
		...a,
		children: /* @__PURE__ */ t("div", {
			className: e("pt-0 pb-4", n),
			children: i
		})
	});
}
//#endregion
export { a as Accordion, c as AccordionContent, o as AccordionItem, s as AccordionTrigger };
