"use client";
import { cva } from 'class-variance-authority';
import { clsx } from 'clsx';
import { twMerge } from 'tailwind-merge';
import { jsx } 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 alertVariants = cva(
  "[&>svg]:text-text-default relative w-full rounded-lg border p-4 [&>svg]:absolute [&>svg]:top-4 [&>svg]:left-4 [&>svg+div]:translate-y-[-3px] [&>svg~*]:pl-7",
  {
    variants: {
      variant: {
        default: "bg-bg-tertiary text-text-default",
        info: "text-text-secondary [&>svg]:text-text-secondary bg-gray-250 border-gray-100 border-gray-200",
        destructive: "border-[#4d0408] bg-[#2d0607] text-[#ff9ea1] [&>svg]:text-[#ff9ea1]",
        warning: "border-yellow-800 bg-yellow-900 text-yellow-400 [&>svg]:text-yellow-400",
        success: "border-green-800 bg-green-900 text-green-400 [&>svg]:text-green-400",
        download: "border-gray-800 bg-gray-900 text-cyan-400 [&>svg]:text-cyan-400"
      }
    },
    defaultVariants: {
      variant: "default"
    }
  }
);
var Alert = /* @__PURE__ */ __name(({ className, variant, ref, ...props }) => /* @__PURE__ */ jsx(
  "div",
  {
    className: cn(alertVariants({ variant }), className),
    ref,
    role: "alert",
    ...props
  }
), "Alert");
Alert.displayName = "Alert";
var AlertTitle = /* @__PURE__ */ __name(({ className, ref, ...props }) => /* @__PURE__ */ jsx(
  "h5",
  {
    className: cn("mb-1 leading-none font-medium tracking-tight", className),
    ref,
    ...props
  }
), "AlertTitle");
AlertTitle.displayName = "AlertTitle";
var AlertDescription = /* @__PURE__ */ __name(({
  className,
  ref,
  ...props
}) => /* @__PURE__ */ jsx(
  "div",
  {
    className: cn("text-sm [&_p]:leading-relaxed", className),
    ref,
    ...props
  }
), "AlertDescription");
AlertDescription.displayName = "AlertDescription";

export { Alert, AlertDescription, AlertTitle };
