"use client";
import { Drawer as Drawer$1 } from 'vaul';
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 Drawer = /* @__PURE__ */ __name(({
  shouldScaleBackground = false,
  ...props
}) => /* @__PURE__ */ jsx(
  Drawer$1.Root,
  {
    shouldScaleBackground,
    ...props
  }
), "Drawer");
Drawer.displayName = "Drawer";
var DrawerTrigger = Drawer$1.Trigger;
var DrawerPortal = Drawer$1.Portal;
var DrawerClose = Drawer$1.Close;
var DrawerHandle = Drawer$1.Handle;
var DrawerOverlay = /* @__PURE__ */ __name(({
  className,
  ...props
}) => /* @__PURE__ */ jsx(
  Drawer$1.Overlay,
  {
    className: cn("fixed inset-0 z-50 bg-black/70", className),
    ...props
  }
), "DrawerOverlay");
DrawerOverlay.displayName = Drawer$1.Overlay.displayName;
var DrawerContent = /* @__PURE__ */ __name(({
  className,
  children,
  ...props
}) => /* @__PURE__ */ jsxs(DrawerPortal, { children: [
  /* @__PURE__ */ jsx(DrawerOverlay, {}),
  /* @__PURE__ */ jsxs(
    Drawer$1.Content,
    {
      className: cn(
        "fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-gray-500 px-6 pb-6 focus:outline-hidden",
        className
      ),
      ...props,
      children: [
        /* @__PURE__ */ jsx("div", { className: "mx-auto mt-4 h-2 w-[100px] rounded-full bg-gray-300" }),
        children
      ]
    }
  )
] }), "DrawerContent");
DrawerContent.displayName = "DrawerContent";
var DrawerHeader = /* @__PURE__ */ __name(({
  className,
  ...props
}) => /* @__PURE__ */ jsx("div", { className: cn("pt-5 pb-0", className), ...props }), "DrawerHeader");
DrawerHeader.displayName = "DrawerHeader";
var DrawerFooter = /* @__PURE__ */ __name(({
  className,
  ...props
}) => /* @__PURE__ */ jsx(
  "div",
  {
    className: cn("mt-auto flex flex-col gap-2 p-4", className),
    ...props
  }
), "DrawerFooter");
DrawerFooter.displayName = "DrawerFooter";
var DrawerTitle = /* @__PURE__ */ __name(({
  className,
  ...props
}) => /* @__PURE__ */ jsx(
  Drawer$1.Title,
  {
    className: cn(
      "text-lg leading-none font-semibold tracking-tight",
      className
    ),
    ...props
  }
), "DrawerTitle");
DrawerTitle.displayName = Drawer$1.Title.displayName;
var DrawerDescription = /* @__PURE__ */ __name(({
  className,
  ...props
}) => /* @__PURE__ */ jsx(
  Drawer$1.Description,
  {
    className: cn("text-text-secondary text-sm", className),
    ...props
  }
), "DrawerDescription");
DrawerDescription.displayName = Drawer$1.Description.displayName;

export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHandle, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger };
