import { cn } from "../../lib/utils.js";
import { c } from "react/compiler-runtime";
import "react";
import { jsx, jsxs } from "react/jsx-runtime";
import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
function ScrollArea(a) {
	let s = c(14), l, u, d;
	s[0] === a ? (l = s[1], u = s[2], d = s[3]) : ({className: u, children: l, ...d} = a, s[0] = a, s[1] = l, s[2] = u, s[3] = d);
	let f;
	s[4] === u ? f = s[5] : (f = cn("relative", u), s[4] = u, s[5] = f);
	let p;
	s[6] === l ? p = s[7] : (p = /* @__PURE__ */ jsx(ScrollAreaPrimitive.Viewport, {
		"data-slot": "scroll-area-viewport",
		className: "focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",
		children: l
	}), s[6] = l, s[7] = p);
	let m, h;
	s[8] === Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ jsx(ScrollBar, {}), h = /* @__PURE__ */ jsx(ScrollAreaPrimitive.Corner, {}), s[8] = m, s[9] = h) : (m = s[8], h = s[9]);
	let g;
	return s[10] !== d || s[11] !== f || s[12] !== p ? (g = /* @__PURE__ */ jsxs(ScrollAreaPrimitive.Root, {
		"data-slot": "scroll-area",
		className: f,
		...d,
		children: [
			p,
			m,
			h
		]
	}), s[10] = d, s[11] = f, s[12] = p, s[13] = g) : g = s[13], g;
}
function ScrollBar(i) {
	let a = c(13), o, s, l;
	a[0] === i ? (o = a[1], s = a[2], l = a[3]) : ({className: o, orientation: l, ...s} = i, a[0] = i, a[1] = o, a[2] = s, a[3] = l);
	let u = l === void 0 ? "vertical" : l, d = u === "vertical" && "h-full w-2.5 border-l border-l-transparent", f = u === "horizontal" && "h-2.5 flex-col border-t border-t-transparent", p;
	a[4] !== o || a[5] !== d || a[6] !== f ? (p = cn("flex touch-none p-px transition-colors select-none", d, f, o), a[4] = o, a[5] = d, a[6] = f, a[7] = p) : p = a[7];
	let m;
	a[8] === Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ jsx(ScrollAreaPrimitive.ScrollAreaThumb, {
		"data-slot": "scroll-area-thumb",
		className: "bg-border relative flex-1 rounded-full"
	}), a[8] = m) : m = a[8];
	let h;
	return a[9] !== u || a[10] !== s || a[11] !== p ? (h = /* @__PURE__ */ jsx(ScrollAreaPrimitive.ScrollAreaScrollbar, {
		"data-slot": "scroll-area-scrollbar",
		orientation: u,
		className: p,
		...s,
		children: m
	}), a[9] = u, a[10] = s, a[11] = p, a[12] = h) : h = a[12], h;
}
export { ScrollArea, ScrollBar };
