"use client";
import { Slot } from '@radix-ui/react-slot';
import { ChevronRight, MoreHorizontal } from 'lucide-react';
import { clsx } from 'clsx';
import { twMerge } from 'tailwind-merge';
import { jsx, jsxs } from 'react/jsx-runtime';

var __defProp = Object.defineProperty;
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
function cn(...inputs) {
  return twMerge(clsx(inputs));
}
__name(cn, "cn");
var Breadcrumb = /* @__PURE__ */ __name(({ ref, ...props }) => /* @__PURE__ */ jsx("nav", { "aria-label": "breadcrumb", ref, ...props }), "Breadcrumb");
Breadcrumb.displayName = "Breadcrumb";
var BreadcrumbList = /* @__PURE__ */ __name(({ className, ref, ...props }) => /* @__PURE__ */ jsx(
  "ol",
  {
    className: cn(
      "text-text-secondary flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5",
      className
    ),
    ref,
    ...props
  }
), "BreadcrumbList");
BreadcrumbList.displayName = "BreadcrumbList";
var BreadcrumbItem = /* @__PURE__ */ __name(({ className, ref, ...props }) => /* @__PURE__ */ jsx(
  "li",
  {
    className: cn("inline-flex items-center gap-1.5", className),
    ref,
    ...props
  }
), "BreadcrumbItem");
BreadcrumbItem.displayName = "BreadcrumbItem";
var BreadcrumbLink = /* @__PURE__ */ __name(({
  asChild,
  className,
  ref,
  ...props
}) => {
  const Comp = asChild ? Slot : "a";
  return /* @__PURE__ */ jsx(
    Comp,
    {
      className: cn("hover:text-text-default transition-colors", className),
      ref,
      ...props
    }
  );
}, "BreadcrumbLink");
BreadcrumbLink.displayName = "BreadcrumbLink";
var BreadcrumbPage = /* @__PURE__ */ __name(({ className, ref, ...props }) => /* @__PURE__ */ jsx(
  "span",
  {
    "aria-current": "page",
    "aria-disabled": "true",
    className: cn("text-text-default font-normal", className),
    ref,
    role: "link",
    ...props
  }
), "BreadcrumbPage");
BreadcrumbPage.displayName = "BreadcrumbPage";
var BreadcrumbSeparator = /* @__PURE__ */ __name(({
  children,
  className,
  ...props
}) => /* @__PURE__ */ jsx(
  "li",
  {
    "aria-hidden": "true",
    className: cn("[&>svg]:h-4 [&>svg]:w-4", className),
    role: "presentation",
    ...props,
    children: children ?? /* @__PURE__ */ jsx(ChevronRight, {})
  }
), "BreadcrumbSeparator");
BreadcrumbSeparator.displayName = "BreadcrumbSeparator";
var BreadcrumbEllipsis = /* @__PURE__ */ __name(({
  className,
  ...props
}) => /* @__PURE__ */ jsxs(
  "span",
  {
    "aria-hidden": "true",
    className: cn("flex h-9 w-9 items-center justify-center", className),
    role: "presentation",
    ...props,
    children: [
      /* @__PURE__ */ jsx(MoreHorizontal, { className: "h-4 w-4" }),
      /* @__PURE__ */ jsx("span", { className: "sr-only", children: "More" })
    ]
  }
), "BreadcrumbEllipsis");
BreadcrumbEllipsis.displayName = "BreadcrumbElipssis";

export { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator };
