import { cn } from "../../lib/utils.js";
import { c } from "react/compiler-runtime";
import "react";
import { jsx, jsxs } from "react/jsx-runtime";
import { ChevronRight, MoreHorizontal } from "lucide-react";
import { Slot } from "@radix-ui/react-slot";
function Breadcrumb(e) {
	let i = c(4), a;
	i[0] === e ? a = i[1] : ({...a} = e, i[0] = e, i[1] = a);
	let o;
	return i[2] === a ? o = i[3] : (o = /* @__PURE__ */ jsx("nav", {
		"aria-label": "breadcrumb",
		"data-slot": "breadcrumb",
		...a
	}), i[2] = a, i[3] = o), o;
}
function BreadcrumbList(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("text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5", o), a[3] = o, a[4] = l);
	let u;
	return a[5] !== s || a[6] !== l ? (u = /* @__PURE__ */ jsx("ol", {
		"data-slot": "breadcrumb-list",
		className: l,
		...s
	}), a[5] = s, a[6] = l, a[7] = u) : u = a[7], u;
}
function BreadcrumbItem(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("inline-flex items-center gap-1.5", o), a[3] = o, a[4] = l);
	let u;
	return a[5] !== s || a[6] !== l ? (u = /* @__PURE__ */ jsx("li", {
		"data-slot": "breadcrumb-item",
		className: l,
		...s
	}), a[5] = s, a[6] = l, a[7] = u) : u = a[7], u;
}
function BreadcrumbLink(i) {
	let a = c(10), o, l, u;
	a[0] === i ? (o = a[1], l = a[2], u = a[3]) : ({asChild: o, className: l, ...u} = i, a[0] = i, a[1] = o, a[2] = l, a[3] = u);
	let d = o ? Slot : "a", f;
	a[4] === l ? f = a[5] : (f = cn("hover:text-foreground transition-colors", l), a[4] = l, a[5] = f);
	let p;
	return a[6] !== d || a[7] !== u || a[8] !== f ? (p = /* @__PURE__ */ jsx(d, {
		"data-slot": "breadcrumb-link",
		className: f,
		...u
	}), a[6] = d, a[7] = u, a[8] = f, a[9] = p) : p = a[9], p;
}
function BreadcrumbPage(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("text-foreground font-normal", o), a[3] = o, a[4] = l);
	let u;
	return a[5] !== s || a[6] !== l ? (u = /* @__PURE__ */ jsx("span", {
		"data-slot": "breadcrumb-page",
		role: "link",
		"aria-disabled": "true",
		"aria-current": "page",
		className: l,
		...s
	}), a[5] = s, a[6] = l, a[7] = u) : u = a[7], u;
}
function BreadcrumbSeparator(i) {
	let o = c(12), s, l, u;
	o[0] === i ? (s = o[1], l = o[2], u = o[3]) : ({children: s, className: l, ...u} = i, o[0] = i, o[1] = s, o[2] = l, o[3] = u);
	let d;
	o[4] === l ? d = o[5] : (d = cn("[&>svg]:size-3.5", l), o[4] = l, o[5] = d);
	let f;
	o[6] === s ? f = o[7] : (f = s ?? /* @__PURE__ */ jsx(ChevronRight, {}), o[6] = s, o[7] = f);
	let p;
	return o[8] !== u || o[9] !== d || o[10] !== f ? (p = /* @__PURE__ */ jsx("li", {
		"data-slot": "breadcrumb-separator",
		role: "presentation",
		"aria-hidden": "true",
		className: d,
		...u,
		children: f
	}), o[8] = u, o[9] = d, o[10] = f, o[11] = p) : p = o[11], p;
}
function BreadcrumbEllipsis(a) {
	let s = c(10), l, u;
	s[0] === a ? (l = s[1], u = s[2]) : ({className: l, ...u} = a, s[0] = a, s[1] = l, s[2] = u);
	let d;
	s[3] === l ? d = s[4] : (d = cn("flex size-9 items-center justify-center", l), s[3] = l, s[4] = d);
	let f, p;
	s[5] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ jsx(MoreHorizontal, { className: "size-4" }), p = /* @__PURE__ */ jsx("span", {
		className: "sr-only",
		children: "More"
	}), s[5] = f, s[6] = p) : (f = s[5], p = s[6]);
	let m;
	return s[7] !== u || s[8] !== d ? (m = /* @__PURE__ */ jsxs("span", {
		"data-slot": "breadcrumb-ellipsis",
		role: "presentation",
		"aria-hidden": "true",
		className: d,
		...u,
		children: [f, p]
	}), s[7] = u, s[8] = d, s[9] = m) : m = s[9], m;
}
export { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator };
