"use client";
'use strict';

var vaul = require('vaul');
var clsx = require('clsx');
var tailwindMerge = require('tailwind-merge');
var jsxRuntime = require('react/jsx-runtime');

var __defProp = Object.defineProperty;
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
function cn(...inputs) {
  return tailwindMerge.twMerge(clsx.clsx(inputs));
}
__name(cn, "cn");
var Drawer = /* @__PURE__ */ __name(({
  shouldScaleBackground = false,
  ...props
}) => /* @__PURE__ */ jsxRuntime.jsx(
  vaul.Drawer.Root,
  {
    shouldScaleBackground,
    ...props
  }
), "Drawer");
Drawer.displayName = "Drawer";
var DrawerTrigger = vaul.Drawer.Trigger;
var DrawerPortal = vaul.Drawer.Portal;
var DrawerClose = vaul.Drawer.Close;
var DrawerHandle = vaul.Drawer.Handle;
var DrawerOverlay = /* @__PURE__ */ __name(({
  className,
  ...props
}) => /* @__PURE__ */ jsxRuntime.jsx(
  vaul.Drawer.Overlay,
  {
    className: cn("fixed inset-0 z-50 bg-black/70", className),
    ...props
  }
), "DrawerOverlay");
DrawerOverlay.displayName = vaul.Drawer.Overlay.displayName;
var DrawerContent = /* @__PURE__ */ __name(({
  className,
  children,
  ...props
}) => /* @__PURE__ */ jsxRuntime.jsxs(DrawerPortal, { children: [
  /* @__PURE__ */ jsxRuntime.jsx(DrawerOverlay, {}),
  /* @__PURE__ */ jsxRuntime.jsxs(
    vaul.Drawer.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__ */ jsxRuntime.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__ */ jsxRuntime.jsx("div", { className: cn("pt-5 pb-0", className), ...props }), "DrawerHeader");
DrawerHeader.displayName = "DrawerHeader";
var DrawerFooter = /* @__PURE__ */ __name(({
  className,
  ...props
}) => /* @__PURE__ */ jsxRuntime.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__ */ jsxRuntime.jsx(
  vaul.Drawer.Title,
  {
    className: cn(
      "text-lg leading-none font-semibold tracking-tight",
      className
    ),
    ...props
  }
), "DrawerTitle");
DrawerTitle.displayName = vaul.Drawer.Title.displayName;
var DrawerDescription = /* @__PURE__ */ __name(({
  className,
  ...props
}) => /* @__PURE__ */ jsxRuntime.jsx(
  vaul.Drawer.Description,
  {
    className: cn("text-text-secondary text-sm", className),
    ...props
  }
), "DrawerDescription");
DrawerDescription.displayName = vaul.Drawer.Description.displayName;

exports.Drawer = Drawer;
exports.DrawerClose = DrawerClose;
exports.DrawerContent = DrawerContent;
exports.DrawerDescription = DrawerDescription;
exports.DrawerFooter = DrawerFooter;
exports.DrawerHandle = DrawerHandle;
exports.DrawerHeader = DrawerHeader;
exports.DrawerOverlay = DrawerOverlay;
exports.DrawerPortal = DrawerPortal;
exports.DrawerTitle = DrawerTitle;
exports.DrawerTrigger = DrawerTrigger;
